modern-canvas 0.26.1 → 0.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,6 +102,11 @@ export declare class Element2D extends Node2D implements Rectangulable {
102
102
  protected _treeEnter(tree: SceneTree): void;
103
103
  setProperties(properties?: Record<string, any>): this;
104
104
  _updateTransform(): void;
105
+ /**
106
+ * 供文字渲染子(Element2DText)在变形/内容改变、渲染范围可能超出布局框时调用,
107
+ * 按最新的 _getPointArray(已并入变形后字形范围)重算本地/全局 aabb,让选框贴合。
108
+ */
109
+ updateContentAabb(): void;
105
110
  protected _updateAabb(): void;
106
111
  updateGlobalTransform(): void;
107
112
  protected _updateGlobalAabb(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.26.1",
4
+ "version": "0.26.3",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",
@@ -64,8 +64,8 @@
64
64
  "earcut": "^3.2.0",
65
65
  "modern-font": "^0.6.2",
66
66
  "modern-idoc": "^0.12.3",
67
- "modern-path2d": "^1.8.6",
68
- "modern-text": "^2.1.2"
67
+ "modern-path2d": "^1.8.7",
68
+ "modern-text": "^2.1.3"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "echarts": "^5 || ^6",