@visactor/vrender 0.22.9-alpha.2 → 0.22.10
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/cjs/index.d.ts +1 -1
- package/cjs/index.js +10 -11
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +87 -199
- package/dist/index.js +88 -204
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -574,48 +574,6 @@ const EnvContribution = Symbol.for("EnvContribution");
|
|
|
574
574
|
const VGlobal = Symbol.for("VGlobal");
|
|
575
575
|
const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
576
576
|
|
|
577
|
-
class EventListenerManager {
|
|
578
|
-
constructor() {
|
|
579
|
-
this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
|
|
580
|
-
}
|
|
581
|
-
setEventListenerTransformer(transformer) {
|
|
582
|
-
this._eventListenerTransformer = transformer || (event => event);
|
|
583
|
-
}
|
|
584
|
-
addEventListener(type, listener, options) {
|
|
585
|
-
if (!listener) return;
|
|
586
|
-
const wrappedListener = event => {
|
|
587
|
-
const transformedEvent = this._eventListenerTransformer(event);
|
|
588
|
-
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
589
|
-
};
|
|
590
|
-
this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
|
|
591
|
-
}
|
|
592
|
-
removeEventListener(type, listener, options) {
|
|
593
|
-
var _a;
|
|
594
|
-
if (!listener) return;
|
|
595
|
-
const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
|
|
596
|
-
wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
|
|
597
|
-
}
|
|
598
|
-
dispatchEvent(event) {
|
|
599
|
-
return this._nativeDispatchEvent(event);
|
|
600
|
-
}
|
|
601
|
-
clearAllEventListeners() {
|
|
602
|
-
this._listenerMap.forEach((listenersMap, type) => {
|
|
603
|
-
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
604
|
-
this._nativeRemoveEventListener(type, wrappedListener, void 0);
|
|
605
|
-
});
|
|
606
|
-
}), this._listenerMap.clear();
|
|
607
|
-
}
|
|
608
|
-
_nativeAddEventListener(type, listener, options) {
|
|
609
|
-
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
610
|
-
}
|
|
611
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
612
|
-
throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
|
|
613
|
-
}
|
|
614
|
-
_nativeDispatchEvent(event) {
|
|
615
|
-
throw new Error("_nativeDispatchEvent must be implemented by derived classes");
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
577
|
var __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
620
578
|
var d,
|
|
621
579
|
c = arguments.length,
|
|
@@ -656,7 +614,7 @@ var __decorate$1N = undefined && undefined.__decorate || function (decorators, t
|
|
|
656
614
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
657
615
|
});
|
|
658
616
|
};
|
|
659
|
-
let DefaultGlobal = class
|
|
617
|
+
let DefaultGlobal = class {
|
|
660
618
|
get env() {
|
|
661
619
|
return this._env;
|
|
662
620
|
}
|
|
@@ -700,19 +658,10 @@ let DefaultGlobal = class extends EventListenerManager {
|
|
|
700
658
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
701
659
|
}
|
|
702
660
|
constructor(contributions) {
|
|
703
|
-
|
|
661
|
+
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
704
662
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
705
663
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
706
664
|
}
|
|
707
|
-
_nativeAddEventListener(type, listener, options) {
|
|
708
|
-
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
709
|
-
}
|
|
710
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
711
|
-
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
712
|
-
}
|
|
713
|
-
_nativeDispatchEvent(event) {
|
|
714
|
-
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
715
|
-
}
|
|
716
665
|
bindContribution(params) {
|
|
717
666
|
const promiseArr = [];
|
|
718
667
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -753,6 +702,15 @@ let DefaultGlobal = class extends EventListenerManager {
|
|
|
753
702
|
releaseCanvas(canvas) {
|
|
754
703
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
755
704
|
}
|
|
705
|
+
addEventListener(type, listener, options) {
|
|
706
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
707
|
+
}
|
|
708
|
+
removeEventListener(type, listener, options) {
|
|
709
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
710
|
+
}
|
|
711
|
+
dispatchEvent(event) {
|
|
712
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
713
|
+
}
|
|
756
714
|
getRequestAnimationFrame() {
|
|
757
715
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
758
716
|
}
|
|
@@ -1214,14 +1172,14 @@ const isArrayLike = function (value) {
|
|
|
1214
1172
|
};
|
|
1215
1173
|
var isArrayLike$1 = isArrayLike;
|
|
1216
1174
|
|
|
1217
|
-
const isNumber
|
|
1175
|
+
const isNumber = function (value) {
|
|
1218
1176
|
let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
1219
1177
|
const type = typeof value;
|
|
1220
1178
|
return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
|
|
1221
1179
|
};
|
|
1222
|
-
var isNumber$
|
|
1180
|
+
var isNumber$1 = isNumber;
|
|
1223
1181
|
|
|
1224
|
-
const isValidNumber = value => isNumber$
|
|
1182
|
+
const isValidNumber = value => isNumber$1(value) && Number.isFinite(value);
|
|
1225
1183
|
var isValidNumber$1 = isValidNumber;
|
|
1226
1184
|
|
|
1227
1185
|
const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
|
|
@@ -1304,7 +1262,7 @@ var LoggerLevel;
|
|
|
1304
1262
|
}(LoggerLevel || (LoggerLevel = {}));
|
|
1305
1263
|
class Logger {
|
|
1306
1264
|
static getInstance(level, method) {
|
|
1307
|
-
return Logger._instance && isNumber$
|
|
1265
|
+
return Logger._instance && isNumber$1(level) ? Logger._instance.level(level) : Logger._instance || (Logger._instance = new Logger(level, method)), Logger._instance;
|
|
1308
1266
|
}
|
|
1309
1267
|
static setInstance(logger) {
|
|
1310
1268
|
return Logger._instance = logger;
|
|
@@ -1448,10 +1406,10 @@ class Point {
|
|
|
1448
1406
|
return this.x = x, this.y = y, this;
|
|
1449
1407
|
}
|
|
1450
1408
|
add(point) {
|
|
1451
|
-
return isNumber$
|
|
1409
|
+
return isNumber$1(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
1452
1410
|
}
|
|
1453
1411
|
sub(point) {
|
|
1454
|
-
return isNumber$
|
|
1412
|
+
return isNumber$1(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
1455
1413
|
}
|
|
1456
1414
|
multi(point) {
|
|
1457
1415
|
throw new Error("暂不支持");
|
|
@@ -2512,10 +2470,10 @@ function hex(value) {
|
|
|
2512
2470
|
return ((value = Math.max(0, Math.min(255, Math.round(value) || 0))) < 16 ? "0" : "") + value.toString(16);
|
|
2513
2471
|
}
|
|
2514
2472
|
function rgb(value) {
|
|
2515
|
-
return isNumber$
|
|
2473
|
+
return isNumber$1(value) ? new RGB(value >> 16, value >> 8 & 255, 255 & value, 1) : isArray$1(value) ? new RGB(value[0], value[1], value[2]) : new RGB(255, 255, 255);
|
|
2516
2474
|
}
|
|
2517
2475
|
function rgba(value) {
|
|
2518
|
-
return isNumber$
|
|
2476
|
+
return isNumber$1(value) ? new RGB(value >>> 24, value >>> 16 & 255, value >>> 8 & 255, 255 & value) : isArray$1(value) ? new RGB(value[0], value[1], value[2], value[3]) : new RGB(255, 255, 255, 1);
|
|
2519
2477
|
}
|
|
2520
2478
|
function SRGBToLinear(c) {
|
|
2521
2479
|
return c < .04045 ? .0773993808 * c : Math.pow(.9478672986 * c + .0521327014, 2.4);
|
|
@@ -3553,6 +3511,11 @@ let Step$1 = class Step {
|
|
|
3553
3511
|
return this.context.tryUpdateLength();
|
|
3554
3512
|
}
|
|
3555
3513
|
};
|
|
3514
|
+
class StepClosed extends Step$1 {
|
|
3515
|
+
lineEnd() {
|
|
3516
|
+
this.context.closePath();
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3556
3519
|
function genStepSegments(points, t) {
|
|
3557
3520
|
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3558
3521
|
const {
|
|
@@ -3566,6 +3529,16 @@ function genStepSegments(points, t) {
|
|
|
3566
3529
|
function genStepTypeSegments(path, points) {
|
|
3567
3530
|
return genCurveSegments(path, points);
|
|
3568
3531
|
}
|
|
3532
|
+
function genStepClosedSegments(points, t) {
|
|
3533
|
+
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3534
|
+
const {
|
|
3535
|
+
direction: direction,
|
|
3536
|
+
startPoint: startPoint
|
|
3537
|
+
} = params;
|
|
3538
|
+
if (points.length < 2 - Number(!!startPoint)) return null;
|
|
3539
|
+
const segContext = new SegContext("step", null != direction ? direction : abs(points[points.length - 1].x - points[0].x) > abs(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
|
|
3540
|
+
return genStepTypeSegments(new StepClosed(segContext, t, startPoint), points), segContext;
|
|
3541
|
+
}
|
|
3569
3542
|
|
|
3570
3543
|
class LinearClosed extends Linear {
|
|
3571
3544
|
lineEnd() {
|
|
@@ -3795,6 +3768,8 @@ function calcLineCache(points, curveType, params) {
|
|
|
3795
3768
|
return genMonotoneYSegments(points, params);
|
|
3796
3769
|
case "step":
|
|
3797
3770
|
return genStepSegments(points, .5, params);
|
|
3771
|
+
case "stepClosed":
|
|
3772
|
+
return genStepClosedSegments(points, .5, params);
|
|
3798
3773
|
case "stepBefore":
|
|
3799
3774
|
return genStepSegments(points, 0, params);
|
|
3800
3775
|
case "stepAfter":
|
|
@@ -4677,7 +4652,7 @@ function getScaledStroke(context, width, dpr) {
|
|
|
4677
4652
|
function createColor(context, c, params) {
|
|
4678
4653
|
let offsetX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
4679
4654
|
let offsetY = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
4680
|
-
var _a, _b;
|
|
4655
|
+
var _a, _b, _c, _d;
|
|
4681
4656
|
if (!c || !0 === c) return "black";
|
|
4682
4657
|
let result, color;
|
|
4683
4658
|
if (isArray$1(c)) for (let i = 0; i < c.length && (color = c[i], !color); i++);else color = c;
|
|
@@ -4694,7 +4669,7 @@ function createColor(context, c, params) {
|
|
|
4694
4669
|
scaleY = 1,
|
|
4695
4670
|
angle = 0
|
|
4696
4671
|
} = params.attribute;
|
|
4697
|
-
w /= scaleX, h /= scaleY, x /= scaleX, y /= scaleY, (angle || 1 !== scaleX || 1 !== scaleY) && (x = 0, y = 0, w = null !== (
|
|
4672
|
+
w /= scaleX, h /= scaleY, x /= scaleX, y /= scaleY, (angle || 1 !== scaleX || 1 !== scaleY) && (x = null !== (_a = params.x1WithoutTransform) && void 0 !== _a ? _a : 0, y = null !== (_b = params.y1WithoutTransform) && void 0 !== _b ? _b : 0, w = null !== (_c = params.widthWithoutTransform) && void 0 !== _c ? _c : w, h = null !== (_d = params.heightWithoutTransform) && void 0 !== _d ? _d : h);
|
|
4698
4673
|
}
|
|
4699
4674
|
"linear" === color.gradient ? result = createLinearGradient(context, color, x, y, w, h) : "conical" === color.gradient ? result = createConicGradient(context, color, x, y, w, h) : "radial" === color.gradient && (result = createRadialGradient(context, color, x, y, w, h));
|
|
4700
4675
|
}
|
|
@@ -4719,7 +4694,7 @@ function createConicGradient(context, color, x, y, w, h) {
|
|
|
4719
4694
|
const canvasGradient = context.createConicGradient(x + (null !== (_a = color.x) && void 0 !== _a ? _a : 0) * w, y + (null !== (_b = color.y) && void 0 !== _b ? _b : 0) * h, color.startAngle, color.endAngle);
|
|
4720
4695
|
return color.stops.forEach(stop => {
|
|
4721
4696
|
canvasGradient.addColorStop(stop.offset, stop.color);
|
|
4722
|
-
}), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
4697
|
+
}), canvasGradient.GetPattern ? canvasGradient.GetPattern(w + x, h + y, undefined) : canvasGradient;
|
|
4723
4698
|
}
|
|
4724
4699
|
|
|
4725
4700
|
const DIRECTION_KEY = {
|
|
@@ -5284,9 +5259,6 @@ function isAroundZero(val) {
|
|
|
5284
5259
|
function isNotAroundZero(val) {
|
|
5285
5260
|
return val > EPSILON || val < -EPSILON;
|
|
5286
5261
|
}
|
|
5287
|
-
function isNumber(data) {
|
|
5288
|
-
return "number" == typeof data && Number.isFinite(data);
|
|
5289
|
-
}
|
|
5290
5262
|
const _v0 = [0, 0],
|
|
5291
5263
|
_v1 = [0, 0],
|
|
5292
5264
|
_v2 = [0, 0];
|
|
@@ -5691,7 +5663,7 @@ var __decorate$1K = undefined && undefined.__decorate || function (decorators, t
|
|
|
5691
5663
|
};
|
|
5692
5664
|
const VWindow = Symbol.for("VWindow");
|
|
5693
5665
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
5694
|
-
let DefaultWindow = class
|
|
5666
|
+
let DefaultWindow = class {
|
|
5695
5667
|
get width() {
|
|
5696
5668
|
if (this._handler) {
|
|
5697
5669
|
const wh = this._handler.getWH();
|
|
@@ -5710,7 +5682,7 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5710
5682
|
return this._handler.getDpr();
|
|
5711
5683
|
}
|
|
5712
5684
|
constructor() {
|
|
5713
|
-
|
|
5685
|
+
this.hooks = {
|
|
5714
5686
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
5715
5687
|
}, this.active = () => {
|
|
5716
5688
|
const global = this.global;
|
|
@@ -5718,15 +5690,6 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5718
5690
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
5719
5691
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
5720
5692
|
}
|
|
5721
|
-
_nativeAddEventListener(type, listener, options) {
|
|
5722
|
-
return this._handler.addEventListener(type, listener, options);
|
|
5723
|
-
}
|
|
5724
|
-
_nativeRemoveEventListener(type, listener, options) {
|
|
5725
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
5726
|
-
}
|
|
5727
|
-
_nativeDispatchEvent(event) {
|
|
5728
|
-
return this._handler.dispatchEvent(event);
|
|
5729
|
-
}
|
|
5730
5693
|
postInit() {
|
|
5731
5694
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
5732
5695
|
}
|
|
@@ -5766,7 +5729,7 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5766
5729
|
throw new Error("暂不支持");
|
|
5767
5730
|
}
|
|
5768
5731
|
release() {
|
|
5769
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this.
|
|
5732
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
5770
5733
|
}
|
|
5771
5734
|
getContext() {
|
|
5772
5735
|
return this._handler.getContext();
|
|
@@ -5777,6 +5740,15 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5777
5740
|
getImageBuffer(type) {
|
|
5778
5741
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
5779
5742
|
}
|
|
5743
|
+
addEventListener(type, listener, options) {
|
|
5744
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5745
|
+
}
|
|
5746
|
+
removeEventListener(type, listener, options) {
|
|
5747
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5748
|
+
}
|
|
5749
|
+
dispatchEvent(event) {
|
|
5750
|
+
return this._handler.dispatchEvent(event);
|
|
5751
|
+
}
|
|
5780
5752
|
getBoundingClientRect() {
|
|
5781
5753
|
return this._handler.getBoundingClientRect();
|
|
5782
5754
|
}
|
|
@@ -6985,17 +6957,19 @@ class EventSystem {
|
|
|
6985
6957
|
globalObj: globalObj,
|
|
6986
6958
|
domElement: domElement
|
|
6987
6959
|
} = this;
|
|
6988
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.addEventListener("pointermove", this.onPointerMove, !0), globalObj.addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.addEventListener("mousemove", this.onPointerMove, !0), globalObj.addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
|
|
6960
|
+
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("pointermove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("mousemove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
|
|
6989
6961
|
capture: !0
|
|
6990
6962
|
}), this.eventsAdded = !0;
|
|
6991
6963
|
}
|
|
6992
6964
|
removeEvents() {
|
|
6965
|
+
var _a;
|
|
6993
6966
|
if (!this.eventsAdded || !this.domElement) return;
|
|
6994
6967
|
const {
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6968
|
+
globalObj: globalObj,
|
|
6969
|
+
domElement: domElement
|
|
6970
|
+
} = this,
|
|
6971
|
+
globalDocument = null !== (_a = globalObj.getDocument()) && void 0 !== _a ? _a : domElement;
|
|
6972
|
+
this.supportsPointerEvents ? (globalDocument.removeEventListener("pointermove", this.onPointerMove, !0), globalDocument.removeEventListener("pointerup", this.onPointerUp, !0), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalDocument.removeEventListener("mousemove", this.onPointerMove, !0), globalDocument.removeEventListener("mouseup", this.onPointerUp, !0), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
|
|
6999
6973
|
}
|
|
7000
6974
|
mapToViewportPoint(event) {
|
|
7001
6975
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -7989,7 +7963,7 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
7989
7963
|
}
|
|
7990
7964
|
onBind() {
|
|
7991
7965
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7992
|
-
this.fromNumber = isNumber$
|
|
7966
|
+
this.fromNumber = isNumber$1(null === (_a = this.from) || void 0 === _a ? void 0 : _a.text) ? null === (_b = this.from) || void 0 === _b ? void 0 : _b.text : Number.parseFloat(null === (_c = this.from) || void 0 === _c ? void 0 : _c.text), this.toNumber = isNumber$1(null === (_d = this.to) || void 0 === _d ? void 0 : _d.text) ? null === (_e = this.to) || void 0 === _e ? void 0 : _e.text : Number.parseFloat(null === (_f = this.to) || void 0 === _f ? void 0 : _f.text), Number.isFinite(this.toNumber) || (this.fromNumber = 0), Number.isFinite(this.toNumber) || (this.valid = !1), !1 !== this.valid && (this.decimalLength = null !== (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.fixed) && void 0 !== _h ? _h : Math.max(getDecimalPlaces(this.fromNumber), getDecimalPlaces(this.toNumber)));
|
|
7993
7967
|
}
|
|
7994
7968
|
onEnd() {}
|
|
7995
7969
|
onUpdate(end, ratio, out) {
|
|
@@ -9132,7 +9106,7 @@ const splitCircle = (arc, count) => {
|
|
|
9132
9106
|
return res;
|
|
9133
9107
|
};
|
|
9134
9108
|
const samplingPoints = (points, count) => {
|
|
9135
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9109
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$1(point.x) && isNumber$1(point.y));
|
|
9136
9110
|
if (0 === validatePoints.length) return [];
|
|
9137
9111
|
if (1 === validatePoints.length) return new Array(count).fill(0).map(i => validatePoints[0]);
|
|
9138
9112
|
const res = [];
|
|
@@ -9168,7 +9142,7 @@ const splitArea = (area, count) => {
|
|
|
9168
9142
|
var _a;
|
|
9169
9143
|
return res.concat(null !== (_a = seg.points) && void 0 !== _a ? _a : []);
|
|
9170
9144
|
}, []));
|
|
9171
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9145
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$1(point.x) && isNumber$1(point.y));
|
|
9172
9146
|
if (!validatePoints.length) return [];
|
|
9173
9147
|
const allPoints = [];
|
|
9174
9148
|
validatePoints.forEach(point => {
|
|
@@ -9374,10 +9348,10 @@ ColorStore.store255 = {}, ColorStore.store1 = {};
|
|
|
9374
9348
|
|
|
9375
9349
|
function colorArrayToString(color) {
|
|
9376
9350
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
9377
|
-
return Array.isArray(color) && isNumber$
|
|
9351
|
+
return Array.isArray(color) && isNumber$1(color[0]) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
9378
9352
|
}
|
|
9379
9353
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
9380
|
-
if (Array.isArray(from) && !isNumber$
|
|
9354
|
+
if (Array.isArray(from) && !isNumber$1(from[0]) || Array.isArray(to) && !isNumber$1(to[0])) {
|
|
9381
9355
|
return new Array(4).fill(0).map((_, index) => _interpolateColor(isArray$1(from) ? from[index] : from, isArray$1(to) ? to[index] : to, ratio, alphaChannel));
|
|
9382
9356
|
}
|
|
9383
9357
|
return _interpolateColor(from, to, ratio, alphaChannel, cb);
|
|
@@ -9905,13 +9879,13 @@ ResourceLoader.cache = new Map(), ResourceLoader.isLoading = !1, ResourceLoader.
|
|
|
9905
9879
|
|
|
9906
9880
|
class BaseSymbol {
|
|
9907
9881
|
bounds(size, bounds) {
|
|
9908
|
-
if (isNumber$
|
|
9882
|
+
if (isNumber$1(size)) {
|
|
9909
9883
|
const halfS = size / 2;
|
|
9910
9884
|
bounds.x1 = -halfS, bounds.x2 = halfS, bounds.y1 = -halfS, bounds.y2 = halfS;
|
|
9911
9885
|
} else bounds.x1 = -size[0] / 2, bounds.x2 = size[0] / 2, bounds.y1 = -size[1] / 2, bounds.y2 = size[1] / 2;
|
|
9912
9886
|
}
|
|
9913
9887
|
parseSize(size) {
|
|
9914
|
-
return isNumber$
|
|
9888
|
+
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
9915
9889
|
}
|
|
9916
9890
|
}
|
|
9917
9891
|
|
|
@@ -10330,10 +10304,10 @@ class RectSymbol extends BaseSymbol {
|
|
|
10330
10304
|
super(...arguments), this.type = "rect", this.pathStr = "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z";
|
|
10331
10305
|
}
|
|
10332
10306
|
draw(ctx, size, x, y) {
|
|
10333
|
-
return isNumber$
|
|
10307
|
+
return isNumber$1(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
10334
10308
|
}
|
|
10335
10309
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10336
|
-
isNumber$
|
|
10310
|
+
isNumber$1(size) && (size = [size, size / 2]);
|
|
10337
10311
|
const drawLength = 2 * (size[0] + size[1]) * clipRange,
|
|
10338
10312
|
points = [{
|
|
10339
10313
|
x: x + size[0] / 2,
|
|
@@ -10365,12 +10339,12 @@ class RectSymbol extends BaseSymbol {
|
|
|
10365
10339
|
return !1;
|
|
10366
10340
|
}
|
|
10367
10341
|
drawOffset(ctx, size, x, y, offset) {
|
|
10368
|
-
return isNumber$
|
|
10342
|
+
return isNumber$1(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
10369
10343
|
}
|
|
10370
10344
|
}
|
|
10371
10345
|
var rect = new RectSymbol();
|
|
10372
10346
|
|
|
10373
|
-
const tempBounds
|
|
10347
|
+
const tempBounds = new AABBBounds();
|
|
10374
10348
|
class CustomSymbolClass {
|
|
10375
10349
|
constructor(type, path) {
|
|
10376
10350
|
let isSvg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
|
|
@@ -10385,7 +10359,7 @@ class CustomSymbolClass {
|
|
|
10385
10359
|
return size = this.parseSize(size), this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
10386
10360
|
}
|
|
10387
10361
|
parseSize(size) {
|
|
10388
|
-
return isNumber$
|
|
10362
|
+
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
10389
10363
|
}
|
|
10390
10364
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10391
10365
|
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
@@ -10399,7 +10373,7 @@ class CustomSymbolClass {
|
|
|
10399
10373
|
let {
|
|
10400
10374
|
path: path
|
|
10401
10375
|
} = _ref;
|
|
10402
|
-
tempBounds
|
|
10376
|
+
tempBounds.x1 = path.bounds.x1 * size, tempBounds.y1 = path.bounds.y1 * size, tempBounds.x2 = path.bounds.x2 * size, tempBounds.y2 = path.bounds.y2 * size, bounds.union(tempBounds);
|
|
10403
10377
|
});
|
|
10404
10378
|
}
|
|
10405
10379
|
this.path.bounds && (bounds.x1 = this.path.bounds.x1 * size, bounds.y1 = this.path.bounds.y1 * size, bounds.x2 = this.path.bounds.x2 * size, bounds.y2 = this.path.bounds.y2 * size);
|
|
@@ -10795,8 +10769,8 @@ const SVG_PARSE_ATTRIBUTE_MAP = {
|
|
|
10795
10769
|
const SVG_PARSE_ATTRIBUTE_MAP_KEYS = Object.keys(SVG_PARSE_ATTRIBUTE_MAP);
|
|
10796
10770
|
|
|
10797
10771
|
const _tempBounds$1 = new AABBBounds(),
|
|
10798
|
-
tempMatrix = new Matrix()
|
|
10799
|
-
|
|
10772
|
+
tempMatrix = new Matrix();
|
|
10773
|
+
new AABBBounds();
|
|
10800
10774
|
const PURE_STYLE_KEY = ["stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity"];
|
|
10801
10775
|
const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
|
|
10802
10776
|
const tempConstantXYKey = ["x", "y"],
|
|
@@ -11316,25 +11290,12 @@ class Graphic extends Node {
|
|
|
11316
11290
|
needUpdateLayout() {
|
|
11317
11291
|
return !!(this._updateTag & UpdateTag.UPDATE_LAYOUT);
|
|
11318
11292
|
}
|
|
11319
|
-
getAnchor(anchor, params) {
|
|
11293
|
+
getAnchor(anchor, params, resetScale) {
|
|
11320
11294
|
const _anchor = [0, 0],
|
|
11321
11295
|
getBounds = () => {
|
|
11322
11296
|
if (params.b) return params.b;
|
|
11323
|
-
const
|
|
11324
|
-
|
|
11325
|
-
scaleY: scaleY,
|
|
11326
|
-
angle: angle,
|
|
11327
|
-
scaleCenter: scaleCenter
|
|
11328
|
-
} = this.attribute;
|
|
11329
|
-
return tempBounds.copy(this._AABBBounds), this.setAttributes({
|
|
11330
|
-
angle: 0,
|
|
11331
|
-
scaleCenter: null
|
|
11332
|
-
}), params.b = this.AABBBounds.clone(), this._AABBBounds.copy(tempBounds), this.setAttributes({
|
|
11333
|
-
scaleX: scaleX,
|
|
11334
|
-
scaleY: scaleY,
|
|
11335
|
-
angle: angle,
|
|
11336
|
-
scaleCenter: scaleCenter
|
|
11337
|
-
}), params.b;
|
|
11297
|
+
const graphic = this.clone();
|
|
11298
|
+
return graphic.attribute.angle = 0, graphic.attribute.scaleCenter = null, resetScale && (graphic.attribute.scaleX = 1, graphic.attribute.scaleY = 1), params.b = graphic.AABBBounds, params.b;
|
|
11338
11299
|
};
|
|
11339
11300
|
if ("string" == typeof anchor[0]) {
|
|
11340
11301
|
const ratio = parseFloat(anchor[0]) / 100,
|
|
@@ -11363,7 +11324,7 @@ class Graphic extends Node {
|
|
|
11363
11324
|
const params = {};
|
|
11364
11325
|
if (anchor && angle && (_anchor = this.getAnchor(anchor, params)), !scaleCenter || 1 === scaleX && 1 === scaleY) normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);else {
|
|
11365
11326
|
const m = this._transMatrix;
|
|
11366
|
-
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
11327
|
+
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params, !0), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
11367
11328
|
x: _anchor[0],
|
|
11368
11329
|
y: _anchor[1]
|
|
11369
11330
|
});
|
|
@@ -12641,12 +12602,12 @@ let DefaultGraphicService = class {
|
|
|
12641
12602
|
textBaseline: textBaseline
|
|
12642
12603
|
} = attribute;
|
|
12643
12604
|
if (null != attribute.forceBoundsHeight) {
|
|
12644
|
-
const h = isNumber$
|
|
12605
|
+
const h = isNumber$1(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
12645
12606
|
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
12646
12607
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
12647
12608
|
}
|
|
12648
12609
|
if (null != attribute.forceBoundsWidth) {
|
|
12649
|
-
const w = isNumber$
|
|
12610
|
+
const w = isNumber$1(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
12650
12611
|
dx = textDrawOffsetX(textAlign, w);
|
|
12651
12612
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
12652
12613
|
}
|
|
@@ -13527,7 +13488,7 @@ let Symbol$1 = class Symbol extends Graphic {
|
|
|
13527
13488
|
tb1: tb1,
|
|
13528
13489
|
tb2: tb2
|
|
13529
13490
|
} = application.graphicService.updateTempAABBBounds(aabbBounds);
|
|
13530
|
-
updateBoundsOfSymbolOuterBorder(attribute, symbolTheme, tb1), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
|
|
13491
|
+
updateBoundsOfSymbolOuterBorder(attribute, symbolTheme, tb1), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1, this.x1WithoutTransform = aabbBounds.x1, this.y1WithoutTransform = aabbBounds.y1;
|
|
13531
13492
|
const {
|
|
13532
13493
|
lineJoin = symbolTheme.lineJoin
|
|
13533
13494
|
} = attribute;
|
|
@@ -14745,7 +14706,7 @@ class RichText extends Graphic {
|
|
|
14745
14706
|
}
|
|
14746
14707
|
} else {
|
|
14747
14708
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14748
|
-
if (isNumber$
|
|
14709
|
+
if (isNumber$1(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14749
14710
|
const textParts = richTextConfig.text.split("\n");
|
|
14750
14711
|
for (let j = 0; j < textParts.length; j++) if (0 === j) paragraphs.push(new Paragraph(textParts[j], !1, richTextConfig, ascentDescentMode));else if (textParts[j] || i === textConfig.length - 1) paragraphs.push(new Paragraph(textParts[j], !0, richTextConfig, ascentDescentMode));else {
|
|
14751
14712
|
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
@@ -15032,7 +14993,7 @@ class Arc extends Graphic {
|
|
|
15032
14993
|
} = this.attribute;
|
|
15033
14994
|
if (outerRadius += outerPadding, innerRadius -= innerPadding, 0 === cornerRadius || "0%" === cornerRadius) return 0;
|
|
15034
14995
|
const deltaRadius = Math.abs(outerRadius - innerRadius),
|
|
15035
|
-
parseCR = cornerRadius => Math.min(isNumber$
|
|
14996
|
+
parseCR = cornerRadius => Math.min(isNumber$1(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
|
|
15036
14997
|
if (isArray$1(cornerRadius)) {
|
|
15037
14998
|
const crList = cornerRadius.map(cr => parseCR(cr) || 0);
|
|
15038
14999
|
return 0 === crList.length ? [crList[0], crList[0], crList[0], crList[0]] : 2 === crList.length ? [crList[0], crList[1], crList[0], crList[1]] : (3 === crList.length && crList.push(0), crList);
|
|
@@ -16034,7 +15995,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
16034
15995
|
let roundCorner = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
|
|
16035
15996
|
let edgeCb = arguments.length > 7 ? arguments[7] : undefined;
|
|
16036
15997
|
let cornerRadius;
|
|
16037
|
-
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$
|
|
15998
|
+
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$1(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius = abs(rectCornerRadius), rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
|
|
16038
15999
|
const cornerRadiusArr = rectCornerRadius;
|
|
16039
16000
|
let cr0, cr1;
|
|
16040
16001
|
switch (cornerRadiusArr.length) {
|
|
@@ -20631,80 +20592,6 @@ function flatten_simplify(points, tolerance, highestQuality) {
|
|
|
20631
20592
|
return points = highestQuality ? points : simplifyRadialDist(points, void 0 !== tolerance ? tolerance * tolerance : 1);
|
|
20632
20593
|
}
|
|
20633
20594
|
|
|
20634
|
-
function isIdentityMatrix(matrix) {
|
|
20635
|
-
return 1 === matrix.a && 0 === matrix.b && 0 === matrix.c && 1 === matrix.d && 0 === matrix.e && 0 === matrix.f;
|
|
20636
|
-
}
|
|
20637
|
-
function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
|
|
20638
|
-
return event => {
|
|
20639
|
-
if (!(event instanceof MouseEvent || event instanceof TouchEvent || event instanceof PointerEvent)) return event;
|
|
20640
|
-
const transformMatrix = getMatrix();
|
|
20641
|
-
if (isIdentityMatrix(transformMatrix)) return event;
|
|
20642
|
-
const containerRect = getRect(),
|
|
20643
|
-
transformedEvent = new event.constructor(event.type, event);
|
|
20644
|
-
if (Object.defineProperties(transformedEvent, {
|
|
20645
|
-
target: {
|
|
20646
|
-
value: event.target
|
|
20647
|
-
},
|
|
20648
|
-
currentTarget: {
|
|
20649
|
-
value: event.currentTarget
|
|
20650
|
-
}
|
|
20651
|
-
}), event instanceof MouseEvent || event instanceof PointerEvent) transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);else if (event instanceof TouchEvent) {
|
|
20652
|
-
if (event.touches.length > 0) {
|
|
20653
|
-
const touch = transformedEvent.touches[0];
|
|
20654
|
-
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
20655
|
-
}
|
|
20656
|
-
if (event.changedTouches.length > 0) {
|
|
20657
|
-
const touch = transformedEvent.changedTouches[0];
|
|
20658
|
-
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
20659
|
-
}
|
|
20660
|
-
}
|
|
20661
|
-
return transformedEvent;
|
|
20662
|
-
};
|
|
20663
|
-
}
|
|
20664
|
-
function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
|
|
20665
|
-
return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
|
|
20666
|
-
}
|
|
20667
|
-
function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
|
|
20668
|
-
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20669
|
-
window.setEventListenerTransformer(transformer);
|
|
20670
|
-
}
|
|
20671
|
-
function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
|
|
20672
|
-
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20673
|
-
global.setEventListenerTransformer(transformer);
|
|
20674
|
-
}
|
|
20675
|
-
function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
|
|
20676
|
-
const transformedPoint = {
|
|
20677
|
-
x: clientX,
|
|
20678
|
-
y: clientY
|
|
20679
|
-
};
|
|
20680
|
-
matrix.transformPoint(transformedPoint, transformedPoint), Object.defineProperties(transformedEvent, {
|
|
20681
|
-
_canvasX: {
|
|
20682
|
-
value: transformedPoint.x
|
|
20683
|
-
},
|
|
20684
|
-
_canvasY: {
|
|
20685
|
-
value: transformedPoint.y
|
|
20686
|
-
}
|
|
20687
|
-
});
|
|
20688
|
-
}
|
|
20689
|
-
function mapToCanvasPointForCanvas(nativeEvent) {
|
|
20690
|
-
var _a;
|
|
20691
|
-
if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) return {
|
|
20692
|
-
x: nativeEvent._canvasX,
|
|
20693
|
-
y: nativeEvent._canvasY
|
|
20694
|
-
};
|
|
20695
|
-
if (nativeEvent.changedTouches) {
|
|
20696
|
-
const data = null !== (_a = nativeEvent.changedTouches[0]) && void 0 !== _a ? _a : {};
|
|
20697
|
-
return {
|
|
20698
|
-
x: data._canvasX,
|
|
20699
|
-
y: data._canvasY
|
|
20700
|
-
};
|
|
20701
|
-
}
|
|
20702
|
-
return {
|
|
20703
|
-
x: nativeEvent._canvasX || 0,
|
|
20704
|
-
y: nativeEvent._canvasY || 0
|
|
20705
|
-
};
|
|
20706
|
-
}
|
|
20707
|
-
|
|
20708
20595
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
20709
20596
|
var t = {};
|
|
20710
20597
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
@@ -25874,6 +25761,7 @@ let BrowserContext2d = class {
|
|
|
25874
25761
|
return this.nativeContext.createRadialGradient(x0, y0, r0, x1, y1, r1);
|
|
25875
25762
|
}
|
|
25876
25763
|
createConicGradient(x, y, startAngle, endAngle) {
|
|
25764
|
+
if (this.nativeContext.createConicGradient && Math.abs(endAngle - startAngle - 2 * Math.PI) < .001) return this.nativeContext.createConicGradient(startAngle, x, y);
|
|
25877
25765
|
let pattern,
|
|
25878
25766
|
edit = !1;
|
|
25879
25767
|
const ctx = this;
|
|
@@ -27262,7 +27150,7 @@ class RectPickerBase {
|
|
|
27262
27150
|
x += point.x, y += point.y, pickContext.setTransformForCurrent();
|
|
27263
27151
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
27264
27152
|
let picked = !0;
|
|
27265
|
-
if (!onlyTranslate || rect.shadowRoot || isNumber$
|
|
27153
|
+
if (!onlyTranslate || rect.shadowRoot || isNumber$1(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
|
|
27266
27154
|
if (picked) return !0;
|
|
27267
27155
|
const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth,
|
|
27268
27156
|
pickStrokeBuffer = rectAttribute.pickStrokeBuffer || themeAttribute.pickStrokeBuffer,
|
|
@@ -32002,7 +31890,7 @@ function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic)
|
|
|
32002
31890
|
|
|
32003
31891
|
const roughModule = _roughModule;
|
|
32004
31892
|
|
|
32005
|
-
const version = "0.22.
|
|
31893
|
+
const version = "0.22.10";
|
|
32006
31894
|
preLoadAllModule();
|
|
32007
31895
|
if (isBrowserEnv()) {
|
|
32008
31896
|
loadBrowserEnv(container);
|
|
@@ -32036,4 +31924,4 @@ registerReactAttributePlugin();
|
|
|
32036
31924
|
registerDirectionalLight();
|
|
32037
31925
|
registerOrthoCamera();
|
|
32038
31926
|
|
|
32039
|
-
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alternatingWave, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centerToCorner, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, container, cornerTangents, cornerToCenter, createArc, createArc3d, createArea, createCanvasEventTransformer, createCircle, createColor, createConicalGradient, createEventTransformer, createGifImage, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, diagonalCenterToEdge, diagonalTopLeftToBottomRight, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, gifImageCanvasPickModule, gifImageModule, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pulseWave, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformPointForCanvas, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|
|
31927
|
+
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, STAR_NUMBER_TYPE, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alternatingWave, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centerToCorner, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, container, cornerTangents, cornerToCenter, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGifImage, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, diagonalCenterToEdge, diagonalTopLeftToBottomRight, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, gifImageCanvasPickModule, gifImageModule, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pulseWave, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|