@visactor/vrender 1.0.0-alpha.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +384 -193
- package/dist/index.js +390 -193
- 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 +4 -4
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,22 +591,67 @@ 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 Application {}
|
|
595
|
+
const application = new Application();
|
|
596
|
+
|
|
597
|
+
let idx = 0;
|
|
577
598
|
class PerformanceRAF {
|
|
578
599
|
constructor() {
|
|
579
|
-
this.nextAnimationFrameCbs =
|
|
600
|
+
this.nextAnimationFrameCbs = new Map(), this._rafHandle = null, this.runAnimationFrame = time => {
|
|
580
601
|
this._rafHandle = null;
|
|
581
602
|
const cbs = this.nextAnimationFrameCbs;
|
|
582
|
-
this.nextAnimationFrameCbs =
|
|
583
|
-
for (let i = 0; i < cbs.length; i++) cbs[i] && cbs[i](time);
|
|
603
|
+
this.nextAnimationFrameCbs = new Map(), cbs.forEach(cb => cb(time));
|
|
584
604
|
}, this.tryRunAnimationFrameNextFrame = () => {
|
|
585
|
-
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.
|
|
605
|
+
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.size && (this._rafHandle = application.global.getRequestAnimationFrame()(this.runAnimationFrame));
|
|
586
606
|
};
|
|
587
607
|
}
|
|
588
608
|
addAnimationFrameCb(callback) {
|
|
589
|
-
return this.nextAnimationFrameCbs.
|
|
609
|
+
return this.nextAnimationFrameCbs.set(++idx, callback), this.tryRunAnimationFrameNextFrame(), idx;
|
|
590
610
|
}
|
|
591
611
|
removeAnimationFrameCb(index) {
|
|
592
|
-
return
|
|
612
|
+
return !!this.nextAnimationFrameCbs.has(index) && (this.nextAnimationFrameCbs.delete(index), !0);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
class EventListenerManager {
|
|
617
|
+
constructor() {
|
|
618
|
+
this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
|
|
619
|
+
}
|
|
620
|
+
setEventListenerTransformer(transformer) {
|
|
621
|
+
this._eventListenerTransformer = transformer || (event => event);
|
|
622
|
+
}
|
|
623
|
+
addEventListener(type, listener, options) {
|
|
624
|
+
if (!listener) return;
|
|
625
|
+
const wrappedListener = event => {
|
|
626
|
+
const transformedEvent = this._eventListenerTransformer(event);
|
|
627
|
+
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
628
|
+
};
|
|
629
|
+
this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
|
|
630
|
+
}
|
|
631
|
+
removeEventListener(type, listener, options) {
|
|
632
|
+
var _a;
|
|
633
|
+
if (!listener) return;
|
|
634
|
+
const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
|
|
635
|
+
wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
|
|
636
|
+
}
|
|
637
|
+
dispatchEvent(event) {
|
|
638
|
+
return this._nativeDispatchEvent(event);
|
|
639
|
+
}
|
|
640
|
+
clearAllEventListeners() {
|
|
641
|
+
this._listenerMap.forEach((listenersMap, type) => {
|
|
642
|
+
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
643
|
+
this._nativeRemoveEventListener(type, wrappedListener, void 0);
|
|
644
|
+
});
|
|
645
|
+
}), this._listenerMap.clear();
|
|
646
|
+
}
|
|
647
|
+
_nativeAddEventListener(type, listener, options) {
|
|
648
|
+
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
649
|
+
}
|
|
650
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
651
|
+
throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
|
|
652
|
+
}
|
|
653
|
+
_nativeDispatchEvent(event) {
|
|
654
|
+
throw new Error("_nativeDispatchEvent must be implemented by derived classes");
|
|
593
655
|
}
|
|
594
656
|
}
|
|
595
657
|
|
|
@@ -633,7 +695,7 @@ var __decorate$1N = undefined && undefined.__decorate || function (decorators, t
|
|
|
633
695
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
634
696
|
});
|
|
635
697
|
};
|
|
636
|
-
let DefaultGlobal = class {
|
|
698
|
+
let DefaultGlobal = class extends EventListenerManager {
|
|
637
699
|
get env() {
|
|
638
700
|
return this._env;
|
|
639
701
|
}
|
|
@@ -677,10 +739,19 @@ let DefaultGlobal = class {
|
|
|
677
739
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
678
740
|
}
|
|
679
741
|
constructor(contributions) {
|
|
680
|
-
this.contributions = contributions, this._isImageAnonymous = !0, this._performanceRAFList = [], this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
742
|
+
super(), this.contributions = contributions, this._isImageAnonymous = !0, this._performanceRAFList = [], this.eventListenerTransformer = event => event, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
681
743
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
682
744
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
683
745
|
}
|
|
746
|
+
_nativeAddEventListener(type, listener, options) {
|
|
747
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
748
|
+
}
|
|
749
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
750
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
751
|
+
}
|
|
752
|
+
_nativeDispatchEvent(event) {
|
|
753
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
754
|
+
}
|
|
684
755
|
bindContribution(params) {
|
|
685
756
|
const promiseArr = [];
|
|
686
757
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -721,15 +792,6 @@ let DefaultGlobal = class {
|
|
|
721
792
|
releaseCanvas(canvas) {
|
|
722
793
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
723
794
|
}
|
|
724
|
-
addEventListener(type, listener, options) {
|
|
725
|
-
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
726
|
-
}
|
|
727
|
-
removeEventListener(type, listener, options) {
|
|
728
|
-
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
729
|
-
}
|
|
730
|
-
dispatchEvent(event) {
|
|
731
|
-
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
732
|
-
}
|
|
733
795
|
getRequestAnimationFrame() {
|
|
734
796
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
735
797
|
}
|
|
@@ -1220,14 +1282,14 @@ const isArrayLike = function (value) {
|
|
|
1220
1282
|
};
|
|
1221
1283
|
var isArrayLike$1 = isArrayLike;
|
|
1222
1284
|
|
|
1223
|
-
const isNumber = function (value) {
|
|
1285
|
+
const isNumber$1 = function (value) {
|
|
1224
1286
|
let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
1225
1287
|
const type = typeof value;
|
|
1226
1288
|
return fuzzy ? "number" === type : "number" === type || isType$1(value, "Number");
|
|
1227
1289
|
};
|
|
1228
|
-
var isNumber$
|
|
1290
|
+
var isNumber$2 = isNumber$1;
|
|
1229
1291
|
|
|
1230
|
-
const isValidNumber = value => isNumber$
|
|
1292
|
+
const isValidNumber = value => isNumber$2(value) && Number.isFinite(value);
|
|
1231
1293
|
var isValidNumber$1 = isValidNumber;
|
|
1232
1294
|
|
|
1233
1295
|
const isValidUrl = value => new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/).test(value);
|
|
@@ -1368,7 +1430,7 @@ var LoggerLevel;
|
|
|
1368
1430
|
}(LoggerLevel || (LoggerLevel = {}));
|
|
1369
1431
|
class Logger {
|
|
1370
1432
|
static getInstance(level, method) {
|
|
1371
|
-
return Logger._instance && isNumber$
|
|
1433
|
+
return Logger._instance && isNumber$2(level) ? Logger._instance.level(level) : Logger._instance || (Logger._instance = new Logger(level, method)), Logger._instance;
|
|
1372
1434
|
}
|
|
1373
1435
|
static setInstance(logger) {
|
|
1374
1436
|
return Logger._instance = logger;
|
|
@@ -1507,10 +1569,10 @@ class Point {
|
|
|
1507
1569
|
return this.x = x, this.y = y, this;
|
|
1508
1570
|
}
|
|
1509
1571
|
add(point) {
|
|
1510
|
-
return isNumber$
|
|
1572
|
+
return isNumber$2(point) ? (this.x += point, void (this.y += point)) : (this.x += point.x, this.y += point.y, this);
|
|
1511
1573
|
}
|
|
1512
1574
|
sub(point) {
|
|
1513
|
-
return isNumber$
|
|
1575
|
+
return isNumber$2(point) ? (this.x -= point, void (this.y -= point)) : (this.x -= point.x, this.y -= point.y, this);
|
|
1514
1576
|
}
|
|
1515
1577
|
multi(point) {
|
|
1516
1578
|
throw new Error("暂不支持");
|
|
@@ -2568,10 +2630,10 @@ function hex(value) {
|
|
|
2568
2630
|
return ((value = Math.max(0, Math.min(255, Math.round(value) || 0))) < 16 ? "0" : "") + value.toString(16);
|
|
2569
2631
|
}
|
|
2570
2632
|
function rgb(value) {
|
|
2571
|
-
return isNumber$
|
|
2633
|
+
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);
|
|
2572
2634
|
}
|
|
2573
2635
|
function rgba(value) {
|
|
2574
|
-
return isNumber$
|
|
2636
|
+
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);
|
|
2575
2637
|
}
|
|
2576
2638
|
function SRGBToLinear(c) {
|
|
2577
2639
|
return c < .04045 ? .0773993808 * c : Math.pow(.9478672986 * c + .0521327014, 2.4);
|
|
@@ -3102,44 +3164,6 @@ function quadLength(p0, p1, p2, iterationCount) {
|
|
|
3102
3164
|
return snapLength([p0.x, p1.x, p2.x], [p0.y, p1.y, p2.y]);
|
|
3103
3165
|
}
|
|
3104
3166
|
|
|
3105
|
-
class QuadraticBezierCurve extends Curve {
|
|
3106
|
-
constructor(p0, p1, p2) {
|
|
3107
|
-
super(), this.type = CurveTypeEnum.QuadraticBezierCurve, this.p0 = p0, this.p1 = p1, this.p2 = p2;
|
|
3108
|
-
}
|
|
3109
|
-
_validPoint() {
|
|
3110
|
-
return Number.isFinite(this.p0.x + this.p0.y + this.p1.x + this.p1.y + this.p2.x + this.p2.y);
|
|
3111
|
-
}
|
|
3112
|
-
getPointAt(t) {
|
|
3113
|
-
if (!1 !== this.defined) return quadPointAt(this.p0, this.p1, this.p2, t);
|
|
3114
|
-
throw new Error("defined为false的点不能getPointAt");
|
|
3115
|
-
}
|
|
3116
|
-
calcLength() {
|
|
3117
|
-
return this._validPoint() ? quadLength(this.p0, this.p1, this.p2) : 60;
|
|
3118
|
-
}
|
|
3119
|
-
calcProjLength(direction) {
|
|
3120
|
-
return direction === Direction.ROW ? abs(this.p0.x - this.p2.x) : direction === Direction.COLUMN ? abs(this.p0.y - this.p2.y) : 0;
|
|
3121
|
-
}
|
|
3122
|
-
getAngleAt(t) {
|
|
3123
|
-
const minT = max(t - .01, 0),
|
|
3124
|
-
maxT = min(t + .01, 1),
|
|
3125
|
-
minP = this.getPointAt(minT),
|
|
3126
|
-
maxP = this.getPointAt(maxT);
|
|
3127
|
-
return atan2(maxP.y - minP.y, maxP.x - minP.x);
|
|
3128
|
-
}
|
|
3129
|
-
draw(path, x, y, sx, sy, percent) {
|
|
3130
|
-
if (path.moveTo(this.p0.x * sx + x, this.p0.y * sy + y), percent >= 1) path.quadraticCurveTo(this.p1.x * sx + x, this.p1.y * sy + y, this.p2.x * sx + x, this.p2.y * sy + y);else if (percent > 0) {
|
|
3131
|
-
const [curve1] = divideQuad(this, percent);
|
|
3132
|
-
path.quadraticCurveTo(curve1.p1.x * sx + x, curve1.p1.y * sy + y, curve1.p2.x * sx + x, curve1.p2.y * sy + y);
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
|
-
getYAt(x) {
|
|
3136
|
-
throw new Error("QuadraticBezierCurve暂不支持getYAt");
|
|
3137
|
-
}
|
|
3138
|
-
includeX(x) {
|
|
3139
|
-
throw new Error("QuadraticBezierCurve暂不支持includeX");
|
|
3140
|
-
}
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
3167
|
function divideCubic(curve, t) {
|
|
3144
3168
|
const {
|
|
3145
3169
|
p0: p0,
|
|
@@ -3155,17 +3179,6 @@ function divideCubic(curve, t) {
|
|
|
3155
3179
|
c23 = PointService.pointAtPP(c2, c3, t);
|
|
3156
3180
|
return [new CubicBezierCurve(p0, c1, c12, pt), new CubicBezierCurve(pt, c23, c3, p3)];
|
|
3157
3181
|
}
|
|
3158
|
-
function divideQuad(curve, t) {
|
|
3159
|
-
const {
|
|
3160
|
-
p0: p0,
|
|
3161
|
-
p1: p1,
|
|
3162
|
-
p2: p2
|
|
3163
|
-
} = curve,
|
|
3164
|
-
pt = quadPointAt(p0, p1, p2, t),
|
|
3165
|
-
c1 = PointService.pointAtPP(p0, p1, t),
|
|
3166
|
-
c2 = PointService.pointAtPP(p1, p2, t);
|
|
3167
|
-
return [new QuadraticBezierCurve(p0, c1, pt), new QuadraticBezierCurve(pt, c2, p2)];
|
|
3168
|
-
}
|
|
3169
3182
|
class CubicBezierCurve extends Curve {
|
|
3170
3183
|
constructor(p0, p1, p2, p3) {
|
|
3171
3184
|
super(), this.type = CurveTypeEnum.CubicBezierCurve, this.p0 = p0, this.p1 = p1, this.p2 = p2, this.p3 = p3;
|
|
@@ -3806,6 +3819,55 @@ class CatmullRomClosed {
|
|
|
3806
3819
|
}
|
|
3807
3820
|
const genCatmullRomClosedSegments = commonGenCatmullRomSegments("catmullRomClosed", CatmullRomClosed);
|
|
3808
3821
|
|
|
3822
|
+
function divideQuad(curve, t) {
|
|
3823
|
+
const {
|
|
3824
|
+
p0: p0,
|
|
3825
|
+
p1: p1,
|
|
3826
|
+
p2: p2
|
|
3827
|
+
} = curve,
|
|
3828
|
+
pt = quadPointAt(p0, p1, p2, t),
|
|
3829
|
+
c1 = PointService.pointAtPP(p0, p1, t),
|
|
3830
|
+
c2 = PointService.pointAtPP(p1, p2, t);
|
|
3831
|
+
return [new QuadraticBezierCurve(p0, c1, pt), new QuadraticBezierCurve(pt, c2, p2)];
|
|
3832
|
+
}
|
|
3833
|
+
class QuadraticBezierCurve extends Curve {
|
|
3834
|
+
constructor(p0, p1, p2) {
|
|
3835
|
+
super(), this.type = CurveTypeEnum.QuadraticBezierCurve, this.p0 = p0, this.p1 = p1, this.p2 = p2;
|
|
3836
|
+
}
|
|
3837
|
+
_validPoint() {
|
|
3838
|
+
return Number.isFinite(this.p0.x + this.p0.y + this.p1.x + this.p1.y + this.p2.x + this.p2.y);
|
|
3839
|
+
}
|
|
3840
|
+
getPointAt(t) {
|
|
3841
|
+
if (!1 !== this.defined) return quadPointAt(this.p0, this.p1, this.p2, t);
|
|
3842
|
+
throw new Error("defined为false的点不能getPointAt");
|
|
3843
|
+
}
|
|
3844
|
+
calcLength() {
|
|
3845
|
+
return this._validPoint() ? quadLength(this.p0, this.p1, this.p2) : 60;
|
|
3846
|
+
}
|
|
3847
|
+
calcProjLength(direction) {
|
|
3848
|
+
return direction === Direction.ROW ? abs(this.p0.x - this.p2.x) : direction === Direction.COLUMN ? abs(this.p0.y - this.p2.y) : 0;
|
|
3849
|
+
}
|
|
3850
|
+
getAngleAt(t) {
|
|
3851
|
+
const minT = max(t - .01, 0),
|
|
3852
|
+
maxT = min(t + .01, 1),
|
|
3853
|
+
minP = this.getPointAt(minT),
|
|
3854
|
+
maxP = this.getPointAt(maxT);
|
|
3855
|
+
return atan2(maxP.y - minP.y, maxP.x - minP.x);
|
|
3856
|
+
}
|
|
3857
|
+
draw(path, x, y, sx, sy, percent) {
|
|
3858
|
+
if (path.moveTo(this.p0.x * sx + x, this.p0.y * sy + y), percent >= 1) path.quadraticCurveTo(this.p1.x * sx + x, this.p1.y * sy + y, this.p2.x * sx + x, this.p2.y * sy + y);else if (percent > 0) {
|
|
3859
|
+
const [curve1] = divideQuad(this, percent);
|
|
3860
|
+
path.quadraticCurveTo(curve1.p1.x * sx + x, curve1.p1.y * sy + y, curve1.p2.x * sx + x, curve1.p2.y * sy + y);
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
getYAt(x) {
|
|
3864
|
+
throw new Error("QuadraticBezierCurve暂不支持getYAt");
|
|
3865
|
+
}
|
|
3866
|
+
includeX(x) {
|
|
3867
|
+
throw new Error("QuadraticBezierCurve暂不支持includeX");
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3809
3871
|
class CurveContext {
|
|
3810
3872
|
constructor(path) {
|
|
3811
3873
|
this.path = path, this._lastX = this._lastY = this._startX = this._startY = 0;
|
|
@@ -4504,9 +4566,6 @@ const DefaultRichTextIconAttribute = Object.assign(Object.assign({}, DefaultImag
|
|
|
4504
4566
|
opacity: 1
|
|
4505
4567
|
});
|
|
4506
4568
|
|
|
4507
|
-
class Application {}
|
|
4508
|
-
const application = new Application();
|
|
4509
|
-
|
|
4510
4569
|
const parse$1 = function () {
|
|
4511
4570
|
const tokens = {
|
|
4512
4571
|
linearGradient: /^(linear\-gradient)/i,
|
|
@@ -5357,6 +5416,9 @@ function isAroundZero(val) {
|
|
|
5357
5416
|
function isNotAroundZero(val) {
|
|
5358
5417
|
return val > EPSILON || val < -EPSILON;
|
|
5359
5418
|
}
|
|
5419
|
+
function isNumber(data) {
|
|
5420
|
+
return "number" == typeof data && Number.isFinite(data);
|
|
5421
|
+
}
|
|
5360
5422
|
const _v0 = [0, 0],
|
|
5361
5423
|
_v1 = [0, 0],
|
|
5362
5424
|
_v2 = [0, 0];
|
|
@@ -5761,7 +5823,7 @@ var __decorate$1K = undefined && undefined.__decorate || function (decorators, t
|
|
|
5761
5823
|
};
|
|
5762
5824
|
const VWindow = Symbol.for("VWindow");
|
|
5763
5825
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
5764
|
-
let DefaultWindow = class {
|
|
5826
|
+
let DefaultWindow = class extends EventListenerManager {
|
|
5765
5827
|
get width() {
|
|
5766
5828
|
if (this._handler) {
|
|
5767
5829
|
const wh = this._handler.getWH();
|
|
@@ -5780,7 +5842,7 @@ let DefaultWindow = class {
|
|
|
5780
5842
|
return this._handler.getDpr();
|
|
5781
5843
|
}
|
|
5782
5844
|
constructor() {
|
|
5783
|
-
this.hooks = {
|
|
5845
|
+
super(), this.hooks = {
|
|
5784
5846
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
5785
5847
|
}, this.active = () => {
|
|
5786
5848
|
const global = this.global;
|
|
@@ -5788,6 +5850,15 @@ let DefaultWindow = class {
|
|
|
5788
5850
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
5789
5851
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
5790
5852
|
}
|
|
5853
|
+
_nativeAddEventListener(type, listener, options) {
|
|
5854
|
+
return this._handler.addEventListener(type, listener, options);
|
|
5855
|
+
}
|
|
5856
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
5857
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
5858
|
+
}
|
|
5859
|
+
_nativeDispatchEvent(event) {
|
|
5860
|
+
return this._handler.dispatchEvent(event);
|
|
5861
|
+
}
|
|
5791
5862
|
postInit() {
|
|
5792
5863
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
5793
5864
|
}
|
|
@@ -5827,7 +5898,7 @@ let DefaultWindow = class {
|
|
|
5827
5898
|
throw new Error("暂不支持");
|
|
5828
5899
|
}
|
|
5829
5900
|
release() {
|
|
5830
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
5901
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
|
|
5831
5902
|
}
|
|
5832
5903
|
getContext() {
|
|
5833
5904
|
return this._handler.getContext();
|
|
@@ -5838,15 +5909,6 @@ let DefaultWindow = class {
|
|
|
5838
5909
|
getImageBuffer(type) {
|
|
5839
5910
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
5840
5911
|
}
|
|
5841
|
-
addEventListener(type, listener, options) {
|
|
5842
|
-
return this._handler.addEventListener(type, listener, options);
|
|
5843
|
-
}
|
|
5844
|
-
removeEventListener(type, listener, options) {
|
|
5845
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
5846
|
-
}
|
|
5847
|
-
dispatchEvent(event) {
|
|
5848
|
-
return this._handler.dispatchEvent(event);
|
|
5849
|
-
}
|
|
5850
5912
|
getBoundingClientRect() {
|
|
5851
5913
|
return this._handler.getBoundingClientRect();
|
|
5852
5914
|
}
|
|
@@ -7055,19 +7117,17 @@ class EventSystem {
|
|
|
7055
7117
|
globalObj: globalObj,
|
|
7056
7118
|
domElement: domElement
|
|
7057
7119
|
} = this;
|
|
7058
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.
|
|
7120
|
+
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, {
|
|
7059
7121
|
capture: !0
|
|
7060
7122
|
}), this.eventsAdded = !0;
|
|
7061
7123
|
}
|
|
7062
7124
|
removeEvents() {
|
|
7063
|
-
var _a;
|
|
7064
7125
|
if (!this.eventsAdded || !this.domElement) return;
|
|
7065
7126
|
const {
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
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;
|
|
7127
|
+
globalObj: globalObj,
|
|
7128
|
+
domElement: domElement
|
|
7129
|
+
} = this;
|
|
7130
|
+
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;
|
|
7071
7131
|
}
|
|
7072
7132
|
mapToViewportPoint(event) {
|
|
7073
7133
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -7384,13 +7444,13 @@ const calculateLineHeight = (lineHeight, fontSize) => {
|
|
|
7384
7444
|
|
|
7385
7445
|
class BaseSymbol {
|
|
7386
7446
|
bounds(size, bounds) {
|
|
7387
|
-
if (isNumber$
|
|
7447
|
+
if (isNumber$2(size)) {
|
|
7388
7448
|
const halfS = size / 2;
|
|
7389
7449
|
bounds.x1 = -halfS, bounds.x2 = halfS, bounds.y1 = -halfS, bounds.y2 = halfS;
|
|
7390
7450
|
} else bounds.x1 = -size[0] / 2, bounds.x2 = size[0] / 2, bounds.y1 = -size[1] / 2, bounds.y2 = size[1] / 2;
|
|
7391
7451
|
}
|
|
7392
7452
|
parseSize(size) {
|
|
7393
|
-
return isNumber$
|
|
7453
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
7394
7454
|
}
|
|
7395
7455
|
}
|
|
7396
7456
|
|
|
@@ -7809,10 +7869,10 @@ class RectSymbol extends BaseSymbol {
|
|
|
7809
7869
|
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";
|
|
7810
7870
|
}
|
|
7811
7871
|
draw(ctx, size, x, y) {
|
|
7812
|
-
return isNumber$
|
|
7872
|
+
return isNumber$2(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
7813
7873
|
}
|
|
7814
7874
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
7815
|
-
isNumber$
|
|
7875
|
+
isNumber$2(size) && (size = [size, size / 2]);
|
|
7816
7876
|
const drawLength = 2 * (size[0] + size[1]) * clipRange,
|
|
7817
7877
|
points = [{
|
|
7818
7878
|
x: x + size[0] / 2,
|
|
@@ -7844,7 +7904,7 @@ class RectSymbol extends BaseSymbol {
|
|
|
7844
7904
|
return !1;
|
|
7845
7905
|
}
|
|
7846
7906
|
drawOffset(ctx, size, x, y, offset) {
|
|
7847
|
-
return isNumber$
|
|
7907
|
+
return isNumber$2(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
7848
7908
|
}
|
|
7849
7909
|
}
|
|
7850
7910
|
var rect = new RectSymbol();
|
|
@@ -7864,7 +7924,7 @@ class CustomSymbolClass {
|
|
|
7864
7924
|
return size = this.parseSize(size), this.drawOffset(ctx, size, x, y, 0, z, cb);
|
|
7865
7925
|
}
|
|
7866
7926
|
parseSize(size) {
|
|
7867
|
-
return isNumber$
|
|
7927
|
+
return isNumber$2(size) ? size : Math.min(size[0], size[1]);
|
|
7868
7928
|
}
|
|
7869
7929
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
7870
7930
|
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
@@ -8833,10 +8893,10 @@ ColorStore.store255 = {}, ColorStore.store1 = {};
|
|
|
8833
8893
|
|
|
8834
8894
|
function colorArrayToString(color) {
|
|
8835
8895
|
let alphaChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
8836
|
-
return Array.isArray(color) && isNumber$
|
|
8896
|
+
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;
|
|
8837
8897
|
}
|
|
8838
8898
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
8839
|
-
if (Array.isArray(from) && !isNumber$
|
|
8899
|
+
if (Array.isArray(from) && !isNumber$2(from[0]) || Array.isArray(to) && !isNumber$2(to[0])) {
|
|
8840
8900
|
return new Array(4).fill(0).map((_, index) => {
|
|
8841
8901
|
var _a, _b;
|
|
8842
8902
|
return _interpolateColor(isArray$1(from) ? null !== (_a = from[index]) && void 0 !== _a ? _a : from[0] : from, isArray$1(to) ? null !== (_b = to[index]) && void 0 !== _b ? _b : to[0] : to, ratio, alphaChannel);
|
|
@@ -9128,6 +9188,10 @@ class Graphic extends Node {
|
|
|
9128
9188
|
var _a;
|
|
9129
9189
|
super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background ? this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
|
|
9130
9190
|
}
|
|
9191
|
+
getGraphicService() {
|
|
9192
|
+
var _a, _b;
|
|
9193
|
+
return null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.graphicService) && void 0 !== _b ? _b : application.graphicService;
|
|
9194
|
+
}
|
|
9131
9195
|
getAttributes() {
|
|
9132
9196
|
return this.attribute;
|
|
9133
9197
|
}
|
|
@@ -9157,13 +9221,12 @@ class Graphic extends Node {
|
|
|
9157
9221
|
this._emitCustomEvent("animate-bind", animate);
|
|
9158
9222
|
}
|
|
9159
9223
|
tryUpdateAABBBounds() {
|
|
9160
|
-
var _a, _b;
|
|
9161
9224
|
const full = "imprecise" === this.attribute.boundsMode;
|
|
9162
9225
|
if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
|
|
9163
9226
|
if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
|
|
9164
|
-
|
|
9227
|
+
this.getGraphicService().beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
9165
9228
|
const bounds = this.doUpdateAABBBounds(full);
|
|
9166
|
-
return
|
|
9229
|
+
return this.getGraphicService().afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
9167
9230
|
}
|
|
9168
9231
|
tryUpdateOBBBounds() {
|
|
9169
9232
|
if (this._OBBBounds || (this._OBBBounds = new OBBBounds()), this.tryUpdateAABBBounds(), this.updateOBBBoundsStamp === this.updateAABBBoundsStamp) return this._OBBBounds;
|
|
@@ -9270,7 +9333,7 @@ class Graphic extends Node {
|
|
|
9270
9333
|
return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
|
|
9271
9334
|
}
|
|
9272
9335
|
shouldUpdateAABBBounds() {
|
|
9273
|
-
return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) &&
|
|
9336
|
+
return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && this.getGraphicService().validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && this.getGraphicService().validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
|
|
9274
9337
|
}
|
|
9275
9338
|
shouldSelfChangeUpdateAABBBounds() {
|
|
9276
9339
|
return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
|
|
@@ -9451,8 +9514,7 @@ class Graphic extends Node {
|
|
|
9451
9514
|
return this;
|
|
9452
9515
|
}
|
|
9453
9516
|
onAttributeUpdate(context) {
|
|
9454
|
-
|
|
9455
|
-
context && context.skipUpdateCallback || (null === (_a = this.stage) || void 0 === _a || _a.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
|
|
9517
|
+
context && context.skipUpdateCallback || (this.getGraphicService().onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
|
|
9456
9518
|
}
|
|
9457
9519
|
update(d) {
|
|
9458
9520
|
d ? (d.bounds && this.tryUpdateAABBBounds(), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds(), this.tryUpdateLocalTransMatrix());
|
|
@@ -9489,6 +9551,9 @@ class Graphic extends Node {
|
|
|
9489
9551
|
} else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
|
|
9490
9552
|
type: AttributeUpdateType.STATE
|
|
9491
9553
|
});
|
|
9554
|
+
this._emitCustomEvent("afterStateUpdate", {
|
|
9555
|
+
type: AttributeUpdateType.STATE
|
|
9556
|
+
});
|
|
9492
9557
|
}
|
|
9493
9558
|
updateNormalAttrs(stateAttrs) {
|
|
9494
9559
|
const newNormalAttrs = {};
|
|
@@ -9639,7 +9704,6 @@ class Graphic extends Node {
|
|
|
9639
9704
|
}
|
|
9640
9705
|
}
|
|
9641
9706
|
setStage(stage, layer) {
|
|
9642
|
-
var _a;
|
|
9643
9707
|
if (this.stage !== stage) {
|
|
9644
9708
|
if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
|
|
9645
9709
|
const timeline = stage.getTimeline();
|
|
@@ -9647,7 +9711,7 @@ class Graphic extends Node {
|
|
|
9647
9711
|
a.timeline.isGlobal && (a.setTimeline(timeline), timeline.addAnimate(a));
|
|
9648
9712
|
});
|
|
9649
9713
|
}
|
|
9650
|
-
this._onSetStage && this._onSetStage(this, stage, layer),
|
|
9714
|
+
this._onSetStage && this._onSetStage(this, stage, layer), this.getGraphicService().onSetStage(this, stage);
|
|
9651
9715
|
}
|
|
9652
9716
|
}
|
|
9653
9717
|
setStageToShadowRoot(stage, layer) {
|
|
@@ -9795,12 +9859,11 @@ class Group extends Graphic {
|
|
|
9795
9859
|
return !!super.shouldUpdateAABBBounds() || !!(this._childUpdateTag & UpdateTag.UPDATE_BOUNDS);
|
|
9796
9860
|
}
|
|
9797
9861
|
tryUpdateAABBBounds() {
|
|
9798
|
-
var _a, _b;
|
|
9799
9862
|
if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
|
|
9800
|
-
|
|
9863
|
+
this.getGraphicService().beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
9801
9864
|
const selfChange = this.shouldSelfChangeUpdateAABBBounds(),
|
|
9802
9865
|
bounds = this.doUpdateAABBBounds();
|
|
9803
|
-
return this.addUpdateLayoutTag(),
|
|
9866
|
+
return this.addUpdateLayoutTag(), this.getGraphicService().afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
9804
9867
|
}
|
|
9805
9868
|
doUpdateLocalMatrix() {
|
|
9806
9869
|
const {
|
|
@@ -9860,13 +9923,11 @@ class Group extends Graphic {
|
|
|
9860
9923
|
return this.theme.getTheme(this);
|
|
9861
9924
|
}
|
|
9862
9925
|
incrementalAppendChild(node) {
|
|
9863
|
-
var _a;
|
|
9864
9926
|
const data = super.appendChild(node);
|
|
9865
|
-
return this.stage && data && (data.stage = this.stage, data.layer = this.layer), this.addUpdateBoundTag(),
|
|
9927
|
+
return this.stage && data && (data.stage = this.stage, data.layer = this.layer), this.addUpdateBoundTag(), this.getGraphicService().onAddIncremental(node, this, this.stage), data;
|
|
9866
9928
|
}
|
|
9867
9929
|
incrementalClearChild() {
|
|
9868
|
-
|
|
9869
|
-
super.removeAllChild(), this.addUpdateBoundTag(), null === (_a = this.stage) || void 0 === _a || _a.graphicService.onClearIncremental(this, this.stage);
|
|
9930
|
+
super.removeAllChild(), this.addUpdateBoundTag(), this.getGraphicService().onClearIncremental(this, this.stage);
|
|
9870
9931
|
}
|
|
9871
9932
|
_updateChildToStage(child) {
|
|
9872
9933
|
return this.stage && child && child.setStage(this.stage, this.layer), this.addUpdateBoundTag(), child;
|
|
@@ -9886,20 +9947,17 @@ class Group extends Graphic {
|
|
|
9886
9947
|
return this._updateChildToStage(super.insertInto(newNode, idx));
|
|
9887
9948
|
}
|
|
9888
9949
|
removeChild(child) {
|
|
9889
|
-
var _a;
|
|
9890
9950
|
const data = super.removeChild(child);
|
|
9891
|
-
return child.stage = null,
|
|
9951
|
+
return child.stage = null, this.getGraphicService().onRemove(child), this.addUpdateBoundTag(), data;
|
|
9892
9952
|
}
|
|
9893
9953
|
removeAllChild() {
|
|
9894
9954
|
let deep = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
9895
9955
|
this.forEachChildren(child => {
|
|
9896
|
-
|
|
9897
|
-
null === (_a = this.stage) || void 0 === _a || _a.graphicService.onRemove(child), deep && child.isContainer && child.removeAllChild(deep);
|
|
9956
|
+
this.getGraphicService().onRemove(child), deep && child.isContainer && child.removeAllChild(deep);
|
|
9898
9957
|
}), super.removeAllChild(), this.addUpdateBoundTag();
|
|
9899
9958
|
}
|
|
9900
9959
|
setStage(stage, layer) {
|
|
9901
|
-
|
|
9902
|
-
this.stage !== stage && (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), null === (_a = this.stage) || void 0 === _a || _a.graphicService.onSetStage(this, stage), this.forEachChildren(item => {
|
|
9960
|
+
this.stage !== stage && (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), this.getGraphicService().onSetStage(this, stage), this.forEachChildren(item => {
|
|
9903
9961
|
item.setStage(stage, this.layer);
|
|
9904
9962
|
}));
|
|
9905
9963
|
}
|
|
@@ -10519,12 +10577,12 @@ let DefaultGraphicService = class {
|
|
|
10519
10577
|
textBaseline: textBaseline
|
|
10520
10578
|
} = attribute;
|
|
10521
10579
|
if (null != attribute.forceBoundsHeight) {
|
|
10522
|
-
const h = isNumber$
|
|
10580
|
+
const h = isNumber$2(attribute.forceBoundsHeight) ? attribute.forceBoundsHeight : attribute.forceBoundsHeight(),
|
|
10523
10581
|
dy = textLayoutOffsetY(textBaseline, h, h);
|
|
10524
10582
|
aabbBounds.set(aabbBounds.x1, dy, aabbBounds.x2, dy + h);
|
|
10525
10583
|
}
|
|
10526
10584
|
if (null != attribute.forceBoundsWidth) {
|
|
10527
|
-
const w = isNumber$
|
|
10585
|
+
const w = isNumber$2(attribute.forceBoundsWidth) ? attribute.forceBoundsWidth : attribute.forceBoundsWidth(),
|
|
10528
10586
|
dx = textDrawOffsetX(textAlign, w);
|
|
10529
10587
|
aabbBounds.set(dx, aabbBounds.y1, dx + w, aabbBounds.y2);
|
|
10530
10588
|
}
|
|
@@ -10573,7 +10631,7 @@ let DefaultGraphicService = class {
|
|
|
10573
10631
|
const {
|
|
10574
10632
|
visible = theme.visible
|
|
10575
10633
|
} = attribute;
|
|
10576
|
-
return !(!graphic.valid || !visible) || (aabbBounds.empty() || (graphic.parent && aabbBounds.transformWithMatrix(graphic.parent.globalTransMatrix),
|
|
10634
|
+
return !(!graphic.valid || !visible) || (aabbBounds.empty() || (graphic.parent && aabbBounds.transformWithMatrix(graphic.parent.globalTransMatrix), this.clearAABBBounds(graphic, graphic.stage, aabbBounds), aabbBounds.clear()), !1);
|
|
10577
10635
|
}
|
|
10578
10636
|
updateTempAABBBounds(aabbBounds) {
|
|
10579
10637
|
const tb1 = this.tempAABBBounds1,
|
|
@@ -12646,7 +12704,7 @@ class RichText extends Graphic {
|
|
|
12646
12704
|
}
|
|
12647
12705
|
} else {
|
|
12648
12706
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
12649
|
-
if (isNumber$
|
|
12707
|
+
if (isNumber$2(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
12650
12708
|
const textParts = richTextConfig.text.split("\n");
|
|
12651
12709
|
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 {
|
|
12652
12710
|
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
@@ -12935,7 +12993,7 @@ class Arc extends Graphic {
|
|
|
12935
12993
|
} = this.attribute;
|
|
12936
12994
|
if (outerRadius += outerPadding, innerRadius -= innerPadding, 0 === cornerRadius || "0%" === cornerRadius) return 0;
|
|
12937
12995
|
const deltaRadius = Math.abs(outerRadius - innerRadius),
|
|
12938
|
-
parseCR = cornerRadius => Math.min(isNumber$
|
|
12996
|
+
parseCR = cornerRadius => Math.min(isNumber$2(cornerRadius, !0) ? cornerRadius : deltaRadius * parseFloat(cornerRadius) / 100, deltaRadius / 2);
|
|
12939
12997
|
if (isArray$1(cornerRadius)) {
|
|
12940
12998
|
const crList = cornerRadius.map(cr => parseCR(cr) || 0);
|
|
12941
12999
|
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);
|
|
@@ -13939,7 +13997,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
13939
13997
|
let roundCorner = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !0;
|
|
13940
13998
|
let edgeCb = arguments.length > 7 ? arguments[7] : undefined;
|
|
13941
13999
|
let cornerRadius;
|
|
13942
|
-
if (Array.isArray(roundCorner) && (edgeCb = roundCorner, roundCorner = !0), width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), isNumber$
|
|
14000
|
+
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)) {
|
|
13943
14001
|
const cornerRadiusArr = rectCornerRadius;
|
|
13944
14002
|
let cr0, cr1;
|
|
13945
14003
|
switch (cornerRadiusArr.length) {
|
|
@@ -14215,6 +14273,9 @@ class BaseRender {
|
|
|
14215
14273
|
init(contributions) {
|
|
14216
14274
|
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));
|
|
14217
14275
|
}
|
|
14276
|
+
reInit() {
|
|
14277
|
+
this.init(this.graphicRenderContributions);
|
|
14278
|
+
}
|
|
14218
14279
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
14219
14280
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
14220
14281
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -14384,8 +14445,8 @@ var __decorate$1D = undefined && undefined.__decorate || function (decorators, t
|
|
|
14384
14445
|
};
|
|
14385
14446
|
};
|
|
14386
14447
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
14387
|
-
constructor(
|
|
14388
|
-
super(), this.
|
|
14448
|
+
constructor(graphicRenderContributions) {
|
|
14449
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
|
|
14389
14450
|
}
|
|
14390
14451
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
14391
14452
|
const capAngle = _ea - _sa,
|
|
@@ -14491,7 +14552,7 @@ let DefaultCanvasArcRender = class extends BaseRender {
|
|
|
14491
14552
|
isFullStroke: isFullStroke,
|
|
14492
14553
|
stroke: arrayStroke
|
|
14493
14554
|
} = parseStroke(stroke);
|
|
14494
|
-
if ((doFill || isFullStroke) && (context.beginPath(), drawArcPath$1(arc, context, x, y, outerRadius, innerRadius), beforeRenderContribitionsRuned = !0, context.setShadowBlendStyle && context.setShadowBlendStyle(arc, arc.attribute, arcAttribute), this.beforeRenderStep(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb), fillStrokeOrder ? (this._runStroke(arc, context, x, y, arcAttribute, doStroke, sVisible, strokeCb), this._runFill(arc, context, x, y, arcAttribute, doFill, fVisible, originX, originY, fillCb)) : (this._runFill(arc, context, x, y, arcAttribute, doFill, fVisible, originX, originY, fillCb), this._runStroke(arc, context, x, y, arcAttribute, doStroke, sVisible, strokeCb))), !isFullStroke && doStroke) {
|
|
14555
|
+
if ((doFill || isFullStroke) && (context.beginPath(), drawArcPath$1(arc, context, x, y, outerRadius, innerRadius), beforeRenderContribitionsRuned = !0, context.setShadowBlendStyle && context.setShadowBlendStyle(arc, arc.attribute, arcAttribute), this.beforeRenderStep(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb), fillStrokeOrder ? (this._runStroke(arc, context, x, y, arcAttribute, doStroke, isFullStroke, sVisible, strokeCb), this._runFill(arc, context, x, y, arcAttribute, doFill, fVisible, originX, originY, fillCb)) : (this._runFill(arc, context, x, y, arcAttribute, doFill, fVisible, originX, originY, fillCb), this._runStroke(arc, context, x, y, arcAttribute, doStroke, isFullStroke, sVisible, strokeCb))), !isFullStroke && doStroke) {
|
|
14495
14556
|
context.beginPath();
|
|
14496
14557
|
drawArcPath$1(arc, context, x, y, outerRadius, innerRadius, arrayStroke);
|
|
14497
14558
|
beforeRenderContribitionsRuned || this.beforeRenderStep(arc, context, x, y, doFill, doStroke, fVisible, sVisible, arcAttribute, drawContext, fillCb, strokeCb), strokeCb ? strokeCb(context, arc.attribute, arcAttribute) : sVisible && (context.setStrokeStyle(arc, arc.attribute, x, y, arcAttribute), context.stroke());
|
|
@@ -14530,8 +14591,8 @@ let DefaultCanvasArcRender = class extends BaseRender {
|
|
|
14530
14591
|
_runFill(arc, context, x, y, arcAttribute, doFill, fVisible, originX, originY, fillCb) {
|
|
14531
14592
|
doFill && (fillCb ? fillCb(context, arc.attribute, arcAttribute) : fVisible && (context.setCommonStyle(arc, arc.attribute, originX - x, originY - y, arcAttribute), context.fill()));
|
|
14532
14593
|
}
|
|
14533
|
-
_runStroke(arc, context, x, y, arcAttribute, doStroke, sVisible, strokeCb) {
|
|
14534
|
-
doStroke && (strokeCb || sVisible && (context.setStrokeStyle(arc, arc.attribute, x, y, arcAttribute), context.stroke()));
|
|
14594
|
+
_runStroke(arc, context, x, y, arcAttribute, doStroke, isFullStroke, sVisible, strokeCb) {
|
|
14595
|
+
doStroke && isFullStroke && (strokeCb || sVisible && (context.setStrokeStyle(arc, arc.attribute, x, y, arcAttribute), context.stroke()));
|
|
14535
14596
|
}
|
|
14536
14597
|
draw(arc, renderService, drawContext, params) {
|
|
14537
14598
|
const arcAttribute = getTheme(arc, null == params ? void 0 : params.theme).arc;
|
|
@@ -14556,8 +14617,8 @@ var __decorate$1C = undefined && undefined.__decorate || function (decorators, t
|
|
|
14556
14617
|
};
|
|
14557
14618
|
};
|
|
14558
14619
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
14559
|
-
constructor(
|
|
14560
|
-
super(), this.
|
|
14620
|
+
constructor(graphicRenderContributions) {
|
|
14621
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
|
|
14561
14622
|
}
|
|
14562
14623
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14563
14624
|
const circleAttribute = getTheme(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -14943,8 +15004,8 @@ var __decorate$1A = undefined && undefined.__decorate || function (decorators, t
|
|
|
14943
15004
|
};
|
|
14944
15005
|
};
|
|
14945
15006
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
14946
|
-
constructor(
|
|
14947
|
-
super(), this.
|
|
15007
|
+
constructor(graphicRenderContributions) {
|
|
15008
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
14948
15009
|
}
|
|
14949
15010
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
14950
15011
|
var _a, _b, _c;
|
|
@@ -15187,8 +15248,8 @@ var __decorate$1z = undefined && undefined.__decorate || function (decorators, t
|
|
|
15187
15248
|
};
|
|
15188
15249
|
};
|
|
15189
15250
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
15190
|
-
constructor(
|
|
15191
|
-
super(), this.
|
|
15251
|
+
constructor(graphicRenderContributions) {
|
|
15252
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
|
|
15192
15253
|
}
|
|
15193
15254
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
15194
15255
|
var _a, _b, _c;
|
|
@@ -15243,8 +15304,8 @@ var __decorate$1y = undefined && undefined.__decorate || function (decorators, t
|
|
|
15243
15304
|
};
|
|
15244
15305
|
};
|
|
15245
15306
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
15246
|
-
constructor(
|
|
15247
|
-
super(), this.
|
|
15307
|
+
constructor(graphicRenderContributions) {
|
|
15308
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
|
|
15248
15309
|
}
|
|
15249
15310
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb, rectAttribute) {
|
|
15250
15311
|
rectAttribute = null != rectAttribute ? rectAttribute : getTheme(rect, null == params ? void 0 : params.theme).rect;
|
|
@@ -15313,8 +15374,8 @@ var __decorate$1x = undefined && undefined.__decorate || function (decorators, t
|
|
|
15313
15374
|
};
|
|
15314
15375
|
};
|
|
15315
15376
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
15316
|
-
constructor(
|
|
15317
|
-
super(), this.
|
|
15377
|
+
constructor(graphicRenderContributions) {
|
|
15378
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
|
|
15318
15379
|
}
|
|
15319
15380
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb, symbolAttribute) {
|
|
15320
15381
|
var _a;
|
|
@@ -15484,8 +15545,8 @@ var __decorate$1w = undefined && undefined.__decorate || function (decorators, t
|
|
|
15484
15545
|
};
|
|
15485
15546
|
};
|
|
15486
15547
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
15487
|
-
constructor(
|
|
15488
|
-
super(), this.
|
|
15548
|
+
constructor(graphicRenderContributions) {
|
|
15549
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
15489
15550
|
}
|
|
15490
15551
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
15491
15552
|
var _a, _b, _c;
|
|
@@ -15630,8 +15691,10 @@ let AbstractGraphicRender = class {};
|
|
|
15630
15691
|
AbstractGraphicRender = __decorate$1v([injectable()], AbstractGraphicRender);
|
|
15631
15692
|
|
|
15632
15693
|
function drawPolygon(path, points, x, y) {
|
|
15633
|
-
|
|
15634
|
-
|
|
15694
|
+
if (points && points.length) {
|
|
15695
|
+
path.moveTo(points[0].x + x, points[0].y + y);
|
|
15696
|
+
for (let i = 1; i < points.length; i++) path.lineTo(points[i].x + x, points[i].y + y);
|
|
15697
|
+
}
|
|
15635
15698
|
}
|
|
15636
15699
|
function drawRoundedPolygon(path, points, x, y, cornerRadius) {
|
|
15637
15700
|
let closePath = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : !0;
|
|
@@ -15699,8 +15762,8 @@ var __decorate$1u = undefined && undefined.__decorate || function (decorators, t
|
|
|
15699
15762
|
};
|
|
15700
15763
|
};
|
|
15701
15764
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
15702
|
-
constructor(
|
|
15703
|
-
super(), this.
|
|
15765
|
+
constructor(graphicRenderContributions) {
|
|
15766
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
15704
15767
|
}
|
|
15705
15768
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
15706
15769
|
const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -15755,6 +15818,9 @@ let DefaultCanvasGroupRender = class {
|
|
|
15755
15818
|
constructor(groupRenderContribitions) {
|
|
15756
15819
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
15757
15820
|
}
|
|
15821
|
+
reInit() {
|
|
15822
|
+
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
15823
|
+
}
|
|
15758
15824
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb, groupAttribute) {
|
|
15759
15825
|
const {
|
|
15760
15826
|
clip: clip,
|
|
@@ -15815,7 +15881,7 @@ let DefaultCanvasGroupRender = class {
|
|
|
15815
15881
|
});
|
|
15816
15882
|
}
|
|
15817
15883
|
draw(group, renderService, drawContext, params) {
|
|
15818
|
-
var _a;
|
|
15884
|
+
var _a, _b;
|
|
15819
15885
|
const {
|
|
15820
15886
|
context: context
|
|
15821
15887
|
} = drawContext;
|
|
@@ -15835,7 +15901,7 @@ let DefaultCanvasGroupRender = class {
|
|
|
15835
15901
|
height: height
|
|
15836
15902
|
} = group.attribute,
|
|
15837
15903
|
canvas = context.canvas,
|
|
15838
|
-
newCanvas =
|
|
15904
|
+
newCanvas = application.global.createCanvas({
|
|
15839
15905
|
width: canvas.width,
|
|
15840
15906
|
height: canvas.height,
|
|
15841
15907
|
dpr: 1
|
|
@@ -15860,7 +15926,7 @@ let DefaultCanvasGroupRender = class {
|
|
|
15860
15926
|
scrollY: scrollY
|
|
15861
15927
|
} = group.attribute;
|
|
15862
15928
|
let p;
|
|
15863
|
-
if ((scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.renderInGroup && (p = params.renderInGroup(params.
|
|
15929
|
+
if ((scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.renderInGroup && (p = params.renderInGroup(null === (_a = params.renderInGroupParams) || void 0 === _a ? void 0 : _a.skipSort, group, drawContext, null === (_b = params.renderInGroupParams) || void 0 === _b ? void 0 : _b.nextM)), context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.baseGlobalAlpha = baseGlobalAlpha, drawMode > 0) {
|
|
15864
15930
|
const {
|
|
15865
15931
|
x: x,
|
|
15866
15932
|
y: y,
|
|
@@ -15897,8 +15963,8 @@ var __decorate$1s = undefined && undefined.__decorate || function (decorators, t
|
|
|
15897
15963
|
};
|
|
15898
15964
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
15899
15965
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
15900
|
-
constructor(
|
|
15901
|
-
super(), this.
|
|
15966
|
+
constructor(graphicRenderContributions) {
|
|
15967
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
15902
15968
|
}
|
|
15903
15969
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
15904
15970
|
const imageAttribute = getTheme(image).image,
|
|
@@ -16086,12 +16152,12 @@ let CommonDrawItemInterceptorContribution = class {
|
|
|
16086
16152
|
this.order = 1, this.interceptors = [new ShadowRootDrawItemInterceptorContribution(), new Canvas3DDrawItemInterceptor(), new InteractiveDrawItemInterceptorContribution(), new DebugDrawItemInterceptorContribution()];
|
|
16087
16153
|
}
|
|
16088
16154
|
afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16089
|
-
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16155
|
+
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !graphic.attribute._debug_bounds && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16090
16156
|
for (let i = 0; i < this.interceptors.length; i++) if (this.interceptors[i].afterDrawItem && this.interceptors[i].afterDrawItem(graphic, renderService, drawContext, drawContribution, params)) return !0;
|
|
16091
16157
|
return !1;
|
|
16092
16158
|
}
|
|
16093
16159
|
beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16094
|
-
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16160
|
+
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !graphic.attribute._debug_bounds && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16095
16161
|
for (let i = 0; i < this.interceptors.length; i++) if (this.interceptors[i].beforeDrawItem && this.interceptors[i].beforeDrawItem(graphic, renderService, drawContext, drawContribution, params)) return !0;
|
|
16096
16162
|
return !1;
|
|
16097
16163
|
}
|
|
@@ -16229,6 +16295,9 @@ let DefaultRenderService = class {
|
|
|
16229
16295
|
afterDraw(params) {
|
|
16230
16296
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
16231
16297
|
}
|
|
16298
|
+
reInit() {
|
|
16299
|
+
this.drawContribution.reInit();
|
|
16300
|
+
}
|
|
16232
16301
|
render(groups, params) {
|
|
16233
16302
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
16234
16303
|
const updateBounds = params.updateBounds;
|
|
@@ -16639,6 +16708,11 @@ let DefaultDrawContribution = class {
|
|
|
16639
16708
|
}, !1, !!(null === (_a = drawContext.context) || void 0 === _a ? void 0 : _a.camera));
|
|
16640
16709
|
}, 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();
|
|
16641
16710
|
}
|
|
16711
|
+
reInit() {
|
|
16712
|
+
this.init(), this.contributions.forEach(item => {
|
|
16713
|
+
item.reInit();
|
|
16714
|
+
});
|
|
16715
|
+
}
|
|
16642
16716
|
init() {
|
|
16643
16717
|
this.contributions.forEach(item => {
|
|
16644
16718
|
if (item.style) {
|
|
@@ -17782,6 +17856,9 @@ class Stage extends Group {
|
|
|
17782
17856
|
getPickerService() {
|
|
17783
17857
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
17784
17858
|
}
|
|
17859
|
+
reInit() {
|
|
17860
|
+
this.renderService.reInit(), this.pickerService.reInit();
|
|
17861
|
+
}
|
|
17785
17862
|
}
|
|
17786
17863
|
|
|
17787
17864
|
function createStage(params) {
|
|
@@ -18060,6 +18137,9 @@ let DefaultPickService = class {
|
|
|
18060
18137
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
18061
18138
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
18062
18139
|
}
|
|
18140
|
+
reInit() {
|
|
18141
|
+
this._init();
|
|
18142
|
+
}
|
|
18063
18143
|
_init() {
|
|
18064
18144
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
18065
18145
|
}
|
|
@@ -18174,6 +18254,7 @@ let DefaultGlobalPickerService = class {
|
|
|
18174
18254
|
this.configure(global, env);
|
|
18175
18255
|
}), this.configure(this.global, this.global.env);
|
|
18176
18256
|
}
|
|
18257
|
+
reInit() {}
|
|
18177
18258
|
configure(global, env) {}
|
|
18178
18259
|
pick(graphics, point, params) {
|
|
18179
18260
|
let result = {
|
|
@@ -18558,7 +18639,7 @@ const splitCircle = (arc, count) => {
|
|
|
18558
18639
|
return res;
|
|
18559
18640
|
};
|
|
18560
18641
|
const samplingPoints = (points, count) => {
|
|
18561
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
18642
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
18562
18643
|
if (0 === validatePoints.length) return [];
|
|
18563
18644
|
if (1 === validatePoints.length) return new Array(count).fill(0).map(i => validatePoints[0]);
|
|
18564
18645
|
const res = [];
|
|
@@ -18594,7 +18675,7 @@ const splitArea = (area, count) => {
|
|
|
18594
18675
|
var _a;
|
|
18595
18676
|
return res.concat(null !== (_a = seg.points) && void 0 !== _a ? _a : []);
|
|
18596
18677
|
}, []));
|
|
18597
|
-
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$
|
|
18678
|
+
const validatePoints = points.filter(point => !1 !== point.defined && isNumber$2(point.x) && isNumber$2(point.y));
|
|
18598
18679
|
if (!validatePoints.length) return [];
|
|
18599
18680
|
const allPoints = [];
|
|
18600
18681
|
validatePoints.forEach(point => {
|
|
@@ -18758,6 +18839,80 @@ const splitPath = (path, count) => {
|
|
|
18758
18839
|
return res;
|
|
18759
18840
|
};
|
|
18760
18841
|
|
|
18842
|
+
function isIdentityMatrix(matrix) {
|
|
18843
|
+
return 1 === matrix.a && 0 === matrix.b && 0 === matrix.c && 1 === matrix.d && 0 === matrix.e && 0 === matrix.f;
|
|
18844
|
+
}
|
|
18845
|
+
function createEventTransformer(containerElement, getMatrix, getRect, transformPoint) {
|
|
18846
|
+
return event => {
|
|
18847
|
+
if (!(event instanceof MouseEvent || event instanceof TouchEvent || event instanceof PointerEvent)) return event;
|
|
18848
|
+
const transformMatrix = getMatrix();
|
|
18849
|
+
if (isIdentityMatrix(transformMatrix)) return event;
|
|
18850
|
+
const containerRect = getRect(),
|
|
18851
|
+
transformedEvent = new event.constructor(event.type, event);
|
|
18852
|
+
if (Object.defineProperties(transformedEvent, {
|
|
18853
|
+
target: {
|
|
18854
|
+
value: event.target
|
|
18855
|
+
},
|
|
18856
|
+
currentTarget: {
|
|
18857
|
+
value: event.currentTarget
|
|
18858
|
+
}
|
|
18859
|
+
}), event instanceof MouseEvent || event instanceof PointerEvent) transformPoint(event.clientX, event.clientY, transformMatrix, containerRect, transformedEvent);else if (event instanceof TouchEvent) {
|
|
18860
|
+
if (event.touches.length > 0) {
|
|
18861
|
+
const touch = transformedEvent.touches[0];
|
|
18862
|
+
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
18863
|
+
}
|
|
18864
|
+
if (event.changedTouches.length > 0) {
|
|
18865
|
+
const touch = transformedEvent.changedTouches[0];
|
|
18866
|
+
transformPoint(touch.clientX, touch.clientY, transformMatrix, containerRect, touch);
|
|
18867
|
+
}
|
|
18868
|
+
}
|
|
18869
|
+
return transformedEvent;
|
|
18870
|
+
};
|
|
18871
|
+
}
|
|
18872
|
+
function createCanvasEventTransformer(canvasElement, getMatrix, getRect, transformPoint) {
|
|
18873
|
+
return createEventTransformer(canvasElement.parentElement || canvasElement, getMatrix, getRect, transformPoint);
|
|
18874
|
+
}
|
|
18875
|
+
function registerWindowEventTransformer(window, container, getMatrix, getRect, transformPoint) {
|
|
18876
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
18877
|
+
window.setEventListenerTransformer(transformer);
|
|
18878
|
+
}
|
|
18879
|
+
function registerGlobalEventTransformer(global, container, getMatrix, getRect, transformPoint) {
|
|
18880
|
+
const transformer = createEventTransformer(container, getMatrix, getRect, transformPoint);
|
|
18881
|
+
global.setEventListenerTransformer(transformer);
|
|
18882
|
+
}
|
|
18883
|
+
function transformPointForCanvas(clientX, clientY, matrix, rect, transformedEvent) {
|
|
18884
|
+
const transformedPoint = {
|
|
18885
|
+
x: clientX,
|
|
18886
|
+
y: clientY
|
|
18887
|
+
};
|
|
18888
|
+
matrix.transformPoint(transformedPoint, transformedPoint), Object.defineProperties(transformedEvent, {
|
|
18889
|
+
_canvasX: {
|
|
18890
|
+
value: transformedPoint.x
|
|
18891
|
+
},
|
|
18892
|
+
_canvasY: {
|
|
18893
|
+
value: transformedPoint.y
|
|
18894
|
+
}
|
|
18895
|
+
});
|
|
18896
|
+
}
|
|
18897
|
+
function mapToCanvasPointForCanvas(nativeEvent) {
|
|
18898
|
+
var _a;
|
|
18899
|
+
if (isNumber(nativeEvent._canvasX) && isNumber(nativeEvent._canvasY)) return {
|
|
18900
|
+
x: nativeEvent._canvasX,
|
|
18901
|
+
y: nativeEvent._canvasY
|
|
18902
|
+
};
|
|
18903
|
+
if (nativeEvent.changedTouches) {
|
|
18904
|
+
const data = null !== (_a = nativeEvent.changedTouches[0]) && void 0 !== _a ? _a : {};
|
|
18905
|
+
return {
|
|
18906
|
+
x: data._canvasX,
|
|
18907
|
+
y: data._canvasY
|
|
18908
|
+
};
|
|
18909
|
+
}
|
|
18910
|
+
return {
|
|
18911
|
+
x: nativeEvent._canvasX || 0,
|
|
18912
|
+
y: nativeEvent._canvasY || 0
|
|
18913
|
+
};
|
|
18914
|
+
}
|
|
18915
|
+
|
|
18761
18916
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
18762
18917
|
var t = {};
|
|
18763
18918
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
@@ -19970,6 +20125,7 @@ let DefaultCanvasGlyphRender = class {
|
|
|
19970
20125
|
constructor() {
|
|
19971
20126
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
19972
20127
|
}
|
|
20128
|
+
reInit() {}
|
|
19973
20129
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
19974
20130
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
19975
20131
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -22975,6 +23131,10 @@ class RoughBaseRender {
|
|
|
22975
23131
|
};
|
|
22976
23132
|
this.canvasRenderer.drawShape(graphic, roughContext, 0, 0, drawContext, params, () => (doRender(), !1), () => (doRender(), !1)), context.restore();
|
|
22977
23133
|
}
|
|
23134
|
+
reInit() {
|
|
23135
|
+
var _a;
|
|
23136
|
+
null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
|
|
23137
|
+
}
|
|
22978
23138
|
}
|
|
22979
23139
|
|
|
22980
23140
|
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -24319,11 +24479,13 @@ let BrowserContext2d = class {
|
|
|
24319
24479
|
const {
|
|
24320
24480
|
opacity = defaultParams.opacity,
|
|
24321
24481
|
shadowBlur = defaultParams.shadowBlur,
|
|
24482
|
+
shadowOffsetX = defaultParams.shadowOffsetX,
|
|
24483
|
+
shadowOffsetY = defaultParams.shadowOffsetY,
|
|
24322
24484
|
blur = defaultParams.blur,
|
|
24323
24485
|
globalCompositeOperation = defaultParams.globalCompositeOperation
|
|
24324
24486
|
} = attribute;
|
|
24325
24487
|
if (!(opacity <= 1e-12)) {
|
|
24326
|
-
if (shadowBlur) {
|
|
24488
|
+
if (shadowOffsetX || shadowOffsetY || shadowBlur) {
|
|
24327
24489
|
const {
|
|
24328
24490
|
shadowColor = defaultParams.shadowColor,
|
|
24329
24491
|
shadowOffsetX = defaultParams.shadowOffsetX,
|
|
@@ -25585,7 +25747,7 @@ class RectPickerBase {
|
|
|
25585
25747
|
x += point.x, y += point.y, pickContext.setTransformForCurrent();
|
|
25586
25748
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
25587
25749
|
let picked = !0;
|
|
25588
|
-
if (!onlyTranslate || rect.shadowRoot || isNumber$
|
|
25750
|
+
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) => {
|
|
25589
25751
|
if (picked) return !0;
|
|
25590
25752
|
const lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth,
|
|
25591
25753
|
pickStrokeBuffer = rectAttribute.pickStrokeBuffer || themeAttribute.pickStrokeBuffer,
|
|
@@ -30533,9 +30695,10 @@ function commonInterpolateUpdate(key, from, to, ratio, step, target) {
|
|
|
30533
30695
|
function noop() {}
|
|
30534
30696
|
class Step {
|
|
30535
30697
|
constructor(type, props, duration, easing) {
|
|
30698
|
+
var _a;
|
|
30536
30699
|
this._startTime = 0, this._hasFirstRun = !1, this._syncAttributeUpdate = () => {
|
|
30537
30700
|
this.target.setAttributes(this.target.attribute);
|
|
30538
|
-
}, this.type = type, this.props = props, this.duration = duration, this.easing = easing ? "function" == typeof easing ? easing : Easing[easing] : Easing.linear, "wait" === type && (this.onUpdate = noop), this.id = Generator.GenAutoIncrementId(), this.syncAttributeUpdate = noop;
|
|
30701
|
+
}, this.type = type, this.props = props, this.duration = duration, this.easing = easing ? "function" == typeof easing ? easing : null !== (_a = Easing[easing]) && void 0 !== _a ? _a : Easing.linear : Easing.linear, "wait" === type && (this.onUpdate = noop), this.id = Generator.GenAutoIncrementId(), this.syncAttributeUpdate = noop;
|
|
30539
30702
|
}
|
|
30540
30703
|
bind(target, animate) {
|
|
30541
30704
|
this.target = target, this.animate = animate, this.onBind(), this.syncAttributeUpdate();
|
|
@@ -30657,12 +30820,12 @@ class WaitStep extends Step {
|
|
|
30657
30820
|
determineInterpolateUpdateFunction() {}
|
|
30658
30821
|
}
|
|
30659
30822
|
|
|
30660
|
-
class DefaultTimeline {
|
|
30823
|
+
class DefaultTimeline extends EventEmitter {
|
|
30661
30824
|
get animateCount() {
|
|
30662
30825
|
return this._animateCount;
|
|
30663
30826
|
}
|
|
30664
30827
|
constructor() {
|
|
30665
|
-
this.head = null, this.tail = null, this.animateMap = new Map(), this._animateCount = 0, this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this.id = Generator.GenAutoIncrementId(), this.paused = !1;
|
|
30828
|
+
super(), this.head = null, this.tail = null, this.animateMap = new Map(), this._animateCount = 0, this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this.id = Generator.GenAutoIncrementId(), this.paused = !1;
|
|
30666
30829
|
}
|
|
30667
30830
|
isRunning() {
|
|
30668
30831
|
return !this.paused && this._animateCount > 0;
|
|
@@ -30694,7 +30857,7 @@ class DefaultTimeline {
|
|
|
30694
30857
|
const scaledDelta = delta * this._playSpeed;
|
|
30695
30858
|
this._currentTime += scaledDelta, this.forEachAccessAnimate((animate, i) => {
|
|
30696
30859
|
animate.status === AnimateStatus.END ? this.removeAnimate(animate, !0) : animate.status !== AnimateStatus.RUNNING && animate.status !== AnimateStatus.INITIAL || animate.advance(scaledDelta);
|
|
30697
|
-
});
|
|
30860
|
+
}), 0 === this._animateCount && this.emit("animationEnd");
|
|
30698
30861
|
}
|
|
30699
30862
|
clear() {
|
|
30700
30863
|
this.forEachAccessAnimate(animate => {
|
|
@@ -31177,6 +31340,24 @@ class AnimationTransitionRegistry {
|
|
|
31177
31340
|
})), this.registerTransition("disappear", "appear", () => ({
|
|
31178
31341
|
allowTransition: !0,
|
|
31179
31342
|
stopOriginalTransition: !0
|
|
31343
|
+
})), this.registerTransition("update", "*", () => ({
|
|
31344
|
+
allowTransition: !0,
|
|
31345
|
+
stopOriginalTransition: !1
|
|
31346
|
+
})), this.registerTransition("update", "disappear", () => ({
|
|
31347
|
+
allowTransition: !0,
|
|
31348
|
+
stopOriginalTransition: !0
|
|
31349
|
+
})), this.registerTransition("update", "exit", () => ({
|
|
31350
|
+
allowTransition: !0,
|
|
31351
|
+
stopOriginalTransition: !0
|
|
31352
|
+
})), this.registerTransition("state", "*", () => ({
|
|
31353
|
+
allowTransition: !0,
|
|
31354
|
+
stopOriginalTransition: !1
|
|
31355
|
+
})), this.registerTransition("state", "disappear", () => ({
|
|
31356
|
+
allowTransition: !0,
|
|
31357
|
+
stopOriginalTransition: !0
|
|
31358
|
+
})), this.registerTransition("state", "exit", () => ({
|
|
31359
|
+
allowTransition: !0,
|
|
31360
|
+
stopOriginalTransition: !0
|
|
31180
31361
|
}));
|
|
31181
31362
|
}
|
|
31182
31363
|
isTransitionAllowed(fromState, toState, graphic) {
|
|
@@ -31633,10 +31814,10 @@ class AnimateExtension {
|
|
|
31633
31814
|
createTicker(stage) {
|
|
31634
31815
|
return new DefaultTicker(stage);
|
|
31635
31816
|
}
|
|
31636
|
-
|
|
31817
|
+
setFinalAttributes(finalAttribute) {
|
|
31637
31818
|
this.finalAttribute || (this.finalAttribute = {}), Object.assign(this.finalAttribute, finalAttribute);
|
|
31638
31819
|
}
|
|
31639
|
-
|
|
31820
|
+
initFinalAttributes(finalAttribute) {
|
|
31640
31821
|
this.finalAttribute = finalAttribute;
|
|
31641
31822
|
}
|
|
31642
31823
|
initAnimateExecutor() {
|
|
@@ -32382,6 +32563,9 @@ class TagPointsUpdate extends ACustomAnimate {
|
|
|
32382
32563
|
isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
|
|
32383
32564
|
}
|
|
32384
32565
|
onUpdate(end, ratio, out) {
|
|
32566
|
+
if (end) return Object.keys(this.to).forEach(k => {
|
|
32567
|
+
this.target.attribute[k] = this.to[k];
|
|
32568
|
+
}), this.target.addUpdatePositionTag(), void this.target.addUpdateShapeAndBoundsTag();
|
|
32385
32569
|
if (this.points = this.points.map((point, index) => {
|
|
32386
32570
|
const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
|
|
32387
32571
|
return newPoint.context = point.context, newPoint;
|
|
@@ -32470,25 +32654,32 @@ class GroupFadeOut extends CommonOut {
|
|
|
32470
32654
|
}
|
|
32471
32655
|
|
|
32472
32656
|
class RotateBySphereAnimate extends ACustomAnimate {
|
|
32657
|
+
onBind() {
|
|
32658
|
+
super.onBind(), this.propKeys = ["x", "y", "z", "alpha", "zIndex"];
|
|
32659
|
+
}
|
|
32660
|
+
onFirstRun() {
|
|
32661
|
+
super.onFirstRun();
|
|
32662
|
+
const finalAttribute = this.target.getFinalAttribute();
|
|
32663
|
+
finalAttribute && this.target.setAttributes(finalAttribute);
|
|
32664
|
+
}
|
|
32473
32665
|
onStart() {
|
|
32666
|
+
super.onStart();
|
|
32474
32667
|
const {
|
|
32475
32668
|
center: center,
|
|
32476
32669
|
r: r
|
|
32477
32670
|
} = "function" == typeof this.params ? this.params() : this.params,
|
|
32478
|
-
startX = this.target.
|
|
32479
|
-
startY = this.target.
|
|
32480
|
-
startZ = this.target.
|
|
32671
|
+
startX = this.target.finalAttribute.x,
|
|
32672
|
+
startY = this.target.finalAttribute.y,
|
|
32673
|
+
startZ = this.target.finalAttribute.z,
|
|
32481
32674
|
phi = Math.acos((startY - center.y) / r);
|
|
32482
32675
|
let theta = Math.acos((startX - center.x) / r / Math.sin(phi));
|
|
32483
32676
|
startZ - center.z < 0 && (theta = pi2 - theta), this.theta = theta, this.phi = phi;
|
|
32484
32677
|
}
|
|
32485
|
-
onBind() {
|
|
32486
|
-
super.onBind();
|
|
32487
|
-
}
|
|
32488
32678
|
onEnd() {}
|
|
32489
32679
|
onUpdate(end, ratio, out) {
|
|
32490
32680
|
if (null == this.phi || null == this.theta) return;
|
|
32491
|
-
const
|
|
32681
|
+
const target = this.target,
|
|
32682
|
+
{
|
|
32492
32683
|
center: center,
|
|
32493
32684
|
r: r,
|
|
32494
32685
|
cb: cb
|
|
@@ -32499,8 +32690,8 @@ class RotateBySphereAnimate extends ACustomAnimate {
|
|
|
32499
32690
|
x = r * Math.sin(phi) * Math.cos(theta) + center.x,
|
|
32500
32691
|
y = r * Math.cos(phi) + center.y,
|
|
32501
32692
|
z = r * Math.sin(phi) * Math.sin(theta) + center.z;
|
|
32502
|
-
for (
|
|
32503
|
-
|
|
32693
|
+
for (target.attribute.x = x, target.attribute.y = y, target.attribute.z = z, target.attribute.alpha = theta + pi / 2; target.attribute.alpha > pi2;) target.attribute.alpha -= pi2;
|
|
32694
|
+
target.attribute.alpha = pi2 - target.attribute.alpha, target.attribute.zIndex = -1e4 * target.attribute.z, cb && cb(out);
|
|
32504
32695
|
}
|
|
32505
32696
|
}
|
|
32506
32697
|
|
|
@@ -32561,7 +32752,7 @@ const growAngleInIndividual = (graphic, options, animationParameters) => {
|
|
|
32561
32752
|
growAngleInOverall = (graphic, options, animationParameters) => {
|
|
32562
32753
|
const attrs = graphic.getFinalAttribute();
|
|
32563
32754
|
if (options && "anticlockwise" === options.orient) {
|
|
32564
|
-
const overallValue = isNumber$
|
|
32755
|
+
const overallValue = isNumber$2(options.overall) ? options.overall : 2 * Math.PI;
|
|
32565
32756
|
return {
|
|
32566
32757
|
from: {
|
|
32567
32758
|
startAngle: overallValue,
|
|
@@ -32573,7 +32764,7 @@ const growAngleInIndividual = (graphic, options, animationParameters) => {
|
|
|
32573
32764
|
}
|
|
32574
32765
|
};
|
|
32575
32766
|
}
|
|
32576
|
-
const overallValue = isNumber$
|
|
32767
|
+
const overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0;
|
|
32577
32768
|
return {
|
|
32578
32769
|
from: {
|
|
32579
32770
|
startAngle: overallValue,
|
|
@@ -32610,7 +32801,7 @@ const growAngleOutIndividual = (graphic, options, animationParameters) => {
|
|
|
32610
32801
|
growAngleOutOverall = (graphic, options, animationParameters) => {
|
|
32611
32802
|
const attrs = graphic.attribute;
|
|
32612
32803
|
if (options && "anticlockwise" === options.orient) {
|
|
32613
|
-
const overallValue = isNumber$
|
|
32804
|
+
const overallValue = isNumber$2(options.overall) ? options.overall : 2 * Math.PI;
|
|
32614
32805
|
return {
|
|
32615
32806
|
from: {
|
|
32616
32807
|
startAngle: attrs.startAngle,
|
|
@@ -32622,7 +32813,7 @@ const growAngleOutIndividual = (graphic, options, animationParameters) => {
|
|
|
32622
32813
|
}
|
|
32623
32814
|
};
|
|
32624
32815
|
}
|
|
32625
|
-
const overallValue = isNumber$
|
|
32816
|
+
const overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0;
|
|
32626
32817
|
return {
|
|
32627
32818
|
from: {
|
|
32628
32819
|
startAngle: attrs.startAngle,
|
|
@@ -32898,7 +33089,7 @@ function growHeightInOverall(graphic, options, animationParameters) {
|
|
|
32898
33089
|
y1 = attrs.y1,
|
|
32899
33090
|
height = attrs.height;
|
|
32900
33091
|
let overallValue;
|
|
32901
|
-
return options && "negative" === options.orient ? isNumber$
|
|
33092
|
+
return options && "negative" === options.orient ? isNumber$2(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_c = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : null === (_b = options.layoutRect) || void 0 === _b ? void 0 : _b.height) && void 0 !== _c ? _c : animationParameters.group.getBounds().height(), animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0, {
|
|
32902
33093
|
from: {
|
|
32903
33094
|
y: overallValue,
|
|
32904
33095
|
y1: isNil$1(y1) ? void 0 : overallValue,
|
|
@@ -32971,7 +33162,7 @@ function growHeightOutOverall(graphic, options, animationParameters) {
|
|
|
32971
33162
|
y1 = attrs.y1,
|
|
32972
33163
|
height = attrs.height;
|
|
32973
33164
|
let overallValue;
|
|
32974
|
-
return options && "negative" === options.orient ? isNumber$
|
|
33165
|
+
return options && "negative" === options.orient ? isNumber$2(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_c = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : null === (_b = options.layoutRect) || void 0 === _b ? void 0 : _b.height) && void 0 !== _c ? _c : animationParameters.group.getBounds().height(), animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0, {
|
|
32975
33166
|
to: {
|
|
32976
33167
|
y: overallValue,
|
|
32977
33168
|
y1: isNil$1(y1) ? void 0 : overallValue,
|
|
@@ -33217,7 +33408,7 @@ const growRadiusInIndividual = (graphic, options, animationParameters) => {
|
|
|
33217
33408
|
},
|
|
33218
33409
|
growRadiusInOverall = (graphic, options, animationParameters) => {
|
|
33219
33410
|
const attrs = graphic.getFinalAttribute(),
|
|
33220
|
-
overallValue = isNumber$
|
|
33411
|
+
overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0;
|
|
33221
33412
|
return {
|
|
33222
33413
|
from: {
|
|
33223
33414
|
innerRadius: overallValue,
|
|
@@ -33253,7 +33444,7 @@ const growRadiusOutIndividual = (graphic, options, animationParameters) => {
|
|
|
33253
33444
|
},
|
|
33254
33445
|
growRadiusOutOverall = (graphic, options, animationParameters) => {
|
|
33255
33446
|
const attrs = graphic.getFinalAttribute(),
|
|
33256
|
-
overallValue = isNumber$
|
|
33447
|
+
overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0;
|
|
33257
33448
|
return {
|
|
33258
33449
|
from: {
|
|
33259
33450
|
innerRadius: null == attrs ? void 0 : attrs.innerRadius,
|
|
@@ -33342,7 +33533,7 @@ function growWidthInOverall(graphic, options, animationParameters) {
|
|
|
33342
33533
|
x1 = attrs.x1,
|
|
33343
33534
|
width = attrs.width;
|
|
33344
33535
|
let overallValue;
|
|
33345
|
-
return options && "negative" === options.orient ? isNumber$
|
|
33536
|
+
return options && "negative" === options.orient ? isNumber$2(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber$2(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0, {
|
|
33346
33537
|
from: {
|
|
33347
33538
|
x: overallValue,
|
|
33348
33539
|
x1: isNil$1(x1) ? void 0 : overallValue,
|
|
@@ -33389,7 +33580,7 @@ function growWidthOutOverall(graphic, options, animationParameters) {
|
|
|
33389
33580
|
x1 = attrs.x1,
|
|
33390
33581
|
width = attrs.width;
|
|
33391
33582
|
let overallValue;
|
|
33392
|
-
return options && "negative" === options.orient ? isNumber$
|
|
33583
|
+
return options && "negative" === options.orient ? isNumber$2(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber$2(null == options ? void 0 : options.overall) ? options.overall : 0, {
|
|
33393
33584
|
to: {
|
|
33394
33585
|
x: overallValue,
|
|
33395
33586
|
x1: isNil$1(x1) ? void 0 : overallValue,
|
|
@@ -34751,9 +34942,9 @@ class Update extends ACustomAnimate {
|
|
|
34751
34942
|
const {
|
|
34752
34943
|
options: options
|
|
34753
34944
|
} = this.params;
|
|
34754
|
-
(null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) &&
|
|
34945
|
+
diffAttrs = Object.assign({}, diffAttrs), (null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) && options.excludeChannels.forEach(channel => {
|
|
34755
34946
|
delete diffAttrs[channel];
|
|
34756
|
-
})
|
|
34947
|
+
}), this.props = diffAttrs;
|
|
34757
34948
|
}
|
|
34758
34949
|
update(end, ratio, out) {
|
|
34759
34950
|
if (this.onStart(), !this.props || !this.propKeys) return;
|
|
@@ -35198,7 +35389,7 @@ const registerCustomAnimate = () => {
|
|
|
35198
35389
|
AnimateExecutor.registerBuiltInAnimate("increaseCount", IncreaseCount), AnimateExecutor.registerBuiltInAnimate("fromTo", FromTo), AnimateExecutor.registerBuiltInAnimate("scaleIn", ScaleIn), AnimateExecutor.registerBuiltInAnimate("scaleOut", ScaleOut), AnimateExecutor.registerBuiltInAnimate("growHeightIn", GrowHeightIn), AnimateExecutor.registerBuiltInAnimate("growHeightOut", GrowHeightOut), AnimateExecutor.registerBuiltInAnimate("growWidthIn", GrowWidthIn), AnimateExecutor.registerBuiltInAnimate("growWidthOut", GrowWidthOut), AnimateExecutor.registerBuiltInAnimate("growCenterIn", GrowCenterIn), AnimateExecutor.registerBuiltInAnimate("growCenterOut", GrowCenterOut), AnimateExecutor.registerBuiltInAnimate("clipIn", ClipIn), AnimateExecutor.registerBuiltInAnimate("clipOut", ClipOut), AnimateExecutor.registerBuiltInAnimate("fadeIn", FadeIn), AnimateExecutor.registerBuiltInAnimate("fadeOut", FadeOut), AnimateExecutor.registerBuiltInAnimate("growPointsIn", GrowPointsIn), AnimateExecutor.registerBuiltInAnimate("growPointsOut", GrowPointsOut), AnimateExecutor.registerBuiltInAnimate("growPointsXIn", GrowPointsXIn), AnimateExecutor.registerBuiltInAnimate("growPointsXOut", GrowPointsXOut), AnimateExecutor.registerBuiltInAnimate("growPointsYIn", GrowPointsYIn), AnimateExecutor.registerBuiltInAnimate("growPointsYOut", GrowPointsYOut), AnimateExecutor.registerBuiltInAnimate("growAngleIn", GrowAngleIn), AnimateExecutor.registerBuiltInAnimate("growAngleOut", GrowAngleOut), AnimateExecutor.registerBuiltInAnimate("growRadiusIn", GrowRadiusIn), AnimateExecutor.registerBuiltInAnimate("growRadiusOut", GrowRadiusOut), AnimateExecutor.registerBuiltInAnimate("moveIn", MoveIn), AnimateExecutor.registerBuiltInAnimate("moveOut", MoveOut), AnimateExecutor.registerBuiltInAnimate("rotateIn", RotateIn), AnimateExecutor.registerBuiltInAnimate("rotateOut", RotateOut), AnimateExecutor.registerBuiltInAnimate("update", Update), AnimateExecutor.registerBuiltInAnimate("state", State), AnimateExecutor.registerBuiltInAnimate("labelItemAppear", LabelItemAppear), AnimateExecutor.registerBuiltInAnimate("labelItemDisappear", LabelItemDisappear), AnimateExecutor.registerBuiltInAnimate("poptipAppear", PoptipAppear), AnimateExecutor.registerBuiltInAnimate("poptipDisappear", PoptipDisappear), AnimateExecutor.registerBuiltInAnimate("inputText", InputText), AnimateExecutor.registerBuiltInAnimate("inputRichText", InputRichText), AnimateExecutor.registerBuiltInAnimate("outputRichText", OutputRichText), AnimateExecutor.registerBuiltInAnimate("slideRichText", SlideRichText), AnimateExecutor.registerBuiltInAnimate("slideOutRichText", SlideOutRichText), AnimateExecutor.registerBuiltInAnimate("slideIn", SlideIn), AnimateExecutor.registerBuiltInAnimate("growIn", GrowIn), AnimateExecutor.registerBuiltInAnimate("spinIn", SpinIn), AnimateExecutor.registerBuiltInAnimate("moveScaleIn", MoveScaleIn), AnimateExecutor.registerBuiltInAnimate("moveRotateIn", MoveRotateIn), AnimateExecutor.registerBuiltInAnimate("strokeIn", StrokeIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("strokeOut", StrokeOut), AnimateExecutor.registerBuiltInAnimate("pulse", PulseAnimate), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
|
|
35199
35390
|
};
|
|
35200
35391
|
|
|
35201
|
-
const version = "1.0.0
|
|
35392
|
+
const version = "1.0.0";
|
|
35202
35393
|
preLoadAllModule();
|
|
35203
35394
|
if (isBrowserEnv()) {
|
|
35204
35395
|
loadBrowserEnv(container);
|
|
@@ -35232,4 +35423,4 @@ registerReactAttributePlugin();
|
|
|
35232
35423
|
registerDirectionalLight();
|
|
35233
35424
|
registerOrthoCamera();
|
|
35234
35425
|
|
|
35235
|
-
export { AComponentAnimate, ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, 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, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Container, ContainerModule, Context2dFactory, ContributionProvider, CubicBezierCurve, 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, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, LabelItemAppear, LabelItemDisappear, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, 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, RotateIn, RotateOut, STAR_NUMBER_TYPE, STATUS$1 as STATUS, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, ScaleIn, ScaleOut, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SlideIn, SlideOut, SlideOutRichText, SlideRichText, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, State, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StreamLight, StrokeIn, StrokeOut, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TransformUtil, Update, 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, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, container, cornerTangents, cornerToCenter, createArc, createArc3d, createArea, createCircle, createColor, createComponentAnimator, 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, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, divideQuad, 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, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isNodeEnv, isSvg, 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, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, 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, renderService, 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, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformMat4, transformUtil, transitionRegistry, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|
|
35426
|
+
export { AComponentAnimate, ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, 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, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Container, ContainerModule, Context2dFactory, ContributionProvider, ContributionStore, CubicBezierCurve, 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, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, LabelItemAppear, LabelItemDisappear, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, 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, RotateIn, RotateOut, STAR_NUMBER_TYPE, STATUS$1 as STATUS, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, ScaleIn, ScaleOut, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SlideIn, SlideOut, SlideOutRichText, SlideRichText, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, Star, StarRender, StarRenderContribution, State, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StreamLight, StrokeIn, StrokeOut, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TransformUtil, Update, 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, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, container, cornerTangents, cornerToCenter, createArc, createArc3d, createArea, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, 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, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, 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, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isNodeEnv, isSvg, 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, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, 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, renderService, 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, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|