@visactor/vchart 2.1.3-alpha.4 → 2.1.3-alpha.5

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/build/index.js CHANGED
@@ -14658,12 +14658,12 @@
14658
14658
  cursor: 1,
14659
14659
  html: 1
14660
14660
  };
14661
- class Graphic extends Node {
14661
+ class GraphicImpl extends Node {
14662
14662
  static mixin(source) {
14663
14663
  const keys = Object.keys(source);
14664
14664
  for (let i = 0; i < keys.length; ++i) {
14665
14665
  const propertyName = keys[i];
14666
- Object.defineProperty(Graphic.prototype, propertyName, Object.getOwnPropertyDescriptor(source, propertyName));
14666
+ Object.defineProperty(this.prototype, propertyName, Object.getOwnPropertyDescriptor(source, propertyName));
14667
14667
  }
14668
14668
  }
14669
14669
  get AABBBounds() {
@@ -15902,13 +15902,26 @@
15902
15902
  return null;
15903
15903
  }
15904
15904
  }
15905
+ GraphicImpl.userSymbolMap = {};
15906
+ const GRAPHIC_CLASS_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-class");
15907
+ function createGraphicClassState() {
15908
+ return {
15909
+ Graphic: GraphicImpl
15910
+ };
15911
+ }
15912
+ function getGraphicClassState() {
15913
+ var _a;
15914
+ const globalScope = globalThis;
15915
+ return null !== (_a = globalScope[GRAPHIC_CLASS_SYMBOL]) && void 0 !== _a || (globalScope[GRAPHIC_CLASS_SYMBOL] = createGraphicClassState()), globalScope[GRAPHIC_CLASS_SYMBOL];
15916
+ }
15917
+ const Graphic = getGraphicClassState().Graphic;
15905
15918
  function backgroundNotImage(image) {
15906
15919
  return "string" == typeof image ? !(image.startsWith("<svg") || isValidUrl$1(image) || image.includes("/") || isBase64$1(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
15907
15920
  }
15908
15921
  function isExternalTexture(texture) {
15909
15922
  return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl$1(texture) || texture.includes("/") || isBase64$1(texture)) : isObject$2(texture));
15910
15923
  }
15911
- Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
15924
+ Graphic.mixin(EventTarget);
15912
15925
 
15913
15926
  const defaultThemeObj = {
15914
15927
  arc: DefaultArcAttribute,