@visactor/vrender-components 0.17.0-alpha.3 → 0.17.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/data-zoom/config.d.ts +0 -6
- package/cjs/data-zoom/config.js +1 -7
- package/cjs/data-zoom/config.js.map +1 -1
- package/cjs/data-zoom/data-zoom.d.ts +3 -2
- package/cjs/data-zoom/data-zoom.js +19 -15
- package/cjs/data-zoom/data-zoom.js.map +1 -1
- package/cjs/data-zoom/type.d.ts +6 -0
- package/cjs/data-zoom/type.js +6 -1
- package/cjs/data-zoom/type.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/label/animate/animate.d.ts +8 -2
- package/cjs/label/animate/animate.js +37 -3
- package/cjs/label/animate/animate.js.map +1 -1
- package/cjs/label/area.d.ts +15 -0
- package/cjs/label/area.js +41 -0
- package/cjs/label/area.js.map +1 -0
- package/cjs/label/base.d.ts +7 -4
- package/cjs/label/base.js +37 -42
- package/cjs/label/base.js.map +1 -1
- package/cjs/label/dataLabel.js +8 -5
- package/cjs/label/dataLabel.js.map +1 -1
- package/cjs/label/line.d.ts +1 -1
- package/cjs/label/line.js +2 -9
- package/cjs/label/line.js.map +1 -1
- package/cjs/label/type.d.ts +22 -2
- package/cjs/label/type.js +1 -2
- package/cjs/label/type.js.map +1 -1
- package/cjs/label/util.d.ts +4 -0
- package/cjs/label/util.js +14 -2
- package/cjs/label/util.js.map +1 -1
- package/cjs/legend/discrete/discrete.d.ts +3 -0
- package/cjs/legend/discrete/discrete.js +45 -38
- package/cjs/legend/discrete/discrete.js.map +1 -1
- package/cjs/legend/discrete/type.d.ts +1 -0
- package/cjs/legend/discrete/type.js.map +1 -1
- package/cjs/link-path/type.js +1 -1
- package/cjs/scrollbar/scrollbar.js.map +1 -1
- package/dist/index.js +354 -240
- package/dist/index.min.js +1 -1
- package/es/data-zoom/config.d.ts +0 -6
- package/es/data-zoom/config.js +0 -7
- package/es/data-zoom/config.js.map +1 -1
- package/es/data-zoom/data-zoom.d.ts +3 -2
- package/es/data-zoom/data-zoom.js +10 -4
- package/es/data-zoom/data-zoom.js.map +1 -1
- package/es/data-zoom/type.d.ts +6 -0
- package/es/data-zoom/type.js +6 -1
- package/es/data-zoom/type.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/label/animate/animate.d.ts +8 -2
- package/es/label/animate/animate.js +35 -0
- package/es/label/animate/animate.js.map +1 -1
- package/es/label/area.d.ts +15 -0
- package/es/label/area.js +39 -0
- package/es/label/area.js.map +1 -0
- package/es/label/base.d.ts +7 -4
- package/es/label/base.js +39 -44
- package/es/label/base.js.map +1 -1
- package/es/label/dataLabel.js +11 -4
- package/es/label/dataLabel.js.map +1 -1
- package/es/label/line.d.ts +1 -1
- package/es/label/line.js +3 -8
- package/es/label/line.js.map +1 -1
- package/es/label/type.d.ts +22 -2
- package/es/label/type.js +1 -2
- package/es/label/type.js.map +1 -1
- package/es/label/util.d.ts +4 -0
- package/es/label/util.js +13 -1
- package/es/label/util.js.map +1 -1
- package/es/legend/discrete/discrete.d.ts +3 -0
- package/es/legend/discrete/discrete.js +44 -36
- package/es/legend/discrete/discrete.js.map +1 -1
- package/es/legend/discrete/type.d.ts +1 -0
- package/es/legend/discrete/type.js.map +1 -1
- package/es/link-path/type.js +1 -1
- package/es/scrollbar/scrollbar.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1479,7 +1479,7 @@
|
|
|
1479
1479
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
1480
1480
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1481
1481
|
},
|
|
1482
|
-
__metadata$
|
|
1482
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
1483
1483
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
1484
1484
|
},
|
|
1485
1485
|
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -1492,7 +1492,7 @@
|
|
|
1492
1492
|
_classCallCheck(this, DefaultGlobal);
|
|
1493
1493
|
this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
1494
1494
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
1495
|
-
}, this.measureTextMethod = "native", this.optimizeVisible = !1
|
|
1495
|
+
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
1496
1496
|
}
|
|
1497
1497
|
_createClass(DefaultGlobal, [{
|
|
1498
1498
|
key: "env",
|
|
@@ -1722,7 +1722,7 @@
|
|
|
1722
1722
|
}]);
|
|
1723
1723
|
return DefaultGlobal;
|
|
1724
1724
|
}();
|
|
1725
|
-
DefaultGlobal = __decorate$G([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(EnvContribution)), __metadata$
|
|
1725
|
+
DefaultGlobal = __decorate$G([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(EnvContribution)), __metadata$s("design:paramtypes", [Object])], DefaultGlobal);
|
|
1726
1726
|
|
|
1727
1727
|
var circleThreshold = vutils.tau - 1e-8;
|
|
1728
1728
|
var BoundsContext = /*#__PURE__*/function () {
|
|
@@ -4113,7 +4113,7 @@
|
|
|
4113
4113
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
4114
4114
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4115
4115
|
},
|
|
4116
|
-
__metadata$
|
|
4116
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
4117
4117
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
4118
4118
|
},
|
|
4119
4119
|
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -4198,7 +4198,7 @@
|
|
|
4198
4198
|
}]);
|
|
4199
4199
|
return DefaultGraphicUtil;
|
|
4200
4200
|
}();
|
|
4201
|
-
DefaultGraphicUtil = __decorate$D([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$
|
|
4201
|
+
DefaultGraphicUtil = __decorate$D([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
4202
4202
|
var TransformMode;
|
|
4203
4203
|
!function (TransformMode) {
|
|
4204
4204
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -4275,7 +4275,7 @@
|
|
|
4275
4275
|
}]);
|
|
4276
4276
|
return DefaultTransformUtil;
|
|
4277
4277
|
}();
|
|
4278
|
-
DefaultTransformUtil = __decorate$D([injectable(), __metadata$
|
|
4278
|
+
DefaultTransformUtil = __decorate$D([injectable(), __metadata$r("design:paramtypes", [])], DefaultTransformUtil);
|
|
4279
4279
|
|
|
4280
4280
|
var defaultThemeObj = {
|
|
4281
4281
|
arc: DefaultArcAttribute,
|
|
@@ -6555,19 +6555,15 @@
|
|
|
6555
6555
|
key: "getOffsetXY",
|
|
6556
6556
|
value: function getOffsetXY(attr) {
|
|
6557
6557
|
var includeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6558
|
+
var _a, _b;
|
|
6558
6559
|
var _this$attribute = this.attribute,
|
|
6559
6560
|
_this$attribute$dx = _this$attribute.dx,
|
|
6560
6561
|
dx = _this$attribute$dx === void 0 ? attr.dx : _this$attribute$dx,
|
|
6561
6562
|
_this$attribute$dy = _this$attribute.dy,
|
|
6562
6563
|
dy = _this$attribute$dy === void 0 ? attr.dy : _this$attribute$dy;
|
|
6563
6564
|
if (includeScroll && this.parent) {
|
|
6564
|
-
var
|
|
6565
|
-
|
|
6566
|
-
_this$parent$attribut2 = _this$parent$attribut.scrollX,
|
|
6567
|
-
scrollX = _this$parent$attribut2 === void 0 ? groupTheme.scrollX : _this$parent$attribut2,
|
|
6568
|
-
_this$parent$attribut3 = _this$parent$attribut.scrollY,
|
|
6569
|
-
scrollY = _this$parent$attribut3 === void 0 ? groupTheme.scrollY : _this$parent$attribut3;
|
|
6570
|
-
point.x = dx + scrollX, point.y = dy + scrollY;
|
|
6565
|
+
var attribute = this.parent.attribute;
|
|
6566
|
+
point.x = dx + (null !== (_a = attribute.scrollX) && void 0 !== _a ? _a : 0), point.y = dy + (null !== (_b = attribute.scrollY) && void 0 !== _b ? _b : 0);
|
|
6571
6567
|
} else point.x = dx, point.y = dy;
|
|
6572
6568
|
return point;
|
|
6573
6569
|
}
|
|
@@ -7090,11 +7086,11 @@
|
|
|
7090
7086
|
value: function doUpdateGlobalMatrix() {
|
|
7091
7087
|
if (this.parent) {
|
|
7092
7088
|
this._globalTransMatrix.multiply(this.transMatrix.a, this.transMatrix.b, this.transMatrix.c, this.transMatrix.d, this.transMatrix.e, this.transMatrix.f);
|
|
7093
|
-
var _this$parent$
|
|
7094
|
-
_this$parent$
|
|
7095
|
-
scrollX = _this$parent$
|
|
7096
|
-
_this$parent$
|
|
7097
|
-
scrollY = _this$parent$
|
|
7089
|
+
var _this$parent$attribut = this.parent.attribute,
|
|
7090
|
+
_this$parent$attribut2 = _this$parent$attribut.scrollX,
|
|
7091
|
+
scrollX = _this$parent$attribut2 === void 0 ? 0 : _this$parent$attribut2,
|
|
7092
|
+
_this$parent$attribut3 = _this$parent$attribut.scrollY,
|
|
7093
|
+
scrollY = _this$parent$attribut3 === void 0 ? 0 : _this$parent$attribut3;
|
|
7098
7094
|
this._globalTransMatrix.translate(scrollX, scrollY);
|
|
7099
7095
|
}
|
|
7100
7096
|
}
|
|
@@ -8088,7 +8084,7 @@
|
|
|
8088
8084
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
8089
8085
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8090
8086
|
},
|
|
8091
|
-
__metadata$
|
|
8087
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
8092
8088
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
8093
8089
|
};
|
|
8094
8090
|
var DefaultLayerService = /*#__PURE__*/function () {
|
|
@@ -8168,7 +8164,7 @@
|
|
|
8168
8164
|
}]);
|
|
8169
8165
|
return DefaultLayerService;
|
|
8170
8166
|
}();
|
|
8171
|
-
DefaultLayerService = __decorate$C([injectable(), __metadata$
|
|
8167
|
+
DefaultLayerService = __decorate$C([injectable(), __metadata$q("design:paramtypes", [])], DefaultLayerService);
|
|
8172
8168
|
|
|
8173
8169
|
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
8174
8170
|
var d,
|
|
@@ -8177,7 +8173,7 @@
|
|
|
8177
8173
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
8178
8174
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8179
8175
|
},
|
|
8180
|
-
__metadata$
|
|
8176
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
8181
8177
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
8182
8178
|
};
|
|
8183
8179
|
var VWindow = Symbol["for"]("VWindow");
|
|
@@ -8330,7 +8326,7 @@
|
|
|
8330
8326
|
}]);
|
|
8331
8327
|
return DefaultWindow;
|
|
8332
8328
|
}();
|
|
8333
|
-
DefaultWindow = __decorate$B([injectable(), __metadata$
|
|
8329
|
+
DefaultWindow = __decorate$B([injectable(), __metadata$p("design:paramtypes", [])], DefaultWindow);
|
|
8334
8330
|
|
|
8335
8331
|
var coreModule = new ContainerModule(function (bind) {
|
|
8336
8332
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -10101,32 +10097,37 @@
|
|
|
10101
10097
|
}(BaseSymbol);
|
|
10102
10098
|
var close$1 = new CloseSymbol();
|
|
10103
10099
|
|
|
10104
|
-
function
|
|
10100
|
+
function rectSizeArray(ctx, size, x, y) {
|
|
10105
10101
|
return ctx.rect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]), !1;
|
|
10106
10102
|
}
|
|
10103
|
+
function rectSize(ctx, size, x, y) {
|
|
10104
|
+
var w = size,
|
|
10105
|
+
h = size / 2;
|
|
10106
|
+
return ctx.rect(x - w / 2, y - h / 2, w, h), !1;
|
|
10107
|
+
}
|
|
10107
10108
|
var RectSymbol = /*#__PURE__*/function (_BaseSymbol) {
|
|
10108
10109
|
_inherits(RectSymbol, _BaseSymbol);
|
|
10109
10110
|
var _super = _createSuper(RectSymbol);
|
|
10110
10111
|
function RectSymbol() {
|
|
10111
10112
|
var _this;
|
|
10112
10113
|
_classCallCheck(this, RectSymbol);
|
|
10113
|
-
_this = _super.apply(this, arguments), _this.type = "rect", _this.pathStr = "M-0.5,-0.
|
|
10114
|
+
_this = _super.apply(this, arguments), _this.type = "rect", _this.pathStr = "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z";
|
|
10114
10115
|
return _this;
|
|
10115
10116
|
}
|
|
10116
10117
|
_createClass(RectSymbol, [{
|
|
10117
10118
|
key: "draw",
|
|
10118
10119
|
value: function draw(ctx, size, x, y) {
|
|
10119
|
-
return
|
|
10120
|
+
return vutils.isNumber(size) ? rectSize(ctx, size, x, y) : rectSizeArray(ctx, size, x, y);
|
|
10120
10121
|
}
|
|
10121
10122
|
}, {
|
|
10122
10123
|
key: "drawOffset",
|
|
10123
10124
|
value: function drawOffset(ctx, size, x, y, offset) {
|
|
10124
|
-
return
|
|
10125
|
+
return vutils.isNumber(size) ? rectSize(ctx, size + 2 * offset, x, y) : rectSizeArray(ctx, [size[0] + 2 * offset, size[1] + 2 * offset], x, y);
|
|
10125
10126
|
}
|
|
10126
10127
|
}]);
|
|
10127
10128
|
return RectSymbol;
|
|
10128
10129
|
}(BaseSymbol);
|
|
10129
|
-
var rect
|
|
10130
|
+
var rect = new RectSymbol();
|
|
10130
10131
|
|
|
10131
10132
|
var tempBounds = new vutils.AABBBounds();
|
|
10132
10133
|
var CustomSymbolClass = /*#__PURE__*/function () {
|
|
@@ -10165,7 +10166,7 @@
|
|
|
10165
10166
|
return CustomSymbolClass;
|
|
10166
10167
|
}();
|
|
10167
10168
|
|
|
10168
|
-
var builtinSymbols = [circle$1, cross$1, diamond$1, square$1, thinTriangle$1, triangle, star$1, arrow$1, wedge$1, stroke$1, wye$1, triangleLeft, triangleRight, triangleUp, triangleDown, arrow2Left$1, arrow2Right$1, arrow2Up$1, arrow2Down$1, rect
|
|
10169
|
+
var builtinSymbols = [circle$1, cross$1, diamond$1, square$1, thinTriangle$1, triangle, star$1, arrow$1, wedge$1, stroke$1, wye$1, triangleLeft, triangleRight, triangleUp, triangleDown, arrow2Left$1, arrow2Right$1, arrow2Up$1, arrow2Down$1, rect, lineV$1, lineH$1, close$1];
|
|
10169
10170
|
var builtinSymbolsMap = {};
|
|
10170
10171
|
builtinSymbols.forEach(function (symbol) {
|
|
10171
10172
|
builtinSymbolsMap[symbol.type] = symbol;
|
|
@@ -10173,7 +10174,6 @@
|
|
|
10173
10174
|
var builtInSymbolStrMap = {
|
|
10174
10175
|
arrowLeft: "M 0.25 -0.5 L -0.25 0 l 0.5 0.5",
|
|
10175
10176
|
arrowRight: "M -0.25 -0.5 l 0.5 0.5 l -0.5 0.5",
|
|
10176
|
-
rect: "M -0.5,0.25 L 0.5,0.25 L 0.5,-0.25,L -0.5,-0.25 Z",
|
|
10177
10177
|
rectRound: "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",
|
|
10178
10178
|
roundLine: "M 1.2392 -0.258 L -1.3432 -0.258 C -1.4784 -0.258 -1.588 -0.1436 -1.588 -0.002 c 0 0.1416 0.1096 0.256 0.2448 0.256 l 2.5824 0 c 0.1352 0 0.2448 -0.1144 0.2448 -0.256 C 1.484 -0.1436 1.3744 -0.258 1.2392 -0.258 z"
|
|
10179
10179
|
};
|
|
@@ -11244,7 +11244,8 @@
|
|
|
11244
11244
|
var _this2 = this;
|
|
11245
11245
|
var _a;
|
|
11246
11246
|
var _this$attribute = this.attribute,
|
|
11247
|
-
|
|
11247
|
+
_this$attribute$textC = _this$attribute.textConfig,
|
|
11248
|
+
textConfig = _this$attribute$textC === void 0 ? [] : _this$attribute$textC,
|
|
11248
11249
|
maxWidth = _this$attribute.maxWidth,
|
|
11249
11250
|
maxHeight = _this$attribute.maxHeight,
|
|
11250
11251
|
width = _this$attribute.width,
|
|
@@ -11972,7 +11973,7 @@
|
|
|
11972
11973
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
11973
11974
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11974
11975
|
},
|
|
11975
|
-
__metadata$
|
|
11976
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
11976
11977
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11977
11978
|
},
|
|
11978
11979
|
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -12602,7 +12603,7 @@
|
|
|
12602
12603
|
}]);
|
|
12603
12604
|
return DefaultGraphicService;
|
|
12604
12605
|
}();
|
|
12605
|
-
DefaultGraphicService = __decorate$A([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$
|
|
12606
|
+
DefaultGraphicService = __decorate$A([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$o("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12606
12607
|
|
|
12607
12608
|
var ShadowRoot = /*#__PURE__*/function (_Group) {
|
|
12608
12609
|
_inherits(ShadowRoot, _Group);
|
|
@@ -12724,6 +12725,12 @@
|
|
|
12724
12725
|
}
|
|
12725
12726
|
createRichText({});
|
|
12726
12727
|
|
|
12728
|
+
var result = {
|
|
12729
|
+
x: 0,
|
|
12730
|
+
y: 0,
|
|
12731
|
+
z: 0,
|
|
12732
|
+
lastModelMatrix: null
|
|
12733
|
+
};
|
|
12727
12734
|
var BaseRender = /*#__PURE__*/function () {
|
|
12728
12735
|
function BaseRender() {
|
|
12729
12736
|
_classCallCheck(this, BaseRender);
|
|
@@ -12790,8 +12797,7 @@
|
|
|
12790
12797
|
key: "transform",
|
|
12791
12798
|
value: function transform(graphic, graphicAttribute, context) {
|
|
12792
12799
|
var use3dMatrixIn3dMode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
|
12793
|
-
var
|
|
12794
|
-
_graphic$attribute2 = graphic.attribute,
|
|
12800
|
+
var _graphic$attribute2 = graphic.attribute,
|
|
12795
12801
|
_graphic$attribute2$x = _graphic$attribute2.x,
|
|
12796
12802
|
x = _graphic$attribute2$x === void 0 ? graphicAttribute.x : _graphic$attribute2$x,
|
|
12797
12803
|
_graphic$attribute2$y = _graphic$attribute2.y,
|
|
@@ -12805,16 +12811,11 @@
|
|
|
12805
12811
|
_graphic$attribute2$a = _graphic$attribute2.angle,
|
|
12806
12812
|
angle = _graphic$attribute2$a === void 0 ? graphicAttribute.angle : _graphic$attribute2$a,
|
|
12807
12813
|
postMatrix = _graphic$attribute2.postMatrix,
|
|
12808
|
-
onlyTranslate = transMatrix.onlyTranslate() && !postMatrix,
|
|
12809
12814
|
lastModelMatrix = context.modelMatrix,
|
|
12810
|
-
camera = context.camera
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
z: z,
|
|
12815
|
-
lastModelMatrix: lastModelMatrix
|
|
12816
|
-
},
|
|
12817
|
-
shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic));
|
|
12815
|
+
camera = context.camera;
|
|
12816
|
+
result.x = x, result.y = y, result.z = z, result.lastModelMatrix = lastModelMatrix;
|
|
12817
|
+
var shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic)),
|
|
12818
|
+
onlyTranslate = shouldTransform3d ? graphic.transMatrix.onlyTranslate() && !postMatrix : 1 === scaleX && 1 === scaleY && 0 === angle && !postMatrix;
|
|
12818
12819
|
if (shouldTransform3d) {
|
|
12819
12820
|
var nextModelMatrix = mat4Allocate.allocate(),
|
|
12820
12821
|
modelMatrix = mat4Allocate.allocate();
|
|
@@ -12988,7 +12989,7 @@
|
|
|
12988
12989
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
12989
12990
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12990
12991
|
},
|
|
12991
|
-
__metadata$
|
|
12992
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
12992
12993
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
12993
12994
|
},
|
|
12994
12995
|
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13041,7 +13042,7 @@
|
|
|
13041
13042
|
}]);
|
|
13042
13043
|
return DefaultBaseInteractiveRenderContribution;
|
|
13043
13044
|
}();
|
|
13044
|
-
DefaultBaseInteractiveRenderContribution = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(InteractiveSubRenderContribution)), __metadata$
|
|
13045
|
+
DefaultBaseInteractiveRenderContribution = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(InteractiveSubRenderContribution)), __metadata$n("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
13045
13046
|
var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
13046
13047
|
function DefaultBaseTextureRenderContribution() {
|
|
13047
13048
|
_classCallCheck(this, DefaultBaseTextureRenderContribution);
|
|
@@ -13661,7 +13662,7 @@
|
|
|
13661
13662
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
13662
13663
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13663
13664
|
},
|
|
13664
|
-
__metadata$
|
|
13665
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
13665
13666
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13666
13667
|
},
|
|
13667
13668
|
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13834,7 +13835,7 @@
|
|
|
13834
13835
|
}]);
|
|
13835
13836
|
return DefaultCanvasArcRender;
|
|
13836
13837
|
}(BaseRender);
|
|
13837
|
-
DefaultCanvasArcRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(ArcRenderContribution)), __metadata$
|
|
13838
|
+
DefaultCanvasArcRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(ArcRenderContribution)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
13838
13839
|
|
|
13839
13840
|
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13840
13841
|
var d,
|
|
@@ -13843,7 +13844,7 @@
|
|
|
13843
13844
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
13844
13845
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13845
13846
|
},
|
|
13846
|
-
__metadata$
|
|
13847
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
13847
13848
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13848
13849
|
},
|
|
13849
13850
|
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13892,7 +13893,7 @@
|
|
|
13892
13893
|
}]);
|
|
13893
13894
|
return DefaultCanvasCircleRender;
|
|
13894
13895
|
}(BaseRender);
|
|
13895
|
-
DefaultCanvasCircleRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(CircleRenderContribution)), __metadata$
|
|
13896
|
+
DefaultCanvasCircleRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(CircleRenderContribution)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
13896
13897
|
|
|
13897
13898
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
13898
13899
|
var _a;
|
|
@@ -14424,7 +14425,7 @@
|
|
|
14424
14425
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
14425
14426
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14426
14427
|
},
|
|
14427
|
-
__metadata$
|
|
14428
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
14428
14429
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14429
14430
|
},
|
|
14430
14431
|
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14697,7 +14698,7 @@
|
|
|
14697
14698
|
}]);
|
|
14698
14699
|
return DefaultCanvasAreaRender;
|
|
14699
14700
|
}(BaseRender);
|
|
14700
|
-
DefaultCanvasAreaRender = __decorate$v([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(AreaRenderContribution)), __metadata$
|
|
14701
|
+
DefaultCanvasAreaRender = __decorate$v([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(AreaRenderContribution)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
14701
14702
|
|
|
14702
14703
|
var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
14703
14704
|
var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -14709,7 +14710,7 @@
|
|
|
14709
14710
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
14710
14711
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14711
14712
|
},
|
|
14712
|
-
__metadata$
|
|
14713
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
14713
14714
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14714
14715
|
},
|
|
14715
14716
|
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14729,14 +14730,14 @@
|
|
|
14729
14730
|
_createClass(DefaultCanvasPathRender, [{
|
|
14730
14731
|
key: "drawShape",
|
|
14731
14732
|
value: function drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14732
|
-
var _a, _b;
|
|
14733
|
-
var pathAttribute = getTheme(path, null == params ? void 0 : params.theme).path,
|
|
14733
|
+
var _a, _b, _c;
|
|
14734
|
+
var pathAttribute = null !== (_a = this.tempTheme) && void 0 !== _a ? _a : getTheme(path, null == params ? void 0 : params.theme).path,
|
|
14734
14735
|
_path$attribute = path.attribute,
|
|
14735
14736
|
_path$attribute$x = _path$attribute.x,
|
|
14736
14737
|
originX = _path$attribute$x === void 0 ? pathAttribute.x : _path$attribute$x,
|
|
14737
14738
|
_path$attribute$y = _path$attribute.y,
|
|
14738
14739
|
originY = _path$attribute$y === void 0 ? pathAttribute.y : _path$attribute$y,
|
|
14739
|
-
z = null !== (
|
|
14740
|
+
z = null !== (_b = this.z) && void 0 !== _b ? _b : 0,
|
|
14740
14741
|
data = this.valid(path, pathAttribute, fillCb, strokeCb);
|
|
14741
14742
|
if (!data) return;
|
|
14742
14743
|
var fVisible = data.fVisible,
|
|
@@ -14744,7 +14745,7 @@
|
|
|
14744
14745
|
doFill = data.doFill,
|
|
14745
14746
|
doStroke = data.doStroke;
|
|
14746
14747
|
if (context.beginPath(), path.pathShape) renderCommandList(path.pathShape.commandList, context, x, y, 1, 1, z);else {
|
|
14747
|
-
var path2D = null !== (
|
|
14748
|
+
var path2D = null !== (_c = path.attribute.path) && void 0 !== _c ? _c : pathAttribute.path;
|
|
14748
14749
|
renderCommandList(path2D.commandList, context, x, y, 1, 1, z);
|
|
14749
14750
|
}
|
|
14750
14751
|
context.setShadowBlendStyle && context.setShadowBlendStyle(path, path.attribute, pathAttribute), this.beforeRenderStep(path, context, x, y, doFill, doStroke, fVisible, sVisible, pathAttribute, drawContext, fillCb, strokeCb), doStroke && (strokeCb ? strokeCb(context, path.attribute, pathAttribute) : sVisible && (context.setStrokeStyle(path, path.attribute, originX - x, originY - y, pathAttribute), context.stroke())), doFill && (fillCb ? fillCb(context, path.attribute, pathAttribute) : fVisible && (context.setCommonStyle(path, path.attribute, originX - x, originY - y, pathAttribute), context.fill())), this.afterRenderStep(path, context, x, y, doFill, doStroke, fVisible, sVisible, pathAttribute, drawContext, fillCb, strokeCb);
|
|
@@ -14753,12 +14754,12 @@
|
|
|
14753
14754
|
key: "draw",
|
|
14754
14755
|
value: function draw(path, renderService, drawContext, params) {
|
|
14755
14756
|
var pathAttribute = getTheme(path, null == params ? void 0 : params.theme).path;
|
|
14756
|
-
this._draw(path, pathAttribute, !1, drawContext, params);
|
|
14757
|
+
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14757
14758
|
}
|
|
14758
14759
|
}]);
|
|
14759
14760
|
return DefaultCanvasPathRender;
|
|
14760
14761
|
}(BaseRender);
|
|
14761
|
-
DefaultCanvasPathRender = __decorate$u([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PathRenderContribution)), __metadata$
|
|
14762
|
+
DefaultCanvasPathRender = __decorate$u([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PathRenderContribution)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
14762
14763
|
|
|
14763
14764
|
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14764
14765
|
var d,
|
|
@@ -14767,7 +14768,7 @@
|
|
|
14767
14768
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
14768
14769
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14769
14770
|
},
|
|
14770
|
-
__metadata$
|
|
14771
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
14771
14772
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14772
14773
|
},
|
|
14773
14774
|
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14787,7 +14788,8 @@
|
|
|
14787
14788
|
_createClass(DefaultCanvasRectRender, [{
|
|
14788
14789
|
key: "drawShape",
|
|
14789
14790
|
value: function drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14790
|
-
var
|
|
14791
|
+
var _a;
|
|
14792
|
+
var rectAttribute = null !== (_a = this.tempTheme) && void 0 !== _a ? _a : getTheme(rect, null == params ? void 0 : params.theme).rect,
|
|
14791
14793
|
_rect$attribute = rect.attribute,
|
|
14792
14794
|
_rect$attribute$fill = _rect$attribute.fill,
|
|
14793
14795
|
fill = _rect$attribute$fill === void 0 ? rectAttribute.fill : _rect$attribute$fill,
|
|
@@ -14834,12 +14836,12 @@
|
|
|
14834
14836
|
key: "draw",
|
|
14835
14837
|
value: function draw(rect, renderService, drawContext, params) {
|
|
14836
14838
|
var rectAttribute = getTheme(rect, null == params ? void 0 : params.theme).rect;
|
|
14837
|
-
this._draw(rect, rectAttribute, !1, drawContext, params);
|
|
14839
|
+
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14838
14840
|
}
|
|
14839
14841
|
}]);
|
|
14840
14842
|
return DefaultCanvasRectRender;
|
|
14841
14843
|
}(BaseRender);
|
|
14842
|
-
DefaultCanvasRectRender = __decorate$t([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(RectRenderContribution)), __metadata$
|
|
14844
|
+
DefaultCanvasRectRender = __decorate$t([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(RectRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
14843
14845
|
|
|
14844
14846
|
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14845
14847
|
var d,
|
|
@@ -14848,7 +14850,7 @@
|
|
|
14848
14850
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
14849
14851
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14850
14852
|
},
|
|
14851
|
-
__metadata$
|
|
14853
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
14852
14854
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14853
14855
|
},
|
|
14854
14856
|
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14912,7 +14914,7 @@
|
|
|
14912
14914
|
}]);
|
|
14913
14915
|
return DefaultCanvasSymbolRender;
|
|
14914
14916
|
}(BaseRender);
|
|
14915
|
-
DefaultCanvasSymbolRender = __decorate$s([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(SymbolRenderContribution)), __metadata$
|
|
14917
|
+
DefaultCanvasSymbolRender = __decorate$s([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(SymbolRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
14916
14918
|
|
|
14917
14919
|
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14918
14920
|
var d,
|
|
@@ -14921,7 +14923,7 @@
|
|
|
14921
14923
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
14922
14924
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14923
14925
|
},
|
|
14924
|
-
__metadata$
|
|
14926
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
14925
14927
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14926
14928
|
},
|
|
14927
14929
|
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15142,7 +15144,7 @@
|
|
|
15142
15144
|
}]);
|
|
15143
15145
|
return DefaultCanvasTextRender;
|
|
15144
15146
|
}(BaseRender);
|
|
15145
|
-
DefaultCanvasTextRender = __decorate$r([injectable(), __param$8(0, inject(ContributionProvider)), __param$8(0, named(TextRenderContribution)), __metadata$
|
|
15147
|
+
DefaultCanvasTextRender = __decorate$r([injectable(), __param$8(0, inject(ContributionProvider)), __param$8(0, named(TextRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
15146
15148
|
|
|
15147
15149
|
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15148
15150
|
var d,
|
|
@@ -15217,7 +15219,7 @@
|
|
|
15217
15219
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15218
15220
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15219
15221
|
},
|
|
15220
|
-
__metadata$
|
|
15222
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
15221
15223
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15222
15224
|
},
|
|
15223
15225
|
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15268,7 +15270,7 @@
|
|
|
15268
15270
|
}]);
|
|
15269
15271
|
return DefaultCanvasPolygonRender;
|
|
15270
15272
|
}(BaseRender);
|
|
15271
|
-
DefaultCanvasPolygonRender = __decorate$p([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(PolygonRenderContribution)), __metadata$
|
|
15273
|
+
DefaultCanvasPolygonRender = __decorate$p([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(PolygonRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
15272
15274
|
|
|
15273
15275
|
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15274
15276
|
var d,
|
|
@@ -15277,7 +15279,7 @@
|
|
|
15277
15279
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15278
15280
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15279
15281
|
},
|
|
15280
|
-
__metadata$
|
|
15282
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
15281
15283
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15282
15284
|
},
|
|
15283
15285
|
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15348,7 +15350,7 @@
|
|
|
15348
15350
|
}]);
|
|
15349
15351
|
return DefaultCanvasImageRender;
|
|
15350
15352
|
}(BaseRender);
|
|
15351
|
-
DefaultCanvasImageRender = __decorate$o([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(ImageRenderContribution)), __metadata$
|
|
15353
|
+
DefaultCanvasImageRender = __decorate$o([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(ImageRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
15352
15354
|
|
|
15353
15355
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
15354
15356
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -15377,7 +15379,7 @@
|
|
|
15377
15379
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15378
15380
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15379
15381
|
},
|
|
15380
|
-
__metadata$
|
|
15382
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
15381
15383
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15382
15384
|
},
|
|
15383
15385
|
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15395,7 +15397,7 @@
|
|
|
15395
15397
|
key: "prepare",
|
|
15396
15398
|
value: function prepare(updateBounds) {
|
|
15397
15399
|
var _this = this;
|
|
15398
|
-
this.renderTreeRoots.forEach(function (g) {
|
|
15400
|
+
updateBounds && this.renderTreeRoots.forEach(function (g) {
|
|
15399
15401
|
_this._prepare(g, updateBounds);
|
|
15400
15402
|
});
|
|
15401
15403
|
}
|
|
@@ -15436,7 +15438,7 @@
|
|
|
15436
15438
|
}]);
|
|
15437
15439
|
return DefaultRenderService;
|
|
15438
15440
|
}();
|
|
15439
|
-
DefaultRenderService = __decorate$n([injectable(), __param$5(0, inject(DrawContribution)), __metadata$
|
|
15441
|
+
DefaultRenderService = __decorate$n([injectable(), __param$5(0, inject(DrawContribution)), __metadata$d("design:paramtypes", [Object])], DefaultRenderService);
|
|
15440
15442
|
|
|
15441
15443
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
15442
15444
|
bind(RenderService).to(DefaultRenderService).inSingletonScope();
|
|
@@ -15610,7 +15612,7 @@
|
|
|
15610
15612
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15611
15613
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15612
15614
|
},
|
|
15613
|
-
__metadata$
|
|
15615
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
15614
15616
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15615
15617
|
},
|
|
15616
15618
|
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15661,7 +15663,7 @@
|
|
|
15661
15663
|
}]);
|
|
15662
15664
|
return DefaultPluginService;
|
|
15663
15665
|
}();
|
|
15664
|
-
DefaultPluginService = __decorate$l([injectable(), __param$4(0, inject(ContributionProvider)), __param$4(0, named(AutoEnablePlugins)), __metadata$
|
|
15666
|
+
DefaultPluginService = __decorate$l([injectable(), __param$4(0, inject(ContributionProvider)), __param$4(0, named(AutoEnablePlugins)), __metadata$c("design:paramtypes", [Object])], DefaultPluginService);
|
|
15665
15667
|
|
|
15666
15668
|
var pluginModule = new ContainerModule(function (bind) {
|
|
15667
15669
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -15682,7 +15684,7 @@
|
|
|
15682
15684
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15683
15685
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15684
15686
|
},
|
|
15685
|
-
__metadata$
|
|
15687
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
15686
15688
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15687
15689
|
};
|
|
15688
15690
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15775,7 +15777,7 @@
|
|
|
15775
15777
|
}]);
|
|
15776
15778
|
return CanvasLayerHandlerContribution;
|
|
15777
15779
|
}();
|
|
15778
|
-
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$
|
|
15780
|
+
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$b("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
15779
15781
|
|
|
15780
15782
|
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15781
15783
|
var d,
|
|
@@ -15784,7 +15786,7 @@
|
|
|
15784
15786
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15785
15787
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15786
15788
|
},
|
|
15787
|
-
__metadata$
|
|
15789
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
15788
15790
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15789
15791
|
};
|
|
15790
15792
|
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15842,7 +15844,7 @@
|
|
|
15842
15844
|
}]);
|
|
15843
15845
|
return EmptyLayerHandlerContribution;
|
|
15844
15846
|
}();
|
|
15845
|
-
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$
|
|
15847
|
+
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$a("design:paramtypes", [])], EmptyLayerHandlerContribution);
|
|
15846
15848
|
|
|
15847
15849
|
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15848
15850
|
var d,
|
|
@@ -15851,7 +15853,7 @@
|
|
|
15851
15853
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
15852
15854
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15853
15855
|
},
|
|
15854
|
-
__metadata$
|
|
15856
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
15855
15857
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15856
15858
|
};
|
|
15857
15859
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15938,7 +15940,7 @@
|
|
|
15938
15940
|
}]);
|
|
15939
15941
|
return OffscreenLayerHandlerContribution;
|
|
15940
15942
|
}();
|
|
15941
|
-
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$
|
|
15943
|
+
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$9("design:paramtypes", [])], OffscreenLayerHandlerContribution);
|
|
15942
15944
|
|
|
15943
15945
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
15944
15946
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
@@ -16066,12 +16068,15 @@
|
|
|
16066
16068
|
}
|
|
16067
16069
|
|
|
16068
16070
|
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16069
|
-
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16071
|
+
var d,
|
|
16072
|
+
c = arguments.length,
|
|
16073
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16074
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _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);
|
|
16075
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16076
|
+
},
|
|
16077
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
16078
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16079
|
+
};
|
|
16075
16080
|
var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
|
|
16076
16081
|
var tempDirtyBounds = new vutils.AABBBounds();
|
|
16077
16082
|
var ShadowRootDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
@@ -16104,21 +16109,15 @@
|
|
|
16104
16109
|
}]);
|
|
16105
16110
|
return ShadowRootDrawItemInterceptorContribution;
|
|
16106
16111
|
}();
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
this.order = 1;
|
|
16112
|
+
var DebugDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16113
|
+
function DebugDrawItemInterceptorContribution() {
|
|
16114
|
+
_classCallCheck(this, DebugDrawItemInterceptorContribution);
|
|
16115
|
+
this.order = 1, this.interceptors = [new ShadowRootDrawItemInterceptorContribution(), new Canvas3DDrawItemInterceptor(), new InteractiveDrawItemInterceptorContribution()];
|
|
16112
16116
|
}
|
|
16113
|
-
_createClass(
|
|
16117
|
+
_createClass(DebugDrawItemInterceptorContribution, [{
|
|
16114
16118
|
key: "afterDrawItem",
|
|
16115
16119
|
value: function afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16116
|
-
return
|
|
16117
|
-
}
|
|
16118
|
-
}, {
|
|
16119
|
-
key: "beforeDrawItem",
|
|
16120
|
-
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16121
|
-
return graphic.attribute.shadowRootIdx < 0 && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
16120
|
+
return graphic.attribute._debug_bounds && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
16122
16121
|
}
|
|
16123
16122
|
}, {
|
|
16124
16123
|
key: "drawItem",
|
|
@@ -16130,9 +16129,30 @@
|
|
|
16130
16129
|
return !0 !== graphic.attribute._debug_bounds && graphic.attribute._debug_bounds(context, graphic), context.strokeRect(b.x1, b.y1, b.width(), b.height()), context.highPerformanceRestore(), !0;
|
|
16131
16130
|
}
|
|
16132
16131
|
}]);
|
|
16132
|
+
return DebugDrawItemInterceptorContribution;
|
|
16133
|
+
}();
|
|
16134
|
+
var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16135
|
+
function CommonDrawItemInterceptorContribution() {
|
|
16136
|
+
_classCallCheck(this, CommonDrawItemInterceptorContribution);
|
|
16137
|
+
this.order = 1, this.interceptors = [new ShadowRootDrawItemInterceptorContribution(), new Canvas3DDrawItemInterceptor(), new InteractiveDrawItemInterceptorContribution(), new DebugDrawItemInterceptorContribution()];
|
|
16138
|
+
}
|
|
16139
|
+
_createClass(CommonDrawItemInterceptorContribution, [{
|
|
16140
|
+
key: "afterDrawItem",
|
|
16141
|
+
value: function afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16142
|
+
for (var i = 0; i < this.interceptors.length; i++) if (this.interceptors[i].afterDrawItem && this.interceptors[i].afterDrawItem(graphic, renderService, drawContext, drawContribution, params)) return !0;
|
|
16143
|
+
return !1;
|
|
16144
|
+
}
|
|
16145
|
+
}, {
|
|
16146
|
+
key: "beforeDrawItem",
|
|
16147
|
+
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16148
|
+
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16149
|
+
for (var i = 0; i < this.interceptors.length; i++) if (this.interceptors[i].beforeDrawItem && this.interceptors[i].beforeDrawItem(graphic, renderService, drawContext, drawContribution, params)) return !0;
|
|
16150
|
+
return !1;
|
|
16151
|
+
}
|
|
16152
|
+
}]);
|
|
16133
16153
|
return CommonDrawItemInterceptorContribution;
|
|
16134
16154
|
}();
|
|
16135
|
-
CommonDrawItemInterceptorContribution = __decorate$h([injectable()], CommonDrawItemInterceptorContribution);
|
|
16155
|
+
CommonDrawItemInterceptorContribution = __decorate$h([injectable(), __metadata$8("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
16136
16156
|
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16137
16157
|
function InteractiveDrawItemInterceptorContribution() {
|
|
16138
16158
|
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
@@ -16191,7 +16211,6 @@
|
|
|
16191
16211
|
}]);
|
|
16192
16212
|
return InteractiveDrawItemInterceptorContribution;
|
|
16193
16213
|
}();
|
|
16194
|
-
InteractiveDrawItemInterceptorContribution = __decorate$h([injectable()], InteractiveDrawItemInterceptorContribution);
|
|
16195
16214
|
var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
|
|
16196
16215
|
function Canvas3DDrawItemInterceptor() {
|
|
16197
16216
|
_classCallCheck(this, Canvas3DDrawItemInterceptor);
|
|
@@ -16282,7 +16301,6 @@
|
|
|
16282
16301
|
}]);
|
|
16283
16302
|
return Canvas3DDrawItemInterceptor;
|
|
16284
16303
|
}();
|
|
16285
|
-
Canvas3DDrawItemInterceptor = __decorate$h([injectable()], Canvas3DDrawItemInterceptor);
|
|
16286
16304
|
|
|
16287
16305
|
var DefaultBoundsAllocate = /*#__PURE__*/function () {
|
|
16288
16306
|
function DefaultBoundsAllocate() {
|
|
@@ -16360,9 +16378,7 @@
|
|
|
16360
16378
|
}, {
|
|
16361
16379
|
key: "prepareForDraw",
|
|
16362
16380
|
value: function prepareForDraw(renderService, drawContext) {
|
|
16363
|
-
|
|
16364
|
-
return a + b.count;
|
|
16365
|
-
}, 0) < this.global.optmizeSkipCheckBoundariesThreshold ? this.useDirtyBounds = !1 : this.useDirtyBounds = !0;
|
|
16381
|
+
drawContext.updateBounds ? this.useDirtyBounds = !0 : this.useDirtyBounds = !drawContext.stage.params.optimize.disableCheckGraphicWidthOutRange;
|
|
16366
16382
|
}
|
|
16367
16383
|
}, {
|
|
16368
16384
|
key: "draw",
|
|
@@ -16416,7 +16432,8 @@
|
|
|
16416
16432
|
if (drawContext["break"] || !1 === group.attribute.visibleAll) return;
|
|
16417
16433
|
if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext["break"] = !0, void this._increaseRender(group, drawContext);
|
|
16418
16434
|
if (this.useDirtyBounds && !vutils.isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
|
|
16419
|
-
var
|
|
16435
|
+
var tempBounds,
|
|
16436
|
+
nextM = parentMatrix;
|
|
16420
16437
|
if (this.useDirtyBounds) {
|
|
16421
16438
|
tempBounds = boundsAllocate.allocateByObj(this.dirtyBounds);
|
|
16422
16439
|
var gm = group.transMatrix;
|
|
@@ -17684,7 +17701,7 @@
|
|
|
17684
17701
|
DefaultCanvasPyramid3dRender = __decorate$7([injectable()], DefaultCanvasPyramid3dRender);
|
|
17685
17702
|
|
|
17686
17703
|
var renderModule = new ContainerModule(function (bind) {
|
|
17687
|
-
bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bindContributionProvider(bind, ImageRenderContribution), bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender), bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), 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(
|
|
17704
|
+
bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender).inSingletonScope(), bind(GraphicRender).toService(CircleRender), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender).inSingletonScope(), bind(GraphicRender).toService(RectRender), bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender), bindContributionProvider(bind, RectRenderContribution), bind(TextRender).to(DefaultCanvasTextRender).inSingletonScope(), bind(GraphicRender).toService(TextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender).inSingletonScope(), bind(GraphicRender).toService(PathRender), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender).inSingletonScope(), bind(GraphicRender).toService(ArcRender), bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bindContributionProvider(bind, AreaRenderContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bindContributionProvider(bind, PolygonRenderContribution), bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender), bind(ImageRender).to(DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bindContributionProvider(bind, ImageRenderContribution), bind(RichTextRender).to(DefaultCanvasRichTextRender).inSingletonScope(), bind(GraphicRender).toService(RichTextRender), bind(Pyramid3dRender).to(DefaultCanvasPyramid3dRender).inSingletonScope(), 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(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
|
|
17688
17705
|
});
|
|
17689
17706
|
|
|
17690
17707
|
function load(container) {
|
|
@@ -20691,6 +20708,45 @@
|
|
|
20691
20708
|
var _a, _b;
|
|
20692
20709
|
return (_b = (_a = animationEffects[type]) === null || _a === void 0 ? void 0 : _a.call(animationEffects, textAttribute)) !== null && _b !== void 0 ? _b : { from: {}, to: {} };
|
|
20693
20710
|
}
|
|
20711
|
+
function updateAnimation(prev, next, animationConfig) {
|
|
20712
|
+
if (!vutils.isArray(animationConfig)) {
|
|
20713
|
+
const { duration, easing, increaseEffect = true } = animationConfig;
|
|
20714
|
+
prev.animate().to(next.attribute, duration, easing);
|
|
20715
|
+
increaseEffect && playIncreaseCount(prev, next, duration, easing);
|
|
20716
|
+
return;
|
|
20717
|
+
}
|
|
20718
|
+
animationConfig.forEach((cfg, i) => {
|
|
20719
|
+
const { duration, easing, increaseEffect = true, channel } = cfg;
|
|
20720
|
+
const { from, to } = update(prev, next, channel, cfg.options);
|
|
20721
|
+
if (!vutils.isEmpty(to)) {
|
|
20722
|
+
prev.animate().to(to, duration, easing);
|
|
20723
|
+
}
|
|
20724
|
+
if ('text' in from && 'text' in to && increaseEffect) {
|
|
20725
|
+
playIncreaseCount(prev, next, duration, easing);
|
|
20726
|
+
}
|
|
20727
|
+
});
|
|
20728
|
+
}
|
|
20729
|
+
const update = (prev, next, channel, options) => {
|
|
20730
|
+
const from = Object.assign({}, prev.attribute);
|
|
20731
|
+
const to = Object.assign({}, next.attribute);
|
|
20732
|
+
vutils.array(options === null || options === void 0 ? void 0 : options.excludeChannels).forEach(key => {
|
|
20733
|
+
delete to[key];
|
|
20734
|
+
});
|
|
20735
|
+
Object.keys(to).forEach(key => {
|
|
20736
|
+
if (channel && !channel.includes(key)) {
|
|
20737
|
+
delete to[key];
|
|
20738
|
+
}
|
|
20739
|
+
});
|
|
20740
|
+
return { from, to };
|
|
20741
|
+
};
|
|
20742
|
+
function playIncreaseCount(prev, next, duration, easing) {
|
|
20743
|
+
if (prev.attribute.text !== next.attribute.text &&
|
|
20744
|
+
vutils.isValidNumber(Number(prev.attribute.text) * Number(next.attribute.text))) {
|
|
20745
|
+
prev
|
|
20746
|
+
.animate()
|
|
20747
|
+
.play(new IncreaseCount({ text: prev.attribute.text }, { text: next.attribute.text }, duration, easing));
|
|
20748
|
+
}
|
|
20749
|
+
}
|
|
20694
20750
|
const DefaultLabelAnimation = {
|
|
20695
20751
|
mode: 'same-time',
|
|
20696
20752
|
duration: 300,
|
|
@@ -20884,6 +20940,24 @@
|
|
|
20884
20940
|
}
|
|
20885
20941
|
return points;
|
|
20886
20942
|
};
|
|
20943
|
+
function labelingLineOrArea(textBounds, graphicBounds, position = 'end', offset = 0) {
|
|
20944
|
+
if (!textBounds || !graphicBounds) {
|
|
20945
|
+
return;
|
|
20946
|
+
}
|
|
20947
|
+
const { x1, x2 } = textBounds;
|
|
20948
|
+
const width = Math.abs(x2 - x1);
|
|
20949
|
+
const anchorX = graphicBounds.x1;
|
|
20950
|
+
const anchorY = graphicBounds.y1;
|
|
20951
|
+
let x = anchorX;
|
|
20952
|
+
const y = anchorY;
|
|
20953
|
+
if (position === 'end') {
|
|
20954
|
+
x = anchorX + width / 2 + offset;
|
|
20955
|
+
}
|
|
20956
|
+
else if (position === 'start') {
|
|
20957
|
+
x = anchorX - width / 2 - offset;
|
|
20958
|
+
}
|
|
20959
|
+
return { x, y };
|
|
20960
|
+
}
|
|
20887
20961
|
|
|
20888
20962
|
class LabelBase extends AbstractComponent {
|
|
20889
20963
|
setBitmap(bitmap) {
|
|
@@ -21037,7 +21111,7 @@
|
|
|
21037
21111
|
return text;
|
|
21038
21112
|
}
|
|
21039
21113
|
_prepare() {
|
|
21040
|
-
var _a, _b, _c, _d;
|
|
21114
|
+
var _a, _b, _c, _d, _e;
|
|
21041
21115
|
const currentBaseMarks = [];
|
|
21042
21116
|
let baseMarks;
|
|
21043
21117
|
if (vutils.isFunction(this.attribute.getBaseMarks)) {
|
|
@@ -21054,7 +21128,7 @@
|
|
|
21054
21128
|
(_a = this._idToGraphic) === null || _a === void 0 ? void 0 : _a.clear();
|
|
21055
21129
|
(_b = this._idToPoint) === null || _b === void 0 ? void 0 : _b.clear();
|
|
21056
21130
|
this._baseMarks = currentBaseMarks;
|
|
21057
|
-
this._isCollectionBase =
|
|
21131
|
+
this._isCollectionBase = this.attribute.type === 'line-data';
|
|
21058
21132
|
if (!currentBaseMarks || currentBaseMarks.length === 0) {
|
|
21059
21133
|
return;
|
|
21060
21134
|
}
|
|
@@ -21100,6 +21174,15 @@
|
|
|
21100
21174
|
}
|
|
21101
21175
|
}
|
|
21102
21176
|
}
|
|
21177
|
+
if (this.attribute.animation !== false) {
|
|
21178
|
+
this._animationConfig = {
|
|
21179
|
+
enter: vutils.merge({}, DefaultLabelAnimation, this.attribute.animation, (_c = this.attribute.animationEnter) !== null && _c !== void 0 ? _c : {}),
|
|
21180
|
+
exit: vutils.merge({}, DefaultLabelAnimation, this.attribute.animation, (_d = this.attribute.animationExit) !== null && _d !== void 0 ? _d : {}),
|
|
21181
|
+
update: vutils.isArray(this.attribute.animationUpdate)
|
|
21182
|
+
? this.attribute.animationUpdate
|
|
21183
|
+
: vutils.merge({}, DefaultLabelAnimation, this.attribute.animation, (_e = this.attribute.animationUpdate) !== null && _e !== void 0 ? _e : {})
|
|
21184
|
+
};
|
|
21185
|
+
}
|
|
21103
21186
|
}
|
|
21104
21187
|
getRelatedGrphic(item) {
|
|
21105
21188
|
return this._idToGraphic.get(item.id);
|
|
@@ -21247,12 +21330,6 @@
|
|
|
21247
21330
|
}
|
|
21248
21331
|
}
|
|
21249
21332
|
_renderWithAnimation(labels) {
|
|
21250
|
-
var _a, _b, _c, _d, _e;
|
|
21251
|
-
const animationConfig = ((_a = this.attribute.animation) !== null && _a !== void 0 ? _a : {});
|
|
21252
|
-
const mode = (_b = animationConfig.mode) !== null && _b !== void 0 ? _b : DefaultLabelAnimation.mode;
|
|
21253
|
-
const duration = (_c = animationConfig.duration) !== null && _c !== void 0 ? _c : DefaultLabelAnimation.duration;
|
|
21254
|
-
const easing = (_d = animationConfig.easing) !== null && _d !== void 0 ? _d : DefaultLabelAnimation.easing;
|
|
21255
|
-
const delay = (_e = animationConfig.delay) !== null && _e !== void 0 ? _e : 0;
|
|
21256
21333
|
const currentTextMap = new Map();
|
|
21257
21334
|
const prevTextMap = this._graphicToText || new Map();
|
|
21258
21335
|
const texts = [];
|
|
@@ -21276,13 +21353,7 @@
|
|
|
21276
21353
|
this._syncStateWithRelatedGraphic(relatedGraphic);
|
|
21277
21354
|
relatedGraphic.once('animate-bind', a => {
|
|
21278
21355
|
text.setAttributes(from);
|
|
21279
|
-
const listener = this._afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic,
|
|
21280
|
-
mode,
|
|
21281
|
-
duration,
|
|
21282
|
-
easing,
|
|
21283
|
-
to,
|
|
21284
|
-
delay
|
|
21285
|
-
});
|
|
21356
|
+
const listener = this._afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, to, this._animationConfig.enter);
|
|
21286
21357
|
relatedGraphic.on('afterAttributeUpdate', listener);
|
|
21287
21358
|
});
|
|
21288
21359
|
}
|
|
@@ -21292,25 +21363,19 @@
|
|
|
21292
21363
|
prevTextMap.delete(textKey);
|
|
21293
21364
|
currentTextMap.set(textKey, prevLabel);
|
|
21294
21365
|
const prevText = prevLabel.text;
|
|
21295
|
-
|
|
21366
|
+
const { duration, easing } = this._animationConfig.update;
|
|
21367
|
+
updateAnimation(prevText, text, this._animationConfig.update);
|
|
21296
21368
|
if (prevLabel.labelLine) {
|
|
21297
21369
|
prevLabel.labelLine.animate().to(vutils.merge({}, prevLabel.labelLine.attribute, {
|
|
21298
21370
|
visible: (_f = (_d = (((_b = (_a = text.attribute) === null || _a === void 0 ? void 0 : _a.line) === null || _b === void 0 ? void 0 : _b.visible) && ((_c = text.attribute) === null || _c === void 0 ? void 0 : _c.visible))) !== null && _d !== void 0 ? _d : (_e = text.attribute) === null || _e === void 0 ? void 0 : _e.visible) !== null && _f !== void 0 ? _f : true,
|
|
21299
21371
|
points: (_g = text.attribute) === null || _g === void 0 ? void 0 : _g.points
|
|
21300
21372
|
}), duration, easing);
|
|
21301
21373
|
}
|
|
21302
|
-
if (animationConfig.increaseEffect !== false &&
|
|
21303
|
-
prevText.attribute.text !== text.attribute.text &&
|
|
21304
|
-
vutils.isValidNumber(Number(prevText.attribute.text) * Number(text.attribute.text))) {
|
|
21305
|
-
prevText
|
|
21306
|
-
.animate()
|
|
21307
|
-
.play(new IncreaseCount({ text: prevText.attribute.text }, { text: text.attribute.text }, duration, easing));
|
|
21308
|
-
}
|
|
21309
21374
|
}
|
|
21310
21375
|
});
|
|
21311
21376
|
prevTextMap.forEach(label => {
|
|
21312
21377
|
var _a;
|
|
21313
|
-
(_a = label.text) === null || _a === void 0 ? void 0 : _a.animate().to(getAnimationAttributes(label.text.attribute, 'fadeOut').to, duration, easing).onEnd(() => {
|
|
21378
|
+
(_a = label.text) === null || _a === void 0 ? void 0 : _a.animate().to(getAnimationAttributes(label.text.attribute, 'fadeOut').to, this._animationConfig.exit.duration, this._animationConfig.exit.easing).onEnd(() => {
|
|
21314
21379
|
this.removeChild(label.text);
|
|
21315
21380
|
if (label === null || label === void 0 ? void 0 : label.labelLine) {
|
|
21316
21381
|
this.removeChild(label.labelLine);
|
|
@@ -21359,7 +21424,7 @@
|
|
|
21359
21424
|
relatedGraphic.on('afterAttributeUpdate', this._handleRelatedGraphicSetState);
|
|
21360
21425
|
}
|
|
21361
21426
|
}
|
|
21362
|
-
_afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, { mode, duration, easing,
|
|
21427
|
+
_afterRelatedGraphicAttributeUpdate(text, texts, index, relatedGraphic, to, { mode, duration, easing, delay }) {
|
|
21363
21428
|
const listener = (event) => {
|
|
21364
21429
|
var _a, _b;
|
|
21365
21430
|
const { detail } = event;
|
|
@@ -21377,7 +21442,7 @@
|
|
|
21377
21442
|
text.setAttributes(to);
|
|
21378
21443
|
return;
|
|
21379
21444
|
}
|
|
21380
|
-
const
|
|
21445
|
+
const onStart = () => {
|
|
21381
21446
|
if (relatedGraphic) {
|
|
21382
21447
|
relatedGraphic.onAnimateBind = undefined;
|
|
21383
21448
|
relatedGraphic.removeEventListener('afterAttributeUpdate', listener);
|
|
@@ -21386,14 +21451,14 @@
|
|
|
21386
21451
|
switch (mode) {
|
|
21387
21452
|
case 'after':
|
|
21388
21453
|
if (detail.animationState.end) {
|
|
21389
|
-
text.animate({
|
|
21454
|
+
text.animate({ onStart }).wait(delay).to(to, duration, easing);
|
|
21390
21455
|
}
|
|
21391
21456
|
break;
|
|
21392
21457
|
case 'after-all':
|
|
21393
21458
|
if (index === texts.length - 1) {
|
|
21394
21459
|
if (detail.animationState.end) {
|
|
21395
21460
|
texts.forEach(t => {
|
|
21396
|
-
t.animate({
|
|
21461
|
+
t.animate({ onStart }).wait(delay).to(to, duration, easing);
|
|
21397
21462
|
});
|
|
21398
21463
|
}
|
|
21399
21464
|
}
|
|
@@ -21404,12 +21469,12 @@
|
|
|
21404
21469
|
const point = this._idToPoint.get(text.attribute.id);
|
|
21405
21470
|
if (point &&
|
|
21406
21471
|
(!text.animates || !text.animates.has('label-animate')) &&
|
|
21407
|
-
|
|
21408
|
-
text.animate({
|
|
21472
|
+
relatedGraphic.containsPoint(point.x, point.y, IContainPointMode.LOCAL, (_b = this.stage) === null || _b === void 0 ? void 0 : _b.pickerService)) {
|
|
21473
|
+
text.animate({ onStart }).wait(delay).to(to, duration, easing);
|
|
21409
21474
|
}
|
|
21410
21475
|
}
|
|
21411
21476
|
else if (detail.animationState.isFirstFrameOfStep) {
|
|
21412
|
-
text.animate({
|
|
21477
|
+
text.animate({ onStart }).wait(delay).to(to, duration, easing);
|
|
21413
21478
|
}
|
|
21414
21479
|
break;
|
|
21415
21480
|
}
|
|
@@ -21643,22 +21708,7 @@
|
|
|
21643
21708
|
};
|
|
21644
21709
|
}
|
|
21645
21710
|
labeling(textBounds, graphicBounds, position = 'end', offset = 0) {
|
|
21646
|
-
|
|
21647
|
-
return;
|
|
21648
|
-
}
|
|
21649
|
-
const { x1, x2 } = textBounds;
|
|
21650
|
-
const width = Math.abs(x2 - x1);
|
|
21651
|
-
const anchorX = graphicBounds.x1;
|
|
21652
|
-
const anchorY = graphicBounds.y1;
|
|
21653
|
-
let x = anchorX;
|
|
21654
|
-
const y = anchorY;
|
|
21655
|
-
if (position === 'end') {
|
|
21656
|
-
x = anchorX + width / 2 + offset;
|
|
21657
|
-
}
|
|
21658
|
-
else if (position === 'start') {
|
|
21659
|
-
x = anchorX - width / 2 - offset;
|
|
21660
|
-
}
|
|
21661
|
-
return { x, y };
|
|
21711
|
+
return labelingLineOrArea(textBounds, graphicBounds, position, offset);
|
|
21662
21712
|
}
|
|
21663
21713
|
}
|
|
21664
21714
|
LineLabel.defaultAttributes = {
|
|
@@ -22420,10 +22470,49 @@
|
|
|
22420
22470
|
pickable: false
|
|
22421
22471
|
};
|
|
22422
22472
|
|
|
22473
|
+
class AreaLabel extends LabelBase {
|
|
22474
|
+
constructor(attributes) {
|
|
22475
|
+
super(vutils.merge({}, AreaLabel.defaultAttributes, attributes));
|
|
22476
|
+
this.name = 'line-label';
|
|
22477
|
+
}
|
|
22478
|
+
getGraphicBounds(graphic, point = {}) {
|
|
22479
|
+
var _a;
|
|
22480
|
+
if (graphic.type !== 'area') {
|
|
22481
|
+
return super.getGraphicBounds(graphic, point);
|
|
22482
|
+
}
|
|
22483
|
+
const { position = 'end' } = this.attribute;
|
|
22484
|
+
const points = ((_a = graphic === null || graphic === void 0 ? void 0 : graphic.attribute) === null || _a === void 0 ? void 0 : _a.points) || [point];
|
|
22485
|
+
const index = position === 'start' ? 0 : points.length - 1;
|
|
22486
|
+
return {
|
|
22487
|
+
x1: points[index].x,
|
|
22488
|
+
x2: points[index].x,
|
|
22489
|
+
y1: points[index].y,
|
|
22490
|
+
y2: points[index].y
|
|
22491
|
+
};
|
|
22492
|
+
}
|
|
22493
|
+
labeling(textBounds, graphicBounds, position = 'end', offset = 0) {
|
|
22494
|
+
return labelingLineOrArea(textBounds, graphicBounds, position, offset);
|
|
22495
|
+
}
|
|
22496
|
+
}
|
|
22497
|
+
AreaLabel.defaultAttributes = {
|
|
22498
|
+
textStyle: {
|
|
22499
|
+
fontSize: 12,
|
|
22500
|
+
fill: '#000',
|
|
22501
|
+
textAlign: 'center',
|
|
22502
|
+
textBaseline: 'middle',
|
|
22503
|
+
boundsPadding: [-1, 0, -1, 0]
|
|
22504
|
+
},
|
|
22505
|
+
position: 'end',
|
|
22506
|
+
offset: 6,
|
|
22507
|
+
pickable: false
|
|
22508
|
+
};
|
|
22509
|
+
|
|
22423
22510
|
const labelComponentMap = {
|
|
22424
22511
|
rect: RectLabel,
|
|
22425
22512
|
symbol: SymbolLabel,
|
|
22426
22513
|
arc: ArcLabel,
|
|
22514
|
+
line: LineLabel,
|
|
22515
|
+
area: AreaLabel,
|
|
22427
22516
|
'line-data': LineDataLabel
|
|
22428
22517
|
};
|
|
22429
22518
|
class DataLabel extends AbstractComponent {
|
|
@@ -22432,6 +22521,7 @@
|
|
|
22432
22521
|
this.name = 'data-label';
|
|
22433
22522
|
}
|
|
22434
22523
|
render() {
|
|
22524
|
+
var _a;
|
|
22435
22525
|
const { dataLabels, size } = this.attribute;
|
|
22436
22526
|
if (!dataLabels || dataLabels.length === 0) {
|
|
22437
22527
|
return;
|
|
@@ -22451,20 +22541,21 @@
|
|
|
22451
22541
|
const dataLabel = dataLabels[i];
|
|
22452
22542
|
const labelComponent = labelComponentMap[dataLabel.type] || LabelBase;
|
|
22453
22543
|
if (labelComponent) {
|
|
22454
|
-
const { baseMarkGroupName } = dataLabel;
|
|
22455
|
-
|
|
22544
|
+
const { baseMarkGroupName, type } = dataLabel;
|
|
22545
|
+
const id = (_a = dataLabel.id) !== null && _a !== void 0 ? _a : `${baseMarkGroupName}-${type}-${i}`;
|
|
22546
|
+
let component = this._componentMap.get(id);
|
|
22456
22547
|
if (component) {
|
|
22457
22548
|
component.setBitmapTool(tool);
|
|
22458
22549
|
component.setBitmap(bitmap);
|
|
22459
22550
|
component.setAttributes(dataLabel);
|
|
22460
|
-
currentComponentMap.set(
|
|
22551
|
+
currentComponentMap.set(id, component);
|
|
22461
22552
|
}
|
|
22462
22553
|
else {
|
|
22463
22554
|
component = new labelComponent(dataLabel);
|
|
22464
22555
|
component.setBitmap(bitmap);
|
|
22465
22556
|
component.setBitmapTool(tool);
|
|
22466
22557
|
this.add(component);
|
|
22467
|
-
currentComponentMap.set(
|
|
22558
|
+
currentComponentMap.set(id, component);
|
|
22468
22559
|
}
|
|
22469
22560
|
}
|
|
22470
22561
|
}
|
|
@@ -24710,13 +24801,6 @@
|
|
|
24710
24801
|
}
|
|
24711
24802
|
vutils.mixin(CircleAxisGrid, CircleAxisMixin);
|
|
24712
24803
|
|
|
24713
|
-
var DataZoomActiveTag;
|
|
24714
|
-
(function (DataZoomActiveTag) {
|
|
24715
|
-
DataZoomActiveTag["startHandler"] = "startHandler";
|
|
24716
|
-
DataZoomActiveTag["endHandler"] = "endHandler";
|
|
24717
|
-
DataZoomActiveTag["middleHandler"] = "middleHandler";
|
|
24718
|
-
DataZoomActiveTag["background"] = "background";
|
|
24719
|
-
})(DataZoomActiveTag || (DataZoomActiveTag = {}));
|
|
24720
24804
|
const DEFAULT_DATA_ZOOM_ATTRIBUTES = {
|
|
24721
24805
|
orient: 'bottom',
|
|
24722
24806
|
showDetail: 'auto',
|
|
@@ -24815,6 +24899,14 @@
|
|
|
24815
24899
|
}
|
|
24816
24900
|
};
|
|
24817
24901
|
|
|
24902
|
+
exports.DataZoomActiveTag = void 0;
|
|
24903
|
+
(function (DataZoomActiveTag) {
|
|
24904
|
+
DataZoomActiveTag["startHandler"] = "startHandler";
|
|
24905
|
+
DataZoomActiveTag["endHandler"] = "endHandler";
|
|
24906
|
+
DataZoomActiveTag["middleHandler"] = "middleHandler";
|
|
24907
|
+
DataZoomActiveTag["background"] = "background";
|
|
24908
|
+
})(exports.DataZoomActiveTag || (exports.DataZoomActiveTag = {}));
|
|
24909
|
+
|
|
24818
24910
|
const delayMap$1 = {
|
|
24819
24911
|
debounce: vutils.debounce,
|
|
24820
24912
|
throttle: vutils.throttle
|
|
@@ -24842,23 +24934,23 @@
|
|
|
24842
24934
|
this._onHandlerPointerDown = (e, tag) => {
|
|
24843
24935
|
e.stopPropagation();
|
|
24844
24936
|
if (tag === 'start') {
|
|
24845
|
-
this._activeTag = DataZoomActiveTag.startHandler;
|
|
24937
|
+
this._activeTag = exports.DataZoomActiveTag.startHandler;
|
|
24846
24938
|
this._activeItem = this._startHandler;
|
|
24847
24939
|
}
|
|
24848
24940
|
else if (tag === 'end') {
|
|
24849
|
-
this._activeTag = DataZoomActiveTag.endHandler;
|
|
24941
|
+
this._activeTag = exports.DataZoomActiveTag.endHandler;
|
|
24850
24942
|
this._activeItem = this._endHandler;
|
|
24851
24943
|
}
|
|
24852
24944
|
else if (tag === 'middleRect') {
|
|
24853
|
-
this._activeTag = DataZoomActiveTag.middleHandler;
|
|
24945
|
+
this._activeTag = exports.DataZoomActiveTag.middleHandler;
|
|
24854
24946
|
this._activeItem = this._middleHandlerRect;
|
|
24855
24947
|
}
|
|
24856
24948
|
else if (tag === 'middleSymbol') {
|
|
24857
|
-
this._activeTag = DataZoomActiveTag.middleHandler;
|
|
24949
|
+
this._activeTag = exports.DataZoomActiveTag.middleHandler;
|
|
24858
24950
|
this._activeItem = this._middleHandlerSymbol;
|
|
24859
24951
|
}
|
|
24860
24952
|
else if (tag === 'background') {
|
|
24861
|
-
this._activeTag = DataZoomActiveTag.background;
|
|
24953
|
+
this._activeTag = exports.DataZoomActiveTag.background;
|
|
24862
24954
|
this._activeItem = this._background;
|
|
24863
24955
|
}
|
|
24864
24956
|
this._activeState = true;
|
|
@@ -24866,6 +24958,7 @@
|
|
|
24866
24958
|
this._activeCache.lastPos = this.eventPosToStagePos(e);
|
|
24867
24959
|
};
|
|
24868
24960
|
this._onHandlerPointerMove = (e) => {
|
|
24961
|
+
var _a;
|
|
24869
24962
|
e.stopPropagation();
|
|
24870
24963
|
const { start: startAttr, end: endAttr, brushSelect, realTime = true } = this.attribute;
|
|
24871
24964
|
const pos = this.eventPosToStagePos(e);
|
|
@@ -24873,24 +24966,24 @@
|
|
|
24873
24966
|
const dis = (pos[attPos] - this._activeCache.lastPos[attPos]) / max;
|
|
24874
24967
|
let { start, end } = this.state;
|
|
24875
24968
|
if (this._activeState) {
|
|
24876
|
-
if (this._activeTag === DataZoomActiveTag.middleHandler) {
|
|
24969
|
+
if (this._activeTag === exports.DataZoomActiveTag.middleHandler) {
|
|
24877
24970
|
this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis);
|
|
24878
24971
|
}
|
|
24879
|
-
else if (this._activeTag === DataZoomActiveTag.startHandler) {
|
|
24972
|
+
else if (this._activeTag === exports.DataZoomActiveTag.startHandler) {
|
|
24880
24973
|
if (start + dis > end) {
|
|
24881
24974
|
start = end;
|
|
24882
24975
|
end = start + dis;
|
|
24883
|
-
this._activeTag = DataZoomActiveTag.endHandler;
|
|
24976
|
+
this._activeTag = exports.DataZoomActiveTag.endHandler;
|
|
24884
24977
|
}
|
|
24885
24978
|
else {
|
|
24886
24979
|
start = start + dis;
|
|
24887
24980
|
}
|
|
24888
24981
|
}
|
|
24889
|
-
else if (this._activeTag === DataZoomActiveTag.endHandler) {
|
|
24982
|
+
else if (this._activeTag === exports.DataZoomActiveTag.endHandler) {
|
|
24890
24983
|
if (end + dis < start) {
|
|
24891
24984
|
end = start;
|
|
24892
24985
|
start = end + dis;
|
|
24893
|
-
this._activeTag = DataZoomActiveTag.startHandler;
|
|
24986
|
+
this._activeTag = exports.DataZoomActiveTag.startHandler;
|
|
24894
24987
|
}
|
|
24895
24988
|
else {
|
|
24896
24989
|
end = end + dis;
|
|
@@ -24903,7 +24996,7 @@
|
|
|
24903
24996
|
end = Math.min(Math.max(end, 0), 1);
|
|
24904
24997
|
if (startAttr !== start || endAttr !== end) {
|
|
24905
24998
|
this.setStateAttr(start, end, true);
|
|
24906
|
-
realTime && this._updateStateCallback
|
|
24999
|
+
realTime && ((_a = this._updateStateCallback) === null || _a === void 0 ? void 0 : _a.call(this, start, end, this._activeTag));
|
|
24907
25000
|
this._dispatchChangeEvent(start, end);
|
|
24908
25001
|
}
|
|
24909
25002
|
};
|
|
@@ -25008,10 +25101,11 @@
|
|
|
25008
25101
|
};
|
|
25009
25102
|
}
|
|
25010
25103
|
_onHandlerPointerUp(e) {
|
|
25104
|
+
var _a;
|
|
25011
25105
|
e.preventDefault();
|
|
25012
25106
|
const { start, end, brushSelect, realTime = true } = this.attribute;
|
|
25013
25107
|
if (this._activeState) {
|
|
25014
|
-
if (this._activeTag === DataZoomActiveTag.background) {
|
|
25108
|
+
if (this._activeTag === exports.DataZoomActiveTag.background) {
|
|
25015
25109
|
const pos = this.eventPosToStagePos(e);
|
|
25016
25110
|
this.backgroundDragZoom(this._activeCache.startPos, pos);
|
|
25017
25111
|
}
|
|
@@ -25020,7 +25114,7 @@
|
|
|
25020
25114
|
brushSelect && this.renderDragMask();
|
|
25021
25115
|
if (!realTime || start !== this.state.start || end !== this.state.end) {
|
|
25022
25116
|
this.setStateAttr(this.state.start, this.state.end, true);
|
|
25023
|
-
this._updateStateCallback
|
|
25117
|
+
(_a = this._updateStateCallback) === null || _a === void 0 ? void 0 : _a.call(this, this.state.start, this.state.end, this._activeTag);
|
|
25024
25118
|
this._dispatchChangeEvent(this.state.start, this.state.end);
|
|
25025
25119
|
}
|
|
25026
25120
|
}
|
|
@@ -25070,11 +25164,11 @@
|
|
|
25070
25164
|
const { dragMaskStyle } = this.attribute;
|
|
25071
25165
|
const { position, width, height } = this.getLayoutAttrFromConfig();
|
|
25072
25166
|
if (this._isHorizontal) {
|
|
25073
|
-
this._dragMask = this._container.createOrUpdateChild('dragMask', Object.assign({ x: vutils.clamp(this.dragMaskSize() < 0 ? this._activeCache.lastPos.x : this._activeCache.startPos.x, position.x, position.x + width), y: position.y, width: (this._activeState && this._activeTag === DataZoomActiveTag.background && Math.abs(this.dragMaskSize())) ||
|
|
25167
|
+
this._dragMask = this._container.createOrUpdateChild('dragMask', Object.assign({ x: vutils.clamp(this.dragMaskSize() < 0 ? this._activeCache.lastPos.x : this._activeCache.startPos.x, position.x, position.x + width), y: position.y, width: (this._activeState && this._activeTag === exports.DataZoomActiveTag.background && Math.abs(this.dragMaskSize())) ||
|
|
25074
25168
|
0, height }, dragMaskStyle), 'rect');
|
|
25075
25169
|
}
|
|
25076
25170
|
else {
|
|
25077
|
-
this._dragMask = this._container.createOrUpdateChild('dragMask', Object.assign({ x: position.x, y: vutils.clamp(this.dragMaskSize() < 0 ? this._activeCache.lastPos.y : this._activeCache.startPos.y, position.y, position.y + height), width, height: (this._activeState && this._activeTag === DataZoomActiveTag.background && Math.abs(this.dragMaskSize())) ||
|
|
25171
|
+
this._dragMask = this._container.createOrUpdateChild('dragMask', Object.assign({ x: position.x, y: vutils.clamp(this.dragMaskSize() < 0 ? this._activeCache.lastPos.y : this._activeCache.startPos.y, position.y, position.y + height), width, height: (this._activeState && this._activeTag === exports.DataZoomActiveTag.background && Math.abs(this.dragMaskSize())) ||
|
|
25078
25172
|
0 }, dragMaskStyle), 'rect');
|
|
25079
25173
|
}
|
|
25080
25174
|
}
|
|
@@ -25393,13 +25487,14 @@
|
|
|
25393
25487
|
this.dispatchEvent(changeEvent);
|
|
25394
25488
|
}
|
|
25395
25489
|
setStartAndEnd(start, end) {
|
|
25490
|
+
var _a;
|
|
25396
25491
|
const { start: startAttr, end: endAttr } = this.attribute;
|
|
25397
25492
|
if (vutils.isValid(start) && vutils.isValid(end) && (start !== this.state.start || end !== this.state.end)) {
|
|
25398
25493
|
this.state.start = start;
|
|
25399
25494
|
this.state.end = end;
|
|
25400
25495
|
if (startAttr !== this.state.start || endAttr !== this.state.end) {
|
|
25401
25496
|
this.setStateAttr(start, end, true);
|
|
25402
|
-
this._updateStateCallback
|
|
25497
|
+
(_a = this._updateStateCallback) === null || _a === void 0 ? void 0 : _a.call(this, start, end, this._activeTag);
|
|
25403
25498
|
this._dispatchChangeEvent(start, end);
|
|
25404
25499
|
}
|
|
25405
25500
|
}
|
|
@@ -26486,51 +26581,23 @@
|
|
|
26486
26581
|
const target = e.target;
|
|
26487
26582
|
if ((_a = target === null || target === void 0 ? void 0 : target.name) === null || _a === void 0 ? void 0 : _a.startsWith(exports.LEGEND_ELEMENT_NAME.item)) {
|
|
26488
26583
|
const legendItem = target.delegate;
|
|
26489
|
-
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26493
|
-
|
|
26494
|
-
this._setLegendItemState(legendItem, exports.LegendStateValue.unSelectedHover, e);
|
|
26495
|
-
}
|
|
26496
|
-
const focusButton = legendItem.getChildren()[0].find(node => node.name === exports.LEGEND_ELEMENT_NAME.focus, false);
|
|
26497
|
-
if (focusButton) {
|
|
26498
|
-
focusButton.setAttribute('visible', true);
|
|
26584
|
+
if (this._lastActiveItem) {
|
|
26585
|
+
if (this._lastActiveItem.id === legendItem.id) {
|
|
26586
|
+
return;
|
|
26587
|
+
}
|
|
26588
|
+
this._unHover(this._lastActiveItem, e);
|
|
26499
26589
|
}
|
|
26500
|
-
this.
|
|
26590
|
+
this._hover(legendItem, e);
|
|
26591
|
+
}
|
|
26592
|
+
else if (this._lastActiveItem) {
|
|
26593
|
+
this._unHover(this._lastActiveItem, e);
|
|
26594
|
+
this._lastActiveItem = null;
|
|
26501
26595
|
}
|
|
26502
26596
|
};
|
|
26503
26597
|
this._onUnHover = (e) => {
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
const legendItem = target.delegate;
|
|
26508
|
-
let attributeUpdate = false;
|
|
26509
|
-
if (legendItem.hasState(exports.LegendStateValue.unSelectedHover) ||
|
|
26510
|
-
legendItem.hasState(exports.LegendStateValue.selectedHover)) {
|
|
26511
|
-
attributeUpdate = true;
|
|
26512
|
-
}
|
|
26513
|
-
legendItem.removeState(exports.LegendStateValue.unSelectedHover);
|
|
26514
|
-
legendItem.removeState(exports.LegendStateValue.selectedHover);
|
|
26515
|
-
legendItem
|
|
26516
|
-
.getChildren()[0]
|
|
26517
|
-
.getChildren()
|
|
26518
|
-
.forEach((child) => {
|
|
26519
|
-
if (!attributeUpdate &&
|
|
26520
|
-
(child.hasState(exports.LegendStateValue.unSelectedHover) || child.hasState(exports.LegendStateValue.selectedHover))) {
|
|
26521
|
-
attributeUpdate = true;
|
|
26522
|
-
}
|
|
26523
|
-
child.removeState(exports.LegendStateValue.unSelectedHover);
|
|
26524
|
-
child.removeState(exports.LegendStateValue.selectedHover);
|
|
26525
|
-
});
|
|
26526
|
-
const focusButton = legendItem.getChildren()[0].find(node => node.name === exports.LEGEND_ELEMENT_NAME.focus, false);
|
|
26527
|
-
if (focusButton) {
|
|
26528
|
-
focusButton.setAttribute('visible', false);
|
|
26529
|
-
}
|
|
26530
|
-
if (attributeUpdate) {
|
|
26531
|
-
this._dispatchEvent(exports.LegendEvent.legendItemAttributeUpdate, legendItem, e);
|
|
26532
|
-
}
|
|
26533
|
-
this._dispatchEvent(exports.LegendEvent.legendItemUnHover, legendItem, e);
|
|
26598
|
+
if (this._lastActiveItem) {
|
|
26599
|
+
this._unHover(this._lastActiveItem, e);
|
|
26600
|
+
this._lastActiveItem = null;
|
|
26534
26601
|
}
|
|
26535
26602
|
};
|
|
26536
26603
|
this._onClick = (e) => {
|
|
@@ -26720,7 +26787,7 @@
|
|
|
26720
26787
|
const { hover = true, select = true } = this.attribute;
|
|
26721
26788
|
if (hover) {
|
|
26722
26789
|
this._itemsContainer.addEventListener('pointermove', this._onHover);
|
|
26723
|
-
this._itemsContainer.addEventListener('
|
|
26790
|
+
this._itemsContainer.addEventListener('pointerleave', this._onUnHover);
|
|
26724
26791
|
}
|
|
26725
26792
|
if (select) {
|
|
26726
26793
|
this._itemsContainer.addEventListener('pointerdown', this._onClick);
|
|
@@ -26748,6 +26815,7 @@
|
|
|
26748
26815
|
itemGroup = createGroup(Object.assign({ x: 0, y: 0 }, background === null || background === void 0 ? void 0 : background.style));
|
|
26749
26816
|
this._appendDataToShape(itemGroup, exports.LEGEND_ELEMENT_NAME.item, item, itemGroup, background === null || background === void 0 ? void 0 : background.state);
|
|
26750
26817
|
}
|
|
26818
|
+
itemGroup.id = `${id !== null && id !== void 0 ? id : label}-${index}`;
|
|
26751
26819
|
itemGroup.addState(isSelected ? exports.LegendStateValue.selected : exports.LegendStateValue.unSelected);
|
|
26752
26820
|
const innerGroup = createGroup({
|
|
26753
26821
|
x: 0,
|
|
@@ -26756,22 +26824,26 @@
|
|
|
26756
26824
|
});
|
|
26757
26825
|
itemGroup.add(innerGroup);
|
|
26758
26826
|
let focusStartX = 0;
|
|
26759
|
-
|
|
26760
|
-
|
|
26761
|
-
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26766
|
-
shapeAttr.state[key].fill
|
|
26767
|
-
|
|
26768
|
-
|
|
26769
|
-
|
|
26770
|
-
|
|
26771
|
-
|
|
26772
|
-
|
|
26773
|
-
|
|
26774
|
-
|
|
26827
|
+
let shapeSize = 0;
|
|
26828
|
+
let shapeSpace = 0;
|
|
26829
|
+
if ((shapeAttr === null || shapeAttr === void 0 ? void 0 : shapeAttr.visible) !== false) {
|
|
26830
|
+
shapeSize = vutils.get(shapeAttr, 'style.size', DEFAULT_SHAPE_SIZE);
|
|
26831
|
+
shapeSpace = vutils.get(shapeAttr, 'space', DEFAULT_SHAPE_SPACE);
|
|
26832
|
+
const itemShape = createSymbol(Object.assign(Object.assign({ x: 0, y: 0, symbolType: 'circle', strokeBoundsBuffer: 0 }, shape), shapeAttr.style));
|
|
26833
|
+
Object.keys(shapeAttr.state || {}).forEach(key => {
|
|
26834
|
+
const color = shapeAttr.state[key].fill ||
|
|
26835
|
+
shapeAttr.state[key].stroke;
|
|
26836
|
+
if (shape.fill && vutils.isNil(shapeAttr.state[key].fill) && color) {
|
|
26837
|
+
shapeAttr.state[key].fill = color;
|
|
26838
|
+
}
|
|
26839
|
+
if (shape.stroke && vutils.isNil(shapeAttr.state[key].stroke) && color) {
|
|
26840
|
+
shapeAttr.state[key].stroke = color;
|
|
26841
|
+
}
|
|
26842
|
+
});
|
|
26843
|
+
this._appendDataToShape(itemShape, exports.LEGEND_ELEMENT_NAME.itemShape, item, itemGroup, shapeAttr === null || shapeAttr === void 0 ? void 0 : shapeAttr.state);
|
|
26844
|
+
itemShape.addState(isSelected ? exports.LegendStateValue.selected : exports.LegendStateValue.unSelected);
|
|
26845
|
+
innerGroup.add(itemShape);
|
|
26846
|
+
}
|
|
26775
26847
|
let focusShape;
|
|
26776
26848
|
let focusSpace = 0;
|
|
26777
26849
|
if (focus) {
|
|
@@ -26973,6 +27045,48 @@
|
|
|
26973
27045
|
this._pager.addEventListener('toNext', onPaging);
|
|
26974
27046
|
return true;
|
|
26975
27047
|
}
|
|
27048
|
+
_hover(legendItem, e) {
|
|
27049
|
+
this._lastActiveItem = legendItem;
|
|
27050
|
+
const selected = legendItem.hasState(exports.LegendStateValue.selected);
|
|
27051
|
+
if (selected) {
|
|
27052
|
+
this._setLegendItemState(legendItem, exports.LegendStateValue.selectedHover, e);
|
|
27053
|
+
}
|
|
27054
|
+
else {
|
|
27055
|
+
this._setLegendItemState(legendItem, exports.LegendStateValue.unSelectedHover, e);
|
|
27056
|
+
}
|
|
27057
|
+
const focusButton = legendItem.getChildren()[0].find(node => node.name === exports.LEGEND_ELEMENT_NAME.focus, false);
|
|
27058
|
+
if (focusButton) {
|
|
27059
|
+
focusButton.setAttribute('visible', true);
|
|
27060
|
+
}
|
|
27061
|
+
this._dispatchEvent(exports.LegendEvent.legendItemHover, legendItem, e);
|
|
27062
|
+
}
|
|
27063
|
+
_unHover(legendItem, e) {
|
|
27064
|
+
let attributeUpdate = false;
|
|
27065
|
+
if (legendItem.hasState(exports.LegendStateValue.unSelectedHover) || legendItem.hasState(exports.LegendStateValue.selectedHover)) {
|
|
27066
|
+
attributeUpdate = true;
|
|
27067
|
+
}
|
|
27068
|
+
legendItem.removeState(exports.LegendStateValue.unSelectedHover);
|
|
27069
|
+
legendItem.removeState(exports.LegendStateValue.selectedHover);
|
|
27070
|
+
legendItem
|
|
27071
|
+
.getChildren()[0]
|
|
27072
|
+
.getChildren()
|
|
27073
|
+
.forEach((child) => {
|
|
27074
|
+
if (!attributeUpdate &&
|
|
27075
|
+
(child.hasState(exports.LegendStateValue.unSelectedHover) || child.hasState(exports.LegendStateValue.selectedHover))) {
|
|
27076
|
+
attributeUpdate = true;
|
|
27077
|
+
}
|
|
27078
|
+
child.removeState(exports.LegendStateValue.unSelectedHover);
|
|
27079
|
+
child.removeState(exports.LegendStateValue.selectedHover);
|
|
27080
|
+
});
|
|
27081
|
+
const focusButton = legendItem.getChildren()[0].find(node => node.name === exports.LEGEND_ELEMENT_NAME.focus, false);
|
|
27082
|
+
if (focusButton) {
|
|
27083
|
+
focusButton.setAttribute('visible', false);
|
|
27084
|
+
}
|
|
27085
|
+
if (attributeUpdate) {
|
|
27086
|
+
this._dispatchEvent(exports.LegendEvent.legendItemAttributeUpdate, legendItem, e);
|
|
27087
|
+
}
|
|
27088
|
+
this._dispatchEvent(exports.LegendEvent.legendItemUnHover, legendItem, e);
|
|
27089
|
+
}
|
|
26976
27090
|
_setLegendItemState(legendItem, stateName, e) {
|
|
26977
27091
|
const keepCurrentStates = true;
|
|
26978
27092
|
let attributeUpdate = false;
|
|
@@ -30160,7 +30274,7 @@
|
|
|
30160
30274
|
}
|
|
30161
30275
|
};
|
|
30162
30276
|
|
|
30163
|
-
const version = "0.17.0-alpha.
|
|
30277
|
+
const version = "0.17.0-alpha.5";
|
|
30164
30278
|
|
|
30165
30279
|
exports.AbstractComponent = AbstractComponent;
|
|
30166
30280
|
exports.ArcInfo = ArcInfo;
|