@visactor/vrender-kits 1.1.8-alpha.1 → 1.1.8
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/canvas/contributions/create-canvas-module.js +1 -1
- package/cjs/canvas/contributions/modules.js +1 -1
- package/cjs/env/contributions/canvas-wrap.js +1 -1
- package/cjs/env/contributions/feishu-contribution.js +1 -1
- package/cjs/graphic/Lottie.js +2 -1
- package/cjs/installers/app.js +1 -2
- package/cjs/register/env.js +2 -1
- package/cjs/register/register-circle.js +1 -2
- package/cjs/register/register-shadowRoot.js +2 -1
- package/cjs/register/register-wraptext.js +1 -2
- package/dist/index.es.js +27 -18
- package/es/canvas/contributions/create-canvas-module.js +1 -1
- package/es/canvas/contributions/modules.js +1 -1
- package/es/env/contributions/canvas-wrap.js +1 -1
- package/es/env/contributions/feishu-contribution.js +1 -1
- package/es/graphic/Lottie.js +2 -1
- package/es/installers/app.js +1 -2
- package/es/register/env.js +2 -1
- package/es/register/register-circle.js +1 -2
- package/es/register/register-shadowRoot.js +2 -1
- package/es/register/register-wraptext.js +1 -2
- package/package.json +3 -3
|
@@ -45,4 +45,4 @@ exports.loadAllCavnvas = loadAllCavnvas, exports.loadBrowserCanvas = loadBrowser
|
|
|
45
45
|
exports.loadFeishuCanvas = loadFeishuCanvas, exports.loadLynxCanvas = loadLynxCanvas,
|
|
46
46
|
exports.loadNodeCanvas = loadNodeCanvas, exports.loadTaroCanvas = loadTaroCanvas,
|
|
47
47
|
exports.loadTTCanvas = loadTTCanvas, exports.loadWxCanvas = loadWxCanvas;
|
|
48
|
-
//# sourceMappingURL=modules.js.map
|
|
48
|
+
//# sourceMappingURL=modules.js.map
|
package/cjs/graphic/Lottie.js
CHANGED
package/cjs/installers/app.js
CHANGED
|
@@ -212,5 +212,4 @@ exports.installTaroEnvToApp = installTaroEnvToApp, exports.installFeishuEnvToApp
|
|
|
212
212
|
exports.installTTEnvToApp = installTTEnvToApp, exports.installWxEnvToApp = installWxEnvToApp,
|
|
213
213
|
exports.installLynxEnvToApp = installLynxEnvToApp, exports.installHarmonyEnvToApp = installHarmonyEnvToApp,
|
|
214
214
|
exports.installDefaultGraphicsToApp = installDefaultGraphicsToApp, exports.installBrowserPickersToApp = installBrowserPickersToApp,
|
|
215
|
-
exports.installNodePickersToApp = installNodePickersToApp, exports.installMathPickersToApp = installMathPickersToApp;
|
|
216
|
-
//# sourceMappingURL=app.js.map
|
|
215
|
+
exports.installNodePickersToApp = installNodePickersToApp, exports.installMathPickersToApp = installMathPickersToApp;
|
package/cjs/register/env.js
CHANGED
|
@@ -16,5 +16,4 @@ function _registerCircle() {
|
|
|
16
16
|
circle_module_2.bindCircleMathPickerContribution)(legacyContext);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
_registerCircle.__loaded = !1, exports.registerCircle = _registerCircle;
|
|
20
|
-
//# sourceMappingURL=register-circle.js.map
|
|
19
|
+
_registerCircle.__loaded = !1, exports.registerCircle = _registerCircle;
|
|
@@ -10,4 +10,5 @@ function _registerShadowRoot() {
|
|
|
10
10
|
_registerShadowRoot.__loaded || (_registerShadowRoot.__loaded = !0, (0, graphic_1.registerShadowRootGraphic)());
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
_registerShadowRoot.__loaded = !1, exports.registerShadowRoot = _registerShadowRoot;
|
|
13
|
+
_registerShadowRoot.__loaded = !1, exports.registerShadowRoot = _registerShadowRoot;
|
|
14
|
+
//# sourceMappingURL=register-shadowRoot.js.map
|
|
@@ -10,5 +10,4 @@ function _registerWrapText() {
|
|
|
10
10
|
_registerWrapText.__loaded || (_registerWrapText.__loaded = !0, (0, graphic_1.registerWrapTextGraphic)());
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
_registerWrapText.__loaded = !1, exports.registerWrapText = _registerWrapText;
|
|
14
|
-
//# sourceMappingURL=register-wraptext.js.map
|
|
13
|
+
_registerWrapText.__loaded = !1, exports.registerWrapText = _registerWrapText;
|
package/dist/index.es.js
CHANGED
|
@@ -9465,6 +9465,11 @@ class GraphicImpl extends Node {
|
|
|
9465
9465
|
}
|
|
9466
9466
|
return !0;
|
|
9467
9467
|
}
|
|
9468
|
+
hasStatePatch(patch) {
|
|
9469
|
+
if (!patch) return !1;
|
|
9470
|
+
for (const key in patch) if (Object.prototype.hasOwnProperty.call(patch, key)) return !0;
|
|
9471
|
+
return !1;
|
|
9472
|
+
}
|
|
9468
9473
|
commitSameStatePatchRefresh(states, hasAnimation, animateSameStatePatchChange = !1) {
|
|
9469
9474
|
var _a;
|
|
9470
9475
|
const previousStates = null !== (_a = this.currentStates) && void 0 !== _a ? _a : EMPTY_STATE_NAMES,
|
|
@@ -9532,15 +9537,17 @@ class GraphicImpl extends Node {
|
|
|
9532
9537
|
transition = this.resolveClearStatesTransition();
|
|
9533
9538
|
if (!transition.changed && 0 === previousStates.length) return this.currentStates = [], this.effectiveStates = [], this.resolvedStatePatch = void 0, this.sharedStateDirty = !1, void this.clearSharedStateActiveRegistrations();
|
|
9534
9539
|
const resolvedStateAttrs = hasAnimation || this.hasCustomEvent("beforeStateUpdate") ? cloneAttributeValue(null !== (_b = this.baseAttributes) && void 0 !== _b ? _b : {}) : null !== (_c = this.baseAttributes) && void 0 !== _c ? _c : {};
|
|
9535
|
-
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(),
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9540
|
+
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(), this.attributeMayContainTransientAttrs || this.hasStatePatch(previousResolvedStatePatch)) {
|
|
9541
|
+
if (hasAnimation) {
|
|
9542
|
+
this._syncFinalAttributeFromStaticTruth();
|
|
9543
|
+
const removedStateAnimationAttrs = this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch);
|
|
9544
|
+
this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !0, void 0, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.extraAttrs, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.stateTransitionTargetAttrs);
|
|
9545
|
+
} else this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
|
|
9546
|
+
type: AttributeUpdateType.STATE
|
|
9547
|
+
}) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, void 0, {
|
|
9548
|
+
type: AttributeUpdateType.STATE
|
|
9549
|
+
}), this.emitStateUpdateEvent();
|
|
9550
|
+
} else this.emitStateUpdateEvent();
|
|
9544
9551
|
}
|
|
9545
9552
|
removeState(stateName, hasAnimation) {
|
|
9546
9553
|
const transition = this.resolveRemoveStateTransition(stateName);
|
|
@@ -9581,15 +9588,17 @@ class GraphicImpl extends Node {
|
|
|
9581
9588
|
effectiveStates: effectiveStates,
|
|
9582
9589
|
resolvedStateAttrs: resolvedStateAttrs
|
|
9583
9590
|
} = this.resolveGraphicStateTransition(states);
|
|
9584
|
-
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(),
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9591
|
+
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(), this.attributeMayContainTransientAttrs || this.hasStatePatch(previousResolvedStatePatch) || this.hasStatePatch(resolvedStateAttrs)) {
|
|
9592
|
+
if (hasAnimation) {
|
|
9593
|
+
this._syncFinalAttributeFromStaticTruth();
|
|
9594
|
+
const removedStateAnimationAttrs = this.buildRemovedStateAnimationAttrs(resolvedStateAttrs, previousResolvedStatePatch);
|
|
9595
|
+
this.applyStateAttrs(resolvedStateAttrs, transition.states, hasAnimation, !1, void 0, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.extraAttrs, null == removedStateAnimationAttrs ? void 0 : removedStateAnimationAttrs.stateTransitionTargetAttrs);
|
|
9596
|
+
} else this.stopStateAnimates(), this.attributeMayContainTransientAttrs ? this._restoreAttributeFromStaticTruth({
|
|
9597
|
+
type: AttributeUpdateType.STATE
|
|
9598
|
+
}) : this.restoreAttributeFromStatePatchDelta(previousResolvedStatePatch, this.resolvedStatePatch, {
|
|
9599
|
+
type: AttributeUpdateType.STATE
|
|
9600
|
+
}), this.emitStateUpdateEvent();
|
|
9601
|
+
} else this.emitStateUpdateEvent();
|
|
9593
9602
|
}
|
|
9594
9603
|
invalidateResolver() {
|
|
9595
9604
|
var _a, _b;
|
|
@@ -8,4 +8,4 @@ export function createModule(CanvasConstructor, ContextConstructor) {
|
|
|
8
8
|
hasContextFactory || bindingContainer.bind(Context2dFactory).toDynamicValue((() => (params, dpr) => new ContextConstructor(params, dpr))).whenTargetNamed(ContextConstructor.env);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=create-canvas-module.js.map
|
|
11
|
+
//# sourceMappingURL=create-canvas-module.js.map
|
package/es/graphic/Lottie.js
CHANGED
package/es/installers/app.js
CHANGED
package/es/register/env.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-kits",
|
|
3
|
-
"version": "1.1.8
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index-node.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@visactor/vutils": "~1.0.12",
|
|
47
|
-
"@visactor/vrender-core": "1.1.8
|
|
47
|
+
"@visactor/vrender-core": "1.1.8",
|
|
48
48
|
"@resvg/resvg-js": "2.4.1",
|
|
49
49
|
"roughjs": "4.6.6",
|
|
50
50
|
"gifuct-js": "2.1.2",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"vite": "3.2.6",
|
|
70
70
|
"typescript": "4.9.5",
|
|
71
71
|
"cross-env": "^7.0.3",
|
|
72
|
-
"@internal/bundler": "0.0.1",
|
|
73
72
|
"@internal/eslint-config": "0.0.1",
|
|
73
|
+
"@internal/bundler": "0.0.1",
|
|
74
74
|
"@internal/ts-config": "0.0.1"
|
|
75
75
|
},
|
|
76
76
|
"keywords": [
|