Code Monkey home page Code Monkey logo

screencoord's Introduction

screenCoord

A simple tool for estimating length on HTML in CSS pixel.
GitHub: https://github.com/YujiSODE/screenCoord

Copyright (c) 2018 Yuji SODE <[email protected]>
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php


screenshot of screenCoord.js
Figure 1. Screenshot of screenCoord.
Length on HTML view is estimated using a distance between two clicked points.
Clicks on "available area" are detected as above clicked points.

  • colored rectangle: it changes color of available area.
  • [-] and [+]: they change size of available area.
  • [<=>]: it moves these controls.
  • [Log]: it shows the current log of "screenCoord.js".
  • [Clear]: it clears the current log of "screenCoord.js".
  • [X]: it cloes these controls.
  • Available area: it closes/opens available area.

1. Synopsis

var f=screenCoord(?zIndex?);

Description

This function generates a folding canvas and returns a function that returns text log.

Parameter

  • zIndex: an optional integer value for z-index with default value of 1000.

Text log format

Function that generated using screenCoord(?zIndex?) returns csv formatted text log as follows:
x1,y1,x2,y2,length [px]

2. Scripts

Main script of screenCoord

  • screenCoord.js

Additional modules

Usage

<script src="screenCoord.js"></script>
<script src="name of additional module"></script>

3. Library list

screencoord's People

Contributors

yujisode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

screencoord's Issues

Images

Images for screenCoord such as screenshot, sample images etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.