@visactor/vrender 0.22.9-alpha.1 → 0.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +10 -11
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +101 -239
- package/dist/index.js +102 -245
- 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,14 +486,11 @@ 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;
|
|
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
|
-
}
|
|
497
494
|
}
|
|
498
495
|
function bindContributionProvider(bind, id) {
|
|
499
496
|
bind(ContributionProvider).toDynamicValue(_ref => {
|
|
@@ -511,20 +508,6 @@ function bindContributionProviderNoSingletonScope(bind, id) {
|
|
|
511
508
|
return new ContributionProviderCache(id, container);
|
|
512
509
|
}).whenTargetNamed(id);
|
|
513
510
|
}
|
|
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();
|
|
528
511
|
|
|
529
512
|
class Hook {
|
|
530
513
|
constructor(args, name) {
|
|
@@ -591,48 +574,6 @@ const EnvContribution = Symbol.for("EnvContribution");
|
|
|
591
574
|
const VGlobal = Symbol.for("VGlobal");
|
|
592
575
|
const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
593
576
|
|
|
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
|
-
|
|
636
577
|
var __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
637
578
|
var d,
|
|
638
579
|
c = arguments.length,
|
|
@@ -673,7 +614,7 @@ var __decorate$1N = undefined && undefined.__decorate || function (decorators, t
|
|
|
673
614
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
674
615
|
});
|
|
675
616
|
};
|
|
676
|
-
let DefaultGlobal = class
|
|
617
|
+
let DefaultGlobal = class {
|
|
677
618
|
get env() {
|
|
678
619
|
return this._env;
|
|
679
620
|
}
|
|
@@ -717,19 +658,10 @@ let DefaultGlobal = class extends EventListenerManager {
|
|
|
717
658
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
718
659
|
}
|
|
719
660
|
constructor(contributions) {
|
|
720
|
-
|
|
661
|
+
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
721
662
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
722
663
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
723
664
|
}
|
|
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
|
-
}
|
|
733
665
|
bindContribution(params) {
|
|
734
666
|
const promiseArr = [];
|
|
735
667
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -770,6 +702,15 @@ let DefaultGlobal = class extends EventListenerManager {
|
|
|
770
702
|
releaseCanvas(canvas) {
|
|
771
703
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
772
704
|
}
|
|
705
|
+
addEventListener(type, listener, options) {
|
|
706
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
707
|
+
}
|
|
708
|
+
removeEventListener(type, listener, options) {
|
|
709
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
710
|
+
}
|
|
711
|
+
dispatchEvent(event) {
|
|
712
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
713
|
+
}
|
|
773
714
|
getRequestAnimationFrame() {
|
|
774
715
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
775
716
|
}
|
|
@@ -1231,14 +1172,14 @@ const isArrayLike = function (value) {
|
|
|
1231
1172
|
};
|
|
1232
1173
|
var isArrayLike$1 = isArrayLike;
|
|
1233
1174
|
|
|
1234
|
-
const isNumber
|
|
1175
|
+
const isNumber = function (value) {
|
|
1235
1176
|
let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
1236
1177
|
const type = typeof value;
|
|
1237
1178
|
return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
|
|
1238
1179
|
};
|
|
1239
|
-
var isNumber$
|
|
1180
|
+
var isNumber$1 = isNumber;
|
|
1240
1181
|
|
|
1241
|
-
const isValidNumber = value => isNumber$
|
|
1182
|
+
const isValidNumber = value => isNumber$1(value) && Number.isFinite(value);
|
|
1242
1183
|
var isValidNumber$1 = isValidNumber;
|
|
1243
1184
|
|
|
1244
1185
|
const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
|
|
@@ -1321,7 +1262,7 @@ var LoggerLevel;
|
|
|
1321
1262
|
}(LoggerLevel || (LoggerLevel = {}));
|
|
1322
1263
|
class Logger {
|
|
1323
1264
|
static getInstance(level, method) {
|
|
1324
|
-
return Logger._instance && isNumber$
|
|
1265
|
+
return Logger._instance && isNumber$1(level) ? Logger._instance.level(level) : Logger._instance || (Logger._instance = new Logger(level, method)), Logger._instance;
|
|
1325
1266
|
}
|
|
1326
1267
|
static setInstance(logger) {
|
|
1327
1268
|
return Logger._instance = logger;
|
|
@@ -1465,10 +1406,10 @@ class Point {
|
|
|
1465
1406
|
return this.x = x, this.y = y, this;
|
|
1466
1407
|
}
|
|
1467
1408
|
add(point) {
|
|
1468
|
-
return isNumber$
|
|
1409
|
+
return isNumber$1(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
1469
1410
|
}
|
|
1470
1411
|
sub(point) {
|
|
1471
|
-
return isNumber$
|
|
1412
|
+
return isNumber$1(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
1472
1413
|
}
|
|
1473
1414
|
multi(point) {
|
|
1474
1415
|
throw new Error("暂不支持");
|
|
@@ -2529,10 +2470,10 @@ function hex(value) {
|
|
|
2529
2470
|
return ((value = Math.max(0, Math.min(255, Math.round(value) || 0))) < 16 ? "0" : "") + value.toString(16);
|
|
2530
2471
|
}
|
|
2531
2472
|
function rgb(value) {
|
|
2532
|
-
return isNumber$
|
|
2473
|
+
return isNumber$1(value) ? new RGB(value >> 16, value >> 8 & 255, 255 & value, 1) : isArray$1(value) ? new RGB(value[0], value[1], value[2]) : new RGB(255, 255, 255);
|
|
2533
2474
|
}
|
|
2534
2475
|
function rgba(value) {
|
|
2535
|
-
return isNumber$
|
|
2476
|
+
return isNumber$1(value) ? new RGB(value >>> 24, value >>> 16 & 255, value >>> 8 & 255, 255 & value) : isArray$1(value) ? new RGB(value[0], value[1], value[2], value[3]) : new RGB(255, 255, 255, 1);
|
|
2536
2477
|
}
|
|
2537
2478
|
function SRGBToLinear(c) {
|
|
2538
2479
|
return c < .04045 ? .0773993808 * c : Math.pow(.9478672986 * c + .0521327014, 2.4);
|
|
@@ -3570,6 +3511,11 @@ let Step$1 = class Step {
|
|
|
3570
3511
|
return this.context.tryUpdateLength();
|
|
3571
3512
|
}
|
|
3572
3513
|
};
|
|
3514
|
+
class StepClosed extends Step$1 {
|
|
3515
|
+
lineEnd() {
|
|
3516
|
+
this.context.closePath();
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3573
3519
|
function genStepSegments(points, t) {
|
|
3574
3520
|
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3575
3521
|
const {
|
|
@@ -3583,6 +3529,16 @@ function genStepSegments(points, t) {
|
|
|
3583
3529
|
function genStepTypeSegments(path, points) {
|
|
3584
3530
|
return genCurveSegments(path, points);
|
|
3585
3531
|
}
|
|
3532
|
+
function genStepClosedSegments(points, t) {
|
|
3533
|
+
let params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3534
|
+
const {
|
|
3535
|
+
direction: direction,
|
|
3536
|
+
startPoint: startPoint
|
|
3537
|
+
} = params;
|
|
3538
|
+
if (points.length < 2 - Number(!!startPoint)) return null;
|
|
3539
|
+
const segContext = new SegContext("step", null != direction ? direction : abs(points[points.length - 1].x - points[0].x) > abs(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
|
|
3540
|
+
return genStepTypeSegments(new StepClosed(segContext, t, startPoint), points), segContext;
|
|
3541
|
+
}
|
|
3586
3542
|
|
|
3587
3543
|
class LinearClosed extends Linear {
|
|
3588
3544
|
lineEnd() {
|
|
@@ -3812,6 +3768,8 @@ function calcLineCache(points, curveType, params) {
|
|
|
3812
3768
|
return genMonotoneYSegments(points, params);
|
|
3813
3769
|
case "step":
|
|
3814
3770
|
return genStepSegments(points, .5, params);
|
|
3771
|
+
case "stepClosed":
|
|
3772
|
+
return genStepClosedSegments(points, .5, params);
|
|
3815
3773
|
case "stepBefore":
|
|
3816
3774
|
return genStepSegments(points, 0, params);
|
|
3817
3775
|
case "stepAfter":
|
|
@@ -5301,9 +5259,6 @@ function isAroundZero(val) {
|
|
|
5301
5259
|
function isNotAroundZero(val) {
|
|
5302
5260
|
return val > EPSILON || val < -EPSILON;
|
|
5303
5261
|
}
|
|
5304
|
-
function isNumber(data) {
|
|
5305
|
-
return "number" == typeof data && Number.isFinite(data);
|
|
5306
|
-
}
|
|
5307
5262
|
const _v0 = [0, 0],
|
|
5308
5263
|
_v1 = [0, 0],
|
|
5309
5264
|
_v2 = [0, 0];
|
|
@@ -5708,7 +5663,7 @@ var __decorate$1K = undefined && undefined.__decorate || function (decorators, t
|
|
|
5708
5663
|
};
|
|
5709
5664
|
const VWindow = Symbol.for("VWindow");
|
|
5710
5665
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
5711
|
-
let DefaultWindow = class
|
|
5666
|
+
let DefaultWindow = class {
|
|
5712
5667
|
get width() {
|
|
5713
5668
|
if (this._handler) {
|
|
5714
5669
|
const wh = this._handler.getWH();
|
|
@@ -5727,7 +5682,7 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5727
5682
|
return this._handler.getDpr();
|
|
5728
5683
|
}
|
|
5729
5684
|
constructor() {
|
|
5730
|
-
|
|
5685
|
+
this.hooks = {
|
|
5731
5686
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
5732
5687
|
}, this.active = () => {
|
|
5733
5688
|
const global = this.global;
|
|
@@ -5735,15 +5690,6 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5735
5690
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
5736
5691
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
5737
5692
|
}
|
|
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
|
-
}
|
|
5747
5693
|
postInit() {
|
|
5748
5694
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
5749
5695
|
}
|
|
@@ -5783,7 +5729,7 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5783
5729
|
throw new Error("暂不支持");
|
|
5784
5730
|
}
|
|
5785
5731
|
release() {
|
|
5786
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this.
|
|
5732
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
5787
5733
|
}
|
|
5788
5734
|
getContext() {
|
|
5789
5735
|
return this._handler.getContext();
|
|
@@ -5794,6 +5740,15 @@ let DefaultWindow = class extends EventListenerManager {
|
|
|
5794
5740
|
getImageBuffer(type) {
|
|
5795
5741
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
5796
5742
|
}
|
|
5743
|
+
addEventListener(type, listener, options) {
|
|
5744
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5745
|
+
}
|
|
5746
|
+
removeEventListener(type, listener, options) {
|
|
5747
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5748
|
+
}
|
|
5749
|
+
dispatchEvent(event) {
|
|
5750
|
+
return this._handler.dispatchEvent(event);
|
|
5751
|
+
}
|
|
5797
5752
|
getBoundingClientRect() {
|
|
5798
5753
|
return this._handler.getBoundingClientRect();
|
|
5799
5754
|
}
|
|
@@ -7002,17 +6957,19 @@ class EventSystem {
|
|
|
7002
6957
|
globalObj: globalObj,
|
|
7003
6958
|
domElement: domElement
|
|
7004
6959
|
} = this;
|
|
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, {
|
|
6960
|
+
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("pointermove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("mousemove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
|
|
7006
6961
|
capture: !0
|
|
7007
6962
|
}), this.eventsAdded = !0;
|
|
7008
6963
|
}
|
|
7009
6964
|
removeEvents() {
|
|
6965
|
+
var _a;
|
|
7010
6966
|
if (!this.eventsAdded || !this.domElement) return;
|
|
7011
6967
|
const {
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
6968
|
+
globalObj: globalObj,
|
|
6969
|
+
domElement: domElement
|
|
6970
|
+
} = this,
|
|
6971
|
+
globalDocument = null !== (_a = globalObj.getDocument()) && void 0 !== _a ? _a : domElement;
|
|
6972
|
+
this.supportsPointerEvents ? (globalDocument.removeEventListener("pointermove", this.onPointerMove, !0), globalDocument.removeEventListener("pointerup", this.onPointerUp, !0), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalDocument.removeEventListener("mousemove", this.onPointerMove, !0), globalDocument.removeEventListener("mouseup", this.onPointerUp, !0), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
|
|
7016
6973
|
}
|
|
7017
6974
|
mapToViewportPoint(event) {
|
|
7018
6975
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -8006,7 +7963,7 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
8006
7963
|
}
|
|
8007
7964
|
onBind() {
|
|
8008
7965
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8009
|
-
this.fromNumber = isNumber$
|
|
7966
|
+
this.fromNumber = isNumber$1(null === (_a = this.from) || void 0 === _a ? void 0 : _a.text) ? null === (_b = this.from) || void 0 === _b ? void 0 : _b.text : Number.parseFloat(null === (_c = this.from) || void 0 === _c ? void 0 : _c.text), this.toNumber = isNumber$1(null === (_d = this.to) || void 0 === _d ? void 0 : _d.text) ? null === (_e = this.to) || void 0 === _e ? void 0 : _e.text : Number.parseFloat(null === (_f = this.to) || void 0 === _f ? void 0 : _f.text), Number.isFinite(this.toNumber) || (this.fromNumber = 0), Number.isFinite(this.toNumber) || (this.valid = !1), !1 !== this.valid && (this.decimalLength = null !== (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.fixed) && void 0 !== _h ? _h : Math.max(getDecimalPlaces(this.fromNumber), getDecimalPlaces(this.toNumber)));
|
|
8010
7967
|
}
|
|
8011
7968
|
onEnd() {}
|
|
8012
7969
|
onUpdate(end, ratio, out) {
|
|
@@ -9149,7 +9106,7 @@ const splitCircle = (arc, count) => {
|
|
|
9149
9106
|
return res;
|
|
9150
9107
|
};
|
|
9151
9108
|
const samplingPoints = (points, count) => {
|
|
9152
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9109
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$1(point.x) && isNumber$1(point.y));
|
|
9153
9110
|
if (0 === validatePoints.length) return [];
|
|
9154
9111
|
if (1 === validatePoints.length) return new Array(count).fill(0).map(i => validatePoints[0]);
|
|
9155
9112
|
const res = [];
|
|
@@ -9185,7 +9142,7 @@ const splitArea = (area, count) => {
|
|
|
9185
9142
|
var _a;
|
|
9186
9143
|
return res.concat(null !== (_a = seg.points) && void 0 !== _a ? _a : []);
|
|
9187
9144
|
}, []));
|
|
9188
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
9145
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$1(point.x) && isNumber$1(point.y));
|
|
9189
9146
|
if (!validatePoints.length) return [];
|
|
9190
9147
|
const allPoints = [];
|
|
9191
9148
|
validatePoints.forEach(point => {
|
|
@@ -9391,10 +9348,10 @@ ColorStore.store255 = {}, ColorStore.store1 = {};
|
|
|
9391
9348
|
|
|
9392
9349
|
function colorArrayToString(color) {
|
|
9393
9350
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
9394
|
-
return Array.isArray(color) && isNumber$
|
|
9351
|
+
return Array.isArray(color) && isNumber$1(color[0]) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
9395
9352
|
}
|
|
9396
9353
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
9397
|
-
if (Array.isArray(from) && !isNumber$
|
|
9354
|
+
if (Array.isArray(from) && !isNumber$1(from[0]) || Array.isArray(to) && !isNumber$1(to[0])) {
|
|
9398
9355
|
return new Array(4).fill(0).map((_, index) => _interpolateColor(isArray$1(from) ? from[index] : from, isArray$1(to) ? to[index] : to, ratio, alphaChannel));
|
|
9399
9356
|
}
|
|
9400
9357
|
return _interpolateColor(from, to, ratio, alphaChannel, cb);
|
|
@@ -9922,13 +9879,13 @@ ResourceLoader.cache = new Map(), ResourceLoader.isLoading = !1, ResourceLoader.
|
|
|
9922
9879
|
|
|
9923
9880
|
class BaseSymbol {
|
|
9924
9881
|
bounds(size, bounds) {
|
|
9925
|
-
if (isNumber$
|
|
9882
|
+
if (isNumber$1(size)) {
|
|
9926
9883
|
const halfS = size / 2;
|
|
9927
9884
|
bounds.x1 = -halfS, bounds.x2 = halfS, bounds.y1 = -halfS, bounds.y2 = halfS;
|
|
9928
9885
|
} else bounds.x1 = -size[0] / 2, bounds.x2 = size[0] / 2, bounds.y1 = -size[1] / 2, bounds.y2 = size[1] / 2;
|
|
9929
9886
|
}
|
|
9930
9887
|
parseSize(size) {
|
|
9931
|
-
return isNumber$
|
|
9888
|
+
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
9932
9889
|
}
|
|
9933
9890
|
}
|
|
9934
9891
|
|
|
@@ -10347,10 +10304,10 @@ class RectSymbol extends BaseSymbol {
|
|
|
10347
10304
|
super(...arguments), this.type = "rect", this.pathStr = "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z";
|
|
10348
10305
|
}
|
|
10349
10306
|
draw(ctx, size, x, y) {
|
|
10350
|
-
return isNumber$
|
|
10307
|
+
return isNumber$1(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
10351
10308
|
}
|
|
10352
10309
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10353
|
-
isNumber$
|
|
10310
|
+
isNumber$1(size) && (size = [size, size / 2]);
|
|
10354
10311
|
const drawLength = 2 * (size[0] + size[1]) * clipRange,
|
|
10355
10312
|
points = [{
|
|
10356
10313
|
x: x + size[0] / 2,
|
|
@@ -10382,12 +10339,12 @@ class RectSymbol extends BaseSymbol {
|
|
|
10382
10339
|
return !1;
|
|
10383
10340
|
}
|
|
10384
10341
|
drawOffset(ctx, size, x, y, offset) {
|
|
10385
|
-
return isNumber$
|
|
10342
|
+
return isNumber$1(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
10386
10343
|
}
|
|
10387
10344
|
}
|
|
10388
10345
|
var rect = new RectSymbol();
|
|
10389
10346
|
|
|
10390
|
-
const tempBounds
|
|
10347
|
+
const tempBounds = new AABBBounds();
|
|
10391
10348
|
class CustomSymbolClass {
|
|
10392
10349
|
constructor(type, path) {
|
|
10393
10350
|
let isSvg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
|
|
@@ -10402,7 +10359,7 @@ class CustomSymbolClass {
|
|
|
10402
10359
|
return size = this.parseSize(size), this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
10403
10360
|
}
|
|
10404
10361
|
parseSize(size) {
|
|
10405
|
-
return isNumber$
|
|
10362
|
+
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
10406
10363
|
}
|
|
10407
10364
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
10408
10365
|
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
@@ -10416,7 +10373,7 @@ class CustomSymbolClass {
|
|
|
10416
10373
|
let {
|
|
10417
10374
|
path: path
|
|
10418
10375
|
} = _ref;
|
|
10419
|
-
tempBounds
|
|
10376
|
+
tempBounds.x1 = path.bounds.x1 * size, tempBounds.y1 = path.bounds.y1 * size, tempBounds.x2 = path.bounds.x2 * size, tempBounds.y2 = path.bounds.y2 * size, bounds.union(tempBounds);
|
|
10420
10377
|
});
|
|
10421
10378
|
}
|
|
10422
10379
|
this.path.bounds && (bounds.x1 = this.path.bounds.x1 * size, bounds.y1 = this.path.bounds.y1 * size, bounds.x2 = this.path.bounds.x2 * size, bounds.y2 = this.path.bounds.y2 * size);
|
|
@@ -10812,8 +10769,8 @@ const SVG_PARSE_ATTRIBUTE_MAP = {
|
|
|
10812
10769
|
const SVG_PARSE_ATTRIBUTE_MAP_KEYS = Object.keys(SVG_PARSE_ATTRIBUTE_MAP);
|
|
10813
10770
|
|
|
10814
10771
|
const _tempBounds$1 = new AABBBounds(),
|
|
10815
|
-
tempMatrix = new Matrix()
|
|
10816
|
-
|
|
10772
|
+
tempMatrix = new Matrix();
|
|
10773
|
+
new AABBBounds();
|
|
10817
10774
|
const PURE_STYLE_KEY = ["stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity"];
|
|
10818
10775
|
const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
|
|
10819
10776
|
const tempConstantXYKey = ["x", "y"],
|
|
@@ -11333,25 +11290,12 @@ class Graphic extends Node {
|
|
|
11333
11290
|
needUpdateLayout() {
|
|
11334
11291
|
return !!(this._updateTag & UpdateTag.UPDATE_LAYOUT);
|
|
11335
11292
|
}
|
|
11336
|
-
getAnchor(anchor, params) {
|
|
11293
|
+
getAnchor(anchor, params, resetScale) {
|
|
11337
11294
|
const _anchor = [0, 0],
|
|
11338
11295
|
getBounds = () => {
|
|
11339
11296
|
if (params.b) return params.b;
|
|
11340
|
-
const
|
|
11341
|
-
|
|
11342
|
-
scaleY: scaleY,
|
|
11343
|
-
angle: angle,
|
|
11344
|
-
scaleCenter: scaleCenter
|
|
11345
|
-
} = this.attribute;
|
|
11346
|
-
return tempBounds.copy(this._AABBBounds), this.setAttributes({
|
|
11347
|
-
angle: 0,
|
|
11348
|
-
scaleCenter: null
|
|
11349
|
-
}), params.b = this.AABBBounds.clone(), this._AABBBounds.copy(tempBounds), this.setAttributes({
|
|
11350
|
-
scaleX: scaleX,
|
|
11351
|
-
scaleY: scaleY,
|
|
11352
|
-
angle: angle,
|
|
11353
|
-
scaleCenter: scaleCenter
|
|
11354
|
-
}), params.b;
|
|
11297
|
+
const graphic = this.clone();
|
|
11298
|
+
return graphic.attribute.angle = 0, graphic.attribute.scaleCenter = null, resetScale && (graphic.attribute.scaleX = 1, graphic.attribute.scaleY = 1), params.b = graphic.AABBBounds, params.b;
|
|
11355
11299
|
};
|
|
11356
11300
|
if ("string" == typeof anchor[0]) {
|
|
11357
11301
|
const ratio = parseFloat(anchor[0]) / 100,
|
|
@@ -11380,7 +11324,7 @@ class Graphic extends Node {
|
|
|
11380
11324
|
const params = {};
|
|
11381
11325
|
if (anchor && angle && (_anchor = this.getAnchor(anchor, params)), !scaleCenter || 1 === scaleX && 1 === scaleY) normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);else {
|
|
11382
11326
|
const m = this._transMatrix;
|
|
11383
|
-
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
11327
|
+
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), _anchor = this.getAnchor(scaleCenter, params, !0), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
11384
11328
|
x: _anchor[0],
|
|
11385
11329
|
y: _anchor[1]
|
|
11386
11330
|
});
|
|
@@ -12658,12 +12602,12 @@ let DefaultGraphicService = class {
|
|
|
12658
12602
|
textBaseline: textBaseline
|
|
12659
12603
|
} = attribute;
|
|
12660
12604
|
if (null != attribute.forceBoundsHeight) {
|
|
12661
|
-
const h = isNumber$
|
|
12605
|
+
const h = isNumber$1(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
12662
12606
|
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
12663
12607
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
12664
12608
|
}
|
|
12665
12609
|
if (null != attribute.forceBoundsWidth) {
|
|
12666
|
-
const w = isNumber$
|
|
12610
|
+
const w = isNumber$1(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
12667
12611
|
dx = textDrawOffsetX(textAlign, w);
|
|
12668
12612
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
12669
12613
|
}
|
|
@@ -14762,7 +14706,7 @@ class RichText extends Graphic {
|
|
|
14762
14706
|
}
|
|
14763
14707
|
} else {
|
|
14764
14708
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
14765
|
-
if (isNumber$
|
|
14709
|
+
if (isNumber$1(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
14766
14710
|
const textParts = richTextConfig.text.split("\n");
|
|
14767
14711
|
for (let j = 0; j < textParts.length; j++) if (0 === j) paragraphs.push(new Paragraph(textParts[j], !1, richTextConfig, ascentDescentMode));else if (textParts[j] || i === textConfig.length - 1) paragraphs.push(new Paragraph(textParts[j], !0, richTextConfig, ascentDescentMode));else {
|
|
14768
14712
|
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
@@ -15049,7 +14993,7 @@ class Arc extends Graphic {
|
|
|
15049
14993
|
} = this.attribute;
|
|
15050
14994
|
if (outerRadius += outerPadding, innerRadius -= innerPadding, 0 === cornerRadius || "0%" === cornerRadius) return 0;
|
|
15051
14995
|
const deltaRadius = Math.abs(outerRadius - innerRadius),
|
|
15052
|
-
parseCR = cornerRadius => Math.min(isNumber$
|
|
14996
|
+
parseCR = cornerRadius => Math.min(isNumber$1(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
|
|
15053
14997
|
if (isArray$1(cornerRadius)) {
|
|
15054
14998
|
const crList = cornerRadius.map(cr => parseCR(cr) || 0);
|
|
15055
14999
|
return 0 === crList.length ? [crList[0], crList[0], crList[0], crList[0]] : 2 === crList.length ? [crList[0], crList[1], crList[0], crList[1]] : (3 === crList.length && crList.push(0), crList);
|
|
@@ -16051,7 +15995,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
16051
15995
|
let roundCorner = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
|
|
16052
15996
|
let edgeCb = arguments.length > 7 ? arguments[7] : undefined;
|
|
16053
15997
|
let cornerRadius;
|
|
16054
|
-
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$
|
|
15998
|
+
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$1(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius = abs(rectCornerRadius), rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
|
|
16055
15999
|
const cornerRadiusArr = rectCornerRadius;
|
|
16056
16000
|
let cr0, cr1;
|
|
16057
16001
|
switch (cornerRadiusArr.length) {
|
|
@@ -16327,9 +16271,6 @@ class BaseRender {
|
|
|
16327
16271
|
init(contributions) {
|
|
16328
16272
|
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));
|
|
16329
16273
|
}
|
|
16330
|
-
reInit() {
|
|
16331
|
-
this.init(this.graphicRenderContributions);
|
|
16332
|
-
}
|
|
16333
16274
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
16334
16275
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
16335
16276
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -16499,8 +16440,8 @@ var __decorate$1E = undefined && undefined.__decorate || function (decorators, t
|
|
|
16499
16440
|
};
|
|
16500
16441
|
};
|
|
16501
16442
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
16502
|
-
constructor(
|
|
16503
|
-
super(), this.
|
|
16443
|
+
constructor(arcRenderContribitions) {
|
|
16444
|
+
super(), this.arcRenderContribitions = arcRenderContribitions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(arcRenderContribitions);
|
|
16504
16445
|
}
|
|
16505
16446
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
16506
16447
|
const capAngle = _ea - _sa,
|
|
@@ -16675,8 +16616,8 @@ var __decorate$1D = undefined && undefined.__decorate || function (decorators, t
|
|
|
16675
16616
|
};
|
|
16676
16617
|
};
|
|
16677
16618
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
16678
|
-
constructor(
|
|
16679
|
-
super(), this.
|
|
16619
|
+
constructor(circleRenderContribitions) {
|
|
16620
|
+
super(), this.circleRenderContribitions = circleRenderContribitions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(circleRenderContribitions);
|
|
16680
16621
|
}
|
|
16681
16622
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
16682
16623
|
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -17062,8 +17003,8 @@ var __decorate$1B = undefined && undefined.__decorate || function (decorators, t
|
|
|
17062
17003
|
};
|
|
17063
17004
|
};
|
|
17064
17005
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
17065
|
-
constructor(
|
|
17066
|
-
super(), this.
|
|
17006
|
+
constructor(areaRenderContribitions) {
|
|
17007
|
+
super(), this.areaRenderContribitions = areaRenderContribitions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(areaRenderContribitions);
|
|
17067
17008
|
}
|
|
17068
17009
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
17069
17010
|
var _a, _b, _c;
|
|
@@ -17306,8 +17247,8 @@ var __decorate$1A = undefined && undefined.__decorate || function (decorators, t
|
|
|
17306
17247
|
};
|
|
17307
17248
|
};
|
|
17308
17249
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
17309
|
-
constructor(
|
|
17310
|
-
super(), this.
|
|
17250
|
+
constructor(pathRenderContribitions) {
|
|
17251
|
+
super(), this.pathRenderContribitions = pathRenderContribitions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(pathRenderContribitions);
|
|
17311
17252
|
}
|
|
17312
17253
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17313
17254
|
var _a, _b, _c;
|
|
@@ -17362,8 +17303,8 @@ var __decorate$1z = undefined && undefined.__decorate || function (decorators, t
|
|
|
17362
17303
|
};
|
|
17363
17304
|
};
|
|
17364
17305
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
17365
|
-
constructor(
|
|
17366
|
-
super(), this.
|
|
17306
|
+
constructor(rectRenderContribitions) {
|
|
17307
|
+
super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(rectRenderContribitions);
|
|
17367
17308
|
}
|
|
17368
17309
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17369
17310
|
var _a;
|
|
@@ -17434,8 +17375,8 @@ var __decorate$1y = undefined && undefined.__decorate || function (decorators, t
|
|
|
17434
17375
|
};
|
|
17435
17376
|
};
|
|
17436
17377
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
17437
|
-
constructor(
|
|
17438
|
-
super(), this.
|
|
17378
|
+
constructor(symbolRenderContribitions) {
|
|
17379
|
+
super(), this.symbolRenderContribitions = symbolRenderContribitions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(symbolRenderContribitions);
|
|
17439
17380
|
}
|
|
17440
17381
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17441
17382
|
var _a;
|
|
@@ -17606,8 +17547,8 @@ var __decorate$1x = undefined && undefined.__decorate || function (decorators, t
|
|
|
17606
17547
|
};
|
|
17607
17548
|
};
|
|
17608
17549
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
17609
|
-
constructor(
|
|
17610
|
-
super(), this.
|
|
17550
|
+
constructor(textRenderContribitions) {
|
|
17551
|
+
super(), this.textRenderContribitions = textRenderContribitions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(textRenderContribitions);
|
|
17611
17552
|
}
|
|
17612
17553
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17613
17554
|
var _a, _b, _c;
|
|
@@ -17821,8 +17762,8 @@ var __decorate$1v = undefined && undefined.__decorate || function (decorators, t
|
|
|
17821
17762
|
};
|
|
17822
17763
|
};
|
|
17823
17764
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
17824
|
-
constructor(
|
|
17825
|
-
super(), this.
|
|
17765
|
+
constructor(polygonRenderContribitions) {
|
|
17766
|
+
super(), this.polygonRenderContribitions = polygonRenderContribitions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(polygonRenderContribitions);
|
|
17826
17767
|
}
|
|
17827
17768
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17828
17769
|
const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -17877,9 +17818,6 @@ let DefaultCanvasGroupRender = class {
|
|
|
17877
17818
|
constructor(groupRenderContribitions) {
|
|
17878
17819
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
17879
17820
|
}
|
|
17880
|
-
reInit() {
|
|
17881
|
-
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
17882
|
-
}
|
|
17883
17821
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
17884
17822
|
const groupAttribute = getTheme(group, null == params ? void 0 : params.theme).group,
|
|
17885
17823
|
{
|
|
@@ -18010,8 +17948,8 @@ var __decorate$1t = undefined && undefined.__decorate || function (decorators, t
|
|
|
18010
17948
|
};
|
|
18011
17949
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
18012
17950
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
18013
|
-
constructor(
|
|
18014
|
-
super(), this.
|
|
17951
|
+
constructor(imageRenderContribitions) {
|
|
17952
|
+
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
18015
17953
|
}
|
|
18016
17954
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
18017
17955
|
const imageAttribute = getTheme(image).image,
|
|
@@ -18341,9 +18279,6 @@ let DefaultRenderService = class {
|
|
|
18341
18279
|
afterDraw(params) {
|
|
18342
18280
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
18343
18281
|
}
|
|
18344
|
-
reInit() {
|
|
18345
|
-
this.drawContribution.reInit();
|
|
18346
|
-
}
|
|
18347
18282
|
render(groups, params) {
|
|
18348
18283
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
18349
18284
|
const updateBounds = params.updateBounds;
|
|
@@ -18747,11 +18682,6 @@ let DefaultDrawContribution = class {
|
|
|
18747
18682
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
18748
18683
|
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();
|
|
18749
18684
|
}
|
|
18750
|
-
reInit() {
|
|
18751
|
-
this.init(), this.contributions.forEach(item => {
|
|
18752
|
-
item.reInit();
|
|
18753
|
-
});
|
|
18754
|
-
}
|
|
18755
18685
|
init() {
|
|
18756
18686
|
this.contributions.forEach(item => {
|
|
18757
18687
|
if (item.style) {
|
|
@@ -19879,9 +19809,6 @@ class Stage extends Group {
|
|
|
19879
19809
|
getPickerService() {
|
|
19880
19810
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
19881
19811
|
}
|
|
19882
|
-
reInit() {
|
|
19883
|
-
this.renderService.reInit(), this.pickerService.reInit();
|
|
19884
|
-
}
|
|
19885
19812
|
}
|
|
19886
19813
|
|
|
19887
19814
|
function createStage(params) {
|
|
@@ -20479,9 +20406,6 @@ let DefaultPickService = class {
|
|
|
20479
20406
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
20480
20407
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
20481
20408
|
}
|
|
20482
|
-
reInit() {
|
|
20483
|
-
this._init();
|
|
20484
|
-
}
|
|
20485
20409
|
_init() {
|
|
20486
20410
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
20487
20411
|
}
|
|
@@ -20596,7 +20520,6 @@ let DefaultGlobalPickerService = class {
|
|
|
20596
20520
|
this.configure(global, env);
|
|
20597
20521
|
}), this.configure(this.global, this.global.env);
|
|
20598
20522
|
}
|
|
20599
|
-
reInit() {}
|
|
20600
20523
|
configure(global, env) {}
|
|
20601
20524
|
pick(graphics, point, params) {
|
|
20602
20525
|
let result = {
|
|
@@ -20669,62 +20592,6 @@ function flatten_simplify(points, tolerance, highestQuality) {
|
|
|
20669
20592
|
return points = highestQuality ? points : simplifyRadialDist(points, void 0 !== tolerance ? tolerance * tolerance : 1);
|
|
20670
20593
|
}
|
|
20671
20594
|
|
|
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
|
-
|
|
20728
20595
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
20729
20596
|
var t = {};
|
|
20730
20597
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
@@ -21936,7 +21803,6 @@ let DefaultCanvasGlyphRender = class {
|
|
|
21936
21803
|
constructor() {
|
|
21937
21804
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
21938
21805
|
}
|
|
21939
|
-
reInit() {}
|
|
21940
21806
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21941
21807
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
21942
21808
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -24469,10 +24335,6 @@ class RoughBaseRender {
|
|
|
24469
24335
|
drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb) {
|
|
24470
24336
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24471
24337
|
}
|
|
24472
|
-
reInit() {
|
|
24473
|
-
var _a;
|
|
24474
|
-
null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
|
|
24475
|
-
}
|
|
24476
24338
|
}
|
|
24477
24339
|
|
|
24478
24340
|
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -27287,7 +27149,7 @@ class RectPickerBase {
|
|
|
27287
27149
|
x += point.x, y += point.y, pickContext.setTransformForCurrent();
|
|
27288
27150
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
27289
27151
|
let picked = !0;
|
|
27290
|
-
if (!onlyTranslate || rect.shadowRoot || isNumber$
|
|
27152
|
+
if (!onlyTranslate || rect.shadowRoot || isNumber$1(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(num => 0 !== num)) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, (context, rectAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(point.x, point.y), picked), (context, rectAttribute, themeAttribute) => {
|
|
27291
27153
|
if (picked) return !0;
|
|
27292
27154
|
const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth,
|
|
27293
27155
|
pickStrokeBuffer = rectAttribute.pickStrokeBuffer || themeAttribute.pickStrokeBuffer,
|
|
@@ -32027,7 +31889,7 @@ function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic)
|
|
|
32027
31889
|
|
|
32028
31890
|
const roughModule = _roughModule;
|
|
32029
31891
|
|
|
32030
|
-
const version = "0.22.9
|
|
31892
|
+
const version = "0.22.9";
|
|
32031
31893
|
preLoadAllModule();
|
|
32032
31894
|
if (isBrowserEnv()) {
|
|
32033
31895
|
loadBrowserEnv(container);
|
|
@@ -32061,4 +31923,4 @@ registerReactAttributePlugin();
|
|
|
32061
31923
|
registerDirectionalLight();
|
|
32062
31924
|
registerOrthoCamera();
|
|
32063
31925
|
|
|
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 };
|
|
31926
|
+
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 };
|