Rename center attribute to position for Rectangle, Ellipse, and Polystar.#3319
Merged
Rename center attribute to position for Rectangle, Ellipse, and Polystar.#3319
Conversation
Align with the auto-layout design specification: VectorElements (Rectangle, Ellipse, Polystar) and Gradient nodes use unified 'position' attribute to represent anchor point coordinates. This avoids confusion with layout constraint properties (centerX/centerY).
Revert center to position changes for RadialGradient, ConicGradient, and DiamondGradient (only VectorElements should be renamed). Add missing documentation updates to skills files.
Change Rectangle/Ellipse/Polystar attribute names from 'center' to 'position' in the attribute ordering map and update related documentation comments for consistency.
…XCliTest for position rename.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3319 +/- ##
==========================================
+ Coverage 74.82% 74.88% +0.05%
==========================================
Files 503 503
Lines 32978 32980 +2
Branches 10775 10777 +2
==========================================
+ Hits 24677 24696 +19
+ Misses 6089 6085 -4
+ Partials 2212 2199 -13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…lystar in skills docs.
…ipse and Polystar.
# Conflicts: # resources/cli/align_distribute.pagx
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.
将 PAGX 格式中 Rectangle、Ellipse、Polystar 三个 VectorElement 的 center 属性重命名为 position,涉及 C++ 代码(导入/导出/渲染/CLI 工具)、规范文档(中英文)、skills 参考文档、测试用例及约 90 个 .pagx 资源文件。Gradient 的 center 属性保持不变。