-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Call AnnotationLayer.setDimensions
as part of the render
/update
-methods (PR 15036 follow-up)
#15124
Call AnnotationLayer.setDimensions
as part of the render
/update
-methods (PR 15036 follow-up)
#15124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
…-methods (PR 15036 follow-up) Rather than forcing the user to *manually* call `setDimensions`, which is also breaking any existing third-party code, it seems that we can simply let the `AnnotationLayer.{render, update}`-methods handle that internally. As far as I can tell, based on testing manually in the viewer *and* running the browser-tests, everything still appears to work correctly with this patch.
7b88240
to
552ee9d
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/588fd498961f13c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/999e0e2dad0a278/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/999e0e2dad0a278/output.txt Total script time: 10.22 mins
|
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/588fd498961f13c/output.txt Total script time: 25.99 mins
Image differences available at: http://54.241.84.105:8877/588fd498961f13c/reftest-analyzer.html#web=eq.log |
/botio-windows browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/3c6bd895bb4cad0/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/3c6bd895bb4cad0/output.txt Total script time: 21.42 mins
|
Rather than forcing the user to manually call
setDimensions
, which is also breaking any existing third-party code, it seems that we can simply let theAnnotationLayer.{render, update}
-methods handle that internally.As far as I can tell, based on testing manually in the viewer and running the browser-tests, everything still appears to work correctly with this patch.