Giter Site home page Giter Site logo

yujisode / datamappingguide Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 26 KB

A tool that helps extract data from analog map

Home Page: https://yujisode.github.io/dataMappingGuide/

License: MIT License

JavaScript 100.00%
data-mapping mapping javascript analog map digitization assist

datamappingguide's Introduction

dataMappingGuide

A tool that helps extract data from analog map.
GitHub: https://github.com/YujiSODE/dataMappingGuide

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


1. Script

  • dataMappingGuide.js

2. Synopsis

var obj=dataMappingGuide(canvas,src);
This function returns an object with some methods to control.

Parameters

  • canvas: a canvas element
  • src: an optional filename or pathname of an image for background

Main methods

1) Resizing and background

  • resize(w,h,src); it sets canvas size and background image
  • setDivisions(x,y); it sets horizontal and vertical divisions
    • w and h: new values for canvas width and canvas height
    • src: filename or pathname of an image; 'none' is default value
    • x and y: numbers for horizontal and vertical divisions

2) Colors

  • setColor(rgb,alpha); it sets rgb color and alpha value
    • rgb: rgb color value
    • alpha: an optional value between 0.0 (fully transparent) and 1.0 (fully opaque)

3) Focus area

  • xy(x,y); it puts focus on a area that is specified using integer coordinates
    • x and y: positive integer indices for horizontal and vertical divisions

Focus area indices

An example of 3x3 divided focus area:
_|1|2|3|
1|x|x|x|
2|x|x|x|
3|x|x|x|

datamappingguide's People

Contributors

yujisode avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.