-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support adding text labels to lines and shapes #6454
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
86 commits
Select commit
Hold shift + click to select a range
7ee2e85
add attributes for text on shapes
emilykl 932fa65
draw text, but not in the right place
emilykl 1d0e471
draw text in correct place, when x0 and y0 are defined for shape
emilykl e46e1bc
update shape label api
emilykl 60823dc
implement xanchor
emilykl 2f8c810
add image test
emilykl e405293
fix xanchor bug
emilykl e31de9e
partial handling of re-render
emilykl 0bcfff3
handle numeric angles
emilykl 9972dc9
handle auto angle for lines, put label drawing code into func
emilykl 6d5709a
nicer colors on image test
emilykl 072edf6
fix weird behavior on pan
emilykl 8bee979
disable mathjax rendering for shape text
emilykl 8528561
clip shape text outside plot area
emilykl b4a4576
fix textangle bug for lines -- angle should always be correct now
emilykl 97ee8c4
correctly handle position prop in most cases
emilykl 674abd8
revert shapes demo to original
emilykl 3743de4
handle label font
emilykl c3cc5ed
redraw text during shape move/resize
emilykl 45a0564
handle yanchor for text
emilykl b8085c2
rename mock
emilykl 8c0476e
handle multiline text and support text on arbitrary paths (sort of)
emilykl 95dd9b6
fix jasmine tests... maybe
emilykl 58e39cb
update plot-schema.json
emilykl 488318f
add data-index attr to shape group
emilykl c8d20f2
update jasmine test
emilykl dad6ea5
add mocks for text on shapes
emilykl 3134869
fix mocks
emilykl f17e218
add image baselines
emilykl 01ef185
fix text positioning for lines
emilykl d8c4790
Apply suggestions from code review
emilykl 5f39a62
rename position to textposition, fix some defaults
emilykl 1ab9e24
fix docstrings for xanchor and yanchor
emilykl b9ea251
updated plot-schema.json
emilykl 1f366a8
updated image baselines
emilykl f1087f3
updated plot-schema.json
emilykl f1570cf
fix Jasmine tests in shapes_test.js
emilykl baec66d
revert dist/plot-schema.json
emilykl d83e0cd
update textangle docstring and fix edge case
emilykl a91d12f
remove label dflt
emilykl 4948d67
Update src/components/shapes/draw.js
emilykl a5e19d3
Update src/components/shapes/draw.js
emilykl e55953e
add new mock
emilykl 44d5f08
fix text position for paths
emilykl 5424ac5
fix mock
emilykl 8769cff
add label attributes to newshape (broken)
emilykl f192a16
adjust edit types for newshape.label
archmoj 7ca5cf8
fix syntax in zz-text_on_shapes_reversed_axes mock
archmoj 822fe0d
add baseline
archmoj d50da33
fix circular dependency
archmoj 8cec651
set newshape label editType
archmoj 36771a8
change default xanchor and yanchor behavior
emilykl 3f9727a
update mocks
emilykl 9a4a121
Merge branch 'add-text-to-shapes' of https://github.com/plotly/plotly…
emilykl e493873
validate new mock
archmoj a17a315
update yanchor values and defaults in draw_newshape
emilykl d9bef04
Merge branch 'add-text-to-shapes' of https://github.com/plotly/plotly…
emilykl f54f102
input newshape label attributes
archmoj f642a52
draw labels on new shapes
archmoj dfb608e
provide missing editTypes
archmoj c20370a
merge shapes/defaults.js
emilykl feb2f38
standardize default yanchor behavior between shape and draw_newshape
emilykl 11b3421
better docstrings for xanchor and yanchor
emilykl ea9493e
update image baselines
emilykl 52463fa
update plot-schema
emilykl 394b48f
improve label.textposition docstring
emilykl 1325b7c
only coerce label properties if label text is given
emilykl 63bb5d9
fix line xanchor behavior when x0 == x1
emilykl 61e3df7
docstring update
emilykl 40933d0
update plot-schema
emilykl 8d35f6e
set default angle to auto for all shapes
emilykl d5d1927
set min padding to 0
emilykl c34d6de
update plot-schema
emilykl ffea962
docstring: specify padding is in px
emilykl ebe85c4
calculate textangle sin and cos only once
emilykl d113bcf
docstring updates
emilykl c703c11
simplify dfltYanchor implementation
emilykl 468363e
change temp render logic
emilykl cdf2d37
update shape label while editing an editable shape
archmoj 9eb7c90
test label behavior for draw_newshape
emilykl 3d2c792
update docstring formatting
emilykl 394555c
update plot-schema
emilykl eaf270d
add draft log
emilykl 095561f
update draft log
emilykl b0b8ab1
Merge branch 'master' into add-text-to-shapes
emilykl d927b6a
run linter
emilykl 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
fix line xanchor behavior when x0 == x1
- Loading branch information
commit 63bb5d977a798fd2d5e2f0d39f4d08aaa041114b
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.
Uh oh!
There was an error while loading. Please reload this page.