-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Introducing 3D annotations #1638
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 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
aa58118
replace forEach with for-loop over ['x', 'y']
etpinard 8b8bdea
don't (uselessly) add data-index to ann text+bg & arrow groups
etpinard 1a8f1ed
don't (uselessly) add annotation class to ann text group inner
etpinard f4b14e6
fine tune annotation arrow selector
etpinard 4dc16e4
use ax.?2? while composing convert methods
etpinard 8e6ab7d
split annotation drawOne into drawRaw
etpinard c5f6eb2
introduce 3D annotations
etpinard b7ab656
don't try to edit x,y,z positions for 3D annotations
etpinard fbdcee8
Merge branch 'master' into gl3d-annotations
etpinard 981b1a1
Merge branch 'master' into gl3d-annotations
etpinard 94b940d
rename anchor -> anchor3 so that it doesn't conflict w/ for-loop block
etpinard 8ac2551
Merge branch 'master' into gl3d-annotations
etpinard ababc49
Revert "don't (uselessly) add annotation class to ann text group inner"
etpinard 7cfba36
fix 3d annotations on type: 'category' axes
etpinard 8f9e370
make sure to clear 3d annotations when parent scene gets removed
etpinard 1bbabad
implement autorange logic for annotations
etpinard 9520943
first pass 3d annotations jasmine tests
etpinard f61cd4d
first pass 3d annotation image test support
etpinard 8cb10c1
try to make test that update the scene camera more robust
etpinard a31549d
replace 'annotation' class for 'annotation-text' for annation text nodes
etpinard bd9c867
mv 3d annotations code out of plots/gl3d into component/annotations3d
etpinard 21c8cc6
add common annotations defaults modules
etpinard adfc305
declare `ax` and `ay` as `valType: number` for annotation3d
etpinard c084da0
rename _scene ref to scene id in annotation container _sceneId
etpinard ef985cf
put 'captureevents' under common annotation defaults
etpinard 0b4214f
Merge branch 'master' into gl3d-annotations
etpinard 8b8a088
pass subplotId as arg to Annotations.drawRaw
etpinard 1d5606a
include subplotId in clickannotation event data
etpinard 46ab63d
rm subplotId key from clickannotations event data when falsy
etpinard 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
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.
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.
This commit is reverted in ababc49 to make the tests added in #1683 ✅
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.
I think you've hit on a flaw in how github displays comments... I'm reading:
but I'm looking at a31549d which came after ababc49 and rereverts the change originally made in 1a8f1ed 💫
Anyway, totally approve of this change. My best guess is these got the same
.annotation
class because at some point in the distant past they weren't all encapsulated in one group like they are now, and I wanted to be able to more easily select the whole annotation. Has always been confusing to deal with...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.
In brief, as of a31549d, the annotations
text
nodes have class nameannotation-text
.