@visactor/vchart-extension 2.1.3-alpha.3 → 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 +85 -17
- package/build/index.min.js +1 -1
- package/cjs/charts/3d/arc-3d.js +3 -3
- package/cjs/charts/3d/arc-3d.js.map +1 -1
- package/cjs/charts/3d/pyramid-3d.js +3 -3
- package/cjs/charts/3d/pyramid-3d.js.map +1 -1
- package/cjs/charts/3d/rect-3d.js +3 -4
- package/cjs/charts/3d/rect-3d.js.map +1 -1
- package/cjs/charts/axis-3d/index.js +1 -2
- package/cjs/charts/axis-3d/linear-axis.js +2 -1
- package/cjs/charts/candlestick/candlestick-transformer.js +1 -1
- package/cjs/charts/candlestick/candlestick.js +1 -1
- package/cjs/charts/candlestick/index.js +1 -1
- package/cjs/charts/candlestick/interface.js +1 -1
- package/cjs/charts/candlestick/util.js +1 -1
- package/cjs/charts/conversion-funnel/arrow-data-transform.js +1 -1
- package/cjs/charts/conversion-funnel/constants.js +1 -1
- package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js +1 -1
- package/cjs/charts/conversion-funnel/conversion-funnel.js +1 -1
- package/cjs/charts/conversion-funnel/index.js +1 -1
- package/cjs/charts/conversion-funnel/interface.js +1 -1
- package/cjs/charts/conversion-funnel/util.js +1 -1
- package/cjs/charts/funnel-3d/chart.js +1 -1
- package/cjs/charts/funnel-3d/constant.js +1 -1
- package/cjs/charts/funnel-3d/index.js +1 -1
- package/cjs/charts/funnel-3d/interface.js +1 -1
- package/cjs/charts/funnel-3d/series-spec-transformer.js +1 -2
- package/cjs/charts/funnel-3d/series.js +1 -1
- package/cjs/charts/funnel-3d/theme.js +1 -1
- package/cjs/charts/image-cloud/image-cloud-transformer.js +1 -1
- package/cjs/charts/image-cloud/image-cloud.js +1 -1
- package/cjs/charts/image-cloud/index.js +1 -1
- package/cjs/charts/image-cloud/interface.js +1 -1
- package/cjs/charts/pictogram/element-highlight-by-graphic-name.js +1 -1
- package/cjs/charts/pictogram/element-select-by-graphic-name.js +1 -1
- package/cjs/charts/pictogram/index.js +1 -2
- package/cjs/charts/pictogram/interface.js +1 -1
- package/cjs/charts/pictogram/pictogram-transformer.js +1 -1
- package/cjs/charts/pictogram/pictogram.js +1 -1
- package/cjs/charts/pie-3d/animation.js +1 -1
- package/cjs/charts/pie-3d/chart-spec-transformer.js +1 -1
- package/cjs/charts/pie-3d/chart.js +1 -1
- package/cjs/charts/pie-3d/constant.js +1 -1
- package/cjs/components/bar-link/bar-link.js +1 -1
- package/cjs/components/bar-link/constant.js +1 -1
- package/cjs/components/bar-link/index.js +1 -1
- package/cjs/components/bar-link/type.js +1 -1
- package/cjs/components/bar-link/util.js +1 -1
- package/cjs/components/bar-regression-line/index.js +1 -1
- package/cjs/components/bar-regression-line/type.js +1 -1
- package/cjs/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
- package/cjs/components/extension-mark-sync-state/index.js +1 -1
- package/cjs/components/extension-mark-sync-state/type.js +1 -1
- package/cjs/components/histogram-regression-line/index.js +1 -1
- package/cjs/components/histogram-regression-line/type.js +2 -1
- package/cjs/components/map-label/index.js +1 -1
- package/cjs/components/map-label/layout.js +1 -1
- package/cjs/components/map-label/map-label-transformer.js +1 -1
- package/cjs/components/map-label/map-label.js +1 -1
- package/cjs/components/map-label/theme.js +1 -1
- package/cjs/components/map-label/type.js +1 -1
- package/cjs/components/regression-line/index.js +1 -1
- package/cjs/components/regression-line/regression-line.js +1 -1
- package/cjs/components/regression-line/type.js +1 -1
- package/cjs/components/scatter-regression-line/index.js +1 -1
- package/cjs/components/scatter-regression-line/type.js +1 -1
- package/cjs/components/series-break/constant.js +1 -1
- package/cjs/components/series-break/index.js +1 -1
- package/cjs/components/series-break/series-break.js +1 -1
- package/cjs/components/series-break/type.js +1 -1
- package/cjs/components/series-break/util.js +1 -1
- package/cjs/components/series-label/constant.js +1 -1
- package/cjs/components/series-label/index.js +2 -1
- package/cjs/components/series-label/series-label.js +1 -1
- package/cjs/components/series-label/type.js +1 -1
- package/cjs/components/series-label/util.js +1 -1
- package/esm/charts/3d/arc-3d.js +2 -4
- package/esm/charts/3d/arc-3d.js.map +1 -1
- package/esm/charts/3d/pyramid-3d.js +2 -4
- package/esm/charts/3d/pyramid-3d.js.map +1 -1
- package/esm/charts/3d/rect-3d.js +2 -4
- package/esm/charts/3d/rect-3d.js.map +1 -1
- package/esm/charts/axis-3d/index.js +1 -2
- package/esm/charts/axis-3d/linear-axis.js +2 -1
- package/esm/charts/candlestick/candlestick-transformer.js +1 -1
- package/esm/charts/candlestick/candlestick.js +1 -1
- package/esm/charts/candlestick/index.js +1 -1
- package/esm/charts/candlestick/interface.js +1 -1
- package/esm/charts/candlestick/util.js +1 -1
- package/esm/charts/conversion-funnel/arrow-data-transform.js +1 -1
- package/esm/charts/conversion-funnel/constants.js +1 -1
- package/esm/charts/conversion-funnel/conversion-funnel-transformer.js +1 -1
- package/esm/charts/conversion-funnel/conversion-funnel.js +1 -1
- package/esm/charts/conversion-funnel/index.js +1 -1
- package/esm/charts/conversion-funnel/interface.js +1 -1
- package/esm/charts/conversion-funnel/util.js +1 -1
- package/esm/charts/funnel-3d/chart.js +1 -1
- package/esm/charts/funnel-3d/constant.js +1 -1
- package/esm/charts/funnel-3d/index.js +1 -1
- package/esm/charts/funnel-3d/interface.js +1 -1
- package/esm/charts/funnel-3d/series-spec-transformer.js +1 -2
- package/esm/charts/funnel-3d/series.js +1 -1
- package/esm/charts/funnel-3d/theme.js +1 -1
- package/esm/charts/image-cloud/image-cloud-transformer.js +1 -1
- package/esm/charts/image-cloud/image-cloud.js +1 -1
- package/esm/charts/image-cloud/index.js +1 -1
- package/esm/charts/image-cloud/interface.js +1 -1
- package/esm/charts/pictogram/element-highlight-by-graphic-name.js +1 -1
- package/esm/charts/pictogram/element-select-by-graphic-name.js +1 -1
- package/esm/charts/pictogram/index.js +1 -2
- package/esm/charts/pictogram/interface.js +1 -1
- package/esm/charts/pictogram/pictogram-transformer.js +1 -1
- package/esm/charts/pictogram/pictogram.js +1 -1
- package/esm/charts/pie-3d/animation.js +1 -1
- package/esm/charts/pie-3d/chart-spec-transformer.js +1 -1
- package/esm/charts/pie-3d/chart.js +1 -1
- package/esm/charts/pie-3d/constant.js +1 -1
- package/esm/components/bar-link/bar-link.js +1 -1
- package/esm/components/bar-link/constant.js +1 -1
- package/esm/components/bar-link/index.js +1 -1
- package/esm/components/bar-link/type.js +1 -1
- package/esm/components/bar-link/util.js +1 -1
- package/esm/components/bar-regression-line/index.js +1 -1
- package/esm/components/bar-regression-line/type.js +1 -1
- package/esm/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
- package/esm/components/extension-mark-sync-state/index.js +1 -1
- package/esm/components/extension-mark-sync-state/type.js +1 -1
- package/esm/components/histogram-regression-line/index.js +1 -1
- package/esm/components/histogram-regression-line/type.js +2 -1
- package/esm/components/map-label/index.js +1 -1
- package/esm/components/map-label/layout.js +1 -1
- package/esm/components/map-label/map-label-transformer.js +1 -1
- package/esm/components/map-label/map-label.js +1 -1
- package/esm/components/map-label/theme.js +1 -1
- package/esm/components/map-label/type.js +1 -1
- package/esm/components/regression-line/index.js +1 -1
- package/esm/components/regression-line/regression-line.js +1 -1
- package/esm/components/regression-line/type.js +1 -1
- package/esm/components/scatter-regression-line/index.js +1 -1
- package/esm/components/scatter-regression-line/type.js +1 -1
- package/esm/components/series-break/constant.js +1 -1
- package/esm/components/series-break/index.js +1 -1
- package/esm/components/series-break/series-break.js +1 -1
- package/esm/components/series-break/type.js +1 -1
- package/esm/components/series-break/util.js +1 -1
- package/esm/components/series-label/constant.js +1 -1
- package/esm/components/series-label/index.js +2 -1
- package/esm/components/series-label/series-label.js +1 -1
- package/esm/components/series-label/type.js +1 -1
- package/esm/components/series-label/util.js +1 -1
- package/package.json +6 -6
package/build/index.js
CHANGED
|
@@ -2456,6 +2456,17 @@
|
|
|
2456
2456
|
return ColorStore.Get(fromColor, ColorType.Color255, _fromColorRGB), ColorStore.Get(toColor, ColorType.Color255, _toColorRGB), `rgba(${Math.round(_fromColorRGB[0] + (_toColorRGB[0] - _fromColorRGB[0]) * ratio)},${Math.round(_fromColorRGB[1] + (_toColorRGB[1] - _fromColorRGB[1]) * ratio)},${Math.round(_fromColorRGB[2] + (_toColorRGB[2] - _fromColorRGB[2]) * ratio)},${_fromColorRGB[3] + (_toColorRGB[3] - _fromColorRGB[3]) * ratio})`;
|
|
2457
2457
|
}
|
|
2458
2458
|
|
|
2459
|
+
const FACTORY_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/factory-state");
|
|
2460
|
+
function createFactoryState() {
|
|
2461
|
+
return {
|
|
2462
|
+
pluginClasses: {}
|
|
2463
|
+
};
|
|
2464
|
+
}
|
|
2465
|
+
function getFactoryState() {
|
|
2466
|
+
const scope = globalThis;
|
|
2467
|
+
return scope[FACTORY_STATE_SYMBOL] || (scope[FACTORY_STATE_SYMBOL] = createFactoryState()), scope[FACTORY_STATE_SYMBOL];
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2459
2470
|
class Generator {
|
|
2460
2471
|
static GenAutoIncrementId() {
|
|
2461
2472
|
return Generator.auto_increment_id++;
|
|
@@ -2522,7 +2533,17 @@
|
|
|
2522
2533
|
}
|
|
2523
2534
|
|
|
2524
2535
|
class Application {}
|
|
2525
|
-
const
|
|
2536
|
+
const APPLICATION_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/application-state");
|
|
2537
|
+
function createApplicationState() {
|
|
2538
|
+
return {
|
|
2539
|
+
application: new Application()
|
|
2540
|
+
};
|
|
2541
|
+
}
|
|
2542
|
+
function getApplicationState() {
|
|
2543
|
+
const scope = globalThis;
|
|
2544
|
+
return scope[APPLICATION_STATE_SYMBOL] || (scope[APPLICATION_STATE_SYMBOL] = createApplicationState()), scope[APPLICATION_STATE_SYMBOL];
|
|
2545
|
+
}
|
|
2546
|
+
const application = getApplicationState().application;
|
|
2526
2547
|
|
|
2527
2548
|
class EventListenerManager {
|
|
2528
2549
|
constructor() {
|
|
@@ -7330,12 +7351,12 @@
|
|
|
7330
7351
|
cursor: 1,
|
|
7331
7352
|
html: 1
|
|
7332
7353
|
};
|
|
7333
|
-
class
|
|
7354
|
+
class GraphicImpl extends Node {
|
|
7334
7355
|
static mixin(source) {
|
|
7335
7356
|
const keys = Object.keys(source);
|
|
7336
7357
|
for (let i = 0; i < keys.length; ++i) {
|
|
7337
7358
|
const propertyName = keys[i];
|
|
7338
|
-
Object.defineProperty(
|
|
7359
|
+
Object.defineProperty(this.prototype, propertyName, Object.getOwnPropertyDescriptor(source, propertyName));
|
|
7339
7360
|
}
|
|
7340
7361
|
}
|
|
7341
7362
|
get AABBBounds() {
|
|
@@ -8574,13 +8595,26 @@
|
|
|
8574
8595
|
return null;
|
|
8575
8596
|
}
|
|
8576
8597
|
}
|
|
8598
|
+
GraphicImpl.userSymbolMap = {};
|
|
8599
|
+
const GRAPHIC_CLASS_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-class");
|
|
8600
|
+
function createGraphicClassState() {
|
|
8601
|
+
return {
|
|
8602
|
+
Graphic: GraphicImpl
|
|
8603
|
+
};
|
|
8604
|
+
}
|
|
8605
|
+
function getGraphicClassState() {
|
|
8606
|
+
var _a;
|
|
8607
|
+
const globalScope = globalThis;
|
|
8608
|
+
return null !== (_a = globalScope[GRAPHIC_CLASS_SYMBOL]) && void 0 !== _a || (globalScope[GRAPHIC_CLASS_SYMBOL] = createGraphicClassState()), globalScope[GRAPHIC_CLASS_SYMBOL];
|
|
8609
|
+
}
|
|
8610
|
+
const Graphic = getGraphicClassState().Graphic;
|
|
8577
8611
|
function backgroundNotImage(image) {
|
|
8578
8612
|
return "string" == typeof image ? !(image.startsWith("<svg") || vutils.isValidUrl(image) || image.includes("/") || vutils.isBase64(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
|
|
8579
8613
|
}
|
|
8580
8614
|
function isExternalTexture(texture) {
|
|
8581
8615
|
return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || vutils.isValidUrl(texture) || texture.includes("/") || vutils.isBase64(texture)) : vutils.isObject(texture));
|
|
8582
8616
|
}
|
|
8583
|
-
Graphic.
|
|
8617
|
+
Graphic.mixin(EventTarget);
|
|
8584
8618
|
|
|
8585
8619
|
const defaultThemeObj = {
|
|
8586
8620
|
arc: DefaultArcAttribute,
|
|
@@ -9805,7 +9839,6 @@
|
|
|
9805
9839
|
}
|
|
9806
9840
|
};
|
|
9807
9841
|
}
|
|
9808
|
-
const sharedGraphicFactory = new GraphicFactory();
|
|
9809
9842
|
class GraphicCreator {
|
|
9810
9843
|
constructor() {
|
|
9811
9844
|
this.store = new Map();
|
|
@@ -9820,13 +9853,25 @@
|
|
|
9820
9853
|
return this.store.has(name) ? createGraphic(name, attributes) : null;
|
|
9821
9854
|
}
|
|
9822
9855
|
}
|
|
9823
|
-
const
|
|
9856
|
+
const GRAPHIC_REGISTRY_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-registry");
|
|
9857
|
+
function createGraphicRegistryState() {
|
|
9858
|
+
return {
|
|
9859
|
+
graphicCreator: new GraphicCreator(),
|
|
9860
|
+
graphicFactory: new GraphicFactory()
|
|
9861
|
+
};
|
|
9862
|
+
}
|
|
9863
|
+
function getGraphicRegistryState() {
|
|
9864
|
+
const scope = globalThis;
|
|
9865
|
+
return scope[GRAPHIC_REGISTRY_SYMBOL] || (scope[GRAPHIC_REGISTRY_SYMBOL] = createGraphicRegistryState()), scope[GRAPHIC_REGISTRY_SYMBOL];
|
|
9866
|
+
}
|
|
9867
|
+
const sharedGraphicRegistry = getGraphicRegistryState();
|
|
9868
|
+
const graphicCreator = sharedGraphicRegistry.graphicCreator;
|
|
9824
9869
|
function registerGraphic(name, creator) {
|
|
9825
9870
|
if (!name) throw new Error("Graphic registration requires a non-empty graphic type");
|
|
9826
|
-
graphicCreator.registerStore(name, creator),
|
|
9871
|
+
graphicCreator.registerStore(name, creator), sharedGraphicRegistry.graphicFactory.register(name, createGraphicCtor(creator));
|
|
9827
9872
|
}
|
|
9828
9873
|
function createGraphic(name, attributes) {
|
|
9829
|
-
return
|
|
9874
|
+
return sharedGraphicRegistry.graphicFactory.create(name, attributes);
|
|
9830
9875
|
}
|
|
9831
9876
|
|
|
9832
9877
|
function getModelMatrix(out, graphic, theme) {
|
|
@@ -10127,7 +10172,7 @@
|
|
|
10127
10172
|
return Factory._pluginClasses[pluginKey];
|
|
10128
10173
|
}
|
|
10129
10174
|
};
|
|
10130
|
-
Factory$1._pluginClasses =
|
|
10175
|
+
Factory$1._pluginClasses = getFactoryState().pluginClasses;
|
|
10131
10176
|
|
|
10132
10177
|
class DirectionalLight {
|
|
10133
10178
|
constructor(dir, color, ambient = .8) {
|
|
@@ -11530,6 +11575,17 @@
|
|
|
11530
11575
|
const LayerService = Symbol.for("LayerService");
|
|
11531
11576
|
const StaticLayerHandlerContribution = Symbol.for("StaticLayerHandlerContribution");
|
|
11532
11577
|
|
|
11578
|
+
const CONTRIBUTION_STORE_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/contribution-store-state");
|
|
11579
|
+
function createContributionStoreState() {
|
|
11580
|
+
return {
|
|
11581
|
+
store: new Map()
|
|
11582
|
+
};
|
|
11583
|
+
}
|
|
11584
|
+
function getContributionStoreState() {
|
|
11585
|
+
const scope = globalThis;
|
|
11586
|
+
return scope[CONTRIBUTION_STORE_STATE_SYMBOL] || (scope[CONTRIBUTION_STORE_STATE_SYMBOL] = createContributionStoreState()), scope[CONTRIBUTION_STORE_STATE_SYMBOL];
|
|
11587
|
+
}
|
|
11588
|
+
|
|
11533
11589
|
const ContributionProvider = Symbol("ContributionProvider");
|
|
11534
11590
|
class ContributionProviderCache {
|
|
11535
11591
|
constructor(serviceIdentifier, container) {
|
|
@@ -11572,7 +11628,7 @@
|
|
|
11572
11628
|
});
|
|
11573
11629
|
}
|
|
11574
11630
|
}
|
|
11575
|
-
ContributionStore.store =
|
|
11631
|
+
ContributionStore.store = getContributionStoreState().store;
|
|
11576
11632
|
|
|
11577
11633
|
class ATextMeasure {
|
|
11578
11634
|
constructor() {
|
|
@@ -13299,13 +13355,26 @@
|
|
|
13299
13355
|
return new LegacyBindingContext();
|
|
13300
13356
|
}
|
|
13301
13357
|
|
|
13302
|
-
const
|
|
13358
|
+
const LEGACY_BOOTSTRAP_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/legacy-bootstrap-state");
|
|
13359
|
+
function createLegacyBootstrapState() {
|
|
13360
|
+
return {
|
|
13361
|
+
legacyBindingContext: createLegacyBindingContext(),
|
|
13362
|
+
preloaded: !1
|
|
13363
|
+
};
|
|
13364
|
+
}
|
|
13365
|
+
function getLegacyBootstrapState() {
|
|
13366
|
+
const scope = globalThis;
|
|
13367
|
+
return scope[LEGACY_BOOTSTRAP_STATE_SYMBOL] || (scope[LEGACY_BOOTSTRAP_STATE_SYMBOL] = createLegacyBootstrapState()), scope[LEGACY_BOOTSTRAP_STATE_SYMBOL];
|
|
13368
|
+
}
|
|
13369
|
+
|
|
13370
|
+
const legacyBootstrapState = getLegacyBootstrapState(),
|
|
13371
|
+
legacyBindingContext = legacyBootstrapState.legacyBindingContext;
|
|
13303
13372
|
function getLegacyTarget(resolver) {
|
|
13304
13373
|
let target;
|
|
13305
13374
|
return () => (void 0 === target && (target = resolver()), target);
|
|
13306
13375
|
}
|
|
13307
13376
|
function preLoadAllModule() {
|
|
13308
|
-
|
|
13377
|
+
legacyBootstrapState.preloaded || (legacyBootstrapState.preloaded = !0, bindCoreModules({
|
|
13309
13378
|
bind: legacyBindingContext.bind
|
|
13310
13379
|
}), bindGraphicModules({
|
|
13311
13380
|
bind: legacyBindingContext.bind
|
|
@@ -13318,7 +13387,6 @@
|
|
|
13318
13387
|
bind: legacyBindingContext.bind
|
|
13319
13388
|
}), load$1(legacyBindingContext), load(legacyBindingContext));
|
|
13320
13389
|
}
|
|
13321
|
-
preLoadAllModule.__loaded = !1;
|
|
13322
13390
|
function getLegacyBindingContext() {
|
|
13323
13391
|
return legacyBindingContext;
|
|
13324
13392
|
}
|
|
@@ -15750,16 +15818,16 @@
|
|
|
15750
15818
|
_registerRect3d.__loaded = !1;
|
|
15751
15819
|
const registerRect3d = _registerRect3d;
|
|
15752
15820
|
|
|
15753
|
-
const createArc3d = attributes => (registerArc3d(), createGraphic("arc3d", attributes));
|
|
15754
|
-
const createPyramid3d = attributes => (registerPyramid3d(), createGraphic("pyramid3d", attributes));
|
|
15755
|
-
const createRect3d = attributes => (registerRect3d(), createGraphic("rect3d", attributes));
|
|
15756
|
-
|
|
15757
15821
|
function _registerShadowRoot() {
|
|
15758
15822
|
_registerShadowRoot.__loaded || (_registerShadowRoot.__loaded = !0, registerShadowRootGraphic());
|
|
15759
15823
|
}
|
|
15760
15824
|
_registerShadowRoot.__loaded = !1;
|
|
15761
15825
|
const registerShadowRoot = _registerShadowRoot;
|
|
15762
15826
|
|
|
15827
|
+
const createArc3d = attributes => (registerArc3d(), createGraphic("arc3d", attributes));
|
|
15828
|
+
const createPyramid3d = attributes => (registerPyramid3d(), createGraphic("pyramid3d", attributes));
|
|
15829
|
+
const createRect3d = attributes => (registerRect3d(), createGraphic("rect3d", attributes));
|
|
15830
|
+
|
|
15763
15831
|
class CommonIn extends ACustomAnimate {
|
|
15764
15832
|
constructor(from, to, duration, easing, params) {
|
|
15765
15833
|
super(from, to, duration, easing, params);
|