@visactor/vrender 1.1.6-alpha.0 → 1.1.6
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 +392 -182
- package/dist/index.js +392 -181
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -2722,7 +2722,7 @@ class Node extends EventEmitter {
|
|
|
2722
2722
|
constructor() {
|
|
2723
2723
|
super(), this._uid = Generator.GenAutoIncrementId(), this._firstChild = null, this._lastChild = null, this.parent = null, this._count = 1;
|
|
2724
2724
|
}
|
|
2725
|
-
onParentSharedStateTreeChanged(_stage, _layer
|
|
2725
|
+
onParentSharedStateTreeChanged(_stage, _layer) {}
|
|
2726
2726
|
forEachChildren(cb, reverse = !1) {
|
|
2727
2727
|
if (reverse) {
|
|
2728
2728
|
let child = this._lastChild,
|
|
@@ -7106,18 +7106,21 @@ class GradientParser {
|
|
|
7106
7106
|
}
|
|
7107
7107
|
}
|
|
7108
7108
|
|
|
7109
|
-
function
|
|
7109
|
+
function getScaledStrokeWithMatrix(matrix, width, dpr) {
|
|
7110
7110
|
let strokeWidth = width;
|
|
7111
7111
|
const {
|
|
7112
7112
|
a: a,
|
|
7113
7113
|
b: b,
|
|
7114
7114
|
c: c,
|
|
7115
7115
|
d: d
|
|
7116
|
-
} =
|
|
7116
|
+
} = matrix,
|
|
7117
7117
|
scaleX = Math.sign(a) * Math.sqrt(a * a + b * b),
|
|
7118
7118
|
scaleY = Math.sign(d) * Math.sqrt(c * c + d * d);
|
|
7119
7119
|
return scaleX + scaleY === 0 ? 0 : (strokeWidth = strokeWidth / Math.abs(scaleX + scaleY) * 2 * dpr, strokeWidth);
|
|
7120
7120
|
}
|
|
7121
|
+
function getScaledStroke(context, width, dpr) {
|
|
7122
|
+
return getScaledStrokeWithMatrix(context.currentMatrix, width, dpr);
|
|
7123
|
+
}
|
|
7121
7124
|
function createColor(context, c, params, offsetX = 0, offsetY = 0) {
|
|
7122
7125
|
var _a, _b, _c, _d;
|
|
7123
7126
|
if (!c || !0 === c) return "black";
|
|
@@ -8207,7 +8210,7 @@ function normalizeNoAnimateAttrConfig(config) {
|
|
|
8207
8210
|
}
|
|
8208
8211
|
class StateTransitionOrchestrator {
|
|
8209
8212
|
analyzeTransition(targetAttrs, hasAnimation, options = {}) {
|
|
8210
|
-
var _a, _b;
|
|
8213
|
+
var _a, _b, _c, _d;
|
|
8211
8214
|
const plan = {
|
|
8212
8215
|
targetAttrs: Object.assign({}, targetAttrs),
|
|
8213
8216
|
animateAttrs: {},
|
|
@@ -8216,10 +8219,17 @@ class StateTransitionOrchestrator {
|
|
|
8216
8219
|
if (!hasAnimation) return plan;
|
|
8217
8220
|
const noWorkAnimateAttr = Object.assign(Object.assign({}, null !== (_a = options.noWorkAnimateAttr) && void 0 !== _a ? _a : {}), normalizeNoAnimateAttrConfig(null === (_b = options.animateConfig) || void 0 === _b ? void 0 : _b.noAnimateAttrs)),
|
|
8218
8221
|
isClear = !0 === options.isClear,
|
|
8219
|
-
|
|
8222
|
+
getDefaultAttribute = options.getDefaultAttribute,
|
|
8223
|
+
readDefaultAttribute = getDefaultAttribute,
|
|
8224
|
+
readStateTransitionDefaultAttribute = null !== (_c = options.getStateTransitionDefaultAttribute) && void 0 !== _c ? _c : getDefaultAttribute,
|
|
8220
8225
|
shouldSkipDefaultAttribute = options.shouldSkipDefaultAttribute,
|
|
8221
|
-
|
|
8222
|
-
|
|
8226
|
+
stateTransitionTargetAttrs = null !== (_d = options.stateTransitionTargetAttrs) && void 0 !== _d ? _d : targetAttrs,
|
|
8227
|
+
assignTransitionAttr = (key, value, isRemovedStateAttr = !1) => {
|
|
8228
|
+
if (noWorkAnimateAttr[key]) plan.noAnimateAttrs[key] = value;else if (isRemovedStateAttr && void 0 === value) {
|
|
8229
|
+
const defaultValue = null == readStateTransitionDefaultAttribute ? void 0 : readStateTransitionDefaultAttribute(key, stateTransitionTargetAttrs);
|
|
8230
|
+
if (void 0 === defaultValue && (null == shouldSkipDefaultAttribute ? void 0 : shouldSkipDefaultAttribute(key, stateTransitionTargetAttrs))) return;
|
|
8231
|
+
plan.animateAttrs[key] = defaultValue;
|
|
8232
|
+
} else if (isClear && void 0 === value) {
|
|
8223
8233
|
if (null == shouldSkipDefaultAttribute ? void 0 : shouldSkipDefaultAttribute(key, targetAttrs)) return;
|
|
8224
8234
|
plan.animateAttrs[key] = readDefaultAttribute(key);
|
|
8225
8235
|
} else plan.animateAttrs[key] = value;
|
|
@@ -8231,7 +8241,7 @@ class StateTransitionOrchestrator {
|
|
|
8231
8241
|
const extraAnimateAttrs = options.extraAnimateAttrs;
|
|
8232
8242
|
if (extraAnimateAttrs) for (const key in extraAnimateAttrs) {
|
|
8233
8243
|
const hasTargetAttr = Object.prototype.hasOwnProperty.call(targetAttrs, key);
|
|
8234
|
-
!Object.prototype.hasOwnProperty.call(extraAnimateAttrs, key) || hasTargetAttr && void 0 !== targetAttrs[key] || assignTransitionAttr(key, extraAnimateAttrs[key]);
|
|
8244
|
+
!Object.prototype.hasOwnProperty.call(extraAnimateAttrs, key) || hasTargetAttr && void 0 !== targetAttrs[key] || assignTransitionAttr(key, extraAnimateAttrs[key], !0);
|
|
8235
8245
|
}
|
|
8236
8246
|
return plan;
|
|
8237
8247
|
}
|
|
@@ -8263,9 +8273,11 @@ class StateTransitionOrchestrator {
|
|
|
8263
8273
|
noWorkAnimateAttr: graphic.getNoWorkAnimateAttr(),
|
|
8264
8274
|
isClear: !0,
|
|
8265
8275
|
getDefaultAttribute: graphic.getDefaultAttribute.bind(graphic),
|
|
8276
|
+
getStateTransitionDefaultAttribute: options.getStateTransitionDefaultAttribute,
|
|
8266
8277
|
shouldSkipDefaultAttribute: null !== (_a = options.shouldSkipDefaultAttribute) && void 0 !== _a ? _a : graphic.shouldSkipStateTransitionDefaultAttribute.bind(graphic),
|
|
8267
8278
|
animateConfig: options.animateConfig,
|
|
8268
|
-
extraAnimateAttrs: options.extraAnimateAttrs
|
|
8279
|
+
extraAnimateAttrs: options.extraAnimateAttrs,
|
|
8280
|
+
stateTransitionTargetAttrs: options.stateTransitionTargetAttrs
|
|
8269
8281
|
});
|
|
8270
8282
|
return this.applyTransition(graphic, plan, hasAnimation, options);
|
|
8271
8283
|
}
|
|
@@ -8481,17 +8493,14 @@ class GraphicImpl extends Node {
|
|
|
8481
8493
|
}
|
|
8482
8494
|
return null === (_a = this.stage) || void 0 === _a ? void 0 : _a.rootSharedStateScope;
|
|
8483
8495
|
}
|
|
8484
|
-
|
|
8496
|
+
syncSharedStateScopeBindingFromTree(markDirty = !0) {
|
|
8485
8497
|
var _a;
|
|
8498
|
+
const nextScope = this.resolveBoundSharedStateScope();
|
|
8486
8499
|
return this.boundSharedStateScope === nextScope ? (this.syncSharedStateActiveRegistrations(), !1) : (this.boundSharedStateScope = nextScope, this.boundSharedStateRevision = void 0, this.compiledStateDefinitions = void 0, this.compiledStateDefinitionsCacheKey = void 0, this.stateEngine = void 0, this.stateEngineCompiledDefinitions = void 0, this.syncSharedStateActiveRegistrations(), markDirty && (null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) && this.markSharedStateDirty(), !0);
|
|
8487
8500
|
}
|
|
8488
|
-
|
|
8489
|
-
const nextScope = void 0 === inheritedSharedStateScope ? this.resolveBoundSharedStateScope() : null != inheritedSharedStateScope ? inheritedSharedStateScope : void 0;
|
|
8490
|
-
return this.syncSharedStateScopeBinding(nextScope, markDirty);
|
|
8491
|
-
}
|
|
8492
|
-
syncSharedStateScopeBindingOnTreeChange(markDirty = !0, inheritedSharedStateScope) {
|
|
8501
|
+
syncSharedStateScopeBindingOnTreeChange(markDirty = !0) {
|
|
8493
8502
|
var _a, _b;
|
|
8494
|
-
return !!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || this.boundSharedStateScope || (null === (_b = this.registeredActiveScopes) || void 0 === _b ? void 0 : _b.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingFromTree(markDirty
|
|
8503
|
+
return !!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || this.boundSharedStateScope || (null === (_b = this.registeredActiveScopes) || void 0 === _b ? void 0 : _b.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingFromTree(markDirty);
|
|
8495
8504
|
}
|
|
8496
8505
|
syncSharedStateActiveRegistrations() {
|
|
8497
8506
|
var _a;
|
|
@@ -8499,7 +8508,6 @@ class GraphicImpl extends Node {
|
|
|
8499
8508
|
if (!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) || !this.boundSharedStateScope) return (null == previousScopes ? void 0 : previousScopes.size) && (previousScopes.forEach(scope => {
|
|
8500
8509
|
scope.subtreeActiveDescendants.delete(this);
|
|
8501
8510
|
}), previousScopes.clear()), void (this.registeredActiveScopes = void 0);
|
|
8502
|
-
if ((null == previousScopes ? void 0 : previousScopes.size) && this.isSharedStateScopeChainRegistered(previousScopes)) return;
|
|
8503
8511
|
const nextScopes = new Set(collectSharedStateScopeChain(this.boundSharedStateScope));
|
|
8504
8512
|
null == previousScopes || previousScopes.forEach(scope => {
|
|
8505
8513
|
nextScopes.has(scope) || scope.subtreeActiveDescendants.delete(this);
|
|
@@ -8507,15 +8515,6 @@ class GraphicImpl extends Node {
|
|
|
8507
8515
|
scope.subtreeActiveDescendants.add(this);
|
|
8508
8516
|
}), this.registeredActiveScopes = nextScopes;
|
|
8509
8517
|
}
|
|
8510
|
-
isSharedStateScopeChainRegistered(previousScopes) {
|
|
8511
|
-
let scope = this.boundSharedStateScope,
|
|
8512
|
-
scopeCount = 0;
|
|
8513
|
-
for (; scope;) {
|
|
8514
|
-
if (!previousScopes.has(scope)) return !1;
|
|
8515
|
-
scopeCount += 1, scope = scope.parentScope;
|
|
8516
|
-
}
|
|
8517
|
-
return scopeCount === previousScopes.size;
|
|
8518
|
-
}
|
|
8519
8518
|
clearSharedStateActiveRegistrations() {
|
|
8520
8519
|
const previousScopes = this.registeredActiveScopes;
|
|
8521
8520
|
previousScopes && (previousScopes.forEach(scope => {
|
|
@@ -8525,8 +8524,8 @@ class GraphicImpl extends Node {
|
|
|
8525
8524
|
markSharedStateDirty() {
|
|
8526
8525
|
this.sharedStateDirty = !0, enqueueGraphicSharedStateRefresh(this.stage, this), scheduleStageSharedStateRefresh(this.stage);
|
|
8527
8526
|
}
|
|
8528
|
-
onParentSharedStateTreeChanged(stage, layer
|
|
8529
|
-
this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingOnTreeChange(
|
|
8527
|
+
onParentSharedStateTreeChanged(stage, layer) {
|
|
8528
|
+
this.stage === stage && this.layer === layer ? this.syncSharedStateScopeBindingOnTreeChange() : this.setStage(stage, layer);
|
|
8530
8529
|
}
|
|
8531
8530
|
refreshSharedStateBeforeRender() {
|
|
8532
8531
|
var _a;
|
|
@@ -8576,21 +8575,20 @@ class GraphicImpl extends Node {
|
|
|
8576
8575
|
}), snapshot) : snapshot;
|
|
8577
8576
|
}
|
|
8578
8577
|
buildRemovedStateAnimationAttrs(targetStateAttrs, previousResolvedStatePatch) {
|
|
8579
|
-
|
|
8580
|
-
if (!previousResolvedStatePatch) return extraAttrs;
|
|
8578
|
+
if (!previousResolvedStatePatch) return;
|
|
8581
8579
|
const snapshot = this.buildStaticAttributeSnapshot(),
|
|
8582
|
-
|
|
8580
|
+
extraAttrs = {};
|
|
8583
8581
|
return Object.keys(previousResolvedStatePatch).forEach(key => {
|
|
8584
8582
|
const hasTargetAttr = Object.prototype.hasOwnProperty.call(targetStateAttrs, key);
|
|
8585
8583
|
if (hasTargetAttr && void 0 !== targetStateAttrs[key]) return;
|
|
8586
8584
|
const assignFallbackAttr = value => {
|
|
8587
|
-
|
|
8585
|
+
extraAttrs[key] = void 0 === value ? value : cloneAttributeValue(value);
|
|
8588
8586
|
};
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
}
|
|
8587
|
+
hasTargetAttr ? assignFallbackAttr(targetStateAttrs[key]) : Object.prototype.hasOwnProperty.call(snapshot, key) ? assignFallbackAttr(snapshot[key]) : assignFallbackAttr(void 0);
|
|
8588
|
+
}), {
|
|
8589
|
+
extraAttrs: extraAttrs,
|
|
8590
|
+
stateTransitionTargetAttrs: snapshot
|
|
8591
|
+
};
|
|
8594
8592
|
}
|
|
8595
8593
|
syncObjectToSnapshot(target, snapshot, excludedKeys) {
|
|
8596
8594
|
const delta = new Map();
|
|
@@ -9177,10 +9175,6 @@ class GraphicImpl extends Node {
|
|
|
9177
9175
|
var _a;
|
|
9178
9176
|
return null === (_a = this.states) || void 0 === _a ? void 0 : _a[stateName];
|
|
9179
9177
|
}
|
|
9180
|
-
setStateDefinitionsWithCompiled(definitions, compiledDefinitions) {
|
|
9181
|
-
var _a;
|
|
9182
|
-
this.states = definitions, this.localStateDefinitionsSource !== definitions && (this.localStateDefinitionsSource = definitions, this.localStateDefinitionsVersion = (null !== (_a = this.localStateDefinitionsVersion) && void 0 !== _a ? _a : 0) + 1), this.compiledStateDefinitions = compiledDefinitions, this.compiledStateDefinitionsCacheKey = `local:${this.localStateDefinitionsVersion}`;
|
|
9183
|
-
}
|
|
9184
9178
|
getStateResolveBaseAttrs() {
|
|
9185
9179
|
var _a;
|
|
9186
9180
|
return null !== (_a = this.baseAttributes) && void 0 !== _a ? _a : this.attribute;
|
|
@@ -9310,29 +9304,37 @@ class GraphicImpl extends Node {
|
|
|
9310
9304
|
resolvedStateAttrs: resolvedStateAttrs
|
|
9311
9305
|
} = this.resolveGraphicStateTransition(states, !0),
|
|
9312
9306
|
patchChanged = !this.sameStatePatches(previousResolvedStatePatch, resolvedStateAttrs);
|
|
9313
|
-
patchChanged
|
|
9307
|
+
if ((!patchChanged || this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) && (this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), patchChanged)) if (hasAnimation && animateSameStatePatchChange) {
|
|
9308
|
+
this._syncFinalAttributeFromStaticTruth();
|
|
9309
|
+
const removedStateAnimationAttrs = this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch);
|
|
9310
|
+
this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.extraAttrs, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.stateTransitionTargetAttrs);
|
|
9311
|
+
} else this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
|
|
9314
9312
|
type: AttributeUpdateType.STATE
|
|
9315
9313
|
}) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
|
|
9316
9314
|
type: AttributeUpdateType.STATE
|
|
9317
|
-
}), this.emitStateUpdateEvent()
|
|
9315
|
+
}), this.emitStateUpdateEvent();
|
|
9318
9316
|
}
|
|
9319
9317
|
resolveStateAnimateConfig(animateConfig) {
|
|
9320
9318
|
var _a, _b, _c;
|
|
9321
9319
|
return null !== (_c = null !== (_a = null != animateConfig ? animateConfig : this.stateAnimateConfig) && void 0 !== _a ? _a : null === (_b = this.context) || void 0 === _b ? void 0 : _b.stateAnimateConfig) && void 0 !== _c ? _c : DefaultStateAnimateConfig;
|
|
9322
9320
|
}
|
|
9323
|
-
applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig, extraAnimateAttrs) {
|
|
9321
|
+
applyStateAttrs(attrs, stateNames, hasAnimation, isClear, animateConfig, extraAnimateAttrs, stateTransitionTargetAttrs) {
|
|
9324
9322
|
const resolvedAnimateConfig = hasAnimation ? this.resolveStateAnimateConfig(animateConfig) : void 0,
|
|
9325
9323
|
transitionOptions = resolvedAnimateConfig ? {
|
|
9326
9324
|
animateConfig: resolvedAnimateConfig,
|
|
9327
9325
|
extraAnimateAttrs: extraAnimateAttrs,
|
|
9328
|
-
|
|
9326
|
+
getStateTransitionDefaultAttribute: this.getStateTransitionDefaultAttribute.bind(this),
|
|
9327
|
+
shouldSkipDefaultAttribute: this.shouldSkipStateTransitionDefaultAttribute.bind(this),
|
|
9328
|
+
stateTransitionTargetAttrs: stateTransitionTargetAttrs
|
|
9329
9329
|
} : void 0;
|
|
9330
9330
|
if (isClear) return void this.getStateTransitionOrchestrator().applyClearTransition(this, attrs, hasAnimation, transitionOptions);
|
|
9331
9331
|
const plan = this.getStateTransitionOrchestrator().analyzeTransition(attrs, hasAnimation, {
|
|
9332
9332
|
noWorkAnimateAttr: this.getNoWorkAnimateAttr(),
|
|
9333
9333
|
animateConfig: resolvedAnimateConfig,
|
|
9334
9334
|
extraAnimateAttrs: extraAnimateAttrs,
|
|
9335
|
-
|
|
9335
|
+
getStateTransitionDefaultAttribute: this.getStateTransitionDefaultAttribute.bind(this),
|
|
9336
|
+
shouldSkipDefaultAttribute: this.shouldSkipStateTransitionDefaultAttribute.bind(this),
|
|
9337
|
+
stateTransitionTargetAttrs: stateTransitionTargetAttrs
|
|
9336
9338
|
});
|
|
9337
9339
|
this.getStateTransitionOrchestrator().applyTransition(this, plan, hasAnimation, transitionOptions);
|
|
9338
9340
|
}
|
|
@@ -9359,11 +9361,15 @@ class GraphicImpl extends Node {
|
|
|
9359
9361
|
transition = this.resolveClearStatesTransition();
|
|
9360
9362
|
if (!transition.changed && 0 === previousStates.length) return this.currentStates = [], this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, void this.clearSharedStateActiveRegistrations();
|
|
9361
9363
|
const resolvedStateAttrs = hasAnimation || this.hasCustomEvent("beforeStateUpdate") ? cloneAttributeValue(null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : {}) : null !== (_c = this.baseAttributes) && void 0 !== _c ? _c : {};
|
|
9362
|
-
transition.changed
|
|
9364
|
+
if (!transition.changed || this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !0)) if (this.currentStates = transition.states, this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, this.clearSharedStateActiveRegistrations(), hasAnimation) {
|
|
9365
|
+
this._syncFinalAttributeFromStaticTruth();
|
|
9366
|
+
const removedStateAnimationAttrs = this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch);
|
|
9367
|
+
this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0, void 0, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.extraAttrs, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.stateTransitionTargetAttrs);
|
|
9368
|
+
} else this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
|
|
9363
9369
|
type: AttributeUpdateType.STATE
|
|
9364
9370
|
}) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, void 0, {
|
|
9365
9371
|
type: AttributeUpdateType.STATE
|
|
9366
|
-
}), this.emitStateUpdateEvent()
|
|
9372
|
+
}), this.emitStateUpdateEvent();
|
|
9367
9373
|
}
|
|
9368
9374
|
removeState(stateName, hasAnimation) {
|
|
9369
9375
|
const transition = this.resolveRemoveStateTransition(stateName);
|
|
@@ -9404,11 +9410,15 @@ class GraphicImpl extends Node {
|
|
|
9404
9410
|
effectiveStates: effectiveStates,
|
|
9405
9411
|
resolvedStateAttrs: resolvedStateAttrs
|
|
9406
9412
|
} = this.resolveGraphicStateTransition(states);
|
|
9407
|
-
|
|
9413
|
+
if ((transition.changed || !this.sameStateNames(previousStates, transition.states)) && this.beforeStateUpdate(resolvedStateAttrs, previousStates, transition.states, hasAnimation, !1)) if (this.currentStates = transition.states, this.effectiveStates = [...effectiveStates], this.resolvedStatePatch = resolvedStateAttrs, this.sharedStateDirty = !1, this.syncSharedStateActiveRegistrations(), hasAnimation) {
|
|
9414
|
+
this._syncFinalAttributeFromStaticTruth();
|
|
9415
|
+
const removedStateAnimationAttrs = this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch);
|
|
9416
|
+
this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.extraAttrs, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.stateTransitionTargetAttrs);
|
|
9417
|
+
} else this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
|
|
9408
9418
|
type: AttributeUpdateType.STATE
|
|
9409
9419
|
}) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
|
|
9410
9420
|
type: AttributeUpdateType.STATE
|
|
9411
|
-
}), this.emitStateUpdateEvent()
|
|
9421
|
+
}), this.emitStateUpdateEvent();
|
|
9412
9422
|
}
|
|
9413
9423
|
invalidateResolver() {
|
|
9414
9424
|
var _a, _b;
|
|
@@ -9528,12 +9538,12 @@ class GraphicImpl extends Node {
|
|
|
9528
9538
|
this._globalTransMatrix.translate(scrollX, scrollY);
|
|
9529
9539
|
}
|
|
9530
9540
|
}
|
|
9531
|
-
setStage(stage, layer
|
|
9541
|
+
setStage(stage, layer) {
|
|
9532
9542
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
9533
9543
|
const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application.graphicService,
|
|
9534
9544
|
previousStage = this.stage;
|
|
9535
9545
|
if (this.stage !== stage || this.layer !== layer) {
|
|
9536
|
-
if (this.stage = stage, this.layer = layer, ((null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
9546
|
+
if (this.stage = stage, this.layer = layer, ((null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0), this.setStageToShadowRoot(stage, layer), this.mayHaveTrackedAnimates() && this.hasAnyTrackedAnimate()) {
|
|
9537
9547
|
const previousTimeline = null === (_f = null == previousStage ? void 0 : previousStage.getTimeline) || void 0 === _f ? void 0 : _f.call(previousStage),
|
|
9538
9548
|
nextTimeline = null === (_g = null == stage ? void 0 : stage.getTimeline) || void 0 === _g ? void 0 : _g.call(stage),
|
|
9539
9549
|
detachedStageAnimates = [];
|
|
@@ -9550,7 +9560,7 @@ class GraphicImpl extends Node {
|
|
|
9550
9560
|
}
|
|
9551
9561
|
return this._onSetStage && this._onSetStage(this, stage, layer), void (null === (_h = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _h || _h.call(graphicService, this, stage));
|
|
9552
9562
|
}
|
|
9553
|
-
((null === (_j = this.currentStates) || void 0 === _j ? void 0 : _j.length) || this.boundSharedStateScope || (null === (_k = this.registeredActiveScopes) || void 0 === _k ? void 0 : _k.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
9563
|
+
((null === (_j = this.currentStates) || void 0 === _j ? void 0 : _j.length) || this.boundSharedStateScope || (null === (_k = this.registeredActiveScopes) || void 0 === _k ? void 0 : _k.size) || this.sharedStateDirty) && this.syncSharedStateScopeBindingOnTreeChange(!0);
|
|
9554
9564
|
}
|
|
9555
9565
|
detachStageForRelease() {
|
|
9556
9566
|
var _a, _b, _c;
|
|
@@ -10100,8 +10110,15 @@ class Text extends Graphic {
|
|
|
10100
10110
|
const b = this.AABBBounds;
|
|
10101
10111
|
return this._OBBBounds.setValue(b.x1, b.y1, b.x2, b.y2), this._OBBBounds;
|
|
10102
10112
|
}
|
|
10103
|
-
this.obbText || (this.obbText = new Text({}))
|
|
10104
|
-
|
|
10113
|
+
this.obbText || (this.obbText = new Text({}));
|
|
10114
|
+
const {
|
|
10115
|
+
dx = 0,
|
|
10116
|
+
dy = 0
|
|
10117
|
+
} = attribute;
|
|
10118
|
+
this.obbText.setAttributes(Object.assign(Object.assign({}, attribute), {
|
|
10119
|
+
angle: 0,
|
|
10120
|
+
dx: 0,
|
|
10121
|
+
dy: 0
|
|
10105
10122
|
}));
|
|
10106
10123
|
const bounds1 = this.obbText.AABBBounds,
|
|
10107
10124
|
{
|
|
@@ -10116,7 +10133,7 @@ class Text extends Graphic {
|
|
|
10116
10133
|
x: x,
|
|
10117
10134
|
y: y
|
|
10118
10135
|
});
|
|
10119
|
-
return this._OBBBounds.copy(bounds1), this._OBBBounds.translate(center.x - boundsCenter.x, center.y - boundsCenter.y), this._OBBBounds.angle = angle, this._OBBBounds;
|
|
10136
|
+
return this._OBBBounds.copy(bounds1), this._OBBBounds.translate(center.x - boundsCenter.x + dx, center.y - boundsCenter.y + dy), this._OBBBounds.angle = angle, this._OBBBounds;
|
|
10120
10137
|
}
|
|
10121
10138
|
updateAABBBounds(attribute, textTheme, aabbBounds) {
|
|
10122
10139
|
const {
|
|
@@ -12124,8 +12141,8 @@ class RichText extends Graphic {
|
|
|
12124
12141
|
clone() {
|
|
12125
12142
|
return new RichText(Object.assign({}, this.attribute));
|
|
12126
12143
|
}
|
|
12127
|
-
setStage(stage, layer
|
|
12128
|
-
super.setStage(stage, layer
|
|
12144
|
+
setStage(stage, layer) {
|
|
12145
|
+
super.setStage(stage, layer);
|
|
12129
12146
|
this.getFrameCache().icons.forEach(icon => {
|
|
12130
12147
|
icon.setStage(stage, layer);
|
|
12131
12148
|
});
|
|
@@ -12829,13 +12846,13 @@ class Group extends Graphic {
|
|
|
12829
12846
|
child.setStage(null, null);
|
|
12830
12847
|
}), this.addUpdateBoundTag();
|
|
12831
12848
|
}
|
|
12832
|
-
setStage(stage, layer
|
|
12849
|
+
setStage(stage, layer) {
|
|
12833
12850
|
var _a, _b, _c, _d, _e, _f;
|
|
12834
12851
|
const graphicService = null !== (_c = null !== (_a = null == stage ? void 0 : stage.graphicService) && void 0 !== _a ? _a : null === (_b = this.stage) || void 0 === _b ? void 0 : _b.graphicService) && void 0 !== _c ? _c : application.graphicService,
|
|
12835
12852
|
needsSharedStateTreeSync = this.hasSharedStateDefinitions() || this.sharedStateScope || (null === (_d = this.currentStates) || void 0 === _d ? void 0 : _d.length) || this.boundSharedStateScope || (null === (_e = this.registeredActiveScopes) || void 0 === _e ? void 0 : _e.size) || this.sharedStateDirty;
|
|
12836
|
-
if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
12853
|
+
if (this.stage !== stage) return this.stage = stage, this.layer = layer, needsSharedStateTreeSync && (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0)), this.setStageToShadowRoot(stage, layer), this._onSetStage && this._onSetStage(this, stage, layer), null === (_f = null == graphicService ? void 0 : graphicService.onSetStage) || void 0 === _f || _f.call(graphicService, this, stage), void this.notifyChildrenSharedStateTreeChanged();
|
|
12837
12854
|
const layerChanged = this.layer !== layer;
|
|
12838
|
-
layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0
|
|
12855
|
+
layerChanged && (this.layer = layer), needsSharedStateTreeSync ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!0), this.notifyChildrenSharedStateTreeChanged()) : layerChanged && this.notifyChildrenSharedStateTreeChanged();
|
|
12839
12856
|
}
|
|
12840
12857
|
addUpdatePositionTag() {
|
|
12841
12858
|
super.addUpdatePositionTag(), this.forEachChildren(g => {
|
|
@@ -12894,26 +12911,17 @@ class Group extends Graphic {
|
|
|
12894
12911
|
hasSharedStateDefinitions() {
|
|
12895
12912
|
return !!this._sharedStateDefinitions && Object.keys(this._sharedStateDefinitions).length > 0;
|
|
12896
12913
|
}
|
|
12897
|
-
|
|
12898
|
-
var _a;
|
|
12899
|
-
return this.sharedStateScope ? this.sharedStateScope : void 0 !== inheritedSharedStateScope ? inheritedSharedStateScope : null !== (_a = this.resolveBoundSharedStateScope()) && void 0 !== _a ? _a : null;
|
|
12900
|
-
}
|
|
12901
|
-
notifyChildrenSharedStateTreeChanged(inheritedSharedStateScope) {
|
|
12902
|
-
const childSharedStateScope = this.resolveChildSharedStateScope(inheritedSharedStateScope);
|
|
12914
|
+
notifyChildrenSharedStateTreeChanged() {
|
|
12903
12915
|
this.forEachChildren(item => {
|
|
12904
|
-
this.
|
|
12916
|
+
this.syncChildSharedStateTreeBinding(item);
|
|
12905
12917
|
});
|
|
12906
12918
|
}
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
"function" != typeof graphic.setStage || child.onParentSharedStateTreeChanged !== Graphic.prototype.onParentSharedStateTreeChanged && child.onParentSharedStateTreeChanged !== Group.prototype.onParentSharedStateTreeChanged || graphic.stage === this.stage && graphic.layer === this.layer ? child.onParentSharedStateTreeChanged(this.stage, this.layer, inheritedSharedStateScope) : graphic.setStage(this.stage, this.layer, inheritedSharedStateScope);
|
|
12910
|
-
}
|
|
12911
|
-
syncChildSharedStateTreeBinding(child, inheritedSharedStateScope) {
|
|
12912
|
-
void 0 === inheritedSharedStateScope && (inheritedSharedStateScope = this.resolveChildSharedStateScope()), this.setStageToChild(child, inheritedSharedStateScope);
|
|
12919
|
+
syncChildSharedStateTreeBinding(child) {
|
|
12920
|
+
child.onParentSharedStateTreeChanged(this.stage, this.layer);
|
|
12913
12921
|
}
|
|
12914
|
-
onParentSharedStateTreeChanged(stage, layer
|
|
12922
|
+
onParentSharedStateTreeChanged(stage, layer) {
|
|
12915
12923
|
var _a;
|
|
12916
|
-
this.stage === stage && this.layer === layer ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)
|
|
12924
|
+
this.stage === stage && this.layer === layer ? (this.ensureSharedStateScopeBound(), this.syncSharedStateScopeBindingOnTreeChange(!!(null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length)), this.notifyChildrenSharedStateTreeChanged()) : this.setStage(stage, layer);
|
|
12917
12925
|
}
|
|
12918
12926
|
}
|
|
12919
12927
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
@@ -12921,7 +12929,204 @@ function createGroup(attributes) {
|
|
|
12921
12929
|
return new Group(attributes);
|
|
12922
12930
|
}
|
|
12923
12931
|
|
|
12924
|
-
|
|
12932
|
+
function drawPolygon(path, points, x, y) {
|
|
12933
|
+
if (points && points.length) {
|
|
12934
|
+
path.moveTo(points[0].x + x, points[0].y + y);
|
|
12935
|
+
for (let i = 1; i < points.length; i++) path.lineTo(points[i].x + x, points[i].y + y);
|
|
12936
|
+
}
|
|
12937
|
+
}
|
|
12938
|
+
function drawRoundedPolygon(path, points, x, y, cornerRadius, closePath = !0) {
|
|
12939
|
+
var _a;
|
|
12940
|
+
const normalized = normalizePolygonPoints(points, cornerRadius, closePath);
|
|
12941
|
+
if (normalized) return void drawRoundedPolygon(path, normalized.points, x, y, normalized.cornerRadius, closePath);
|
|
12942
|
+
if (points.length < 3) return void drawPolygon(path, points, x, y);
|
|
12943
|
+
let startI = 0,
|
|
12944
|
+
endI = points.length - 1;
|
|
12945
|
+
closePath || (startI += 1, endI -= 1, path.moveTo(points[0].x + x, points[0].y + y));
|
|
12946
|
+
for (let i = startI; i <= endI; i++) {
|
|
12947
|
+
const p1 = points[0 === i ? endI : (i - 1) % points.length],
|
|
12948
|
+
angularPoint = points[i % points.length],
|
|
12949
|
+
p2 = points[(i + 1) % points.length],
|
|
12950
|
+
dx1 = angularPoint.x - p1.x,
|
|
12951
|
+
dy1 = angularPoint.y - p1.y,
|
|
12952
|
+
dx2 = angularPoint.x - p2.x,
|
|
12953
|
+
dy2 = angularPoint.y - p2.y,
|
|
12954
|
+
angle = (Math.atan2(dy1, dx1) - Math.atan2(dy2, dx2)) / 2,
|
|
12955
|
+
tan = Math.abs(Math.tan(angle));
|
|
12956
|
+
let radius = Array.isArray(cornerRadius) ? null !== (_a = cornerRadius[i % points.length]) && void 0 !== _a ? _a : 0 : cornerRadius,
|
|
12957
|
+
segment = radius / tan;
|
|
12958
|
+
const length1 = getLength(dx1, dy1),
|
|
12959
|
+
length2 = getLength(dx2, dy2),
|
|
12960
|
+
length = Math.min(length1, length2);
|
|
12961
|
+
segment > length && (segment = length, radius = length * tan);
|
|
12962
|
+
const p1Cross = getProportionPoint(angularPoint, segment, length1, dx1, dy1),
|
|
12963
|
+
p2Cross = getProportionPoint(angularPoint, segment, length2, dx2, dy2),
|
|
12964
|
+
dx = 2 * angularPoint.x - p1Cross.x - p2Cross.x,
|
|
12965
|
+
dy = 2 * angularPoint.y - p1Cross.y - p2Cross.y,
|
|
12966
|
+
L = getLength(dx, dy),
|
|
12967
|
+
circlePoint = getProportionPoint(angularPoint, getLength(segment, radius), L, dx, dy);
|
|
12968
|
+
let startAngle = Math.atan2(p1Cross.y - circlePoint.y, p1Cross.x - circlePoint.x);
|
|
12969
|
+
const endAngle = Math.atan2(p2Cross.y - circlePoint.y, p2Cross.x - circlePoint.x);
|
|
12970
|
+
let sweepAngle = endAngle - startAngle;
|
|
12971
|
+
sweepAngle < 0 && (startAngle = endAngle, sweepAngle = -sweepAngle), sweepAngle > Math.PI && (sweepAngle -= Math.PI), 0 === i ? path.moveTo(p1Cross.x + x, p1Cross.y + y) : path.lineTo(p1Cross.x + x, p1Cross.y + y), sweepAngle && path.arcTo(angularPoint.x + x, angularPoint.y + y, p2Cross.x + x, p2Cross.y + y, radius), path.lineTo(p2Cross.x + x, p2Cross.y + y);
|
|
12972
|
+
}
|
|
12973
|
+
closePath || path.lineTo(points[endI + 1].x + x, points[endI + 1].y + y);
|
|
12974
|
+
}
|
|
12975
|
+
function getLength(dx, dy) {
|
|
12976
|
+
return Math.sqrt(dx * dx + dy * dy);
|
|
12977
|
+
}
|
|
12978
|
+
function getProportionPoint(point, segment, length, dx, dy) {
|
|
12979
|
+
const factor = segment / length;
|
|
12980
|
+
return {
|
|
12981
|
+
x: point.x - dx * factor,
|
|
12982
|
+
y: point.y - dy * factor
|
|
12983
|
+
};
|
|
12984
|
+
}
|
|
12985
|
+
function normalizePolygonPoints(points, cornerRadius, closePath = !0) {
|
|
12986
|
+
var _a;
|
|
12987
|
+
let hasDuplicate = !1;
|
|
12988
|
+
for (let i = 1; i < points.length; i++) if (isSamePoint(points[i - 1], points[i])) {
|
|
12989
|
+
hasDuplicate = !0;
|
|
12990
|
+
break;
|
|
12991
|
+
}
|
|
12992
|
+
if (!hasDuplicate && closePath && points.length > 1 && isSamePoint(points[0], points[points.length - 1]) && (hasDuplicate = !0), !hasDuplicate) return null;
|
|
12993
|
+
const normalizedPoints = [],
|
|
12994
|
+
normalizedCornerRadius = Array.isArray(cornerRadius) ? [] : null;
|
|
12995
|
+
for (let i = 0; i < points.length; i++) normalizedPoints.length && isSamePoint(normalizedPoints[normalizedPoints.length - 1], points[i]) || (normalizedPoints.push(points[i]), null == normalizedCornerRadius || normalizedCornerRadius.push(null !== (_a = cornerRadius[i]) && void 0 !== _a ? _a : 0));
|
|
12996
|
+
return closePath && normalizedPoints.length > 1 && isSamePoint(normalizedPoints[0], normalizedPoints[normalizedPoints.length - 1]) && (normalizedPoints.pop(), null == normalizedCornerRadius || normalizedCornerRadius.pop()), {
|
|
12997
|
+
points: normalizedPoints,
|
|
12998
|
+
cornerRadius: null != normalizedCornerRadius ? normalizedCornerRadius : cornerRadius
|
|
12999
|
+
};
|
|
13000
|
+
}
|
|
13001
|
+
function isSamePoint(a, b) {
|
|
13002
|
+
return a.x === b.x && a.y === b.y;
|
|
13003
|
+
}
|
|
13004
|
+
function getPolygonWinding(points) {
|
|
13005
|
+
let signedArea = 0;
|
|
13006
|
+
for (let i = 0; i < points.length; i++) {
|
|
13007
|
+
const current = points[i],
|
|
13008
|
+
next = points[(i + 1) % points.length];
|
|
13009
|
+
signedArea += current.x * next.y - next.x * current.y;
|
|
13010
|
+
}
|
|
13011
|
+
return signedArea > 0 ? 1 : -1;
|
|
13012
|
+
}
|
|
13013
|
+
function offsetPolygonPoints(points, distance, closePath = !0) {
|
|
13014
|
+
var _a;
|
|
13015
|
+
const n = null !== (_a = null == points ? void 0 : points.length) && void 0 !== _a ? _a : 0;
|
|
13016
|
+
if (n < 2 || closePath && n < 3 || !distance) return points;
|
|
13017
|
+
const sign = getPolygonWinding(points),
|
|
13018
|
+
edgeCount = closePath ? n : n - 1,
|
|
13019
|
+
lines = [];
|
|
13020
|
+
for (let i = 0; i < edgeCount; i++) {
|
|
13021
|
+
const cur = points[i],
|
|
13022
|
+
next = points[(i + 1) % n],
|
|
13023
|
+
dx = next.x - cur.x,
|
|
13024
|
+
dy = next.y - cur.y,
|
|
13025
|
+
len = Math.sqrt(dx * dx + dy * dy);
|
|
13026
|
+
if (!len) {
|
|
13027
|
+
lines.push(null);
|
|
13028
|
+
continue;
|
|
13029
|
+
}
|
|
13030
|
+
const offsetX = sign * dy * distance / len,
|
|
13031
|
+
offsetY = -sign * dx * distance / len;
|
|
13032
|
+
lines.push({
|
|
13033
|
+
x: cur.x + offsetX,
|
|
13034
|
+
y: cur.y + offsetY,
|
|
13035
|
+
dx: dx,
|
|
13036
|
+
dy: dy,
|
|
13037
|
+
len: len,
|
|
13038
|
+
offsetX: offsetX,
|
|
13039
|
+
offsetY: offsetY
|
|
13040
|
+
});
|
|
13041
|
+
}
|
|
13042
|
+
const prevLines = new Array(n);
|
|
13043
|
+
let prevLine = null;
|
|
13044
|
+
if (closePath) for (let i = edgeCount - 1; i >= 0; i--) if (lines[i]) {
|
|
13045
|
+
prevLine = lines[i];
|
|
13046
|
+
break;
|
|
13047
|
+
}
|
|
13048
|
+
for (let i = 0; i < n; i++) prevLines[i] = prevLine, i < edgeCount && lines[i] && (prevLine = lines[i]);
|
|
13049
|
+
const nextLines = new Array(n);
|
|
13050
|
+
let nextLine = null;
|
|
13051
|
+
if (closePath) for (let count = 0; count < edgeCount; count++) {
|
|
13052
|
+
const line = lines[(n - 1 + count) % edgeCount];
|
|
13053
|
+
if (line) {
|
|
13054
|
+
nextLine = line;
|
|
13055
|
+
break;
|
|
13056
|
+
}
|
|
13057
|
+
}
|
|
13058
|
+
for (let i = n - 1; i >= 0; i--) i < edgeCount && lines[i] && (nextLine = lines[i]), nextLines[i] = nextLine;
|
|
13059
|
+
const offsetPointByLine = (point, line) => ({
|
|
13060
|
+
x: point.x + line.offsetX,
|
|
13061
|
+
y: point.y + line.offsetY
|
|
13062
|
+
}),
|
|
13063
|
+
result = [];
|
|
13064
|
+
for (let i = 0; i < n; i++) {
|
|
13065
|
+
const prev = prevLines[i],
|
|
13066
|
+
cur = nextLines[i],
|
|
13067
|
+
line = prev || cur;
|
|
13068
|
+
if (!line) {
|
|
13069
|
+
result.push(points[i]);
|
|
13070
|
+
continue;
|
|
13071
|
+
}
|
|
13072
|
+
if (!prev || !cur) {
|
|
13073
|
+
result.push(offsetPointByLine(points[i], line));
|
|
13074
|
+
continue;
|
|
13075
|
+
}
|
|
13076
|
+
const denominator = prev.dx * cur.dy - prev.dy * cur.dx;
|
|
13077
|
+
if (Math.abs(denominator) <= 1e-12 * prev.len * cur.len) {
|
|
13078
|
+
result.push(offsetPointByLine(points[i], cur));
|
|
13079
|
+
continue;
|
|
13080
|
+
}
|
|
13081
|
+
const t = ((cur.x - prev.x) * cur.dy - (cur.y - prev.y) * cur.dx) / denominator,
|
|
13082
|
+
point = {
|
|
13083
|
+
x: prev.x + prev.dx * t,
|
|
13084
|
+
y: prev.y + prev.dy * t
|
|
13085
|
+
};
|
|
13086
|
+
result.push(Number.isFinite(point.x) && Number.isFinite(point.y) ? point : offsetPointByLine(points[i], cur));
|
|
13087
|
+
}
|
|
13088
|
+
return result;
|
|
13089
|
+
}
|
|
13090
|
+
|
|
13091
|
+
const getBoundsScaleMatrix = polygon => {
|
|
13092
|
+
var _a;
|
|
13093
|
+
const globalMatrix = polygon.globalTransMatrix,
|
|
13094
|
+
viewBoxMatrix = null === (_a = polygon.stage) || void 0 === _a ? void 0 : _a.window.getViewBoxTransform();
|
|
13095
|
+
return viewBoxMatrix ? {
|
|
13096
|
+
a: viewBoxMatrix.a * globalMatrix.a + viewBoxMatrix.c * globalMatrix.b,
|
|
13097
|
+
b: viewBoxMatrix.b * globalMatrix.a + viewBoxMatrix.d * globalMatrix.b,
|
|
13098
|
+
c: viewBoxMatrix.a * globalMatrix.c + viewBoxMatrix.c * globalMatrix.d,
|
|
13099
|
+
d: viewBoxMatrix.b * globalMatrix.c + viewBoxMatrix.d * globalMatrix.d
|
|
13100
|
+
} : globalMatrix;
|
|
13101
|
+
};
|
|
13102
|
+
const getPolygonBoundsScale = polygon => getScaledStrokeWithMatrix(getBoundsScaleMatrix(polygon), 1, 1);
|
|
13103
|
+
const updateBoundsOfPolygonOuterBorder = (attribute, polygonTheme, aabbBounds, polygon) => {
|
|
13104
|
+
const {
|
|
13105
|
+
outerBorder: outerBorder,
|
|
13106
|
+
points = polygonTheme.points,
|
|
13107
|
+
closePath = polygonTheme.closePath,
|
|
13108
|
+
shadowBlur = polygonTheme.shadowBlur,
|
|
13109
|
+
keepStrokeScale = polygonTheme.keepStrokeScale
|
|
13110
|
+
} = attribute;
|
|
13111
|
+
if (outerBorder && !1 !== outerBorder.visible) {
|
|
13112
|
+
const defaultOuterBorder = polygonTheme.outerBorder,
|
|
13113
|
+
{
|
|
13114
|
+
distance = defaultOuterBorder.distance,
|
|
13115
|
+
lineWidth = defaultOuterBorder.lineWidth,
|
|
13116
|
+
lineJoin = defaultOuterBorder.lineJoin,
|
|
13117
|
+
strokeBoundsBuffer = defaultOuterBorder.strokeBoundsBuffer
|
|
13118
|
+
} = outerBorder,
|
|
13119
|
+
boundsScale = getPolygonBoundsScale(polygon);
|
|
13120
|
+
let scaledDistance = distance;
|
|
13121
|
+
keepStrokeScale || (scaledDistance *= boundsScale), offsetPolygonPoints(points, scaledDistance, closePath).forEach(point => {
|
|
13122
|
+
aabbBounds.add(point.x, point.y);
|
|
13123
|
+
});
|
|
13124
|
+
boundStroke(aabbBounds, (shadowBlur * boundsScale + lineWidth * (keepStrokeScale ? 1 : boundsScale)) / 2, "miter" === lineJoin, strokeBoundsBuffer);
|
|
13125
|
+
}
|
|
13126
|
+
return aabbBounds;
|
|
13127
|
+
};
|
|
13128
|
+
|
|
13129
|
+
const POLYGON_UPDATE_TAG_KEY = ["points", "cornerRadius", "outerBorder", "keepStrokeScale", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
12925
13130
|
class Polygon extends Graphic {
|
|
12926
13131
|
constructor(params) {
|
|
12927
13132
|
super(params), this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
@@ -12938,6 +13143,16 @@ class Polygon extends Graphic {
|
|
|
12938
13143
|
getGraphicTheme() {
|
|
12939
13144
|
return getTheme(this).polygon;
|
|
12940
13145
|
}
|
|
13146
|
+
tryUpdateAABBBounds() {
|
|
13147
|
+
const {
|
|
13148
|
+
outerBorder: outerBorder
|
|
13149
|
+
} = this.attribute;
|
|
13150
|
+
if (outerBorder && !1 !== outerBorder.visible) {
|
|
13151
|
+
const boundsScale = getPolygonBoundsScale(this);
|
|
13152
|
+
boundsScale !== this._outerBorderBoundsScale && (this._outerBorderBoundsScale = boundsScale, this.addUpdateBoundTag());
|
|
13153
|
+
} else this._outerBorderBoundsScale = void 0;
|
|
13154
|
+
return super.tryUpdateAABBBounds();
|
|
13155
|
+
}
|
|
12941
13156
|
updateAABBBounds(attribute, polygonTheme, aabbBounds) {
|
|
12942
13157
|
this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
|
|
12943
13158
|
const {
|
|
@@ -12951,7 +13166,7 @@ class Polygon extends Graphic {
|
|
|
12951
13166
|
} = attribute;
|
|
12952
13167
|
return points.forEach(p => {
|
|
12953
13168
|
aabbBounds.add(p.x, p.y);
|
|
12954
|
-
}), aabbBounds;
|
|
13169
|
+
}), updateBoundsOfPolygonOuterBorder(attribute, polygonTheme, aabbBounds, this), aabbBounds;
|
|
12955
13170
|
}
|
|
12956
13171
|
_interpolate(key, ratio, lastStepVal, nextStepVal, nextAttributes) {
|
|
12957
13172
|
"points" === key && (nextAttributes.points = pointsInterpolation(lastStepVal, nextStepVal, ratio));
|
|
@@ -16933,22 +17148,26 @@ class DefaultRectRenderContribution {
|
|
|
16933
17148
|
width: width,
|
|
16934
17149
|
height: height
|
|
16935
17150
|
} = rect.attribute;
|
|
16936
|
-
width = (null != width ? width : x1 -
|
|
16937
|
-
const
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
17151
|
+
width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0;
|
|
17152
|
+
const borderX = width < 0 ? x + width : x,
|
|
17153
|
+
borderY = height < 0 ? y + height : y,
|
|
17154
|
+
borderWidth = width < 0 ? -width : width,
|
|
17155
|
+
borderHeight = height < 0 ? -height : height,
|
|
17156
|
+
renderBorder = (borderStyle, key) => {
|
|
17157
|
+
const doStroke = !(!borderStyle || !borderStyle.stroke),
|
|
17158
|
+
sign = "outerBorder" === key ? -1 : 1,
|
|
17159
|
+
{
|
|
17160
|
+
distance = rectAttribute[key].distance
|
|
17161
|
+
} = borderStyle,
|
|
17162
|
+
d = keepStrokeScale ? distance : getScaledStroke(context, distance, context.dpr),
|
|
17163
|
+
nextX = borderX + sign * d,
|
|
17164
|
+
nextY = borderY + sign * d,
|
|
17165
|
+
dw = 2 * d;
|
|
17166
|
+
if (0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) ? (context.beginPath(), context.rect(nextX, nextY, borderWidth - sign * dw, borderHeight - sign * dw)) : (context.beginPath(), createRectPath(context, nextX, nextY, borderWidth - sign * dw, borderHeight - sign * dw, cornerRadius, "bevel" !== cornerType)), context.setShadowBlendStyle && context.setShadowBlendStyle(rect, rect.attribute, rectAttribute), strokeCb) strokeCb(context, borderStyle, rectAttribute[key]);else if (doStroke) {
|
|
17167
|
+
const lastOpacity = rectAttribute[key].opacity;
|
|
17168
|
+
rectAttribute[key].opacity = opacity, context.setStrokeStyle(rect, borderStyle, (originX - x) / scaleX, (originY - y) / scaleY, rectAttribute[key]), rectAttribute[key].opacity = lastOpacity, context.stroke();
|
|
17169
|
+
}
|
|
17170
|
+
};
|
|
16952
17171
|
doOuterBorder && renderBorder(outerBorder, "outerBorder"), doInnerBorder && renderBorder(innerBorder, "innerBorder");
|
|
16953
17172
|
}
|
|
16954
17173
|
}
|
|
@@ -19230,64 +19449,69 @@ class DefaultCanvasTextRender extends BaseRender {
|
|
|
19230
19449
|
|
|
19231
19450
|
class AbstractGraphicRender {}
|
|
19232
19451
|
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19452
|
+
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
19453
|
+
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
19454
|
+
class DefaultPolygonRenderContribution {
|
|
19455
|
+
constructor() {
|
|
19456
|
+
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
19237
19457
|
}
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
const
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19458
|
+
drawShape(polygon, context, x, y, doFill, doStroke, fVisible, sVisible, polygonAttribute, drawContext, fillCb, strokeCb) {
|
|
19459
|
+
const {
|
|
19460
|
+
outerBorder: outerBorder,
|
|
19461
|
+
innerBorder: innerBorder
|
|
19462
|
+
} = polygon.attribute,
|
|
19463
|
+
doOuterBorder = outerBorder && !1 !== outerBorder.visible,
|
|
19464
|
+
doInnerBorder = innerBorder && !1 !== innerBorder.visible;
|
|
19465
|
+
if (!doOuterBorder && !doInnerBorder) return;
|
|
19466
|
+
const {
|
|
19467
|
+
points = polygonAttribute.points,
|
|
19468
|
+
cornerRadius = polygonAttribute.cornerRadius,
|
|
19469
|
+
opacity = polygonAttribute.opacity,
|
|
19470
|
+
x: originX = polygonAttribute.x,
|
|
19471
|
+
y: originY = polygonAttribute.y,
|
|
19472
|
+
scaleX = polygonAttribute.scaleX,
|
|
19473
|
+
scaleY = polygonAttribute.scaleY,
|
|
19474
|
+
keepStrokeScale = polygonAttribute.keepStrokeScale,
|
|
19475
|
+
closePath = polygonAttribute.closePath
|
|
19476
|
+
} = polygon.attribute,
|
|
19477
|
+
renderBorder = (borderStyle, key) => {
|
|
19478
|
+
var _a, _b;
|
|
19479
|
+
const doBorderStroke = !!borderStyle.stroke,
|
|
19480
|
+
distanceDirection = "outerBorder" === key ? 1 : -1,
|
|
19481
|
+
{
|
|
19482
|
+
distance = polygonAttribute[key].distance
|
|
19483
|
+
} = borderStyle,
|
|
19484
|
+
borderDistance = distanceDirection * (keepStrokeScale ? distance : getScaledStroke(context, distance, context.dpr)),
|
|
19485
|
+
normalized = normalizePolygonPoints(points, cornerRadius, closePath),
|
|
19486
|
+
normalizedPoints = null !== (_a = null == normalized ? void 0 : normalized.points) && void 0 !== _a ? _a : points,
|
|
19487
|
+
normalizedCornerRadius = null !== (_b = null == normalized ? void 0 : normalized.cornerRadius) && void 0 !== _b ? _b : cornerRadius,
|
|
19488
|
+
borderPoints = offsetPolygonPoints(normalizedPoints, borderDistance, closePath),
|
|
19489
|
+
winding = getPolygonWinding(normalizedPoints),
|
|
19490
|
+
borderCornerRadius = normalizedPoints.map((point, i) => {
|
|
19491
|
+
var _a;
|
|
19492
|
+
const radius = isArray$1(normalizedCornerRadius) ? null !== (_a = normalizedCornerRadius[i]) && void 0 !== _a ? _a : 0 : normalizedCornerRadius || 0;
|
|
19493
|
+
if (!closePath && (0 === i || i === normalizedPoints.length - 1) || normalizedPoints.length < 3) return radius;
|
|
19494
|
+
const prev = normalizedPoints[(i - 1 + normalizedPoints.length) % normalizedPoints.length],
|
|
19495
|
+
next = normalizedPoints[(i + 1) % normalizedPoints.length],
|
|
19496
|
+
cornerDirection = ((point.x - prev.x) * (next.y - point.y) - (point.y - prev.y) * (next.x - point.x)) * winding < 0 ? -1 : 1;
|
|
19497
|
+
return Math.max(0, radius + borderDistance * cornerDirection);
|
|
19498
|
+
}),
|
|
19499
|
+
noCorner = 0 === borderCornerRadius.length || borderCornerRadius.every(r => 0 === r);
|
|
19500
|
+
if (context.beginPath(), noCorner ? drawPolygon(context.camera ? context : context.nativeContext, borderPoints, x, y) : drawRoundedPolygon(context.camera ? context : context.nativeContext, borderPoints, x, y, borderCornerRadius, closePath), closePath && context.closePath(), context.setShadowBlendStyle && context.setShadowBlendStyle(polygon, polygon.attribute, polygonAttribute), strokeCb) strokeCb(context, borderStyle, polygonAttribute[key]);else if (doBorderStroke) {
|
|
19501
|
+
const lastOpacity = polygonAttribute[key].opacity,
|
|
19502
|
+
borderStyleWithStrokeScale = borderStyle,
|
|
19503
|
+
lastKeepStrokeScale = borderStyleWithStrokeScale.keepStrokeScale;
|
|
19504
|
+
polygonAttribute[key].opacity = opacity, borderStyleWithStrokeScale.keepStrokeScale = keepStrokeScale, context.setStrokeStyle(polygon, borderStyleWithStrokeScale, (originX - x) / scaleX, (originY - y) / scaleY, polygonAttribute[key]), polygonAttribute[key].opacity = lastOpacity, void 0 === lastKeepStrokeScale ? delete borderStyleWithStrokeScale.keepStrokeScale : borderStyleWithStrokeScale.keepStrokeScale = lastKeepStrokeScale, context.stroke();
|
|
19505
|
+
}
|
|
19506
|
+
};
|
|
19507
|
+
doOuterBorder && renderBorder(outerBorder, "outerBorder"), doInnerBorder && renderBorder(innerBorder, "innerBorder");
|
|
19271
19508
|
}
|
|
19272
|
-
closePath || path.lineTo(points[endI + 1].x + x, points[endI + 1].y + y);
|
|
19273
|
-
}
|
|
19274
|
-
function getLength(dx, dy) {
|
|
19275
|
-
return Math.sqrt(dx * dx + dy * dy);
|
|
19276
|
-
}
|
|
19277
|
-
function getProportionPoint(point, segment, length, dx, dy) {
|
|
19278
|
-
const factor = segment / length;
|
|
19279
|
-
return {
|
|
19280
|
-
x: point.x - dx * factor,
|
|
19281
|
-
y: point.y - dy * factor
|
|
19282
|
-
};
|
|
19283
19509
|
}
|
|
19284
|
-
|
|
19285
|
-
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
19286
|
-
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
19510
|
+
const defaultPolygonRenderContribution = new DefaultPolygonRenderContribution();
|
|
19287
19511
|
|
|
19288
19512
|
class DefaultCanvasPolygonRender extends BaseRender {
|
|
19289
19513
|
constructor(graphicRenderContributions) {
|
|
19290
|
-
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
19514
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonRenderContribution, defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
19291
19515
|
}
|
|
19292
19516
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
19293
19517
|
const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -23328,6 +23552,7 @@ var VRenderCore = /*#__PURE__*/Object.freeze({
|
|
|
23328
23552
|
getRuntimeInstallerGlobal: getRuntimeInstallerGlobal,
|
|
23329
23553
|
getRuntimeInstallerState: getRuntimeInstallerState,
|
|
23330
23554
|
getScaledStroke: getScaledStroke,
|
|
23555
|
+
getScaledStrokeWithMatrix: getScaledStrokeWithMatrix,
|
|
23331
23556
|
getTextBounds: getTextBounds,
|
|
23332
23557
|
getTheme: getTheme,
|
|
23333
23558
|
getThemeFromGroup: getThemeFromGroup,
|
|
@@ -28837,6 +29062,8 @@ function getLynxRuntime(params) {
|
|
|
28837
29062
|
var _a, _b;
|
|
28838
29063
|
return null !== (_b = null !== (_a = null == params ? void 0 : params.lynx) && void 0 !== _a ? _a : null == params ? void 0 : params.runtime) && void 0 !== _b ? _b : getGlobalLynxRuntime();
|
|
28839
29064
|
}
|
|
29065
|
+
const requestAnimationFrameBasedSTO = callback => rafBasedSto.call(callback),
|
|
29066
|
+
cancelAnimationFrameBasedSTO = handle => rafBasedSto.clear(handle);
|
|
28840
29067
|
function getLynxPixelRatio(params, runtime) {
|
|
28841
29068
|
var _a, _b, _c, _d, _e;
|
|
28842
29069
|
return null !== (_e = null !== (_d = null !== (_a = null == params ? void 0 : params.pixelRatio) && void 0 !== _a ? _a : null === (_c = null === (_b = null == runtime ? void 0 : runtime.getSystemInfoSync) || void 0 === _b ? void 0 : _b.call(runtime)) || void 0 === _c ? void 0 : _c.pixelRatio) && void 0 !== _d ? _d : getGlobalSystemPixelRatio()) && void 0 !== _e ? _e : 1;
|
|
@@ -28908,7 +29135,7 @@ function createImageElement(src, isSvg = !1, runtime = getGlobalLynxRuntime()) {
|
|
|
28908
29135
|
}
|
|
28909
29136
|
class LynxEnvContribution extends BaseEnvContribution {
|
|
28910
29137
|
constructor() {
|
|
28911
|
-
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
|
|
29138
|
+
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO, this.supportsTouchEvents = !0;
|
|
28912
29139
|
try {
|
|
28913
29140
|
this.supportsPointerEvents = !!globalThis.PointerEvent, this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
28914
29141
|
} catch (err) {
|
|
@@ -28917,7 +29144,8 @@ class LynxEnvContribution extends BaseEnvContribution {
|
|
|
28917
29144
|
this.applyStyles = !0;
|
|
28918
29145
|
}
|
|
28919
29146
|
configure(service, params = {}) {
|
|
28920
|
-
|
|
29147
|
+
var _a, _b;
|
|
29148
|
+
service.env === this.type && (service.setActiveEnvContribution(this), this.lynxEnvParams = params, this.lynxRuntime = getLynxRuntime(params), "function" == typeof (null === (_a = this.lynxRuntime) || void 0 === _a ? void 0 : _a.requestAnimationFrame) && "function" == typeof (null === (_b = this.lynxRuntime) || void 0 === _b ? void 0 : _b.cancelAnimationFrame) ? (this.requestAnimationFrame = this.lynxRuntime.requestAnimationFrame.bind(this.lynxRuntime), this.cancelAnimationFrame = this.lynxRuntime.cancelAnimationFrame.bind(this.lynxRuntime)) : (this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO));
|
|
28921
29149
|
}
|
|
28922
29150
|
getDynamicCanvasCount() {
|
|
28923
29151
|
return this.freeCanvasList.length;
|
|
@@ -28969,14 +29197,10 @@ class LynxEnvContribution extends BaseEnvContribution {
|
|
|
28969
29197
|
return getLynxPixelRatio(void 0, this.lynxRuntime);
|
|
28970
29198
|
}
|
|
28971
29199
|
getRequestAnimationFrame() {
|
|
28972
|
-
return
|
|
28973
|
-
return rafBasedSto.call(callback);
|
|
28974
|
-
};
|
|
29200
|
+
return this.requestAnimationFrame;
|
|
28975
29201
|
}
|
|
28976
29202
|
getCancelAnimationFrame() {
|
|
28977
|
-
return
|
|
28978
|
-
rafBasedSto.clear(h);
|
|
28979
|
-
};
|
|
29203
|
+
return this.cancelAnimationFrame;
|
|
28980
29204
|
}
|
|
28981
29205
|
mapToCanvasPoint(event) {
|
|
28982
29206
|
var _a;
|
|
@@ -49965,7 +50189,7 @@ const DEFAULT_STATES = {
|
|
|
49965
50189
|
loadDiscreteLegendComponent();
|
|
49966
50190
|
class DiscreteLegend extends LegendBase {
|
|
49967
50191
|
constructor(attributes, options) {
|
|
49968
|
-
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, DiscreteLegend.defaultAttributes, attributes)), this.name = "discreteLegend", this._itemsContainer = null, this._itemHeightByUser = void 0, this._itemHeight = 0, this._itemMaxWidth = 0, this._contentMaxHeight = 0, this.
|
|
50192
|
+
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, DiscreteLegend.defaultAttributes, attributes)), this.name = "discreteLegend", this._itemsContainer = null, this._itemHeightByUser = void 0, this._itemHeight = 0, this._itemMaxWidth = 0, this._contentMaxHeight = 0, this._onHover = e => {
|
|
49969
50193
|
const target = e.target;
|
|
49970
50194
|
if (target && target.name && target.name.startsWith(LEGEND_ELEMENT_NAME.item)) {
|
|
49971
50195
|
const legendItem = target.delegate;
|
|
@@ -50013,7 +50237,7 @@ class DiscreteLegend extends LegendBase {
|
|
|
50013
50237
|
};
|
|
50014
50238
|
}
|
|
50015
50239
|
render() {
|
|
50016
|
-
|
|
50240
|
+
super.render(), this._lastActiveItem = null;
|
|
50017
50241
|
}
|
|
50018
50242
|
setSelected(selectedData) {
|
|
50019
50243
|
var _a;
|
|
@@ -50193,7 +50417,7 @@ class DiscreteLegend extends LegendBase {
|
|
|
50193
50417
|
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = graphicCreator.group(Object.assign({
|
|
50194
50418
|
x: 0,
|
|
50195
50419
|
y: 0
|
|
50196
|
-
}, backgroundStyle.style)), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup, backgroundStyle.state
|
|
50420
|
+
}, backgroundStyle.style)), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup, backgroundStyle.state)), itemGroup.id = `${null != id ? id : label}-${index}`, itemGroup.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected);
|
|
50197
50421
|
const innerGroup = graphicCreator.group({
|
|
50198
50422
|
x: 0,
|
|
50199
50423
|
y: 0,
|
|
@@ -50216,7 +50440,7 @@ class DiscreteLegend extends LegendBase {
|
|
|
50216
50440
|
Object.keys(shapeStyle.state || {}).forEach(key => {
|
|
50217
50441
|
const color = shapeStyle.state[key].fill || shapeStyle.state[key].stroke;
|
|
50218
50442
|
shape.fill && isNil$1(shapeStyle.state[key].fill) && color && (shapeStyle.state[key].fill = color), shape.stroke && isNil$1(shapeStyle.state[key].stroke) && color && (shapeStyle.state[key].stroke = color);
|
|
50219
|
-
}), this._appendDataToShape(itemShape, LEGEND_ELEMENT_NAME.itemShape, item, itemGroup, shapeStyle.state
|
|
50443
|
+
}), this._appendDataToShape(itemShape, LEGEND_ELEMENT_NAME.itemShape, item, itemGroup, shapeStyle.state), itemShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(itemShape);
|
|
50220
50444
|
}
|
|
50221
50445
|
let focusSpace = 0;
|
|
50222
50446
|
if (focus) {
|
|
@@ -50243,7 +50467,7 @@ class DiscreteLegend extends LegendBase {
|
|
|
50243
50467
|
_originText: labelAttr.formatMethod ? label : void 0
|
|
50244
50468
|
}),
|
|
50245
50469
|
labelShape = createTextGraphicByType(labelAttributes);
|
|
50246
|
-
this._appendDataToShape(labelShape, LEGEND_ELEMENT_NAME.itemLabel, item, itemGroup, labelStyle.state
|
|
50470
|
+
this._appendDataToShape(labelShape, LEGEND_ELEMENT_NAME.itemLabel, item, itemGroup, labelStyle.state), labelShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(labelShape);
|
|
50247
50471
|
const labelSpace = get$1(labelAttr, "space", DEFAULT_LABEL_SPACE);
|
|
50248
50472
|
if (isValid$1(value)) {
|
|
50249
50473
|
const valueSpace = get$1(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
|
|
@@ -50259,7 +50483,7 @@ class DiscreteLegend extends LegendBase {
|
|
|
50259
50483
|
_originText: valueAttr.formatMethod ? value : void 0
|
|
50260
50484
|
}),
|
|
50261
50485
|
valueShape = createTextGraphicByType(valueAttributes);
|
|
50262
|
-
if (this._appendDataToShape(valueShape, LEGEND_ELEMENT_NAME.itemValue, item, itemGroup, valueStyle.state
|
|
50486
|
+
if (this._appendDataToShape(valueShape, LEGEND_ELEMENT_NAME.itemValue, item, itemGroup, valueStyle.state), valueShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), this._itemWidthByUser) {
|
|
50263
50487
|
const layoutWidth = this._itemWidthByUser - parsedPadding[1] - parsedPadding[3] - shapeSize - shapeSpace - labelSpace - focusSpace - valueSpace;
|
|
50264
50488
|
this._autoEllipsis(autoEllipsisStrategy, layoutWidth, labelShape, valueShape), valueAttr.alignRight ? valueShape.setAttributes({
|
|
50265
50489
|
textAlign: "right",
|
|
@@ -50689,17 +50913,8 @@ class DiscreteLegend extends LegendBase {
|
|
|
50689
50913
|
item.hasState(LegendStateValue.selected) && selectedData.push(item.data);
|
|
50690
50914
|
}), selectedData;
|
|
50691
50915
|
}
|
|
50692
|
-
_appendDataToShape(shape, name, data, delegateShape, states
|
|
50693
|
-
|
|
50694
|
-
const source = null != states ? states : DEFAULT_STATES,
|
|
50695
|
-
cached = this._stateDefinitionsCache.get(source);
|
|
50696
|
-
if (cached) return shape.states = cached.definitions, void shape.setStateDefinitionsWithCompiled(cached.definitions, cached.compiledDefinitions);
|
|
50697
|
-
const definitions = states ? merge({}, DEFAULT_STATES, states) : DEFAULT_STATES,
|
|
50698
|
-
entry = {
|
|
50699
|
-
definitions: definitions,
|
|
50700
|
-
compiledDefinitions: new StateDefinitionCompiler().compile(definitions)
|
|
50701
|
-
};
|
|
50702
|
-
this._stateDefinitionsCache.set(source, entry), shape.states = entry.definitions, shape.setStateDefinitionsWithCompiled(entry.definitions, entry.compiledDefinitions);
|
|
50916
|
+
_appendDataToShape(shape, name, data, delegateShape, states = {}) {
|
|
50917
|
+
shape.name = name, shape.data = data, shape.delegate = delegateShape, shape.states = merge({}, DEFAULT_STATES, states);
|
|
50703
50918
|
}
|
|
50704
50919
|
_dispatchLegendEvent(eventName, legendItem, event) {
|
|
50705
50920
|
const currentSelectedItems = this._getSelectedLegends();
|
|
@@ -50716,17 +50931,12 @@ class DiscreteLegend extends LegendBase {
|
|
|
50716
50931
|
}
|
|
50717
50932
|
_handleStyle(config, item, isSelected, index, items) {
|
|
50718
50933
|
const newConfig = {};
|
|
50719
|
-
|
|
50720
|
-
|
|
50721
|
-
|
|
50722
|
-
newConfig.reuseStateDefinitions = !hasStateFunction, hasStateFunction ? (newConfig.state = {}, stateKeys.forEach(key => {
|
|
50723
|
-
config.state[key] && (newConfig.state[key] = isFunction$1(config.state[key]) ? config.state[key](item, isSelected, index, items) : config.state[key]);
|
|
50724
|
-
})) : newConfig.state = config.state;
|
|
50725
|
-
}
|
|
50726
|
-
return newConfig;
|
|
50934
|
+
return config.style && (isFunction$1(config.style) ? newConfig.style = config.style(item, isSelected, index, items) : newConfig.style = config.style), config.state && (newConfig.state = {}, Object.keys(config.state).forEach(key => {
|
|
50935
|
+
config.state[key] && (isFunction$1(config.state[key]) ? newConfig.state[key] = config.state[key](item, isSelected, index, items) : newConfig.state[key] = config.state[key]);
|
|
50936
|
+
})), newConfig;
|
|
50727
50937
|
}
|
|
50728
50938
|
release() {
|
|
50729
|
-
|
|
50939
|
+
super.release(), this.removeAllEventListeners();
|
|
50730
50940
|
}
|
|
50731
50941
|
}
|
|
50732
50942
|
DiscreteLegend.defaultAttributes = {
|
|
@@ -55608,6 +55818,6 @@ function createStage(params) {
|
|
|
55608
55818
|
return resolveLegacyApp().createStage(params);
|
|
55609
55819
|
}
|
|
55610
55820
|
|
|
55611
|
-
const version = "1.1.6
|
|
55821
|
+
const version = "1.1.6";
|
|
55612
55822
|
|
|
55613
|
-
export { AComponentAnimate, ACustomAnimate, APPLICATION_STATE_SYMBOL, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AStageAnimate, AXIS_ELEMENT_NAME, AbstractComponent, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, AppContext, Application, Arc, Arc3d, Arc3dRender, ArcInfo, ArcLabel, ArcRender, ArcRenderContribution, ArcSegment, Area, AreaRender, AreaRenderContribution, AttributeUpdateType, AutoEnablePlugins, AxisStateValue, Base3dRender, BaseCanvas, BaseEnvContribution, BasePlayer, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEntry, BrowserEnvContribution, Brush, CIRCLE_NUMBER_TYPE, CONTRIBUTION_STORE_STATE_SYMBOL, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CheckBox, Circle, CircleAxis, CircleAxisGrid, CircleCrosshair, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorContinuousLegend, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Context2dFactory, ContinuousPlayer, ContributionProvider, ContributionRegistry, ContributionStore, CubicBezierCurve, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TEXT_FONT_FAMILY$1 as DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArc3DRender, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasPyramid3dRender, DefaultCanvasRect3dRender, 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, DirectionEnum, DirectionalLight, DiscreteLegend, DiscretePlayer, Dissolve, Distortion, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EmptyTip, EnvContribution, EventManager, EventSystem, EventTarget, FACTORY_STATE_SYMBOL, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_CLASS_SYMBOL, GRAPHIC_REGISTRY_SYMBOL, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, GaussianBlur, Generator, Gesture, GifImage, Glitch, GlobalPickerService, Glyph, GlyphRender, GradientParser, Graphic, GraphicCreator$1 as GraphicCreator, GraphicFactory, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Grayscale, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupTransition, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IDataZoomEvent, IDataZoomInteractiveEvent, IMAGE_NUMBER_TYPE, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, Indicator, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LEGEND_ELEMENT_NAME, LINE_NUMBER_TYPE, LabelBase, LabelItemAppear, LabelItemDisappear, Layer, LayerFactory, LayerService, LegendEvent, LegendStateValue, Line$1 as Line, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LineRender, Linear, LinearClosed, LinkPath, Lottie, ManualTicker, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathRichTextPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MiniappEntry, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, NodeEntry, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Pager, Particle, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerRegistry, PickerService, Pixelation, PlayerEventEnum, PluginRegistry, PluginService, Polygon, PolygonCrosshair, PolygonRender, PolygonRenderContribution, PolygonSectorCrosshair, PopTip, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RUNTIME_INSTALLER_STATE_SYMBOL, Radio, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectCrosshair, RectLabel, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, RendererRegistry, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, RotateIn, RotateOut, SLIDER_ELEMENT_NAME, 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, ScrollBar, SectorCrosshair, SegContext, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SizeContinuousLegend, SlideIn, SlideOut, SlideOutRichText, SlideRichText, Slider, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StageFactory, Star, StarRender, StarRenderContribution, State, StateDefinitionCompiler, StateEngine, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StoryLabelItem, StreamLight, StrokeIn, StrokeOut, Switch, Symbol$1 as Symbol, SymbolLabel, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TableSeriesNumber, Tag, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, Timeline, Title, Tooltip, TopZIndex, TransformUtil, Update, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VTag, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WeatherBox, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, acquireSharedVRenderApp, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alignTextInLine, alternatingWave, angle, angleLabelOrientAttribute, angleTo, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindArc3dCanvasPickerContribution, bindArc3dRenderModule, bindArcCanvasPickerContribution, bindArcMathPickerContribution, bindArcRenderModule, bindAreaCanvasPickerContribution, bindAreaMathPickerContribution, bindAreaRenderModule, bindBrowserEnv, bindCircleCanvasPickerContribution, bindCircleMathPickerContribution, bindCircleRenderModule, bindContributionProvider, bindContributionProviderNoSingletonScope, bindFeishuEnv, bindGifImageCanvasPickerContribution, bindGifImageRenderContribution, bindGlyphCanvasPickerContribution, bindGlyphMathPickerContribution, bindGlyphRenderModule, bindHarmonyEnv, bindImageCanvasPickerContribution, bindImageMathPickerContribution, bindImageRenderModule, bindLineCanvasPickerContribution, bindLineMathPickerContribution, bindLineRenderModule, bindLottieCanvasPickerContribution, bindLottieRenderContribution, bindLynxEnv, bindMathPicker, bindNodeEnv, bindPathCanvasPickerContribution, bindPathMathPickerContribution, bindPathRenderModule, bindPolygonCanvasPickerContribution, bindPolygonMathPickerContribution, bindPolygonRenderModule, bindPyramid3dCanvasPickerContribution, bindPyramid3dRenderModule, bindRect3dCanvasPickerContribution, bindRect3dRenderModule, bindRectCanvasPickerContribution, bindRectMathPickerContribution, bindRectRenderModule, bindRichTextMathPickerContribution, bindRichtextCanvasPickerContribution, bindRichtextRenderModule, bindStarRenderModule, bindSymbolCanvasPickerContribution, bindSymbolMathPickerContribution, bindSymbolRenderModule, bindTTEnv, bindTaroEnv, bindTextCanvasPickerContribution, bindTextMathPickerContribution, bindTextRenderModule, bindWxEnv, bootstrapLegacyVRenderRuntime, bootstrapVRenderBrowserApp, bootstrapVRenderMiniApp, bootstrapVRenderNodeApp, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, cartesianTicks, centerToCorner, centroidOfSubpath, circleBounds, circleModule, clampRadian, clock, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, computeOffsetForlimit, configureRuntimeApplicationForApp, container, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, cornerTangents, cornerToCenter, createBrowserApp as createApp, createArc, createArc3d, createArea, createBrowserApp, createBrowserVRenderApp, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, createConicalGradient, createContributionProvider$1 as createContributionProvider, createEventTransformer, createFeishuVRenderApp, createGifImage, createGlyph, createGraphic$1 as createGraphic, createGroup, createHarmonyVRenderApp, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createLynxVRenderApp, createMat4, createMiniappApp$1 as createMiniappApp, createNodeApp$1 as createNodeApp, createNodeVRenderApp, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createTTVRenderApp, createTaroVRenderApp, createText, createTextGraphicByType, createWrapText, createWxVRenderApp, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, deltaXYToAngle, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawBackgroundImage, drawImageWithLayout, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, fuzzyEqualNumber, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getApplicationState, getAttributeFromDefaultAttrList, getAxisBreakSymbolAttrs, getBackgroundImage, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getConicGradientAt, getContributionStoreState, getCurrentEnv, getDefaultCharacterConfig, getElMap, getExtraModelMatrix, getFactoryState, getGraphicClassState, getGraphicRegistryState, getHorizontalPath, getLegacyBindingContext, getMarksByName, getModelMatrix, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getRichTextBounds, getRuntimeInstallerBindingContext, getRuntimeInstallerGlobal, getRuntimeInstallerState, getScaledStroke, getSharedVRenderApp, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextBounds, getTextType, getTheme, getThemeFromGroup, getVerticalCoord, getVerticalPath, globalTheme, glyphModule, graphicCreator$1 as graphicCreator, graphicService, graphicUtil, hasOverlap, htmlAttributeTransform, identityMat4, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initTextMeasure, initWxEnv, installBrowserEnvToApp, installBrowserPickersToApp, installDefaultGraphicsToApp, installFeishuEnvToApp, installHarmonyEnvToApp, installLynxEnvToApp, installMathPickersToApp, installNodeEnvToApp, installNodePickersToApp, installPoptipToApp, installRuntimeContributionModule, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, installRuntimePickersToApp, installScrollbarToApp, installTTEnvToApp, installTaroEnvToApp, installWxEnvToApp, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isInRange, isNoRepeatSizingMode, isNodeEnv, isPostiveXAxis, isRichText, isSvg, isVisible, isXML, jsx, labelSmartInvert, layerService, length, limitShapeInBounds, lineModule, linearDiscreteTicks, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadMathPicker, loadNodeEnv, loadPoptip, loadScrollbar, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, measureTextSize, morphPath, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, newThemeObj, normalize$1 as normalize, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polarAngleAxisDiscreteTicks, polarTicks, polygonModule, preLoadAllModule, pulseWave, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, reactAttributeTransform, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, refreshRuntimeInstallerContributions, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcDataLabel, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineDataLabel, registerLineGraphic, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectDataLabel, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolDataLabel, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, releaseSharedVRenderApp, removeRepeatPoint, renderCommandList, resolveBackgroundDrawMode, resolveBackgroundParamsByImageSizing, resolveBackgroundPosition, resolveBackgroundSizing, resolveContainerBinding$1 as resolveContainerBinding, resolveImageMode, resolveImageRepeatMode, resolveRenderableImageSize, rewriteProto, richTextAttributeTransform, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scale, scaleMat4, segments, setPoptipTheme, shouldClipImageByLayout, shouldUseMat4, smartInvertStrategy, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, tan2AngleToAngle, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textIntersect, textLayoutOffsetY, textModule, ticks, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, traverseGroup, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
|
|
55823
|
+
export { AComponentAnimate, ACustomAnimate, APPLICATION_STATE_SYMBOL, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AStageAnimate, AXIS_ELEMENT_NAME, AbstractComponent, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, AppContext, Application, Arc, Arc3d, Arc3dRender, ArcInfo, ArcLabel, ArcRender, ArcRenderContribution, ArcSegment, Area, AreaRender, AreaRenderContribution, AttributeUpdateType, AutoEnablePlugins, AxisStateValue, Base3dRender, BaseCanvas, BaseEnvContribution, BasePlayer, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEntry, BrowserEnvContribution, Brush, CIRCLE_NUMBER_TYPE, CONTRIBUTION_STORE_STATE_SYMBOL, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CheckBox, Circle, CircleAxis, CircleAxisGrid, CircleCrosshair, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorContinuousLegend, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Context2dFactory, ContinuousPlayer, ContributionProvider, ContributionRegistry, ContributionStore, CubicBezierCurve, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TEXT_FONT_FAMILY$1 as DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArc3DRender, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasPyramid3dRender, DefaultCanvasRect3dRender, 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, DirectionEnum, DirectionalLight, DiscreteLegend, DiscretePlayer, Dissolve, Distortion, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EmptyTip, EnvContribution, EventManager, EventSystem, EventTarget, FACTORY_STATE_SYMBOL, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_CLASS_SYMBOL, GRAPHIC_REGISTRY_SYMBOL, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, GaussianBlur, Generator, Gesture, GifImage, Glitch, GlobalPickerService, Glyph, GlyphRender, GradientParser, Graphic, GraphicCreator$1 as GraphicCreator, GraphicFactory, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Grayscale, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupTransition, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IDataZoomEvent, IDataZoomInteractiveEvent, IMAGE_NUMBER_TYPE, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, Indicator, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LEGEND_ELEMENT_NAME, LINE_NUMBER_TYPE, LabelBase, LabelItemAppear, LabelItemDisappear, Layer, LayerFactory, LayerService, LegendEvent, LegendStateValue, Line$1 as Line, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LineRender, Linear, LinearClosed, LinkPath, Lottie, ManualTicker, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathRichTextPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MiniappEntry, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, NodeEntry, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Pager, Particle, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerRegistry, PickerService, Pixelation, PlayerEventEnum, PluginRegistry, PluginService, Polygon, PolygonCrosshair, PolygonRender, PolygonRenderContribution, PolygonSectorCrosshair, PopTip, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RUNTIME_INSTALLER_STATE_SYMBOL, Radio, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectCrosshair, RectLabel, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, RendererRegistry, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, RotateIn, RotateOut, SLIDER_ELEMENT_NAME, 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, ScrollBar, SectorCrosshair, SegContext, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SizeContinuousLegend, SlideIn, SlideOut, SlideOutRichText, SlideRichText, Slider, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StageFactory, Star, StarRender, StarRenderContribution, State, StateDefinitionCompiler, StateEngine, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StoryLabelItem, StreamLight, StrokeIn, StrokeOut, Switch, Symbol$1 as Symbol, SymbolLabel, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TableSeriesNumber, Tag, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, Timeline, Title, Tooltip, TopZIndex, TransformUtil, Update, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VTag, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WeatherBox, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, acquireSharedVRenderApp, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alignTextInLine, alternatingWave, angle, angleLabelOrientAttribute, angleTo, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindArc3dCanvasPickerContribution, bindArc3dRenderModule, bindArcCanvasPickerContribution, bindArcMathPickerContribution, bindArcRenderModule, bindAreaCanvasPickerContribution, bindAreaMathPickerContribution, bindAreaRenderModule, bindBrowserEnv, bindCircleCanvasPickerContribution, bindCircleMathPickerContribution, bindCircleRenderModule, bindContributionProvider, bindContributionProviderNoSingletonScope, bindFeishuEnv, bindGifImageCanvasPickerContribution, bindGifImageRenderContribution, bindGlyphCanvasPickerContribution, bindGlyphMathPickerContribution, bindGlyphRenderModule, bindHarmonyEnv, bindImageCanvasPickerContribution, bindImageMathPickerContribution, bindImageRenderModule, bindLineCanvasPickerContribution, bindLineMathPickerContribution, bindLineRenderModule, bindLottieCanvasPickerContribution, bindLottieRenderContribution, bindLynxEnv, bindMathPicker, bindNodeEnv, bindPathCanvasPickerContribution, bindPathMathPickerContribution, bindPathRenderModule, bindPolygonCanvasPickerContribution, bindPolygonMathPickerContribution, bindPolygonRenderModule, bindPyramid3dCanvasPickerContribution, bindPyramid3dRenderModule, bindRect3dCanvasPickerContribution, bindRect3dRenderModule, bindRectCanvasPickerContribution, bindRectMathPickerContribution, bindRectRenderModule, bindRichTextMathPickerContribution, bindRichtextCanvasPickerContribution, bindRichtextRenderModule, bindStarRenderModule, bindSymbolCanvasPickerContribution, bindSymbolMathPickerContribution, bindSymbolRenderModule, bindTTEnv, bindTaroEnv, bindTextCanvasPickerContribution, bindTextMathPickerContribution, bindTextRenderModule, bindWxEnv, bootstrapLegacyVRenderRuntime, bootstrapVRenderBrowserApp, bootstrapVRenderMiniApp, bootstrapVRenderNodeApp, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, cartesianTicks, centerToCorner, centroidOfSubpath, circleBounds, circleModule, clampRadian, clock, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, computeOffsetForlimit, configureRuntimeApplicationForApp, container, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, cornerTangents, cornerToCenter, createBrowserApp as createApp, createArc, createArc3d, createArea, createBrowserApp, createBrowserVRenderApp, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, createConicalGradient, createContributionProvider$1 as createContributionProvider, createEventTransformer, createFeishuVRenderApp, createGifImage, createGlyph, createGraphic$1 as createGraphic, createGroup, createHarmonyVRenderApp, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createLynxVRenderApp, createMat4, createMiniappApp$1 as createMiniappApp, createNodeApp$1 as createNodeApp, createNodeVRenderApp, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createTTVRenderApp, createTaroVRenderApp, createText, createTextGraphicByType, createWrapText, createWxVRenderApp, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, deltaXYToAngle, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawBackgroundImage, drawImageWithLayout, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, fuzzyEqualNumber, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getApplicationState, getAttributeFromDefaultAttrList, getAxisBreakSymbolAttrs, getBackgroundImage, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getConicGradientAt, getContributionStoreState, getCurrentEnv, getDefaultCharacterConfig, getElMap, getExtraModelMatrix, getFactoryState, getGraphicClassState, getGraphicRegistryState, getHorizontalPath, getLegacyBindingContext, getMarksByName, getModelMatrix, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getRichTextBounds, getRuntimeInstallerBindingContext, getRuntimeInstallerGlobal, getRuntimeInstallerState, getScaledStroke, getScaledStrokeWithMatrix, getSharedVRenderApp, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextBounds, getTextType, getTheme, getThemeFromGroup, getVerticalCoord, getVerticalPath, globalTheme, glyphModule, graphicCreator$1 as graphicCreator, graphicService, graphicUtil, hasOverlap, htmlAttributeTransform, identityMat4, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initTextMeasure, initWxEnv, installBrowserEnvToApp, installBrowserPickersToApp, installDefaultGraphicsToApp, installFeishuEnvToApp, installHarmonyEnvToApp, installLynxEnvToApp, installMathPickersToApp, installNodeEnvToApp, installNodePickersToApp, installPoptipToApp, installRuntimeContributionModule, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, installRuntimePickersToApp, installScrollbarToApp, installTTEnvToApp, installTaroEnvToApp, installWxEnvToApp, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isInRange, isNoRepeatSizingMode, isNodeEnv, isPostiveXAxis, isRichText, isSvg, isVisible, isXML, jsx, labelSmartInvert, layerService, length, limitShapeInBounds, lineModule, linearDiscreteTicks, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadMathPicker, loadNodeEnv, loadPoptip, loadScrollbar, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, measureTextSize, morphPath, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, newThemeObj, normalize$1 as normalize, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polarAngleAxisDiscreteTicks, polarTicks, polygonModule, preLoadAllModule, pulseWave, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, reactAttributeTransform, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, refreshRuntimeInstallerContributions, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcDataLabel, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineDataLabel, registerLineGraphic, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectDataLabel, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolDataLabel, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, releaseSharedVRenderApp, removeRepeatPoint, renderCommandList, resolveBackgroundDrawMode, resolveBackgroundParamsByImageSizing, resolveBackgroundPosition, resolveBackgroundSizing, resolveContainerBinding$1 as resolveContainerBinding, resolveImageMode, resolveImageRepeatMode, resolveRenderableImageSize, rewriteProto, richTextAttributeTransform, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scale, scaleMat4, segments, setPoptipTheme, shouldClipImageByLayout, shouldUseMat4, smartInvertStrategy, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, tan2AngleToAngle, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textIntersect, textLayoutOffsetY, textModule, ticks, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, traverseGroup, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
|