@visactor/vrender-kits 1.1.9-alpha.0 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -6
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -11003,18 +11003,13 @@ class GraphicCreator {
|
|
|
11003
11003
|
return this.store.has(name) ? createGraphic(name, attributes) : null;
|
|
11004
11004
|
}
|
|
11005
11005
|
}
|
|
11006
|
-
const GRAPHIC_REGISTRY_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-registry");
|
|
11007
11006
|
function createGraphicRegistryState() {
|
|
11008
11007
|
return {
|
|
11009
11008
|
graphicCreator: new GraphicCreator(),
|
|
11010
11009
|
graphicFactory: new GraphicFactory()
|
|
11011
11010
|
};
|
|
11012
11011
|
}
|
|
11013
|
-
|
|
11014
|
-
const scope = globalThis;
|
|
11015
|
-
return scope[GRAPHIC_REGISTRY_SYMBOL] || (scope[GRAPHIC_REGISTRY_SYMBOL] = createGraphicRegistryState()), scope[GRAPHIC_REGISTRY_SYMBOL];
|
|
11016
|
-
}
|
|
11017
|
-
const sharedGraphicRegistry = getGraphicRegistryState();
|
|
11012
|
+
const sharedGraphicRegistry = createGraphicRegistryState();
|
|
11018
11013
|
const graphicCreator = sharedGraphicRegistry.graphicCreator;
|
|
11019
11014
|
function registerGraphic(name, creator) {
|
|
11020
11015
|
if (!name) throw new Error("Graphic registration requires a non-empty graphic type");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-kits",
|
|
3
|
-
"version": "1.1.9
|
|
3
|
+
"version": "1.1.9",
|
|
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.9
|
|
47
|
+
"@visactor/vrender-core": "1.1.9",
|
|
48
48
|
"@resvg/resvg-js": "2.4.1",
|
|
49
49
|
"roughjs": "4.6.6",
|
|
50
50
|
"gifuct-js": "2.1.2",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"vite": "3.2.6",
|
|
70
70
|
"typescript": "4.9.5",
|
|
71
71
|
"cross-env": "^7.0.3",
|
|
72
|
-
"@internal/
|
|
72
|
+
"@internal/bundler": "0.0.1",
|
|
73
73
|
"@internal/ts-config": "0.0.1",
|
|
74
|
-
"@internal/
|
|
74
|
+
"@internal/eslint-config": "0.0.1"
|
|
75
75
|
},
|
|
76
76
|
"keywords": [
|
|
77
77
|
"VisActor",
|