@visactor/vrender-kits 1.1.6 → 1.1.7
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/dist/index.es.js +14 -2
- 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/package.json +4 -4
|
@@ -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/dist/index.es.js
CHANGED
|
@@ -15747,7 +15747,8 @@ class DefaultIncrementalDrawContribution extends DefaultDrawContribution {
|
|
|
15747
15747
|
}
|
|
15748
15748
|
|
|
15749
15749
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
15750
|
-
const
|
|
15750
|
+
const INTERACTIVE_POST_MATRIX = "_interactivePostMatrix",
|
|
15751
|
+
tempDirtyBounds = new AABBBounds(),
|
|
15751
15752
|
tempBackupDirtyBounds = new AABBBounds();
|
|
15752
15753
|
class ShadowRootDrawItemInterceptorContribution {
|
|
15753
15754
|
constructor() {
|
|
@@ -15811,12 +15812,23 @@ class InteractiveDrawItemInterceptorContribution {
|
|
|
15811
15812
|
beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
15812
15813
|
return !this.processing && (graphic.baseGraphic ? this.beforeDrawInteractive(graphic, renderService, drawContext, drawContribution, params) : this.beforeSetInteractive(graphic, renderService, drawContext, drawContribution, params));
|
|
15813
15814
|
}
|
|
15815
|
+
resolveInteractivePostMatrix(graphic, interactiveGraphic) {
|
|
15816
|
+
const parent = graphic.parent;
|
|
15817
|
+
if (!parent) return graphic.attribute.postMatrix;
|
|
15818
|
+
let matrix = interactiveGraphic[INTERACTIVE_POST_MATRIX];
|
|
15819
|
+
matrix || (matrix = new Matrix(), interactiveGraphic[INTERACTIVE_POST_MATRIX] = matrix);
|
|
15820
|
+
const ancestorMatrix = parent.globalTransMatrix;
|
|
15821
|
+
matrix.setValue(ancestorMatrix.a, ancestorMatrix.b, ancestorMatrix.c, ancestorMatrix.d, ancestorMatrix.e, ancestorMatrix.f);
|
|
15822
|
+
const ownPostMatrix = graphic.attribute.postMatrix;
|
|
15823
|
+
return ownPostMatrix && matrix.multiply(ownPostMatrix.a, ownPostMatrix.b, ownPostMatrix.c, ownPostMatrix.d, ownPostMatrix.e, ownPostMatrix.f), matrix;
|
|
15824
|
+
}
|
|
15814
15825
|
beforeSetInteractive(graphic, renderService, drawContext, drawContribution, params) {
|
|
15815
15826
|
let interactiveGraphic = graphic.interactiveGraphic;
|
|
15816
15827
|
if (graphic.attribute.globalZIndex) {
|
|
15817
15828
|
interactiveGraphic || (interactiveGraphic = graphic.clone(), graphic.interactiveGraphic = interactiveGraphic, interactiveGraphic.baseGraphic = graphic), interactiveGraphic.setAttributes({
|
|
15818
15829
|
globalZIndex: 0,
|
|
15819
|
-
zIndex: graphic.attribute.globalZIndex
|
|
15830
|
+
zIndex: graphic.attribute.globalZIndex,
|
|
15831
|
+
postMatrix: this.resolveInteractivePostMatrix(graphic, interactiveGraphic)
|
|
15820
15832
|
}, !1, {
|
|
15821
15833
|
skipUpdateCallback: !0
|
|
15822
15834
|
}), drawContext.stage.tryInitInteractiveLayer();
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-kits",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
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.
|
|
47
|
+
"@visactor/vrender-core": "1.1.7",
|
|
48
48
|
"@resvg/resvg-js": "2.4.1",
|
|
49
49
|
"roughjs": "4.6.6",
|
|
50
50
|
"gifuct-js": "2.1.2",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"typescript": "4.9.5",
|
|
71
71
|
"cross-env": "^7.0.3",
|
|
72
72
|
"@internal/bundler": "0.0.1",
|
|
73
|
-
"@internal/
|
|
74
|
-
"@internal/
|
|
73
|
+
"@internal/eslint-config": "0.0.1",
|
|
74
|
+
"@internal/ts-config": "0.0.1"
|
|
75
75
|
},
|
|
76
76
|
"keywords": [
|
|
77
77
|
"VisActor",
|