@visactor/vrender 0.22.10 → 0.22.11
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 +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +256 -92
- package/dist/index.js +262 -91
- 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 +5 -5
package/dist/index.es.js
CHANGED
|
@@ -486,11 +486,14 @@ class Container {
|
|
|
486
486
|
const ContributionProvider = Symbol("ContributionProvider");
|
|
487
487
|
class ContributionProviderCache {
|
|
488
488
|
constructor(serviceIdentifier, container) {
|
|
489
|
-
this.serviceIdentifier = serviceIdentifier, this.container = container;
|
|
489
|
+
this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
|
|
490
490
|
}
|
|
491
491
|
getContributions() {
|
|
492
492
|
return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
|
|
493
493
|
}
|
|
494
|
+
refresh() {
|
|
495
|
+
this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
|
|
496
|
+
}
|
|
494
497
|
}
|
|
495
498
|
function bindContributionProvider(bind, id) {
|
|
496
499
|
bind(ContributionProvider).toDynamicValue(_ref => {
|
|
@@ -508,6 +511,20 @@ function bindContributionProviderNoSingletonScope(bind, id) {
|
|
|
508
511
|
return new ContributionProviderCache(id, container);
|
|
509
512
|
}).whenTargetNamed(id);
|
|
510
513
|
}
|
|
514
|
+
class ContributionStore {
|
|
515
|
+
static getStore(id) {
|
|
516
|
+
return this.store.get(id);
|
|
517
|
+
}
|
|
518
|
+
static setStore(id, cache) {
|
|
519
|
+
this.store.set(id, cache);
|
|
520
|
+
}
|
|
521
|
+
static refreshAllContributions() {
|
|
522
|
+
this.store.forEach(cache => {
|
|
523
|
+
cache.refresh();
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
ContributionStore.store = new Map();
|
|
511
528
|
|
|
512
529
|
class Hook {
|
|
513
530
|
constructor(args, name) {
|
|
@@ -574,6 +591,48 @@ const EnvContribution = Symbol.for("EnvContribution");
|
|
|
574
591
|
const VGlobal = Symbol.for("VGlobal");
|
|
575
592
|
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
593
|
|
|
594
|
+
class EventListenerManager {
|
|
595
|
+
constructor() {
|
|
596
|
+
this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
|
|
597
|
+
}
|
|
598
|
+
setEventListenerTransformer(transformer) {
|
|
599
|
+
this._eventListenerTransformer = transformer || (event => event);
|
|
600
|
+
}
|
|
601
|
+
addEventListener(type, listener, options) {
|
|
602
|
+
if (!listener) return;
|
|
603
|
+
const wrappedListener = event => {
|
|
604
|
+
const transformedEvent = this._eventListenerTransformer(event);
|
|
605
|
+
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
606
|
+
};
|
|
607
|
+
this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
|
|
608
|
+
}
|
|
609
|
+
removeEventListener(type, listener, options) {
|
|
610
|
+
var _a;
|
|
611
|
+
if (!listener) return;
|
|
612
|
+
const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
|
|
613
|
+
wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
|
|
614
|
+
}
|
|
615
|
+
dispatchEvent(event) {
|
|
616
|
+
return this._nativeDispatchEvent(event);
|
|
617
|
+
}
|
|
618
|
+
clearAllEventListeners() {
|
|
619
|
+
this._listenerMap.forEach((listenersMap, type) => {
|
|
620
|
+
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
621
|
+
this._nativeRemoveEventListener(type, wrappedListener, void 0);
|
|
622
|
+
});
|
|
623
|
+
}), this._listenerMap.clear();
|
|
624
|
+
}
|
|
625
|
+
_nativeAddEventListener(type, listener, options) {
|
|
626
|
+
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
627
|
+
}
|
|
628
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
629
|
+
throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
|
|
630
|
+
}
|
|
631
|
+
_nativeDispatchEvent(event) {
|
|
632
|
+
throw new Error("_nativeDispatchEvent must be implemented by derived classes");
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
577
636
|
var __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
578
637
|
var d,
|
|
579
638
|
c = arguments.length,
|
|
@@ -614,7 +673,7 @@ var __decorate$1N = undefined && undefined.__decorate || function (decorators, t
|
|
|
614
673
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
615
674
|
});
|
|
616
675
|
};
|
|
617
|
-
let DefaultGlobal = class {
|
|
676
|
+
let DefaultGlobal = class extends EventListenerManager {
|
|
618
677
|
get env() {
|
|
619
678
|
return this._env;
|
|
620
679
|
}
|
|
@@ -658,10 +717,19 @@ let DefaultGlobal = class {
|
|
|
658
717
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
659
718
|
}
|
|
660
719
|
constructor(contributions) {
|
|
661
|
-
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
720
|
+
super(), this.contributions = contributions, this._isImageAnonymous = !0, this.eventListenerTransformer = event => event, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
662
721
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
663
722
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
664
723
|
}
|
|
724
|
+
_nativeAddEventListener(type, listener, options) {
|
|
725
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
726
|
+
}
|
|
727
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
728
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
729
|
+
}
|
|
730
|
+
_nativeDispatchEvent(event) {
|
|
731
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
732
|
+
}
|
|
665
733
|
bindContribution(params) {
|
|
666
734
|
const promiseArr = [];
|
|
667
735
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -702,15 +770,6 @@ let DefaultGlobal = class {
|
|
|
702
770
|
releaseCanvas(canvas) {
|
|
703
771
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
704
772
|
}
|
|
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
|
-
}
|
|
714
773
|
getRequestAnimationFrame() {
|
|
715
774
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
716
775
|
}
|
|
@@ -1172,14 +1231,14 @@ const isArrayLike = function (value) {
|
|
|
1172
1231
|
};
|
|
1173
1232
|
var isArrayLike$1 = isArrayLike;
|
|
1174
1233
|
|
|
1175
|
-
const isNumber = function (value) {
|
|
1234
|
+
const isNumber$1 = function (value) {
|
|
1176
1235
|
let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
1177
1236
|
const type = typeof value;
|
|
1178
1237
|
return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
|
|
1179
1238
|
};
|
|
1180
|
-
var isNumber$
|
|
1239
|
+
var isNumber$2 = isNumber$1;
|
|
1181
1240
|
|
|
1182
|
-
const isValidNumber = value => isNumber$
|
|
1241
|
+
const isValidNumber = value => isNumber$2(value) && Number.isFinite(value);
|
|
1183
1242
|
var isValidNumber$1 = isValidNumber;
|
|
1184
1243
|
|
|
1185
1244
|
const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
|
|
@@ -1262,7 +1321,7 @@ var LoggerLevel;
|
|
|
1262
1321
|
}(LoggerLevel || (LoggerLevel = {}));
|
|
1263
1322
|
class Logger {
|
|
1264
1323
|
static getInstance(level, method) {
|
|
1265
|
-
return Logger._instance && isNumber$
|
|
1324
|
+
return Logger._instance && isNumber$2(level) ? Logger._instance.level(level) : Logger._instance || (Logger._instance = new Logger(level, method)), Logger._instance;
|
|
1266
1325
|
}
|
|
1267
1326
|
static setInstance(logger) {
|
|
1268
1327
|
return Logger._instance = logger;
|
|
@@ -1406,10 +1465,10 @@ class Point {
|
|
|
1406
1465
|
return this.x = x, this.y = y, this;
|
|
1407
1466
|
}
|
|
1408
1467
|
add(point) {
|
|
1409
|
-
return isNumber$
|
|
1468
|
+
return isNumber$2(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
1410
1469
|
}
|
|
1411
1470
|
sub(point) {
|
|
1412
|
-
return isNumber$
|
|
1471
|
+
return isNumber$2(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
1413
1472
|
}
|
|
1414
1473
|
multi(point) {
|
|
1415
1474
|
throw new Error("暂不支持");
|
|
@@ -2470,10 +2529,10 @@ function hex(value) {
|
|
|
2470
2529
|
return ((value = Math.max(0, Math.min(255, Math.round(value) || 0))) < 16 ? "0" : "") + value.toString(16);
|
|
2471
2530
|
}
|
|
2472
2531
|
function rgb(value) {
|
|
2473
|
-
return isNumber$
|
|
2532
|
+
return isNumber$2(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);
|
|
2474
2533
|
}
|
|
2475
2534
|
function rgba(value) {
|
|
2476
|
-
return isNumber$
|
|
2535
|
+
return isNumber$2(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);
|
|
2477
2536
|
}
|
|
2478
2537
|
function SRGBToLinear(c) {
|
|
2479
2538
|
return c < .04045 ? .0773993808 * c : Math.pow(.9478672986 * c + .0521327014, 2.4);
|
|
@@ -5259,6 +5318,9 @@ function isAroundZero(val) {
|
|
|
5259
5318
|
function isNotAroundZero(val) {
|
|
5260
5319
|
return val > EPSILON || val < -EPSILON;
|
|
5261
5320
|
}
|
|
5321
|
+
function isNumber(data) {
|
|
5322
|
+
return "number" == typeof data && Number.isFinite(data);
|
|
5323
|
+
}
|
|
5262
5324
|
const _v0 = [0, 0],
|
|
5263
5325
|
_v1 = [0, 0],
|
|
5264
5326
|
_v2 = [0, 0];
|
|
@@ -5663,7 +5725,7 @@ var __decorate$1K = undefined && undefined.__decorate || function (decorators, t
|
|
|
5663
5725
|
};
|
|
5664
5726
|
const VWindow = Symbol.for("VWindow");
|
|
5665
5727
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
5666
|
-
let DefaultWindow = class {
|
|
5728
|
+
let DefaultWindow = class extends EventListenerManager {
|
|
5667
5729
|
get width() {
|
|
5668
5730
|
if (this._handler) {
|
|
5669
5731
|
const wh = this._handler.getWH();
|
|
@@ -5682,7 +5744,7 @@ let DefaultWindow = class {
|
|
|
5682
5744
|
return this._handler.getDpr();
|
|
5683
5745
|
}
|
|
5684
5746
|
constructor() {
|
|
5685
|
-
this.hooks = {
|
|
5747
|
+
super(), this.hooks = {
|
|
5686
5748
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
5687
5749
|
}, this.active = () => {
|
|
5688
5750
|
const global = this.global;
|
|
@@ -5690,6 +5752,15 @@ let DefaultWindow = class {
|
|
|
5690
5752
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
5691
5753
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
5692
5754
|
}
|
|
5755
|
+
_nativeAddEventListener(type, listener, options) {
|
|
5756
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5757
|
+
}
|
|
5758
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
5759
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5760
|
+
}
|
|
5761
|
+
_nativeDispatchEvent(event) {
|
|
5762
|
+
return this._handler.dispatchEvent(event);
|
|
5763
|
+
}
|
|
5693
5764
|
postInit() {
|
|
5694
5765
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
5695
5766
|
}
|
|
@@ -5729,7 +5800,7 @@ let DefaultWindow = class {
|
|
|
5729
5800
|
throw new Error("暂不支持");
|
|
5730
5801
|
}
|
|
5731
5802
|
release() {
|
|
5732
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
5803
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
|
|
5733
5804
|
}
|
|
5734
5805
|
getContext() {
|
|
5735
5806
|
return this._handler.getContext();
|
|
@@ -5740,15 +5811,6 @@ let DefaultWindow = class {
|
|
|
5740
5811
|
getImageBuffer(type) {
|
|
5741
5812
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
5742
5813
|
}
|
|
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
|
-
}
|
|
5752
5814
|
getBoundingClientRect() {
|
|
5753
5815
|
return this._handler.getBoundingClientRect();
|
|
5754
5816
|
}
|
|
@@ -6957,19 +7019,17 @@ class EventSystem {
|
|
|
6957
7019
|
globalObj: globalObj,
|
|
6958
7020
|
domElement: domElement
|
|
6959
7021
|
} = this;
|
|
6960
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.
|
|
7022
|
+
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, {
|
|
6961
7023
|
capture: !0
|
|
6962
7024
|
}), this.eventsAdded = !0;
|
|
6963
7025
|
}
|
|
6964
7026
|
removeEvents() {
|
|
6965
|
-
var _a;
|
|
6966
7027
|
if (!this.eventsAdded || !this.domElement) return;
|
|
6967
7028
|
const {
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
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;
|
|
7029
|
+
globalObj: globalObj,
|
|
7030
|
+
domElement: domElement
|
|
7031
|
+
} = this;
|
|
7032
|
+
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.removeEventListener("pointermove", this.onPointerMove, !0), globalObj.removeEventListener("pointerup", this.onPointerUp, !0)) : (domElement.removeEventListener("pointermove", this.onPointerMove, !0), domElement.removeEventListener("pointerup", this.onPointerUp, !0)), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.removeEventListener("mousemove", this.onPointerMove, !0), globalObj.removeEventListener("mouseup", this.onPointerUp, !0)) : (domElement.removeEventListener("mousemove", this.onPointerMove, !0), domElement.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;
|
|
6973
7033
|
}
|
|
6974
7034
|
mapToViewportPoint(event) {
|
|
6975
7035
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -7963,7 +8023,7 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
7963
8023
|
}
|
|
7964
8024
|
onBind() {
|
|
7965
8025
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7966
|
-
this.fromNumber = isNumber$
|
|
8026
|
+
this.fromNumber = isNumber$2(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$2(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)));
|
|
7967
8027
|
}
|
|
7968
8028
|
onEnd() {}
|
|
7969
8029
|
onUpdate(end, ratio, out) {
|
|
@@ -8391,23 +8451,27 @@ class TagPointsUpdate extends ACustomAnimate {
|
|
|
8391
8451
|
isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
|
|
8392
8452
|
}
|
|
8393
8453
|
onUpdate(end, ratio, out) {
|
|
8394
|
-
if (
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8454
|
+
if (end) Object.keys(this.to).forEach(k => {
|
|
8455
|
+
out[k] = this.to[k];
|
|
8456
|
+
});else {
|
|
8457
|
+
if (this.points = this.points.map((point, index) => {
|
|
8458
|
+
const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
|
|
8459
|
+
return newPoint.context = point.context, newPoint;
|
|
8460
|
+
}), this.clipRange) {
|
|
8461
|
+
if (this.shrinkClipRange) return void (end ? (out.points = this.toPoints, out.clipRange = 1) : (out.points = this.fromPoints, out.clipRange = this.clipRange - (this.clipRange - this.shrinkClipRange) * ratio));
|
|
8462
|
+
out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
|
|
8463
|
+
}
|
|
8464
|
+
if (this.segmentsCache && this.to.segments) {
|
|
8465
|
+
let start = 0;
|
|
8466
|
+
out.segments = this.to.segments.map((segment, index) => {
|
|
8467
|
+
const end = start + this.segmentsCache[index],
|
|
8468
|
+
points = this.points.slice(start, end);
|
|
8469
|
+
return start = end, Object.assign(Object.assign({}, segment), {
|
|
8470
|
+
points: points
|
|
8471
|
+
});
|
|
8408
8472
|
});
|
|
8409
|
-
}
|
|
8410
|
-
}
|
|
8473
|
+
} else out.points = this.points;
|
|
8474
|
+
}
|
|
8411
8475
|
}
|
|
8412
8476
|
}
|
|
8413
8477
|
class GraphicAnimate extends ACustomAnimate {
|
|
@@ -9106,7 +9170,7 @@ const splitCircle = (arc, count) => {
|
|
|
9106
9170
|
return res;
|
|
9107
9171
|
};
|
|
9108
9172
|
const samplingPoints = (points, count) => {
|
|
9109
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9173
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
9110
9174
|
if (0 === validatePoints.length) return [];
|
|
9111
9175
|
if (1 === validatePoints.length) return new Array(count).fill(0).map(i => validatePoints[0]);
|
|
9112
9176
|
const res = [];
|
|
@@ -9142,7 +9206,7 @@ const splitArea = (area, count) => {
|
|
|
9142
9206
|
var _a;
|
|
9143
9207
|
return res.concat(null !== (_a = seg.points) && void 0 !== _a ? _a : []);
|
|
9144
9208
|
}, []));
|
|
9145
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9209
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
9146
9210
|
if (!validatePoints.length) return [];
|
|
9147
9211
|
const allPoints = [];
|
|
9148
9212
|
validatePoints.forEach(point => {
|
|
@@ -9348,10 +9412,10 @@ ColorStore.store255 = {}, ColorStore.store1 = {};
|
|
|
9348
9412
|
|
|
9349
9413
|
function colorArrayToString(color) {
|
|
9350
9414
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
9351
|
-
return Array.isArray(color) && isNumber$
|
|
9415
|
+
return Array.isArray(color) && isNumber$2(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;
|
|
9352
9416
|
}
|
|
9353
9417
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
9354
|
-
if (Array.isArray(from) && !isNumber$
|
|
9418
|
+
if (Array.isArray(from) && !isNumber$2(from[0]) || Array.isArray(to) && !isNumber$2(to[0])) {
|
|
9355
9419
|
return new Array(4).fill(0).map((_, index) => _interpolateColor(isArray$1(from) ? from[index] : from, isArray$1(to) ? to[index] : to, ratio, alphaChannel));
|
|
9356
9420
|
}
|
|
9357
9421
|
return _interpolateColor(from, to, ratio, alphaChannel, cb);
|
|
@@ -9879,13 +9943,13 @@ ResourceLoader.cache = new Map(), ResourceLoader.isLoading = !1, ResourceLoader.
|
|
|
9879
9943
|
|
|
9880
9944
|
class BaseSymbol {
|
|
9881
9945
|
bounds(size, bounds) {
|
|
9882
|
-
if (isNumber$
|
|
9946
|
+
if (isNumber$2(size)) {
|
|
9883
9947
|
const halfS = size / 2;
|
|
9884
9948
|
bounds.x1 = -halfS, bounds.x2 = halfS, bounds.y1 = -halfS, bounds.y2 = halfS;
|
|
9885
9949
|
} else bounds.x1 = -size[0] / 2, bounds.x2 = size[0] / 2, bounds.y1 = -size[1] / 2, bounds.y2 = size[1] / 2;
|
|
9886
9950
|
}
|
|
9887
9951
|
parseSize(size) {
|
|
9888
|
-
return isNumber$
|
|
9952
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
9889
9953
|
}
|
|
9890
9954
|
}
|
|
9891
9955
|
|
|
@@ -10304,10 +10368,10 @@ class RectSymbol extends BaseSymbol {
|
|
|
10304
10368
|
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";
|
|
10305
10369
|
}
|
|
10306
10370
|
draw(ctx, size, x, y) {
|
|
10307
|
-
return isNumber$
|
|
10371
|
+
return isNumber$2(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
10308
10372
|
}
|
|
10309
10373
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10310
|
-
isNumber$
|
|
10374
|
+
isNumber$2(size) && (size = [size, size / 2]);
|
|
10311
10375
|
const drawLength = 2 * (size[0] + size[1]) * clipRange,
|
|
10312
10376
|
points = [{
|
|
10313
10377
|
x: x + size[0] / 2,
|
|
@@ -10339,7 +10403,7 @@ class RectSymbol extends BaseSymbol {
|
|
|
10339
10403
|
return !1;
|
|
10340
10404
|
}
|
|
10341
10405
|
drawOffset(ctx, size, x, y, offset) {
|
|
10342
|
-
return isNumber$
|
|
10406
|
+
return isNumber$2(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
10343
10407
|
}
|
|
10344
10408
|
}
|
|
10345
10409
|
var rect = new RectSymbol();
|
|
@@ -10359,7 +10423,7 @@ class CustomSymbolClass {
|
|
|
10359
10423
|
return size = this.parseSize(size), this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
10360
10424
|
}
|
|
10361
10425
|
parseSize(size) {
|
|
10362
|
-
return isNumber$
|
|
10426
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
10363
10427
|
}
|
|
10364
10428
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10365
10429
|
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
@@ -12602,12 +12666,12 @@ let DefaultGraphicService = class {
|
|
|
12602
12666
|
textBaseline: textBaseline
|
|
12603
12667
|
} = attribute;
|
|
12604
12668
|
if (null != attribute.forceBoundsHeight) {
|
|
12605
|
-
const h = isNumber$
|
|
12669
|
+
const h = isNumber$2(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
12606
12670
|
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
12607
12671
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
12608
12672
|
}
|
|
12609
12673
|
if (null != attribute.forceBoundsWidth) {
|
|
12610
|
-
const w = isNumber$
|
|
12674
|
+
const w = isNumber$2(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
12611
12675
|
dx = textDrawOffsetX(textAlign, w);
|
|
12612
12676
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
12613
12677
|
}
|
|
@@ -14706,7 +14770,7 @@ class RichText extends Graphic {
|
|
|
14706
14770
|
}
|
|
14707
14771
|
} else {
|
|
14708
14772
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14709
|
-
if (isNumber$
|
|
14773
|
+
if (isNumber$2(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14710
14774
|
const textParts = richTextConfig.text.split("\n");
|
|
14711
14775
|
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 {
|
|
14712
14776
|
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
@@ -14993,7 +15057,7 @@ class Arc extends Graphic {
|
|
|
14993
15057
|
} = this.attribute;
|
|
14994
15058
|
if (outerRadius += outerPadding, innerRadius -= innerPadding, 0 === cornerRadius || "0%" === cornerRadius) return 0;
|
|
14995
15059
|
const deltaRadius = Math.abs(outerRadius - innerRadius),
|
|
14996
|
-
parseCR = cornerRadius => Math.min(isNumber$
|
|
15060
|
+
parseCR = cornerRadius => Math.min(isNumber$2(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
|
|
14997
15061
|
if (isArray$1(cornerRadius)) {
|
|
14998
15062
|
const crList = cornerRadius.map(cr => parseCR(cr) || 0);
|
|
14999
15063
|
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);
|
|
@@ -15995,7 +16059,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
15995
16059
|
let roundCorner = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
|
|
15996
16060
|
let edgeCb = arguments.length > 7 ? arguments[7] : undefined;
|
|
15997
16061
|
let cornerRadius;
|
|
15998
|
-
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$
|
|
16062
|
+
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$2(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius = abs(rectCornerRadius), rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
|
|
15999
16063
|
const cornerRadiusArr = rectCornerRadius;
|
|
16000
16064
|
let cr0, cr1;
|
|
16001
16065
|
switch (cornerRadiusArr.length) {
|
|
@@ -16271,6 +16335,9 @@ class BaseRender {
|
|
|
16271
16335
|
init(contributions) {
|
|
16272
16336
|
contributions && (this._renderContribitions = contributions.getContributions()), this._renderContribitions || (this._renderContribitions = []), this.builtinContributions || (this.builtinContributions = []), this.builtinContributions.push(defaultBaseClipRenderBeforeContribution), this.builtinContributions.push(defaultBaseClipRenderAfterContribution), this.builtinContributions.forEach(item => this._renderContribitions.push(item)), this._renderContribitions.length && (this._renderContribitions.sort((a, b) => b.order - a.order), this._beforeRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.beforeFillStroke), this._afterRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.afterFillStroke));
|
|
16273
16337
|
}
|
|
16338
|
+
reInit() {
|
|
16339
|
+
this.init(this.graphicRenderContributions);
|
|
16340
|
+
}
|
|
16274
16341
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
16275
16342
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
16276
16343
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -16440,8 +16507,8 @@ var __decorate$1E = undefined && undefined.__decorate || function (decorators, t
|
|
|
16440
16507
|
};
|
|
16441
16508
|
};
|
|
16442
16509
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
16443
|
-
constructor(
|
|
16444
|
-
super(), this.
|
|
16510
|
+
constructor(graphicRenderContributions) {
|
|
16511
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
|
|
16445
16512
|
}
|
|
16446
16513
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
16447
16514
|
const capAngle = _ea - _sa,
|
|
@@ -16616,8 +16683,8 @@ var __decorate$1D = undefined && undefined.__decorate || function (decorators, t
|
|
|
16616
16683
|
};
|
|
16617
16684
|
};
|
|
16618
16685
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
16619
|
-
constructor(
|
|
16620
|
-
super(), this.
|
|
16686
|
+
constructor(graphicRenderContributions) {
|
|
16687
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
|
|
16621
16688
|
}
|
|
16622
16689
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
16623
16690
|
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -17003,8 +17070,8 @@ var __decorate$1B = undefined && undefined.__decorate || function (decorators, t
|
|
|
17003
17070
|
};
|
|
17004
17071
|
};
|
|
17005
17072
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
17006
|
-
constructor(
|
|
17007
|
-
super(), this.
|
|
17073
|
+
constructor(graphicRenderContributions) {
|
|
17074
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17008
17075
|
}
|
|
17009
17076
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
17010
17077
|
var _a, _b, _c;
|
|
@@ -17247,8 +17314,8 @@ var __decorate$1A = undefined && undefined.__decorate || function (decorators, t
|
|
|
17247
17314
|
};
|
|
17248
17315
|
};
|
|
17249
17316
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
17250
|
-
constructor(
|
|
17251
|
-
super(), this.
|
|
17317
|
+
constructor(graphicRenderContributions) {
|
|
17318
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17252
17319
|
}
|
|
17253
17320
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17254
17321
|
var _a, _b, _c;
|
|
@@ -17303,8 +17370,8 @@ var __decorate$1z = undefined && undefined.__decorate || function (decorators, t
|
|
|
17303
17370
|
};
|
|
17304
17371
|
};
|
|
17305
17372
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
17306
|
-
constructor(
|
|
17307
|
-
super(), this.
|
|
17373
|
+
constructor(graphicRenderContributions) {
|
|
17374
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17308
17375
|
}
|
|
17309
17376
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17310
17377
|
var _a;
|
|
@@ -17375,8 +17442,8 @@ var __decorate$1y = undefined && undefined.__decorate || function (decorators, t
|
|
|
17375
17442
|
};
|
|
17376
17443
|
};
|
|
17377
17444
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
17378
|
-
constructor(
|
|
17379
|
-
super(), this.
|
|
17445
|
+
constructor(graphicRenderContributions) {
|
|
17446
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
|
|
17380
17447
|
}
|
|
17381
17448
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17382
17449
|
var _a;
|
|
@@ -17547,8 +17614,8 @@ var __decorate$1x = undefined && undefined.__decorate || function (decorators, t
|
|
|
17547
17614
|
};
|
|
17548
17615
|
};
|
|
17549
17616
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
17550
|
-
constructor(
|
|
17551
|
-
super(), this.
|
|
17617
|
+
constructor(graphicRenderContributions) {
|
|
17618
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17552
17619
|
}
|
|
17553
17620
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17554
17621
|
var _a, _b, _c;
|
|
@@ -17762,8 +17829,8 @@ var __decorate$1v = undefined && undefined.__decorate || function (decorators, t
|
|
|
17762
17829
|
};
|
|
17763
17830
|
};
|
|
17764
17831
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
17765
|
-
constructor(
|
|
17766
|
-
super(), this.
|
|
17832
|
+
constructor(graphicRenderContributions) {
|
|
17833
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17767
17834
|
}
|
|
17768
17835
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17769
17836
|
const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -17818,6 +17885,9 @@ let DefaultCanvasGroupRender = class {
|
|
|
17818
17885
|
constructor(groupRenderContribitions) {
|
|
17819
17886
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
17820
17887
|
}
|
|
17888
|
+
reInit() {
|
|
17889
|
+
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
17890
|
+
}
|
|
17821
17891
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17822
17892
|
const groupAttribute = getTheme(group, null == params ? void 0 : params.theme).group,
|
|
17823
17893
|
{
|
|
@@ -17948,8 +18018,8 @@ var __decorate$1t = undefined && undefined.__decorate || function (decorators, t
|
|
|
17948
18018
|
};
|
|
17949
18019
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
17950
18020
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
17951
|
-
constructor(
|
|
17952
|
-
super(), this.
|
|
18021
|
+
constructor(graphicRenderContributions) {
|
|
18022
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17953
18023
|
}
|
|
17954
18024
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17955
18025
|
const imageAttribute = getTheme(image).image,
|
|
@@ -18279,6 +18349,9 @@ let DefaultRenderService = class {
|
|
|
18279
18349
|
afterDraw(params) {
|
|
18280
18350
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
18281
18351
|
}
|
|
18352
|
+
reInit() {
|
|
18353
|
+
this.drawContribution.reInit();
|
|
18354
|
+
}
|
|
18282
18355
|
render(groups, params) {
|
|
18283
18356
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
18284
18357
|
const updateBounds = params.updateBounds;
|
|
@@ -18682,6 +18755,11 @@ let DefaultDrawContribution = class {
|
|
|
18682
18755
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
18683
18756
|
this.contributions = contributions, this.drawItemInterceptorContributions = drawItemInterceptorContributions, this.currentRenderMap = new Map(), this.defaultRenderMap = new Map(), this.styleRenderMap = new Map(), this.dirtyBounds = new Bounds(), this.backupDirtyBounds = new Bounds(), this.global = application.global, this.layerService = application.layerService, isArray$1(this.contributions) || (this.contributions = [this.contributions]), this.init();
|
|
18684
18757
|
}
|
|
18758
|
+
reInit() {
|
|
18759
|
+
this.init(), this.contributions.forEach(item => {
|
|
18760
|
+
item.reInit();
|
|
18761
|
+
});
|
|
18762
|
+
}
|
|
18685
18763
|
init() {
|
|
18686
18764
|
this.contributions.forEach(item => {
|
|
18687
18765
|
if (item.style) {
|
|
@@ -19809,6 +19887,9 @@ class Stage extends Group {
|
|
|
19809
19887
|
getPickerService() {
|
|
19810
19888
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
19811
19889
|
}
|
|
19890
|
+
reInit() {
|
|
19891
|
+
this.renderService.reInit(), this.pickerService.reInit();
|
|
19892
|
+
}
|
|
19812
19893
|
}
|
|
19813
19894
|
|
|
19814
19895
|
function createStage(params) {
|
|
@@ -20406,6 +20487,9 @@ let DefaultPickService = class {
|
|
|
20406
20487
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
20407
20488
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
20408
20489
|
}
|
|
20490
|
+
reInit() {
|
|
20491
|
+
this._init();
|
|
20492
|
+
}
|
|
20409
20493
|
_init() {
|
|
20410
20494
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
20411
20495
|
}
|
|
@@ -20520,6 +20604,7 @@ let DefaultGlobalPickerService = class {
|
|
|
20520
20604
|
this.configure(global, env);
|
|
20521
20605
|
}), this.configure(this.global, this.global.env);
|
|
20522
20606
|
}
|
|
20607
|
+
reInit() {}
|
|
20523
20608
|
configure(global, env) {}
|
|
20524
20609
|
pick(graphics, point, params) {
|
|
20525
20610
|
let result = {
|
|
@@ -20592,6 +20677,80 @@ function flatten_simplify(points, tolerance, highestQuality) {
|
|
|
20592
20677
|
return points = highestQuality ? points : simplifyRadialDist(points, void 0 !== tolerance ? tolerance * tolerance : 1);
|
|
20593
20678
|
}
|
|
20594
20679
|
|
|
20680
|
+
function isIdentityMatrix(matrix) {
|
|
20681
|
+
return 1 === matrix.a && 0 === matrix.b && 0 === matrix.c && 1 === matrix.d && 0 === matrix.e && 0 === matrix.f;
|
|
20682
|
+
}
|
|
20683
|
+
function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
|
|
20684
|
+
return event => {
|
|
20685
|
+
if (!(event instanceof MouseEvent || event instanceof TouchEvent || event instanceof PointerEvent)) return event;
|
|
20686
|
+
const transformMatrix = getMatrix();
|
|
20687
|
+
if (isIdentityMatrix(transformMatrix)) return event;
|
|
20688
|
+
const containerRect = getRect(),
|
|
20689
|
+
transformedEvent = new event.constructor(event.type, event);
|
|
20690
|
+
if (Object.defineProperties(transformedEvent, {
|
|
20691
|
+
target: {
|
|
20692
|
+
value: event.target
|
|
20693
|
+
},
|
|
20694
|
+
currentTarget: {
|
|
20695
|
+
value: event.currentTarget
|
|
20696
|
+
}
|
|
20697
|
+
}), event instanceof MouseEvent || event instanceof PointerEvent) transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);else if (event instanceof TouchEvent) {
|
|
20698
|
+
if (event.touches.length > 0) {
|
|
20699
|
+
const touch = transformedEvent.touches[0];
|
|
20700
|
+
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
20701
|
+
}
|
|
20702
|
+
if (event.changedTouches.length > 0) {
|
|
20703
|
+
const touch = transformedEvent.changedTouches[0];
|
|
20704
|
+
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
20705
|
+
}
|
|
20706
|
+
}
|
|
20707
|
+
return transformedEvent;
|
|
20708
|
+
};
|
|
20709
|
+
}
|
|
20710
|
+
function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
|
|
20711
|
+
return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
|
|
20712
|
+
}
|
|
20713
|
+
function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
|
|
20714
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20715
|
+
window.setEventListenerTransformer(transformer);
|
|
20716
|
+
}
|
|
20717
|
+
function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
|
|
20718
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20719
|
+
global.setEventListenerTransformer(transformer);
|
|
20720
|
+
}
|
|
20721
|
+
function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
|
|
20722
|
+
const transformedPoint = {
|
|
20723
|
+
x: clientX,
|
|
20724
|
+
y: clientY
|
|
20725
|
+
};
|
|
20726
|
+
matrix.transformPoint(transformedPoint, transformedPoint), Object.defineProperties(transformedEvent, {
|
|
20727
|
+
_canvasX: {
|
|
20728
|
+
value: transformedPoint.x
|
|
20729
|
+
},
|
|
20730
|
+
_canvasY: {
|
|
20731
|
+
value: transformedPoint.y
|
|
20732
|
+
}
|
|
20733
|
+
});
|
|
20734
|
+
}
|
|
20735
|
+
function mapToCanvasPointForCanvas(nativeEvent) {
|
|
20736
|
+
var _a;
|
|
20737
|
+
if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) return {
|
|
20738
|
+
x: nativeEvent._canvasX,
|
|
20739
|
+
y: nativeEvent._canvasY
|
|
20740
|
+
};
|
|
20741
|
+
if (nativeEvent.changedTouches) {
|
|
20742
|
+
const data = null !== (_a = nativeEvent.changedTouches[0]) && void 0 !== _a ? _a : {};
|
|
20743
|
+
return {
|
|
20744
|
+
x: data._canvasX,
|
|
20745
|
+
y: data._canvasY
|
|
20746
|
+
};
|
|
20747
|
+
}
|
|
20748
|
+
return {
|
|
20749
|
+
x: nativeEvent._canvasX || 0,
|
|
20750
|
+
y: nativeEvent._canvasY || 0
|
|
20751
|
+
};
|
|
20752
|
+
}
|
|
20753
|
+
|
|
20595
20754
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
20596
20755
|
var t = {};
|
|
20597
20756
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
@@ -21803,6 +21962,7 @@ let DefaultCanvasGlyphRender = class {
|
|
|
21803
21962
|
constructor() {
|
|
21804
21963
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
21805
21964
|
}
|
|
21965
|
+
reInit() {}
|
|
21806
21966
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21807
21967
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
21808
21968
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -24335,6 +24495,10 @@ class RoughBaseRender {
|
|
|
24335
24495
|
drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb) {
|
|
24336
24496
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24337
24497
|
}
|
|
24498
|
+
reInit() {
|
|
24499
|
+
var _a;
|
|
24500
|
+
null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
|
|
24501
|
+
}
|
|
24338
24502
|
}
|
|
24339
24503
|
|
|
24340
24504
|
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -27150,7 +27314,7 @@ class RectPickerBase {
|
|
|
27150
27314
|
x += point.x, y += point.y, pickContext.setTransformForCurrent();
|
|
27151
27315
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
27152
27316
|
let picked = !0;
|
|
27153
|
-
if (!onlyTranslate || rect.shadowRoot || isNumber$
|
|
27317
|
+
if (!onlyTranslate || rect.shadowRoot || isNumber$2(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) => {
|
|
27154
27318
|
if (picked) return !0;
|
|
27155
27319
|
const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth,
|
|
27156
27320
|
pickStrokeBuffer = rectAttribute.pickStrokeBuffer || themeAttribute.pickStrokeBuffer,
|
|
@@ -31890,7 +32054,7 @@ function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic)
|
|
|
31890
32054
|
|
|
31891
32055
|
const roughModule = _roughModule;
|
|
31892
32056
|
|
|
31893
|
-
const version = "0.22.
|
|
32057
|
+
const version = "0.22.11";
|
|
31894
32058
|
preLoadAllModule();
|
|
31895
32059
|
if (isBrowserEnv()) {
|
|
31896
32060
|
loadBrowserEnv(container);
|
|
@@ -31924,4 +32088,4 @@ registerReactAttributePlugin();
|
|
|
31924
32088
|
registerDirectionalLight();
|
|
31925
32089
|
registerOrthoCamera();
|
|
31926
32090
|
|
|
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 };
|
|
32091
|
+
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, ContributionStore, 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, 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, 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, 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 };
|