Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
update plot-schema
  • Loading branch information
@emilykl
emilykl committedMar 1, 2023
commit52463fa07dc9173f74626b042c5852549035e1e2
12 changes: 4 additions & 8 deletionstest/plot-schema.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3634,7 +3634,7 @@
]
},
"xanchor": {
"description": "Sets thetext box's horizontal position anchor.",
"description": "Sets thelabel's horizontal position anchor This anchor binds the specified `label.textposition` to the *left*, *center* or *right* of the label text. For example, if `label.textposition` is set to *top right* and `xanchor` to *right* then the right-most portion of the label text lines up with the right-most edge of the shape.",
"dflt": "auto",
"editType": "none",
"valType": "enumerated",
Expand All@@ -3646,12 +3646,10 @@
]
},
"yanchor": {
"description": "Sets the text box's vertical position anchor.",
"dflt": "auto",
"description": "Sets the label's vertical position anchor This anchor binds the specified `label.textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `label.textposition` is set to *top right* and `yanchor` to *top* then the top-most portion of the label text lines up with the top-most edge of the shape.",
"editType": "none",
"valType": "enumerated",
"values": [
"auto",
"top",
"middle",
"bottom"
Expand DownExpand Up@@ -7255,7 +7253,7 @@
]
},
"xanchor": {
"description": "Sets thetext box's horizontal position anchor.",
"description": "Sets thelabel's horizontal position anchor This anchor binds the specified `label.textposition` to the *left*, *center* or *right* of the label text. For example, if `label.textposition` is set to *top right* and `xanchor` to *right* then the right-most portion of the label text lines up with the right-most edge of the shape.",
"dflt": "auto",
"editType": "calc+arraydraw",
"valType": "enumerated",
Expand All@@ -7267,12 +7265,10 @@
]
},
"yanchor": {
"description": "Sets the text box's vertical position anchor.",
"dflt": "auto",
"description": "Sets the label's vertical position anchor This anchor binds the specified `label.textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `label.textposition` is set to *top right* and `yanchor` to *top* then the top-most portion of the label text lines up with the top-most edge of the shape.",
"editType": "calc+arraydraw",
"valType": "enumerated",
"values": [
"auto",
"top",
"middle",
"bottom"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp