MrFrankel / ruler

HTML5 Canvas ruler for authoring tools
http://mrfrankel.github.io/ruler/
221 stars 56 forks source link

Maybe you should provide us with some docs? #12

Open xyzdata opened 6 years ago

xyzdata commented 6 years ago

Q:

Maybe you should provide us with some docs?

A:

todo...


// const canvasRuler = new ruler({
//     container: document.querySelector(`#wrapper`)
// });

const canvasRuler = new ruler({
    container: document.querySelector(`#wrapper`),
    rulerHeight: 18, // thickness of ruler
    fontFamily: 'arial',// font for points
    fontSize: '7px',
    strokeStyle: 'black',
    lineWidth: 1,
    // enableMouseTracking: true,
    // enableToolTip: true,
    enableMouseTracking: false,
    enableToolTip: false,
});
MrFrankel commented 6 years ago

@xyzdata Hi, I currently don't have much time to maintain this, if you think there is something missing in the docs a PR would be welcome