-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
property x0shift, x1shift, y0shift, y1shift for adjusting the shape coordinates #7005
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 all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
aa0cd7a
property shape.x_shift/y_shift for adjusting the shape coordinates
my-tien 44d1858
Add draftlog for PR 7005
my-tien 7abea61
Add x_shift/y_shift for selections as well, add selection example to …
my-tien a617017
baseline images zzz_shape_shift_horizontal and zzz_shape_shift_vertical
my-tien c2f7f27
Update shapes_test after adding shift param to getDataToPixel
my-tien fdcaa0c
Rename x_shift/y_shift → xshift/yshift
my-tien 9921522
Replace xshift and yshift with x0shift and y0shift
my-tien 3ac32f3
Only coerce x0/x1/y0/y1shift if referenced axis is category/multicate…
my-tien 6680745
Fix typo in calc_autorange: x/ysizemode "scale" -> "scaled"
my-tien ada2289
Add scatter to zzz_shape_shift_vertical mock
my-tien e11f6f6
Merge remote-tracking branch 'origin-plotly/master' into shape_shift
my-tien 1bfb22d
Updated baseline image after adding scatter to zzz_shape_shift_vertic…
my-tien 04466db
getDataToPixel: If shift is undefined, set it to 0
my-tien 91db7c8
Update draftlog with final property names
my-tien 4bbb669
Adjust attribute descriptions with property formatting and mention of…
my-tien ab935ac
Move calculation of shape shift into a dedicated function
my-tien 82de6b1
Merge remote-tracking branch 'origin-plotly/master' into shape_shift
my-tien f9c44bf
Update overlooked test after changing xshift/yshift to x0shift,x1shif…
my-tien b00d4d8
Remove shift properties from selection for now
my-tien 8cf665a
Merge remote-tracking branch 'origin-plotly/master' into shape_shift
my-tien 78a7e5e
Fix getPixelShift for reversed axes, add reversed axis to mock
my-tien 18e7c84
Update baseline image of zzz_shape_shift_vertical
my-tien 5509ee6
Account for shift when dragging a shape
my-tien 6f8e5a6
Support shape shift in texttemplate as well
my-tien 7de45c3
Update baseline image after updated mock for texttemplate shape
my-tien 9ac970a
Refine description for x0shift/x1shift/y0shift/y1shift
my-tien 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add property x0shift, x1shift, y0shift, y1shift for shapes referencing (multi-)category axes, with thanks to @my-tien for the contribution! [[#7005](https://github.com/plotly/plotly.js/pull/7005)] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.