-
Notifications
You must be signed in to change notification settings - Fork 363
Add z option to all annotations #738
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
22344aa
Add z option to all annotations
stockiNail 05b446f
changes name of item object in drawable elements array
stockiNail 0cac130
apply review 1
stockiNail 0581fc3
fixes cc 1
stockiNail f80d7d9
fixes cc 2
stockiNail fb8026b
fallback to first impl
stockiNail File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
module.exports = { | ||
config: { | ||
type: 'scatter', | ||
options: { | ||
scales: { | ||
x: { | ||
display: false, | ||
min: 0, | ||
max: 10 | ||
}, | ||
y: { | ||
display: false, | ||
min: 0, | ||
max: 25 | ||
} | ||
}, | ||
plugins: { | ||
annotation: { | ||
annotations: { | ||
box1: { | ||
type: 'box', | ||
xMin: 3, | ||
xMax: 7, | ||
yMin: 1, | ||
yMax: 4, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgb(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box1 z:+10/z: 0', | ||
z: 0 | ||
}, | ||
z: 10 | ||
}, | ||
box2: { | ||
type: 'box', | ||
xMin: 1.5, | ||
xMax: 5.5, | ||
yMin: 15, | ||
yMax: 23.5, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgba(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box2 fallback/z: +100', | ||
z: 100 | ||
} | ||
}, | ||
box3: { | ||
type: 'box', | ||
xMin: 2.5, | ||
xMax: 7, | ||
yMin: 16, | ||
yMax: 21, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgba(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box3 fallback/z: -1', | ||
z: -1 | ||
} | ||
}, | ||
box4: { | ||
type: 'box', | ||
xMin: 3, | ||
xMax: 7, | ||
yMin: 5, | ||
yMax: 9, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgba(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box4 fallback/fallback', | ||
}, | ||
}, | ||
box5: { | ||
type: 'box', | ||
xMin: 1.5, | ||
xMax: 5.5, | ||
yMin: 10, | ||
yMax: 14.5, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgba(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box5 z: +100/z: 0', | ||
position: 'start', | ||
z: 0 | ||
}, | ||
z: 100 | ||
}, | ||
box6: { | ||
type: 'box', | ||
xMin: 2.5, | ||
xMax: 4.5, | ||
yMin: 11, | ||
yMax: 13.5, | ||
backgroundColor: 'rgba(255, 99, 132, 0.5)', | ||
borderColor: 'rgba(255, 99, 132)', | ||
borderWidth: 1, | ||
label: { | ||
display: true, | ||
content: 'box6 z: 0/fallback', | ||
}, | ||
z: 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.