@leafer-draw/miniapp 2.2.6 → 2.2.8

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.
@@ -4814,7 +4814,7 @@ const matrix = {}, {round: round} = Math;
4814
4814
  const LeafHelper = {
4815
4815
  updateAllMatrix(leaf, checkAutoLayout, waitAutoLayout) {
4816
4816
  if (checkAutoLayout && leaf.__hasAutoLayout && leaf.__layout.matrixChanged) waitAutoLayout = true;
4817
- updateMatrix$2(leaf, checkAutoLayout, waitAutoLayout);
4817
+ updateMatrix$1(leaf, checkAutoLayout, waitAutoLayout);
4818
4818
  if (leaf.isBranch) {
4819
4819
  const {children: children} = leaf;
4820
4820
  for (let i = 0, len = children.length; i < len; i++) {
@@ -4835,9 +4835,10 @@ const LeafHelper = {
4835
4835
  if (layout.matrixChanged) leaf.__updateLocalMatrix();
4836
4836
  if (!layout.waitAutoLayout) leaf.__updateWorldMatrix();
4837
4837
  },
4838
- updateBounds(leaf) {
4838
+ updateBounds(leaf, noUpdateSize) {
4839
4839
  const layout = leaf.__layout;
4840
4840
  if (layout.boundsChanged) leaf.__updateLocalBounds();
4841
+ if (noUpdateSize) layout.resized = undefined;
4841
4842
  if (!layout.waitAutoLayout) leaf.__updateWorldBounds();
4842
4843
  },
4843
4844
  updateAllWorldOpacity(leaf) {
@@ -4860,7 +4861,7 @@ const LeafHelper = {
4860
4861
  }
4861
4862
  },
4862
4863
  updateAllChange(leaf) {
4863
- updateChange$1(leaf);
4864
+ updateChange(leaf);
4864
4865
  if (leaf.isBranch) {
4865
4866
  const {children: children} = leaf;
4866
4867
  for (let i = 0, len = children.length; i < len; i++) {
@@ -4882,6 +4883,13 @@ const LeafHelper = {
4882
4883
  if (!fromWorld) fromWorld = leaf.__nowWorld;
4883
4884
  if (leaf.__worldFlipped || Platform.fullImageShadow) currentCanvas.copyWorldByReset(fromCanvas, fromWorld, leaf.__nowWorld, blendMode, onlyResetTransform); else currentCanvas.copyWorldToInner(fromCanvas, fromWorld, leaf.__layout.renderBounds, blendMode);
4884
4885
  },
4886
+ clip(leaf, canvas, options) {
4887
+ if (leaf.__worldOpacity) {
4888
+ canvas.setWorld(leaf.__nowWorld = leaf.__getNowWorld(options));
4889
+ leaf.__drawRenderPath(canvas);
4890
+ canvas.clipUI(leaf);
4891
+ }
4892
+ },
4885
4893
  renderComplex(_leaf, _canvas, _options) {},
4886
4894
  updateComplex(_leaf) {},
4887
4895
  checkComplex(_leaf) {},
@@ -5032,7 +5040,7 @@ const LeafHelper = {
5032
5040
 
5033
5041
  const L = LeafHelper;
5034
5042
 
5035
- const {updateAllMatrix: updateAllMatrix$3, updateMatrix: updateMatrix$2, updateAllWorldOpacity: updateAllWorldOpacity, updateAllChange: updateAllChange$1, updateChange: updateChange$1} = L;
5043
+ const {updateAllMatrix: updateAllMatrix$3, updateMatrix: updateMatrix$1, updateAllWorldOpacity: updateAllWorldOpacity, updateAllChange: updateAllChange$1, updateChange: updateChange} = L;
5036
5044
 
5037
5045
  function getTempLocal(t, worldPoint) {
5038
5046
  t.updateLayout();
@@ -5078,7 +5086,7 @@ function checkMask(target, index) {
5078
5086
  return findMask < 0 ? null : (findMask && (findMask = -1), true);
5079
5087
  }
5080
5088
 
5081
- const {updateBounds: updateBounds$3} = LeafHelper;
5089
+ const {updateBounds: updateBounds$2} = LeafHelper;
5082
5090
 
5083
5091
  const BranchHelper = {
5084
5092
  sort(a, b) {
@@ -5139,10 +5147,10 @@ const BranchHelper = {
5139
5147
  branch = branchStack[i];
5140
5148
  children = branch.children;
5141
5149
  for (let j = 0, len = children.length; j < len; j++) {
5142
- updateBounds$3(children[j]);
5150
+ updateBounds$2(children[j]);
5143
5151
  }
5144
5152
  if (exclude && exclude === branch) continue;
5145
- updateBounds$3(branch);
5153
+ updateBounds$2(branch);
5146
5154
  }
5147
5155
  },
5148
5156
  move(branch, x, y) {
@@ -5204,7 +5212,7 @@ const WaitHelper = {
5204
5212
  }
5205
5213
  };
5206
5214
 
5207
- const {getRelativeWorld: getRelativeWorld$1, updateBounds: updateBounds$2} = LeafHelper;
5215
+ const {getRelativeWorld: getRelativeWorld$1, updateBounds: updateBounds$1} = LeafHelper;
5208
5216
 
5209
5217
  const {toOuterOf: toOuterOf$3, getPoints: getPoints, copy: copy$4} = BoundsHelper;
5210
5218
 
@@ -5312,7 +5320,7 @@ class LeafLayout {
5312
5320
  }
5313
5321
  update() {
5314
5322
  const {leaf: leaf} = this, {leafer: leafer} = leaf;
5315
- if (leaf.isApp) return updateBounds$2(leaf);
5323
+ if (leaf.isApp) return updateBounds$1(leaf);
5316
5324
  if (leafer) {
5317
5325
  if (leafer.ready) leafer.watcher.changed && leafer.layouter.layout(); else leafer.start();
5318
5326
  } else {
@@ -6049,9 +6057,12 @@ const LeafDataProxy = {
6049
6057
  }
6050
6058
  },
6051
6059
  emitPropertyEvent(type, name, oldValue, newValue) {
6052
- const event = new PropertyEvent(type, this, name, oldValue, newValue);
6053
- this.isLeafer || this.hasEvent(type) && this.emitEvent(event);
6054
- this.leafer.emitEvent(event);
6060
+ const {leafer: leafer} = this;
6061
+ if (leafer.config.trackChanges || leafer.zoomLayer === this) {
6062
+ const event = new PropertyEvent(type, this, name, oldValue, newValue);
6063
+ this.isLeafer || this.hasEvent(type) && this.emitEvent(event);
6064
+ leafer.emitEvent(event);
6065
+ } else leafer.watcher.add(this);
6055
6066
  },
6056
6067
  __realSetAttr(name, newValue) {
6057
6068
  const data = this.__;
@@ -6096,9 +6107,9 @@ const LeafMatrix = {
6096
6107
  }
6097
6108
  };
6098
6109
 
6099
- const {updateMatrix: updateMatrix$1, updateAllMatrix: updateAllMatrix$2} = LeafHelper;
6110
+ const {updateMatrix: updateMatrix, updateAllMatrix: updateAllMatrix$2} = LeafHelper;
6100
6111
 
6101
- const {updateBounds: updateBounds$1} = BranchHelper;
6112
+ const {updateBounds: updateBounds} = BranchHelper;
6102
6113
 
6103
6114
  const {toOuterOf: toOuterOf$2, copyAndSpread: copyAndSpread$2, copy: copy$3} = BoundsHelper;
6104
6115
 
@@ -6201,14 +6212,14 @@ const LeafBounds = {
6201
6212
  if (this.__layout.childrenSortChanged) this.__updateSortChildren();
6202
6213
  if (this.__layout.boxChanged) this.__updateFlowLayout();
6203
6214
  updateAllMatrix$2(this);
6204
- updateBounds$1(this, this);
6215
+ updateBounds(this, this);
6205
6216
  if (this.__.__autoSide) this.__updateBoxBounds(true);
6206
6217
  } else {
6207
6218
  updateAllMatrix$2(this);
6208
- updateBounds$1(this, this);
6219
+ updateBounds(this, this);
6209
6220
  }
6210
6221
  } else {
6211
- updateMatrix$1(this);
6222
+ updateMatrix(this);
6212
6223
  }
6213
6224
  },
6214
6225
  __updateNaturalSize() {
@@ -6254,11 +6265,7 @@ const LeafRender = {
6254
6265
  }
6255
6266
  },
6256
6267
  __clip(canvas, options) {
6257
- if (this.__worldOpacity) {
6258
- canvas.setWorld(this.__nowWorld = this.__getNowWorld(options));
6259
- this.__drawRenderPath(canvas);
6260
- canvas.clipUI(this);
6261
- }
6268
+ LeafHelper.clip(this, canvas, options);
6262
6269
  },
6263
6270
  __updateWorldOpacity() {
6264
6271
  this.__worldOpacity = this.__.visible ? this.parent ? this.parent.__worldOpacity * this.__.opacity : this.__.opacity : 0;
@@ -6881,9 +6888,12 @@ let Branch = class Branch extends Leaf {
6881
6888
  if (this.isFrame) child.__bindFrame(null);
6882
6889
  }
6883
6890
  __emitChildEvent(type, child) {
6884
- const event = new ChildEvent(type, child, this);
6885
- if (this.hasEvent(type) && !this.isLeafer) this.emitEvent(event);
6886
- this.leafer.emitEvent(event);
6891
+ const {leafer: leafer} = this;
6892
+ if (leafer.config.trackChanges || leafer.zoomLayer === this) {
6893
+ const event = new ChildEvent(type, child, this);
6894
+ if (this.hasEvent(type) && !this.isLeafer) this.emitEvent(event);
6895
+ leafer.emitEvent(event);
6896
+ } else leafer.watcher.addChild(child, this, type);
6887
6897
  }
6888
6898
  };
6889
6899
 
@@ -7036,7 +7046,7 @@ class LeafLevelList {
7036
7046
  }
7037
7047
  }
7038
7048
 
7039
- const version = "2.2.6";
7049
+ const version = "2.2.8";
7040
7050
 
7041
7051
  class LeaferCanvas extends LeaferCanvasBase {
7042
7052
  get allowBackgroundColor() {
@@ -7329,6 +7339,7 @@ class Watcher {
7329
7339
  }
7330
7340
  constructor(target, userConfig) {
7331
7341
  this.totalTimes = 0;
7342
+ this.changed = 0;
7332
7343
  this.config = {};
7333
7344
  this.__updatedList = new LeafList;
7334
7345
  this.target = target;
@@ -7348,8 +7359,10 @@ class Watcher {
7348
7359
  this.disabled = true;
7349
7360
  }
7350
7361
  update() {
7351
- this.changed = true;
7352
- if (this.running) this.target.emit(RenderEvent.REQUEST);
7362
+ if (this.changed < 100) {
7363
+ this.changed++;
7364
+ if (this.running) this.target.emit(RenderEvent.REQUEST);
7365
+ }
7353
7366
  }
7354
7367
  __onAttrChange(event) {
7355
7368
  this.add(event.target);
@@ -7358,18 +7371,21 @@ class Watcher {
7358
7371
  if (this.config.usePartLayout) this.__updatedList.add(leaf);
7359
7372
  this.update();
7360
7373
  }
7361
- __onChildEvent(event) {
7374
+ addChild(child, parent, eventType) {
7362
7375
  if (this.config.usePartLayout) {
7363
- if (event.type === ChildEvent.ADD) {
7376
+ if (eventType === ChildEvent.ADD) {
7364
7377
  this.hasAdd = true;
7365
- this.__pushChild(event.child);
7378
+ this.__pushChild(child);
7366
7379
  } else {
7367
7380
  this.hasRemove = true;
7368
- this.__updatedList.add(event.parent);
7381
+ this.__updatedList.add(parent);
7369
7382
  }
7370
7383
  }
7371
7384
  this.update();
7372
7385
  }
7386
+ __onChildEvent(event) {
7387
+ this.addChild(event.child, event.parent, event.type);
7388
+ }
7373
7389
  __pushChild(child) {
7374
7390
  this.__updatedList.add(child);
7375
7391
  if (child.isBranch) this.__loopChildren(child);
@@ -7384,7 +7400,8 @@ class Watcher {
7384
7400
  }));
7385
7401
  this.__updatedList = new LeafList;
7386
7402
  this.totalTimes++;
7387
- this.changed = this.hasVisible = this.hasRemove = this.hasAdd = false;
7403
+ this.hasVisible = this.hasRemove = this.hasAdd = false;
7404
+ this.changed = 0;
7388
7405
  }
7389
7406
  __listenEvents() {
7390
7407
  this.__eventIds = [ this.target.on_([ [ PropertyEvent.CHANGE, this.__onAttrChange, this ], [ [ ChildEvent.ADD, ChildEvent.REMOVE ], this.__onChildEvent, this ], [ WatchEvent.REQUEST, this.__onRquestData, this ] ]) ];
@@ -7405,47 +7422,57 @@ const {updateAllMatrix: updateAllMatrix$1, updateBounds: updateOneBounds, update
7405
7422
 
7406
7423
  const {pushAllChildBranch: pushAllChildBranch, pushAllParent: pushAllParent} = BranchHelper;
7407
7424
 
7408
- function updateMatrix(updateList, levelList) {
7409
- let layout;
7410
- updateList.list.forEach(leaf => {
7411
- layout = leaf.__layout;
7412
- if (levelList.without(leaf) && !layout.proxyZoom) {
7413
- if (layout.matrixChanged) {
7414
- updateAllMatrix$1(leaf, true);
7415
- levelList.add(leaf);
7416
- if (leaf.isBranch) pushAllChildBranch(leaf, levelList);
7417
- pushAllParent(leaf, levelList);
7418
- } else if (layout.boundsChanged) {
7419
- levelList.add(leaf);
7420
- if (leaf.isBranch) leaf.__tempNumber = 0;
7421
- pushAllParent(leaf, levelList);
7425
+ const LayouterHelper = {
7426
+ updateMatrix(updateList, levelList) {
7427
+ let index = 0, leaf, layout;
7428
+ const {list: list} = updateList;
7429
+ while (index < list.length) {
7430
+ leaf = list[index];
7431
+ layout = leaf.__layout;
7432
+ if (levelList.without(leaf) && !layout.proxyZoom) {
7433
+ if (layout.matrixChanged) {
7434
+ updateAllMatrix$1(leaf, true);
7435
+ if (leaf.isBranch) pushAllChildBranch(leaf, levelList);
7436
+ push(leaf, levelList);
7437
+ } else if (layout.boundsChanged) {
7438
+ if (leaf.isBranch) leaf.__tempNumber = 0;
7439
+ push(leaf, levelList);
7440
+ }
7422
7441
  }
7442
+ index++;
7423
7443
  }
7424
- });
7425
- }
7426
-
7427
- function updateBounds(boundsList) {
7428
- let list, branch, children;
7429
- boundsList.sort(true);
7430
- boundsList.levels.forEach(level => {
7431
- list = boundsList.levelMap[level];
7432
- for (let i = 0, len = list.length; i < len; i++) {
7433
- branch = list[i];
7434
- if (branch.isBranch && branch.__tempNumber) {
7435
- children = branch.children;
7436
- for (let j = 0, jLen = children.length; j < jLen; j++) {
7437
- if (!children[j].isBranch) {
7438
- updateOneBounds(children[j]);
7444
+ },
7445
+ updateBounds(boundsList) {
7446
+ let index = 0, level, list, branch, children;
7447
+ const {levels: levels, levelMap: levelMap} = boundsList;
7448
+ boundsList.sort(true);
7449
+ while (index < levels.length) {
7450
+ level = levels[index];
7451
+ list = levelMap[level];
7452
+ for (let i = 0, len = list.length; i < len; i++) {
7453
+ branch = list[i];
7454
+ if (branch.isBranch && branch.__tempNumber) {
7455
+ children = branch.children;
7456
+ for (let j = 0, jLen = children.length; j < jLen; j++) {
7457
+ if (!children[j].isBranch) {
7458
+ updateOneBounds(children[j]);
7459
+ }
7439
7460
  }
7440
7461
  }
7462
+ updateOneBounds(branch);
7441
7463
  }
7442
- updateOneBounds(branch);
7464
+ index++;
7443
7465
  }
7444
- });
7445
- }
7466
+ },
7467
+ updateChange(updateList) {
7468
+ updateList.list.forEach(updateOneChange);
7469
+ },
7470
+ push: push
7471
+ };
7446
7472
 
7447
- function updateChange(updateList) {
7448
- updateList.list.forEach(updateOneChange);
7473
+ function push(leaf, levelList) {
7474
+ levelList.add(leaf);
7475
+ pushAllParent(leaf, levelList);
7449
7476
  }
7450
7477
 
7451
7478
  const {worldBounds: worldBounds} = LeafBoundsHelper;
@@ -7552,9 +7579,9 @@ class Layouter {
7552
7579
  target.emitEvent(new LayoutEvent(BEFORE, blocks, this.times));
7553
7580
  this.extraBlock = null;
7554
7581
  updateList.sort();
7555
- updateMatrix(updateList, this.__levelList);
7556
- updateBounds(this.__levelList);
7557
- updateChange(updateList);
7582
+ LayouterHelper.updateMatrix(updateList, this.__levelList);
7583
+ LayouterHelper.updateBounds(this.__levelList);
7584
+ LayouterHelper.updateChange(updateList);
7558
7585
  if (this.extraBlock) blocks.push(this.extraBlock);
7559
7586
  blocks.forEach(item => item.setAfter());
7560
7587
  target.emitEvent(new LayoutEvent(LAYOUT, blocks, this.times));
@@ -7584,11 +7611,16 @@ class Layouter {
7584
7611
  if (target.isBranch) BranchHelper.updateBounds(target); else LeafHelper.updateBounds(target);
7585
7612
  updateAllChange(target);
7586
7613
  }
7587
- addExtra(leaf) {
7614
+ addExtra(leaf, updateBounds) {
7588
7615
  if (!this.__updatedList.has(leaf)) {
7589
7616
  const {updatedList: updatedList, beforeBounds: beforeBounds} = this.extraBlock || (this.extraBlock = new LayoutBlockData([]));
7590
7617
  updatedList.length ? beforeBounds.add(leaf.__world) : beforeBounds.set(leaf.__world);
7591
7618
  updatedList.add(leaf);
7619
+ if (updateBounds) {
7620
+ const list = this.__levelList;
7621
+ LayouterHelper.push(leaf, list);
7622
+ list.sort(true);
7623
+ }
7592
7624
  }
7593
7625
  }
7594
7626
  createBlock(data) {
@@ -8835,6 +8867,7 @@ let Leafer = Leafer_1 = class Leafer extends Group {
8835
8867
  start: true,
8836
8868
  hittable: true,
8837
8869
  smooth: true,
8870
+ trackChanges: true,
8838
8871
  lazySpeard: 100
8839
8872
  };
8840
8873
  this.leafs = 0;
@@ -10236,7 +10269,7 @@ function checkSizeAndCreateData(ui, attrName, paint, image, leafPaint, boxBounds
10236
10269
  data.__naturalHeight = image.height / data.pixelRatio;
10237
10270
  if (data.__autoSide) {
10238
10271
  ui.forceUpdate();
10239
- LeafHelper.updateBounds(ui);
10272
+ LeafHelper.updateBounds(ui, true);
10240
10273
  ui.__layout.boundsChanged = true;
10241
10274
  if (ui.__proxyData) {
10242
10275
  ui.setProxyAttr("width", data.width);
@@ -11511,4 +11544,4 @@ try {
11511
11544
  if (wx) useCanvas("miniapp", wx);
11512
11545
  } catch (_a) {}
11513
11546
 
11514
- export { AlignHelper, Answer, AroundHelper, AutoBounds, BezierHelper, Bounds, BoundsEvent, BoundsHelper, Box, BoxData, Branch, BranchHelper, BranchRender, Canvas, CanvasData, CanvasManager, ChildEvent, ColorConvert, Creator, DataHelper, Debug, Direction4, Direction9, Effect, Ellipse, EllipseData, EllipseHelper, Event, EventCreator, Eventer, Export, FileHelper, Filter, FourNumberHelper, Frame, FrameData, Group, GroupData, Image, ImageData, ImageEvent, ImageManager, IncrementId, LayoutEvent, Layouter, Leaf, LeafBounds, LeafBoundsHelper, LeafData, LeafDataProxy, LeafEventer, LeafHelper, LeafLayout, LeafLevelList, LeafList, LeafMatrix, LeafRender, Leafer, LeaferCanvas, LeaferCanvasBase, LeaferData, LeaferEvent, LeaferFilm, LeaferImage, LeaferVideo, Line, LineData, MathHelper, Matrix, MatrixHelper, MyImage, NeedConvertToCanvasCommandMap, OneRadian, PI2, PI_2, Paint, PaintGradient, PaintImage, Path, PathArrow, PathBounds, PathCommandDataHelper, PathCommandMap, PathCommandNodeHelper, PathConvert, PathCorner, PathCreator, PathData, PathDrawer, PathHelper, PathNodeHandleType, PathNumberCommandLengthMap, PathNumberCommandMap, Pen, PenData, Platform, Plugin, Point, PointHelper, Polygon, PolygonData, PropertyEvent, Rect, RectData, RectHelper, RectRender, RenderEvent, Renderer, ResizeEvent, Resource, Run, Star, StarData, State, StringNumberMap, TaskItem, TaskProcessor, Text, TextConvert, TextData, Transition, TwoPointBoundsHelper, UI, UIBounds, UICreator, UIData, UIRender, UnitConvert, UnitConvertHelper, WaitHelper, WatchEvent, Watcher, affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, canvasPatch, canvasSizeAttrs, createAttr, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, dimType, doBoundsType, doStrokeType, doSurfaceType, effectType, emptyData, eraserType, extraPropertyEventMap, getBoundsData, getDescriptor, getMatrixData, getPointData, hitType, isArray, isData, isEmptyData, isFinite, isNull, isNumber, isObject, isString, isUndefined, layoutProcessor, leaferTransformAttrMap, maskType, naturalBoundsType, opacityType, path, pathInputType, pathType, pen, positionType, registerPointsCurve, registerUI, registerUIEvent, resizeType, rewrite, rewriteAble, rotationType, scaleType, scrollType, sortType, strokeType, surfaceType, tempBounds$2 as tempBounds, tempMatrix$2 as tempMatrix, tempPoint$3 as tempPoint, tryToNumber, useCanvas, useModule, version, visibleType, zoomLayerType };
11547
+ export { AlignHelper, Answer, AroundHelper, AutoBounds, BezierHelper, Bounds, BoundsEvent, BoundsHelper, Box, BoxData, Branch, BranchHelper, BranchRender, Canvas, CanvasData, CanvasManager, ChildEvent, ColorConvert, Creator, DataHelper, Debug, Direction4, Direction9, Effect, Ellipse, EllipseData, EllipseHelper, Event, EventCreator, Eventer, Export, FileHelper, Filter, FourNumberHelper, Frame, FrameData, Group, GroupData, Image, ImageData, ImageEvent, ImageManager, IncrementId, LayoutEvent, Layouter, LayouterHelper, Leaf, LeafBounds, LeafBoundsHelper, LeafData, LeafDataProxy, LeafEventer, LeafHelper, LeafLayout, LeafLevelList, LeafList, LeafMatrix, LeafRender, Leafer, LeaferCanvas, LeaferCanvasBase, LeaferData, LeaferEvent, LeaferFilm, LeaferImage, LeaferVideo, Line, LineData, MathHelper, Matrix, MatrixHelper, MyImage, NeedConvertToCanvasCommandMap, OneRadian, PI2, PI_2, Paint, PaintGradient, PaintImage, Path, PathArrow, PathBounds, PathCommandDataHelper, PathCommandMap, PathCommandNodeHelper, PathConvert, PathCorner, PathCreator, PathData, PathDrawer, PathHelper, PathNodeHandleType, PathNumberCommandLengthMap, PathNumberCommandMap, Pen, PenData, Platform, Plugin, Point, PointHelper, Polygon, PolygonData, PropertyEvent, Rect, RectData, RectHelper, RectRender, RenderEvent, Renderer, ResizeEvent, Resource, Run, Star, StarData, State, StringNumberMap, TaskItem, TaskProcessor, Text, TextConvert, TextData, Transition, TwoPointBoundsHelper, UI, UIBounds, UICreator, UIData, UIRender, UnitConvert, UnitConvertHelper, WaitHelper, WatchEvent, Watcher, affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, canvasPatch, canvasSizeAttrs, createAttr, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, dimType, doBoundsType, doStrokeType, doSurfaceType, effectType, emptyData, eraserType, extraPropertyEventMap, getBoundsData, getDescriptor, getMatrixData, getPointData, hitType, isArray, isData, isEmptyData, isFinite, isNull, isNumber, isObject, isString, isUndefined, layoutProcessor, leaferTransformAttrMap, maskType, naturalBoundsType, opacityType, path, pathInputType, pathType, pen, positionType, registerPointsCurve, registerUI, registerUIEvent, resizeType, rewrite, rewriteAble, rotationType, scaleType, scrollType, sortType, strokeType, surfaceType, tempBounds$2 as tempBounds, tempMatrix$2 as tempMatrix, tempPoint$3 as tempPoint, tryToNumber, useCanvas, useModule, version, visibleType, zoomLayerType };