You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran accross this problem when I was using easypz, and wanted to reset the zoom with a button.
Since the option did not exist, I tried to destroy and recreate an new EasyPZ object new EasyPZ(samedom, ....), doing so N times creates an number of eventlisteners that I'm not able to remove (unless I recreate the DOM object and also loose whatever other eventlisteners were bound to it).
I did create a child class, ironically named DestroyableEasyPZ, but i think it should be doable to implement it in the original class.
Hello
I ran accross this problem when I was using easypz, and wanted to reset the zoom with a button.
Since the option did not exist, I tried to destroy and recreate an new EasyPZ object
new EasyPZ(samedom, ....)
, doing so N times creates an number of eventlisteners that I'm not able to remove (unless I recreate the DOM object and also loose whatever other eventlisteners were bound to it).I did create a child class, ironically named DestroyableEasyPZ, but i think it should be doable to implement it in the original class.
https://observablehq.com/@stardisblue/hello-easypz
This could also serve other usecases where you want to enable/disable easypz while conserving the zoom and translate values.
The text was updated successfully, but these errors were encountered: