@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/es5/index.js +1 -1
- package/build/index.js +16 -3
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/index.js +1 -1
- package/cjs/chart/stack.js +1 -1
- package/cjs/chart/util.js +1 -1
- package/cjs/compile/state-manager.js +1 -2
- package/cjs/component/util.js +2 -1
- package/cjs/constant/scatter.js +1 -2
- package/cjs/constant/scroll-bar.js +2 -1
- package/cjs/core/expression-function.js +1 -1
- package/cjs/core/factory-registry.js +1 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/data/data-view-utils.js +1 -1
- package/esm/chart/index.js +1 -1
- package/esm/chart/stack.js +1 -1
- package/esm/chart/util.js +1 -1
- package/esm/compile/state-manager.js +1 -2
- package/esm/component/util.js +2 -1
- package/esm/constant/scatter.js +1 -2
- package/esm/constant/scroll-bar.js +2 -1
- package/esm/core/expression-function.js +1 -1
- package/esm/core/factory-registry.js +1 -1
- package/esm/core/factory.js +1 -1
- package/esm/core/index.js +1 -1
- package/esm/data/data-view-utils.js +1 -1
- package/package.json +10 -10
package/build/index.js
CHANGED
|
@@ -14658,12 +14658,12 @@
|
|
|
14658
14658
|
cursor: 1,
|
|
14659
14659
|
html: 1
|
|
14660
14660
|
};
|
|
14661
|
-
class
|
|
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(
|
|
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.
|
|
15924
|
+
Graphic.mixin(EventTarget);
|
|
15912
15925
|
|
|
15913
15926
|
const defaultThemeObj = {
|
|
15914
15927
|
arc: DefaultArcAttribute,
|