@visactor/vchart 1.1.0-beta.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1023 -353
- package/build/index.min.js +1 -1
- package/cjs/chart/base-chart.d.ts +1 -1
- package/cjs/compile/interface/compiler.d.ts +1 -0
- package/cjs/compile/interface/compiler.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +7 -7
- package/cjs/component/axis/base-axis.js +10 -6
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.js +3 -3
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/interface.d.ts +3 -3
- package/cjs/component/axis/interface.js.map +1 -1
- package/cjs/component/axis/utils.js +3 -2
- package/cjs/component/axis/utils.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.js +2 -2
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +2 -0
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +17 -13
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/util.js +1 -1
- package/cjs/component/data-zoom/util.js.map +1 -1
- package/cjs/component/interface/theme.d.ts +2 -0
- package/cjs/component/interface/theme.js.map +1 -1
- package/cjs/component/interface/type.d.ts +1 -0
- package/cjs/component/interface/type.js +2 -1
- package/cjs/component/interface/type.js.map +1 -1
- package/cjs/component/legend/discrete/interface.d.ts +5 -4
- package/cjs/component/legend/discrete/interface.js.map +1 -1
- package/cjs/component/legend/discrete/util.js +3 -3
- package/cjs/component/legend/discrete/util.js.map +1 -1
- package/cjs/component/legend/util.d.ts +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +6 -5
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.js +7 -5
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/layout/base-layout.d.ts +1 -0
- package/cjs/layout/base-layout.js +62 -0
- package/cjs/layout/base-layout.js.map +1 -1
- package/cjs/mark/image.d.ts +10 -0
- package/cjs/mark/image.js +23 -0
- package/cjs/mark/image.js.map +1 -0
- package/cjs/mark/interface/type.d.ts +1 -0
- package/cjs/mark/interface/type.js +5 -4
- package/cjs/mark/interface/type.js.map +1 -1
- package/cjs/model/interface.d.ts +1 -1
- package/cjs/model/interface.js.map +1 -1
- package/cjs/series/cartesian/cartesian.js +4 -4
- package/cjs/series/cartesian/cartesian.js.map +1 -1
- package/cjs/series/index.d.ts +2 -2
- package/cjs/series/index.js +4 -4
- package/cjs/series/index.js.map +1 -1
- package/cjs/series/range-column/{rangeColumn-3d.d.ts → range-column-3d.d.ts} +1 -1
- package/cjs/series/range-column/{rangeColumn-3d.js → range-column-3d.js} +3 -3
- package/cjs/series/range-column/range-column-3d.js.map +1 -0
- package/cjs/series/range-column/{rangeColumn.js → range-column.js} +1 -1
- package/cjs/series/range-column/range-column.js.map +1 -0
- package/cjs/series/sunburst/sunburst.d.ts +1 -1
- package/cjs/series/waterfall/waterfall.js +7 -6
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/theme/buildin-theme/light/component/data-zoom.js +3 -3
- package/cjs/theme/buildin-theme/light/component/data-zoom.js.map +1 -1
- package/cjs/theme/buildin-theme/light/component/index.js +3 -2
- package/cjs/theme/buildin-theme/light/component/index.js.map +1 -1
- package/cjs/theme/buildin-theme/light/component/poptip.d.ts +2 -0
- package/cjs/theme/buildin-theme/light/component/poptip.js +32 -0
- package/cjs/theme/buildin-theme/light/component/poptip.js.map +1 -0
- package/cjs/typings/spec/common.d.ts +4 -1
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/typings/visual.d.ts +12 -0
- package/cjs/typings/visual.js.map +1 -1
- package/cjs/util/style.d.ts +2 -1
- package/cjs/util/style.js +28 -9
- package/cjs/util/style.js.map +1 -1
- package/cjs/vchart-all.js +2 -2
- package/cjs/vchart-all.js.map +1 -1
- package/esm/chart/base-chart.d.ts +1 -1
- package/esm/compile/interface/compiler.d.ts +1 -0
- package/esm/compile/interface/compiler.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +7 -7
- package/esm/component/axis/base-axis.js +11 -7
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.js +1 -1
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/interface.d.ts +3 -3
- package/esm/component/axis/interface.js.map +1 -1
- package/esm/component/axis/utils.js +2 -2
- package/esm/component/axis/utils.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.js +2 -2
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +2 -0
- package/esm/component/data-zoom/data-zoom/data-zoom.js +17 -13
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/util.js +1 -1
- package/esm/component/data-zoom/util.js.map +1 -1
- package/esm/component/interface/theme.d.ts +2 -0
- package/esm/component/interface/theme.js.map +1 -1
- package/esm/component/interface/type.d.ts +1 -0
- package/esm/component/interface/type.js +2 -1
- package/esm/component/interface/type.js.map +1 -1
- package/esm/component/legend/discrete/interface.d.ts +5 -4
- package/esm/component/legend/discrete/interface.js.map +1 -1
- package/esm/component/legend/discrete/util.js +3 -2
- package/esm/component/legend/discrete/util.js.map +1 -1
- package/esm/component/legend/util.d.ts +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +4 -2
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.js +8 -4
- package/esm/core/vchart.js.map +1 -1
- package/esm/layout/base-layout.d.ts +1 -0
- package/esm/layout/base-layout.js +62 -0
- package/esm/layout/base-layout.js.map +1 -1
- package/esm/mark/image.d.ts +10 -0
- package/esm/mark/image.js +19 -0
- package/esm/mark/image.js.map +1 -0
- package/esm/mark/interface/type.d.ts +1 -0
- package/esm/mark/interface/type.js +5 -4
- package/esm/mark/interface/type.js.map +1 -1
- package/esm/model/interface.d.ts +1 -1
- package/esm/model/interface.js.map +1 -1
- package/esm/series/cartesian/cartesian.js +4 -4
- package/esm/series/cartesian/cartesian.js.map +1 -1
- package/esm/series/index.d.ts +2 -2
- package/esm/series/index.js +2 -2
- package/esm/series/index.js.map +1 -1
- package/esm/series/range-column/{rangeColumn-3d.d.ts → range-column-3d.d.ts} +1 -1
- package/esm/series/range-column/{rangeColumn-3d.js → range-column-3d.js} +2 -2
- package/esm/series/range-column/range-column-3d.js.map +1 -0
- package/esm/series/range-column/{rangeColumn.js → range-column.js} +1 -1
- package/esm/series/range-column/range-column.js.map +1 -0
- package/esm/series/sunburst/sunburst.d.ts +1 -1
- package/esm/series/waterfall/waterfall.js +6 -6
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/theme/buildin-theme/light/component/data-zoom.js +3 -3
- package/esm/theme/buildin-theme/light/component/data-zoom.js.map +1 -1
- package/esm/theme/buildin-theme/light/component/index.js +4 -1
- package/esm/theme/buildin-theme/light/component/index.js.map +1 -1
- package/esm/theme/buildin-theme/light/component/poptip.d.ts +2 -0
- package/esm/theme/buildin-theme/light/component/poptip.js +28 -0
- package/esm/theme/buildin-theme/light/component/poptip.js.map +1 -0
- package/esm/typings/spec/common.d.ts +4 -1
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/typings/visual.d.ts +12 -0
- package/esm/typings/visual.js.map +1 -1
- package/esm/util/style.d.ts +2 -1
- package/esm/util/style.js +23 -7
- package/esm/util/style.js.map +1 -1
- package/esm/vchart-all.js +3 -1
- package/esm/vchart-all.js.map +1 -1
- package/package.json +4 -4
- package/cjs/series/range-column/rangeColumn-3d.js.map +0 -1
- package/cjs/series/range-column/rangeColumn.js.map +0 -1
- package/esm/series/range-column/rangeColumn-3d.js.map +0 -1
- package/esm/series/range-column/rangeColumn.js.map +0 -1
- /package/cjs/series/range-column/{rangeColumn.d.ts → range-column.d.ts} +0 -0
- /package/esm/series/range-column/{rangeColumn.d.ts → range-column.d.ts} +0 -0
package/build/index.js
CHANGED
|
@@ -1662,6 +1662,9 @@
|
|
|
1662
1662
|
!function (InnerBBox) {
|
|
1663
1663
|
InnerBBox[InnerBBox.NONE = 0] = "NONE", InnerBBox[InnerBBox.BBOX1 = 1] = "BBOX1", InnerBBox[InnerBBox.BBOX2 = 2] = "BBOX2";
|
|
1664
1664
|
}(InnerBBox || (InnerBBox = {}));
|
|
1665
|
+
function rectInsideAnotherRect(bbox1, bbox2, format) {
|
|
1666
|
+
return bbox1 && bbox2 ? (x11 = bbox1.x1, x12 = bbox1.x2, y11 = bbox1.y1, y12 = bbox1.y2, x21 = bbox2.x1, x22 = bbox2.x2, y21 = bbox2.y1, y22 = bbox2.y2, format && (x11 > x12 && ([x11, x12] = [x12, x11]), y11 > y12 && ([y11, y12] = [y12, y11]), x21 > x22 && ([x21, x22] = [x22, x21]), y21 > y22 && ([y21, y22] = [y22, y21])), x11 > x21 && x12 < x22 && y11 > y21 && y12 < y22 ? InnerBBox.BBOX1 : x21 > x11 && x22 < x12 && y21 > y11 && y22 < y12 ? InnerBBox.BBOX2 : InnerBBox.NONE) : InnerBBox.NONE;
|
|
1667
|
+
}
|
|
1665
1668
|
function isRectIntersect(bbox1, bbox2, format) {
|
|
1666
1669
|
return !bbox1 || !bbox2 || (format ? (x11 = bbox1.x1, x12 = bbox1.x2, y11 = bbox1.y1, y12 = bbox1.y2, x21 = bbox2.x1, x22 = bbox2.x2, y21 = bbox2.y1, y22 = bbox2.y2, x11 > x12 && ([x11, x12] = [x12, x11]), y11 > y12 && ([y11, y12] = [y12, y11]), x21 > x22 && ([x21, x22] = [x22, x21]), y21 > y22 && ([y21, y22] = [y22, y21]), !(x11 > x22 || x12 < x21 || y11 > y22 || y12 < y21)) : !(bbox1.x1 > bbox2.x2 || bbox1.x2 < bbox2.x1 || bbox1.y1 > bbox2.y2 || bbox1.y2 < bbox2.y1));
|
|
1667
1670
|
}
|
|
@@ -2608,6 +2611,7 @@
|
|
|
2608
2611
|
ComponentTypeEnum["scrollBar"] = "scrollBar";
|
|
2609
2612
|
ComponentTypeEnum["label"] = "label";
|
|
2610
2613
|
ComponentTypeEnum["brush"] = "brush";
|
|
2614
|
+
ComponentTypeEnum["poptip"] = "poptip";
|
|
2611
2615
|
ComponentTypeEnum["customMark"] = "customMark";
|
|
2612
2616
|
})(ComponentTypeEnum || (ComponentTypeEnum = {}));
|
|
2613
2617
|
|
|
@@ -15558,7 +15562,7 @@
|
|
|
15558
15562
|
const EnvContribution = Symbol.for("EnvContribution");
|
|
15559
15563
|
const Global = Symbol.for("Global");
|
|
15560
15564
|
|
|
15561
|
-
var __decorate$
|
|
15565
|
+
var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15562
15566
|
var d,
|
|
15563
15567
|
c = arguments.length,
|
|
15564
15568
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15683,7 +15687,7 @@
|
|
|
15683
15687
|
return this._env || this.setEnv("browser"), this.envContribution.loadBlob(url);
|
|
15684
15688
|
}
|
|
15685
15689
|
};
|
|
15686
|
-
DefaultGlobal = __decorate$
|
|
15690
|
+
DefaultGlobal = __decorate$1K([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$15("design:paramtypes", [Object])], DefaultGlobal);
|
|
15687
15691
|
|
|
15688
15692
|
const circleThreshold = tau$1 - 1e-8;
|
|
15689
15693
|
class BoundsContext {
|
|
@@ -16952,7 +16956,7 @@
|
|
|
16952
16956
|
opacity: 1
|
|
16953
16957
|
});
|
|
16954
16958
|
|
|
16955
|
-
var __decorate$
|
|
16959
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16956
16960
|
var d,
|
|
16957
16961
|
c = arguments.length,
|
|
16958
16962
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17064,9 +17068,9 @@
|
|
|
17064
17068
|
return data.str += suffix, data.width += suffixWidth, data;
|
|
17065
17069
|
}
|
|
17066
17070
|
};
|
|
17067
|
-
ATextMeasure = __decorate$
|
|
17071
|
+
ATextMeasure = __decorate$1J([injectable()], ATextMeasure);
|
|
17068
17072
|
|
|
17069
|
-
var __decorate$
|
|
17073
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17070
17074
|
var d,
|
|
17071
17075
|
c = arguments.length,
|
|
17072
17076
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17075,7 +17079,7 @@
|
|
|
17075
17079
|
};
|
|
17076
17080
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
17077
17081
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
17078
|
-
DefaultTextMeasureContribution = __decorate$
|
|
17082
|
+
DefaultTextMeasureContribution = __decorate$1I([injectable()], DefaultTextMeasureContribution);
|
|
17079
17083
|
|
|
17080
17084
|
const container = new Container();
|
|
17081
17085
|
|
|
@@ -17447,7 +17451,7 @@
|
|
|
17447
17451
|
return containPath(commands, lineWidth, !0, x, y);
|
|
17448
17452
|
}
|
|
17449
17453
|
|
|
17450
|
-
var __decorate$
|
|
17454
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17451
17455
|
var d,
|
|
17452
17456
|
c = arguments.length,
|
|
17453
17457
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17510,7 +17514,7 @@
|
|
|
17510
17514
|
}, null != option ? option : {}), textSpec);
|
|
17511
17515
|
}
|
|
17512
17516
|
};
|
|
17513
|
-
DefaultGraphicUtil = __decorate$
|
|
17517
|
+
DefaultGraphicUtil = __decorate$1H([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __param$R(1, inject(Global)), __metadata$14("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
|
|
17514
17518
|
var TransformMode;
|
|
17515
17519
|
!function (TransformMode) {
|
|
17516
17520
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -17554,7 +17558,7 @@
|
|
|
17554
17558
|
return this;
|
|
17555
17559
|
}
|
|
17556
17560
|
};
|
|
17557
|
-
DefaultTransformUtil = __decorate$
|
|
17561
|
+
DefaultTransformUtil = __decorate$1H([injectable(), __metadata$14("design:paramtypes", [])], DefaultTransformUtil);
|
|
17558
17562
|
|
|
17559
17563
|
const defaultThemeObj = {
|
|
17560
17564
|
arc: DefaultArcAttribute,
|
|
@@ -22109,7 +22113,7 @@
|
|
|
22109
22113
|
}
|
|
22110
22114
|
}
|
|
22111
22115
|
|
|
22112
|
-
var __decorate$
|
|
22116
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22113
22117
|
var d,
|
|
22114
22118
|
c = arguments.length,
|
|
22115
22119
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22157,9 +22161,9 @@
|
|
|
22157
22161
|
return "browser" === this.global.env ? 10 : 0;
|
|
22158
22162
|
}
|
|
22159
22163
|
};
|
|
22160
|
-
DefaultLayerService = __decorate$
|
|
22164
|
+
DefaultLayerService = __decorate$1G([injectable(), __param$Q(0, inject(Global)), __metadata$13("design:paramtypes", [Object])], DefaultLayerService);
|
|
22161
22165
|
|
|
22162
|
-
var __decorate$
|
|
22166
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22163
22167
|
var d,
|
|
22164
22168
|
c = arguments.length,
|
|
22165
22169
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22263,7 +22267,7 @@
|
|
|
22263
22267
|
this._handler.clearViewBox(viewBox, color);
|
|
22264
22268
|
}
|
|
22265
22269
|
};
|
|
22266
|
-
__decorate$
|
|
22270
|
+
__decorate$1F([postConstruct(), __metadata$12("design:type", Function), __metadata$12("design:paramtypes", []), __metadata$12("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$1F([injectable(), __param$P(0, inject(Global)), __metadata$12("design:paramtypes", [Object])], DefaultWindow);
|
|
22267
22271
|
|
|
22268
22272
|
const TransformUtil = Symbol.for("TransformUtil");
|
|
22269
22273
|
const GraphicUtil = Symbol.for("GraphicUtil");
|
|
@@ -22558,7 +22562,7 @@
|
|
|
22558
22562
|
const TextRenderContribution = Symbol.for("TextRenderContribution");
|
|
22559
22563
|
const InteractiveSubRenderContribution = Symbol.for("InteractiveSubRenderContribution");
|
|
22560
22564
|
|
|
22561
|
-
var __decorate$
|
|
22565
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22562
22566
|
var d,
|
|
22563
22567
|
c = arguments.length,
|
|
22564
22568
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22770,9 +22774,9 @@
|
|
|
22770
22774
|
drawPathProxy(arc, context, x, y, drawContext, params) || this.drawShape(arc, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
22771
22775
|
}
|
|
22772
22776
|
};
|
|
22773
|
-
DefaultCanvasArcRender = __decorate$
|
|
22777
|
+
DefaultCanvasArcRender = __decorate$1E([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
22774
22778
|
|
|
22775
|
-
var __decorate$
|
|
22779
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22776
22780
|
var d,
|
|
22777
22781
|
c = arguments.length,
|
|
22778
22782
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22836,7 +22840,7 @@
|
|
|
22836
22840
|
drawPathProxy(circle, context, x, y, drawContext, params) || this.drawShape(circle, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
22837
22841
|
}
|
|
22838
22842
|
};
|
|
22839
|
-
DefaultCanvasCircleRender = __decorate$
|
|
22843
|
+
DefaultCanvasCircleRender = __decorate$1D([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
22840
22844
|
|
|
22841
22845
|
const CIRCLE_UPDATE_TAG_KEY = ["radius", "startAngle", "endAngle", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
22842
22846
|
class Circle extends Graphic {
|
|
@@ -25161,7 +25165,7 @@
|
|
|
25161
25165
|
}
|
|
25162
25166
|
}
|
|
25163
25167
|
|
|
25164
|
-
var __decorate$
|
|
25168
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25165
25169
|
var d,
|
|
25166
25170
|
c = arguments.length,
|
|
25167
25171
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25185,9 +25189,9 @@
|
|
|
25185
25189
|
return aabbBounds;
|
|
25186
25190
|
}
|
|
25187
25191
|
};
|
|
25188
|
-
DefaultOuterBorderBoundsContribution = __decorate$
|
|
25192
|
+
DefaultOuterBorderBoundsContribution = __decorate$1C([injectable()], DefaultOuterBorderBoundsContribution);
|
|
25189
25193
|
|
|
25190
|
-
var __decorate$
|
|
25194
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25191
25195
|
var d,
|
|
25192
25196
|
c = arguments.length,
|
|
25193
25197
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25196,9 +25200,9 @@
|
|
|
25196
25200
|
};
|
|
25197
25201
|
const RectBoundsContribution = Symbol.for("RectBoundsContribution");
|
|
25198
25202
|
let DefaultRectOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
25199
|
-
DefaultRectOuterBorderBoundsContribution = __decorate$
|
|
25203
|
+
DefaultRectOuterBorderBoundsContribution = __decorate$1B([injectable()], DefaultRectOuterBorderBoundsContribution);
|
|
25200
25204
|
|
|
25201
|
-
var __decorate$
|
|
25205
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25202
25206
|
var d,
|
|
25203
25207
|
c = arguments.length,
|
|
25204
25208
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25224,9 +25228,9 @@
|
|
|
25224
25228
|
return aabbBounds;
|
|
25225
25229
|
}
|
|
25226
25230
|
};
|
|
25227
|
-
DefaultSymbolOuterBorderBoundsContribution = __decorate$
|
|
25231
|
+
DefaultSymbolOuterBorderBoundsContribution = __decorate$1A([injectable()], DefaultSymbolOuterBorderBoundsContribution);
|
|
25228
25232
|
|
|
25229
|
-
var __decorate$
|
|
25233
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25230
25234
|
var d,
|
|
25231
25235
|
c = arguments.length,
|
|
25232
25236
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25235,9 +25239,9 @@
|
|
|
25235
25239
|
};
|
|
25236
25240
|
const CircleBoundsContribution = Symbol.for("CircleBoundsContribution");
|
|
25237
25241
|
let DefaultCircleOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
25238
|
-
DefaultCircleOuterBorderBoundsContribution = __decorate$
|
|
25242
|
+
DefaultCircleOuterBorderBoundsContribution = __decorate$1z([injectable()], DefaultCircleOuterBorderBoundsContribution);
|
|
25239
25243
|
|
|
25240
|
-
var __decorate$
|
|
25244
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25241
25245
|
var d,
|
|
25242
25246
|
c = arguments.length,
|
|
25243
25247
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25246,9 +25250,9 @@
|
|
|
25246
25250
|
};
|
|
25247
25251
|
const ArcBoundsContribution = Symbol.for("ArcBoundsContribution");
|
|
25248
25252
|
let DefaultArcOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
25249
|
-
DefaultArcOuterBorderBoundsContribution = __decorate$
|
|
25253
|
+
DefaultArcOuterBorderBoundsContribution = __decorate$1y([injectable()], DefaultArcOuterBorderBoundsContribution);
|
|
25250
25254
|
|
|
25251
|
-
var __decorate$
|
|
25255
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25252
25256
|
var d,
|
|
25253
25257
|
c = arguments.length,
|
|
25254
25258
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25257,7 +25261,7 @@
|
|
|
25257
25261
|
};
|
|
25258
25262
|
const PathBoundsContribution = Symbol.for("PathBoundsContribution");
|
|
25259
25263
|
let DefaultPathOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
25260
|
-
DefaultPathOuterBorderBoundsContribution = __decorate$
|
|
25264
|
+
DefaultPathOuterBorderBoundsContribution = __decorate$1x([injectable()], DefaultPathOuterBorderBoundsContribution);
|
|
25261
25265
|
|
|
25262
25266
|
function createMat4() {
|
|
25263
25267
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
@@ -25317,7 +25321,7 @@
|
|
|
25317
25321
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
25318
25322
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
25319
25323
|
|
|
25320
|
-
var __decorate$
|
|
25324
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25321
25325
|
var d,
|
|
25322
25326
|
c = arguments.length,
|
|
25323
25327
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25849,7 +25853,7 @@
|
|
|
25849
25853
|
this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
|
|
25850
25854
|
}
|
|
25851
25855
|
};
|
|
25852
|
-
DefaultGraphicService = __decorate$
|
|
25856
|
+
DefaultGraphicService = __decorate$1w([injectable(), __param$M(0, inject(GraphicCreator)), __param$M(1, inject(ContributionProvider)), __param$M(1, named(RectBoundsContribution)), __param$M(2, inject(ContributionProvider)), __param$M(2, named(SymbolBoundsContribution)), __param$M(3, inject(ContributionProvider)), __param$M(3, named(CircleBoundsContribution)), __param$M(4, inject(ContributionProvider)), __param$M(4, named(ArcBoundsContribution)), __param$M(5, inject(ContributionProvider)), __param$M(5, named(PathBoundsContribution)), __metadata$$("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
|
|
25853
25857
|
|
|
25854
25858
|
class ShadowRoot extends Group$1 {
|
|
25855
25859
|
constructor(graphic) {
|
|
@@ -26069,7 +26073,7 @@
|
|
|
26069
26073
|
}
|
|
26070
26074
|
createRichText({});
|
|
26071
26075
|
|
|
26072
|
-
var __decorate$
|
|
26076
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26073
26077
|
var d,
|
|
26074
26078
|
c = arguments.length,
|
|
26075
26079
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26153,7 +26157,7 @@
|
|
|
26153
26157
|
context.translate(p.x, p.y, !1), context.scale(scaleX, scaleY, !1), context.rotate(angle, !1), context.translate(-p.x, -p.y, !1), context.setTransformForCurrent();
|
|
26154
26158
|
}
|
|
26155
26159
|
};
|
|
26156
|
-
BaseRender = __decorate$
|
|
26160
|
+
BaseRender = __decorate$1v([injectable()], BaseRender);
|
|
26157
26161
|
|
|
26158
26162
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
26159
26163
|
const {
|
|
@@ -26230,7 +26234,7 @@
|
|
|
26230
26234
|
}
|
|
26231
26235
|
}
|
|
26232
26236
|
|
|
26233
|
-
var __decorate$
|
|
26237
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26234
26238
|
var d,
|
|
26235
26239
|
c = arguments.length,
|
|
26236
26240
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26336,7 +26340,7 @@
|
|
|
26336
26340
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
26337
26341
|
}
|
|
26338
26342
|
};
|
|
26339
|
-
DefaultCanvasLineRender = __decorate$
|
|
26343
|
+
DefaultCanvasLineRender = __decorate$1u([injectable()], DefaultCanvasLineRender);
|
|
26340
26344
|
|
|
26341
26345
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
26342
26346
|
var _a;
|
|
@@ -26414,7 +26418,7 @@
|
|
|
26414
26418
|
}
|
|
26415
26419
|
}
|
|
26416
26420
|
|
|
26417
|
-
var __decorate$
|
|
26421
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26418
26422
|
var d,
|
|
26419
26423
|
c = arguments.length,
|
|
26420
26424
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26600,9 +26604,9 @@
|
|
|
26600
26604
|
}), !1;
|
|
26601
26605
|
}
|
|
26602
26606
|
};
|
|
26603
|
-
DefaultCanvasAreaRender = __decorate$
|
|
26607
|
+
DefaultCanvasAreaRender = __decorate$1t([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
26604
26608
|
|
|
26605
|
-
var __decorate$
|
|
26609
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26606
26610
|
var d,
|
|
26607
26611
|
c = arguments.length,
|
|
26608
26612
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26670,7 +26674,7 @@
|
|
|
26670
26674
|
this.z = z, drawPathProxy(path, context, x, y, drawContext, params) || (this.drawShape(path, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
|
|
26671
26675
|
}
|
|
26672
26676
|
};
|
|
26673
|
-
DefaultCanvasPathRender = __decorate$
|
|
26677
|
+
DefaultCanvasPathRender = __decorate$1s([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
26674
26678
|
|
|
26675
26679
|
const halfPi = pi$1 / 2;
|
|
26676
26680
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
@@ -26727,7 +26731,7 @@
|
|
|
26727
26731
|
return path.closePath(), path;
|
|
26728
26732
|
}
|
|
26729
26733
|
|
|
26730
|
-
var __decorate$
|
|
26734
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26731
26735
|
var d,
|
|
26732
26736
|
c = arguments.length,
|
|
26733
26737
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26799,9 +26803,9 @@
|
|
|
26799
26803
|
drawPathProxy(rect, context, x, y, drawContext, params) || this.drawShape(rect, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
26800
26804
|
}
|
|
26801
26805
|
};
|
|
26802
|
-
DefaultCanvasRectRender = __decorate$
|
|
26806
|
+
DefaultCanvasRectRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$Y("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
26803
26807
|
|
|
26804
|
-
var __decorate$
|
|
26808
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26805
26809
|
var d,
|
|
26806
26810
|
c = arguments.length,
|
|
26807
26811
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26879,9 +26883,9 @@
|
|
|
26879
26883
|
this.z = z, drawPathProxy(symbol, context, x, y, drawContext, params) || (this.drawShape(symbol, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
|
|
26880
26884
|
}
|
|
26881
26885
|
};
|
|
26882
|
-
DefaultCanvasSymbolRender = __decorate$
|
|
26886
|
+
DefaultCanvasSymbolRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
26883
26887
|
|
|
26884
|
-
var __decorate$
|
|
26888
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26885
26889
|
var d,
|
|
26886
26890
|
c = arguments.length,
|
|
26887
26891
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27042,9 +27046,9 @@
|
|
|
27042
27046
|
}
|
|
27043
27047
|
}
|
|
27044
27048
|
};
|
|
27045
|
-
DefaultCanvasTextRender = __decorate$
|
|
27049
|
+
DefaultCanvasTextRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$W("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
27046
27050
|
|
|
27047
|
-
var __decorate$
|
|
27051
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27048
27052
|
var d,
|
|
27049
27053
|
c = arguments.length,
|
|
27050
27054
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27052,7 +27056,7 @@
|
|
|
27052
27056
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27053
27057
|
};
|
|
27054
27058
|
let AbstractGraphicRender = class {};
|
|
27055
|
-
AbstractGraphicRender = __decorate$
|
|
27059
|
+
AbstractGraphicRender = __decorate$1o([injectable()], AbstractGraphicRender);
|
|
27056
27060
|
|
|
27057
27061
|
function drawPolygon(path, points, x, y) {
|
|
27058
27062
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -27099,7 +27103,7 @@
|
|
|
27099
27103
|
};
|
|
27100
27104
|
}
|
|
27101
27105
|
|
|
27102
|
-
var __decorate$
|
|
27106
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27103
27107
|
var d,
|
|
27104
27108
|
c = arguments.length,
|
|
27105
27109
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27162,9 +27166,9 @@
|
|
|
27162
27166
|
drawPathProxy(polygon, context, x, y, drawContext, params) || this.drawShape(polygon, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
27163
27167
|
}
|
|
27164
27168
|
};
|
|
27165
|
-
DefaultCanvasPolygonRender = __decorate$
|
|
27169
|
+
DefaultCanvasPolygonRender = __decorate$1n([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$V("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
27166
27170
|
|
|
27167
|
-
var __decorate$
|
|
27171
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27168
27172
|
var d,
|
|
27169
27173
|
c = arguments.length,
|
|
27170
27174
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27241,7 +27245,7 @@
|
|
|
27241
27245
|
}
|
|
27242
27246
|
}
|
|
27243
27247
|
};
|
|
27244
|
-
DefaultCanvasImageRender = __decorate$
|
|
27248
|
+
DefaultCanvasImageRender = __decorate$1m([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
27245
27249
|
|
|
27246
27250
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
27247
27251
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -27389,7 +27393,7 @@
|
|
|
27389
27393
|
}
|
|
27390
27394
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
27391
27395
|
|
|
27392
|
-
var __decorate$
|
|
27396
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27393
27397
|
var d,
|
|
27394
27398
|
c = arguments.length,
|
|
27395
27399
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27429,7 +27433,7 @@
|
|
|
27429
27433
|
} else context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
|
|
27430
27434
|
}
|
|
27431
27435
|
};
|
|
27432
|
-
DefaultBaseBackgroundRenderContribution = __decorate$
|
|
27436
|
+
DefaultBaseBackgroundRenderContribution = __decorate$1l([injectable()], DefaultBaseBackgroundRenderContribution);
|
|
27433
27437
|
let DefaultBaseInteractiveRenderContribution = class {
|
|
27434
27438
|
constructor(subRenderContribitions) {
|
|
27435
27439
|
this.subRenderContribitions = subRenderContribitions, this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -27440,7 +27444,7 @@
|
|
|
27440
27444
|
});
|
|
27441
27445
|
}
|
|
27442
27446
|
};
|
|
27443
|
-
DefaultBaseInteractiveRenderContribution = __decorate$
|
|
27447
|
+
DefaultBaseInteractiveRenderContribution = __decorate$1l([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(InteractiveSubRenderContribution)), __metadata$T("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
27444
27448
|
let DefaultBaseTextureRenderContribution = class {
|
|
27445
27449
|
constructor() {
|
|
27446
27450
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 10;
|
|
@@ -27553,9 +27557,9 @@
|
|
|
27553
27557
|
pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
|
|
27554
27558
|
}
|
|
27555
27559
|
};
|
|
27556
|
-
DefaultBaseTextureRenderContribution = __decorate$
|
|
27560
|
+
DefaultBaseTextureRenderContribution = __decorate$1l([injectable()], DefaultBaseTextureRenderContribution);
|
|
27557
27561
|
|
|
27558
|
-
var __decorate$
|
|
27562
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27559
27563
|
var d,
|
|
27560
27564
|
c = arguments.length,
|
|
27561
27565
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27616,21 +27620,21 @@
|
|
|
27616
27620
|
});
|
|
27617
27621
|
}
|
|
27618
27622
|
};
|
|
27619
|
-
DefaultArcRenderContribution = __decorate$
|
|
27623
|
+
DefaultArcRenderContribution = __decorate$1k([injectable()], DefaultArcRenderContribution);
|
|
27620
27624
|
let DefaultArcBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
27621
27625
|
constructor() {
|
|
27622
27626
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
27623
27627
|
}
|
|
27624
27628
|
};
|
|
27625
|
-
DefaultArcBackgroundRenderContribution = __decorate$
|
|
27629
|
+
DefaultArcBackgroundRenderContribution = __decorate$1k([injectable()], DefaultArcBackgroundRenderContribution);
|
|
27626
27630
|
let DefaultArcTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
27627
27631
|
constructor() {
|
|
27628
27632
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
27629
27633
|
}
|
|
27630
27634
|
};
|
|
27631
|
-
DefaultArcTextureRenderContribution = __decorate$
|
|
27635
|
+
DefaultArcTextureRenderContribution = __decorate$1k([injectable()], DefaultArcTextureRenderContribution);
|
|
27632
27636
|
|
|
27633
|
-
var __decorate$
|
|
27637
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27634
27638
|
var d,
|
|
27635
27639
|
c = arguments.length,
|
|
27636
27640
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27672,21 +27676,21 @@
|
|
|
27672
27676
|
}
|
|
27673
27677
|
}
|
|
27674
27678
|
};
|
|
27675
|
-
DefaultCircleRenderContribution = __decorate$
|
|
27679
|
+
DefaultCircleRenderContribution = __decorate$1j([injectable()], DefaultCircleRenderContribution);
|
|
27676
27680
|
let DefaultCircleBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
27677
27681
|
constructor() {
|
|
27678
27682
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
27679
27683
|
}
|
|
27680
27684
|
};
|
|
27681
|
-
DefaultCircleBackgroundRenderContribution = __decorate$
|
|
27685
|
+
DefaultCircleBackgroundRenderContribution = __decorate$1j([injectable()], DefaultCircleBackgroundRenderContribution);
|
|
27682
27686
|
let DefaultCircleTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
27683
27687
|
constructor() {
|
|
27684
27688
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
27685
27689
|
}
|
|
27686
27690
|
};
|
|
27687
|
-
DefaultCircleTextureRenderContribution = __decorate$
|
|
27691
|
+
DefaultCircleTextureRenderContribution = __decorate$1j([injectable()], DefaultCircleTextureRenderContribution);
|
|
27688
27692
|
|
|
27689
|
-
var __decorate$
|
|
27693
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27690
27694
|
var d,
|
|
27691
27695
|
c = arguments.length,
|
|
27692
27696
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27710,9 +27714,9 @@
|
|
|
27710
27714
|
} else context.highPerformanceSave(), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
|
|
27711
27715
|
}
|
|
27712
27716
|
};
|
|
27713
|
-
DefaultGroupBackgroundRenderContribution = __decorate$
|
|
27717
|
+
DefaultGroupBackgroundRenderContribution = __decorate$1i([injectable()], DefaultGroupBackgroundRenderContribution);
|
|
27714
27718
|
|
|
27715
|
-
var __decorate$
|
|
27719
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27716
27720
|
var d,
|
|
27717
27721
|
c = arguments.length,
|
|
27718
27722
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27749,9 +27753,9 @@
|
|
|
27749
27753
|
}
|
|
27750
27754
|
}
|
|
27751
27755
|
};
|
|
27752
|
-
DefaultImageBackgroundRenderContribution = __decorate$
|
|
27756
|
+
DefaultImageBackgroundRenderContribution = __decorate$1h([injectable()], DefaultImageBackgroundRenderContribution);
|
|
27753
27757
|
|
|
27754
|
-
var __decorate$
|
|
27758
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27755
27759
|
var d,
|
|
27756
27760
|
c = arguments.length,
|
|
27757
27761
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27799,19 +27803,19 @@
|
|
|
27799
27803
|
}
|
|
27800
27804
|
}
|
|
27801
27805
|
};
|
|
27802
|
-
DefaultRectRenderContribution = __decorate$
|
|
27806
|
+
DefaultRectRenderContribution = __decorate$1g([injectable()], DefaultRectRenderContribution);
|
|
27803
27807
|
let DefaultRectBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
27804
27808
|
constructor() {
|
|
27805
27809
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
27806
27810
|
}
|
|
27807
27811
|
};
|
|
27808
|
-
DefaultRectBackgroundRenderContribution = __decorate$
|
|
27812
|
+
DefaultRectBackgroundRenderContribution = __decorate$1g([injectable()], DefaultRectBackgroundRenderContribution);
|
|
27809
27813
|
let DefaultRectTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
27810
27814
|
constructor() {
|
|
27811
27815
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
27812
27816
|
}
|
|
27813
27817
|
};
|
|
27814
|
-
DefaultRectTextureRenderContribution = __decorate$
|
|
27818
|
+
DefaultRectTextureRenderContribution = __decorate$1g([injectable()], DefaultRectTextureRenderContribution);
|
|
27815
27819
|
let SplitRectBeforeRenderContribution = class {
|
|
27816
27820
|
constructor() {
|
|
27817
27821
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -27823,7 +27827,7 @@
|
|
|
27823
27827
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
27824
27828
|
}
|
|
27825
27829
|
};
|
|
27826
|
-
SplitRectBeforeRenderContribution = __decorate$
|
|
27830
|
+
SplitRectBeforeRenderContribution = __decorate$1g([injectable()], SplitRectBeforeRenderContribution);
|
|
27827
27831
|
let SplitRectAfterRenderContribution = class {
|
|
27828
27832
|
constructor() {
|
|
27829
27833
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -27843,9 +27847,9 @@
|
|
|
27843
27847
|
}
|
|
27844
27848
|
}
|
|
27845
27849
|
};
|
|
27846
|
-
SplitRectAfterRenderContribution = __decorate$
|
|
27850
|
+
SplitRectAfterRenderContribution = __decorate$1g([injectable()], SplitRectAfterRenderContribution);
|
|
27847
27851
|
|
|
27848
|
-
var __decorate$
|
|
27852
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27849
27853
|
var d,
|
|
27850
27854
|
c = arguments.length,
|
|
27851
27855
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27888,7 +27892,7 @@
|
|
|
27888
27892
|
}
|
|
27889
27893
|
}
|
|
27890
27894
|
};
|
|
27891
|
-
DefaultSymbolRenderContribution = __decorate$
|
|
27895
|
+
DefaultSymbolRenderContribution = __decorate$1f([injectable()], DefaultSymbolRenderContribution);
|
|
27892
27896
|
class DefaultSymbolBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
27893
27897
|
constructor() {
|
|
27894
27898
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
@@ -27900,7 +27904,7 @@
|
|
|
27900
27904
|
}
|
|
27901
27905
|
}
|
|
27902
27906
|
|
|
27903
|
-
var __decorate$
|
|
27907
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27904
27908
|
var d,
|
|
27905
27909
|
c = arguments.length,
|
|
27906
27910
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27945,7 +27949,7 @@
|
|
|
27945
27949
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params);
|
|
27946
27950
|
}
|
|
27947
27951
|
};
|
|
27948
|
-
DefaultRenderService = __decorate$
|
|
27952
|
+
DefaultRenderService = __decorate$1e([injectable(), __param$D(0, inject(DrawContribution)), __metadata$S("design:paramtypes", [Object])], DefaultRenderService);
|
|
27949
27953
|
|
|
27950
27954
|
var renderModule$1 = new ContainerModule(bind => {
|
|
27951
27955
|
bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
|
|
@@ -28057,7 +28061,7 @@
|
|
|
28057
28061
|
return result;
|
|
28058
28062
|
}
|
|
28059
28063
|
|
|
28060
|
-
var __decorate$
|
|
28064
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28061
28065
|
var d,
|
|
28062
28066
|
c = arguments.length,
|
|
28063
28067
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28124,9 +28128,9 @@
|
|
|
28124
28128
|
context.setTransformForCurrent();
|
|
28125
28129
|
}
|
|
28126
28130
|
};
|
|
28127
|
-
Canvas3DPickItemInterceptor = __decorate$
|
|
28131
|
+
Canvas3DPickItemInterceptor = __decorate$1d([injectable()], Canvas3DPickItemInterceptor);
|
|
28128
28132
|
|
|
28129
|
-
var __decorate$
|
|
28133
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28130
28134
|
var d,
|
|
28131
28135
|
c = arguments.length,
|
|
28132
28136
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28233,9 +28237,9 @@
|
|
|
28233
28237
|
return picker || null;
|
|
28234
28238
|
}
|
|
28235
28239
|
};
|
|
28236
|
-
DefaultPickService = __decorate$
|
|
28240
|
+
DefaultPickService = __decorate$1c([injectable(), __param$C(0, inject(Global)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickItemInterceptor)), __metadata$R("design:paramtypes", [Object, Object])], DefaultPickService);
|
|
28237
28241
|
|
|
28238
|
-
var __decorate$
|
|
28242
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28239
28243
|
var d,
|
|
28240
28244
|
c = arguments.length,
|
|
28241
28245
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28295,7 +28299,7 @@
|
|
|
28295
28299
|
return !1 === graphic.attribute.pickable ? null : graphic.AABBBounds.containsPoint(point) ? graphic : null;
|
|
28296
28300
|
}
|
|
28297
28301
|
};
|
|
28298
|
-
DefaultGlobalPickerService = __decorate$
|
|
28302
|
+
DefaultGlobalPickerService = __decorate$1b([injectable(), __param$B(0, inject(Global)), __metadata$Q("design:paramtypes", [Object])], DefaultGlobalPickerService);
|
|
28299
28303
|
|
|
28300
28304
|
function lookAt(out, eye, center, up) {
|
|
28301
28305
|
let x0, x1, x2, y0, y1, y2, z0, z1, z2, len;
|
|
@@ -28412,7 +28416,7 @@
|
|
|
28412
28416
|
}
|
|
28413
28417
|
}
|
|
28414
28418
|
|
|
28415
|
-
var __decorate$
|
|
28419
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28416
28420
|
var d,
|
|
28417
28421
|
c = arguments.length,
|
|
28418
28422
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28921,9 +28925,9 @@
|
|
|
28921
28925
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
28922
28926
|
}
|
|
28923
28927
|
};
|
|
28924
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
28928
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$1a([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
28925
28929
|
|
|
28926
|
-
var __decorate$
|
|
28930
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28927
28931
|
var d,
|
|
28928
28932
|
c = arguments.length,
|
|
28929
28933
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28951,9 +28955,15 @@
|
|
|
28951
28955
|
get x() {
|
|
28952
28956
|
return this._x;
|
|
28953
28957
|
}
|
|
28958
|
+
set x(_x) {
|
|
28959
|
+
this._x = _x;
|
|
28960
|
+
}
|
|
28954
28961
|
get y() {
|
|
28955
28962
|
return this._y;
|
|
28956
28963
|
}
|
|
28964
|
+
set y(_y) {
|
|
28965
|
+
this._y = _y;
|
|
28966
|
+
}
|
|
28957
28967
|
get nativeCanvas() {
|
|
28958
28968
|
return this._nativeCanvas;
|
|
28959
28969
|
}
|
|
@@ -29061,7 +29071,7 @@
|
|
|
29061
29071
|
this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
|
|
29062
29072
|
}
|
|
29063
29073
|
};
|
|
29064
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$
|
|
29074
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$19([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
|
|
29065
29075
|
|
|
29066
29076
|
const CanvasArcPicker = Symbol.for("CanvasArcPicker");
|
|
29067
29077
|
const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
|
|
@@ -29091,7 +29101,7 @@
|
|
|
29091
29101
|
const MathGlyphPicker = Symbol.for("MathGlyphPicker");
|
|
29092
29102
|
const MathPickerContribution = Symbol.for("MathPickerContribution");
|
|
29093
29103
|
|
|
29094
|
-
var __decorate$
|
|
29104
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29095
29105
|
var d,
|
|
29096
29106
|
c = arguments.length,
|
|
29097
29107
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29139,9 +29149,9 @@
|
|
|
29139
29149
|
return picker && picker.contains(graphic, point, params) ? graphic : null;
|
|
29140
29150
|
}
|
|
29141
29151
|
};
|
|
29142
|
-
__decorate$
|
|
29152
|
+
__decorate$18([postConstruct(), __metadata$N("design:type", Function), __metadata$N("design:paramtypes", []), __metadata$N("design:returntype", void 0)], DefaultCanvasPickerService.prototype, "init", null), DefaultCanvasPickerService = __decorate$18([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(CanvasPickerContribution)), __param$A(1, inject(CanvasCirclePicker)), __param$A(2, inject(CanvasRectPicker)), __param$A(3, inject(CanvasArcPicker)), __param$A(4, inject(CanvasAreaPicker)), __param$A(5, inject(CanvasImagePicker)), __param$A(6, inject(CanvasLinePicker)), __param$A(7, inject(CanvasPathPicker)), __param$A(8, inject(CanvasSymbolPicker)), __param$A(9, inject(CanvasTextPicker)), __param$A(10, inject(CanvasPolygonPicker)), __param$A(11, inject(CanvasRichTextPicker)), __param$A(12, inject(DrawContribution)), __param$A(13, inject(Global)), __param$A(14, inject(ContributionProvider)), __param$A(14, named(PickItemInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])], DefaultCanvasPickerService);
|
|
29143
29153
|
|
|
29144
|
-
var __decorate$
|
|
29154
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29145
29155
|
var d,
|
|
29146
29156
|
c = arguments.length,
|
|
29147
29157
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29355,9 +29365,9 @@
|
|
|
29355
29365
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
29356
29366
|
}
|
|
29357
29367
|
};
|
|
29358
|
-
EmptyContext2d = __decorate$
|
|
29368
|
+
EmptyContext2d = __decorate$17([injectable(), __metadata$M("design:paramtypes", [Object, Number])], EmptyContext2d);
|
|
29359
29369
|
|
|
29360
|
-
var __decorate$
|
|
29370
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29361
29371
|
var d,
|
|
29362
29372
|
c = arguments.length,
|
|
29363
29373
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29392,7 +29402,7 @@
|
|
|
29392
29402
|
return picker && picker.contains(graphic, point, params) ? graphic : null;
|
|
29393
29403
|
}
|
|
29394
29404
|
};
|
|
29395
|
-
__decorate$
|
|
29405
|
+
__decorate$16([postConstruct(), __metadata$L("design:type", Function), __metadata$L("design:paramtypes", []), __metadata$L("design:returntype", void 0)], DefaultMathPickerService.prototype, "init", null), DefaultMathPickerService = __decorate$16([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(MathPickerContribution)), __param$z(1, inject(Global)), __param$z(2, inject(ContributionProvider)), __param$z(2, named(PickItemInterceptor)), __metadata$L("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
|
|
29396
29406
|
|
|
29397
29407
|
var pickModule = new ContainerModule(bind => {
|
|
29398
29408
|
bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), bind(DefaultMathPickerService).toSelf().inSingletonScope(), bind(PickerService).toService(DefaultCanvasPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bindContributionProvider(bind, PickItemInterceptor);
|
|
@@ -29405,7 +29415,7 @@
|
|
|
29405
29415
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
29406
29416
|
const PluginService = Symbol.for("PluginService");
|
|
29407
29417
|
|
|
29408
|
-
var __decorate$
|
|
29418
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29409
29419
|
var d,
|
|
29410
29420
|
c = arguments.length,
|
|
29411
29421
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29452,13 +29462,13 @@
|
|
|
29452
29462
|
}), this.onRegisterPlugin = [];
|
|
29453
29463
|
}
|
|
29454
29464
|
};
|
|
29455
|
-
DefaultPluginService = __decorate$
|
|
29465
|
+
DefaultPluginService = __decorate$15([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(AutoEnablePlugins)), __metadata$K("design:paramtypes", [Object])], DefaultPluginService);
|
|
29456
29466
|
|
|
29457
29467
|
var pluginModule = new ContainerModule(bind => {
|
|
29458
29468
|
bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProvider(bind, AutoEnablePlugins);
|
|
29459
29469
|
});
|
|
29460
29470
|
|
|
29461
|
-
var __decorate$
|
|
29471
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29462
29472
|
var d,
|
|
29463
29473
|
c = arguments.length,
|
|
29464
29474
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29510,9 +29520,9 @@
|
|
|
29510
29520
|
}));
|
|
29511
29521
|
}
|
|
29512
29522
|
};
|
|
29513
|
-
BaseEnvContribution = __decorate$
|
|
29523
|
+
BaseEnvContribution = __decorate$14([injectable()], BaseEnvContribution);
|
|
29514
29524
|
|
|
29515
|
-
var __decorate$
|
|
29525
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29516
29526
|
var d,
|
|
29517
29527
|
c = arguments.length,
|
|
29518
29528
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29522,7 +29532,7 @@
|
|
|
29522
29532
|
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
29523
29533
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29524
29534
|
};
|
|
29525
|
-
function createImageElement(src) {
|
|
29535
|
+
function createImageElement$1(src) {
|
|
29526
29536
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
29527
29537
|
const img = document.createElement("img");
|
|
29528
29538
|
if (img.crossOrigin = "anonymous", isSvg) {
|
|
@@ -29571,7 +29581,7 @@
|
|
|
29571
29581
|
};
|
|
29572
29582
|
}
|
|
29573
29583
|
loadImage(url) {
|
|
29574
|
-
return createImageElement(url, !1).then(img => ({
|
|
29584
|
+
return createImageElement$1(url, !1).then(img => ({
|
|
29575
29585
|
data: img,
|
|
29576
29586
|
loadState: "success"
|
|
29577
29587
|
})).catch(() => ({
|
|
@@ -29580,7 +29590,7 @@
|
|
|
29580
29590
|
}));
|
|
29581
29591
|
}
|
|
29582
29592
|
loadSvg(url) {
|
|
29583
|
-
return createImageElement(url, !0).then(img => ({
|
|
29593
|
+
return createImageElement$1(url, !0).then(img => ({
|
|
29584
29594
|
data: img,
|
|
29585
29595
|
loadState: "success"
|
|
29586
29596
|
})).catch(() => ({
|
|
@@ -29633,7 +29643,7 @@
|
|
|
29633
29643
|
}
|
|
29634
29644
|
release() {}
|
|
29635
29645
|
};
|
|
29636
|
-
BrowserEnvContribution = __decorate$
|
|
29646
|
+
BrowserEnvContribution = __decorate$13([injectable(), __metadata$J("design:paramtypes", [])], BrowserEnvContribution);
|
|
29637
29647
|
|
|
29638
29648
|
function loadFeishuContributions() {
|
|
29639
29649
|
container.rebind(PickerService).toService(DefaultMathPickerService);
|
|
@@ -29642,7 +29652,7 @@
|
|
|
29642
29652
|
container.rebind(PickerService).toService(DefaultMathPickerService);
|
|
29643
29653
|
}
|
|
29644
29654
|
|
|
29645
|
-
var __decorate$
|
|
29655
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29646
29656
|
var d,
|
|
29647
29657
|
c = arguments.length,
|
|
29648
29658
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29746,9 +29756,9 @@
|
|
|
29746
29756
|
return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
|
|
29747
29757
|
}
|
|
29748
29758
|
};
|
|
29749
|
-
FeishuEnvContribution = __decorate$
|
|
29759
|
+
FeishuEnvContribution = __decorate$12([injectable(), __metadata$I("design:paramtypes", [])], FeishuEnvContribution);
|
|
29750
29760
|
|
|
29751
|
-
var __decorate
|
|
29761
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29752
29762
|
var d,
|
|
29753
29763
|
c = arguments.length,
|
|
29754
29764
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29880,9 +29890,9 @@
|
|
|
29880
29890
|
}
|
|
29881
29891
|
release() {}
|
|
29882
29892
|
};
|
|
29883
|
-
TaroEnvContribution = __decorate
|
|
29893
|
+
TaroEnvContribution = __decorate$11([injectable(), __metadata$H("design:paramtypes", [])], TaroEnvContribution);
|
|
29884
29894
|
|
|
29885
|
-
var __decorate$
|
|
29895
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29886
29896
|
var d,
|
|
29887
29897
|
c = arguments.length,
|
|
29888
29898
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29920,6 +29930,18 @@
|
|
|
29920
29930
|
canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas);
|
|
29921
29931
|
});
|
|
29922
29932
|
}
|
|
29933
|
+
function createImageElement(src) {
|
|
29934
|
+
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
29935
|
+
if (isSvg) return Promise.reject();
|
|
29936
|
+
const img = lynx.createImage(src);
|
|
29937
|
+
return new Promise((resolve, reject) => {
|
|
29938
|
+
img.onload = () => {
|
|
29939
|
+
resolve(img);
|
|
29940
|
+
}, img.onerror = () => {
|
|
29941
|
+
reject(new Error("加载失败"));
|
|
29942
|
+
};
|
|
29943
|
+
});
|
|
29944
|
+
}
|
|
29923
29945
|
let LynxEnvContribution = class extends BaseEnvContribution {
|
|
29924
29946
|
constructor() {
|
|
29925
29947
|
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
|
|
@@ -29940,10 +29962,13 @@
|
|
|
29940
29962
|
return this.freeCanvasList.length;
|
|
29941
29963
|
}
|
|
29942
29964
|
loadImage(url) {
|
|
29943
|
-
return
|
|
29944
|
-
data:
|
|
29965
|
+
return createImageElement(url, !1).then(img => ({
|
|
29966
|
+
data: img,
|
|
29945
29967
|
loadState: "success"
|
|
29946
|
-
})
|
|
29968
|
+
})).catch(() => ({
|
|
29969
|
+
data: null,
|
|
29970
|
+
loadState: "fail"
|
|
29971
|
+
}));
|
|
29947
29972
|
}
|
|
29948
29973
|
loadSvg(url) {
|
|
29949
29974
|
return Promise.reject();
|
|
@@ -29987,9 +30012,9 @@
|
|
|
29987
30012
|
}
|
|
29988
30013
|
release() {}
|
|
29989
30014
|
};
|
|
29990
|
-
LynxEnvContribution = __decorate$
|
|
30015
|
+
LynxEnvContribution = __decorate$10([injectable(), __metadata$G("design:paramtypes", [])], LynxEnvContribution);
|
|
29991
30016
|
|
|
29992
|
-
var __decorate
|
|
30017
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29993
30018
|
var d,
|
|
29994
30019
|
c = arguments.length,
|
|
29995
30020
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30075,9 +30100,9 @@
|
|
|
30075
30100
|
release() {}
|
|
30076
30101
|
createOffscreenCanvas(params) {}
|
|
30077
30102
|
};
|
|
30078
|
-
NodeEnvContribution = __decorate
|
|
30103
|
+
NodeEnvContribution = __decorate$$([injectable()], NodeEnvContribution);
|
|
30079
30104
|
|
|
30080
|
-
var __decorate$
|
|
30105
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30081
30106
|
var d,
|
|
30082
30107
|
c = arguments.length,
|
|
30083
30108
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30198,13 +30223,13 @@
|
|
|
30198
30223
|
return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
|
|
30199
30224
|
}
|
|
30200
30225
|
};
|
|
30201
|
-
WxEnvContribution = __decorate$
|
|
30226
|
+
WxEnvContribution = __decorate$_([injectable(), __metadata$F("design:paramtypes", [])], WxEnvContribution);
|
|
30202
30227
|
|
|
30203
30228
|
var envModules = new ContainerModule(bind => {
|
|
30204
30229
|
bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution), bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution), bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution), bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution), bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution), bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution), bindContributionProvider(bind, EnvContribution);
|
|
30205
30230
|
});
|
|
30206
30231
|
|
|
30207
|
-
var __decorate$
|
|
30232
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30208
30233
|
var d,
|
|
30209
30234
|
c = arguments.length,
|
|
30210
30235
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30228,9 +30253,9 @@
|
|
|
30228
30253
|
this.releaseWindow();
|
|
30229
30254
|
}
|
|
30230
30255
|
};
|
|
30231
|
-
BaseWindowHandlerContribution = __decorate$
|
|
30256
|
+
BaseWindowHandlerContribution = __decorate$Z([injectable(), __metadata$E("design:paramtypes", [])], BaseWindowHandlerContribution);
|
|
30232
30257
|
|
|
30233
|
-
var __decorate$
|
|
30258
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30234
30259
|
var d,
|
|
30235
30260
|
c = arguments.length,
|
|
30236
30261
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30364,9 +30389,9 @@
|
|
|
30364
30389
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
30365
30390
|
}
|
|
30366
30391
|
};
|
|
30367
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$
|
|
30392
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$Y([injectable(), __param$x(0, inject(Global)), __metadata$D("design:paramtypes", [Object])], BrowserWindowHandlerContribution);
|
|
30368
30393
|
|
|
30369
|
-
var __decorate$
|
|
30394
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30370
30395
|
var d,
|
|
30371
30396
|
c = arguments.length,
|
|
30372
30397
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30411,9 +30436,9 @@
|
|
|
30411
30436
|
return null;
|
|
30412
30437
|
}
|
|
30413
30438
|
};
|
|
30414
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
30439
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$X([injectable()], FeishuContext2d);
|
|
30415
30440
|
|
|
30416
|
-
var __decorate$
|
|
30441
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30417
30442
|
var d,
|
|
30418
30443
|
c = arguments.length,
|
|
30419
30444
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30435,9 +30460,15 @@
|
|
|
30435
30460
|
get x() {
|
|
30436
30461
|
return this._x;
|
|
30437
30462
|
}
|
|
30463
|
+
set x(_x) {
|
|
30464
|
+
this._x = _x;
|
|
30465
|
+
}
|
|
30438
30466
|
get y() {
|
|
30439
30467
|
return this._y;
|
|
30440
30468
|
}
|
|
30469
|
+
set y(_y) {
|
|
30470
|
+
this._y = _y;
|
|
30471
|
+
}
|
|
30441
30472
|
get nativeCanvas() {
|
|
30442
30473
|
return this._nativeCanvas;
|
|
30443
30474
|
}
|
|
@@ -30512,9 +30543,9 @@
|
|
|
30512
30543
|
}
|
|
30513
30544
|
release() {}
|
|
30514
30545
|
};
|
|
30515
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
30546
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$W([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
|
|
30516
30547
|
|
|
30517
|
-
var __decorate$
|
|
30548
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30518
30549
|
var d,
|
|
30519
30550
|
c = arguments.length,
|
|
30520
30551
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30659,9 +30690,9 @@
|
|
|
30659
30690
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
30660
30691
|
}
|
|
30661
30692
|
};
|
|
30662
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
30693
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$V([injectable(), __param$w(0, inject(Global)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
30663
30694
|
|
|
30664
|
-
var __decorate$
|
|
30695
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30665
30696
|
var d,
|
|
30666
30697
|
c = arguments.length,
|
|
30667
30698
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30725,9 +30756,9 @@
|
|
|
30725
30756
|
return null;
|
|
30726
30757
|
}
|
|
30727
30758
|
};
|
|
30728
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
30759
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$U([injectable()], TaroContext2d);
|
|
30729
30760
|
|
|
30730
|
-
var __decorate$
|
|
30761
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30731
30762
|
var d,
|
|
30732
30763
|
c = arguments.length,
|
|
30733
30764
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30749,9 +30780,15 @@
|
|
|
30749
30780
|
get x() {
|
|
30750
30781
|
return this._x;
|
|
30751
30782
|
}
|
|
30783
|
+
set x(_x) {
|
|
30784
|
+
this._x = _x;
|
|
30785
|
+
}
|
|
30752
30786
|
get y() {
|
|
30753
30787
|
return this._y;
|
|
30754
30788
|
}
|
|
30789
|
+
set y(_y) {
|
|
30790
|
+
this._y = _y;
|
|
30791
|
+
}
|
|
30755
30792
|
get nativeCanvas() {
|
|
30756
30793
|
return this._nativeCanvas;
|
|
30757
30794
|
}
|
|
@@ -30826,9 +30863,9 @@
|
|
|
30826
30863
|
}
|
|
30827
30864
|
release() {}
|
|
30828
30865
|
};
|
|
30829
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
30866
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$T([injectable(), __metadata$A("design:paramtypes", [Object])], TaroCanvas);
|
|
30830
30867
|
|
|
30831
|
-
var __decorate$
|
|
30868
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30832
30869
|
var d,
|
|
30833
30870
|
c = arguments.length,
|
|
30834
30871
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30983,9 +31020,9 @@
|
|
|
30983
31020
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
30984
31021
|
}
|
|
30985
31022
|
};
|
|
30986
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
31023
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(Global)), __metadata$z("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
30987
31024
|
|
|
30988
|
-
var __decorate$
|
|
31025
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30989
31026
|
var d,
|
|
30990
31027
|
c = arguments.length,
|
|
30991
31028
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31039,9 +31076,9 @@
|
|
|
31039
31076
|
});
|
|
31040
31077
|
}
|
|
31041
31078
|
};
|
|
31042
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
31079
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$R([injectable()], LynxContext2d);
|
|
31043
31080
|
|
|
31044
|
-
var __decorate$
|
|
31081
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31045
31082
|
var d,
|
|
31046
31083
|
c = arguments.length,
|
|
31047
31084
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31063,9 +31100,15 @@
|
|
|
31063
31100
|
get x() {
|
|
31064
31101
|
return this._x;
|
|
31065
31102
|
}
|
|
31103
|
+
set x(_x) {
|
|
31104
|
+
this._x = _x;
|
|
31105
|
+
}
|
|
31066
31106
|
get y() {
|
|
31067
31107
|
return this._y;
|
|
31068
31108
|
}
|
|
31109
|
+
set y(_y) {
|
|
31110
|
+
this._y = _y;
|
|
31111
|
+
}
|
|
31069
31112
|
get nativeCanvas() {
|
|
31070
31113
|
return this._nativeCanvas;
|
|
31071
31114
|
}
|
|
@@ -31140,9 +31183,9 @@
|
|
|
31140
31183
|
}
|
|
31141
31184
|
release() {}
|
|
31142
31185
|
};
|
|
31143
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
31186
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$Q([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
|
|
31144
31187
|
|
|
31145
|
-
var __decorate$
|
|
31188
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31146
31189
|
var d,
|
|
31147
31190
|
c = arguments.length,
|
|
31148
31191
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31287,9 +31330,9 @@
|
|
|
31287
31330
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
31288
31331
|
}
|
|
31289
31332
|
};
|
|
31290
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
31333
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$P([injectable(), __param$u(0, inject(Global)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
31291
31334
|
|
|
31292
|
-
var __decorate$
|
|
31335
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31293
31336
|
var d,
|
|
31294
31337
|
c = arguments.length,
|
|
31295
31338
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31308,9 +31351,9 @@
|
|
|
31308
31351
|
}
|
|
31309
31352
|
release() {}
|
|
31310
31353
|
};
|
|
31311
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
31354
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$O([injectable(), __metadata$w("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
31312
31355
|
|
|
31313
|
-
var __decorate$
|
|
31356
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31314
31357
|
var d,
|
|
31315
31358
|
c = arguments.length,
|
|
31316
31359
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31332,9 +31375,11 @@
|
|
|
31332
31375
|
get x() {
|
|
31333
31376
|
return 0;
|
|
31334
31377
|
}
|
|
31378
|
+
set x(_x) {}
|
|
31335
31379
|
get y() {
|
|
31336
31380
|
return 0;
|
|
31337
31381
|
}
|
|
31382
|
+
set y(_y) {}
|
|
31338
31383
|
get nativeCanvas() {
|
|
31339
31384
|
return this._nativeCanvas;
|
|
31340
31385
|
}
|
|
@@ -31407,9 +31452,9 @@
|
|
|
31407
31452
|
this._nativeCanvas.release && isFunction(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
31408
31453
|
}
|
|
31409
31454
|
};
|
|
31410
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
31455
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$N([injectable(), __metadata$v("design:paramtypes", [Object])], NodeCanvas);
|
|
31411
31456
|
|
|
31412
|
-
var __decorate$
|
|
31457
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31413
31458
|
var d,
|
|
31414
31459
|
c = arguments.length,
|
|
31415
31460
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31510,9 +31555,9 @@
|
|
|
31510
31555
|
}
|
|
31511
31556
|
clearViewBox(vb, color) {}
|
|
31512
31557
|
};
|
|
31513
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
31558
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$M([injectable(), __param$t(0, inject(Global)), __metadata$u("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
31514
31559
|
|
|
31515
|
-
var __decorate$
|
|
31560
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31516
31561
|
var d,
|
|
31517
31562
|
c = arguments.length,
|
|
31518
31563
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31525,9 +31570,9 @@
|
|
|
31525
31570
|
return null;
|
|
31526
31571
|
}
|
|
31527
31572
|
};
|
|
31528
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
31573
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$L([injectable()], WxContext2d);
|
|
31529
31574
|
|
|
31530
|
-
var __decorate$
|
|
31575
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31531
31576
|
var d,
|
|
31532
31577
|
c = arguments.length,
|
|
31533
31578
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31549,9 +31594,15 @@
|
|
|
31549
31594
|
get x() {
|
|
31550
31595
|
return this._x;
|
|
31551
31596
|
}
|
|
31597
|
+
set x(_x) {
|
|
31598
|
+
this._x = _x;
|
|
31599
|
+
}
|
|
31552
31600
|
get y() {
|
|
31553
31601
|
return this._y;
|
|
31554
31602
|
}
|
|
31603
|
+
set y(_y) {
|
|
31604
|
+
this._y = _y;
|
|
31605
|
+
}
|
|
31555
31606
|
get nativeCanvas() {
|
|
31556
31607
|
return this._nativeCanvas;
|
|
31557
31608
|
}
|
|
@@ -31626,9 +31677,9 @@
|
|
|
31626
31677
|
}
|
|
31627
31678
|
release() {}
|
|
31628
31679
|
};
|
|
31629
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
31680
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$K([injectable(), __metadata$t("design:paramtypes", [Object])], WxCanvas);
|
|
31630
31681
|
|
|
31631
|
-
var __decorate$
|
|
31682
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31632
31683
|
var d,
|
|
31633
31684
|
c = arguments.length,
|
|
31634
31685
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31774,7 +31825,7 @@
|
|
|
31774
31825
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
31775
31826
|
}
|
|
31776
31827
|
};
|
|
31777
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
31828
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$J([injectable(), __param$s(0, inject(Global)), __metadata$s("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
31778
31829
|
|
|
31779
31830
|
var windowModules = new ContainerModule(bind => {
|
|
31780
31831
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env), bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env), bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env), bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env), bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env), bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
@@ -31784,7 +31835,7 @@
|
|
|
31784
31835
|
bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
|
|
31785
31836
|
});
|
|
31786
31837
|
|
|
31787
|
-
var __decorate$
|
|
31838
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31788
31839
|
var d,
|
|
31789
31840
|
c = arguments.length,
|
|
31790
31841
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31804,9 +31855,9 @@
|
|
|
31804
31855
|
this.global = global, this.offscreen = !1;
|
|
31805
31856
|
}
|
|
31806
31857
|
init(layer, window, params) {
|
|
31807
|
-
if (this.layer = layer, params.main) this.context = window.getContext(), this.canvas = this.context.getCanvas();else {
|
|
31858
|
+
if (this.layer = layer, this.window = window, params.main) this.main = !0, this.context = window.getContext(), this.canvas = this.context.getCanvas();else {
|
|
31808
31859
|
let nativeCanvas;
|
|
31809
|
-
nativeCanvas = params.canvasId ? this.global.getElementById(params.canvasId) : this.global.createCanvas({
|
|
31860
|
+
this.main = !1, nativeCanvas = params.canvasId ? this.global.getElementById(params.canvasId) : this.global.createCanvas({
|
|
31810
31861
|
width: window.width,
|
|
31811
31862
|
height: window.height
|
|
31812
31863
|
}), nativeCanvas.style && (nativeCanvas.style["pointer-events"] = "none");
|
|
@@ -31830,6 +31881,10 @@
|
|
|
31830
31881
|
resizeView(w, h) {}
|
|
31831
31882
|
render(group, params, userParams) {
|
|
31832
31883
|
var _a;
|
|
31884
|
+
if (!this.main) {
|
|
31885
|
+
const windowCanvas = this.window.getContext().getCanvas().nativeCanvas;
|
|
31886
|
+
!windowCanvas || this.canvas.x === windowCanvas.offsetLeft && this.canvas.y === windowCanvas.offsetTop || (this.canvas.x = windowCanvas.offsetLeft, this.canvas.y = windowCanvas.offsetTop, this.canvas.applyPosition());
|
|
31887
|
+
}
|
|
31833
31888
|
params.renderService.render(group, Object.assign(Object.assign({
|
|
31834
31889
|
context: this.context,
|
|
31835
31890
|
clear: null !== (_a = params.background) && void 0 !== _a ? _a : "#ffffff"
|
|
@@ -31858,9 +31913,9 @@
|
|
|
31858
31913
|
this.canvas.release();
|
|
31859
31914
|
}
|
|
31860
31915
|
};
|
|
31861
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
31916
|
+
CanvasLayerHandlerContribution = __decorate$I([injectable(), __param$r(0, inject(Global)), __metadata$r("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
|
|
31862
31917
|
|
|
31863
|
-
var __decorate$
|
|
31918
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31864
31919
|
var d,
|
|
31865
31920
|
c = arguments.length,
|
|
31866
31921
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31931,7 +31986,7 @@
|
|
|
31931
31986
|
}
|
|
31932
31987
|
merge(layerHandlers) {}
|
|
31933
31988
|
};
|
|
31934
|
-
OffscreenLayerHandlerContribution = __decorate$
|
|
31989
|
+
OffscreenLayerHandlerContribution = __decorate$H([injectable(), __param$q(0, inject(Global)), __metadata$q("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
|
|
31935
31990
|
|
|
31936
31991
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
31937
31992
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(LayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -31941,7 +31996,7 @@
|
|
|
31941
31996
|
container.load(envModules), container.load(windowModules), container.load(textMeasureModules), container.load(layerHandlerModules);
|
|
31942
31997
|
}
|
|
31943
31998
|
|
|
31944
|
-
var __decorate$
|
|
31999
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31945
32000
|
var d,
|
|
31946
32001
|
c = arguments.length,
|
|
31947
32002
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31967,7 +32022,7 @@
|
|
|
31967
32022
|
return drawContribution.renderGroup(graphic.shadowRoot, drawContext), context.highPerformanceRestore(), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds && drawContribution.dirtyBounds.copy(tempDirtyBounds), !0;
|
|
31968
32023
|
}
|
|
31969
32024
|
};
|
|
31970
|
-
ShadowRootDrawItemInterceptorContribution = __decorate$
|
|
32025
|
+
ShadowRootDrawItemInterceptorContribution = __decorate$G([injectable()], ShadowRootDrawItemInterceptorContribution);
|
|
31971
32026
|
let Canvas3DDrawItemInterceptor = class {
|
|
31972
32027
|
constructor() {
|
|
31973
32028
|
this.order = 1;
|
|
@@ -32040,9 +32095,9 @@
|
|
|
32040
32095
|
context.setTransformForCurrent();
|
|
32041
32096
|
}
|
|
32042
32097
|
};
|
|
32043
|
-
Canvas3DDrawItemInterceptor = __decorate$
|
|
32098
|
+
Canvas3DDrawItemInterceptor = __decorate$G([injectable()], Canvas3DDrawItemInterceptor);
|
|
32044
32099
|
|
|
32045
|
-
var __decorate$
|
|
32100
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32046
32101
|
var d,
|
|
32047
32102
|
c = arguments.length,
|
|
32048
32103
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32213,9 +32268,9 @@
|
|
|
32213
32268
|
}
|
|
32214
32269
|
}
|
|
32215
32270
|
};
|
|
32216
|
-
__decorate$
|
|
32271
|
+
__decorate$F([postConstruct(), __metadata$p("design:type", Function), __metadata$p("design:paramtypes", []), __metadata$p("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$F([injectable(), __param$p(0, multiInject(GraphicRender)), __param$p(1, inject(RenderSelector)), __param$p(2, inject(LayerService)), __param$p(3, inject(ContributionProvider)), __param$p(3, named(DrawItemInterceptor)), __metadata$p("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
|
|
32217
32272
|
|
|
32218
|
-
var __decorate$
|
|
32273
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32219
32274
|
var d,
|
|
32220
32275
|
c = arguments.length,
|
|
32221
32276
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32227,9 +32282,9 @@
|
|
|
32227
32282
|
return null;
|
|
32228
32283
|
}
|
|
32229
32284
|
};
|
|
32230
|
-
DefaultRenderSelector = __decorate$
|
|
32285
|
+
DefaultRenderSelector = __decorate$E([injectable()], DefaultRenderSelector);
|
|
32231
32286
|
|
|
32232
|
-
var __decorate$
|
|
32287
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32233
32288
|
var d,
|
|
32234
32289
|
c = arguments.length,
|
|
32235
32290
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32320,9 +32375,9 @@
|
|
|
32320
32375
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
32321
32376
|
}
|
|
32322
32377
|
};
|
|
32323
|
-
DefaultCanvasGroupRender = __decorate$
|
|
32378
|
+
DefaultCanvasGroupRender = __decorate$D([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(GroupRenderContribution)), __metadata$o("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
32324
32379
|
|
|
32325
|
-
var __decorate$
|
|
32380
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32326
32381
|
var d,
|
|
32327
32382
|
c = arguments.length,
|
|
32328
32383
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32373,9 +32428,9 @@
|
|
|
32373
32428
|
}), context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
32374
32429
|
}
|
|
32375
32430
|
};
|
|
32376
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
32431
|
+
DefaultIncrementalCanvasLineRender = __decorate$C([injectable()], DefaultIncrementalCanvasLineRender);
|
|
32377
32432
|
|
|
32378
|
-
var __decorate$
|
|
32433
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32379
32434
|
var d,
|
|
32380
32435
|
c = arguments.length,
|
|
32381
32436
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32418,10 +32473,10 @@
|
|
|
32418
32473
|
}), context.setShadowStyle && context.setShadowStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
32419
32474
|
}
|
|
32420
32475
|
};
|
|
32421
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
32476
|
+
DefaultIncrementalCanvasAreaRender = __decorate$B([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
32422
32477
|
|
|
32423
32478
|
var STATUS,
|
|
32424
|
-
__decorate$
|
|
32479
|
+
__decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32425
32480
|
var d,
|
|
32426
32481
|
c = arguments.length,
|
|
32427
32482
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32565,9 +32620,9 @@
|
|
|
32565
32620
|
});
|
|
32566
32621
|
}
|
|
32567
32622
|
};
|
|
32568
|
-
__decorate$
|
|
32623
|
+
__decorate$A([inject(Global), __metadata$n("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$A([injectable(), __param$n(0, multiInject(GraphicRender)), __param$n(1, inject(RenderSelector)), __param$n(2, inject(DefaultIncrementalCanvasLineRender)), __param$n(3, inject(DefaultIncrementalCanvasAreaRender)), __param$n(4, inject(LayerService)), __param$n(5, inject(ContributionProvider)), __param$n(5, named(DrawItemInterceptor)), __metadata$n("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
32569
32624
|
|
|
32570
|
-
var __decorate$
|
|
32625
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32571
32626
|
var d,
|
|
32572
32627
|
c = arguments.length,
|
|
32573
32628
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32698,9 +32753,9 @@
|
|
|
32698
32753
|
this.z = z, this.drawShape(rect, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
|
|
32699
32754
|
}
|
|
32700
32755
|
};
|
|
32701
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
32756
|
+
DefaultCanvasRect3dRender = __decorate$z([injectable()], DefaultCanvasRect3dRender);
|
|
32702
32757
|
|
|
32703
|
-
var __decorate$
|
|
32758
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32704
32759
|
var d,
|
|
32705
32760
|
c = arguments.length,
|
|
32706
32761
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32770,9 +32825,9 @@
|
|
|
32770
32825
|
this.drawShape(richtext, context, x, y, drawContext), context.highPerformanceRestore();
|
|
32771
32826
|
}
|
|
32772
32827
|
};
|
|
32773
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
32828
|
+
DefaultCanvasRichTextRender = __decorate$y([injectable()], DefaultCanvasRichTextRender);
|
|
32774
32829
|
|
|
32775
|
-
var __decorate$
|
|
32830
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32776
32831
|
var d,
|
|
32777
32832
|
c = arguments.length,
|
|
32778
32833
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32804,9 +32859,9 @@
|
|
|
32804
32859
|
}), context.highPerformanceRestore();
|
|
32805
32860
|
}
|
|
32806
32861
|
};
|
|
32807
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
32862
|
+
DefaultCanvasGlyphRender = __decorate$x([injectable()], DefaultCanvasGlyphRender);
|
|
32808
32863
|
|
|
32809
|
-
var __decorate$
|
|
32864
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32810
32865
|
var d,
|
|
32811
32866
|
c = arguments.length,
|
|
32812
32867
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32946,9 +33001,9 @@
|
|
|
32946
33001
|
this.z = z, drawPathProxy(arc, context, x, y, drawContext, params) || (this.drawShape(arc, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.restore();
|
|
32947
33002
|
}
|
|
32948
33003
|
};
|
|
32949
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
33004
|
+
DefaultCanvasArc3DRender = __decorate$w([injectable()], DefaultCanvasArc3DRender);
|
|
32950
33005
|
|
|
32951
|
-
var __decorate$
|
|
33006
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32952
33007
|
var d,
|
|
32953
33008
|
c = arguments.length,
|
|
32954
33009
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33080,9 +33135,9 @@
|
|
|
33080
33135
|
this.z = z, this.drawShape(pyramid3d, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
|
|
33081
33136
|
}
|
|
33082
33137
|
};
|
|
33083
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
33138
|
+
DefaultCanvasPyramid3dRender = __decorate$v([injectable()], DefaultCanvasPyramid3dRender);
|
|
33084
33139
|
|
|
33085
|
-
var __decorate$
|
|
33140
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33086
33141
|
var d,
|
|
33087
33142
|
c = arguments.length,
|
|
33088
33143
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33094,15 +33149,15 @@
|
|
|
33094
33149
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
33095
33150
|
}
|
|
33096
33151
|
};
|
|
33097
|
-
DefaultPolygonBackgroundRenderContribution = __decorate$
|
|
33152
|
+
DefaultPolygonBackgroundRenderContribution = __decorate$u([injectable()], DefaultPolygonBackgroundRenderContribution);
|
|
33098
33153
|
let DefaultPolygonTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
33099
33154
|
constructor() {
|
|
33100
33155
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
33101
33156
|
}
|
|
33102
33157
|
};
|
|
33103
|
-
DefaultPolygonTextureRenderContribution = __decorate$
|
|
33158
|
+
DefaultPolygonTextureRenderContribution = __decorate$u([injectable()], DefaultPolygonTextureRenderContribution);
|
|
33104
33159
|
|
|
33105
|
-
var __decorate$
|
|
33160
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33106
33161
|
var d,
|
|
33107
33162
|
c = arguments.length,
|
|
33108
33163
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33114,15 +33169,15 @@
|
|
|
33114
33169
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
33115
33170
|
}
|
|
33116
33171
|
};
|
|
33117
|
-
DefaultPathBackgroundRenderContribution = __decorate$
|
|
33172
|
+
DefaultPathBackgroundRenderContribution = __decorate$t([injectable()], DefaultPathBackgroundRenderContribution);
|
|
33118
33173
|
let DefaultPathTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
33119
33174
|
constructor() {
|
|
33120
33175
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
33121
33176
|
}
|
|
33122
33177
|
};
|
|
33123
|
-
DefaultPathTextureRenderContribution = __decorate$
|
|
33178
|
+
DefaultPathTextureRenderContribution = __decorate$t([injectable()], DefaultPathTextureRenderContribution);
|
|
33124
33179
|
|
|
33125
|
-
var __decorate$
|
|
33180
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33126
33181
|
var d,
|
|
33127
33182
|
c = arguments.length,
|
|
33128
33183
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33134,7 +33189,7 @@
|
|
|
33134
33189
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
33135
33190
|
}
|
|
33136
33191
|
};
|
|
33137
|
-
DefaultAreaBackgroundRenderContribution = __decorate$
|
|
33192
|
+
DefaultAreaBackgroundRenderContribution = __decorate$s([injectable()], DefaultAreaBackgroundRenderContribution);
|
|
33138
33193
|
let DefaultAreaTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
33139
33194
|
constructor() {
|
|
33140
33195
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
@@ -33181,7 +33236,7 @@
|
|
|
33181
33236
|
pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
|
|
33182
33237
|
}
|
|
33183
33238
|
};
|
|
33184
|
-
DefaultAreaTextureRenderContribution = __decorate$
|
|
33239
|
+
DefaultAreaTextureRenderContribution = __decorate$s([injectable()], DefaultAreaTextureRenderContribution);
|
|
33185
33240
|
|
|
33186
33241
|
var renderModule = new ContainerModule(bind => {
|
|
33187
33242
|
bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender), bind(GraphicRender).to(DefaultCanvasCircleRender), bind(DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender), bind(GraphicRender).to(DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(DefaultRectRenderContribution), bind(RectRenderContribution).toService(DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution), bindContributionProvider(bind, RectRenderContribution), bind(DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(DefaultCanvasTextRender), bind(GraphicRender).to(DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender), bind(GraphicRender).to(DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender), bind(GraphicRender).to(DefaultCanvasSymbolRender), bind(DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender), bind(GraphicRender).to(DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(DefaultArcRenderContribution), bind(ArcRenderContribution).toService(DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender), bind(GraphicRender).to(DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender), bind(GraphicRender).to(DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(DefaultCanvasPolygonRender), bind(GraphicRender).to(DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bindContributionProvider(bind, DrawItemInterceptor);
|
|
@@ -33191,7 +33246,7 @@
|
|
|
33191
33246
|
container.load(renderModule);
|
|
33192
33247
|
}
|
|
33193
33248
|
|
|
33194
|
-
var __decorate$
|
|
33249
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33195
33250
|
var d,
|
|
33196
33251
|
c = arguments.length,
|
|
33197
33252
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33234,9 +33289,9 @@
|
|
|
33234
33289
|
}), pickContext.highPerformanceRestore(), picked;
|
|
33235
33290
|
}
|
|
33236
33291
|
};
|
|
33237
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
33292
|
+
DefaultCanvasCirclePicker = __decorate$r([injectable(), __param$m(0, inject(CircleRender)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
33238
33293
|
|
|
33239
|
-
var __decorate$
|
|
33294
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33240
33295
|
var d,
|
|
33241
33296
|
c = arguments.length,
|
|
33242
33297
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33296,9 +33351,9 @@
|
|
|
33296
33351
|
return pickContext.highPerformanceRestore(), picked;
|
|
33297
33352
|
}
|
|
33298
33353
|
};
|
|
33299
|
-
DefaultCanvasRectPicker = __decorate$
|
|
33354
|
+
DefaultCanvasRectPicker = __decorate$q([injectable(), __param$l(0, inject(RectRender)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
33300
33355
|
|
|
33301
|
-
var __decorate$
|
|
33356
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33302
33357
|
var d,
|
|
33303
33358
|
c = arguments.length,
|
|
33304
33359
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33342,9 +33397,9 @@
|
|
|
33342
33397
|
}), pickContext.highPerformanceRestore(), picked;
|
|
33343
33398
|
}
|
|
33344
33399
|
};
|
|
33345
|
-
DefaultCanvasArcPicker = __decorate$
|
|
33400
|
+
DefaultCanvasArcPicker = __decorate$p([injectable(), __param$k(0, inject(ArcRender)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
33346
33401
|
|
|
33347
|
-
var __decorate$
|
|
33402
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33348
33403
|
var d,
|
|
33349
33404
|
c = arguments.length,
|
|
33350
33405
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33383,9 +33438,9 @@
|
|
|
33383
33438
|
return this.canvasRenderer.drawShape(area, pickContext, x, y, {}, null, context => !!picked || (picked = context.isPointInPath(point.x, point.y), picked)), pickContext.highPerformanceRestore(), picked;
|
|
33384
33439
|
}
|
|
33385
33440
|
};
|
|
33386
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
33441
|
+
DefaultCanvasAreaPicker = __decorate$o([injectable(), __param$j(0, inject(AreaRender)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
33387
33442
|
|
|
33388
|
-
var __decorate$
|
|
33443
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33389
33444
|
var d,
|
|
33390
33445
|
c = arguments.length,
|
|
33391
33446
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33403,9 +33458,9 @@
|
|
|
33403
33458
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
33404
33459
|
}
|
|
33405
33460
|
};
|
|
33406
|
-
DefaultCanvasImagePicker = __decorate$
|
|
33461
|
+
DefaultCanvasImagePicker = __decorate$n([injectable()], DefaultCanvasImagePicker);
|
|
33407
33462
|
|
|
33408
|
-
var __decorate$
|
|
33463
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33409
33464
|
var d,
|
|
33410
33465
|
c = arguments.length,
|
|
33411
33466
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33413,9 +33468,9 @@
|
|
|
33413
33468
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33414
33469
|
};
|
|
33415
33470
|
let BasePicker = class extends BaseRender {};
|
|
33416
|
-
BasePicker = __decorate$
|
|
33471
|
+
BasePicker = __decorate$m([injectable()], BasePicker);
|
|
33417
33472
|
|
|
33418
|
-
var __decorate$
|
|
33473
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33419
33474
|
var d,
|
|
33420
33475
|
c = arguments.length,
|
|
33421
33476
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33465,9 +33520,9 @@
|
|
|
33465
33520
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33466
33521
|
}
|
|
33467
33522
|
};
|
|
33468
|
-
DefaultCanvasLinePicker = __decorate$
|
|
33523
|
+
DefaultCanvasLinePicker = __decorate$l([injectable(), __param$i(0, inject(LineRender)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
33469
33524
|
|
|
33470
|
-
var __decorate$
|
|
33525
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33471
33526
|
var d,
|
|
33472
33527
|
c = arguments.length,
|
|
33473
33528
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33517,9 +33572,9 @@
|
|
|
33517
33572
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33518
33573
|
}
|
|
33519
33574
|
};
|
|
33520
|
-
DefaultCanvasPathPicker = __decorate$
|
|
33575
|
+
DefaultCanvasPathPicker = __decorate$k([injectable(), __param$h(0, inject(PathRender)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
33521
33576
|
|
|
33522
|
-
var __decorate$
|
|
33577
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33523
33578
|
var d,
|
|
33524
33579
|
c = arguments.length,
|
|
33525
33580
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33571,9 +33626,9 @@
|
|
|
33571
33626
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33572
33627
|
}
|
|
33573
33628
|
};
|
|
33574
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
33629
|
+
DefaultCanvasSymbolPicker = __decorate$j([injectable(), __param$g(0, inject(SymbolRender)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
33575
33630
|
|
|
33576
|
-
var __decorate$
|
|
33631
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33577
33632
|
var d,
|
|
33578
33633
|
c = arguments.length,
|
|
33579
33634
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33636,9 +33691,9 @@
|
|
|
33636
33691
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33637
33692
|
}
|
|
33638
33693
|
};
|
|
33639
|
-
DefaultCanvasTextPicker = __decorate$
|
|
33694
|
+
DefaultCanvasTextPicker = __decorate$i([injectable(), __param$f(0, inject(TextRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
33640
33695
|
|
|
33641
|
-
var __decorate$
|
|
33696
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33642
33697
|
var d,
|
|
33643
33698
|
c = arguments.length,
|
|
33644
33699
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33680,9 +33735,9 @@
|
|
|
33680
33735
|
}), pickContext.highPerformanceRestore(), picked;
|
|
33681
33736
|
}
|
|
33682
33737
|
};
|
|
33683
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
33738
|
+
DefaultCanvasPolygonPicker = __decorate$h([injectable(), __param$e(0, inject(PolygonRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
33684
33739
|
|
|
33685
|
-
var __decorate$
|
|
33740
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33686
33741
|
var d,
|
|
33687
33742
|
c = arguments.length,
|
|
33688
33743
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33706,9 +33761,9 @@
|
|
|
33706
33761
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
33707
33762
|
}
|
|
33708
33763
|
};
|
|
33709
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
33764
|
+
DefaultCanvasRichTextPicker = __decorate$g([injectable(), __param$d(0, inject(RichTextRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
33710
33765
|
|
|
33711
|
-
var __decorate$
|
|
33766
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33712
33767
|
var d,
|
|
33713
33768
|
c = arguments.length,
|
|
33714
33769
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33744,9 +33799,9 @@
|
|
|
33744
33799
|
return !1;
|
|
33745
33800
|
}
|
|
33746
33801
|
};
|
|
33747
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
33802
|
+
DefaultCanvasGlyphPicker = __decorate$f([injectable(), __param$c(0, inject(GlyphRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
33748
33803
|
|
|
33749
|
-
var __decorate$
|
|
33804
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33750
33805
|
var d,
|
|
33751
33806
|
c = arguments.length,
|
|
33752
33807
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33791,9 +33846,9 @@
|
|
|
33791
33846
|
return this.canvasRenderer.drawShape(rect, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33792
33847
|
}
|
|
33793
33848
|
};
|
|
33794
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
33849
|
+
DefaultCanvasRect3dPicker = __decorate$e([injectable(), __param$b(0, inject(Rect3DRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
33795
33850
|
|
|
33796
|
-
var __decorate$
|
|
33851
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33797
33852
|
var d,
|
|
33798
33853
|
c = arguments.length,
|
|
33799
33854
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33838,9 +33893,9 @@
|
|
|
33838
33893
|
return this.canvasRenderer.drawShape(pyramid3d, pickContext, x, y, {}, null, (context, pyramid3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked), (context, pyramid3dAttribute, themeAttribute) => !1), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33839
33894
|
}
|
|
33840
33895
|
};
|
|
33841
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
33896
|
+
DefaultCanvasPyramid3dPicker = __decorate$d([injectable(), __param$a(0, inject(Pyramid3dRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
33842
33897
|
|
|
33843
|
-
var __decorate$
|
|
33898
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33844
33899
|
var d,
|
|
33845
33900
|
c = arguments.length,
|
|
33846
33901
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33885,13 +33940,13 @@
|
|
|
33885
33940
|
return this.canvasRenderer.drawShape(arc3d, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
33886
33941
|
}
|
|
33887
33942
|
};
|
|
33888
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
33943
|
+
DefaultCanvasArc3dPicker = __decorate$c([injectable(), __param$9(0, inject(Arc3dRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
33889
33944
|
|
|
33890
33945
|
var canvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
33891
33946
|
bind(DefaultCanvasCirclePicker).toSelf().inSingletonScope(), bind(CanvasCirclePicker).toService(DefaultCanvasCirclePicker), bind(CanvasPickerContribution).toService(CanvasCirclePicker), bind(DefaultCanvasRectPicker).toSelf().inSingletonScope(), bind(CanvasRectPicker).toService(DefaultCanvasRectPicker), bind(CanvasPickerContribution).toService(CanvasRectPicker), bind(DefaultCanvasRect3dPicker).toSelf().inSingletonScope(), bind(CanvasRect3dPicker).toService(DefaultCanvasRect3dPicker), bind(CanvasPickerContribution).toService(CanvasRect3dPicker), bind(DefaultCanvasArcPicker).toSelf().inSingletonScope(), bind(CanvasArcPicker).toService(DefaultCanvasArcPicker), bind(CanvasPickerContribution).toService(CanvasArcPicker), bind(DefaultCanvasAreaPicker).toSelf().inSingletonScope(), bind(CanvasAreaPicker).toService(DefaultCanvasAreaPicker), bind(CanvasPickerContribution).toService(CanvasAreaPicker), bind(DefaultCanvasImagePicker).toSelf().inSingletonScope(), bind(CanvasImagePicker).toService(DefaultCanvasImagePicker), bind(CanvasPickerContribution).toService(CanvasImagePicker), bind(DefaultCanvasLinePicker).toSelf().inSingletonScope(), bind(CanvasLinePicker).toService(DefaultCanvasLinePicker), bind(CanvasPickerContribution).toService(CanvasLinePicker), bind(DefaultCanvasPathPicker).toSelf().inSingletonScope(), bind(CanvasPathPicker).toService(DefaultCanvasPathPicker), bind(CanvasPickerContribution).toService(CanvasPathPicker), bind(DefaultCanvasSymbolPicker).toSelf().inSingletonScope(), bind(CanvasSymbolPicker).toService(DefaultCanvasSymbolPicker), bind(CanvasPickerContribution).toService(CanvasSymbolPicker), bind(DefaultCanvasTextPicker).toSelf().inSingletonScope(), bind(CanvasTextPicker).toService(DefaultCanvasTextPicker), bind(CanvasPickerContribution).toService(CanvasTextPicker), bind(DefaultCanvasPolygonPicker).toSelf().inSingletonScope(), bind(CanvasPolygonPicker).toService(DefaultCanvasPolygonPicker), bind(CanvasPickerContribution).toService(CanvasPolygonPicker), bind(DefaultCanvasPyramid3dPicker).toSelf().inSingletonScope(), bind(CanvasPyramid3dPicker).toService(DefaultCanvasPyramid3dPicker), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker), bind(DefaultCanvasArc3dPicker).toSelf().inSingletonScope(), bind(CanvasArc3dPicker).toService(DefaultCanvasArc3dPicker), bind(CanvasPickerContribution).toService(CanvasArc3dPicker), bind(DefaultCanvasRichTextPicker).toSelf().inSingletonScope(), bind(CanvasRichTextPicker).toService(DefaultCanvasRichTextPicker), bind(CanvasPickerContribution).toService(CanvasRichTextPicker), bind(DefaultCanvasGlyphPicker).toSelf().inSingletonScope(), bind(CanvasGlyphPicker).toService(DefaultCanvasGlyphPicker), bind(CanvasPickerContribution).toService(CanvasGlyphPicker), bindContributionProvider(bind, CanvasPickerContribution);
|
|
33892
33947
|
});
|
|
33893
33948
|
|
|
33894
|
-
var __decorate$
|
|
33949
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33895
33950
|
var d,
|
|
33896
33951
|
c = arguments.length,
|
|
33897
33952
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33934,9 +33989,9 @@
|
|
|
33934
33989
|
}), pickContext.highPerformanceRestore(), picked;
|
|
33935
33990
|
}
|
|
33936
33991
|
};
|
|
33937
|
-
DefaultMathPathPicker = __decorate$
|
|
33992
|
+
DefaultMathPathPicker = __decorate$b([injectable(), __param$8(0, inject(PathRender)), __metadata$8("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
33938
33993
|
|
|
33939
|
-
var __decorate$
|
|
33994
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33940
33995
|
var d,
|
|
33941
33996
|
c = arguments.length,
|
|
33942
33997
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -33979,9 +34034,9 @@
|
|
|
33979
34034
|
}), pickContext.highPerformanceRestore(), picked;
|
|
33980
34035
|
}
|
|
33981
34036
|
};
|
|
33982
|
-
DefaultMathCirclePicker = __decorate$
|
|
34037
|
+
DefaultMathCirclePicker = __decorate$a([injectable(), __param$7(0, inject(CircleRender)), __metadata$7("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
33983
34038
|
|
|
33984
|
-
var __decorate$
|
|
34039
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33985
34040
|
var d,
|
|
33986
34041
|
c = arguments.length,
|
|
33987
34042
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34041,9 +34096,9 @@
|
|
|
34041
34096
|
return pickContext.highPerformanceRestore(), picked;
|
|
34042
34097
|
}
|
|
34043
34098
|
};
|
|
34044
|
-
DefaultMathRectPicker = __decorate$
|
|
34099
|
+
DefaultMathRectPicker = __decorate$9([injectable(), __param$6(0, inject(RectRender)), __metadata$6("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
34045
34100
|
|
|
34046
|
-
var __decorate$
|
|
34101
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34047
34102
|
var d,
|
|
34048
34103
|
c = arguments.length,
|
|
34049
34104
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34087,9 +34142,9 @@
|
|
|
34087
34142
|
}), pickContext.highPerformanceRestore(), picked;
|
|
34088
34143
|
}
|
|
34089
34144
|
};
|
|
34090
|
-
DefaultMathArcPicker = __decorate$
|
|
34145
|
+
DefaultMathArcPicker = __decorate$8([injectable(), __param$5(0, inject(ArcRender)), __metadata$5("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
34091
34146
|
|
|
34092
|
-
var __decorate$
|
|
34147
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34093
34148
|
var d,
|
|
34094
34149
|
c = arguments.length,
|
|
34095
34150
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34128,9 +34183,9 @@
|
|
|
34128
34183
|
return this.canvasRenderer.drawShape(area, pickContext, x, y, {}, null, context => !!picked || (picked = context.isPointInPath(point.x, point.y), picked)), pickContext.highPerformanceRestore(), picked;
|
|
34129
34184
|
}
|
|
34130
34185
|
};
|
|
34131
|
-
DefaultMathAreaPicker = __decorate$
|
|
34186
|
+
DefaultMathAreaPicker = __decorate$7([injectable(), __param$4(0, inject(AreaRender)), __metadata$4("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
34132
34187
|
|
|
34133
|
-
var __decorate$
|
|
34188
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34134
34189
|
var d,
|
|
34135
34190
|
c = arguments.length,
|
|
34136
34191
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34173,9 +34228,9 @@
|
|
|
34173
34228
|
}), pickContext.highPerformanceRestore(), picked;
|
|
34174
34229
|
}
|
|
34175
34230
|
};
|
|
34176
|
-
DefaultMathLinePicker = __decorate$
|
|
34231
|
+
DefaultMathLinePicker = __decorate$6([injectable(), __param$3(0, inject(LineRender)), __metadata$3("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
34177
34232
|
|
|
34178
|
-
var __decorate$
|
|
34233
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34179
34234
|
var d,
|
|
34180
34235
|
c = arguments.length,
|
|
34181
34236
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34218,9 +34273,9 @@
|
|
|
34218
34273
|
}), pickContext.highPerformanceRestore(), picked;
|
|
34219
34274
|
}
|
|
34220
34275
|
};
|
|
34221
|
-
DefaultMathSymbolPicker = __decorate$
|
|
34276
|
+
DefaultMathSymbolPicker = __decorate$5([injectable(), __param$2(0, inject(SymbolRender)), __metadata$2("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
34222
34277
|
|
|
34223
|
-
var __decorate$
|
|
34278
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34224
34279
|
var d,
|
|
34225
34280
|
c = arguments.length,
|
|
34226
34281
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34235,9 +34290,9 @@
|
|
|
34235
34290
|
return !!text.AABBBounds.containsPoint(point);
|
|
34236
34291
|
}
|
|
34237
34292
|
};
|
|
34238
|
-
DefaultMathTextPicker = __decorate$
|
|
34293
|
+
DefaultMathTextPicker = __decorate$4([injectable()], DefaultMathTextPicker);
|
|
34239
34294
|
|
|
34240
|
-
var __decorate$
|
|
34295
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34241
34296
|
var d,
|
|
34242
34297
|
c = arguments.length,
|
|
34243
34298
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34279,9 +34334,9 @@
|
|
|
34279
34334
|
}), pickContext.highPerformanceRestore(), picked;
|
|
34280
34335
|
}
|
|
34281
34336
|
};
|
|
34282
|
-
DefaultMathPolygonPicker = __decorate$
|
|
34337
|
+
DefaultMathPolygonPicker = __decorate$3([injectable(), __param$1(0, inject(PolygonRender)), __metadata$1("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
34283
34338
|
|
|
34284
|
-
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34339
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
34285
34340
|
var d,
|
|
34286
34341
|
c = arguments.length,
|
|
34287
34342
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -34317,7 +34372,7 @@
|
|
|
34317
34372
|
return !1;
|
|
34318
34373
|
}
|
|
34319
34374
|
};
|
|
34320
|
-
DefaultMathGlyphPicker = __decorate([injectable(), __param(0, inject(GlyphRender)), __metadata("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
34375
|
+
DefaultMathGlyphPicker = __decorate$2([injectable(), __param(0, inject(GlyphRender)), __metadata("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
34321
34376
|
|
|
34322
34377
|
var mathPickModule = new ContainerModule(bind => {
|
|
34323
34378
|
bind(DefaultMathCirclePicker).toSelf().inSingletonScope(), bind(MathCirclePicker).toService(DefaultMathCirclePicker), bind(MathPickerContribution).toService(MathCirclePicker), bind(DefaultMathRectPicker).toSelf().inSingletonScope(), bind(MathRectPicker).toService(DefaultMathRectPicker), bind(MathPickerContribution).toService(MathRectPicker), bind(DefaultMathArcPicker).toSelf().inSingletonScope(), bind(MathArcPicker).toService(DefaultMathArcPicker), bind(MathPickerContribution).toService(MathArcPicker), bind(DefaultMathAreaPicker).toSelf().inSingletonScope(), bind(MathAreaPicker).toService(DefaultMathAreaPicker), bind(MathPickerContribution).toService(MathAreaPicker), bind(DefaultMathLinePicker).toSelf().inSingletonScope(), bind(MathLinePicker).toService(DefaultMathLinePicker), bind(MathPickerContribution).toService(MathLinePicker), bind(DefaultMathPathPicker).toSelf().inSingletonScope(), bind(MathPathPicker).toService(DefaultMathPathPicker), bind(MathPickerContribution).toService(MathPathPicker), bind(DefaultMathSymbolPicker).toSelf().inSingletonScope(), bind(MathSymbolPicker).toService(DefaultMathSymbolPicker), bind(MathPickerContribution).toService(MathSymbolPicker), bind(DefaultMathTextPicker).toSelf().inSingletonScope(), bind(MathTextPicker).toService(DefaultMathTextPicker), bind(MathPickerContribution).toService(MathTextPicker), bind(DefaultMathPolygonPicker).toSelf().inSingletonScope(), bind(MathPolygonPicker).toService(DefaultMathPolygonPicker), bind(MathPickerContribution).toService(MathPolygonPicker), bind(DefaultMathGlyphPicker).toSelf().inSingletonScope(), bind(MathGlyphPicker).toService(DefaultMathGlyphPicker), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker), bindContributionProvider(bind, MathPickerContribution);
|
|
@@ -40408,7 +40463,7 @@
|
|
|
40408
40463
|
};
|
|
40409
40464
|
}
|
|
40410
40465
|
|
|
40411
|
-
var __rest$
|
|
40466
|
+
var __rest$6 = undefined && undefined.__rest || function (s, e) {
|
|
40412
40467
|
var t = {};
|
|
40413
40468
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
40414
40469
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -40449,7 +40504,7 @@
|
|
|
40449
40504
|
const {
|
|
40450
40505
|
visible: shapeVisible
|
|
40451
40506
|
} = shape,
|
|
40452
|
-
shapeStyle = __rest$
|
|
40507
|
+
shapeStyle = __rest$6(shape, ["visible"]);
|
|
40453
40508
|
if (isBoolean(shapeVisible)) {
|
|
40454
40509
|
const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
|
|
40455
40510
|
maxSize = isNumber(size) ? size : Math.max(size[0], size[1]);
|
|
@@ -40493,7 +40548,7 @@
|
|
|
40493
40548
|
const {
|
|
40494
40549
|
visible: bgVisible
|
|
40495
40550
|
} = panel,
|
|
40496
|
-
backgroundStyle = __rest$
|
|
40551
|
+
backgroundStyle = __rest$6(panel, ["visible"]);
|
|
40497
40552
|
if (visible && isBoolean(bgVisible)) {
|
|
40498
40553
|
const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
|
|
40499
40554
|
visible: bgVisible && !!text,
|
|
@@ -40521,6 +40576,392 @@
|
|
|
40521
40576
|
}
|
|
40522
40577
|
};
|
|
40523
40578
|
|
|
40579
|
+
var __rest$5 = undefined && undefined.__rest || function (s, e) {
|
|
40580
|
+
var t = {};
|
|
40581
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
40582
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
40583
|
+
var i = 0;
|
|
40584
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
40585
|
+
}
|
|
40586
|
+
return t;
|
|
40587
|
+
};
|
|
40588
|
+
class PopTip extends AbstractComponent {
|
|
40589
|
+
constructor(attributes) {
|
|
40590
|
+
super(merge$2({}, PopTip.defaultAttributes, attributes)), this.name = "poptip", this.positionList = ["top", "tl", "tr", "bottom", "bl", "br", "left", "lt", "lb", "right", "rt", "rb"];
|
|
40591
|
+
}
|
|
40592
|
+
render() {
|
|
40593
|
+
var _a, _b, _c, _d, _e;
|
|
40594
|
+
const {
|
|
40595
|
+
title = "",
|
|
40596
|
+
titleStyle = {},
|
|
40597
|
+
position: position,
|
|
40598
|
+
content = "",
|
|
40599
|
+
contentStyle = {},
|
|
40600
|
+
panel = {},
|
|
40601
|
+
space = 4,
|
|
40602
|
+
minWidth = 0,
|
|
40603
|
+
maxWidth = 1 / 0,
|
|
40604
|
+
padding = 4,
|
|
40605
|
+
visible: visible,
|
|
40606
|
+
state: state,
|
|
40607
|
+
dx = 0,
|
|
40608
|
+
dy = 0
|
|
40609
|
+
} = this.attribute,
|
|
40610
|
+
parsedPadding = normalizePadding$1(padding),
|
|
40611
|
+
group = this.createOrUpdateChild("poptip-content", {
|
|
40612
|
+
x: 0,
|
|
40613
|
+
y: 0,
|
|
40614
|
+
zIndex: 1
|
|
40615
|
+
}, "group"),
|
|
40616
|
+
maxLineWidth = maxWidth - parsedPadding[1] - parsedPadding[3],
|
|
40617
|
+
titleVisible = isValid(title) && !1 !== visible,
|
|
40618
|
+
titleAttrs = Object.assign(Object.assign({
|
|
40619
|
+
text: title,
|
|
40620
|
+
visible: titleVisible
|
|
40621
|
+
}, titleStyle), {
|
|
40622
|
+
x: parsedPadding[3],
|
|
40623
|
+
y: parsedPadding[0],
|
|
40624
|
+
maxLineWidth: maxLineWidth,
|
|
40625
|
+
textAlign: "left",
|
|
40626
|
+
textBaseline: "top"
|
|
40627
|
+
}),
|
|
40628
|
+
titleShape = group.createOrUpdateChild("poptip-title", titleAttrs, "text");
|
|
40629
|
+
isEmpty(null == state ? void 0 : state.title) || (titleShape.states = state.title);
|
|
40630
|
+
const titleBounds = titleShape.AABBBounds,
|
|
40631
|
+
titleHeight = titleBounds.height(),
|
|
40632
|
+
titleWidth = titleBounds.width();
|
|
40633
|
+
let height = titleHeight + space;
|
|
40634
|
+
titleVisible || (height = 0);
|
|
40635
|
+
const contentVisible = isValid(content) && !1 !== visible,
|
|
40636
|
+
contentAttrs = Object.assign(Object.assign({
|
|
40637
|
+
text: content,
|
|
40638
|
+
visible: contentVisible
|
|
40639
|
+
}, contentStyle), {
|
|
40640
|
+
x: parsedPadding[3],
|
|
40641
|
+
y: parsedPadding[0] + height,
|
|
40642
|
+
maxLineWidth: maxLineWidth,
|
|
40643
|
+
textAlign: "left",
|
|
40644
|
+
textBaseline: "top"
|
|
40645
|
+
}),
|
|
40646
|
+
contentShape = group.createOrUpdateChild("poptip-content", contentAttrs, "text");
|
|
40647
|
+
isEmpty(null == state ? void 0 : state.content) || (contentShape.states = state.content);
|
|
40648
|
+
const contentBounds = contentShape.AABBBounds,
|
|
40649
|
+
contentHeight = contentBounds.height(),
|
|
40650
|
+
contentWidth = contentBounds.width();
|
|
40651
|
+
contentVisible && (height += contentHeight);
|
|
40652
|
+
let popTipWidth = max$3(titleWidth + parsedPadding[1] + parsedPadding[3], contentWidth + parsedPadding[1] + parsedPadding[3]);
|
|
40653
|
+
popTipWidth > maxWidth ? popTipWidth = maxWidth : popTipWidth < minWidth && (popTipWidth = minWidth);
|
|
40654
|
+
const poptipHeight = parsedPadding[0] + parsedPadding[2] + height,
|
|
40655
|
+
{
|
|
40656
|
+
visible: bgVisible
|
|
40657
|
+
} = panel,
|
|
40658
|
+
backgroundStyle = __rest$5(panel, ["visible"]),
|
|
40659
|
+
symbolSize = null !== (_a = backgroundStyle.size) && void 0 !== _a ? _a : 12,
|
|
40660
|
+
spaceSize = isArray$3(symbolSize) ? [symbolSize[0] + (null !== (_b = backgroundStyle.space) && void 0 !== _b ? _b : 0), symbolSize[1] + (null !== (_c = backgroundStyle.space) && void 0 !== _c ? _c : 0)] : symbolSize + (null !== (_d = backgroundStyle.space) && void 0 !== _d ? _d : 0),
|
|
40661
|
+
lineWidth = null !== (_e = backgroundStyle.lineWidth) && void 0 !== _e ? _e : 1,
|
|
40662
|
+
range = this.stage ? [this.stage.width, this.stage.height] : void 0,
|
|
40663
|
+
layout = "auto" === position;
|
|
40664
|
+
let minifyBBoxI,
|
|
40665
|
+
minifyBBoxSize = 1 / 0;
|
|
40666
|
+
for (let i = 0; i < this.positionList.length + 1; i++) {
|
|
40667
|
+
const p = layout ? this.positionList[i === this.positionList.length ? minifyBBoxI : i] : position,
|
|
40668
|
+
{
|
|
40669
|
+
angle: angle,
|
|
40670
|
+
offset: offset,
|
|
40671
|
+
rectOffset: rectOffset
|
|
40672
|
+
} = this.getAngleAndOffset(p, popTipWidth, poptipHeight, isArray$3(spaceSize) ? spaceSize : [spaceSize, spaceSize - lineWidth]);
|
|
40673
|
+
if (isBoolean(bgVisible)) {
|
|
40674
|
+
const offsetX = (isArray$3(symbolSize) ? symbolSize[0] : symbolSize) / 4,
|
|
40675
|
+
bgSymbol = group.createOrUpdateChild("poptip-symbol-panel", Object.assign(Object.assign({}, backgroundStyle), {
|
|
40676
|
+
visible: bgVisible && (contentVisible || titleVisible),
|
|
40677
|
+
x: offsetX,
|
|
40678
|
+
y: 0,
|
|
40679
|
+
strokeBoundsBuffer: -1,
|
|
40680
|
+
boundsPadding: -2,
|
|
40681
|
+
anchor: [0, 0],
|
|
40682
|
+
symbolType: "arrow2Left",
|
|
40683
|
+
angle: angle,
|
|
40684
|
+
dx: offset[0],
|
|
40685
|
+
dy: offset[1],
|
|
40686
|
+
size: symbolSize,
|
|
40687
|
+
zIndex: -9
|
|
40688
|
+
}), "symbol");
|
|
40689
|
+
isEmpty(null == state ? void 0 : state.panel) || (bgSymbol.states = state.panel);
|
|
40690
|
+
const bgRect = group.createOrUpdateChild("poptip-rect-panel", Object.assign(Object.assign({}, backgroundStyle), {
|
|
40691
|
+
visible: bgVisible && (contentVisible || titleVisible),
|
|
40692
|
+
x: 0,
|
|
40693
|
+
y: 0,
|
|
40694
|
+
width: popTipWidth,
|
|
40695
|
+
height: poptipHeight,
|
|
40696
|
+
zIndex: -8
|
|
40697
|
+
}), "rect");
|
|
40698
|
+
isEmpty(null == state ? void 0 : state.panel) || (bgRect.states = state.panel);
|
|
40699
|
+
}
|
|
40700
|
+
if (group.setAttributes({
|
|
40701
|
+
x: -offset[0] + dx,
|
|
40702
|
+
y: -offset[1] + dy
|
|
40703
|
+
}), !layout || !range) break;
|
|
40704
|
+
{
|
|
40705
|
+
const b = this.AABBBounds,
|
|
40706
|
+
stageBounds = new Bounds().setValue(0, 0, range[0], range[1]);
|
|
40707
|
+
if (rectInsideAnotherRect(b, stageBounds, !1)) break;
|
|
40708
|
+
{
|
|
40709
|
+
const bbox = getRectIntersect(b, stageBounds, !1),
|
|
40710
|
+
size = (bbox.x2 - bbox.x1) * (bbox.y2 - bbox.y1);
|
|
40711
|
+
size < minifyBBoxSize && (minifyBBoxSize = size, minifyBBoxI = i);
|
|
40712
|
+
}
|
|
40713
|
+
}
|
|
40714
|
+
}
|
|
40715
|
+
}
|
|
40716
|
+
getAngleAndOffset(position, width, height, size) {
|
|
40717
|
+
const sizeH = size[1] / 2;
|
|
40718
|
+
switch (position) {
|
|
40719
|
+
case "tl":
|
|
40720
|
+
return {
|
|
40721
|
+
angle: pi$1 / 2 * 3,
|
|
40722
|
+
offset: [width / 4, height + sizeH],
|
|
40723
|
+
rectOffset: [-width / 4, -height - size[1]]
|
|
40724
|
+
};
|
|
40725
|
+
case "top":
|
|
40726
|
+
return {
|
|
40727
|
+
angle: pi$1 / 2 * 3,
|
|
40728
|
+
offset: [width / 2, height + sizeH],
|
|
40729
|
+
rectOffset: [0, -height - size[1]]
|
|
40730
|
+
};
|
|
40731
|
+
case "tr":
|
|
40732
|
+
return {
|
|
40733
|
+
angle: pi$1 / 2 * 3,
|
|
40734
|
+
offset: [width / 4 * 3, height + sizeH],
|
|
40735
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40736
|
+
};
|
|
40737
|
+
case "rt":
|
|
40738
|
+
return {
|
|
40739
|
+
angle: 0,
|
|
40740
|
+
offset: [-sizeH, height / 5],
|
|
40741
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40742
|
+
};
|
|
40743
|
+
case "right":
|
|
40744
|
+
return {
|
|
40745
|
+
angle: 0,
|
|
40746
|
+
offset: [-sizeH, height / 2],
|
|
40747
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40748
|
+
};
|
|
40749
|
+
case "rb":
|
|
40750
|
+
return {
|
|
40751
|
+
angle: 0,
|
|
40752
|
+
offset: [-sizeH, height / 5 * 4],
|
|
40753
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40754
|
+
};
|
|
40755
|
+
case "bl":
|
|
40756
|
+
return {
|
|
40757
|
+
angle: pi$1 / 2,
|
|
40758
|
+
offset: [width / 4, -sizeH],
|
|
40759
|
+
rectOffset: [-width / 4, -height - size[1]]
|
|
40760
|
+
};
|
|
40761
|
+
case "bottom":
|
|
40762
|
+
return {
|
|
40763
|
+
angle: pi$1 / 2,
|
|
40764
|
+
offset: [width / 2, -sizeH],
|
|
40765
|
+
rectOffset: [0, -height - size[1]]
|
|
40766
|
+
};
|
|
40767
|
+
case "br":
|
|
40768
|
+
return {
|
|
40769
|
+
angle: pi$1 / 2,
|
|
40770
|
+
offset: [width / 4 * 3, -sizeH],
|
|
40771
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40772
|
+
};
|
|
40773
|
+
case "lt":
|
|
40774
|
+
return {
|
|
40775
|
+
angle: pi$1,
|
|
40776
|
+
offset: [width + sizeH, height / 5],
|
|
40777
|
+
rectOffset: [-width / 4, -height - size[1]]
|
|
40778
|
+
};
|
|
40779
|
+
case "left":
|
|
40780
|
+
return {
|
|
40781
|
+
angle: pi$1,
|
|
40782
|
+
offset: [width + sizeH, height / 2],
|
|
40783
|
+
rectOffset: [0, -height - size[1]]
|
|
40784
|
+
};
|
|
40785
|
+
case "lb":
|
|
40786
|
+
return {
|
|
40787
|
+
angle: pi$1,
|
|
40788
|
+
offset: [width + sizeH, height / 5 * 4],
|
|
40789
|
+
rectOffset: [width / 4 * 3, -height - size[1]]
|
|
40790
|
+
};
|
|
40791
|
+
}
|
|
40792
|
+
}
|
|
40793
|
+
}
|
|
40794
|
+
PopTip.defaultAttributes = {
|
|
40795
|
+
position: "rt",
|
|
40796
|
+
visible: !0,
|
|
40797
|
+
title: null,
|
|
40798
|
+
content: null,
|
|
40799
|
+
titleStyle: {
|
|
40800
|
+
fontSize: 12,
|
|
40801
|
+
fill: "#000",
|
|
40802
|
+
textAlign: "left",
|
|
40803
|
+
textBaseline: "top"
|
|
40804
|
+
},
|
|
40805
|
+
contentStyle: {
|
|
40806
|
+
fontSize: 12,
|
|
40807
|
+
fill: "#000",
|
|
40808
|
+
textAlign: "left",
|
|
40809
|
+
textBaseline: "top"
|
|
40810
|
+
},
|
|
40811
|
+
space: 8,
|
|
40812
|
+
padding: 10
|
|
40813
|
+
};
|
|
40814
|
+
|
|
40815
|
+
const DEFAULT_THEME = {
|
|
40816
|
+
visible: !0,
|
|
40817
|
+
position: "auto",
|
|
40818
|
+
titleStyle: {
|
|
40819
|
+
fontSize: 16,
|
|
40820
|
+
fill: "#08979c"
|
|
40821
|
+
},
|
|
40822
|
+
contentStyle: {
|
|
40823
|
+
fontSize: 12,
|
|
40824
|
+
fill: "green"
|
|
40825
|
+
},
|
|
40826
|
+
panel: {
|
|
40827
|
+
visible: !0,
|
|
40828
|
+
fill: "#e6fffb",
|
|
40829
|
+
size: 12,
|
|
40830
|
+
space: 0,
|
|
40831
|
+
stroke: "#87e8de",
|
|
40832
|
+
lineWidth: 1,
|
|
40833
|
+
cornerRadius: 4
|
|
40834
|
+
}
|
|
40835
|
+
};
|
|
40836
|
+
const theme = {
|
|
40837
|
+
poptip: merge$2({}, DEFAULT_THEME)
|
|
40838
|
+
};
|
|
40839
|
+
|
|
40840
|
+
var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
40841
|
+
var d,
|
|
40842
|
+
c = arguments.length,
|
|
40843
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
40844
|
+
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);
|
|
40845
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
40846
|
+
};
|
|
40847
|
+
function wrapPoptip(target, source) {
|
|
40848
|
+
return merge$2(target, theme.poptip, source), target;
|
|
40849
|
+
}
|
|
40850
|
+
let PopTipRenderContribution = class {
|
|
40851
|
+
render(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, options) {
|
|
40852
|
+
var _a;
|
|
40853
|
+
if (1 === graphic._showPoptip) {
|
|
40854
|
+
const {
|
|
40855
|
+
visible: visible,
|
|
40856
|
+
visibleCb: visibleCb
|
|
40857
|
+
} = graphic.attribute.poptip || {};
|
|
40858
|
+
if (!1 === visible || visibleCb && !1 === visibleCb(graphic)) return;
|
|
40859
|
+
this.poptipComponent || (this.poptipComponent = new PopTip(graphic.attribute.poptip));
|
|
40860
|
+
let poptip = graphic.attribute.poptip || {};
|
|
40861
|
+
if ("text" === graphic.type && null == poptip.title && null == poptip.content) {
|
|
40862
|
+
const out = {};
|
|
40863
|
+
wrapPoptip(out, poptip), poptip = out, poptip.content = null !== (_a = poptip.content) && void 0 !== _a ? _a : graphic.attribute.text;
|
|
40864
|
+
}
|
|
40865
|
+
const matrix = graphic.globalTransMatrix;
|
|
40866
|
+
this.poptipComponent.setAttributes(Object.assign(Object.assign({
|
|
40867
|
+
visibleAll: !0,
|
|
40868
|
+
pickable: !1,
|
|
40869
|
+
childrenPickable: !1
|
|
40870
|
+
}, poptip), {
|
|
40871
|
+
x: matrix.e,
|
|
40872
|
+
y: matrix.f
|
|
40873
|
+
}));
|
|
40874
|
+
const interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
|
|
40875
|
+
interactiveLayer && interactiveLayer.add(this.poptipComponent);
|
|
40876
|
+
} else 2 === graphic._showPoptip && (graphic._showPoptip = 0, this.poptipComponent && this.poptipComponent.setAttributes({
|
|
40877
|
+
visibleAll: !1
|
|
40878
|
+
}));
|
|
40879
|
+
}
|
|
40880
|
+
};
|
|
40881
|
+
PopTipRenderContribution = __decorate$1([injectable()], PopTipRenderContribution);
|
|
40882
|
+
|
|
40883
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
40884
|
+
var d,
|
|
40885
|
+
c = arguments.length,
|
|
40886
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
40887
|
+
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);
|
|
40888
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
40889
|
+
};
|
|
40890
|
+
let PopTipPlugin = class {
|
|
40891
|
+
constructor() {
|
|
40892
|
+
this.name = "poptip", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.poptip = e => {
|
|
40893
|
+
const graphic = e.target;
|
|
40894
|
+
if (graphic.isContainer || !graphic.attribute) return void this.unpoptip(e);
|
|
40895
|
+
if (graphic === this.activeGraphic) return;
|
|
40896
|
+
const {
|
|
40897
|
+
poptip: poptip
|
|
40898
|
+
} = graphic.attribute;
|
|
40899
|
+
poptip && (graphic.setAttributes({}), graphic._showPoptip = 1), this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2), this.setActiveGraphic(graphic, !0);
|
|
40900
|
+
}, this.unpoptip = e => {
|
|
40901
|
+
this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2, this.setActiveGraphic(null, !0));
|
|
40902
|
+
};
|
|
40903
|
+
}
|
|
40904
|
+
activate(context) {
|
|
40905
|
+
this.pluginService = context;
|
|
40906
|
+
const {
|
|
40907
|
+
stage: stage
|
|
40908
|
+
} = this.pluginService;
|
|
40909
|
+
stage.addEventListener("pointerover", this.poptip);
|
|
40910
|
+
}
|
|
40911
|
+
setActiveGraphic(graphic, rerender) {
|
|
40912
|
+
this.activeGraphic = graphic, this.pluginService.stage.renderNextFrame();
|
|
40913
|
+
}
|
|
40914
|
+
deactivate(context) {
|
|
40915
|
+
const {
|
|
40916
|
+
stage: stage
|
|
40917
|
+
} = this.pluginService;
|
|
40918
|
+
stage.removeEventListener("pointerover", this.poptip);
|
|
40919
|
+
}
|
|
40920
|
+
};
|
|
40921
|
+
PopTipPlugin = __decorate([injectable()], PopTipPlugin);
|
|
40922
|
+
let PopTipForClipedTextPlugin = class {
|
|
40923
|
+
constructor() {
|
|
40924
|
+
this.name = "poptipForText", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.poptip = e => {
|
|
40925
|
+
const graphic = e.target;
|
|
40926
|
+
if ("text" !== graphic.type || !graphic.cliped || graphic.isContainer || !graphic.attribute) return void this.unpoptip(e);
|
|
40927
|
+
if (graphic === this.activeGraphic) return;
|
|
40928
|
+
const {
|
|
40929
|
+
poptip = {}
|
|
40930
|
+
} = graphic.attribute;
|
|
40931
|
+
poptip && (graphic.setAttributes({}), graphic._showPoptip = 1), this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2), this.setActiveGraphic(graphic, !0);
|
|
40932
|
+
}, this.unpoptip = e => {
|
|
40933
|
+
this.activeGraphic && (this.activeGraphic.setAttributes({}), this.activeGraphic._showPoptip = 2, this.setActiveGraphic(null, !0));
|
|
40934
|
+
};
|
|
40935
|
+
}
|
|
40936
|
+
activate(context) {
|
|
40937
|
+
this.pluginService = context;
|
|
40938
|
+
const {
|
|
40939
|
+
stage: stage
|
|
40940
|
+
} = this.pluginService;
|
|
40941
|
+
stage.addEventListener("pointerover", this.poptip);
|
|
40942
|
+
}
|
|
40943
|
+
setActiveGraphic(graphic, rerender) {
|
|
40944
|
+
this.activeGraphic = graphic, this.pluginService.stage.renderNextFrame();
|
|
40945
|
+
}
|
|
40946
|
+
deactivate(context) {
|
|
40947
|
+
const {
|
|
40948
|
+
stage: stage
|
|
40949
|
+
} = this.pluginService;
|
|
40950
|
+
stage.removeEventListener("pointerover", this.poptip);
|
|
40951
|
+
}
|
|
40952
|
+
};
|
|
40953
|
+
PopTipForClipedTextPlugin = __decorate([injectable()], PopTipForClipedTextPlugin);
|
|
40954
|
+
|
|
40955
|
+
const popTipModule = new ContainerModule(bind => {
|
|
40956
|
+
bind(PopTipRenderContribution).toSelf().inSingletonScope(), bind(InteractiveSubRenderContribution).toService(PopTipRenderContribution), bind(PopTipPlugin).toSelf().inSingletonScope(), bind(AutoEnablePlugins).toService(PopTipPlugin), bind(PopTipForClipedTextPlugin).toSelf().inSingletonScope(), bind(AutoEnablePlugins).toService(PopTipForClipedTextPlugin);
|
|
40957
|
+
});
|
|
40958
|
+
function loadPoptip(defaultPoptipTheme) {
|
|
40959
|
+
merge$2(theme.poptip, defaultPoptipTheme), container.load(popTipModule);
|
|
40960
|
+
}
|
|
40961
|
+
function setPoptipTheme(defaultPoptipTheme) {
|
|
40962
|
+
merge$2(theme.poptip, DEFAULT_THEME, defaultPoptipTheme);
|
|
40963
|
+
}
|
|
40964
|
+
|
|
40524
40965
|
class CrosshairBase extends AbstractComponent {
|
|
40525
40966
|
constructor() {
|
|
40526
40967
|
super(...arguments), this.name = "crosshair";
|
|
@@ -41838,36 +42279,42 @@
|
|
|
41838
42279
|
}
|
|
41839
42280
|
}
|
|
41840
42281
|
renderTicks(container) {
|
|
41841
|
-
var _a;
|
|
41842
42282
|
const tickLineItems = this.getTickLineItems(),
|
|
41843
42283
|
tickLineGroup = createGroup({
|
|
41844
42284
|
x: 0,
|
|
41845
42285
|
y: 0,
|
|
41846
42286
|
pickable: !1
|
|
41847
42287
|
});
|
|
41848
|
-
tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup)
|
|
41849
|
-
|
|
41850
|
-
tickLineItems.forEach((item, index) => {
|
|
42288
|
+
tickLineGroup.name = AXIS_ELEMENT_NAME.tickContainer, tickLineGroup.id = this._getNodeId("tick-container"), container.add(tickLineGroup), tickLineItems.forEach((item, index) => {
|
|
42289
|
+
var _a;
|
|
41851
42290
|
const line = createLine(Object.assign({}, this._getTickLineAttribute("tick", item, index, tickLineItems)));
|
|
41852
|
-
line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), line.states =
|
|
42291
|
+
if (line.name = AXIS_ELEMENT_NAME.tick, line.id = this._getNodeId(item.id), isEmpty(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.state)) line.states = null;else {
|
|
42292
|
+
const data = this.data[index],
|
|
42293
|
+
tickLineState = merge$2({}, DEFAULT_STATES$2, this.attribute.tick.state);
|
|
42294
|
+
Object.keys(tickLineState).forEach(key => {
|
|
42295
|
+
isFunction(tickLineState[key]) && (tickLineState[key] = tickLineState[key](data.rawValue, index, data, this.data));
|
|
42296
|
+
}), line.states = tickLineState;
|
|
42297
|
+
}
|
|
42298
|
+
tickLineGroup.add(line);
|
|
41853
42299
|
}), this.tickLineItems = tickLineItems;
|
|
41854
42300
|
const {
|
|
41855
42301
|
subTick: subTick
|
|
41856
42302
|
} = this.attribute;
|
|
41857
42303
|
if (null == subTick ? void 0 : subTick.visible) {
|
|
41858
42304
|
const subTickLineItems = this.getSubTickLineItems();
|
|
41859
|
-
|
|
41860
|
-
const
|
|
41861
|
-
|
|
41862
|
-
const
|
|
41863
|
-
|
|
41864
|
-
|
|
41865
|
-
|
|
41866
|
-
|
|
42305
|
+
subTickLineItems.length && subTickLineItems.forEach((item, index) => {
|
|
42306
|
+
const line = createLine(Object.assign({}, this._getTickLineAttribute("subTick", item, index, tickLineItems)));
|
|
42307
|
+
if (line.name = AXIS_ELEMENT_NAME.subTick, line.id = this._getNodeId(`${index}`), isEmpty(subTick.state)) line.states = null;else {
|
|
42308
|
+
const subTickLineState = merge$2({}, DEFAULT_STATES$2, subTick.state);
|
|
42309
|
+
Object.keys(subTickLineState).forEach(key => {
|
|
42310
|
+
isFunction(subTickLineState[key]) && (subTickLineState[key] = subTickLineState[key](item.value, index, item, tickLineItems));
|
|
42311
|
+
}), line.states = subTickLineState;
|
|
42312
|
+
}
|
|
42313
|
+
tickLineGroup.add(line);
|
|
42314
|
+
}), this.subTickLineItems = subTickLineItems;
|
|
41867
42315
|
}
|
|
41868
42316
|
}
|
|
41869
42317
|
renderLabels(container, items, layer) {
|
|
41870
|
-
var _a;
|
|
41871
42318
|
const {
|
|
41872
42319
|
dataFilter: dataFilter
|
|
41873
42320
|
} = this.attribute.label;
|
|
@@ -41883,13 +42330,18 @@
|
|
|
41883
42330
|
maxTextHeight = 0,
|
|
41884
42331
|
textAlign = "center",
|
|
41885
42332
|
textBaseline = "middle";
|
|
41886
|
-
const labelState = isEmpty(null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.state) ? null : merge$2({}, DEFAULT_STATES$2, this.attribute.label.state);
|
|
41887
42333
|
return data.forEach((item, index) => {
|
|
41888
|
-
var _a;
|
|
42334
|
+
var _a, _b;
|
|
41889
42335
|
const labelStyle = this._getLabelAttribute(item, index, data, layer),
|
|
41890
42336
|
text = createText(labelStyle);
|
|
41891
|
-
text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), text.states =
|
|
41892
|
-
|
|
42337
|
+
if (text.name = AXIS_ELEMENT_NAME.label, text.id = this._getNodeId(`layer${layer}-label-${item.id}`), isEmpty(null === (_a = this.attribute.label) || void 0 === _a ? void 0 : _a.state)) text.states = null;else {
|
|
42338
|
+
const labelState = merge$2({}, DEFAULT_STATES$2, this.attribute.label.state);
|
|
42339
|
+
Object.keys(labelState).forEach(key => {
|
|
42340
|
+
isFunction(labelState[key]) && (labelState[key] = labelState[key](item, index, data, layer));
|
|
42341
|
+
}), text.states = labelState;
|
|
42342
|
+
}
|
|
42343
|
+
labelGroup.add(text);
|
|
42344
|
+
const angle = null !== (_b = labelStyle.angle) && void 0 !== _b ? _b : 0;
|
|
41893
42345
|
maxTextWidth = Math.max(maxTextWidth, text.AABBBounds.width()), maxTextHeight = Math.max(maxTextHeight, text.AABBBounds.height()), angle && (maxTextWidth = Math.abs(maxTextWidth * Math.cos(angle)), maxTextHeight = Math.abs(maxTextHeight * Math.sin(angle))), textAlign = labelStyle.textAlign, textBaseline = labelStyle.textBaseline;
|
|
41894
42346
|
}), this.axisLabelLayerSize[layer] = {
|
|
41895
42347
|
width: maxTextWidth,
|
|
@@ -42202,7 +42654,7 @@
|
|
|
42202
42654
|
orient: orient
|
|
42203
42655
|
} = config;
|
|
42204
42656
|
!isEmpty(labels) && isValidNumber(limitLength) && labels.forEach(label => {
|
|
42205
|
-
const limitLabelLength = 0 === label.attribute.angle || isNil(label.attribute.angle) ? "top" === orient || "bottom" === orient ? null : limitLength : limitLength / Math.sin(label.attribute.angle);
|
|
42657
|
+
const limitLabelLength = 0 === label.attribute.angle || isNil(label.attribute.angle) ? "top" === orient || "bottom" === orient ? null : limitLength : Math.abs(limitLength / Math.sin(label.attribute.angle));
|
|
42206
42658
|
label.setAttributes({
|
|
42207
42659
|
maxLineWidth: limitLabelLength,
|
|
42208
42660
|
ellipsis: ellipsis
|
|
@@ -42912,7 +43364,7 @@
|
|
|
42912
43364
|
}
|
|
42913
43365
|
},
|
|
42914
43366
|
middleHandlerStyle: {
|
|
42915
|
-
visible: !
|
|
43367
|
+
visible: !0,
|
|
42916
43368
|
background: {
|
|
42917
43369
|
size: 8,
|
|
42918
43370
|
style: {
|
|
@@ -42930,12 +43382,14 @@
|
|
|
42930
43382
|
}
|
|
42931
43383
|
},
|
|
42932
43384
|
startHandlerStyle: {
|
|
43385
|
+
visible: !0,
|
|
42933
43386
|
symbolType: "M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",
|
|
42934
43387
|
fill: "white",
|
|
42935
43388
|
stroke: "#B0C8F9",
|
|
42936
43389
|
lineWidth: .5
|
|
42937
43390
|
},
|
|
42938
43391
|
endHandlerStyle: {
|
|
43392
|
+
visible: !0,
|
|
42939
43393
|
symbolType: "M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z",
|
|
42940
43394
|
fill: "white",
|
|
42941
43395
|
stroke: "#B0C8F9",
|
|
@@ -43179,13 +43633,15 @@
|
|
|
43179
43633
|
}), `data-zoom-end-text-${position}`));
|
|
43180
43634
|
}
|
|
43181
43635
|
getLayoutAttrFromConfig() {
|
|
43182
|
-
var _a, _b;
|
|
43636
|
+
var _a, _b, _c, _d;
|
|
43183
43637
|
if (this._layoutAttrFromConfig) return this._layoutAttrFromConfig;
|
|
43184
43638
|
const {
|
|
43185
43639
|
position: positionConfig,
|
|
43186
43640
|
size: size,
|
|
43187
43641
|
orient: orient,
|
|
43188
|
-
middleHandlerStyle: middleHandlerStyle
|
|
43642
|
+
middleHandlerStyle: middleHandlerStyle,
|
|
43643
|
+
startHandlerStyle: startHandlerStyle,
|
|
43644
|
+
endHandlerStyle: endHandlerStyle
|
|
43189
43645
|
} = this.attribute,
|
|
43190
43646
|
{
|
|
43191
43647
|
width: widthConfig,
|
|
@@ -43193,13 +43649,22 @@
|
|
|
43193
43649
|
} = size,
|
|
43194
43650
|
middleHandlerSize = null !== (_b = null === (_a = null == middleHandlerStyle ? void 0 : middleHandlerStyle.background) || void 0 === _a ? void 0 : _a.size) && void 0 !== _b ? _b : 10;
|
|
43195
43651
|
let width, height, position;
|
|
43196
|
-
|
|
43652
|
+
(null == middleHandlerStyle ? void 0 : middleHandlerStyle.visible) ? this._isHorizontal ? (width = widthConfig, height = heightConfig - middleHandlerSize, position = {
|
|
43197
43653
|
x: positionConfig.x,
|
|
43198
43654
|
y: positionConfig.y + middleHandlerSize
|
|
43199
43655
|
}) : (width = widthConfig - middleHandlerSize, height = heightConfig, position = {
|
|
43200
43656
|
x: positionConfig.x + ("left" === orient ? middleHandlerSize : 0),
|
|
43201
43657
|
y: positionConfig.y
|
|
43202
|
-
}) : (width = widthConfig, height = heightConfig, position = positionConfig)
|
|
43658
|
+
}) : (width = widthConfig, height = heightConfig, position = positionConfig);
|
|
43659
|
+
const startHandlerSize = null !== (_c = null == startHandlerStyle ? void 0 : startHandlerStyle.size) && void 0 !== _c ? _c : this._isHorizontal ? height : width,
|
|
43660
|
+
endHandlerSize = null !== (_d = null == endHandlerStyle ? void 0 : endHandlerStyle.size) && void 0 !== _d ? _d : this._isHorizontal ? height : width;
|
|
43661
|
+
return (null == startHandlerStyle ? void 0 : startHandlerStyle.visible) && (this._isHorizontal ? (width -= (startHandlerSize + endHandlerSize) / 2, position = {
|
|
43662
|
+
x: position.x + startHandlerSize / 2,
|
|
43663
|
+
y: position.y
|
|
43664
|
+
}) : (height -= (startHandlerSize + endHandlerSize) / 2, position = {
|
|
43665
|
+
x: position.x,
|
|
43666
|
+
y: position.y + startHandlerSize
|
|
43667
|
+
})), this._layoutAttrFromConfig = {
|
|
43203
43668
|
position: position,
|
|
43204
43669
|
width: width,
|
|
43205
43670
|
height: height
|
|
@@ -43396,19 +43861,17 @@
|
|
|
43396
43861
|
curveType: "basis"
|
|
43397
43862
|
}, "area");
|
|
43398
43863
|
const {
|
|
43399
|
-
position: position,
|
|
43400
|
-
size: size,
|
|
43401
43864
|
selectedBackgroundChartStyle: selectedBackgroundChartStyle
|
|
43402
43865
|
} = this.attribute,
|
|
43403
|
-
{
|
|
43404
|
-
width: width,
|
|
43405
|
-
height: height
|
|
43406
|
-
} = size,
|
|
43407
43866
|
{
|
|
43408
43867
|
start: start,
|
|
43409
43868
|
end: end
|
|
43410
|
-
} = this.state
|
|
43411
|
-
|
|
43869
|
+
} = this.state,
|
|
43870
|
+
{
|
|
43871
|
+
position: position,
|
|
43872
|
+
width: width,
|
|
43873
|
+
height: height
|
|
43874
|
+
} = this.getLayoutAttrFromConfig();
|
|
43412
43875
|
this._selectedPreviewGroupClip.setAttributes({
|
|
43413
43876
|
x: this._isHorizontal ? position.x + start * width : position.x,
|
|
43414
43877
|
y: this._isHorizontal ? position.y : position.y + start * height,
|
|
@@ -44370,7 +44833,7 @@
|
|
|
44370
44833
|
pages = 1;
|
|
44371
44834
|
legendItems.forEach((item, index) => {
|
|
44372
44835
|
item.id || (item.id = item.label), item.index = index;
|
|
44373
|
-
const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index),
|
|
44836
|
+
const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index, legendItems),
|
|
44374
44837
|
itemWidth = itemGroup.attribute.width,
|
|
44375
44838
|
itemHeight = itemGroup.attribute.height;
|
|
44376
44839
|
this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid(maxWidth) && (itemWidth >= maxWidth ? (doWrap = !0, index > 0 && (startX = 0, startY += itemHeight + spaceRow, pages += 1)) : maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1)), index > 0 && itemGroup.setAttributes({
|
|
@@ -44392,7 +44855,7 @@
|
|
|
44392
44855
|
} = this.attribute;
|
|
44393
44856
|
hover && (this._itemsContainer.addEventListener("pointermove", this._onHover), this._itemsContainer.addEventListener("pointerout", this._onUnHover)), select && this._itemsContainer.addEventListener("pointerdown", this._onClick);
|
|
44394
44857
|
}
|
|
44395
|
-
_renderEachItem(item, isSelected, index) {
|
|
44858
|
+
_renderEachItem(item, isSelected, index, items) {
|
|
44396
44859
|
const {
|
|
44397
44860
|
id: id,
|
|
44398
44861
|
label: label,
|
|
@@ -44400,20 +44863,23 @@
|
|
|
44400
44863
|
shape: shape
|
|
44401
44864
|
} = item,
|
|
44402
44865
|
{
|
|
44403
|
-
shape: shapeAttr = {},
|
|
44404
|
-
label: labelAttr = {},
|
|
44405
|
-
value: valueAttr = {},
|
|
44406
44866
|
padding = 0,
|
|
44407
|
-
background: background,
|
|
44408
44867
|
focus: focus,
|
|
44409
44868
|
focusIconStyle = {}
|
|
44410
|
-
} = this.attribute.item
|
|
44411
|
-
|
|
44869
|
+
} = this.attribute.item;
|
|
44870
|
+
let {
|
|
44871
|
+
shape: shapeAttr = {},
|
|
44872
|
+
label: labelAttr = {},
|
|
44873
|
+
value: valueAttr = {},
|
|
44874
|
+
background = {}
|
|
44875
|
+
} = this.attribute.item;
|
|
44876
|
+
shapeAttr = this._handleStyle(shapeAttr, item, isSelected, index, items), labelAttr = this._handleStyle(labelAttr, item, isSelected, index, items), valueAttr = this._handleStyle(valueAttr, item, isSelected, index, items), background = this._handleStyle(background, item, isSelected, index, items);
|
|
44877
|
+
const parsedPadding = normalizePadding$1(padding);
|
|
44412
44878
|
let itemGroup;
|
|
44413
44879
|
!1 === background.visible ? (itemGroup = createGroup({
|
|
44414
44880
|
x: 0,
|
|
44415
44881
|
y: 0,
|
|
44416
|
-
cursor: null == background ? void 0 : background.style.cursor
|
|
44882
|
+
cursor: (null == background ? void 0 : background.style).cursor
|
|
44417
44883
|
}), this._appendDataToShape(itemGroup, LEGEND_ELEMENT_NAME.item, item, itemGroup)) : (itemGroup = createGroup(Object.assign({
|
|
44418
44884
|
x: 0,
|
|
44419
44885
|
y: 0
|
|
@@ -44456,7 +44922,7 @@
|
|
|
44456
44922
|
y: 0,
|
|
44457
44923
|
textAlign: "start",
|
|
44458
44924
|
textBaseline: "middle",
|
|
44459
|
-
lineHeight: null == labelAttr ? void 0 : labelAttr.style.fontSize
|
|
44925
|
+
lineHeight: (null == labelAttr ? void 0 : labelAttr.style).fontSize
|
|
44460
44926
|
}, null == labelAttr ? void 0 : labelAttr.style), {
|
|
44461
44927
|
text: labelAttr.formatMethod ? labelAttr.formatMethod(label, item, index) : label
|
|
44462
44928
|
}));
|
|
@@ -44469,7 +44935,7 @@
|
|
|
44469
44935
|
y: 0,
|
|
44470
44936
|
textAlign: "start",
|
|
44471
44937
|
textBaseline: "middle",
|
|
44472
|
-
lineHeight: null == valueAttr ? void 0 : valueAttr.style.fontSize
|
|
44938
|
+
lineHeight: (null == valueAttr ? void 0 : valueAttr.style).fontSize
|
|
44473
44939
|
}, null == valueAttr ? void 0 : valueAttr.style), {
|
|
44474
44940
|
text: valueAttr.formatMethod ? valueAttr.formatMethod(value, item, index) : value
|
|
44475
44941
|
}));
|
|
@@ -44619,6 +45085,12 @@
|
|
|
44619
45085
|
});
|
|
44620
45086
|
changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
|
|
44621
45087
|
}
|
|
45088
|
+
_handleStyle(config, item, isSelected, index, items) {
|
|
45089
|
+
const newConfig = merge$2({}, config);
|
|
45090
|
+
return config.style && isFunction(config.style) && (newConfig.style = config.style(item, isSelected, index, items)), config.state && Object.keys(config.state).forEach(key => {
|
|
45091
|
+
config.state[key] && isFunction(config.state[key]) && (newConfig.state[key] = config.state[key](item, isSelected, index, items));
|
|
45092
|
+
}), newConfig;
|
|
45093
|
+
}
|
|
44622
45094
|
};
|
|
44623
45095
|
DiscreteLegend$1.defaultAttributes = {
|
|
44624
45096
|
layout: "horizontal",
|
|
@@ -51640,9 +52112,9 @@
|
|
|
51640
52112
|
const dataZoom = {
|
|
51641
52113
|
showDetail: 'auto',
|
|
51642
52114
|
middleHandler: {
|
|
51643
|
-
visible:
|
|
52115
|
+
visible: true,
|
|
51644
52116
|
background: {
|
|
51645
|
-
size:
|
|
52117
|
+
size: 6,
|
|
51646
52118
|
style: {
|
|
51647
52119
|
stroke: '#D1D5DA',
|
|
51648
52120
|
cornerRadius: 2
|
|
@@ -51650,7 +52122,7 @@
|
|
|
51650
52122
|
},
|
|
51651
52123
|
icon: {
|
|
51652
52124
|
style: {
|
|
51653
|
-
size:
|
|
52125
|
+
size: 4,
|
|
51654
52126
|
fill: 'white',
|
|
51655
52127
|
stroke: '#D1D5DA',
|
|
51656
52128
|
symbolType: 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',
|
|
@@ -52206,6 +52678,34 @@
|
|
|
52206
52678
|
}
|
|
52207
52679
|
};
|
|
52208
52680
|
|
|
52681
|
+
const poptip = {
|
|
52682
|
+
visible: true,
|
|
52683
|
+
position: 'auto',
|
|
52684
|
+
padding: 8,
|
|
52685
|
+
titleStyle: {
|
|
52686
|
+
fontSize: 12,
|
|
52687
|
+
fontWeight: 'bold',
|
|
52688
|
+
fill: '#4E5969'
|
|
52689
|
+
},
|
|
52690
|
+
contentStyle: {
|
|
52691
|
+
fontSize: 12,
|
|
52692
|
+
fill: '#4E5969'
|
|
52693
|
+
},
|
|
52694
|
+
panel: {
|
|
52695
|
+
visible: true,
|
|
52696
|
+
fill: '#fff',
|
|
52697
|
+
stroke: '#ffffff',
|
|
52698
|
+
lineWidth: 0,
|
|
52699
|
+
cornerRadius: 3,
|
|
52700
|
+
shadowBlur: 12,
|
|
52701
|
+
shadowOffsetX: 0,
|
|
52702
|
+
shadowOffsetY: 4,
|
|
52703
|
+
shadowColor: 'rgba(0, 0, 0, 0.1)',
|
|
52704
|
+
size: 0,
|
|
52705
|
+
space: 12
|
|
52706
|
+
}
|
|
52707
|
+
};
|
|
52708
|
+
|
|
52209
52709
|
const component = {
|
|
52210
52710
|
discreteLegend,
|
|
52211
52711
|
colorLegend,
|
|
@@ -52227,7 +52727,8 @@
|
|
|
52227
52727
|
brush,
|
|
52228
52728
|
indicator,
|
|
52229
52729
|
title,
|
|
52230
|
-
mapLabel
|
|
52730
|
+
mapLabel,
|
|
52731
|
+
poptip
|
|
52231
52732
|
};
|
|
52232
52733
|
|
|
52233
52734
|
const lightTheme = {
|
|
@@ -52415,28 +52916,60 @@
|
|
|
52415
52916
|
};
|
|
52416
52917
|
|
|
52417
52918
|
function transformComponentStyle(cfg = {}) {
|
|
52418
|
-
|
|
52419
|
-
cfg
|
|
52919
|
+
const newConfig = {
|
|
52920
|
+
...cfg
|
|
52921
|
+
};
|
|
52922
|
+
if (isFunction(cfg.style)) {
|
|
52923
|
+
newConfig.style = (item, isSelected, index, allItems) => transformToGraphic(cfg.style(item, isSelected, index, allItems));
|
|
52924
|
+
}
|
|
52925
|
+
else if (!isEmpty(cfg.style)) {
|
|
52926
|
+
newConfig.style = transformToGraphic(cfg.style);
|
|
52420
52927
|
}
|
|
52421
52928
|
if (!isEmpty(cfg.state)) {
|
|
52929
|
+
const newStateStyle = {};
|
|
52422
52930
|
Object.keys(cfg.state).forEach(key => {
|
|
52423
|
-
if (
|
|
52424
|
-
|
|
52931
|
+
if (isFunction(cfg.state[key])) {
|
|
52932
|
+
newStateStyle[key] = (item, isSelected, index, allItems) => transformToGraphic(cfg.state[key](item, isSelected, index, allItems));
|
|
52933
|
+
}
|
|
52934
|
+
else if (!isEmpty(cfg.state[key])) {
|
|
52935
|
+
newStateStyle[key] = transformToGraphic(cfg.state[key]);
|
|
52425
52936
|
}
|
|
52426
52937
|
});
|
|
52938
|
+
newConfig.state = newStateStyle;
|
|
52427
52939
|
}
|
|
52428
|
-
return
|
|
52940
|
+
return newConfig;
|
|
52429
52941
|
}
|
|
52430
52942
|
function transformStateStyle(stateStyle) {
|
|
52431
52943
|
if (isEmpty(stateStyle)) {
|
|
52432
52944
|
return null;
|
|
52433
52945
|
}
|
|
52946
|
+
const newStateStyle = {};
|
|
52434
52947
|
Object.keys(stateStyle).forEach(key => {
|
|
52435
|
-
if (
|
|
52436
|
-
|
|
52948
|
+
if (isFunction(stateStyle[key])) {
|
|
52949
|
+
newStateStyle[key] = (value, index, datum, data) => transformToGraphic(stateStyle[key](value, index, datum, data));
|
|
52950
|
+
}
|
|
52951
|
+
else if (!isEmpty(stateStyle[key])) {
|
|
52952
|
+
newStateStyle[key] = transformToGraphic(stateStyle[key]);
|
|
52437
52953
|
}
|
|
52438
52954
|
});
|
|
52439
|
-
return
|
|
52955
|
+
return newStateStyle;
|
|
52956
|
+
}
|
|
52957
|
+
function transformAxisLabelStateStyle(stateStyle) {
|
|
52958
|
+
if (isEmpty(stateStyle)) {
|
|
52959
|
+
return null;
|
|
52960
|
+
}
|
|
52961
|
+
const newStateStyle = {};
|
|
52962
|
+
Object.keys(stateStyle).forEach(key => {
|
|
52963
|
+
if (isFunction(stateStyle[key])) {
|
|
52964
|
+
newStateStyle[key] = (datum, index, data, layer) => {
|
|
52965
|
+
return transformToGraphic(stateStyle[key](datum.rawValue, index, datum, data, layer));
|
|
52966
|
+
};
|
|
52967
|
+
}
|
|
52968
|
+
else if (!isEmpty(stateStyle[key])) {
|
|
52969
|
+
newStateStyle[key] = transformToGraphic(stateStyle[key]);
|
|
52970
|
+
}
|
|
52971
|
+
});
|
|
52972
|
+
return newStateStyle;
|
|
52440
52973
|
}
|
|
52441
52974
|
function transformToGraphic(style) {
|
|
52442
52975
|
if (isEmpty(style)) {
|
|
@@ -52457,6 +52990,7 @@
|
|
|
52457
52990
|
MarkTypeEnum["text"] = "text";
|
|
52458
52991
|
MarkTypeEnum["rect"] = "rect";
|
|
52459
52992
|
MarkTypeEnum["rect3d"] = "rect3d";
|
|
52993
|
+
MarkTypeEnum["image"] = "image";
|
|
52460
52994
|
MarkTypeEnum["path"] = "path";
|
|
52461
52995
|
MarkTypeEnum["area"] = "area";
|
|
52462
52996
|
MarkTypeEnum["arc"] = "arc";
|
|
@@ -54052,7 +54586,7 @@
|
|
|
54052
54586
|
_context = {};
|
|
54053
54587
|
constructor(spec, options) {
|
|
54054
54588
|
this._option = merge$2(this._option, options);
|
|
54055
|
-
const { dom, renderCanvas, mode, stage, ...restOptions } = this._option;
|
|
54589
|
+
const { dom, renderCanvas, mode, stage, poptip, ...restOptions } = this._option;
|
|
54056
54590
|
if (dom) {
|
|
54057
54591
|
this._container = isString(dom) ? document?.getElementById(dom) : dom;
|
|
54058
54592
|
}
|
|
@@ -54076,6 +54610,7 @@
|
|
|
54076
54610
|
}, {
|
|
54077
54611
|
mode: this._option.mode,
|
|
54078
54612
|
stage,
|
|
54613
|
+
pluginList: poptip !== false ? ['poptipForText'] : [],
|
|
54079
54614
|
...restOptions,
|
|
54080
54615
|
background: spec.background || this._currentTheme.background || this._option.background
|
|
54081
54616
|
});
|
|
@@ -54432,6 +54967,7 @@
|
|
|
54432
54967
|
else {
|
|
54433
54968
|
this._currentTheme = merge$2({}, ThemeManager.getTheme(this._currentThemeName), this._spec?.theme ?? {});
|
|
54434
54969
|
}
|
|
54970
|
+
setPoptipTheme(merge$2({}, this._currentTheme.component?.poptip));
|
|
54435
54971
|
}
|
|
54436
54972
|
getCurrentTheme() {
|
|
54437
54973
|
return this._currentTheme;
|
|
@@ -56097,6 +56633,7 @@
|
|
|
56097
56633
|
this._rightCurrent = chartLayoutRect.x + chartLayoutRect.width;
|
|
56098
56634
|
this._bottomCurrent = chartLayoutRect.height + chartLayoutRect.y;
|
|
56099
56635
|
items.sort((a, b) => b.layoutLevel - a.layoutLevel);
|
|
56636
|
+
this.layoutNormalInlineItems(items.filter(x => x.layoutType === 'normal-inline'));
|
|
56100
56637
|
this.layoutNormalItems(items.filter(x => x.layoutType === 'normal'));
|
|
56101
56638
|
const layoutTemp = {
|
|
56102
56639
|
_leftCurrent: this._leftCurrent,
|
|
@@ -56154,6 +56691,118 @@
|
|
|
56154
56691
|
}
|
|
56155
56692
|
});
|
|
56156
56693
|
}
|
|
56694
|
+
layoutNormalInlineItems(normalItems) {
|
|
56695
|
+
const leftItems = normalItems.filter(item => item.layoutOrient === 'left');
|
|
56696
|
+
const rightItems = normalItems.filter(item => item.layoutOrient === 'right');
|
|
56697
|
+
const topItems = normalItems.filter(item => item.layoutOrient === 'top');
|
|
56698
|
+
const bottomItems = normalItems.filter(item => item.layoutOrient === 'bottom');
|
|
56699
|
+
const limitWidth = this._chartLayoutRect.width + this._chartLayoutRect.x;
|
|
56700
|
+
const limitHeight = this._chartLayoutRect.height + this._chartLayoutRect.y;
|
|
56701
|
+
let maxWidth = 0;
|
|
56702
|
+
let preLeft = this._leftCurrent;
|
|
56703
|
+
let preTop = this._topCurrent;
|
|
56704
|
+
leftItems.forEach((item, index) => {
|
|
56705
|
+
const layoutRect = this.getItemComputeLayoutRect(item);
|
|
56706
|
+
const rect = item.computeBoundsInRect(layoutRect);
|
|
56707
|
+
item.setLayoutRect(rect);
|
|
56708
|
+
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
56709
|
+
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
56710
|
+
item.setLayoutStartPosition({
|
|
56711
|
+
x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56712
|
+
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
56713
|
+
});
|
|
56714
|
+
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
56715
|
+
preTop += itemTotalHeight;
|
|
56716
|
+
if (preTop > limitHeight) {
|
|
56717
|
+
preLeft += maxWidth;
|
|
56718
|
+
maxWidth = itemTotalWidth;
|
|
56719
|
+
preTop = this._topCurrent + itemTotalHeight;
|
|
56720
|
+
item.setLayoutStartPosition({
|
|
56721
|
+
x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56722
|
+
y: this._topCurrent + item.layoutOffsetY + item.layoutPaddingTop
|
|
56723
|
+
});
|
|
56724
|
+
}
|
|
56725
|
+
});
|
|
56726
|
+
this._leftCurrent = preLeft + maxWidth;
|
|
56727
|
+
let maxHeight = 0;
|
|
56728
|
+
preLeft = this._leftCurrent;
|
|
56729
|
+
preTop = this._topCurrent;
|
|
56730
|
+
topItems.forEach((item, index) => {
|
|
56731
|
+
const layoutRect = this.getItemComputeLayoutRect(item);
|
|
56732
|
+
const rect = item.computeBoundsInRect(layoutRect);
|
|
56733
|
+
item.setLayoutRect(rect);
|
|
56734
|
+
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
56735
|
+
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
56736
|
+
item.setLayoutStartPosition({
|
|
56737
|
+
x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56738
|
+
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
56739
|
+
});
|
|
56740
|
+
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
56741
|
+
preLeft += itemTotalWidth;
|
|
56742
|
+
if (preLeft > limitWidth) {
|
|
56743
|
+
preLeft = this._leftCurrent + itemTotalWidth;
|
|
56744
|
+
preTop += maxHeight;
|
|
56745
|
+
maxHeight = itemTotalHeight;
|
|
56746
|
+
item.setLayoutStartPosition({
|
|
56747
|
+
x: this._leftCurrent + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56748
|
+
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
56749
|
+
});
|
|
56750
|
+
}
|
|
56751
|
+
});
|
|
56752
|
+
this._topCurrent = preTop + maxHeight;
|
|
56753
|
+
maxWidth = 0;
|
|
56754
|
+
let preRight = this._rightCurrent;
|
|
56755
|
+
preTop = this._topCurrent;
|
|
56756
|
+
rightItems.forEach((item, index) => {
|
|
56757
|
+
const layoutRect = this.getItemComputeLayoutRect(item);
|
|
56758
|
+
const rect = item.computeBoundsInRect(layoutRect);
|
|
56759
|
+
item.setLayoutRect(rect);
|
|
56760
|
+
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
56761
|
+
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
56762
|
+
item.setLayoutStartPosition({
|
|
56763
|
+
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
56764
|
+
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
56765
|
+
});
|
|
56766
|
+
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
56767
|
+
preTop += itemTotalHeight;
|
|
56768
|
+
if (preTop > limitHeight) {
|
|
56769
|
+
preRight -= maxWidth;
|
|
56770
|
+
maxWidth = itemTotalWidth;
|
|
56771
|
+
preTop = this._topCurrent + itemTotalHeight;
|
|
56772
|
+
item.setLayoutStartPosition({
|
|
56773
|
+
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
56774
|
+
y: this._topCurrent + item.layoutOffsetY + item.layoutPaddingTop
|
|
56775
|
+
});
|
|
56776
|
+
}
|
|
56777
|
+
});
|
|
56778
|
+
this._rightCurrent = preRight - maxWidth;
|
|
56779
|
+
maxHeight = 0;
|
|
56780
|
+
preLeft = this._leftCurrent;
|
|
56781
|
+
let preBottom = this._bottomCurrent;
|
|
56782
|
+
bottomItems.forEach((item, index) => {
|
|
56783
|
+
const layoutRect = this.getItemComputeLayoutRect(item);
|
|
56784
|
+
const rect = item.computeBoundsInRect(layoutRect);
|
|
56785
|
+
item.setLayoutRect(rect);
|
|
56786
|
+
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
56787
|
+
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
56788
|
+
item.setLayoutStartPosition({
|
|
56789
|
+
x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56790
|
+
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
56791
|
+
});
|
|
56792
|
+
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
56793
|
+
preLeft += itemTotalWidth;
|
|
56794
|
+
if (preLeft > limitWidth) {
|
|
56795
|
+
preLeft = this._leftCurrent + itemTotalWidth;
|
|
56796
|
+
preBottom -= maxHeight;
|
|
56797
|
+
maxHeight = itemTotalHeight;
|
|
56798
|
+
item.setLayoutStartPosition({
|
|
56799
|
+
x: this._leftCurrent + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
56800
|
+
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
56801
|
+
});
|
|
56802
|
+
}
|
|
56803
|
+
});
|
|
56804
|
+
this._bottomCurrent = preBottom - maxHeight;
|
|
56805
|
+
}
|
|
56157
56806
|
layoutRegionItems(regionItems, regionRelativeItems) {
|
|
56158
56807
|
let regionRelativeTotalWidth = this._rightCurrent - this._leftCurrent;
|
|
56159
56808
|
let regionRelativeTotalHeight = this._bottomCurrent - this._topCurrent;
|
|
@@ -57304,10 +57953,24 @@
|
|
|
57304
57953
|
}
|
|
57305
57954
|
}
|
|
57306
57955
|
|
|
57307
|
-
|
|
57956
|
+
class ImageMark extends BaseMark {
|
|
57957
|
+
static type = MarkTypeEnum.image;
|
|
57958
|
+
type = ImageMark.type;
|
|
57959
|
+
_getDefaultStyle() {
|
|
57960
|
+
const defaultStyle = {
|
|
57961
|
+
...super._getDefaultStyle(),
|
|
57962
|
+
width: undefined,
|
|
57963
|
+
height: undefined,
|
|
57964
|
+
lineWidth: 0
|
|
57965
|
+
};
|
|
57966
|
+
return defaultStyle;
|
|
57967
|
+
}
|
|
57968
|
+
}
|
|
57969
|
+
|
|
57970
|
+
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
57308
57971
|
Factory.registerRegion('region', Region);
|
|
57309
57972
|
Factory.registerLayout('base', Layout);
|
|
57310
|
-
const version = "1.1.0
|
|
57973
|
+
const version = "1.1.0";
|
|
57311
57974
|
Logger.getInstance(LoggerLevel.Error);
|
|
57312
57975
|
|
|
57313
57976
|
var SeriesMarkNameEnum;
|
|
@@ -60865,7 +61528,7 @@
|
|
|
60865
61528
|
getStatisticFields() {
|
|
60866
61529
|
const fields = [];
|
|
60867
61530
|
if (this.getXAxisHelper()?.getScale) {
|
|
60868
|
-
this._fieldX.forEach(f => {
|
|
61531
|
+
(this._fieldX2 ? [...this._fieldX, this._fieldX2] : this._fieldX).forEach(f => {
|
|
60869
61532
|
const result = { key: f, operations: [] };
|
|
60870
61533
|
if (isContinuous(this.getXAxisHelper().getScale(0).type)) {
|
|
60871
61534
|
result.operations = ['max', 'min'];
|
|
@@ -60877,7 +61540,7 @@
|
|
|
60877
61540
|
});
|
|
60878
61541
|
}
|
|
60879
61542
|
if (this.getYAxisHelper()?.getScale) {
|
|
60880
|
-
this._fieldY.forEach(f => {
|
|
61543
|
+
(this._fieldY2 ? [...this._fieldY, this._fieldY2] : this._fieldY).forEach(f => {
|
|
60881
61544
|
const result = { key: f, operations: [] };
|
|
60882
61545
|
if (isContinuous(this.getYAxisHelper().getScale(0).type)) {
|
|
60883
61546
|
result.operations = ['max', 'min'];
|
|
@@ -60972,14 +61635,8 @@
|
|
|
60972
61635
|
if (isValid(this._spec.direction)) {
|
|
60973
61636
|
this._direction = this._spec.direction;
|
|
60974
61637
|
}
|
|
60975
|
-
|
|
60976
|
-
|
|
60977
|
-
this.setFieldX2(this._spec?.x2Field);
|
|
60978
|
-
}
|
|
60979
|
-
else {
|
|
60980
|
-
this.setFieldX2('x1');
|
|
60981
|
-
this.setFieldY2(this._spec?.y2Field);
|
|
60982
|
-
}
|
|
61638
|
+
this.setFieldX2(this._spec?.x2Field);
|
|
61639
|
+
this.setFieldY2(this._spec?.y2Field);
|
|
60983
61640
|
if (this._stack) {
|
|
60984
61641
|
this.setValueFieldToStack();
|
|
60985
61642
|
}
|
|
@@ -62421,7 +63078,7 @@
|
|
|
62421
63078
|
type: 'waterfallFillTotal',
|
|
62422
63079
|
options: {
|
|
62423
63080
|
indexField: this.getGroupFields()[0],
|
|
62424
|
-
valueField: this.getStackValueField()
|
|
63081
|
+
valueField: this.getStackValueField(),
|
|
62425
63082
|
seriesField: this.getSeriesField(),
|
|
62426
63083
|
seriesFieldName: this._theme.seriesFieldName,
|
|
62427
63084
|
total: this._spec.total
|
|
@@ -62437,7 +63094,7 @@
|
|
|
62437
63094
|
type: 'waterfall',
|
|
62438
63095
|
options: {
|
|
62439
63096
|
indexField: this.getGroupFields()[0],
|
|
62440
|
-
valueField: this.getStackValueField()
|
|
63097
|
+
valueField: this.getStackValueField(),
|
|
62441
63098
|
seriesField: this.getSeriesField(),
|
|
62442
63099
|
seriesFieldName: this._theme.seriesFieldName,
|
|
62443
63100
|
startAs: STACK_FIELD_START,
|
|
@@ -62500,19 +63157,20 @@
|
|
|
62500
63157
|
}
|
|
62501
63158
|
}
|
|
62502
63159
|
_totalPositionX(datum, field, pos = 0.5) {
|
|
62503
|
-
const { dataToPosition } = this._xAxisHelper;
|
|
63160
|
+
const { dataToPosition, getBandwidth } = this._xAxisHelper;
|
|
62504
63161
|
if (this._direction === Direction$2.vertical) {
|
|
62505
63162
|
return (dataToPosition([datum[field]], {
|
|
62506
63163
|
bandPosition: this._bandPosition
|
|
62507
63164
|
}) +
|
|
62508
|
-
|
|
63165
|
+
getBandwidth(0) * 0.5 -
|
|
63166
|
+
this._rectMark.getAttribute('width', datum) * (0.5 - pos));
|
|
62509
63167
|
}
|
|
62510
63168
|
return valueInScaleRange(dataToPosition([datum[field]], {
|
|
62511
63169
|
bandPosition: this._bandPosition
|
|
62512
63170
|
}));
|
|
62513
63171
|
}
|
|
62514
63172
|
_totalPositionY(datum, field, pos = 0.5) {
|
|
62515
|
-
const { dataToPosition } = this._yAxisHelper;
|
|
63173
|
+
const { dataToPosition, getBandwidth } = this._yAxisHelper;
|
|
62516
63174
|
if (this._direction === Direction$2.vertical) {
|
|
62517
63175
|
return valueInScaleRange(dataToPosition([datum[field]], {
|
|
62518
63176
|
bandPosition: this._bandPosition
|
|
@@ -62521,7 +63179,8 @@
|
|
|
62521
63179
|
return (dataToPosition([datum[field]], {
|
|
62522
63180
|
bandPosition: this._bandPosition
|
|
62523
63181
|
}) +
|
|
62524
|
-
|
|
63182
|
+
getBandwidth(0) * 0.5 -
|
|
63183
|
+
this._rectMark.getAttribute('height', datum) * (0.5 - pos));
|
|
62525
63184
|
}
|
|
62526
63185
|
initMarkStyle() {
|
|
62527
63186
|
super.initMarkStyle();
|
|
@@ -75238,9 +75897,9 @@
|
|
|
75238
75897
|
angle: {}
|
|
75239
75898
|
};
|
|
75240
75899
|
function transformAxisLineStyle(lineCfg) {
|
|
75241
|
-
transformComponentStyle(lineCfg);
|
|
75242
|
-
transformComponentStyle(lineCfg.startSymbol);
|
|
75243
|
-
transformComponentStyle(lineCfg.endSymbol);
|
|
75900
|
+
lineCfg = transformComponentStyle(lineCfg);
|
|
75901
|
+
lineCfg.startSymbol = transformComponentStyle(lineCfg.startSymbol);
|
|
75902
|
+
lineCfg.endSymbol = transformComponentStyle(lineCfg.endSymbol);
|
|
75244
75903
|
return lineCfg;
|
|
75245
75904
|
}
|
|
75246
75905
|
function getAxisLabelOffset(axisSpec) {
|
|
@@ -76780,7 +77439,7 @@
|
|
|
76780
77439
|
resultObj[d[state]] = 0;
|
|
76781
77440
|
}
|
|
76782
77441
|
if (!isNil(valueFields[i])) {
|
|
76783
|
-
resultObj[d[state]] += parseFloat(d[valueFields[i]]);
|
|
77442
|
+
resultObj[d[state]] += isNaN(parseFloat(d[valueFields[i]])) ? 1 : parseFloat(d[valueFields[i]]);
|
|
76784
77443
|
}
|
|
76785
77444
|
}
|
|
76786
77445
|
});
|
|
@@ -76945,7 +77604,6 @@
|
|
|
76945
77604
|
const dataCollection = [];
|
|
76946
77605
|
const stateFields = [];
|
|
76947
77606
|
const valueFields = [];
|
|
76948
|
-
let hasValidateValueField = false;
|
|
76949
77607
|
if (this._relatedAxisComponent) {
|
|
76950
77608
|
const originalStateFields = {};
|
|
76951
77609
|
eachSeries(this._regions, s => {
|
|
@@ -76971,19 +77629,12 @@
|
|
|
76971
77629
|
: yAxisHelper;
|
|
76972
77630
|
const valueAxisHelper = stateAxisHelper === xAxisHelper ? yAxisHelper : xAxisHelper;
|
|
76973
77631
|
const isValidateValueAxis = isContinuous(valueAxisHelper.getScale(0).type);
|
|
76974
|
-
if (isValidateValueAxis) {
|
|
76975
|
-
hasValidateValueField = true;
|
|
76976
|
-
}
|
|
76977
77632
|
dataCollection.push(s.getRawData());
|
|
76978
77633
|
const seriesSpec = s.getSpec();
|
|
76979
77634
|
const xFields = array(seriesSpec.xField);
|
|
76980
77635
|
const yFields = array(seriesSpec.yField);
|
|
76981
|
-
const xField = s.coordinate === 'cartesian'
|
|
76982
|
-
|
|
76983
|
-
: seriesSpec.angleField ?? seriesSpec.categoryField;
|
|
76984
|
-
const yField = s.coordinate === 'cartesian'
|
|
76985
|
-
? yFields[yFields.length - 1]
|
|
76986
|
-
: seriesSpec.radiusField ?? seriesSpec.valueField;
|
|
77636
|
+
const xField = s.coordinate === 'cartesian' ? xFields[0] : seriesSpec.angleField ?? seriesSpec.categoryField;
|
|
77637
|
+
const yField = s.coordinate === 'cartesian' ? yFields[0] : seriesSpec.radiusField ?? seriesSpec.valueField;
|
|
76987
77638
|
originalStateFields[s.id] =
|
|
76988
77639
|
s.type === 'link' ? 'from_xField' : stateAxisHelper === xAxisHelper ? xField : yField;
|
|
76989
77640
|
stateFields.push(originalStateFields[s.id]);
|
|
@@ -76998,7 +77649,7 @@
|
|
|
76998
77649
|
this._originalStateFields = originalStateFields;
|
|
76999
77650
|
}
|
|
77000
77651
|
else {
|
|
77001
|
-
|
|
77652
|
+
isNil(this._spec.valueField);
|
|
77002
77653
|
eachSeries(this._regions, s => {
|
|
77003
77654
|
dataCollection.push(s.getRawData());
|
|
77004
77655
|
stateFields.push(this._field);
|
|
@@ -77024,7 +77675,7 @@
|
|
|
77024
77675
|
},
|
|
77025
77676
|
output: {
|
|
77026
77677
|
stateField: this._stateField,
|
|
77027
|
-
valueField:
|
|
77678
|
+
valueField: this._valueField
|
|
77028
77679
|
}
|
|
77029
77680
|
}
|
|
77030
77681
|
}, false);
|
|
@@ -77394,6 +78045,8 @@
|
|
|
77394
78045
|
_valueScale;
|
|
77395
78046
|
_backgroundSize;
|
|
77396
78047
|
_middleHandlerSize;
|
|
78048
|
+
_startHandlerSize;
|
|
78049
|
+
_endHandlerSize;
|
|
77397
78050
|
static createComponent(spec, options) {
|
|
77398
78051
|
const compSpec = spec.dataZoom || options.defaultSpec;
|
|
77399
78052
|
if (isNil(compSpec)) {
|
|
@@ -77434,6 +78087,10 @@
|
|
|
77434
78087
|
? this._height - this._middleHandlerSize
|
|
77435
78088
|
: this._width - this._middleHandlerSize;
|
|
77436
78089
|
}
|
|
78090
|
+
const startHandlerVisble = this._spec.startHandler.style.visible ?? true;
|
|
78091
|
+
const endHandlerVisble = this._spec.endHandler.style.visible ?? true;
|
|
78092
|
+
this._startHandlerSize = startHandlerVisble ? this._spec.startHandler.style.size : 0;
|
|
78093
|
+
this._endHandlerSize = endHandlerVisble ? this._spec.endHandler.style.size : 0;
|
|
77437
78094
|
}
|
|
77438
78095
|
onLayoutEnd(ctx) {
|
|
77439
78096
|
this._updateScaleRange();
|
|
@@ -77448,19 +78105,20 @@
|
|
|
77448
78105
|
}
|
|
77449
78106
|
}
|
|
77450
78107
|
_updateScaleRange() {
|
|
78108
|
+
const handlerSize = (this._startHandlerSize + this._endHandlerSize) / 2;
|
|
77451
78109
|
if (!this._stateScale || !this._valueScale) {
|
|
77452
78110
|
return;
|
|
77453
78111
|
}
|
|
77454
78112
|
if (this._isHorizontal) {
|
|
77455
|
-
this._stateScale.range([0, this._computeWidth()]);
|
|
78113
|
+
this._stateScale.range([0, this._computeWidth() - handlerSize]);
|
|
77456
78114
|
this._valueScale.range([this._computeHeight() - this._middleHandlerSize, 0]);
|
|
77457
78115
|
}
|
|
77458
78116
|
else if (this.layoutOrient === 'left') {
|
|
77459
|
-
this._stateScale.range([0, this._computeHeight()]);
|
|
78117
|
+
this._stateScale.range([0, this._computeHeight() - handlerSize]);
|
|
77460
78118
|
this._valueScale.range([this._computeWidth() - this._middleHandlerSize, 0]);
|
|
77461
78119
|
}
|
|
77462
78120
|
else {
|
|
77463
|
-
this._stateScale.range([0, this._computeHeight()]);
|
|
78121
|
+
this._stateScale.range([0, this._computeHeight() - handlerSize]);
|
|
77464
78122
|
this._valueScale.range([0, this._computeWidth() - this._middleHandlerSize]);
|
|
77465
78123
|
}
|
|
77466
78124
|
if (this._component) {
|
|
@@ -77501,29 +78159,33 @@
|
|
|
77501
78159
|
if (this._isHorizontal) {
|
|
77502
78160
|
return this._backgroundSize + this._middleHandlerSize;
|
|
77503
78161
|
}
|
|
77504
|
-
return this.getLayoutRect().height;
|
|
78162
|
+
return this.getLayoutRect().height - (this._startHandlerSize + this._endHandlerSize) / 2;
|
|
77505
78163
|
}
|
|
77506
78164
|
_dataToPositionX = (datum) => {
|
|
77507
78165
|
const offsetLeft = this._orient === 'left' ? this._middleHandlerSize : 0;
|
|
78166
|
+
const offsetHandler = this._isHorizontal ? this._startHandlerSize / 2 : 0;
|
|
77508
78167
|
const xScale = this._isHorizontal ? this._stateScale : this._valueScale;
|
|
77509
|
-
return xScale.scale(datum[this._stateField]) + this.getLayoutStartPoint().x + offsetLeft;
|
|
78168
|
+
return xScale.scale(datum[this._stateField]) + this.getLayoutStartPoint().x + offsetLeft + offsetHandler;
|
|
77510
78169
|
};
|
|
77511
78170
|
_dataToPositionX2 = (datum) => {
|
|
77512
78171
|
const offsetLeft = this._orient === 'left' ? this._middleHandlerSize : 0;
|
|
78172
|
+
const offsetHandler = this._isHorizontal ? this._startHandlerSize / 2 : 0;
|
|
77513
78173
|
const xScale = this._isHorizontal ? this._stateScale : this._valueScale;
|
|
77514
78174
|
const min = xScale.domain()[0];
|
|
77515
|
-
return xScale.scale(min) + this.getLayoutStartPoint().x + offsetLeft;
|
|
78175
|
+
return xScale.scale(min) + this.getLayoutStartPoint().x + offsetLeft + offsetHandler;
|
|
77516
78176
|
};
|
|
77517
78177
|
_dataToPositionY = (datum) => {
|
|
77518
78178
|
const offsetTop = this._isHorizontal ? this._middleHandlerSize : 0;
|
|
78179
|
+
const offsetHandler = this._isHorizontal ? 0 : this._startHandlerSize / 2;
|
|
77519
78180
|
const yScale = this._isHorizontal ? this._valueScale : this._stateScale;
|
|
77520
|
-
return yScale.scale(datum[this._valueField]) + this.getLayoutStartPoint().y + offsetTop;
|
|
78181
|
+
return yScale.scale(datum[this._valueField]) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
|
|
77521
78182
|
};
|
|
77522
78183
|
_dataToPositionY2 = (datum) => {
|
|
77523
78184
|
const offsetTop = this._isHorizontal ? this._middleHandlerSize : 0;
|
|
78185
|
+
const offsetHandler = this._isHorizontal ? 0 : this._startHandlerSize / 2;
|
|
77524
78186
|
const yScale = this._isHorizontal ? this._valueScale : this._stateScale;
|
|
77525
78187
|
const min = yScale.domain()[0];
|
|
77526
|
-
return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop;
|
|
78188
|
+
return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
|
|
77527
78189
|
};
|
|
77528
78190
|
_createOrUpdateComponent() {
|
|
77529
78191
|
if (!this._component) {
|
|
@@ -79569,8 +80231,8 @@
|
|
|
79569
80231
|
space: spec.label.space,
|
|
79570
80232
|
inside: spec.label.inside,
|
|
79571
80233
|
style: isFunction(spec.label.style)
|
|
79572
|
-
? (datum, index) => {
|
|
79573
|
-
const style = this._preprocessSpec(spec.label.style(datum.rawValue, index, datum));
|
|
80234
|
+
? (datum, index, data, layer) => {
|
|
80235
|
+
const style = this._preprocessSpec(spec.label.style(datum.rawValue, index, datum, data, layer));
|
|
79574
80236
|
return transformToGraphic(this._preprocessSpec(merge$2({}, this._theme.label?.style, style)));
|
|
79575
80237
|
}
|
|
79576
80238
|
: transformToGraphic(spec.label.style),
|
|
@@ -79579,7 +80241,7 @@
|
|
|
79579
80241
|
return spec.label.formatMethod(datum.rawValue, datum);
|
|
79580
80242
|
}
|
|
79581
80243
|
: null,
|
|
79582
|
-
state:
|
|
80244
|
+
state: transformAxisLabelStateStyle(spec.label.state),
|
|
79583
80245
|
autoRotate: !!spec.label.autoRotate,
|
|
79584
80246
|
autoHide: !!spec.label.autoHide,
|
|
79585
80247
|
autoLimit: !!spec.label.autoLimit,
|
|
@@ -79595,8 +80257,8 @@
|
|
|
79595
80257
|
inside: spec.tick.inside,
|
|
79596
80258
|
alignWithLabel: spec.tick.alignWithLabel,
|
|
79597
80259
|
style: isFunction(spec.tick.style)
|
|
79598
|
-
? (datum,
|
|
79599
|
-
const style = this._preprocessSpec(spec.tick.style(
|
|
80260
|
+
? (value, index, datum, data) => {
|
|
80261
|
+
const style = this._preprocessSpec(spec.tick.style(value, index, datum, data));
|
|
79600
80262
|
return transformToGraphic(this._preprocessSpec(merge$2({}, this._theme.tick?.style, style)));
|
|
79601
80263
|
}
|
|
79602
80264
|
: transformToGraphic(spec.tick.style),
|
|
@@ -79607,7 +80269,12 @@
|
|
|
79607
80269
|
length: spec.subTick.tickSize,
|
|
79608
80270
|
inside: spec.subTick.inside,
|
|
79609
80271
|
count: spec.subTick.tickCount,
|
|
79610
|
-
style:
|
|
80272
|
+
style: isFunction(spec.subTick.style)
|
|
80273
|
+
? (value, index, datum, data) => {
|
|
80274
|
+
const style = spec.subTick.style(value, index, datum, data);
|
|
80275
|
+
return transformToGraphic(merge$2({}, this._theme.subTick?.style, style));
|
|
80276
|
+
}
|
|
80277
|
+
: transformToGraphic(spec.subTick.style),
|
|
79611
80278
|
state: transformStateStyle(spec.subTick.state)
|
|
79612
80279
|
},
|
|
79613
80280
|
grid: {
|
|
@@ -79960,7 +80627,9 @@
|
|
|
79960
80627
|
}
|
|
79961
80628
|
else {
|
|
79962
80629
|
if (isXAxis(this.orient)) {
|
|
79963
|
-
field = s.
|
|
80630
|
+
field = s.fieldX2
|
|
80631
|
+
? [...s.fieldX, s.fieldX2]
|
|
80632
|
+
: s.fieldX;
|
|
79964
80633
|
}
|
|
79965
80634
|
else if (isZAxis(this.orient)) {
|
|
79966
80635
|
field = s.fieldZ;
|
|
@@ -81191,10 +81860,10 @@
|
|
|
81191
81860
|
if (!isEmpty(item.focusIconStyle)) {
|
|
81192
81861
|
transformToGraphic(item.focusIconStyle);
|
|
81193
81862
|
}
|
|
81194
|
-
transformComponentStyle(item.shape);
|
|
81195
|
-
transformComponentStyle(item.label);
|
|
81196
|
-
transformComponentStyle(item.value);
|
|
81197
|
-
transformComponentStyle(item.background);
|
|
81863
|
+
item.shape = transformComponentStyle(item.shape);
|
|
81864
|
+
item.label = transformComponentStyle(item.label);
|
|
81865
|
+
item.value = transformComponentStyle(item.value);
|
|
81866
|
+
item.background = transformComponentStyle(item.background);
|
|
81198
81867
|
if (isPercent(item.maxWidth)) {
|
|
81199
81868
|
item.maxWidth = (Number(item.maxWidth.substring(0, item.maxWidth.length - 1)) * rect.width) / 100;
|
|
81200
81869
|
}
|
|
@@ -87950,6 +88619,7 @@
|
|
|
87950
88619
|
}
|
|
87951
88620
|
}
|
|
87952
88621
|
|
|
88622
|
+
loadPoptip({});
|
|
87953
88623
|
VChart.useChart([
|
|
87954
88624
|
AreaChart,
|
|
87955
88625
|
LineChart,
|