josephernest / bigpicture.js

bigpicture.js is a Javascript library that allows infinite panning and infinite zooming in HTML pages.
https://josephernest.github.io/bigpicture.js/index.html
MIT License
809 stars 58 forks source link

Hide when overlapping #19

Open kvasnyj opened 5 years ago

kvasnyj commented 5 years ago

Hello, Is it possible to hide foreground text when zoom in to not overlapping background text?

For example hide "Newton" label when zoom in: image

josephernest commented 5 years ago

It it a good idea... but how to define the concept of overlapping / foreground / background? Currently textboxes only have x, y position and size.

What would be the rule: in which case should a big text be hidden, and when should it reappear?

kvasnyj commented 5 years ago

What if when size greater than threshold?

josephernest commented 5 years ago

Yes but some people use big letters as an artistic effect, like a very big O (like a big circle) and some text inside, etc. :) See https://www.youtube.com/watch?v=52ilOpxWYuc

kvasnyj commented 5 years ago

Sure, in this case, threshold=0 by default