daybrush / ruler

A Ruler component that can draw grids and scroll infinitely.
https://daybrush.com/ruler/
MIT License
334 stars 39 forks source link

Numbers in more detail #27

Open maryamseyedi opened 2 years ago

maryamseyedi commented 2 years ago

Environments

Description

Hi. When I want my unit to be a huge number, ex: 1000, how do I add in-between numbers like:100, 500, etc?

Thank you

daybrush commented 2 years ago

@maryamseyedi

It is possible if the units are at regular intervals.

Inconsistent intervals are not supported.

daybrush commented 2 years ago

If the unit is 1000 and you want to reduce the spacing on the canvas, set the zoom low.

maryamseyedi commented 2 years ago

hi Daybrush. Thanks so much for your fast reply. I will remember that. Another question I have is, is there a limit to the possible max number in the ruler? For example when I set it to 30000 it breaks for me. (Thanks again )

On Wed, Mar 9, 2022 at 7:17 AM Daybrush (Younkue Choi) < @.***> wrote:

If the unit is 1000 and you want to reduce the spacing on the canvas, set the zoom low.

— Reply to this email directly, view it on GitHub https://github.com/daybrush/ruler/issues/27#issuecomment-1062589810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACK3HE2CAAJGLLMW246JBSTU7A66HANCNFSM5QGS3PGA . You are receiving this because you were mentioned.Message ID: @.***>

daybrush commented 2 years ago

@maryamseyedi

Yes use range option (default: [-Infinity, Infinity])

use [-Infinity, 30000]