daybrush / guides

A Guides component that can draw ruler and manage guidelines.
https://daybrush.com/guides/
MIT License
342 stars 46 forks source link

Can you please explain to me in code how i can use other units like inches and centimetres for my rulers? #15

Closed smandepudi closed 4 years ago

smandepudi commented 4 years ago

I am using your guides component in my angular app used for editing text and images I am trying ti change the units to Inches from the default pixels. The below code shows it in pixels I tried changing unit=1 which did not work for me. Can you please explain in code , how i can make this work for inches. thank you <ngx-guides #guides1 type="horizontal" unit="50" displayDragPos="true">

daybrush commented 4 years ago

@smandepudi

use zoom

1inchi = 96 pixel

zoom= "96" unit ="1"

smandepudi commented 4 years ago

Ok this worked Thank you very much.