@leafer-draw/miniapp 1.10.0 → 1.11.0

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.
@@ -872,9 +872,10 @@ const PointHelper = {
872
872
  getAtan2(t, to) {
873
873
  return atan2$2(to.y - t.y, to.x - t.x);
874
874
  },
875
- getDistancePoint(t, to, distance, changeTo) {
875
+ getDistancePoint(t, to, distance, changeTo, fromTo) {
876
876
  const r = getAtan2(t, to);
877
- to = changeTo ? to : {};
877
+ fromTo && (t = to);
878
+ changeTo || (to = {});
878
879
  to.x = t.x + cos$4(r) * distance;
879
880
  to.y = t.y + sin$4(r) * distance;
880
881
  return to;
@@ -884,6 +885,9 @@ const PointHelper = {
884
885
  if (isObject(originPoints[0])) points = [], originPoints.forEach(p => points.push(p.x, p.y));
885
886
  return points;
886
887
  },
888
+ isSame(t, point) {
889
+ return t.x === point.x && t.y === point.y;
890
+ },
887
891
  reset(t) {
888
892
  P$5.reset(t);
889
893
  }
@@ -948,8 +952,8 @@ class Point {
948
952
  getDistance(to) {
949
953
  return PointHelper.getDistance(this, to);
950
954
  }
951
- getDistancePoint(to, distance, changeTo) {
952
- return new Point(PointHelper.getDistancePoint(this, to, distance, changeTo));
955
+ getDistancePoint(to, distance, changeTo, fromTo) {
956
+ return new Point(PointHelper.getDistancePoint(this, to, distance, changeTo, fromTo));
953
957
  }
954
958
  getAngle(to) {
955
959
  return PointHelper.getAngle(this, to);
@@ -957,6 +961,9 @@ class Point {
957
961
  getAtan2(to) {
958
962
  return PointHelper.getAtan2(this, to);
959
963
  }
964
+ isSame(point) {
965
+ return PointHelper.isSame(this, point);
966
+ }
960
967
  reset() {
961
968
  PointHelper.reset(this);
962
969
  return this;
@@ -2876,6 +2883,15 @@ const EllipseHelper = {
2876
2883
  }
2877
2884
  };
2878
2885
 
2886
+ const PathCommandNodeHelper = {
2887
+ toCommand(_nodes) {
2888
+ return [];
2889
+ },
2890
+ toNode(_data) {
2891
+ return [];
2892
+ }
2893
+ };
2894
+
2879
2895
  const {M: M$4, m: m, L: L$5, l: l, H: H, h: h, V: V, v: v, C: C$3, c: c, S: S, s: s, Q: Q$3, q: q, T: T, t: t, A: A, a: a, Z: Z$4, z: z, N: N$3, D: D$3, X: X$3, G: G$3, F: F$4, O: O$3, P: P$3, U: U$3} = PathCommandMap;
2880
2896
 
2881
2897
  const {rect: rect$2, roundRect: roundRect$2, arcTo: arcTo$3, arc: arc$3, ellipse: ellipse$4, quadraticCurveTo: quadraticCurveTo$1} = BezierHelper;
@@ -3154,30 +3170,34 @@ const PathConvert = {
3154
3170
  return data;
3155
3171
  },
3156
3172
  objectToCanvasData(list) {
3157
- const data = [];
3158
- list.forEach(item => {
3159
- switch (item.name) {
3160
- case "M":
3161
- data.push(M$4, item.x, item.y);
3162
- break;
3173
+ if (list[0].name.length > 1) {
3174
+ return PathCommandNodeHelper.toCommand(list);
3175
+ } else {
3176
+ const data = [];
3177
+ list.forEach(item => {
3178
+ switch (item.name) {
3179
+ case "M":
3180
+ data.push(M$4, item.x, item.y);
3181
+ break;
3163
3182
 
3164
- case "L":
3165
- data.push(L$5, item.x, item.y);
3166
- break;
3183
+ case "L":
3184
+ data.push(L$5, item.x, item.y);
3185
+ break;
3167
3186
 
3168
- case "C":
3169
- data.push(C$3, item.x1, item.y1, item.x2, item.y2, item.x, item.y);
3170
- break;
3187
+ case "C":
3188
+ data.push(C$3, item.x1, item.y1, item.x2, item.y2, item.x, item.y);
3189
+ break;
3171
3190
 
3172
- case "Q":
3173
- data.push(Q$3, item.x1, item.y1, item.x, item.y);
3174
- break;
3191
+ case "Q":
3192
+ data.push(Q$3, item.x1, item.y1, item.x, item.y);
3193
+ break;
3175
3194
 
3176
- case "Z":
3177
- data.push(Z$4);
3178
- }
3179
- });
3180
- return data;
3195
+ case "Z":
3196
+ data.push(Z$4);
3197
+ }
3198
+ });
3199
+ return data;
3200
+ }
3181
3201
  },
3182
3202
  copyData(data, old, index, count) {
3183
3203
  for (let i = index, end = index + count; i < end; i++) {
@@ -6835,7 +6855,7 @@ class LeafLevelList {
6835
6855
  }
6836
6856
  }
6837
6857
 
6838
- const version = "1.10.0";
6858
+ const version = "1.11.0";
6839
6859
 
6840
6860
  class LeaferCanvas extends LeaferCanvasBase {
6841
6861
  get allowBackgroundColor() {
@@ -7762,7 +7782,9 @@ const {parse: parse, objectToCanvasData: objectToCanvasData} = PathConvert;
7762
7782
 
7763
7783
  const {stintSet: stintSet$3} = DataHelper, {hasTransparent: hasTransparent$2} = ColorConvert;
7764
7784
 
7765
- const emptyPaint = {};
7785
+ const emptyPaint = {
7786
+ originPaint: {}
7787
+ };
7766
7788
 
7767
7789
  const debug$1 = Debug.get("UIData");
7768
7790
 
@@ -8301,7 +8323,7 @@ let UI = UI_1 = class UI extends Leaf {
8301
8323
  drawer.roundRect(x, y, width, height, isNumber(cornerRadius) ? [ cornerRadius ] : cornerRadius);
8302
8324
  } else drawer.rect(x, y, width, height);
8303
8325
  }
8304
- drawImagePlaceholder(_image, canvas, renderOptions) {
8326
+ drawImagePlaceholder(_paint, canvas, renderOptions) {
8305
8327
  Paint.fill(this.__.placeholderColor, this, canvas, renderOptions);
8306
8328
  }
8307
8329
  animate(keyframe, _options, _type, _isTemp) {
@@ -8986,7 +9008,7 @@ let Box = class Box extends Group {
8986
9008
  const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout, {overflow: overflow} = data;
8987
9009
  const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
8988
9010
  super.__updateRenderBounds(childrenRenderBounds);
8989
- if (isScrollMode = overflow.includes("scroll")) {
9011
+ if (isScrollMode = overflow && overflow.includes("scroll")) {
8990
9012
  add(childrenRenderBounds, boxBounds);
8991
9013
  scroll(childrenRenderBounds, data);
8992
9014
  }
@@ -9559,30 +9581,31 @@ function fill(fill, ui, canvas, renderOptions) {
9559
9581
  }
9560
9582
 
9561
9583
  function fills(fills, ui, canvas, renderOptions) {
9562
- let item;
9584
+ let item, originPaint, countImage;
9563
9585
  for (let i = 0, len = fills.length; i < len; i++) {
9564
- item = fills[i];
9586
+ item = fills[i], originPaint = item.originPaint;
9565
9587
  if (item.image) {
9588
+ countImage ? countImage++ : countImage = 1;
9566
9589
  if (PaintImage.checkImage(item, !ui.__.__font, ui, canvas, renderOptions)) continue;
9567
9590
  if (!item.style) {
9568
- if (!i && item.image.isPlacehold) ui.drawImagePlaceholder(item.image, canvas, renderOptions);
9591
+ if (countImage === 1 && item.image.isPlacehold) ui.drawImagePlaceholder(item, canvas, renderOptions);
9569
9592
  continue;
9570
9593
  }
9571
9594
  }
9572
9595
  canvas.fillStyle = item.style;
9573
- if (item.transform || item.scaleFixed) {
9596
+ if (item.transform || originPaint.scaleFixed) {
9574
9597
  canvas.save();
9575
9598
  if (item.transform) canvas.transform(item.transform);
9576
- if (item.scaleFixed) {
9599
+ if (originPaint.scaleFixed) {
9577
9600
  const {scaleX: scaleX, scaleY: scaleY} = ui.getRenderScaleData(true);
9578
- if (item.scaleFixed === true || item.scaleFixed === "zoom-in" && scaleX > 1 && scaleY > 1) canvas.scale(1 / scaleX, 1 / scaleY);
9601
+ if (originPaint.scaleFixed === true || originPaint.scaleFixed === "zoom-in" && scaleX > 1 && scaleY > 1) canvas.scale(1 / scaleX, 1 / scaleY);
9579
9602
  }
9580
- if (item.blendMode) canvas.blendMode = item.blendMode;
9603
+ if (originPaint.blendMode) canvas.blendMode = originPaint.blendMode;
9581
9604
  fillPathOrText(ui, canvas, renderOptions);
9582
9605
  canvas.restore();
9583
9606
  } else {
9584
- if (item.blendMode) {
9585
- canvas.saveBlendMode(item.blendMode);
9607
+ if (originPaint.blendMode) {
9608
+ canvas.saveBlendMode(originPaint.blendMode);
9586
9609
  fillPathOrText(ui, canvas, renderOptions);
9587
9610
  canvas.restoreBlendMode();
9588
9611
  } else fillPathOrText(ui, canvas, renderOptions);
@@ -9735,8 +9758,8 @@ function drawStrokesStyle(strokes, strokeWidthScale, isText, ui, canvas, renderO
9735
9758
  const {strokeStyle: strokeStyle} = item;
9736
9759
  strokeStyle ? canvas.setStroke(item.style, data.__getRealStrokeWidth(strokeStyle) * strokeWidthScale, data, strokeStyle) : canvas.setStroke(item.style, data.__strokeWidth * strokeWidthScale, data);
9737
9760
  } else canvas.strokeStyle = item.style;
9738
- if (item.blendMode) {
9739
- canvas.saveBlendMode(item.blendMode);
9761
+ if (item.originPaint.blendMode) {
9762
+ canvas.saveBlendMode(item.originPaint.blendMode);
9740
9763
  isText ? Paint.drawTextStroke(ui, canvas, renderOptions) : canvas.stroke();
9741
9764
  canvas.restoreBlendMode();
9742
9765
  } else {
@@ -9833,62 +9856,63 @@ function compute(attrName, ui) {
9833
9856
  if (leafPaints.some(item => item.image)) isAlphaPixel = true;
9834
9857
  isTransparent = true;
9835
9858
  }
9836
- }
9837
- if (attrName === "fill") {
9838
- stintSet(data, "__isAlphaPixelFill", isAlphaPixel);
9839
- stintSet(data, "__isTransparentFill", isTransparent);
9859
+ if (attrName === "fill") {
9860
+ stintSet(data, "__isAlphaPixelFill", isAlphaPixel);
9861
+ stintSet(data, "__isTransparentFill", isTransparent);
9862
+ } else {
9863
+ stintSet(data, "__isAlphaPixelStroke", isAlphaPixel);
9864
+ stintSet(data, "__isTransparentStroke", isTransparent);
9865
+ stintSet(data, "__hasMultiStrokeStyle", maxChildStrokeWidth);
9866
+ }
9840
9867
  } else {
9841
- stintSet(data, "__isAlphaPixelStroke", isAlphaPixel);
9842
- stintSet(data, "__isTransparentStroke", isTransparent);
9843
- stintSet(data, "__hasMultiStrokeStyle", maxChildStrokeWidth);
9868
+ data.__removePaint(attrName, false);
9844
9869
  }
9845
9870
  }
9846
9871
 
9847
9872
  function getLeafPaint(attrName, paint, ui) {
9848
9873
  if (!isObject(paint) || paint.visible === false || paint.opacity === 0) return undefined;
9849
- let data;
9874
+ let leafPaint;
9850
9875
  const {boxBounds: boxBounds} = ui.__layout;
9851
9876
  switch (paint.type) {
9852
9877
  case "image":
9853
- data = PaintImage.image(ui, attrName, paint, boxBounds, !recycleMap || !recycleMap[paint.url]);
9878
+ leafPaint = PaintImage.image(ui, attrName, paint, boxBounds, !recycleMap || !recycleMap[paint.url]);
9854
9879
  break;
9855
9880
 
9856
9881
  case "linear":
9857
- data = PaintGradient.linearGradient(paint, boxBounds);
9882
+ leafPaint = PaintGradient.linearGradient(paint, boxBounds);
9858
9883
  break;
9859
9884
 
9860
9885
  case "radial":
9861
- data = PaintGradient.radialGradient(paint, boxBounds);
9886
+ leafPaint = PaintGradient.radialGradient(paint, boxBounds);
9862
9887
  break;
9863
9888
 
9864
9889
  case "angular":
9865
- data = PaintGradient.conicGradient(paint, boxBounds);
9890
+ leafPaint = PaintGradient.conicGradient(paint, boxBounds);
9866
9891
  break;
9867
9892
 
9868
9893
  case "solid":
9869
9894
  const {type: type, color: color, opacity: opacity} = paint;
9870
- data = {
9895
+ leafPaint = {
9871
9896
  type: type,
9872
9897
  style: ColorConvert.string(color, opacity)
9873
9898
  };
9874
9899
  break;
9875
9900
 
9876
9901
  default:
9877
- if (!isUndefined(paint.r)) data = {
9902
+ if (!isUndefined(paint.r)) leafPaint = {
9878
9903
  type: "solid",
9879
9904
  style: ColorConvert.string(paint)
9880
9905
  };
9881
9906
  }
9882
- if (data) {
9883
- if (isString(data.style) && hasTransparent$1(data.style)) data.isTransparent = true;
9907
+ if (leafPaint) {
9908
+ leafPaint.originPaint = paint;
9909
+ if (isString(leafPaint.style) && hasTransparent$1(leafPaint.style)) leafPaint.isTransparent = true;
9884
9910
  if (paint.style) {
9885
9911
  if (paint.style.strokeWidth === 0) return undefined;
9886
- data.strokeStyle = paint.style;
9912
+ leafPaint.strokeStyle = paint.style;
9887
9913
  }
9888
- if (paint.editing) data.editing = paint.editing;
9889
- if (paint.blendMode) data.blendMode = paint.blendMode;
9890
9914
  }
9891
- return data;
9915
+ return leafPaint;
9892
9916
  }
9893
9917
 
9894
9918
  const PaintModule = {
@@ -10021,10 +10045,6 @@ const tempScaleData = {};
10021
10045
  const tempImage = {};
10022
10046
 
10023
10047
  function createData(leafPaint, image, paint, box) {
10024
- const {changeful: changeful, sync: sync, scaleFixed: scaleFixed} = paint;
10025
- if (changeful) leafPaint.changeful = changeful;
10026
- if (sync) leafPaint.sync = sync;
10027
- if (scaleFixed) leafPaint.scaleFixed = scaleFixed;
10028
10048
  leafPaint.data = PaintImage.getPatternData(paint, box, image);
10029
10049
  }
10030
10050
 
@@ -10251,14 +10271,14 @@ function getPatternFixScale(paint, imageScaleX, imageScaleY) {
10251
10271
 
10252
10272
  function checkImage(paint, drawImage, ui, canvas, renderOptions) {
10253
10273
  const {scaleX: scaleX, scaleY: scaleY} = PaintImage.getImageRenderScaleData(paint, ui, canvas, renderOptions);
10254
- const {image: image, data: data} = paint, {exporting: exporting} = renderOptions;
10274
+ const {image: image, data: data, originPaint: originPaint} = paint, {exporting: exporting} = renderOptions;
10255
10275
  if (!data || paint.patternId === scaleX + "-" + scaleY && !exporting) {
10256
10276
  return false;
10257
10277
  } else {
10258
10278
  if (drawImage) {
10259
10279
  if (data.repeat) {
10260
10280
  drawImage = false;
10261
- } else if (!(paint.changeful || Platform.name === "miniapp" && ResizeEvent.isResizing(ui) || exporting)) {
10281
+ } else if (!(originPaint.changeful || Platform.name === "miniapp" && ResizeEvent.isResizing(ui) || exporting)) {
10262
10282
  drawImage = Platform.image.isLarge(image, scaleX, scaleY);
10263
10283
  }
10264
10284
  }
@@ -10270,16 +10290,16 @@ function checkImage(paint, drawImage, ui, canvas, renderOptions) {
10270
10290
  PaintImage.drawImage(paint, scaleX, scaleY, ui, canvas, renderOptions);
10271
10291
  return true;
10272
10292
  } else {
10273
- if (!paint.style || paint.sync || exporting) PaintImage.createPattern(paint, ui, canvas, renderOptions); else PaintImage.createPatternTask(paint, ui, canvas, renderOptions);
10293
+ if (!paint.style || originPaint.sync || exporting) PaintImage.createPattern(paint, ui, canvas, renderOptions); else PaintImage.createPatternTask(paint, ui, canvas, renderOptions);
10274
10294
  return false;
10275
10295
  }
10276
10296
  }
10277
10297
  }
10278
10298
 
10279
10299
  function drawImage(paint, _imageScaleX, _imageScaleY, ui, canvas, _renderOptions) {
10280
- const {data: data, image: image, blendMode: blendMode} = paint, {opacity: opacity, transform: transform} = data, view = image.getFull(data.filters), u = ui.__;
10300
+ const {data: data, image: image} = paint, {blendMode: blendMode} = paint.originPaint, {opacity: opacity, transform: transform} = data, view = image.getFull(data.filters), u = ui.__;
10281
10301
  let {width: width, height: height} = image, clipUI;
10282
- if (transform && !transform.onlyScale || (clipUI = u.path || u.cornerRadius) || opacity || blendMode) {
10302
+ if ((clipUI = transform && !transform.onlyScale || u.path || u.cornerRadius) || opacity || blendMode) {
10283
10303
  canvas.save();
10284
10304
  clipUI && canvas.clipUI(ui);
10285
10305
  blendMode && (canvas.blendMode = blendMode);
@@ -10294,7 +10314,7 @@ function drawImage(paint, _imageScaleX, _imageScaleY, ui, canvas, _renderOptions
10294
10314
  }
10295
10315
 
10296
10316
  function getImageRenderScaleData(paint, ui, canvas, _renderOptions) {
10297
- const scaleData = ui.getRenderScaleData(true, paint.scaleFixed), {data: data} = paint;
10317
+ const scaleData = ui.getRenderScaleData(true, paint.originPaint.scaleFixed), {data: data} = paint;
10298
10318
  if (canvas) {
10299
10319
  const {pixelRatio: pixelRatio} = canvas;
10300
10320
  scaleData.scaleX *= pixelRatio;
@@ -11230,4 +11250,4 @@ try {
11230
11250
  if (wx) useCanvas("miniapp", wx);
11231
11251
  } catch (_a) {}
11232
11252
 
11233
- 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, LeaferImage, Line, LineData, MathHelper, Matrix, MatrixHelper, MyImage, NeedConvertToCanvasCommandMap, OneRadian, PI2, PI_2, Paint, PaintGradient, PaintImage, Path, PathArrow, PathBounds, PathCommandDataHelper, PathCommandMap, PathConvert, PathCorner, PathCreator, PathData, PathDrawer, PathHelper, 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, WaitHelper, WatchEvent, Watcher, affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, canvasPatch, canvasSizeAttrs, createAttr, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, dimType, doBoundsType, doStrokeType, 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, registerUI, registerUIEvent, resizeType, rewrite, rewriteAble, rotationType, scaleType, scrollType, sortType, strokeType, surfaceType, tempBounds$2 as tempBounds, tempMatrix$2 as tempMatrix, tempPoint$2 as tempPoint, tryToNumber, useCanvas, useModule, version, visibleType, zoomLayerType };
11253
+ 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, LeaferImage, 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, 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, WaitHelper, WatchEvent, Watcher, affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, canvasPatch, canvasSizeAttrs, createAttr, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, dimType, doBoundsType, doStrokeType, 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, registerUI, registerUIEvent, resizeType, rewrite, rewriteAble, rotationType, scaleType, scrollType, sortType, strokeType, surfaceType, tempBounds$2 as tempBounds, tempMatrix$2 as tempMatrix, tempPoint$2 as tempPoint, tryToNumber, useCanvas, useModule, version, visibleType, zoomLayerType };