1.0.6 • Published 6 years ago

screenruler v1.0.6

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

screenRuler

Add a ruler on your screen when you work on CSS/CANVAS

HOT TO USE

  • npm install screenruler --save
  • import ScreenRuler from 'ScreenRuler'
  • const Ruler = new ScreenRuler(model, lineWidth, gridWidth, gridHeight)
  • Ruler.drawCanvas()
  • Necessary parameter :model(strong/mormal)
  • Unnecessary parameter : lineWidth, gridWidth, gridHeight;(ruler lineWidth && gridWidth/gridHeight )

function describe

  • strong/normal .When you click screen ,the click coordinate will display on the clickCoordinate;
  • normal model .when you choose normal model ,there are two rulers will on your screen;one on the top ,the other on the left
  • strong model. when you choose strong model,there is a grid on your screen ,you can use gridWidth&&gridHeight to adjust the grid height;

how about a Star https://github.com/AplloBattlestarGalactica/screenRuler/blob/master/README.md

tell me your issue

etc..

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago