Commit 6369e6e
Release (#1979)
* fix: prevent NaN in transform calculations when scale is 0 (#1971)
* fix: prevent NaN in transform calculations when scale is 0
- Add MIN_SCALE constant to avoid zero scaling
- Update scale transform functions to enforce minimum scale value
- Add test case for scale(0) transform
- Add demo example with scale(0) transform
* chore: add changeset
* refactor: extract scale clamping logic into reusable function
- Add clampScale helper function to avoid code duplication
- Replace repeated Math.max(item, MIN_SCALE) calls with clampScale
- Maintain same behavior while improving code maintainability
* chore: add changeset
* perf: use charWidthCache to improve performance by 1.5% (#1978)
* perf: 避免重复dirty父级元素提升2%性能
* perf: accept gemini review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* refactor: 修复eslint
* perf: use charWidthCache to improve performance by 1.5%
* refactor: 修复评审意见
* refactor: 修复评审意见
* refactor: 使用LRU
* refactor: 使用LRU
* chore: add changeset
---------
Co-authored-by: huiyu.zjt <huiyu.zjt@antgroup.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: wang1212 <mrwang1212@126.com>
* revert: fix element attribute update exception #1968
* chore(release): bump version (#1977)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: huiyu.zjt <Alexzjt@users.noreply.github.com>
Co-authored-by: huiyu.zjt <huiyu.zjt@antgroup.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 433cc43 commit 6369e6e
102 files changed
Lines changed: 744 additions & 91 deletions
File tree
- __tests__
- demos/2d
- unit/css/properties
- packages
- g-camera-api
- g-canvaskit
- g-canvas
- g-components
- g-dom-mutation-observer-api
- g-gesture
- g-image-exporter
- g-lite
- src
- services
- utils
- g-lottie-player
- g-mobile-canvas-element
- g-mobile-canvas
- g-mobile-svg
- g-mobile-webgl
- g-pattern
- g-plugin-3d
- g-plugin-a11y
- g-plugin-annotation
- g-plugin-box2d
- g-plugin-canvas-path-generator
- g-plugin-canvas-picker
- g-plugin-canvas-renderer
- g-plugin-canvaskit-renderer
- g-plugin-control
- g-plugin-css-select
- g-plugin-device-renderer
- g-plugin-dom-interaction
- g-plugin-dragndrop
- g-plugin-gesture
- g-plugin-html-renderer
- g-plugin-image-loader
- g-plugin-matterjs
- g-plugin-mobile-interaction
- g-plugin-physx
- g-plugin-rough-canvas-renderer
- g-plugin-rough-svg-renderer
- g-plugin-svg-picker
- g-plugin-svg-renderer
- g-plugin-yoga
- g-plugin-zdog-canvas-renderer
- g-plugin-zdog-svg-renderer
- g-svg
- g-web-animations-api
- g-web-components
- g-webgl
- g-webgpu
- g
- react-g
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
236 | 261 | | |
237 | 262 | | |
238 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | 13 | | |
5 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
3 | 18 | | |
4 | 19 | | |
5 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
3 | 18 | | |
4 | 19 | | |
5 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | 13 | | |
5 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments