-
Notifications
You must be signed in to change notification settings - Fork 365
Normalize annotations elements to be based on common box model #706
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 3 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5e7697f
changed box annotation
stockiNail 798ba76
apply new box model on label, box and ellipse annotations and tests
stockiNail 2203073
removes useless "this" reference
stockiNail caec490
changes point and polygon annotations
stockiNail df46aec
fixes CC
stockiNail 8344dd6
removes getRectCenterPoint function
stockiNail 81891e0
move back getChartCircle function and renames resolve functions
stockiNail 28168ad
Merge remote-tracking branch 'origin/master' into normalizeBox
stockiNail 9665724
apply model to line annotation
stockiNail 57c162b
changes types
stockiNail 1d6446a
re-use inBoxrange function in the line label
stockiNail 223414f
improves translate function
stockiNail 869bc05
adds center* properties to animation
stockiNail a4004ad
Merge remote-tracking branch 'origin/master' into normalizeBox
stockiNail c66d682
changes default animation numbers properties
stockiNail 87daf8c
adds note about breaking change to migration guide
stockiNail e9db75b
fixes CC
stockiNail dd3f731
removes partial sentence from migration guide
stockiNail 5cd9c0a
adds diagrams about new element properties for each annotation type
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {Element} from 'chart.js'; | ||
|
||
export default class BaseAnnotation extends Element { | ||
|
||
getCenterPoint(useFinalPosition) { | ||
const {centerX, centerY} = this.getProps(['centerX', 'centerY'], useFinalPosition); | ||
return {x: centerX, y: centerY}; | ||
} | ||
|
||
} | ||
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
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.