-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Able to Ease-in to bookmark from full view? #4
Comments
This plugin does not support animating to the new location, but it would be quite straightforward to add that... basically you just need to replace the
...and:
...to a variable that's either true (for no animation) or false (for animation). You can modify your own copy of the plugin for that purpose, but if you're up for making a pull request here to add that feature, that would be lovely! |
Hello Ian,
Thank you for the response. Your suggestion is exactly what I have already tried in advance. It does not actually provide an "ease-in" behavior, it is rather rapid. Below is the total image (first link) and the second link is the plugin modified, I also changed the panTo and zoomTo order in the plugin code:
overall image, no BookmakrURL plugin used<https://br1.nic.edu/giga/?id=fieldtrip01stop01&dz=0.90&scale=1500>
bookmarkURL "panTo" and "zoomTo" set to false<https://br1.nic.edu/giga/?id=fieldtrip01stop01&scale=1500&bmurl#zoom=20.07053393007071&x=0.7857389766478017&y=0.16460225736434897>
I was hoping for a way to slow the process down so the user can follow the motion a little better, sort of "animate" it.
"You can modify your own copy of the plugin for that purpose, but if you're up for making a pull request here to add that feature, that would be lovely!"
Would love to do that, but I am novice on this platform (old-time programmer back to punch-card days). In fact, I thought I had made a pull request for other changes I have implemented regarding preserving the URL "search" items........ maybe some hand-holding on that process...
Bill D. Richards
Associate Professor
Dept. of Geosciences
North Idaho College
1000 W. Garden Ave.
Coeur d'Alene, ID 83814
208-769-3477
North Idaho College Weatherstation @ WeatherUnderground<https://www.wunderground.com/dashboard/pws/KIDCOEUR46>
…________________________________
From: Ian Gilman ***@***.***>
Sent: Friday, April 9, 2021 11:35 AM
To: openseadragon/bookmark-url ***@***.***>
Cc: Bill Richards <[email protected]>; Author ***@***.***>
Subject: Re: [openseadragon/bookmark-url] Able to Ease-in to bookmark from full view? (#4)
This plugin does not support animating to the new location, but it would be quite straightforward to add that... basically you just need to replace the true at the end of:
https://github.com/openseadragon/bookmark-url/blob/447051ea1898222cfafdd22b7d6d1a41621e4014/openseadragon-bookmark-url.js#L61
...and:
https://github.com/openseadragon/bookmark-url/blob/447051ea1898222cfafdd22b7d6d1a41621e4014/openseadragon-bookmark-url.js#L65
...to a variable that's either true (for no animation) or false (for animation).
You can modify your own copy of the plugin for that purpose, but if you're up for making a pull request here to add that feature, that would be lovely!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEKLBRGJWN3JHY3LC5VVRS3TH5CIXANCNFSM4ZDKRH2Q>.
|
I see! Well, the easiest way to change the animation speed is adjust the The springs always have an easeOut style to them... if you want easeInOut instead, you'll have to do your own animation loop, interpolating your target location and setting it per frame. I guess I would suggest trying the options above and see if you can get the effect you want, and then I can help you with next steps. |
A request:
Is there a way to have the bookmark plugin "ease-in" to the view coordinates from a home view upon loading?
thanks for any response...
BDR
The text was updated successfully, but these errors were encountered: