@visactor/vchart 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es5/index.js +1 -1
- package/build/index.js +227 -182
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart-transformer.js +11 -3
- package/cjs/chart/base/base-chart-transformer.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/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/discrete/legend.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/event/event-dispatcher.js +2 -1
- package/cjs/event/index.js +1 -2
- package/cjs/interaction/trigger.js +3 -2
- package/cjs/interaction/trigger.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 +2 -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/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/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 +11 -3
- package/esm/chart/base/base-chart-transformer.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/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/discrete/legend.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/event/event-dispatcher.js +2 -1
- package/esm/event/index.js +1 -2
- package/esm/interaction/trigger.js +3 -2
- package/esm/interaction/trigger.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 +2 -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/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/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;
|
|
@@ -53159,6 +53187,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53159
53187
|
getSpecPath() {
|
|
53160
53188
|
return this._option.specPath;
|
|
53161
53189
|
}
|
|
53190
|
+
getSpecInfoPath() {
|
|
53191
|
+
var _a;
|
|
53192
|
+
return (_a = this._option.specInfoPath) !== null && _a !== void 0 ? _a : this._option.specPath;
|
|
53193
|
+
}
|
|
53162
53194
|
getData() {
|
|
53163
53195
|
return this._data;
|
|
53164
53196
|
}
|
|
@@ -53342,7 +53374,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53342
53374
|
getSpecInfo() {
|
|
53343
53375
|
var _a, _b, _c;
|
|
53344
53376
|
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.
|
|
53377
|
+
return getProperty(specInfo, this.getSpecInfoPath());
|
|
53346
53378
|
}
|
|
53347
53379
|
}
|
|
53348
53380
|
|
|
@@ -57246,10 +57278,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57246
57278
|
if (isNil$1(filter)) {
|
|
57247
57279
|
return true;
|
|
57248
57280
|
}
|
|
57249
|
-
|
|
57250
|
-
|
|
57251
|
-
|
|
57252
|
-
|
|
57281
|
+
return array(filter).some(f => {
|
|
57282
|
+
if (isFunction$1(f)) {
|
|
57283
|
+
return f(info, action, query);
|
|
57284
|
+
}
|
|
57285
|
+
return includeSpec(info.spec, f);
|
|
57286
|
+
});
|
|
57253
57287
|
}) });
|
|
57254
57288
|
};
|
|
57255
57289
|
const executeMediaQueryActionFilterType = (filterType = 'chart', chartSpec, globalInstance) => {
|
|
@@ -57304,44 +57338,36 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57304
57338
|
}
|
|
57305
57339
|
});
|
|
57306
57340
|
}
|
|
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
57341
|
else if (Object.values(ComponentTypeEnum).includes(filterType)) {
|
|
57333
57342
|
result.modelType = 'component';
|
|
57334
57343
|
result.type = filterType;
|
|
57335
|
-
result.specKey = (
|
|
57344
|
+
result.specKey = (_d = Factory.getComponentInKey(filterType)) === null || _d === void 0 ? void 0 : _d.specKey;
|
|
57336
57345
|
const { specKey } = result;
|
|
57337
|
-
const infoList = array((
|
|
57338
|
-
(
|
|
57346
|
+
const infoList = array((_e = chartSpecInfo[specKey]) !== null && _e !== void 0 ? _e : []);
|
|
57347
|
+
(_g = array((_f = chartSpec[specKey]) !== null && _f !== void 0 ? _f : [])) === null || _g === void 0 ? void 0 : _g.forEach((componentSpec, i) => {
|
|
57339
57348
|
const specInfo = infoList[i];
|
|
57340
57349
|
if (specInfo.type === filterType) {
|
|
57341
57350
|
result.modelInfo.push(Object.assign(Object.assign({}, specInfo), { spec: componentSpec }));
|
|
57342
57351
|
}
|
|
57343
57352
|
});
|
|
57344
57353
|
}
|
|
57354
|
+
else {
|
|
57355
|
+
const componentTypes = Factory.getComponents()
|
|
57356
|
+
.filter(({ cmp }) => cmp.specKey === filterType)
|
|
57357
|
+
.map(({ cmp }) => cmp.type);
|
|
57358
|
+
if (componentTypes.length > 0) {
|
|
57359
|
+
result.modelType = 'component';
|
|
57360
|
+
const specKey = filterType;
|
|
57361
|
+
result.specKey = specKey;
|
|
57362
|
+
const infoList = array((_h = chartSpecInfo[specKey]) !== null && _h !== void 0 ? _h : []);
|
|
57363
|
+
array((_j = chartSpec[specKey]) !== null && _j !== void 0 ? _j : []).forEach((componentSpec, i) => {
|
|
57364
|
+
const specInfo = infoList[i];
|
|
57365
|
+
if (componentTypes.includes(specInfo.type)) {
|
|
57366
|
+
result.modelInfo.push(Object.assign(Object.assign({}, specInfo), { spec: componentSpec }));
|
|
57367
|
+
}
|
|
57368
|
+
});
|
|
57369
|
+
}
|
|
57370
|
+
}
|
|
57345
57371
|
return result;
|
|
57346
57372
|
};
|
|
57347
57373
|
|
|
@@ -57433,14 +57459,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57433
57459
|
this._initialized = true;
|
|
57434
57460
|
}
|
|
57435
57461
|
onBeforeResize(service, width, height) {
|
|
57436
|
-
this.
|
|
57462
|
+
if (!this._initialized) {
|
|
57463
|
+
return;
|
|
57464
|
+
}
|
|
57465
|
+
this._changeSize(width, height, true, false);
|
|
57437
57466
|
}
|
|
57438
57467
|
onAfterChartSpecTransform(service, chartSpec, actionSource) {
|
|
57468
|
+
if (!this._initialized) {
|
|
57469
|
+
return;
|
|
57470
|
+
}
|
|
57439
57471
|
if (actionSource === 'setCurrentTheme') {
|
|
57440
|
-
this.
|
|
57472
|
+
this._reInit(false, false);
|
|
57441
57473
|
}
|
|
57442
57474
|
}
|
|
57443
57475
|
onBeforeInitChart(service, chartSpec, actionSource) {
|
|
57476
|
+
if (!this._initialized) {
|
|
57477
|
+
return;
|
|
57478
|
+
}
|
|
57444
57479
|
let resetMediaQuery;
|
|
57445
57480
|
let checkMediaQuery;
|
|
57446
57481
|
switch (actionSource) {
|
|
@@ -57467,10 +57502,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57467
57502
|
}
|
|
57468
57503
|
if (resetMediaQuery || checkMediaQuery) {
|
|
57469
57504
|
const { width, height } = this._option.globalInstance.getCurrentSize();
|
|
57470
|
-
this.
|
|
57505
|
+
this._changeSize(width, height, false, false);
|
|
57471
57506
|
}
|
|
57472
57507
|
}
|
|
57473
|
-
|
|
57508
|
+
_changeSize(width, height, compile, render) {
|
|
57474
57509
|
if (this._currentMediaInfo.width === width && this._currentMediaInfo.height === height) {
|
|
57475
57510
|
return false;
|
|
57476
57511
|
}
|
|
@@ -57482,7 +57517,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57482
57517
|
const changeToActive = [];
|
|
57483
57518
|
const changeToInactive = [];
|
|
57484
57519
|
this._spec.forEach(item => {
|
|
57485
|
-
const { hasChanged, isActive } = this.
|
|
57520
|
+
const { hasChanged, isActive } = this._check(item);
|
|
57486
57521
|
if (hasChanged) {
|
|
57487
57522
|
if (isActive) {
|
|
57488
57523
|
changeToActive.push(item);
|
|
@@ -57496,18 +57531,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57496
57531
|
return false;
|
|
57497
57532
|
}
|
|
57498
57533
|
if (!this._baseChartSpec) {
|
|
57499
|
-
this._baseChartSpec = cloneDeepSpec(this._option.globalInstance.getSpec());
|
|
57534
|
+
this._baseChartSpec = cloneDeepSpec(this._option.globalInstance.getSpec(), ['data', MediaQuery.specKey]);
|
|
57500
57535
|
}
|
|
57501
57536
|
let chartSpec;
|
|
57502
57537
|
let hasChanged = false;
|
|
57503
57538
|
if (changeToInactive.length > 0) {
|
|
57504
|
-
chartSpec = cloneDeepSpec(this._baseChartSpec);
|
|
57539
|
+
chartSpec = cloneDeepSpec(this._baseChartSpec, ['data', MediaQuery.specKey]);
|
|
57505
57540
|
Array.from(this.currentActiveItems).forEach(item => {
|
|
57506
57541
|
if (changeToInactive.includes(item)) {
|
|
57507
57542
|
this.currentActiveItems.delete(item);
|
|
57508
57543
|
return;
|
|
57509
57544
|
}
|
|
57510
|
-
const result = this.
|
|
57545
|
+
const result = this._apply(item, chartSpec);
|
|
57511
57546
|
chartSpec = result.chartSpec;
|
|
57512
57547
|
});
|
|
57513
57548
|
hasChanged = true;
|
|
@@ -57517,7 +57552,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57517
57552
|
}
|
|
57518
57553
|
changeToActive.forEach(item => {
|
|
57519
57554
|
this.currentActiveItems.add(item);
|
|
57520
|
-
const result = this.
|
|
57555
|
+
const result = this._apply(item, chartSpec);
|
|
57521
57556
|
chartSpec = result.chartSpec;
|
|
57522
57557
|
hasChanged || (hasChanged = result.hasChanged);
|
|
57523
57558
|
});
|
|
@@ -57526,7 +57561,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57526
57561
|
}
|
|
57527
57562
|
return true;
|
|
57528
57563
|
}
|
|
57529
|
-
|
|
57564
|
+
_check(item) {
|
|
57530
57565
|
const { globalInstance } = this._option;
|
|
57531
57566
|
const isActive = checkMediaQuery(item.query, this._currentMediaInfo, globalInstance);
|
|
57532
57567
|
return {
|
|
@@ -57534,7 +57569,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57534
57569
|
hasChanged: isActive !== this.currentActiveItems.has(item)
|
|
57535
57570
|
};
|
|
57536
57571
|
}
|
|
57537
|
-
|
|
57572
|
+
_apply(item, chartSpec) {
|
|
57538
57573
|
const { globalInstance } = this._option;
|
|
57539
57574
|
const { query, action } = item;
|
|
57540
57575
|
let hasChanged = false;
|
|
@@ -57545,12 +57580,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57545
57580
|
});
|
|
57546
57581
|
return { chartSpec, hasChanged };
|
|
57547
57582
|
}
|
|
57548
|
-
|
|
57583
|
+
_reInit(compile, render) {
|
|
57549
57584
|
let chartSpec = this._option.globalInstance.getSpec();
|
|
57550
|
-
this._baseChartSpec = cloneDeepSpec(chartSpec);
|
|
57585
|
+
this._baseChartSpec = cloneDeepSpec(chartSpec, ['data', MediaQuery.specKey]);
|
|
57551
57586
|
let hasChanged = false;
|
|
57552
57587
|
this.currentActiveItems.forEach(item => {
|
|
57553
|
-
const result = this.
|
|
57588
|
+
const result = this._apply(item, chartSpec);
|
|
57554
57589
|
chartSpec = result.chartSpec;
|
|
57555
57590
|
hasChanged || (hasChanged = result.hasChanged);
|
|
57556
57591
|
});
|
|
@@ -57573,7 +57608,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57573
57608
|
registerChartPlugin(MediaQuery);
|
|
57574
57609
|
};
|
|
57575
57610
|
|
|
57576
|
-
const version = "1.8.
|
|
57611
|
+
const version = "1.8.1";
|
|
57577
57612
|
|
|
57578
57613
|
var ChartTypeEnum;
|
|
57579
57614
|
(function (ChartTypeEnum) {
|
|
@@ -57810,11 +57845,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57810
57845
|
});
|
|
57811
57846
|
}
|
|
57812
57847
|
unselectItems(params) {
|
|
57813
|
-
this.
|
|
57814
|
-
|
|
57815
|
-
|
|
57816
|
-
|
|
57817
|
-
|
|
57848
|
+
const { triggerOff } = this._select;
|
|
57849
|
+
if (triggerOff !== 'none') {
|
|
57850
|
+
this.interaction.removeEventElement(STATE_VALUE_ENUM.STATE_SELECTED, params.item);
|
|
57851
|
+
this.event.emit('unselected', {
|
|
57852
|
+
model: this._option.model,
|
|
57853
|
+
value: params.item
|
|
57854
|
+
});
|
|
57855
|
+
}
|
|
57818
57856
|
}
|
|
57819
57857
|
handleSingleEventSelect(params) {
|
|
57820
57858
|
if (this.filterEventMark(params)) {
|
|
@@ -61558,21 +61596,28 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61558
61596
|
}
|
|
61559
61597
|
transformModelSpec(chartSpec) {
|
|
61560
61598
|
const transform = (constructor, specInfo, chartSpecInfo) => {
|
|
61561
|
-
const { spec, specPath, type } = specInfo;
|
|
61599
|
+
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
61562
61600
|
const transformer = new constructor.transformerConstructor({
|
|
61563
61601
|
type,
|
|
61564
61602
|
getTheme: this._option.getTheme
|
|
61565
61603
|
});
|
|
61566
61604
|
const transformResult = transformer.transformSpec(spec, chartSpec, chartSpecInfo);
|
|
61567
61605
|
setProperty(chartSpec, specPath, transformResult.spec);
|
|
61568
|
-
setProperty(chartSpecInfo,
|
|
61606
|
+
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, Object.assign(Object.assign({}, specInfo), transformResult));
|
|
61569
61607
|
};
|
|
61570
61608
|
return this.createSpecInfo(chartSpec, transform);
|
|
61571
61609
|
}
|
|
61572
61610
|
createSpecInfo(chartSpec, transform) {
|
|
61573
61611
|
var _a;
|
|
61574
61612
|
if (!transform) {
|
|
61575
|
-
transform = (constructor, specInfo, chartSpecInfo) =>
|
|
61613
|
+
transform = (constructor, specInfo, chartSpecInfo) => {
|
|
61614
|
+
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
61615
|
+
const transformer = new constructor.transformerConstructor({
|
|
61616
|
+
type,
|
|
61617
|
+
getTheme: this._option.getTheme
|
|
61618
|
+
});
|
|
61619
|
+
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, Object.assign(Object.assign({}, specInfo), { theme: transformer.getTheme(spec, chartSpec) }));
|
|
61620
|
+
};
|
|
61576
61621
|
}
|
|
61577
61622
|
const currentChartSpecInfo = {};
|
|
61578
61623
|
this.forEachRegionInSpec(chartSpec, transform, currentChartSpecInfo);
|
|
@@ -64450,7 +64495,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64450
64495
|
spec,
|
|
64451
64496
|
regionIndex: i,
|
|
64452
64497
|
type: ComponentTypeEnum.geoCoordinate,
|
|
64453
|
-
|
|
64498
|
+
specInfoPath: ['region', i, 'geoCoordinate']
|
|
64454
64499
|
});
|
|
64455
64500
|
}
|
|
64456
64501
|
});
|
|
@@ -89992,7 +90037,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89992
90037
|
specInfo.push({
|
|
89993
90038
|
spec: chartSpec,
|
|
89994
90039
|
type: ComponentTypeEnum.label,
|
|
89995
|
-
|
|
90040
|
+
specInfoPath: ['region', i, 'markLabel'],
|
|
89996
90041
|
specIndex: i
|
|
89997
90042
|
});
|
|
89998
90043
|
}
|