-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
More cleanup regarding annotation border styles #6215
More cleanup regarding annotation border styles #6215
Conversation
var dict = new Dict(); | ||
dict.name = 'D'; | ||
borderStyle.setStyle(dict); | ||
borderStyle.setStyle({ name: 'D' }); |
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.
Isn't a Name
actually what you want to use here, since that is what dict.get('S')
(in annotation.js
) will return?
If so, using borderStyle.setStyle(Name.get('D'));
here should be slightly more clear.
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.
Done in the new commit.
Good to merge, once the comment is addressed. |
58876ad
to
bed4d67
Compare
bed4d67
to
465611a
Compare
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/a775534359e4732/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/a775534359e4732/output.txt Total script time: 0.63 mins Published |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/b42b95122f9b283/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/d273f2bcbf179f4/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/d273f2bcbf179f4/output.txt Total script time: 19.36 mins
|
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/b42b95122f9b283/output.txt Total script time: 20.04 mins
|
More cleanup regarding annotation border styles
Looks good, thanks! |
This PR provides (minor) clean-up for the annotation border styles. There are three changes:
this.borderStyle.setStyle('S');
is wrong assetStyle
takes aName
as parameter, not a string. Somehow we all missed this during review, but fortunately we do not even need that line because the solid border style is the default.drawBorder
parameter forinitContainer
has become unused after the annotation border style refactoring, so we can remove it.setStyle
takes aName
as parameter, not a dictionary (even though that worked too, it is better to keep it the same as what we expect).@Snuffleupagus Could you review this one too?