feat(View): View center supports string#16904
Merged
susiwen8 merged 7 commits intoapache:masterfrom May 1, 2022
susiwen8:graphe-roam
Merged
feat(View): View center supports string#16904susiwen8 merged 7 commits intoapache:masterfrom susiwen8:graphe-roam
View center supports string#16904susiwen8 merged 7 commits intoapache:masterfrom
susiwen8:graphe-roam
Conversation
|
Thanks for your contribution! The pull request is marked to be |
plainheart
reviewed
Apr 19, 2022
View center suuport string
pissang
reviewed
Apr 21, 2022
View center suuport stringView center supports string
pissang
reviewed
Apr 22, 2022
pissang
reviewed
Apr 28, 2022
pissang
approved these changes
Apr 30, 2022
Contributor
pissang
left a comment
There was a problem hiding this comment.
LGTM @plainheart any more suggestions?
|
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
Ovilia
added a commit
to apache/echarts-doc
that referenced
this pull request
Jun 13, 2022
100pah
added a commit
that referenced
this pull request
Jun 15, 2025
…But it was based on canvas width/height, which is not reasonable - the unit may incorrect, and it is unpredictable if the `View['_rect']` is not calculated based on the current canvas rect. Therefore the percentage value is changed to based on `View['_rect'].width/height` since v6. Under this definition, users can use '0%' to map the top-left of `View['_rect']` to the center of `View['_viewRect']`.
100pah
added a commit
that referenced
this pull request
Jun 15, 2025
…ectVerticalAlign` for series.map/geo/series.graph in box layout (lay out by left/right/top/bottom/width/height). (2) Support `clip` on geo/series.map (3) Support `roamTigger: 'global' | 'selfRect'` to switch roam area to global on only self bounding rect. (4) Support cursor style change when hovering the roaming enabled area to hint users. (5) Fix that center and zoom option does not work in series.sankey, and no relevant test case. (the roam is introduced in impl in #20321, due v6). (6) Fix the percent base of `center` (such as `center: ['40%', '50%']`) for all View coord sys based components/series (geo/series.map/series.graph/series.tree/series.sankey). #16904 introcuded percentage string here, such as '33%'. But it was based on canvas width/height, which is not reasonable - the unit may incorrect, and it is unpredictable if the `View['_rect']` is not calculated based on the current canvas rect. Therefore the percentage value is changed to based on `View['_rect'].width/height` since v6. Under this definition, users can use '0%' to map the top-left of `View['_rect']` to the center of `View['_viewRect']`. (7) Enhance the behavior for roaming area overlapping - the upper one has higher precedence. (8) Fix some `scaleLimit` missing. (9) Some refactor and clarification of `RoamController` and `roamHelper`.
8 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Brief Information
This pull request is in the type of:
What does this PR do?
Viewcenter option supportstringFixed issues
Details
Before: What was the problem?
After: How is it fixed in this PR?
Misc
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information