@visactor/vchart 1.8.0 → 1.8.2
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 +322 -214
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart-transformer.js +14 -6
- package/cjs/chart/base/base-chart-transformer.js.map +1 -1
- package/cjs/chart/base/base-chart.js +5 -3
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/interface/common.d.ts +2 -0
- package/cjs/chart/interface/common.js.map +1 -1
- package/cjs/chart/stack.js +2 -1
- package/cjs/compile/grammar-item.js +1 -2
- package/cjs/component/axis/base-axis.js +2 -2
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/brush/brush.js +5 -3
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/crosshair/base.js +1 -0
- package/cjs/component/crosshair/base.js.map +1 -1
- package/cjs/component/crosshair/cartesian.js +4 -2
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +2 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +2 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/geo/geo-coordinate.js +1 -1
- package/cjs/component/geo/geo-coordinate.js.map +1 -1
- package/cjs/component/indicator/indicator.js +1 -0
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/interface/type.d.ts +0 -8
- package/cjs/component/interface/type.js +3 -11
- package/cjs/component/interface/type.js.map +1 -1
- package/cjs/component/label/label.js +1 -1
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/legend/base-legend.js +4 -2
- package/cjs/component/legend/base-legend.js.map +1 -1
- package/cjs/component/legend/discrete/legend.js.map +1 -1
- package/cjs/component/legend/interface.d.ts +1 -0
- package/cjs/component/legend/interface.js.map +1 -1
- package/cjs/component/player/player.js +7 -4
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/title/title.d.ts +1 -1
- package/cjs/component/title/title.js +2 -2
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/tooltip.js +1 -0
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.d.ts +1 -1
- package/cjs/core/vchart.js +5 -3
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/interaction/interaction.d.ts +2 -0
- package/cjs/interaction/interaction.js +10 -3
- package/cjs/interaction/interaction.js.map +1 -1
- package/cjs/interaction/interface.d.ts +1 -0
- package/cjs/interaction/interface.js.map +1 -1
- package/cjs/interaction/trigger.js +3 -2
- package/cjs/interaction/trigger.js.map +1 -1
- package/cjs/interaction/zoom/zoomable.d.ts +1 -0
- package/cjs/interaction/zoom/zoomable.js +7 -6
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/model/base-model.d.ts +1 -0
- package/cjs/model/base-model.js +5 -1
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +3 -0
- package/cjs/model/interface.js.map +1 -1
- package/cjs/plugin/chart/media-query/interface/spec.d.ts +4 -4
- package/cjs/plugin/chart/media-query/interface/spec.js.map +1 -1
- package/cjs/plugin/chart/media-query/media-query.d.ts +4 -4
- package/cjs/plugin/chart/media-query/media-query.js +15 -14
- package/cjs/plugin/chart/media-query/media-query.js.map +1 -1
- package/cjs/plugin/chart/media-query/util/action.js +4 -1
- package/cjs/plugin/chart/media-query/util/action.js.map +1 -1
- package/cjs/plugin/chart/media-query/util/filter.d.ts +2 -1
- package/cjs/plugin/chart/media-query/util/filter.js +21 -27
- package/cjs/plugin/chart/media-query/util/filter.js.map +1 -1
- package/cjs/region/region.d.ts +2 -0
- package/cjs/region/region.js +6 -5
- package/cjs/region/region.js.map +1 -1
- package/cjs/series/base/base-series.js +7 -7
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/interface/series.d.ts +2 -0
- package/cjs/series/interface/series.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +1 -0
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/util/spec/clone-deep.d.ts +1 -1
- package/cjs/util/spec/clone-deep.js +2 -2
- package/cjs/util/spec/clone-deep.js.map +1 -1
- package/esm/chart/base/base-chart-transformer.js +14 -6
- package/esm/chart/base/base-chart-transformer.js.map +1 -1
- package/esm/chart/base/base-chart.js +5 -3
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/interface/common.d.ts +2 -0
- package/esm/chart/interface/common.js.map +1 -1
- package/esm/chart/stack.js +2 -1
- package/esm/compile/grammar-item.js +1 -2
- package/esm/component/axis/base-axis.js +2 -2
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/brush/brush.js +5 -3
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/crosshair/base.js +1 -0
- package/esm/component/crosshair/base.js.map +1 -1
- package/esm/component/crosshair/cartesian.js +4 -2
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
- package/esm/component/data-zoom/data-zoom/data-zoom.js +2 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/geo/geo-coordinate.js +1 -1
- package/esm/component/geo/geo-coordinate.js.map +1 -1
- package/esm/component/indicator/indicator.js +1 -0
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/interface/type.d.ts +0 -8
- package/esm/component/interface/type.js +0 -13
- package/esm/component/interface/type.js.map +1 -1
- package/esm/component/label/label.js +1 -1
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/legend/base-legend.js +3 -2
- package/esm/component/legend/base-legend.js.map +1 -1
- package/esm/component/legend/discrete/legend.js.map +1 -1
- package/esm/component/legend/interface.d.ts +1 -0
- package/esm/component/legend/interface.js.map +1 -1
- package/esm/component/player/player.js +7 -3
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/title/title.d.ts +1 -1
- package/esm/component/title/title.js +2 -2
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/tooltip.js +1 -0
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.d.ts +1 -1
- package/esm/core/vchart.js +5 -3
- package/esm/core/vchart.js.map +1 -1
- package/esm/interaction/interaction.d.ts +2 -0
- package/esm/interaction/interaction.js +10 -3
- package/esm/interaction/interaction.js.map +1 -1
- package/esm/interaction/interface.d.ts +1 -0
- package/esm/interaction/interface.js.map +1 -1
- package/esm/interaction/trigger.js +3 -2
- package/esm/interaction/trigger.js.map +1 -1
- package/esm/interaction/zoom/zoomable.d.ts +1 -0
- package/esm/interaction/zoom/zoomable.js +7 -6
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/model/base-model.d.ts +1 -0
- package/esm/model/base-model.js +5 -1
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +3 -0
- package/esm/model/interface.js.map +1 -1
- package/esm/plugin/chart/media-query/interface/spec.d.ts +4 -4
- package/esm/plugin/chart/media-query/interface/spec.js.map +1 -1
- package/esm/plugin/chart/media-query/media-query.d.ts +4 -4
- package/esm/plugin/chart/media-query/media-query.js +15 -14
- package/esm/plugin/chart/media-query/media-query.js.map +1 -1
- package/esm/plugin/chart/media-query/util/action.js +4 -1
- package/esm/plugin/chart/media-query/util/action.js.map +1 -1
- package/esm/plugin/chart/media-query/util/filter.d.ts +2 -1
- package/esm/plugin/chart/media-query/util/filter.js +20 -27
- package/esm/plugin/chart/media-query/util/filter.js.map +1 -1
- package/esm/region/region.d.ts +2 -0
- package/esm/region/region.js +4 -4
- package/esm/region/region.js.map +1 -1
- package/esm/series/base/base-series.js +7 -7
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/interface/series.d.ts +2 -0
- package/esm/series/interface/series.js.map +1 -1
- package/esm/typings/spec/common.d.ts +1 -0
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/util/spec/clone-deep.d.ts +1 -1
- package/esm/util/spec/clone-deep.js +2 -2
- package/esm/util/spec/clone-deep.js.map +1 -1
- package/package.json +12 -12
package/build/index.js
CHANGED
|
@@ -105,34 +105,6 @@
|
|
|
105
105
|
ComponentTypeEnum["poptip"] = "poptip";
|
|
106
106
|
ComponentTypeEnum["customMark"] = "customMark";
|
|
107
107
|
})(ComponentTypeEnum || (ComponentTypeEnum = {}));
|
|
108
|
-
var SimplifiedComponentTypeEnum;
|
|
109
|
-
(function (SimplifiedComponentTypeEnum) {
|
|
110
|
-
SimplifiedComponentTypeEnum["axis"] = "axis";
|
|
111
|
-
SimplifiedComponentTypeEnum["legend"] = "legend";
|
|
112
|
-
SimplifiedComponentTypeEnum["crosshair"] = "crosshair";
|
|
113
|
-
})(SimplifiedComponentTypeEnum || (SimplifiedComponentTypeEnum = {}));
|
|
114
|
-
const axisComponentTypes = [
|
|
115
|
-
ComponentTypeEnum.cartesianAxis,
|
|
116
|
-
ComponentTypeEnum.cartesianBandAxis,
|
|
117
|
-
ComponentTypeEnum.cartesianLinearAxis,
|
|
118
|
-
ComponentTypeEnum.cartesianTimeAxis,
|
|
119
|
-
ComponentTypeEnum.cartesianLogAxis,
|
|
120
|
-
ComponentTypeEnum.cartesianSymlogAxis,
|
|
121
|
-
ComponentTypeEnum.polarAxis,
|
|
122
|
-
ComponentTypeEnum.polarBandAxis,
|
|
123
|
-
ComponentTypeEnum.polarLinearAxis
|
|
124
|
-
];
|
|
125
|
-
const legendComponentTypes = [
|
|
126
|
-
ComponentTypeEnum.discreteLegend,
|
|
127
|
-
ComponentTypeEnum.continuousLegend,
|
|
128
|
-
ComponentTypeEnum.colorLegend,
|
|
129
|
-
ComponentTypeEnum.sizeLegend
|
|
130
|
-
];
|
|
131
|
-
const crosshairComponentTypes = [
|
|
132
|
-
ComponentTypeEnum.crosshair,
|
|
133
|
-
ComponentTypeEnum.cartesianCrosshair,
|
|
134
|
-
ComponentTypeEnum.polarCrosshair
|
|
135
|
-
];
|
|
136
108
|
|
|
137
109
|
function getDefaultExportFromCjs (x) {
|
|
138
110
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -8513,7 +8485,7 @@
|
|
|
8513
8485
|
const EnvContribution = Symbol.for("EnvContribution");
|
|
8514
8486
|
const VGlobal = Symbol.for("VGlobal");
|
|
8515
8487
|
|
|
8516
|
-
var __decorate$
|
|
8488
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
8517
8489
|
var d,
|
|
8518
8490
|
c = arguments.length,
|
|
8519
8491
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -8680,7 +8652,7 @@
|
|
|
8680
8652
|
return this._env || this.setEnv("browser"), this.envContribution.getElementTopLeft(dom, baseWindow);
|
|
8681
8653
|
}
|
|
8682
8654
|
};
|
|
8683
|
-
DefaultGlobal = __decorate$
|
|
8655
|
+
DefaultGlobal = __decorate$1w([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(EnvContribution)), __metadata$18("design:paramtypes", [Object])], DefaultGlobal);
|
|
8684
8656
|
|
|
8685
8657
|
const circleThreshold = tau$1 - 1e-8;
|
|
8686
8658
|
class BoundsContext {
|
|
@@ -10108,7 +10080,7 @@
|
|
|
10108
10080
|
return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
10109
10081
|
}
|
|
10110
10082
|
|
|
10111
|
-
var __decorate$
|
|
10083
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10112
10084
|
var d,
|
|
10113
10085
|
c = arguments.length,
|
|
10114
10086
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10377,9 +10349,9 @@
|
|
|
10377
10349
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
10378
10350
|
}
|
|
10379
10351
|
};
|
|
10380
|
-
ATextMeasure = __decorate$
|
|
10352
|
+
ATextMeasure = __decorate$1v([injectable()], ATextMeasure);
|
|
10381
10353
|
|
|
10382
|
-
var __decorate$
|
|
10354
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10383
10355
|
var d,
|
|
10384
10356
|
c = arguments.length,
|
|
10385
10357
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10388,7 +10360,7 @@
|
|
|
10388
10360
|
};
|
|
10389
10361
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
10390
10362
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
10391
|
-
DefaultTextMeasureContribution = __decorate$
|
|
10363
|
+
DefaultTextMeasureContribution = __decorate$1u([injectable()], DefaultTextMeasureContribution);
|
|
10392
10364
|
|
|
10393
10365
|
const container = new Container();
|
|
10394
10366
|
|
|
@@ -10811,7 +10783,7 @@
|
|
|
10811
10783
|
}
|
|
10812
10784
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
10813
10785
|
|
|
10814
|
-
var __decorate$
|
|
10786
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10815
10787
|
var d,
|
|
10816
10788
|
c = arguments.length,
|
|
10817
10789
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10879,7 +10851,7 @@
|
|
|
10879
10851
|
}, null != option ? option : {}), textSpec);
|
|
10880
10852
|
}
|
|
10881
10853
|
};
|
|
10882
|
-
DefaultGraphicUtil = __decorate$
|
|
10854
|
+
DefaultGraphicUtil = __decorate$1t([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(TextMeasureContribution)), __metadata$17("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
10883
10855
|
var TransformMode;
|
|
10884
10856
|
!function (TransformMode) {
|
|
10885
10857
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -10937,7 +10909,7 @@
|
|
|
10937
10909
|
return this;
|
|
10938
10910
|
}
|
|
10939
10911
|
};
|
|
10940
|
-
DefaultTransformUtil = __decorate$
|
|
10912
|
+
DefaultTransformUtil = __decorate$1t([injectable(), __metadata$17("design:paramtypes", [])], DefaultTransformUtil);
|
|
10941
10913
|
|
|
10942
10914
|
const defaultThemeObj = {
|
|
10943
10915
|
arc: DefaultArcAttribute,
|
|
@@ -15402,7 +15374,7 @@
|
|
|
15402
15374
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
15403
15375
|
|
|
15404
15376
|
var DefaultLayerService_1,
|
|
15405
|
-
__decorate$
|
|
15377
|
+
__decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15406
15378
|
var d,
|
|
15407
15379
|
c = arguments.length,
|
|
15408
15380
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15439,7 +15411,7 @@
|
|
|
15439
15411
|
var _a;
|
|
15440
15412
|
this.tryInit();
|
|
15441
15413
|
let layerMode = this.getRecommendedLayerType(options.layerMode);
|
|
15442
|
-
layerMode = options.canvasId ? "static" : layerMode;
|
|
15414
|
+
layerMode = options.main || options.canvasId ? "static" : layerMode;
|
|
15443
15415
|
const layerHandler = this.getLayerHandler(layerMode),
|
|
15444
15416
|
layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({
|
|
15445
15417
|
main: !1
|
|
@@ -15470,9 +15442,9 @@
|
|
|
15470
15442
|
return "browser" === this.global.env ? 10 : 0;
|
|
15471
15443
|
}
|
|
15472
15444
|
};
|
|
15473
|
-
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
15445
|
+
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1s([injectable(), __metadata$16("design:paramtypes", [])], DefaultLayerService);
|
|
15474
15446
|
|
|
15475
|
-
var __decorate$
|
|
15447
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15476
15448
|
var d,
|
|
15477
15449
|
c = arguments.length,
|
|
15478
15450
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15580,7 +15552,7 @@
|
|
|
15580
15552
|
return this._handler.getTopLeft(baseWindow);
|
|
15581
15553
|
}
|
|
15582
15554
|
};
|
|
15583
|
-
DefaultWindow = __decorate$
|
|
15555
|
+
DefaultWindow = __decorate$1r([injectable(), __metadata$15("design:paramtypes", [])], DefaultWindow);
|
|
15584
15556
|
|
|
15585
15557
|
var coreModule = new ContainerModule(bind => {
|
|
15586
15558
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -18685,6 +18657,41 @@
|
|
|
18685
18657
|
return new Pyramid3d(attributes);
|
|
18686
18658
|
}
|
|
18687
18659
|
|
|
18660
|
+
class ShadowRoot extends Group$1 {
|
|
18661
|
+
constructor(graphic) {
|
|
18662
|
+
super({
|
|
18663
|
+
x: 0,
|
|
18664
|
+
y: 0
|
|
18665
|
+
}), this.type = "shadowroot", this.shadowHost = graphic;
|
|
18666
|
+
}
|
|
18667
|
+
addUpdateBoundTag() {
|
|
18668
|
+
super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
18669
|
+
}
|
|
18670
|
+
addUpdateShapeAndBoundsTag() {
|
|
18671
|
+
super.addUpdateShapeAndBoundsTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
|
|
18672
|
+
}
|
|
18673
|
+
tryUpdateGlobalTransMatrix() {
|
|
18674
|
+
let clearTag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !0;
|
|
18675
|
+
if (this.shouldUpdateGlobalMatrix()) {
|
|
18676
|
+
const m = this.transMatrix;
|
|
18677
|
+
this._globalTransMatrix ? this._globalTransMatrix.setValue(m.a, m.b, m.c, m.d, m.e, m.f) : this._globalTransMatrix = m.clone(), this.doUpdateGlobalMatrix(), clearTag && this.clearUpdateGlobalPositionTag();
|
|
18678
|
+
}
|
|
18679
|
+
return this._globalTransMatrix;
|
|
18680
|
+
}
|
|
18681
|
+
doUpdateGlobalMatrix() {
|
|
18682
|
+
if (this.shadowHost) {
|
|
18683
|
+
const parentMatrix = this.shadowHost.globalTransMatrix;
|
|
18684
|
+
this._globalTransMatrix.multiply(parentMatrix.a, parentMatrix.b, parentMatrix.c, parentMatrix.d, parentMatrix.e, parentMatrix.f);
|
|
18685
|
+
}
|
|
18686
|
+
}
|
|
18687
|
+
tryUpdateGlobalAABBBounds() {
|
|
18688
|
+
return this._globalAABBBounds ? this._globalAABBBounds.setValue(this._AABBBounds.x1, this._AABBBounds.y1, this._AABBBounds.x2, this._AABBBounds.y2) : this._globalAABBBounds = this._AABBBounds.clone(), this.shadowHost && this._globalAABBBounds.transformWithMatrix(this.shadowHost.globalTransMatrix), this._globalAABBBounds;
|
|
18689
|
+
}
|
|
18690
|
+
}
|
|
18691
|
+
function createShadowRoot(graphic) {
|
|
18692
|
+
return new ShadowRoot(graphic);
|
|
18693
|
+
}
|
|
18694
|
+
|
|
18688
18695
|
class DefaultOuterBorderBoundsContribution {
|
|
18689
18696
|
updateBounds(attribute, theme, aabbBounds, graphic) {
|
|
18690
18697
|
const {
|
|
@@ -18780,7 +18787,7 @@
|
|
|
18780
18787
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
18781
18788
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
18782
18789
|
|
|
18783
|
-
var __decorate$
|
|
18790
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18784
18791
|
var d,
|
|
18785
18792
|
c = arguments.length,
|
|
18786
18793
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19367,7 +19374,7 @@
|
|
|
19367
19374
|
return !!visible || (aabbBounds.clear(), !1);
|
|
19368
19375
|
}
|
|
19369
19376
|
};
|
|
19370
|
-
DefaultGraphicService = __decorate$
|
|
19377
|
+
DefaultGraphicService = __decorate$1q([injectable(), __param$K(0, inject(GraphicCreator$1)), __metadata$14("design:paramtypes", [Object])], DefaultGraphicService);
|
|
19371
19378
|
|
|
19372
19379
|
class GraphicCreator {
|
|
19373
19380
|
constructor() {
|
|
@@ -19607,7 +19614,7 @@
|
|
|
19607
19614
|
}), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
19608
19615
|
}
|
|
19609
19616
|
|
|
19610
|
-
var __decorate$
|
|
19617
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19611
19618
|
var d,
|
|
19612
19619
|
c = arguments.length,
|
|
19613
19620
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19665,7 +19672,7 @@
|
|
|
19665
19672
|
});
|
|
19666
19673
|
}
|
|
19667
19674
|
};
|
|
19668
|
-
DefaultBaseInteractiveRenderContribution = __decorate$
|
|
19675
|
+
DefaultBaseInteractiveRenderContribution = __decorate$1p([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(InteractiveSubRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
19669
19676
|
class DefaultBaseTextureRenderContribution {
|
|
19670
19677
|
constructor() {
|
|
19671
19678
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 10;
|
|
@@ -20039,6 +20046,13 @@
|
|
|
20039
20046
|
}
|
|
20040
20047
|
const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
20041
20048
|
|
|
20049
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20050
|
+
var d,
|
|
20051
|
+
c = arguments.length,
|
|
20052
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20053
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20054
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20055
|
+
};
|
|
20042
20056
|
class DefaultRectRenderContribution {
|
|
20043
20057
|
constructor() {
|
|
20044
20058
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -20096,7 +20110,7 @@
|
|
|
20096
20110
|
}
|
|
20097
20111
|
}
|
|
20098
20112
|
}
|
|
20099
|
-
|
|
20113
|
+
let SplitRectBeforeRenderContribution = class {
|
|
20100
20114
|
constructor() {
|
|
20101
20115
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
20102
20116
|
}
|
|
@@ -20106,8 +20120,9 @@
|
|
|
20106
20120
|
} = group.attribute;
|
|
20107
20121
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
20108
20122
|
}
|
|
20109
|
-
}
|
|
20110
|
-
|
|
20123
|
+
};
|
|
20124
|
+
SplitRectBeforeRenderContribution = __decorate$1o([injectable()], SplitRectBeforeRenderContribution);
|
|
20125
|
+
let SplitRectAfterRenderContribution = class {
|
|
20111
20126
|
constructor() {
|
|
20112
20127
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
20113
20128
|
}
|
|
@@ -20125,10 +20140,9 @@
|
|
|
20125
20140
|
context.stroke();
|
|
20126
20141
|
}
|
|
20127
20142
|
}
|
|
20128
|
-
}
|
|
20143
|
+
};
|
|
20144
|
+
SplitRectAfterRenderContribution = __decorate$1o([injectable()], SplitRectAfterRenderContribution);
|
|
20129
20145
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
20130
|
-
const splitRectBeforeRenderContribution = new SplitRectBeforeRenderContribution();
|
|
20131
|
-
const splitRectAfterRenderContribution = new SplitRectAfterRenderContribution();
|
|
20132
20146
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
20133
20147
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
20134
20148
|
|
|
@@ -21203,7 +21217,7 @@
|
|
|
21203
21217
|
};
|
|
21204
21218
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
21205
21219
|
constructor(rectRenderContribitions) {
|
|
21206
|
-
super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution
|
|
21220
|
+
super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(rectRenderContribitions);
|
|
21207
21221
|
}
|
|
21208
21222
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21209
21223
|
var _a;
|
|
@@ -24607,7 +24621,7 @@
|
|
|
24607
24621
|
|
|
24608
24622
|
let loadRectModule = !1;
|
|
24609
24623
|
const rectModule = new ContainerModule(bind => {
|
|
24610
|
-
loadRectModule || (loadRectModule = !0, bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, RectRenderContribution));
|
|
24624
|
+
loadRectModule || (loadRectModule = !0, bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(SplitRectAfterRenderContribution).toSelf(), bind(SplitRectBeforeRenderContribution).toSelf(), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, RectRenderContribution));
|
|
24611
24625
|
});
|
|
24612
24626
|
|
|
24613
24627
|
let loadLineModule = !1;
|
|
@@ -25198,6 +25212,10 @@
|
|
|
25198
25212
|
graphicCreator.RegisterGraphicCreator("text", createText);
|
|
25199
25213
|
}
|
|
25200
25214
|
|
|
25215
|
+
function registerShadowRootGraphic() {
|
|
25216
|
+
graphicCreator.RegisterGraphicCreator("shadowRoot", createShadowRoot);
|
|
25217
|
+
}
|
|
25218
|
+
|
|
25201
25219
|
function registerWrapTextGraphic() {
|
|
25202
25220
|
graphicCreator.RegisterGraphicCreator("wrapText", createWrapText);
|
|
25203
25221
|
}
|
|
@@ -28909,9 +28927,9 @@
|
|
|
28909
28927
|
};
|
|
28910
28928
|
DefaultCanvasGroupPicker = __decorate$Q([injectable()], DefaultCanvasGroupPicker);
|
|
28911
28929
|
|
|
28912
|
-
let loaded$
|
|
28930
|
+
let loaded$q = !1;
|
|
28913
28931
|
var canvasModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28914
|
-
loaded$
|
|
28932
|
+
loaded$q || (loaded$q = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
28915
28933
|
});
|
|
28916
28934
|
|
|
28917
28935
|
const canvasPickerModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29290,10 +29308,10 @@
|
|
|
29290
29308
|
const browserEnvModule = new ContainerModule(bind => {
|
|
29291
29309
|
isBrowserBound || (isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
29292
29310
|
});
|
|
29293
|
-
let loaded$
|
|
29311
|
+
let loaded$p = !1;
|
|
29294
29312
|
function loadBrowserEnv(container) {
|
|
29295
29313
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
29296
|
-
loaded$
|
|
29314
|
+
loaded$p || (loaded$p = !0, container.load(browserEnvModule), container.load(browserCanvasModule), container.load(browserWindowModule), loadPicker && loadCanvasPicker(container));
|
|
29297
29315
|
}
|
|
29298
29316
|
|
|
29299
29317
|
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -29557,9 +29575,9 @@
|
|
|
29557
29575
|
};
|
|
29558
29576
|
DefaultMathPickerService = __decorate$K([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(MathPickerContribution)), __param$r(1, inject(ContributionProvider)), __param$r(1, named(PickItemInterceptor)), __metadata$A("design:paramtypes", [Object, Object])], DefaultMathPickerService);
|
|
29559
29577
|
|
|
29560
|
-
let loaded$
|
|
29578
|
+
let loaded$o = !1;
|
|
29561
29579
|
var mathModule = new ContainerModule(bind => {
|
|
29562
|
-
loaded$
|
|
29580
|
+
loaded$o || (loaded$o = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
29563
29581
|
});
|
|
29564
29582
|
|
|
29565
29583
|
const mathPickerModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -29616,7 +29634,7 @@
|
|
|
29616
29634
|
return this.freeCanvasList.length;
|
|
29617
29635
|
}
|
|
29618
29636
|
getStaticCanvasCount() {
|
|
29619
|
-
return
|
|
29637
|
+
return 9999;
|
|
29620
29638
|
}
|
|
29621
29639
|
configure(service, params) {
|
|
29622
29640
|
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList));
|
|
@@ -29679,10 +29697,10 @@
|
|
|
29679
29697
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
29680
29698
|
isFeishuBound || (isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
29681
29699
|
});
|
|
29682
|
-
let loaded$
|
|
29700
|
+
let loaded$n = !1;
|
|
29683
29701
|
function loadFeishuEnv(container) {
|
|
29684
29702
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
29685
|
-
loaded$
|
|
29703
|
+
loaded$n || (loaded$n = !0, container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule), loadPicker && loadMathPicker(container));
|
|
29686
29704
|
}
|
|
29687
29705
|
|
|
29688
29706
|
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -29993,7 +30011,7 @@
|
|
|
29993
30011
|
return this.freeCanvasList.length;
|
|
29994
30012
|
}
|
|
29995
30013
|
getStaticCanvasCount() {
|
|
29996
|
-
return
|
|
30014
|
+
return 9999;
|
|
29997
30015
|
}
|
|
29998
30016
|
loadImage(url) {
|
|
29999
30017
|
return createImageElement(url, !1).then(img => ({
|
|
@@ -30052,10 +30070,10 @@
|
|
|
30052
30070
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
30053
30071
|
isLynxBound || (isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
30054
30072
|
});
|
|
30055
|
-
let loaded$
|
|
30073
|
+
let loaded$m = !1;
|
|
30056
30074
|
function loadLynxEnv(container) {
|
|
30057
30075
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
30058
|
-
loaded$
|
|
30076
|
+
loaded$m || (loaded$m = !0, container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule), loadPicker && loadMathPicker(container));
|
|
30059
30077
|
}
|
|
30060
30078
|
|
|
30061
30079
|
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -30302,9 +30320,9 @@
|
|
|
30302
30320
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
30303
30321
|
isNodeBound || (isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
30304
30322
|
});
|
|
30305
|
-
let loaded$
|
|
30323
|
+
let loaded$l = !1;
|
|
30306
30324
|
function loadNodeEnv(container) {
|
|
30307
|
-
loaded$
|
|
30325
|
+
loaded$l || (loaded$l = !0, container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule));
|
|
30308
30326
|
}
|
|
30309
30327
|
|
|
30310
30328
|
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -30619,7 +30637,7 @@
|
|
|
30619
30637
|
return this.freeCanvasList.length;
|
|
30620
30638
|
}
|
|
30621
30639
|
getStaticCanvasCount() {
|
|
30622
|
-
return
|
|
30640
|
+
return 9999;
|
|
30623
30641
|
}
|
|
30624
30642
|
configure(service, params) {
|
|
30625
30643
|
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$1(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.taro, params.pixelRatio), this.taro = params.taro, this.pixelRatio = params.pixelRatio);
|
|
@@ -30694,10 +30712,10 @@
|
|
|
30694
30712
|
const taroEnvModule = new ContainerModule(bind => {
|
|
30695
30713
|
isTaroBound || (isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
30696
30714
|
});
|
|
30697
|
-
let loaded$
|
|
30715
|
+
let loaded$k = !1;
|
|
30698
30716
|
function loadTaroEnv(container) {
|
|
30699
30717
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
30700
|
-
loaded$
|
|
30718
|
+
loaded$k || (loaded$k = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
|
|
30701
30719
|
}
|
|
30702
30720
|
|
|
30703
30721
|
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -31016,18 +31034,18 @@
|
|
|
31016
31034
|
const wxEnvModule = new ContainerModule(bind => {
|
|
31017
31035
|
isWxBound || (isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
31018
31036
|
});
|
|
31019
|
-
let loaded$
|
|
31037
|
+
let loaded$j = !1;
|
|
31020
31038
|
function loadWxEnv(container) {
|
|
31021
31039
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
31022
|
-
loaded$
|
|
31040
|
+
loaded$j || (loaded$j = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
|
|
31023
31041
|
}
|
|
31024
31042
|
|
|
31025
31043
|
function loadAllEnv(container) {
|
|
31026
31044
|
loadAllModule(container);
|
|
31027
31045
|
}
|
|
31028
|
-
let loaded$
|
|
31046
|
+
let loaded$i = !1;
|
|
31029
31047
|
function loadAllModule(container) {
|
|
31030
|
-
loaded$
|
|
31048
|
+
loaded$i || (loaded$i = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", (lastEnv, env) => {
|
|
31031
31049
|
"browser" !== env && loadMathPicker(container);
|
|
31032
31050
|
}));
|
|
31033
31051
|
}
|
|
@@ -32331,74 +32349,79 @@
|
|
|
32331
32349
|
|
|
32332
32350
|
const browser = isBrowserEnv();
|
|
32333
32351
|
|
|
32334
|
-
let loaded$
|
|
32352
|
+
let loaded$h = !1;
|
|
32335
32353
|
function registerArc() {
|
|
32336
|
-
loaded$
|
|
32354
|
+
loaded$h || (loaded$h = !0, registerArcGraphic$1(), container.load(arcModule), container.load(browser ? arcCanvasPickModule : arcMathPickModule));
|
|
32337
32355
|
}
|
|
32338
32356
|
|
|
32339
|
-
let loaded$
|
|
32357
|
+
let loaded$g = !1;
|
|
32340
32358
|
function registerArc3d() {
|
|
32341
|
-
loaded$
|
|
32359
|
+
loaded$g || (loaded$g = !0, registerArc3dGraphic$1(), container.load(arc3dModule), container.load(arc3dCanvasPickModule));
|
|
32342
32360
|
}
|
|
32343
32361
|
|
|
32344
|
-
let loaded$
|
|
32362
|
+
let loaded$f = !1;
|
|
32345
32363
|
function registerArea() {
|
|
32346
|
-
loaded$
|
|
32364
|
+
loaded$f || (loaded$f = !0, registerAreaGraphic$1(), container.load(areaModule), container.load(browser ? areaCanvasPickModule : areaMathPickModule));
|
|
32347
32365
|
}
|
|
32348
32366
|
|
|
32349
|
-
let loaded$
|
|
32367
|
+
let loaded$e = !1;
|
|
32350
32368
|
function registerCircle() {
|
|
32351
|
-
loaded$
|
|
32369
|
+
loaded$e || (loaded$e = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser ? circleCanvasPickModule : circleMathPickModule));
|
|
32352
32370
|
}
|
|
32353
32371
|
|
|
32354
|
-
let loaded$
|
|
32372
|
+
let loaded$d = !1;
|
|
32355
32373
|
function registerGlyph() {
|
|
32356
|
-
loaded$
|
|
32374
|
+
loaded$d || (loaded$d = !0, registerGlyphGraphic$1(), container.load(glyphModule), container.load(browser ? glyphCanvasPickModule : glyphMathPickModule));
|
|
32357
32375
|
}
|
|
32358
32376
|
|
|
32359
|
-
let loaded$
|
|
32377
|
+
let loaded$c = !1;
|
|
32360
32378
|
function registerGroup() {
|
|
32361
|
-
loaded$
|
|
32379
|
+
loaded$c || (loaded$c = !0, registerGroupGraphic$1());
|
|
32362
32380
|
}
|
|
32363
32381
|
|
|
32364
|
-
let loaded$
|
|
32382
|
+
let loaded$b = !1;
|
|
32365
32383
|
function registerImage() {
|
|
32366
|
-
loaded$
|
|
32384
|
+
loaded$b || (loaded$b = !0, registerImageGraphic$1(), container.load(imageModule), container.load(browser ? imageCanvasPickModule : imageMathPickModule));
|
|
32367
32385
|
}
|
|
32368
32386
|
|
|
32369
|
-
let loaded$
|
|
32387
|
+
let loaded$a = !1;
|
|
32370
32388
|
function registerLine() {
|
|
32371
|
-
loaded$
|
|
32389
|
+
loaded$a || (loaded$a = !0, registerLineGraphic$1(), container.load(lineModule), container.load(browser ? lineCanvasPickModule : lineMathPickModule));
|
|
32372
32390
|
}
|
|
32373
32391
|
|
|
32374
|
-
let loaded$
|
|
32392
|
+
let loaded$9 = !1;
|
|
32375
32393
|
function registerPath() {
|
|
32376
|
-
loaded$
|
|
32394
|
+
loaded$9 || (loaded$9 = !0, registerPathGraphic$1(), container.load(pathModule), container.load(browser ? pathCanvasPickModule : pathMathPickModule));
|
|
32377
32395
|
}
|
|
32378
32396
|
|
|
32379
|
-
let loaded$
|
|
32397
|
+
let loaded$8 = !1;
|
|
32380
32398
|
function registerPolygon() {
|
|
32381
|
-
loaded$
|
|
32399
|
+
loaded$8 || (loaded$8 = !0, registerPolygonGraphic$1(), container.load(polygonModule), container.load(browser ? polygonCanvasPickModule : polygonMathPickModule));
|
|
32382
32400
|
}
|
|
32383
32401
|
|
|
32384
|
-
let loaded$
|
|
32402
|
+
let loaded$7 = !1;
|
|
32385
32403
|
function registerPyramid3d() {
|
|
32386
|
-
loaded$
|
|
32404
|
+
loaded$7 || (loaded$7 = !0, registerPyramid3dGraphic$1(), container.load(pyramid3dModule), container.load(pyramid3dCanvasPickModule));
|
|
32387
32405
|
}
|
|
32388
32406
|
|
|
32389
|
-
let loaded$
|
|
32407
|
+
let loaded$6 = !1;
|
|
32390
32408
|
function registerRect() {
|
|
32391
|
-
loaded$
|
|
32409
|
+
loaded$6 || (loaded$6 = !0, registerRectGraphic$1(), container.load(rectModule), container.load(browser ? rectCanvasPickModule : rectMathPickModule));
|
|
32392
32410
|
}
|
|
32393
32411
|
|
|
32394
|
-
let loaded$
|
|
32412
|
+
let loaded$5 = !1;
|
|
32395
32413
|
function registerRect3d() {
|
|
32396
|
-
loaded$
|
|
32414
|
+
loaded$5 || (loaded$5 = !0, registerRect3dGraphic$1(), container.load(rect3dModule), container.load(rect3dCanvasPickModule));
|
|
32397
32415
|
}
|
|
32398
32416
|
|
|
32399
|
-
let loaded$
|
|
32417
|
+
let loaded$4 = !1;
|
|
32400
32418
|
function registerRichtext() {
|
|
32401
|
-
loaded$
|
|
32419
|
+
loaded$4 || (loaded$4 = !0, registerRichtextGraphic(), container.load(richtextModule), container.load(browser ? richtextCanvasPickModule : richTextMathPickModule));
|
|
32420
|
+
}
|
|
32421
|
+
|
|
32422
|
+
let loaded$3 = !1;
|
|
32423
|
+
function registerShadowRoot() {
|
|
32424
|
+
loaded$3 || (loaded$3 = !0, registerShadowRootGraphic());
|
|
32402
32425
|
}
|
|
32403
32426
|
|
|
32404
32427
|
let loaded$2 = !1;
|
|
@@ -36263,11 +36286,11 @@
|
|
|
36263
36286
|
labelLength += space;
|
|
36264
36287
|
const layerCount = Object.keys(this.axisLabelLayerSize).length;
|
|
36265
36288
|
if (0 === axisVector[1]) {
|
|
36266
|
-
const labelBoundsHeight = this.axisLabelsContainer.AABBBounds.height();
|
|
36289
|
+
const labelBoundsHeight = this.axisLabelsContainer ? this.axisLabelsContainer.AABBBounds.height() : 0;
|
|
36267
36290
|
isFinite(labelBoundsHeight) ? labelLength += labelBoundsHeight + (layerCount - 1) * space : labelLength = 0;
|
|
36268
36291
|
} else {
|
|
36269
36292
|
if (0 === axisVector[0]) {
|
|
36270
|
-
const boundsWidth = this.axisLabelsContainer.AABBBounds.width();
|
|
36293
|
+
const boundsWidth = this.axisLabelsContainer ? this.axisLabelsContainer.AABBBounds.width() : 0;
|
|
36271
36294
|
isFinite(boundsWidth) ? labelLength += boundsWidth + (layerCount - 1) * space : labelLength = 0;
|
|
36272
36295
|
} else Object.keys(this.axisLabelLayerSize).forEach((layer, index) => {
|
|
36273
36296
|
labelLength += this.axisLabelLayerSize[layer].width + (index > 0 ? space : 0);
|
|
@@ -46198,55 +46221,55 @@
|
|
|
46198
46221
|
}
|
|
46199
46222
|
|
|
46200
46223
|
const registerArcGraphic = () => {
|
|
46201
|
-
registerArc(), Factory$1.registerGraphic(GrammarMarkType.arc, createArc);
|
|
46224
|
+
registerShadowRoot(), registerArc(), Factory$1.registerGraphic(GrammarMarkType.arc, createArc);
|
|
46202
46225
|
};
|
|
46203
46226
|
const registerArc3dGraphic = () => {
|
|
46204
|
-
registerArc3d(), Factory$1.registerGraphic(GrammarMarkType.arc3d, createArc3d);
|
|
46227
|
+
registerShadowRoot(), registerArc3d(), Factory$1.registerGraphic(GrammarMarkType.arc3d, createArc3d);
|
|
46205
46228
|
};
|
|
46206
46229
|
const registerPyramid3dGraphic = () => {
|
|
46207
|
-
registerPyramid3d(), Factory$1.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);
|
|
46230
|
+
registerShadowRoot(), registerPyramid3d(), Factory$1.registerGraphic(GrammarMarkType.pyramid3d, createPyramid3d);
|
|
46208
46231
|
};
|
|
46209
46232
|
const registerAreaGraphic = () => {
|
|
46210
|
-
registerArea(), Factory$1.registerGraphic(GrammarMarkType.area, createArea);
|
|
46233
|
+
registerShadowRoot(), registerArea(), Factory$1.registerGraphic(GrammarMarkType.area, createArea);
|
|
46211
46234
|
};
|
|
46212
46235
|
const registerGroupGraphic = () => {
|
|
46213
|
-
registerGroup(), Factory$1.registerGraphic(GrammarMarkType.group, createGroup);
|
|
46236
|
+
registerShadowRoot(), registerGroup(), Factory$1.registerGraphic(GrammarMarkType.group, createGroup);
|
|
46214
46237
|
};
|
|
46215
46238
|
const registerImageGraphic = () => {
|
|
46216
|
-
registerImage(), Factory$1.registerGraphic(GrammarMarkType.image, createImage);
|
|
46239
|
+
registerShadowRoot(), registerImage(), Factory$1.registerGraphic(GrammarMarkType.image, createImage);
|
|
46217
46240
|
};
|
|
46218
46241
|
const registerLineGraphic = () => {
|
|
46219
|
-
registerLine(), Factory$1.registerGraphic(GrammarMarkType.line, createLine);
|
|
46242
|
+
registerShadowRoot(), registerLine(), Factory$1.registerGraphic(GrammarMarkType.line, createLine);
|
|
46220
46243
|
};
|
|
46221
46244
|
const registerPathGraphic = () => {
|
|
46222
|
-
registerPath(), Factory$1.registerGraphic(GrammarMarkType.path, createPath);
|
|
46245
|
+
registerShadowRoot(), registerPath(), Factory$1.registerGraphic(GrammarMarkType.path, createPath);
|
|
46223
46246
|
};
|
|
46224
46247
|
const registerRectGraphic = () => {
|
|
46225
|
-
registerRect(), Factory$1.registerGraphic(GrammarMarkType.rect, createRect);
|
|
46248
|
+
registerShadowRoot(), registerRect(), Factory$1.registerGraphic(GrammarMarkType.rect, createRect);
|
|
46226
46249
|
};
|
|
46227
46250
|
const registerRect3dGraphic = () => {
|
|
46228
|
-
registerRect3d(), Factory$1.registerGraphic(GrammarMarkType.rect3d, createRect3d);
|
|
46251
|
+
registerShadowRoot(), registerRect3d(), Factory$1.registerGraphic(GrammarMarkType.rect3d, createRect3d);
|
|
46229
46252
|
};
|
|
46230
46253
|
const registerRuleGraphic = () => {
|
|
46231
|
-
registerLine(), Factory$1.registerGraphic(GrammarMarkType.rule, createLine);
|
|
46254
|
+
registerShadowRoot(), registerLine(), Factory$1.registerGraphic(GrammarMarkType.rule, createLine);
|
|
46232
46255
|
};
|
|
46233
46256
|
const registerSymbolGraphic = () => {
|
|
46234
|
-
registerSymbol(), Factory$1.registerGraphic(GrammarMarkType.symbol, createSymbol);
|
|
46257
|
+
registerShadowRoot(), registerSymbol(), Factory$1.registerGraphic(GrammarMarkType.symbol, createSymbol);
|
|
46235
46258
|
};
|
|
46236
46259
|
const registerTextGraphic = () => {
|
|
46237
|
-
registerText(), registerRichtext(), Factory$1.registerGraphic(GrammarMarkType.text, createText);
|
|
46260
|
+
registerShadowRoot(), registerText(), registerRichtext(), Factory$1.registerGraphic(GrammarMarkType.text, createText);
|
|
46238
46261
|
};
|
|
46239
46262
|
const registerPolygonGraphic = () => {
|
|
46240
|
-
registerPolygon(), Factory$1.registerGraphic(GrammarMarkType.polygon, createPolygon);
|
|
46263
|
+
registerShadowRoot(), registerPolygon(), Factory$1.registerGraphic(GrammarMarkType.polygon, createPolygon);
|
|
46241
46264
|
};
|
|
46242
46265
|
const registerRichTextGraphic = () => {
|
|
46243
|
-
registerRichtext(), Factory$1.registerGraphic(GrammarMarkType.richtext, createRichText);
|
|
46266
|
+
registerShadowRoot(), registerRichtext(), Factory$1.registerGraphic(GrammarMarkType.richtext, createRichText);
|
|
46244
46267
|
};
|
|
46245
46268
|
const registerCellGraphic = () => {
|
|
46246
|
-
registerSymbol(), Factory$1.registerGraphic(GrammarMarkType.cell, createSymbol);
|
|
46269
|
+
registerShadowRoot(), registerSymbol(), Factory$1.registerGraphic(GrammarMarkType.cell, createSymbol);
|
|
46247
46270
|
};
|
|
46248
46271
|
const registerGlyphGraphic = () => {
|
|
46249
|
-
registerGlyph(), Factory$1.registerGraphic(GrammarMarkType.glyph, createGlyph);
|
|
46272
|
+
registerShadowRoot(), registerGlyph(), Factory$1.registerGraphic(GrammarMarkType.glyph, createGlyph);
|
|
46250
46273
|
};
|
|
46251
46274
|
|
|
46252
46275
|
const scaleIn$1 = computeCenter => (element, options, animationParameters) => {
|
|
@@ -50307,7 +50330,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
50307
50330
|
return {};
|
|
50308
50331
|
}
|
|
50309
50332
|
|
|
50310
|
-
function cloneDeepSpec(spec) {
|
|
50333
|
+
function cloneDeepSpec(spec, excludeKeys = ['data']) {
|
|
50311
50334
|
const value = spec;
|
|
50312
50335
|
let result;
|
|
50313
50336
|
if (!isValid$1(value) || typeof value !== 'object') {
|
|
@@ -50339,7 +50362,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
50339
50362
|
while (++index < (props || value).length) {
|
|
50340
50363
|
const key = props ? props[index] : index;
|
|
50341
50364
|
const subValue = value[key];
|
|
50342
|
-
|
|
50365
|
+
if (excludeKeys === null || excludeKeys === void 0 ? void 0 : excludeKeys.includes(key.toString())) {
|
|
50366
|
+
result[key] = subValue;
|
|
50367
|
+
}
|
|
50368
|
+
else {
|
|
50369
|
+
result[key] = cloneDeepSpec(subValue, excludeKeys);
|
|
50370
|
+
}
|
|
50343
50371
|
}
|
|
50344
50372
|
}
|
|
50345
50373
|
return result;
|
|
@@ -52740,10 +52768,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52740
52768
|
constructor() {
|
|
52741
52769
|
this._stateMarks = new Map();
|
|
52742
52770
|
this._stateElements = new Map();
|
|
52771
|
+
this._disableTriggerEvent = false;
|
|
52743
52772
|
}
|
|
52744
52773
|
static markStateEnable(mark, state) {
|
|
52745
52774
|
return !isEmpty(mark.stateStyle[state]);
|
|
52746
52775
|
}
|
|
52776
|
+
setDisableActiveEffect(disable) {
|
|
52777
|
+
this._disableTriggerEvent = disable;
|
|
52778
|
+
}
|
|
52747
52779
|
registerMark(state, mark) {
|
|
52748
52780
|
var _a;
|
|
52749
52781
|
if (!this._stateMarks.has(state)) {
|
|
@@ -52767,6 +52799,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52767
52799
|
}
|
|
52768
52800
|
exchangeEventElement(stateValue, element) {
|
|
52769
52801
|
var _a;
|
|
52802
|
+
if (this._disableTriggerEvent) {
|
|
52803
|
+
return;
|
|
52804
|
+
}
|
|
52770
52805
|
const reState = stateToReverse(stateValue);
|
|
52771
52806
|
(_a = this._stateElements.get(stateValue)) === null || _a === void 0 ? void 0 : _a.forEach(e => {
|
|
52772
52807
|
e.removeState(stateValue);
|
|
@@ -52784,6 +52819,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52784
52819
|
}
|
|
52785
52820
|
removeEventElement(stateValue, element) {
|
|
52786
52821
|
var _a, _b;
|
|
52822
|
+
if (this._disableTriggerEvent) {
|
|
52823
|
+
return;
|
|
52824
|
+
}
|
|
52787
52825
|
element.removeState(stateValue);
|
|
52788
52826
|
const list = (_b = (_a = this._stateElements.get(stateValue)) === null || _a === void 0 ? void 0 : _a.filter(e => e !== element)) !== null && _b !== void 0 ? _b : [];
|
|
52789
52827
|
this._stateElements.set(stateValue, list);
|
|
@@ -52799,6 +52837,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52799
52837
|
}
|
|
52800
52838
|
addEventElement(stateValue, element) {
|
|
52801
52839
|
var _a;
|
|
52840
|
+
if (this._disableTriggerEvent) {
|
|
52841
|
+
return;
|
|
52842
|
+
}
|
|
52802
52843
|
if (!element.getStates().includes(stateValue)) {
|
|
52803
52844
|
element.addState(stateValue);
|
|
52804
52845
|
}
|
|
@@ -52808,6 +52849,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52808
52849
|
}
|
|
52809
52850
|
clearEventElement(stateValue, clearReverse) {
|
|
52810
52851
|
var _a;
|
|
52852
|
+
if (this._disableTriggerEvent) {
|
|
52853
|
+
return;
|
|
52854
|
+
}
|
|
52811
52855
|
(_a = this._stateElements.get(stateValue)) === null || _a === void 0 ? void 0 : _a.forEach(e => {
|
|
52812
52856
|
e.removeState(stateValue);
|
|
52813
52857
|
});
|
|
@@ -52820,6 +52864,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52820
52864
|
}
|
|
52821
52865
|
}
|
|
52822
52866
|
reverseEventElement(stateValue) {
|
|
52867
|
+
if (this._disableTriggerEvent) {
|
|
52868
|
+
return;
|
|
52869
|
+
}
|
|
52823
52870
|
const state = stateToReverse(stateValue);
|
|
52824
52871
|
if (!state) {
|
|
52825
52872
|
return;
|
|
@@ -53159,6 +53206,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53159
53206
|
getSpecPath() {
|
|
53160
53207
|
return this._option.specPath;
|
|
53161
53208
|
}
|
|
53209
|
+
getSpecInfoPath() {
|
|
53210
|
+
var _a;
|
|
53211
|
+
return (_a = this._option.specInfoPath) !== null && _a !== void 0 ? _a : this._option.specPath;
|
|
53212
|
+
}
|
|
53162
53213
|
getData() {
|
|
53163
53214
|
return this._data;
|
|
53164
53215
|
}
|
|
@@ -53342,7 +53393,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53342
53393
|
getSpecInfo() {
|
|
53343
53394
|
var _a, _b, _c;
|
|
53344
53395
|
const specInfo = (_c = (_b = (_a = this._option).getSpecInfo) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : {};
|
|
53345
|
-
return getProperty(specInfo, this.
|
|
53396
|
+
return getProperty(specInfo, this.getSpecInfoPath());
|
|
53346
53397
|
}
|
|
53347
53398
|
}
|
|
53348
53399
|
|
|
@@ -53800,6 +53851,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53800
53851
|
super(spec, ctx);
|
|
53801
53852
|
this.transformerConstructor = RegionSpecTransformer;
|
|
53802
53853
|
this.modelType = 'region';
|
|
53854
|
+
this.specKey = 'region';
|
|
53803
53855
|
this.type = Region.type;
|
|
53804
53856
|
this._series = [];
|
|
53805
53857
|
this.layoutType = 'region';
|
|
@@ -53828,6 +53880,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53828
53880
|
getCompiler: ctx.getCompiler
|
|
53829
53881
|
});
|
|
53830
53882
|
}
|
|
53883
|
+
this.interaction.setDisableActiveEffect(this._option.disableTriggerEvent);
|
|
53831
53884
|
}
|
|
53832
53885
|
_getClipDefaultValue() {
|
|
53833
53886
|
var _a, _b, _c, _d;
|
|
@@ -54033,6 +54086,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54033
54086
|
}
|
|
54034
54087
|
Region.type = 'region';
|
|
54035
54088
|
Region.transformerConstructor = RegionSpecTransformer;
|
|
54089
|
+
Region.specKey = 'region';
|
|
54036
54090
|
|
|
54037
54091
|
function getPositionItems(items) {
|
|
54038
54092
|
const startItems = [];
|
|
@@ -56212,7 +56266,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56212
56266
|
if (!this._chartSpecTransformer) {
|
|
56213
56267
|
this._chartSpecTransformer = Factory.createChartSpecTransformer(this._spec.type, {
|
|
56214
56268
|
type: this._spec.type,
|
|
56215
|
-
getTheme: () => { var _a; return (_a = this._currentTheme) !== null && _a !== void 0 ? _a : {}; }
|
|
56269
|
+
getTheme: () => { var _a; return (_a = this._currentTheme) !== null && _a !== void 0 ? _a : {}; },
|
|
56270
|
+
animation: this._option.animation
|
|
56216
56271
|
});
|
|
56217
56272
|
}
|
|
56218
56273
|
this._chartSpecTransformer.transformSpec(this._spec);
|
|
@@ -56253,7 +56308,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56253
56308
|
getTheme: () => { var _a; return (_a = this._currentTheme) !== null && _a !== void 0 ? _a : {}; },
|
|
56254
56309
|
getSpecInfo: () => { var _a; return (_a = this._specInfo) !== null && _a !== void 0 ? _a : {}; },
|
|
56255
56310
|
layout: this._option.layout,
|
|
56256
|
-
onError: this._onError
|
|
56311
|
+
onError: this._onError,
|
|
56312
|
+
disableTriggerEvent: this._option.disableTriggerEvent === true
|
|
56257
56313
|
});
|
|
56258
56314
|
if (!chart) {
|
|
56259
56315
|
(_b = this._option) === null || _b === void 0 ? void 0 : _b.onError('init chart fail');
|
|
@@ -56352,7 +56408,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56352
56408
|
this._reCompile(updateSpecResult);
|
|
56353
56409
|
return this._beforeRender(option);
|
|
56354
56410
|
}
|
|
56355
|
-
_reCompile(updateResult) {
|
|
56411
|
+
_reCompile(updateResult, morphConfig) {
|
|
56356
56412
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
56357
56413
|
if (updateResult.reMake) {
|
|
56358
56414
|
this._releaseData();
|
|
@@ -57246,10 +57302,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57246
57302
|
if (isNil$1(filter)) {
|
|
57247
57303
|
return true;
|
|
57248
57304
|
}
|
|
57249
|
-
|
|
57250
|
-
|
|
57251
|
-
|
|
57252
|
-
|
|
57305
|
+
return array(filter).some(f => {
|
|
57306
|
+
if (isFunction$1(f)) {
|
|
57307
|
+
return f(info, action, query);
|
|
57308
|
+
}
|
|
57309
|
+
return includeSpec(info.spec, f);
|
|
57310
|
+
});
|
|
57253
57311
|
}) });
|
|
57254
57312
|
};
|
|
57255
57313
|
const executeMediaQueryActionFilterType = (filterType = 'chart', chartSpec, globalInstance) => {
|
|
@@ -57304,44 +57362,36 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57304
57362
|
}
|
|
57305
57363
|
});
|
|
57306
57364
|
}
|
|
57307
|
-
else if (Object.values(SimplifiedComponentTypeEnum).includes(filterType)) {
|
|
57308
|
-
result.modelType = 'component';
|
|
57309
|
-
let componentTypes;
|
|
57310
|
-
switch (filterType) {
|
|
57311
|
-
case SimplifiedComponentTypeEnum.axis:
|
|
57312
|
-
componentTypes = axisComponentTypes;
|
|
57313
|
-
result.specKey = 'axes';
|
|
57314
|
-
break;
|
|
57315
|
-
case SimplifiedComponentTypeEnum.legend:
|
|
57316
|
-
componentTypes = legendComponentTypes;
|
|
57317
|
-
result.specKey = 'legends';
|
|
57318
|
-
break;
|
|
57319
|
-
case SimplifiedComponentTypeEnum.crosshair:
|
|
57320
|
-
componentTypes = crosshairComponentTypes;
|
|
57321
|
-
result.specKey = 'crosshair';
|
|
57322
|
-
}
|
|
57323
|
-
const { specKey } = result;
|
|
57324
|
-
const infoList = array((_d = chartSpecInfo[specKey]) !== null && _d !== void 0 ? _d : []);
|
|
57325
|
-
array((_e = chartSpec[specKey]) !== null && _e !== void 0 ? _e : []).forEach((componentSpec, i) => {
|
|
57326
|
-
const specInfo = infoList[i];
|
|
57327
|
-
if (componentTypes === null || componentTypes === void 0 ? void 0 : componentTypes.includes(specInfo.type)) {
|
|
57328
|
-
result.modelInfo.push(Object.assign(Object.assign({}, specInfo), { spec: componentSpec }));
|
|
57329
|
-
}
|
|
57330
|
-
});
|
|
57331
|
-
}
|
|
57332
57365
|
else if (Object.values(ComponentTypeEnum).includes(filterType)) {
|
|
57333
57366
|
result.modelType = 'component';
|
|
57334
57367
|
result.type = filterType;
|
|
57335
|
-
result.specKey = (
|
|
57368
|
+
result.specKey = (_d = Factory.getComponentInKey(filterType)) === null || _d === void 0 ? void 0 : _d.specKey;
|
|
57336
57369
|
const { specKey } = result;
|
|
57337
|
-
const infoList = array((
|
|
57338
|
-
(
|
|
57370
|
+
const infoList = array((_e = chartSpecInfo[specKey]) !== null && _e !== void 0 ? _e : []);
|
|
57371
|
+
(_g = array((_f = chartSpec[specKey]) !== null && _f !== void 0 ? _f : [])) === null || _g === void 0 ? void 0 : _g.forEach((componentSpec, i) => {
|
|
57339
57372
|
const specInfo = infoList[i];
|
|
57340
57373
|
if (specInfo.type === filterType) {
|
|
57341
57374
|
result.modelInfo.push(Object.assign(Object.assign({}, specInfo), { spec: componentSpec }));
|
|
57342
57375
|
}
|
|
57343
57376
|
});
|
|
57344
57377
|
}
|
|
57378
|
+
else {
|
|
57379
|
+
const componentTypes = Factory.getComponents()
|
|
57380
|
+
.filter(({ cmp }) => cmp.specKey === filterType)
|
|
57381
|
+
.map(({ cmp }) => cmp.type);
|
|
57382
|
+
if (componentTypes.length > 0) {
|
|
57383
|
+
result.modelType = 'component';
|
|
57384
|
+
const specKey = filterType;
|
|
57385
|
+
result.specKey = specKey;
|
|
57386
|
+
const infoList = array((_h = chartSpecInfo[specKey]) !== null && _h !== void 0 ? _h : []);
|
|
57387
|
+
array((_j = chartSpec[specKey]) !== null && _j !== void 0 ? _j : []).forEach((componentSpec, i) => {
|
|
57388
|
+
const specInfo = infoList[i];
|
|
57389
|
+
if (componentTypes.includes(specInfo.type)) {
|
|
57390
|
+
result.modelInfo.push(Object.assign(Object.assign({}, specInfo), { spec: componentSpec }));
|
|
57391
|
+
}
|
|
57392
|
+
});
|
|
57393
|
+
}
|
|
57394
|
+
}
|
|
57345
57395
|
return result;
|
|
57346
57396
|
};
|
|
57347
57397
|
|
|
@@ -57358,7 +57408,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57358
57408
|
const newSpec = isFunction$1(spec) ? spec(modelInfo, action, query) : spec;
|
|
57359
57409
|
for (const { spec, specPath } of modelInfo) {
|
|
57360
57410
|
if (isChart) {
|
|
57361
|
-
return
|
|
57411
|
+
return {
|
|
57412
|
+
chartSpec: mergeSpec(targetSpec, newSpec),
|
|
57413
|
+
hasChanged: true
|
|
57414
|
+
};
|
|
57362
57415
|
}
|
|
57363
57416
|
const modelSpec = mergeSpec({}, spec, newSpec);
|
|
57364
57417
|
setProperty(targetSpec, specPath, modelSpec);
|
|
@@ -57433,14 +57486,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57433
57486
|
this._initialized = true;
|
|
57434
57487
|
}
|
|
57435
57488
|
onBeforeResize(service, width, height) {
|
|
57436
|
-
this.
|
|
57489
|
+
if (!this._initialized) {
|
|
57490
|
+
return;
|
|
57491
|
+
}
|
|
57492
|
+
this._changeSize(width, height, true, false);
|
|
57437
57493
|
}
|
|
57438
57494
|
onAfterChartSpecTransform(service, chartSpec, actionSource) {
|
|
57495
|
+
if (!this._initialized) {
|
|
57496
|
+
return;
|
|
57497
|
+
}
|
|
57439
57498
|
if (actionSource === 'setCurrentTheme') {
|
|
57440
|
-
this.
|
|
57499
|
+
this._reInit(false, false);
|
|
57441
57500
|
}
|
|
57442
57501
|
}
|
|
57443
57502
|
onBeforeInitChart(service, chartSpec, actionSource) {
|
|
57503
|
+
if (!this._initialized) {
|
|
57504
|
+
return;
|
|
57505
|
+
}
|
|
57444
57506
|
let resetMediaQuery;
|
|
57445
57507
|
let checkMediaQuery;
|
|
57446
57508
|
switch (actionSource) {
|
|
@@ -57467,10 +57529,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57467
57529
|
}
|
|
57468
57530
|
if (resetMediaQuery || checkMediaQuery) {
|
|
57469
57531
|
const { width, height } = this._option.globalInstance.getCurrentSize();
|
|
57470
|
-
this.
|
|
57532
|
+
this._changeSize(width, height, false, false);
|
|
57471
57533
|
}
|
|
57472
57534
|
}
|
|
57473
|
-
|
|
57535
|
+
_changeSize(width, height, compile, render) {
|
|
57474
57536
|
if (this._currentMediaInfo.width === width && this._currentMediaInfo.height === height) {
|
|
57475
57537
|
return false;
|
|
57476
57538
|
}
|
|
@@ -57482,7 +57544,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57482
57544
|
const changeToActive = [];
|
|
57483
57545
|
const changeToInactive = [];
|
|
57484
57546
|
this._spec.forEach(item => {
|
|
57485
|
-
const { hasChanged, isActive } = this.
|
|
57547
|
+
const { hasChanged, isActive } = this._check(item);
|
|
57486
57548
|
if (hasChanged) {
|
|
57487
57549
|
if (isActive) {
|
|
57488
57550
|
changeToActive.push(item);
|
|
@@ -57496,18 +57558,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57496
57558
|
return false;
|
|
57497
57559
|
}
|
|
57498
57560
|
if (!this._baseChartSpec) {
|
|
57499
|
-
this._baseChartSpec = cloneDeepSpec(this._option.globalInstance.getSpec());
|
|
57561
|
+
this._baseChartSpec = cloneDeepSpec(this._option.globalInstance.getSpec(), ['data', MediaQuery.specKey]);
|
|
57500
57562
|
}
|
|
57501
57563
|
let chartSpec;
|
|
57502
57564
|
let hasChanged = false;
|
|
57503
57565
|
if (changeToInactive.length > 0) {
|
|
57504
|
-
chartSpec = cloneDeepSpec(this._baseChartSpec);
|
|
57566
|
+
chartSpec = cloneDeepSpec(this._baseChartSpec, ['data', MediaQuery.specKey]);
|
|
57505
57567
|
Array.from(this.currentActiveItems).forEach(item => {
|
|
57506
57568
|
if (changeToInactive.includes(item)) {
|
|
57507
57569
|
this.currentActiveItems.delete(item);
|
|
57508
57570
|
return;
|
|
57509
57571
|
}
|
|
57510
|
-
const result = this.
|
|
57572
|
+
const result = this._apply(item, chartSpec);
|
|
57511
57573
|
chartSpec = result.chartSpec;
|
|
57512
57574
|
});
|
|
57513
57575
|
hasChanged = true;
|
|
@@ -57517,7 +57579,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57517
57579
|
}
|
|
57518
57580
|
changeToActive.forEach(item => {
|
|
57519
57581
|
this.currentActiveItems.add(item);
|
|
57520
|
-
const result = this.
|
|
57582
|
+
const result = this._apply(item, chartSpec);
|
|
57521
57583
|
chartSpec = result.chartSpec;
|
|
57522
57584
|
hasChanged || (hasChanged = result.hasChanged);
|
|
57523
57585
|
});
|
|
@@ -57526,7 +57588,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57526
57588
|
}
|
|
57527
57589
|
return true;
|
|
57528
57590
|
}
|
|
57529
|
-
|
|
57591
|
+
_check(item) {
|
|
57530
57592
|
const { globalInstance } = this._option;
|
|
57531
57593
|
const isActive = checkMediaQuery(item.query, this._currentMediaInfo, globalInstance);
|
|
57532
57594
|
return {
|
|
@@ -57534,7 +57596,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57534
57596
|
hasChanged: isActive !== this.currentActiveItems.has(item)
|
|
57535
57597
|
};
|
|
57536
57598
|
}
|
|
57537
|
-
|
|
57599
|
+
_apply(item, chartSpec) {
|
|
57538
57600
|
const { globalInstance } = this._option;
|
|
57539
57601
|
const { query, action } = item;
|
|
57540
57602
|
let hasChanged = false;
|
|
@@ -57545,12 +57607,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57545
57607
|
});
|
|
57546
57608
|
return { chartSpec, hasChanged };
|
|
57547
57609
|
}
|
|
57548
|
-
|
|
57610
|
+
_reInit(compile, render) {
|
|
57549
57611
|
let chartSpec = this._option.globalInstance.getSpec();
|
|
57550
|
-
this._baseChartSpec = cloneDeepSpec(chartSpec);
|
|
57612
|
+
this._baseChartSpec = cloneDeepSpec(chartSpec, ['data', MediaQuery.specKey]);
|
|
57551
57613
|
let hasChanged = false;
|
|
57552
57614
|
this.currentActiveItems.forEach(item => {
|
|
57553
|
-
const result = this.
|
|
57615
|
+
const result = this._apply(item, chartSpec);
|
|
57554
57616
|
chartSpec = result.chartSpec;
|
|
57555
57617
|
hasChanged || (hasChanged = result.hasChanged);
|
|
57556
57618
|
});
|
|
@@ -57573,7 +57635,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57573
57635
|
registerChartPlugin(MediaQuery);
|
|
57574
57636
|
};
|
|
57575
57637
|
|
|
57576
|
-
const version = "1.8.
|
|
57638
|
+
const version = "1.8.2";
|
|
57577
57639
|
|
|
57578
57640
|
var ChartTypeEnum;
|
|
57579
57641
|
(function (ChartTypeEnum) {
|
|
@@ -57810,11 +57872,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57810
57872
|
});
|
|
57811
57873
|
}
|
|
57812
57874
|
unselectItems(params) {
|
|
57813
|
-
this.
|
|
57814
|
-
|
|
57815
|
-
|
|
57816
|
-
|
|
57817
|
-
|
|
57875
|
+
const { triggerOff } = this._select;
|
|
57876
|
+
if (triggerOff !== 'none') {
|
|
57877
|
+
this.interaction.removeEventElement(STATE_VALUE_ENUM.STATE_SELECTED, params.item);
|
|
57878
|
+
this.event.emit('unselected', {
|
|
57879
|
+
model: this._option.model,
|
|
57880
|
+
value: params.item
|
|
57881
|
+
});
|
|
57882
|
+
}
|
|
57818
57883
|
}
|
|
57819
57884
|
handleSingleEventSelect(params) {
|
|
57820
57885
|
if (this.filterEventMark(params)) {
|
|
@@ -58610,14 +58675,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58610
58675
|
}
|
|
58611
58676
|
}
|
|
58612
58677
|
initData() {
|
|
58613
|
-
var _a, _b, _c, _d, _e;
|
|
58678
|
+
var _a, _b, _c, _d, _e, _f;
|
|
58614
58679
|
const d = (_a = this._spec.data) !== null && _a !== void 0 ? _a : this._option.getSeriesData(this._spec.dataId, this._spec.dataIndex);
|
|
58615
58680
|
if (d) {
|
|
58616
58681
|
this._rawData = dataToDataView(d, this._dataSet, this._option.sourceDataList, {
|
|
58617
58682
|
onError: (_b = this._option) === null || _b === void 0 ? void 0 : _b.onError
|
|
58618
58683
|
});
|
|
58619
58684
|
}
|
|
58620
|
-
(_c = this._rawData) === null || _c === void 0 ? void 0 : _c.target.addListener('change', this.rawDataUpdate.bind(this));
|
|
58685
|
+
(_d = (_c = this._rawData) === null || _c === void 0 ? void 0 : _c.target) === null || _d === void 0 ? void 0 : _d.addListener('change', this.rawDataUpdate.bind(this));
|
|
58621
58686
|
this._addDataIndexAndKey();
|
|
58622
58687
|
if (this._rawData) {
|
|
58623
58688
|
if (this._stack) {
|
|
@@ -58633,9 +58698,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58633
58698
|
this._viewDataFilter.target.removeListener('change', viewData.reRunAllTransform);
|
|
58634
58699
|
}
|
|
58635
58700
|
}
|
|
58636
|
-
if (this._invalidType === 'zero' && ((
|
|
58701
|
+
if (this._invalidType === 'zero' && ((_e = this._rawData) === null || _e === void 0 ? void 0 : _e.dataSet)) {
|
|
58637
58702
|
registerDataSetInstanceTransform(this._rawData.dataSet, 'invalidTravel', invalidTravel);
|
|
58638
|
-
(
|
|
58703
|
+
(_f = this._rawData) === null || _f === void 0 ? void 0 : _f.transform({
|
|
58639
58704
|
type: 'invalidTravel',
|
|
58640
58705
|
options: {
|
|
58641
58706
|
config: () => {
|
|
@@ -59104,14 +59169,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59104
59169
|
return;
|
|
59105
59170
|
}
|
|
59106
59171
|
release() {
|
|
59107
|
-
var _a;
|
|
59172
|
+
var _a, _b, _c;
|
|
59108
59173
|
super.release();
|
|
59109
59174
|
this._viewDataMap.clear();
|
|
59110
|
-
const transformIndex = this._rawData.transformsArr.findIndex(t => t.type === 'addVChartProperty');
|
|
59175
|
+
const transformIndex = (_b = (_a = this._rawData) === null || _a === void 0 ? void 0 : _a.transformsArr) === null || _b === void 0 ? void 0 : _b.findIndex(t => t.type === 'addVChartProperty');
|
|
59111
59176
|
if (transformIndex >= 0) {
|
|
59112
59177
|
this._rawData.transformsArr.splice(transformIndex, 1);
|
|
59113
59178
|
}
|
|
59114
|
-
(
|
|
59179
|
+
(_c = this._data) === null || _c === void 0 ? void 0 : _c.release();
|
|
59115
59180
|
this._dataSet =
|
|
59116
59181
|
this._data =
|
|
59117
59182
|
this._rawData =
|
|
@@ -60667,7 +60732,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60667
60732
|
return this._chartData;
|
|
60668
60733
|
}
|
|
60669
60734
|
constructor(spec, option) {
|
|
60670
|
-
var _a, _b, _c;
|
|
60735
|
+
var _a, _b, _c, _d;
|
|
60671
60736
|
super(option);
|
|
60672
60737
|
this.type = 'chart';
|
|
60673
60738
|
this.id = createID();
|
|
@@ -60795,14 +60860,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60795
60860
|
this._event = new Event$1(option.eventDispatcher, option.mode);
|
|
60796
60861
|
this._dataSet = option.dataSet;
|
|
60797
60862
|
this._chartData = new ChartData(this._dataSet, (_b = this._option) === null || _b === void 0 ? void 0 : _b.onError);
|
|
60798
|
-
this._modelOption = Object.assign(Object.assign({}, option), { mode: this._option.mode, map: this._idMap, getChartLayoutRect: () => this._layoutRect, getChartViewRect: () => this._viewRect, getChart: () => this, globalScale: this._globalScale, onError: (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError, getSeriesData: this._chartData.getSeriesData.bind(this._chartData) });
|
|
60863
|
+
this._modelOption = Object.assign(Object.assign({}, option), { mode: this._option.mode, map: this._idMap, getChartLayoutRect: () => this._layoutRect, getChartViewRect: () => this._viewRect, getChart: () => this, globalScale: this._globalScale, onError: (_c = this._option) === null || _c === void 0 ? void 0 : _c.onError, disableTriggerEvent: ((_d = this._option) === null || _d === void 0 ? void 0 : _d.disableTriggerEvent) === true, getSeriesData: this._chartData.getSeriesData.bind(this._chartData) });
|
|
60799
60864
|
this._spec = spec;
|
|
60800
60865
|
}
|
|
60801
60866
|
created() {
|
|
60802
60867
|
this._transformer = new this.transformerConstructor({
|
|
60803
60868
|
type: this.type,
|
|
60804
60869
|
seriesType: this.seriesType,
|
|
60805
|
-
getTheme: this._option.getTheme
|
|
60870
|
+
getTheme: this._option.getTheme,
|
|
60871
|
+
animation: this._option.animation
|
|
60806
60872
|
});
|
|
60807
60873
|
this._chartData.parseData(this._spec.data);
|
|
60808
60874
|
this._createGlobalScale();
|
|
@@ -60871,9 +60937,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60871
60937
|
return;
|
|
60872
60938
|
}
|
|
60873
60939
|
const { spec } = specInfo, others = __rest$7(specInfo, ["spec"]);
|
|
60874
|
-
if (this._option.animation === false) {
|
|
60875
|
-
spec.animation = false;
|
|
60876
|
-
}
|
|
60877
60940
|
let region;
|
|
60878
60941
|
if (isValid$1(spec.regionId)) {
|
|
60879
60942
|
region = this.getRegionsInUserId(spec.regionId);
|
|
@@ -61558,21 +61621,28 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61558
61621
|
}
|
|
61559
61622
|
transformModelSpec(chartSpec) {
|
|
61560
61623
|
const transform = (constructor, specInfo, chartSpecInfo) => {
|
|
61561
|
-
const { spec, specPath, type } = specInfo;
|
|
61624
|
+
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
61562
61625
|
const transformer = new constructor.transformerConstructor({
|
|
61563
61626
|
type,
|
|
61564
61627
|
getTheme: this._option.getTheme
|
|
61565
61628
|
});
|
|
61566
61629
|
const transformResult = transformer.transformSpec(spec, chartSpec, chartSpecInfo);
|
|
61567
61630
|
setProperty(chartSpec, specPath, transformResult.spec);
|
|
61568
|
-
setProperty(chartSpecInfo,
|
|
61631
|
+
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, Object.assign(Object.assign({}, specInfo), transformResult));
|
|
61569
61632
|
};
|
|
61570
61633
|
return this.createSpecInfo(chartSpec, transform);
|
|
61571
61634
|
}
|
|
61572
61635
|
createSpecInfo(chartSpec, transform) {
|
|
61573
61636
|
var _a;
|
|
61574
61637
|
if (!transform) {
|
|
61575
|
-
transform = (constructor, specInfo, chartSpecInfo) =>
|
|
61638
|
+
transform = (constructor, specInfo, chartSpecInfo) => {
|
|
61639
|
+
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
61640
|
+
const transformer = new constructor.transformerConstructor({
|
|
61641
|
+
type,
|
|
61642
|
+
getTheme: this._option.getTheme
|
|
61643
|
+
});
|
|
61644
|
+
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, Object.assign(Object.assign({}, specInfo), { theme: transformer.getTheme(spec, chartSpec) }));
|
|
61645
|
+
};
|
|
61576
61646
|
}
|
|
61577
61647
|
const currentChartSpecInfo = {};
|
|
61578
61648
|
this.forEachRegionInSpec(chartSpec, transform, currentChartSpecInfo);
|
|
@@ -61600,15 +61670,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61600
61670
|
return true;
|
|
61601
61671
|
}
|
|
61602
61672
|
_getDefaultSeriesSpec(chartSpec) {
|
|
61603
|
-
var _a, _b, _c;
|
|
61673
|
+
var _a, _b, _c, _d;
|
|
61604
61674
|
const series = {
|
|
61605
61675
|
dataKey: chartSpec.dataKey,
|
|
61606
61676
|
hover: chartSpec.hover,
|
|
61607
61677
|
select: chartSpec.select,
|
|
61608
61678
|
label: chartSpec.label,
|
|
61609
61679
|
seriesStyle: chartSpec.seriesStyle,
|
|
61610
|
-
animation: chartSpec.animation,
|
|
61611
|
-
animationThreshold: (
|
|
61680
|
+
animation: (_a = chartSpec.animation) !== null && _a !== void 0 ? _a : this._option.animation,
|
|
61681
|
+
animationThreshold: (_b = chartSpec.animationThreshold) !== null && _b !== void 0 ? _b : (_d = (_c = this._option).getTheme) === null || _d === void 0 ? void 0 : _d.call(_c).animationThreshold,
|
|
61612
61682
|
animationAppear: chartSpec.animationAppear,
|
|
61613
61683
|
animationDisappear: chartSpec.animationDisappear,
|
|
61614
61684
|
animationEnter: chartSpec.animationEnter,
|
|
@@ -64191,11 +64261,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64191
64261
|
}, delayTime));
|
|
64192
64262
|
}
|
|
64193
64263
|
initZoomEventOfSeries(s, callback, option) {
|
|
64264
|
+
if (this._option.disableTriggerEvent) {
|
|
64265
|
+
return;
|
|
64266
|
+
}
|
|
64194
64267
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64195
64268
|
this._bindZoomEventAsRegion(s.event, s, callback, option);
|
|
64196
64269
|
}
|
|
64197
64270
|
}
|
|
64198
64271
|
initZoomEventOfRegions(regions, filter, callback, option) {
|
|
64272
|
+
if (this._option.disableTriggerEvent) {
|
|
64273
|
+
return;
|
|
64274
|
+
}
|
|
64199
64275
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64200
64276
|
regions.forEach(r => {
|
|
64201
64277
|
if (filter) {
|
|
@@ -64212,7 +64288,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64212
64288
|
}
|
|
64213
64289
|
}
|
|
64214
64290
|
_scrollEventDispatch(params, regionOrSeries, callback) {
|
|
64215
|
-
if (!params.event) {
|
|
64291
|
+
if (!params.event || this._option.disableTriggerEvent) {
|
|
64216
64292
|
return;
|
|
64217
64293
|
}
|
|
64218
64294
|
const { event } = params;
|
|
@@ -64254,6 +64330,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64254
64330
|
}
|
|
64255
64331
|
}
|
|
64256
64332
|
initScrollEventOfRegions(regions, filter, callback, option) {
|
|
64333
|
+
if (this._option.disableTriggerEvent) {
|
|
64334
|
+
return;
|
|
64335
|
+
}
|
|
64257
64336
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64258
64337
|
regions.forEach(r => {
|
|
64259
64338
|
if (filter) {
|
|
@@ -64288,6 +64367,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64288
64367
|
});
|
|
64289
64368
|
}
|
|
64290
64369
|
initDragEventOfSeries(s, callback, option) {
|
|
64370
|
+
if (this._option.disableTriggerEvent) {
|
|
64371
|
+
return;
|
|
64372
|
+
}
|
|
64291
64373
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64292
64374
|
s.event.on(this._getTriggerEvent('start'), { level: exports.Event_Bubble_Level.model, filter: ({ model }) => (model === null || model === void 0 ? void 0 : model.id) === s.id }, params => {
|
|
64293
64375
|
this._handleDrag(params, callback, option);
|
|
@@ -64295,6 +64377,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64295
64377
|
}
|
|
64296
64378
|
}
|
|
64297
64379
|
initDragEventOfRegions(regions, filter, callback, option) {
|
|
64380
|
+
if (this._option.disableTriggerEvent) {
|
|
64381
|
+
return;
|
|
64382
|
+
}
|
|
64298
64383
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64299
64384
|
regions.forEach(r => {
|
|
64300
64385
|
if (filter) {
|
|
@@ -64317,6 +64402,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64317
64402
|
}
|
|
64318
64403
|
_handleDrag(params, callback, option) {
|
|
64319
64404
|
var _a, _b, _c;
|
|
64405
|
+
if (this._option.disableTriggerEvent) {
|
|
64406
|
+
return;
|
|
64407
|
+
}
|
|
64320
64408
|
this._clickEnable = true;
|
|
64321
64409
|
if (!this._zoomableTrigger.parserDragEvent(params.event)) {
|
|
64322
64410
|
return;
|
|
@@ -64450,7 +64538,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64450
64538
|
spec,
|
|
64451
64539
|
regionIndex: i,
|
|
64452
64540
|
type: ComponentTypeEnum.geoCoordinate,
|
|
64453
|
-
|
|
64541
|
+
specInfoPath: ['region', i, 'geoCoordinate']
|
|
64454
64542
|
});
|
|
64455
64543
|
}
|
|
64456
64544
|
});
|
|
@@ -79818,8 +79906,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79818
79906
|
const titleBackgroundSpec = (_c = spec.title.background) !== null && _c !== void 0 ? _c : {};
|
|
79819
79907
|
return {
|
|
79820
79908
|
orient: this.getOrient(),
|
|
79821
|
-
select: spec.select,
|
|
79822
|
-
hover: spec.hover,
|
|
79909
|
+
select: this._option.disableTriggerEvent === true ? false : spec.select,
|
|
79910
|
+
hover: this._option.disableTriggerEvent === true ? false : spec.hover,
|
|
79823
79911
|
line: transformAxisLineStyle(spec.domainLine),
|
|
79824
79912
|
label: Object.assign({ style: isFunction$1(spec.label.style)
|
|
79825
79913
|
? (datum, index, data, layer) => {
|
|
@@ -81973,6 +82061,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81973
82061
|
}
|
|
81974
82062
|
const result = { x1: this.getLayoutStartPoint().x, y1: this.getLayoutStartPoint().y, x2: 0, y2: 0 };
|
|
81975
82063
|
const attrs = this._getLegendAttributes(rect);
|
|
82064
|
+
attrs.disableTriggerEvent = this._option.disableTriggerEvent;
|
|
81976
82065
|
if (this._legendComponent) {
|
|
81977
82066
|
if (!isEqual$1(attrs, this._cacheAttrs)) {
|
|
81978
82067
|
this._legendComponent.setAttributes(mergeSpec({}, attrs, {
|
|
@@ -81989,7 +82078,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81989
82078
|
this._legendComponent = legend;
|
|
81990
82079
|
const container = this.getContainer();
|
|
81991
82080
|
container.add(legend);
|
|
81992
|
-
this.
|
|
82081
|
+
if (!this._option.disableTriggerEvent) {
|
|
82082
|
+
this._initEvent();
|
|
82083
|
+
}
|
|
81993
82084
|
legend.on('*', (event, type) => this._delegateEvent(this._legendComponent, event, type));
|
|
81994
82085
|
}
|
|
81995
82086
|
this._cacheAttrs = attrs;
|
|
@@ -85400,6 +85491,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85400
85491
|
}
|
|
85401
85492
|
_initEvent() {
|
|
85402
85493
|
var _a;
|
|
85494
|
+
if (this._option.disableTriggerEvent) {
|
|
85495
|
+
return;
|
|
85496
|
+
}
|
|
85403
85497
|
const trigger = (_a = this._spec.trigger) !== null && _a !== void 0 ? _a : 'hover';
|
|
85404
85498
|
const mode = this._option.mode;
|
|
85405
85499
|
if (trigger === 'hover') {
|
|
@@ -85649,6 +85743,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
85649
85743
|
return result;
|
|
85650
85744
|
}
|
|
85651
85745
|
_initEvent() {
|
|
85746
|
+
if (this._option.disableTriggerEvent) {
|
|
85747
|
+
return;
|
|
85748
|
+
}
|
|
85652
85749
|
const triggerConfig = this._getTriggerEvent();
|
|
85653
85750
|
if (triggerConfig) {
|
|
85654
85751
|
const { in: triggerEvent, out: outTriggerEvent } = triggerConfig;
|
|
@@ -86332,10 +86429,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86332
86429
|
}
|
|
86333
86430
|
else {
|
|
86334
86431
|
if (type === 'line') {
|
|
86335
|
-
crosshair = new LineCrosshair(Object.assign(Object.assign({}, attributes), { lineStyle: style, zIndex: this.gridZIndex + 1 }));
|
|
86432
|
+
crosshair = new LineCrosshair(Object.assign(Object.assign({}, attributes), { lineStyle: style, zIndex: this.gridZIndex + 1, disableTriggerEvent: this._option.disableTriggerEvent }));
|
|
86336
86433
|
}
|
|
86337
86434
|
else if (type === 'rect') {
|
|
86338
|
-
crosshair = new RectCrosshair(Object.assign(Object.assign({}, attributes), { rectStyle: style, zIndex: this.gridZIndex }));
|
|
86435
|
+
crosshair = new RectCrosshair(Object.assign(Object.assign({}, attributes), { rectStyle: style, zIndex: this.gridZIndex, disableTriggerEvent: this._option.disableTriggerEvent }));
|
|
86339
86436
|
}
|
|
86340
86437
|
container === null || container === void 0 ? void 0 : container.add(crosshair);
|
|
86341
86438
|
if (dim === 'x') {
|
|
@@ -87816,7 +87913,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87816
87913
|
selectedBackgroundChartStyle: {
|
|
87817
87914
|
line: mergeSpec(transformToGraphic((_k = selectedBackgroundChart.line) === null || _k === void 0 ? void 0 : _k.style), { fill: false }),
|
|
87818
87915
|
area: Object.assign({ curveType: 'basis', visible: true }, transformToGraphic((_l = selectedBackgroundChart.area) === null || _l === void 0 ? void 0 : _l.style))
|
|
87819
|
-
}
|
|
87916
|
+
},
|
|
87917
|
+
disableTriggerEvent: this._option.disableTriggerEvent
|
|
87820
87918
|
};
|
|
87821
87919
|
}
|
|
87822
87920
|
_getNeedClearVRenderComponents() {
|
|
@@ -87976,6 +88074,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87976
88074
|
if (!isEmpty(slider === null || slider === void 0 ? void 0 : slider.style)) {
|
|
87977
88075
|
attrs.sliderStyle = transformToGraphic(slider.style);
|
|
87978
88076
|
}
|
|
88077
|
+
attrs.disableTriggerEvent = this._option.disableTriggerEvent;
|
|
87979
88078
|
return attrs;
|
|
87980
88079
|
}
|
|
87981
88080
|
_getNeedClearVRenderComponents() {
|
|
@@ -88072,6 +88171,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88072
88171
|
changeRegions(regions) {
|
|
88073
88172
|
}
|
|
88074
88173
|
initEvent() {
|
|
88174
|
+
if (this._option.disableTriggerEvent) {
|
|
88175
|
+
return;
|
|
88176
|
+
}
|
|
88075
88177
|
const trigger = this._spec.trigger;
|
|
88076
88178
|
if (trigger === 'none') {
|
|
88077
88179
|
return;
|
|
@@ -89030,7 +89132,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89030
89132
|
constructor(spec, options) {
|
|
89031
89133
|
super(spec, options);
|
|
89032
89134
|
this.type = ComponentTypeEnum.title;
|
|
89033
|
-
this.specKey =
|
|
89135
|
+
this.specKey = ComponentTypeEnum.title;
|
|
89034
89136
|
this.layoutType = 'normal';
|
|
89035
89137
|
this.layoutZIndex = exports.LayoutZIndex.Title;
|
|
89036
89138
|
this.layoutLevel = exports.LayoutLevel.Title;
|
|
@@ -89152,7 +89254,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89152
89254
|
}
|
|
89153
89255
|
}
|
|
89154
89256
|
Title.type = ComponentTypeEnum.title;
|
|
89155
|
-
Title.specKey =
|
|
89257
|
+
Title.specKey = ComponentTypeEnum.title;
|
|
89156
89258
|
const registerTitle = () => {
|
|
89157
89259
|
Factory.registerComponent(Title.type, Title);
|
|
89158
89260
|
};
|
|
@@ -89377,9 +89479,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89377
89479
|
dy: (_b = this._spec.dy) !== null && _b !== void 0 ? _b : 0 + this._dy
|
|
89378
89480
|
};
|
|
89379
89481
|
if (type === 'discrete') {
|
|
89380
|
-
return Object.assign(Object.assign({}, transformDiscreteSpecToAttrs(this._spec, this._specs)), layoutAttrs);
|
|
89482
|
+
return Object.assign(Object.assign(Object.assign({}, transformDiscreteSpecToAttrs(this._spec, this._specs)), layoutAttrs), { disableTriggerEvent: this._option.disableTriggerEvent });
|
|
89381
89483
|
}
|
|
89382
|
-
return Object.assign(Object.assign({}, transformContinuousSpecToAttrs(this._spec, this._specs)), layoutAttrs);
|
|
89484
|
+
return Object.assign(Object.assign(Object.assign({}, transformContinuousSpecToAttrs(this._spec, this._specs)), layoutAttrs), { disableTriggerEvent: this._option.disableTriggerEvent });
|
|
89383
89485
|
};
|
|
89384
89486
|
this._createOrUpdatePlayerComponent = () => {
|
|
89385
89487
|
const attrs = Object.assign({}, this._getPlayerAttrs());
|
|
@@ -89417,6 +89519,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89417
89519
|
return 0;
|
|
89418
89520
|
};
|
|
89419
89521
|
this._initEvent = () => {
|
|
89522
|
+
if (this._option.disableTriggerEvent) {
|
|
89523
|
+
return;
|
|
89524
|
+
}
|
|
89420
89525
|
this._option.globalInstance.on(exports.ChartEvent.rendered, () => {
|
|
89421
89526
|
var _a;
|
|
89422
89527
|
if ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.auto) {
|
|
@@ -89992,7 +90097,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89992
90097
|
specInfo.push({
|
|
89993
90098
|
spec: chartSpec,
|
|
89994
90099
|
type: ComponentTypeEnum.label,
|
|
89995
|
-
|
|
90100
|
+
specInfoPath: ['region', i, 'markLabel'],
|
|
89996
90101
|
specIndex: i
|
|
89997
90102
|
});
|
|
89998
90103
|
}
|
|
@@ -90615,7 +90720,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90615
90720
|
_createBrushComponent(region, componentIndex) {
|
|
90616
90721
|
var _a, _b;
|
|
90617
90722
|
const interactiveAttr = this._getBrushInteractiveAttr(region);
|
|
90618
|
-
const brush = new Brush$1(Object.assign(Object.assign({ zIndex: this.layoutZIndex, brushStyle: transformToGraphic((_a = this._spec) === null || _a === void 0 ? void 0 : _a.style) }, interactiveAttr), this._spec));
|
|
90723
|
+
const brush = new Brush$1(Object.assign(Object.assign(Object.assign({ zIndex: this.layoutZIndex, brushStyle: transformToGraphic((_a = this._spec) === null || _a === void 0 ? void 0 : _a.style) }, interactiveAttr), this._spec), { disableTriggerEvent: this._option.disableTriggerEvent }));
|
|
90619
90724
|
brush.id = (_b = this._spec.id) !== null && _b !== void 0 ? _b : `brush-${this.id}`;
|
|
90620
90725
|
this.getContainer().add(brush);
|
|
90621
90726
|
const { brushMode = 'single' } = this._spec;
|
|
@@ -90912,6 +91017,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90912
91017
|
onLayoutEnd(ctx) {
|
|
90913
91018
|
var _a;
|
|
90914
91019
|
super.onLayoutEnd(ctx);
|
|
91020
|
+
if (this._option.disableTriggerEvent) {
|
|
91021
|
+
return;
|
|
91022
|
+
}
|
|
90915
91023
|
const brushVisible = (_a = this._spec.visible) !== null && _a !== void 0 ? _a : true;
|
|
90916
91024
|
if (brushVisible) {
|
|
90917
91025
|
if (!this._brushComponents) {
|