GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - YujiSODE/dataMappingGuide: A tool that helps extract data from analog map

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
dataMappingGuide.js
dataMappingGuide.js
 
 

Repository files navigation

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|

About

A tool that helps extract data from analog map

yujisode.github.io/dataMappingGuide/

Topics

analogassistdata-mappingdigitizationjavascriptmapmapping

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.