@visactor/vrender-kits 1.1.9-alpha.0 → 1.1.9-alpha.1

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.
@@ -247,4 +247,4 @@ class BrowserEnvContribution extends vrender_core_1.BaseEnvContribution {
247
247
  }
248
248
 
249
249
  exports.BrowserEnvContribution = BrowserEnvContribution;
250
- //# sourceMappingURL=browser-contribution.js.map
250
+ //# sourceMappingURL=browser-contribution.js.map
@@ -51,4 +51,4 @@ class DragNDrop {
51
51
  }
52
52
 
53
53
  exports.DragNDrop = DragNDrop;
54
- //# sourceMappingURL=drag.js.map
54
+ //# sourceMappingURL=drag.js.map
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
- function getGraphicRegistryState() {
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");
@@ -242,4 +242,4 @@ export class BrowserEnvContribution extends BaseEnvContribution {
242
242
  return navigator.clipboard.writeText(text).then((() => {})).catch((err => {}));
243
243
  }
244
244
  }
245
- //# sourceMappingURL=browser-contribution.js.map
245
+ //# sourceMappingURL=browser-contribution.js.map
@@ -43,4 +43,4 @@ export class DragNDrop {
43
43
  this.removeEvents(), this.rootNode = null;
44
44
  }
45
45
  }
46
- //# sourceMappingURL=drag.js.map
46
+ //# sourceMappingURL=drag.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-kits",
3
- "version": "1.1.9-alpha.0",
3
+ "version": "1.1.9-alpha.1",
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-alpha.0",
47
+ "@visactor/vrender-core": "1.1.9-alpha.1",
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/eslint-config": "0.0.1",
73
72
  "@internal/ts-config": "0.0.1",
73
+ "@internal/eslint-config": "0.0.1",
74
74
  "@internal/bundler": "0.0.1"
75
75
  },
76
76
  "keywords": [