@meta2d/core 1.0.34 → 1.0.35

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -80,6 +80,7 @@ export declare class Canvas {
80
80
  opening: boolean;
81
81
  maxZindex: number;
82
82
  canMoveLine: boolean;
83
+ randomIdObj: object;
83
84
  /**
84
85
  * @deprecated 改用 beforeAddPens
85
86
  */
@@ -188,6 +189,13 @@ export declare class Canvas {
188
189
  button?: number;
189
190
  }) => void;
190
191
  private addRuleLine;
192
+ /**
193
+ * @description 调整pen的坐标,让pen按照网格自动对齐
194
+ * @author Joseph Ho
195
+ * @date 14/11/2023
196
+ * @memberof Canvas
197
+ */
198
+ alignPenToGrid(pen: Pen): void;
191
199
  /**
192
200
  * 拖拽结束,数据更新到 active.pens
193
201
  */