@visactor/vrender 0.22.8-alpha.0 → 0.22.9-alpha.1
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 +218 -76
- package/dist/index.js +224 -75
- 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
|
@@ -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);
|
|
@@ -5242,6 +5301,9 @@ function isAroundZero(val) {
|
|
|
5242
5301
|
function isNotAroundZero(val) {
|
|
5243
5302
|
return val > EPSILON || val < -EPSILON;
|
|
5244
5303
|
}
|
|
5304
|
+
function isNumber(data) {
|
|
5305
|
+
return "number" == typeof data && Number.isFinite(data);
|
|
5306
|
+
}
|
|
5245
5307
|
const _v0 = [0, 0],
|
|
5246
5308
|
_v1 = [0, 0],
|
|
5247
5309
|
_v2 = [0, 0];
|
|
@@ -5646,7 +5708,7 @@ var __decorate$1K = undefined && undefined.__decorate || function (decorators, t
|
|
|
5646
5708
|
};
|
|
5647
5709
|
const VWindow = Symbol.for("VWindow");
|
|
5648
5710
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
5649
|
-
let DefaultWindow = class {
|
|
5711
|
+
let DefaultWindow = class extends EventListenerManager {
|
|
5650
5712
|
get width() {
|
|
5651
5713
|
if (this._handler) {
|
|
5652
5714
|
const wh = this._handler.getWH();
|
|
@@ -5665,7 +5727,7 @@ let DefaultWindow = class {
|
|
|
5665
5727
|
return this._handler.getDpr();
|
|
5666
5728
|
}
|
|
5667
5729
|
constructor() {
|
|
5668
|
-
this.hooks = {
|
|
5730
|
+
super(), this.hooks = {
|
|
5669
5731
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
5670
5732
|
}, this.active = () => {
|
|
5671
5733
|
const global = this.global;
|
|
@@ -5673,6 +5735,15 @@ let DefaultWindow = class {
|
|
|
5673
5735
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
5674
5736
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
5675
5737
|
}
|
|
5738
|
+
_nativeAddEventListener(type, listener, options) {
|
|
5739
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5740
|
+
}
|
|
5741
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
5742
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5743
|
+
}
|
|
5744
|
+
_nativeDispatchEvent(event) {
|
|
5745
|
+
return this._handler.dispatchEvent(event);
|
|
5746
|
+
}
|
|
5676
5747
|
postInit() {
|
|
5677
5748
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
5678
5749
|
}
|
|
@@ -5712,7 +5783,7 @@ let DefaultWindow = class {
|
|
|
5712
5783
|
throw new Error("暂不支持");
|
|
5713
5784
|
}
|
|
5714
5785
|
release() {
|
|
5715
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
5786
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
|
|
5716
5787
|
}
|
|
5717
5788
|
getContext() {
|
|
5718
5789
|
return this._handler.getContext();
|
|
@@ -5723,15 +5794,6 @@ let DefaultWindow = class {
|
|
|
5723
5794
|
getImageBuffer(type) {
|
|
5724
5795
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
5725
5796
|
}
|
|
5726
|
-
addEventListener(type, listener, options) {
|
|
5727
|
-
return this._handler.addEventListener(type, listener, options);
|
|
5728
|
-
}
|
|
5729
|
-
removeEventListener(type, listener, options) {
|
|
5730
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
5731
|
-
}
|
|
5732
|
-
dispatchEvent(event) {
|
|
5733
|
-
return this._handler.dispatchEvent(event);
|
|
5734
|
-
}
|
|
5735
5797
|
getBoundingClientRect() {
|
|
5736
5798
|
return this._handler.getBoundingClientRect();
|
|
5737
5799
|
}
|
|
@@ -6940,19 +7002,17 @@ class EventSystem {
|
|
|
6940
7002
|
globalObj: globalObj,
|
|
6941
7003
|
domElement: domElement
|
|
6942
7004
|
} = this;
|
|
6943
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.
|
|
7005
|
+
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, {
|
|
6944
7006
|
capture: !0
|
|
6945
7007
|
}), this.eventsAdded = !0;
|
|
6946
7008
|
}
|
|
6947
7009
|
removeEvents() {
|
|
6948
|
-
var _a;
|
|
6949
7010
|
if (!this.eventsAdded || !this.domElement) return;
|
|
6950
7011
|
const {
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
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;
|
|
7012
|
+
globalObj: globalObj,
|
|
7013
|
+
domElement: domElement
|
|
7014
|
+
} = this;
|
|
7015
|
+
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;
|
|
6956
7016
|
}
|
|
6957
7017
|
mapToViewportPoint(event) {
|
|
6958
7018
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -7946,7 +8006,7 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
7946
8006
|
}
|
|
7947
8007
|
onBind() {
|
|
7948
8008
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7949
|
-
this.fromNumber = isNumber$
|
|
8009
|
+
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)));
|
|
7950
8010
|
}
|
|
7951
8011
|
onEnd() {}
|
|
7952
8012
|
onUpdate(end, ratio, out) {
|
|
@@ -9089,7 +9149,7 @@ const splitCircle = (arc, count) => {
|
|
|
9089
9149
|
return res;
|
|
9090
9150
|
};
|
|
9091
9151
|
const samplingPoints = (points, count) => {
|
|
9092
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9152
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
9093
9153
|
if (0 === validatePoints.length) return [];
|
|
9094
9154
|
if (1 === validatePoints.length) return new Array(count).fill(0).map(i => validatePoints[0]);
|
|
9095
9155
|
const res = [];
|
|
@@ -9125,7 +9185,7 @@ const splitArea = (area, count) => {
|
|
|
9125
9185
|
var _a;
|
|
9126
9186
|
return res.concat(null !== (_a = seg.points) && void 0 !== _a ? _a : []);
|
|
9127
9187
|
}, []));
|
|
9128
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9188
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
9129
9189
|
if (!validatePoints.length) return [];
|
|
9130
9190
|
const allPoints = [];
|
|
9131
9191
|
validatePoints.forEach(point => {
|
|
@@ -9331,10 +9391,10 @@ ColorStore.store255 = {}, ColorStore.store1 = {};
|
|
|
9331
9391
|
|
|
9332
9392
|
function colorArrayToString(color) {
|
|
9333
9393
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
9334
|
-
return Array.isArray(color) && isNumber$
|
|
9394
|
+
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;
|
|
9335
9395
|
}
|
|
9336
9396
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
9337
|
-
if (Array.isArray(from) && !isNumber$
|
|
9397
|
+
if (Array.isArray(from) && !isNumber$2(from[0]) || Array.isArray(to) && !isNumber$2(to[0])) {
|
|
9338
9398
|
return new Array(4).fill(0).map((_, index) => _interpolateColor(isArray$1(from) ? from[index] : from, isArray$1(to) ? to[index] : to, ratio, alphaChannel));
|
|
9339
9399
|
}
|
|
9340
9400
|
return _interpolateColor(from, to, ratio, alphaChannel, cb);
|
|
@@ -9862,13 +9922,13 @@ ResourceLoader.cache = new Map(), ResourceLoader.isLoading = !1, ResourceLoader.
|
|
|
9862
9922
|
|
|
9863
9923
|
class BaseSymbol {
|
|
9864
9924
|
bounds(size, bounds) {
|
|
9865
|
-
if (isNumber$
|
|
9925
|
+
if (isNumber$2(size)) {
|
|
9866
9926
|
const halfS = size / 2;
|
|
9867
9927
|
bounds.x1 = -halfS, bounds.x2 = halfS, bounds.y1 = -halfS, bounds.y2 = halfS;
|
|
9868
9928
|
} else bounds.x1 = -size[0] / 2, bounds.x2 = size[0] / 2, bounds.y1 = -size[1] / 2, bounds.y2 = size[1] / 2;
|
|
9869
9929
|
}
|
|
9870
9930
|
parseSize(size) {
|
|
9871
|
-
return isNumber$
|
|
9931
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
9872
9932
|
}
|
|
9873
9933
|
}
|
|
9874
9934
|
|
|
@@ -10287,10 +10347,10 @@ class RectSymbol extends BaseSymbol {
|
|
|
10287
10347
|
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";
|
|
10288
10348
|
}
|
|
10289
10349
|
draw(ctx, size, x, y) {
|
|
10290
|
-
return isNumber$
|
|
10350
|
+
return isNumber$2(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
10291
10351
|
}
|
|
10292
10352
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10293
|
-
isNumber$
|
|
10353
|
+
isNumber$2(size) && (size = [size, size / 2]);
|
|
10294
10354
|
const drawLength = 2 * (size[0] + size[1]) * clipRange,
|
|
10295
10355
|
points = [{
|
|
10296
10356
|
x: x + size[0] / 2,
|
|
@@ -10322,7 +10382,7 @@ class RectSymbol extends BaseSymbol {
|
|
|
10322
10382
|
return !1;
|
|
10323
10383
|
}
|
|
10324
10384
|
drawOffset(ctx, size, x, y, offset) {
|
|
10325
|
-
return isNumber$
|
|
10385
|
+
return isNumber$2(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
10326
10386
|
}
|
|
10327
10387
|
}
|
|
10328
10388
|
var rect = new RectSymbol();
|
|
@@ -10342,7 +10402,7 @@ class CustomSymbolClass {
|
|
|
10342
10402
|
return size = this.parseSize(size), this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
10343
10403
|
}
|
|
10344
10404
|
parseSize(size) {
|
|
10345
|
-
return isNumber$
|
|
10405
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
10346
10406
|
}
|
|
10347
10407
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10348
10408
|
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
@@ -12598,12 +12658,12 @@ let DefaultGraphicService = class {
|
|
|
12598
12658
|
textBaseline: textBaseline
|
|
12599
12659
|
} = attribute;
|
|
12600
12660
|
if (null != attribute.forceBoundsHeight) {
|
|
12601
|
-
const h = isNumber$
|
|
12661
|
+
const h = isNumber$2(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
12602
12662
|
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
12603
12663
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
12604
12664
|
}
|
|
12605
12665
|
if (null != attribute.forceBoundsWidth) {
|
|
12606
|
-
const w = isNumber$
|
|
12666
|
+
const w = isNumber$2(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
12607
12667
|
dx = textDrawOffsetX(textAlign, w);
|
|
12608
12668
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
12609
12669
|
}
|
|
@@ -14702,7 +14762,7 @@ class RichText extends Graphic {
|
|
|
14702
14762
|
}
|
|
14703
14763
|
} else {
|
|
14704
14764
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14705
|
-
if (isNumber$
|
|
14765
|
+
if (isNumber$2(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14706
14766
|
const textParts = richTextConfig.text.split("\n");
|
|
14707
14767
|
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 {
|
|
14708
14768
|
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
@@ -14989,7 +15049,7 @@ class Arc extends Graphic {
|
|
|
14989
15049
|
} = this.attribute;
|
|
14990
15050
|
if (outerRadius += outerPadding, innerRadius -= innerPadding, 0 === cornerRadius || "0%" === cornerRadius) return 0;
|
|
14991
15051
|
const deltaRadius = Math.abs(outerRadius - innerRadius),
|
|
14992
|
-
parseCR = cornerRadius => Math.min(isNumber$
|
|
15052
|
+
parseCR = cornerRadius => Math.min(isNumber$2(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
|
|
14993
15053
|
if (isArray$1(cornerRadius)) {
|
|
14994
15054
|
const crList = cornerRadius.map(cr => parseCR(cr) || 0);
|
|
14995
15055
|
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);
|
|
@@ -15991,7 +16051,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
15991
16051
|
let roundCorner = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
|
|
15992
16052
|
let edgeCb = arguments.length > 7 ? arguments[7] : undefined;
|
|
15993
16053
|
let cornerRadius;
|
|
15994
|
-
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$
|
|
16054
|
+
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)) {
|
|
15995
16055
|
const cornerRadiusArr = rectCornerRadius;
|
|
15996
16056
|
let cr0, cr1;
|
|
15997
16057
|
switch (cornerRadiusArr.length) {
|
|
@@ -16267,6 +16327,9 @@ class BaseRender {
|
|
|
16267
16327
|
init(contributions) {
|
|
16268
16328
|
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));
|
|
16269
16329
|
}
|
|
16330
|
+
reInit() {
|
|
16331
|
+
this.init(this.graphicRenderContributions);
|
|
16332
|
+
}
|
|
16270
16333
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
16271
16334
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
16272
16335
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -16436,8 +16499,8 @@ var __decorate$1E = undefined && undefined.__decorate || function (decorators, t
|
|
|
16436
16499
|
};
|
|
16437
16500
|
};
|
|
16438
16501
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
16439
|
-
constructor(
|
|
16440
|
-
super(), this.
|
|
16502
|
+
constructor(graphicRenderContributions) {
|
|
16503
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
|
|
16441
16504
|
}
|
|
16442
16505
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
16443
16506
|
const capAngle = _ea - _sa,
|
|
@@ -16612,8 +16675,8 @@ var __decorate$1D = undefined && undefined.__decorate || function (decorators, t
|
|
|
16612
16675
|
};
|
|
16613
16676
|
};
|
|
16614
16677
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
16615
|
-
constructor(
|
|
16616
|
-
super(), this.
|
|
16678
|
+
constructor(graphicRenderContributions) {
|
|
16679
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
|
|
16617
16680
|
}
|
|
16618
16681
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
16619
16682
|
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -16999,8 +17062,8 @@ var __decorate$1B = undefined && undefined.__decorate || function (decorators, t
|
|
|
16999
17062
|
};
|
|
17000
17063
|
};
|
|
17001
17064
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
17002
|
-
constructor(
|
|
17003
|
-
super(), this.
|
|
17065
|
+
constructor(graphicRenderContributions) {
|
|
17066
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17004
17067
|
}
|
|
17005
17068
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
17006
17069
|
var _a, _b, _c;
|
|
@@ -17243,8 +17306,8 @@ var __decorate$1A = undefined && undefined.__decorate || function (decorators, t
|
|
|
17243
17306
|
};
|
|
17244
17307
|
};
|
|
17245
17308
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
17246
|
-
constructor(
|
|
17247
|
-
super(), this.
|
|
17309
|
+
constructor(graphicRenderContributions) {
|
|
17310
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17248
17311
|
}
|
|
17249
17312
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17250
17313
|
var _a, _b, _c;
|
|
@@ -17299,8 +17362,8 @@ var __decorate$1z = undefined && undefined.__decorate || function (decorators, t
|
|
|
17299
17362
|
};
|
|
17300
17363
|
};
|
|
17301
17364
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
17302
|
-
constructor(
|
|
17303
|
-
super(), this.
|
|
17365
|
+
constructor(graphicRenderContributions) {
|
|
17366
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17304
17367
|
}
|
|
17305
17368
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17306
17369
|
var _a;
|
|
@@ -17371,8 +17434,8 @@ var __decorate$1y = undefined && undefined.__decorate || function (decorators, t
|
|
|
17371
17434
|
};
|
|
17372
17435
|
};
|
|
17373
17436
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
17374
|
-
constructor(
|
|
17375
|
-
super(), this.
|
|
17437
|
+
constructor(graphicRenderContributions) {
|
|
17438
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
|
|
17376
17439
|
}
|
|
17377
17440
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17378
17441
|
var _a;
|
|
@@ -17543,8 +17606,8 @@ var __decorate$1x = undefined && undefined.__decorate || function (decorators, t
|
|
|
17543
17606
|
};
|
|
17544
17607
|
};
|
|
17545
17608
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
17546
|
-
constructor(
|
|
17547
|
-
super(), this.
|
|
17609
|
+
constructor(graphicRenderContributions) {
|
|
17610
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17548
17611
|
}
|
|
17549
17612
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17550
17613
|
var _a, _b, _c;
|
|
@@ -17758,8 +17821,8 @@ var __decorate$1v = undefined && undefined.__decorate || function (decorators, t
|
|
|
17758
17821
|
};
|
|
17759
17822
|
};
|
|
17760
17823
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
17761
|
-
constructor(
|
|
17762
|
-
super(), this.
|
|
17824
|
+
constructor(graphicRenderContributions) {
|
|
17825
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
17763
17826
|
}
|
|
17764
17827
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17765
17828
|
const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -17814,6 +17877,9 @@ let DefaultCanvasGroupRender = class {
|
|
|
17814
17877
|
constructor(groupRenderContribitions) {
|
|
17815
17878
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
17816
17879
|
}
|
|
17880
|
+
reInit() {
|
|
17881
|
+
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
17882
|
+
}
|
|
17817
17883
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17818
17884
|
const groupAttribute = getTheme(group, null == params ? void 0 : params.theme).group,
|
|
17819
17885
|
{
|
|
@@ -17944,8 +18010,8 @@ var __decorate$1t = undefined && undefined.__decorate || function (decorators, t
|
|
|
17944
18010
|
};
|
|
17945
18011
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
17946
18012
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
17947
|
-
constructor(
|
|
17948
|
-
super(), this.
|
|
18013
|
+
constructor(graphicRenderContributions) {
|
|
18014
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
17949
18015
|
}
|
|
17950
18016
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17951
18017
|
const imageAttribute = getTheme(image).image,
|
|
@@ -18275,6 +18341,9 @@ let DefaultRenderService = class {
|
|
|
18275
18341
|
afterDraw(params) {
|
|
18276
18342
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
18277
18343
|
}
|
|
18344
|
+
reInit() {
|
|
18345
|
+
this.drawContribution.reInit();
|
|
18346
|
+
}
|
|
18278
18347
|
render(groups, params) {
|
|
18279
18348
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
18280
18349
|
const updateBounds = params.updateBounds;
|
|
@@ -18678,6 +18747,11 @@ let DefaultDrawContribution = class {
|
|
|
18678
18747
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
18679
18748
|
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();
|
|
18680
18749
|
}
|
|
18750
|
+
reInit() {
|
|
18751
|
+
this.init(), this.contributions.forEach(item => {
|
|
18752
|
+
item.reInit();
|
|
18753
|
+
});
|
|
18754
|
+
}
|
|
18681
18755
|
init() {
|
|
18682
18756
|
this.contributions.forEach(item => {
|
|
18683
18757
|
if (item.style) {
|
|
@@ -19805,6 +19879,9 @@ class Stage extends Group {
|
|
|
19805
19879
|
getPickerService() {
|
|
19806
19880
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
19807
19881
|
}
|
|
19882
|
+
reInit() {
|
|
19883
|
+
this.renderService.reInit(), this.pickerService.reInit();
|
|
19884
|
+
}
|
|
19808
19885
|
}
|
|
19809
19886
|
|
|
19810
19887
|
function createStage(params) {
|
|
@@ -20402,6 +20479,9 @@ let DefaultPickService = class {
|
|
|
20402
20479
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
20403
20480
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
20404
20481
|
}
|
|
20482
|
+
reInit() {
|
|
20483
|
+
this._init();
|
|
20484
|
+
}
|
|
20405
20485
|
_init() {
|
|
20406
20486
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
20407
20487
|
}
|
|
@@ -20516,6 +20596,7 @@ let DefaultGlobalPickerService = class {
|
|
|
20516
20596
|
this.configure(global, env);
|
|
20517
20597
|
}), this.configure(this.global, this.global.env);
|
|
20518
20598
|
}
|
|
20599
|
+
reInit() {}
|
|
20519
20600
|
configure(global, env) {}
|
|
20520
20601
|
pick(graphics, point, params) {
|
|
20521
20602
|
let result = {
|
|
@@ -20588,6 +20669,62 @@ function flatten_simplify(points, tolerance, highestQuality) {
|
|
|
20588
20669
|
return points = highestQuality ? points : simplifyRadialDist(points, void 0 !== tolerance ? tolerance * tolerance : 1);
|
|
20589
20670
|
}
|
|
20590
20671
|
|
|
20672
|
+
function isIdentityMatrix(matrix) {
|
|
20673
|
+
return 1 === matrix.a && 0 === matrix.b && 0 === matrix.c && 1 === matrix.d && 0 === matrix.e && 0 === matrix.f;
|
|
20674
|
+
}
|
|
20675
|
+
function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
|
|
20676
|
+
return event => {
|
|
20677
|
+
if (!(event instanceof MouseEvent || event instanceof TouchEvent || event instanceof PointerEvent)) return event;
|
|
20678
|
+
const transformMatrix = getMatrix();
|
|
20679
|
+
if (isIdentityMatrix(transformMatrix)) return event;
|
|
20680
|
+
const containerRect = getRect(),
|
|
20681
|
+
transformedEvent = new event.constructor(event.type, event);
|
|
20682
|
+
if (Object.defineProperties(transformedEvent, {
|
|
20683
|
+
target: {
|
|
20684
|
+
value: event.target
|
|
20685
|
+
},
|
|
20686
|
+
currentTarget: {
|
|
20687
|
+
value: event.currentTarget
|
|
20688
|
+
}
|
|
20689
|
+
}), event instanceof MouseEvent || event instanceof PointerEvent) transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);else if (event instanceof TouchEvent && event.touches.length > 0) {
|
|
20690
|
+
const touch = event.touches[0];
|
|
20691
|
+
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, transformedEvent);
|
|
20692
|
+
}
|
|
20693
|
+
return transformedEvent;
|
|
20694
|
+
};
|
|
20695
|
+
}
|
|
20696
|
+
function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
|
|
20697
|
+
return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
|
|
20698
|
+
}
|
|
20699
|
+
function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
|
|
20700
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20701
|
+
window.setEventListenerTransformer(transformer);
|
|
20702
|
+
}
|
|
20703
|
+
function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
|
|
20704
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
20705
|
+
global.setEventListenerTransformer(transformer);
|
|
20706
|
+
}
|
|
20707
|
+
function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
|
|
20708
|
+
const transformedPoint = {
|
|
20709
|
+
x: clientX,
|
|
20710
|
+
y: clientY
|
|
20711
|
+
};
|
|
20712
|
+
matrix.transformPoint(transformedPoint, transformedPoint), Object.defineProperties(transformedEvent, {
|
|
20713
|
+
_canvasX: {
|
|
20714
|
+
value: transformedPoint.x
|
|
20715
|
+
},
|
|
20716
|
+
_canvasY: {
|
|
20717
|
+
value: transformedPoint.y
|
|
20718
|
+
}
|
|
20719
|
+
});
|
|
20720
|
+
}
|
|
20721
|
+
function mapToCanvasPointForCanvas(nativeEvent) {
|
|
20722
|
+
if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) return {
|
|
20723
|
+
x: nativeEvent._canvasX,
|
|
20724
|
+
y: nativeEvent._canvasY
|
|
20725
|
+
};
|
|
20726
|
+
}
|
|
20727
|
+
|
|
20591
20728
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
20592
20729
|
var t = {};
|
|
20593
20730
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
@@ -21799,6 +21936,7 @@ let DefaultCanvasGlyphRender = class {
|
|
|
21799
21936
|
constructor() {
|
|
21800
21937
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
21801
21938
|
}
|
|
21939
|
+
reInit() {}
|
|
21802
21940
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21803
21941
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
21804
21942
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -24331,6 +24469,10 @@ class RoughBaseRender {
|
|
|
24331
24469
|
drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb) {
|
|
24332
24470
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24333
24471
|
}
|
|
24472
|
+
reInit() {
|
|
24473
|
+
var _a;
|
|
24474
|
+
null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
|
|
24475
|
+
}
|
|
24334
24476
|
}
|
|
24335
24477
|
|
|
24336
24478
|
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -27145,7 +27287,7 @@ class RectPickerBase {
|
|
|
27145
27287
|
x += point.x, y += point.y, pickContext.setTransformForCurrent();
|
|
27146
27288
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
27147
27289
|
let picked = !0;
|
|
27148
|
-
if (!onlyTranslate || rect.shadowRoot || isNumber$
|
|
27290
|
+
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) => {
|
|
27149
27291
|
if (picked) return !0;
|
|
27150
27292
|
const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth,
|
|
27151
27293
|
pickStrokeBuffer = rectAttribute.pickStrokeBuffer || themeAttribute.pickStrokeBuffer,
|
|
@@ -31885,7 +32027,7 @@ function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic)
|
|
|
31885
32027
|
|
|
31886
32028
|
const roughModule = _roughModule;
|
|
31887
32029
|
|
|
31888
|
-
const version = "0.22.
|
|
32030
|
+
const version = "0.22.9-alpha.1";
|
|
31889
32031
|
preLoadAllModule();
|
|
31890
32032
|
if (isBrowserEnv()) {
|
|
31891
32033
|
loadBrowserEnv(container);
|
|
@@ -31919,4 +32061,4 @@ registerReactAttributePlugin();
|
|
|
31919
32061
|
registerDirectionalLight();
|
|
31920
32062
|
registerOrthoCamera();
|
|
31921
32063
|
|
|
31922
|
-
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, 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, 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 };
|
|
32064
|
+
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, 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 };
|