ZoomIn() and ZoomIn(ScaleFactor,CentrePoint) don't work as a sequence in script

rivera0000g shared this question 3 months ago
Needs Answer

Commands ZoomIn() and ZoomIn(ScaleFactor,CentrePoint) have different functionality when applied from a InputBar and diffrent when working from script.

I would like to position the screen to show desired view of geometrical objects visible in consecutive screens of construction. Pace of animation of this change applied in original commands, as they work from InputBar suits me very well. How should I reproduce this behaviour, while working from script?

Comments (5)

photo
1

Maybe: attach script to OnUpdate of slider, and animate the slider

photo
1

tried a lot of solutions and all of them proved unreliable. Native Java API?

photo
1

Have you tried this one?

Maybe: attach script to OnUpdate of slider, and animate the slider

photo
photo
1

espero que se entienda mi explicacion cuando sea traducida

al comenzar un script GG se detiene la actualizacion de pantalla por razones obvias

entonces un zoom modifica internamente algun valor pero esto no es observable. Si hay otro comando zoom los valores que se han modificado son sobreescritos y por tanto anulados

es por eso que al terminar un script con varios comandos zoom solo el ultimo tiene efecto

(todo esto me lo supongo)

por ello la mejor manera es tener un solo comando zoom en cada script

además zoomin(scale,point) no centra la ventana en el punto


el mejor comando que he podido hacer con poco tiempo es el que usa el adjunto

CV<-->centerview

sf<-->scale factor

M size of graph window

Files: foro.ggb
photo
1

64/5000


Muchísimas gracias. Trabajaré en este sentido. Gracias.


Send feedback


History


Saved


Community

photo
© 2020 International GeoGebra Institute