Skip to content

YujiSODE/screenCoord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenCoord

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

Copyright (c) 2018 Yuji SODE <yuji.sode@gmail.com>
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