@visactor/vrender-components 0.17.0-alpha.4 → 0.17.0-alpha.6
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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +161 -146
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
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 () {
|
|
@@ -3269,12 +3269,16 @@
|
|
|
3269
3269
|
var DefaultRectAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
3270
3270
|
width: 0,
|
|
3271
3271
|
height: 0,
|
|
3272
|
+
x1: 0,
|
|
3273
|
+
y1: 0,
|
|
3272
3274
|
strokeBoundsBuffer: 0,
|
|
3273
3275
|
cornerRadius: 0
|
|
3274
3276
|
});
|
|
3275
3277
|
var DefaultRect3dAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
3276
3278
|
width: 0,
|
|
3277
3279
|
height: 0,
|
|
3280
|
+
x1: 0,
|
|
3281
|
+
y1: 0,
|
|
3278
3282
|
cornerRadius: 0,
|
|
3279
3283
|
length: 0
|
|
3280
3284
|
});
|
|
@@ -4113,7 +4117,7 @@
|
|
|
4113
4117
|
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
4118
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4115
4119
|
},
|
|
4116
|
-
__metadata$
|
|
4120
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
4117
4121
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
4118
4122
|
},
|
|
4119
4123
|
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -4198,7 +4202,7 @@
|
|
|
4198
4202
|
}]);
|
|
4199
4203
|
return DefaultGraphicUtil;
|
|
4200
4204
|
}();
|
|
4201
|
-
DefaultGraphicUtil = __decorate$D([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$
|
|
4205
|
+
DefaultGraphicUtil = __decorate$D([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(TextMeasureContribution)), __metadata$r("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
4202
4206
|
var TransformMode;
|
|
4203
4207
|
!function (TransformMode) {
|
|
4204
4208
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -4275,7 +4279,7 @@
|
|
|
4275
4279
|
}]);
|
|
4276
4280
|
return DefaultTransformUtil;
|
|
4277
4281
|
}();
|
|
4278
|
-
DefaultTransformUtil = __decorate$D([injectable(), __metadata$
|
|
4282
|
+
DefaultTransformUtil = __decorate$D([injectable(), __metadata$r("design:paramtypes", [])], DefaultTransformUtil);
|
|
4279
4283
|
|
|
4280
4284
|
var defaultThemeObj = {
|
|
4281
4285
|
arc: DefaultArcAttribute,
|
|
@@ -6555,19 +6559,15 @@
|
|
|
6555
6559
|
key: "getOffsetXY",
|
|
6556
6560
|
value: function getOffsetXY(attr) {
|
|
6557
6561
|
var includeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6562
|
+
var _a, _b;
|
|
6558
6563
|
var _this$attribute = this.attribute,
|
|
6559
6564
|
_this$attribute$dx = _this$attribute.dx,
|
|
6560
6565
|
dx = _this$attribute$dx === void 0 ? attr.dx : _this$attribute$dx,
|
|
6561
6566
|
_this$attribute$dy = _this$attribute.dy,
|
|
6562
6567
|
dy = _this$attribute$dy === void 0 ? attr.dy : _this$attribute$dy;
|
|
6563
6568
|
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;
|
|
6569
|
+
var attribute = this.parent.attribute;
|
|
6570
|
+
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
6571
|
} else point.x = dx, point.y = dy;
|
|
6572
6572
|
return point;
|
|
6573
6573
|
}
|
|
@@ -7090,11 +7090,11 @@
|
|
|
7090
7090
|
value: function doUpdateGlobalMatrix() {
|
|
7091
7091
|
if (this.parent) {
|
|
7092
7092
|
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$
|
|
7093
|
+
var _this$parent$attribut = this.parent.attribute,
|
|
7094
|
+
_this$parent$attribut2 = _this$parent$attribut.scrollX,
|
|
7095
|
+
scrollX = _this$parent$attribut2 === void 0 ? 0 : _this$parent$attribut2,
|
|
7096
|
+
_this$parent$attribut3 = _this$parent$attribut.scrollY,
|
|
7097
|
+
scrollY = _this$parent$attribut3 === void 0 ? 0 : _this$parent$attribut3;
|
|
7098
7098
|
this._globalTransMatrix.translate(scrollX, scrollY);
|
|
7099
7099
|
}
|
|
7100
7100
|
}
|
|
@@ -8088,7 +8088,7 @@
|
|
|
8088
8088
|
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
8089
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8090
8090
|
},
|
|
8091
|
-
__metadata$
|
|
8091
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
8092
8092
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
8093
8093
|
};
|
|
8094
8094
|
var DefaultLayerService = /*#__PURE__*/function () {
|
|
@@ -8168,7 +8168,7 @@
|
|
|
8168
8168
|
}]);
|
|
8169
8169
|
return DefaultLayerService;
|
|
8170
8170
|
}();
|
|
8171
|
-
DefaultLayerService = __decorate$C([injectable(), __metadata$
|
|
8171
|
+
DefaultLayerService = __decorate$C([injectable(), __metadata$q("design:paramtypes", [])], DefaultLayerService);
|
|
8172
8172
|
|
|
8173
8173
|
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
8174
8174
|
var d,
|
|
@@ -8177,7 +8177,7 @@
|
|
|
8177
8177
|
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
8178
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8179
8179
|
},
|
|
8180
|
-
__metadata$
|
|
8180
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
8181
8181
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
8182
8182
|
};
|
|
8183
8183
|
var VWindow = Symbol["for"]("VWindow");
|
|
@@ -8330,7 +8330,7 @@
|
|
|
8330
8330
|
}]);
|
|
8331
8331
|
return DefaultWindow;
|
|
8332
8332
|
}();
|
|
8333
|
-
DefaultWindow = __decorate$B([injectable(), __metadata$
|
|
8333
|
+
DefaultWindow = __decorate$B([injectable(), __metadata$p("design:paramtypes", [])], DefaultWindow);
|
|
8334
8334
|
|
|
8335
8335
|
var coreModule = new ContainerModule(function (bind) {
|
|
8336
8336
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -8349,13 +8349,13 @@
|
|
|
8349
8349
|
return fill && opacity * fillOpacity > 0;
|
|
8350
8350
|
}
|
|
8351
8351
|
function rectFillVisible(opacity, fillOpacity, width, height, fill) {
|
|
8352
|
-
return fill && opacity * fillOpacity > 0 && width
|
|
8352
|
+
return fill && opacity * fillOpacity > 0 && 0 !== width && 0 !== height;
|
|
8353
8353
|
}
|
|
8354
8354
|
function strokeVisible(opacity, strokeOpacity) {
|
|
8355
8355
|
return opacity * strokeOpacity > 0;
|
|
8356
8356
|
}
|
|
8357
8357
|
function rectStrokeVisible(opacity, strokeOpacity, width, height) {
|
|
8358
|
-
return opacity * strokeOpacity > 0 && width
|
|
8358
|
+
return opacity * strokeOpacity > 0 && 0 !== width && 0 !== height;
|
|
8359
8359
|
}
|
|
8360
8360
|
function drawPathProxy(graphic, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
8361
8361
|
if (!graphic.pathProxy) return !1;
|
|
@@ -10409,7 +10409,7 @@
|
|
|
10409
10409
|
curveType: 1
|
|
10410
10410
|
}, NOWORK_ANIMATE_ATTR);
|
|
10411
10411
|
|
|
10412
|
-
var RECT_UPDATE_TAG_KEY = ["width", "height", "cornerRadius"].concat(_toConsumableArray(GRAPHIC_UPDATE_TAG_KEY));
|
|
10412
|
+
var RECT_UPDATE_TAG_KEY = ["width", "x1", "y1", "height", "cornerRadius"].concat(_toConsumableArray(GRAPHIC_UPDATE_TAG_KEY));
|
|
10413
10413
|
var Rect = /*#__PURE__*/function (_Graphic) {
|
|
10414
10414
|
_inherits(Rect, _Graphic);
|
|
10415
10415
|
var _super = _createSuper(Rect);
|
|
@@ -10427,10 +10427,7 @@
|
|
|
10427
10427
|
}, {
|
|
10428
10428
|
key: "_isValid",
|
|
10429
10429
|
value: function _isValid() {
|
|
10430
|
-
|
|
10431
|
-
width = _this$attribute.width,
|
|
10432
|
-
height = _this$attribute.height;
|
|
10433
|
-
return this._validNumber(width) && this._validNumber(height);
|
|
10430
|
+
return !0;
|
|
10434
10431
|
}
|
|
10435
10432
|
}, {
|
|
10436
10433
|
key: "doUpdateAABBBounds",
|
|
@@ -10467,11 +10464,7 @@
|
|
|
10467
10464
|
}, {
|
|
10468
10465
|
key: "toCustomPath",
|
|
10469
10466
|
value: function toCustomPath() {
|
|
10470
|
-
|
|
10471
|
-
width = attribute.width,
|
|
10472
|
-
height = attribute.height,
|
|
10473
|
-
path = new CustomPath2D();
|
|
10474
|
-
return path.moveTo(0, 0), path.rect(0, 0, width, height), path;
|
|
10467
|
+
throw new Error("暂不支持");
|
|
10475
10468
|
}
|
|
10476
10469
|
}, {
|
|
10477
10470
|
key: "clone",
|
|
@@ -11977,7 +11970,7 @@
|
|
|
11977
11970
|
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);
|
|
11978
11971
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11979
11972
|
},
|
|
11980
|
-
__metadata$
|
|
11973
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
11981
11974
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11982
11975
|
},
|
|
11983
11976
|
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -12200,11 +12193,13 @@
|
|
|
12200
12193
|
key: "updateRectAABBBounds",
|
|
12201
12194
|
value: function updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
|
|
12202
12195
|
if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
|
|
12203
|
-
var
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12196
|
+
var width = attribute.width,
|
|
12197
|
+
height = attribute.height;
|
|
12198
|
+
var x1 = attribute.x1,
|
|
12199
|
+
y1 = attribute.y1,
|
|
12200
|
+
x = attribute.x,
|
|
12201
|
+
y = attribute.y;
|
|
12202
|
+
width = null != width ? width : x1 - x, height = null != height ? height : y1 - y, aabbBounds.set(0, 0, width || 0, height || 0);
|
|
12208
12203
|
}
|
|
12209
12204
|
var tb1 = this.tempAABBBounds1,
|
|
12210
12205
|
tb2 = this.tempAABBBounds2;
|
|
@@ -12240,10 +12235,10 @@
|
|
|
12240
12235
|
key: "updateRichTextAABBBounds",
|
|
12241
12236
|
value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
|
|
12242
12237
|
if (!graphic) return aabbBounds;
|
|
12243
|
-
var _attribute$
|
|
12244
|
-
width = _attribute$
|
|
12245
|
-
_attribute$
|
|
12246
|
-
height = _attribute$
|
|
12238
|
+
var _attribute$width = attribute.width,
|
|
12239
|
+
width = _attribute$width === void 0 ? richtextTheme.width : _attribute$width,
|
|
12240
|
+
_attribute$height = attribute.height,
|
|
12241
|
+
height = _attribute$height === void 0 ? richtextTheme.height : _attribute$height,
|
|
12247
12242
|
_attribute$maxWidth = attribute.maxWidth,
|
|
12248
12243
|
maxWidth = _attribute$maxWidth === void 0 ? richtextTheme.maxWidth : _attribute$maxWidth,
|
|
12249
12244
|
_attribute$maxHeight = attribute.maxHeight,
|
|
@@ -12355,8 +12350,8 @@
|
|
|
12355
12350
|
if (!stage || !stage.camera) return aabbBounds;
|
|
12356
12351
|
var _attribute$outerRadiu = attribute.outerRadius,
|
|
12357
12352
|
outerRadius = _attribute$outerRadiu === void 0 ? arcTheme.outerRadius : _attribute$outerRadiu,
|
|
12358
|
-
_attribute$
|
|
12359
|
-
height = _attribute$
|
|
12353
|
+
_attribute$height2 = attribute.height,
|
|
12354
|
+
height = _attribute$height2 === void 0 ? 0 : _attribute$height2,
|
|
12360
12355
|
r = outerRadius + height;
|
|
12361
12356
|
aabbBounds.setValue(-r, -r, r, r);
|
|
12362
12357
|
var tb1 = this.tempAABBBounds1,
|
|
@@ -12556,10 +12551,10 @@
|
|
|
12556
12551
|
key: "updateImageAABBBounds",
|
|
12557
12552
|
value: function updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
|
|
12558
12553
|
if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
|
|
12559
|
-
var _attribute$
|
|
12560
|
-
width = _attribute$
|
|
12561
|
-
_attribute$
|
|
12562
|
-
height = _attribute$
|
|
12554
|
+
var _attribute$width2 = attribute.width,
|
|
12555
|
+
width = _attribute$width2 === void 0 ? imageTheme.width : _attribute$width2,
|
|
12556
|
+
_attribute$height3 = attribute.height,
|
|
12557
|
+
height = _attribute$height3 === void 0 ? imageTheme.height : _attribute$height3;
|
|
12563
12558
|
aabbBounds.set(0, 0, width, height);
|
|
12564
12559
|
}
|
|
12565
12560
|
var tb1 = this.tempAABBBounds1,
|
|
@@ -12607,7 +12602,7 @@
|
|
|
12607
12602
|
}]);
|
|
12608
12603
|
return DefaultGraphicService;
|
|
12609
12604
|
}();
|
|
12610
|
-
DefaultGraphicService = __decorate$A([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$
|
|
12605
|
+
DefaultGraphicService = __decorate$A([injectable(), __param$g(0, inject(GraphicCreator)), __metadata$o("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12611
12606
|
|
|
12612
12607
|
var ShadowRoot = /*#__PURE__*/function (_Group) {
|
|
12613
12608
|
_inherits(ShadowRoot, _Group);
|
|
@@ -12729,6 +12724,12 @@
|
|
|
12729
12724
|
}
|
|
12730
12725
|
createRichText({});
|
|
12731
12726
|
|
|
12727
|
+
var result = {
|
|
12728
|
+
x: 0,
|
|
12729
|
+
y: 0,
|
|
12730
|
+
z: 0,
|
|
12731
|
+
lastModelMatrix: null
|
|
12732
|
+
};
|
|
12732
12733
|
var BaseRender = /*#__PURE__*/function () {
|
|
12733
12734
|
function BaseRender() {
|
|
12734
12735
|
_classCallCheck(this, BaseRender);
|
|
@@ -12795,8 +12796,7 @@
|
|
|
12795
12796
|
key: "transform",
|
|
12796
12797
|
value: function transform(graphic, graphicAttribute, context) {
|
|
12797
12798
|
var use3dMatrixIn3dMode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
|
12798
|
-
var
|
|
12799
|
-
_graphic$attribute2 = graphic.attribute,
|
|
12799
|
+
var _graphic$attribute2 = graphic.attribute,
|
|
12800
12800
|
_graphic$attribute2$x = _graphic$attribute2.x,
|
|
12801
12801
|
x = _graphic$attribute2$x === void 0 ? graphicAttribute.x : _graphic$attribute2$x,
|
|
12802
12802
|
_graphic$attribute2$y = _graphic$attribute2.y,
|
|
@@ -12810,16 +12810,11 @@
|
|
|
12810
12810
|
_graphic$attribute2$a = _graphic$attribute2.angle,
|
|
12811
12811
|
angle = _graphic$attribute2$a === void 0 ? graphicAttribute.angle : _graphic$attribute2$a,
|
|
12812
12812
|
postMatrix = _graphic$attribute2.postMatrix,
|
|
12813
|
-
onlyTranslate = transMatrix.onlyTranslate() && !postMatrix,
|
|
12814
12813
|
lastModelMatrix = context.modelMatrix,
|
|
12815
|
-
camera = context.camera
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
z: z,
|
|
12820
|
-
lastModelMatrix: lastModelMatrix
|
|
12821
|
-
},
|
|
12822
|
-
shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic));
|
|
12814
|
+
camera = context.camera;
|
|
12815
|
+
result.x = x, result.y = y, result.z = z, result.lastModelMatrix = lastModelMatrix;
|
|
12816
|
+
var shouldTransform3d = camera && (use3dMatrixIn3dMode || shouldUseMat4(graphic)),
|
|
12817
|
+
onlyTranslate = shouldTransform3d ? graphic.transMatrix.onlyTranslate() && !postMatrix : 1 === scaleX && 1 === scaleY && 0 === angle && !postMatrix;
|
|
12823
12818
|
if (shouldTransform3d) {
|
|
12824
12819
|
var nextModelMatrix = mat4Allocate.allocate(),
|
|
12825
12820
|
modelMatrix = mat4Allocate.allocate();
|
|
@@ -12993,7 +12988,7 @@
|
|
|
12993
12988
|
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);
|
|
12994
12989
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12995
12990
|
},
|
|
12996
|
-
__metadata$
|
|
12991
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
12997
12992
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
12998
12993
|
},
|
|
12999
12994
|
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13046,7 +13041,7 @@
|
|
|
13046
13041
|
}]);
|
|
13047
13042
|
return DefaultBaseInteractiveRenderContribution;
|
|
13048
13043
|
}();
|
|
13049
|
-
DefaultBaseInteractiveRenderContribution = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(InteractiveSubRenderContribution)), __metadata$
|
|
13044
|
+
DefaultBaseInteractiveRenderContribution = __decorate$z([injectable(), __param$f(0, inject(ContributionProvider)), __param$f(0, named(InteractiveSubRenderContribution)), __metadata$n("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
13050
13045
|
var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
13051
13046
|
function DefaultBaseTextureRenderContribution() {
|
|
13052
13047
|
_classCallCheck(this, DefaultBaseTextureRenderContribution);
|
|
@@ -13357,7 +13352,7 @@
|
|
|
13357
13352
|
var halfPi = vutils.pi / 2;
|
|
13358
13353
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
13359
13354
|
var cornerRadius;
|
|
13360
|
-
if (vutils.isNumber(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius, rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
|
|
13355
|
+
if (width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), vutils.isNumber(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius, rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
|
|
13361
13356
|
var cornerRadiusArr = rectCornerRadius;
|
|
13362
13357
|
switch (cornerRadiusArr.length) {
|
|
13363
13358
|
case 0:
|
|
@@ -13501,10 +13496,6 @@
|
|
|
13501
13496
|
doInnerBorder = innerBorder && !1 !== innerBorder.visible;
|
|
13502
13497
|
if (!doOuterBorder && !doInnerBorder) return;
|
|
13503
13498
|
var _rect$attribute2 = rect.attribute,
|
|
13504
|
-
_rect$attribute2$widt = _rect$attribute2.width,
|
|
13505
|
-
width = _rect$attribute2$widt === void 0 ? rectAttribute.width : _rect$attribute2$widt,
|
|
13506
|
-
_rect$attribute2$heig = _rect$attribute2.height,
|
|
13507
|
-
height = _rect$attribute2$heig === void 0 ? rectAttribute.height : _rect$attribute2$heig,
|
|
13508
13499
|
_rect$attribute2$corn = _rect$attribute2.cornerRadius,
|
|
13509
13500
|
cornerRadius = _rect$attribute2$corn === void 0 ? rectAttribute.cornerRadius : _rect$attribute2$corn,
|
|
13510
13501
|
_rect$attribute2$opac = _rect$attribute2.opacity,
|
|
@@ -13517,7 +13508,13 @@
|
|
|
13517
13508
|
scaleX = _rect$attribute2$scal === void 0 ? rectAttribute.scaleX : _rect$attribute2$scal,
|
|
13518
13509
|
_rect$attribute2$scal2 = _rect$attribute2.scaleY,
|
|
13519
13510
|
scaleY = _rect$attribute2$scal2 === void 0 ? rectAttribute.scaleY : _rect$attribute2$scal2,
|
|
13520
|
-
|
|
13511
|
+
x1 = _rect$attribute2.x1,
|
|
13512
|
+
y1 = _rect$attribute2.y1;
|
|
13513
|
+
var _rect$attribute3 = rect.attribute,
|
|
13514
|
+
width = _rect$attribute3.width,
|
|
13515
|
+
height = _rect$attribute3.height;
|
|
13516
|
+
width = (null != width ? width : x1 - x) || 0, height = (null != height ? height : y1 - y) || 0;
|
|
13517
|
+
var doStrokeOuter = !(!outerBorder || !outerBorder.stroke),
|
|
13521
13518
|
doStrokeInner = !(!innerBorder || !innerBorder.stroke);
|
|
13522
13519
|
if (doOuterBorder) {
|
|
13523
13520
|
var _outerBorder$distance = outerBorder.distance,
|
|
@@ -13576,13 +13573,13 @@
|
|
|
13576
13573
|
_createClass(SplitRectAfterRenderContribution, [{
|
|
13577
13574
|
key: "drawShape",
|
|
13578
13575
|
value: function drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, groupAttribute, drawContext, fillCb, strokeCb) {
|
|
13579
|
-
var _rect$
|
|
13580
|
-
_rect$
|
|
13581
|
-
width = _rect$
|
|
13582
|
-
_rect$
|
|
13583
|
-
height = _rect$
|
|
13584
|
-
_rect$
|
|
13585
|
-
stroke = _rect$
|
|
13576
|
+
var _rect$attribute4 = rect.attribute,
|
|
13577
|
+
_rect$attribute4$widt = _rect$attribute4.width,
|
|
13578
|
+
width = _rect$attribute4$widt === void 0 ? groupAttribute.width : _rect$attribute4$widt,
|
|
13579
|
+
_rect$attribute4$heig = _rect$attribute4.height,
|
|
13580
|
+
height = _rect$attribute4$heig === void 0 ? groupAttribute.height : _rect$attribute4$heig,
|
|
13581
|
+
_rect$attribute4$stro = _rect$attribute4.stroke,
|
|
13582
|
+
stroke = _rect$attribute4$stro === void 0 ? groupAttribute.stroke : _rect$attribute4$stro;
|
|
13586
13583
|
if (Array.isArray(stroke) && stroke.some(function (s) {
|
|
13587
13584
|
return !1 === s;
|
|
13588
13585
|
})) {
|
|
@@ -13666,7 +13663,7 @@
|
|
|
13666
13663
|
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);
|
|
13667
13664
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13668
13665
|
},
|
|
13669
|
-
__metadata$
|
|
13666
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
13670
13667
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13671
13668
|
},
|
|
13672
13669
|
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13839,7 +13836,7 @@
|
|
|
13839
13836
|
}]);
|
|
13840
13837
|
return DefaultCanvasArcRender;
|
|
13841
13838
|
}(BaseRender);
|
|
13842
|
-
DefaultCanvasArcRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(ArcRenderContribution)), __metadata$
|
|
13839
|
+
DefaultCanvasArcRender = __decorate$y([injectable(), __param$e(0, inject(ContributionProvider)), __param$e(0, named(ArcRenderContribution)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
13843
13840
|
|
|
13844
13841
|
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13845
13842
|
var d,
|
|
@@ -13848,7 +13845,7 @@
|
|
|
13848
13845
|
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);
|
|
13849
13846
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13850
13847
|
},
|
|
13851
|
-
__metadata$
|
|
13848
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
13852
13849
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13853
13850
|
},
|
|
13854
13851
|
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13897,7 +13894,7 @@
|
|
|
13897
13894
|
}]);
|
|
13898
13895
|
return DefaultCanvasCircleRender;
|
|
13899
13896
|
}(BaseRender);
|
|
13900
|
-
DefaultCanvasCircleRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(CircleRenderContribution)), __metadata$
|
|
13897
|
+
DefaultCanvasCircleRender = __decorate$x([injectable(), __param$d(0, inject(ContributionProvider)), __param$d(0, named(CircleRenderContribution)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
13901
13898
|
|
|
13902
13899
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
13903
13900
|
var _a;
|
|
@@ -14429,7 +14426,7 @@
|
|
|
14429
14426
|
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);
|
|
14430
14427
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14431
14428
|
},
|
|
14432
|
-
__metadata$
|
|
14429
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
14433
14430
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14434
14431
|
},
|
|
14435
14432
|
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14702,7 +14699,7 @@
|
|
|
14702
14699
|
}]);
|
|
14703
14700
|
return DefaultCanvasAreaRender;
|
|
14704
14701
|
}(BaseRender);
|
|
14705
|
-
DefaultCanvasAreaRender = __decorate$v([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(AreaRenderContribution)), __metadata$
|
|
14702
|
+
DefaultCanvasAreaRender = __decorate$v([injectable(), __param$c(0, inject(ContributionProvider)), __param$c(0, named(AreaRenderContribution)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
14706
14703
|
|
|
14707
14704
|
var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
14708
14705
|
var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -14714,7 +14711,7 @@
|
|
|
14714
14711
|
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);
|
|
14715
14712
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14716
14713
|
},
|
|
14717
|
-
__metadata$
|
|
14714
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
14718
14715
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14719
14716
|
},
|
|
14720
14717
|
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14734,14 +14731,14 @@
|
|
|
14734
14731
|
_createClass(DefaultCanvasPathRender, [{
|
|
14735
14732
|
key: "drawShape",
|
|
14736
14733
|
value: function drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14737
|
-
var _a, _b;
|
|
14738
|
-
var pathAttribute = getTheme(path, null == params ? void 0 : params.theme).path,
|
|
14734
|
+
var _a, _b, _c;
|
|
14735
|
+
var pathAttribute = null !== (_a = this.tempTheme) && void 0 !== _a ? _a : getTheme(path, null == params ? void 0 : params.theme).path,
|
|
14739
14736
|
_path$attribute = path.attribute,
|
|
14740
14737
|
_path$attribute$x = _path$attribute.x,
|
|
14741
14738
|
originX = _path$attribute$x === void 0 ? pathAttribute.x : _path$attribute$x,
|
|
14742
14739
|
_path$attribute$y = _path$attribute.y,
|
|
14743
14740
|
originY = _path$attribute$y === void 0 ? pathAttribute.y : _path$attribute$y,
|
|
14744
|
-
z = null !== (
|
|
14741
|
+
z = null !== (_b = this.z) && void 0 !== _b ? _b : 0,
|
|
14745
14742
|
data = this.valid(path, pathAttribute, fillCb, strokeCb);
|
|
14746
14743
|
if (!data) return;
|
|
14747
14744
|
var fVisible = data.fVisible,
|
|
@@ -14749,7 +14746,7 @@
|
|
|
14749
14746
|
doFill = data.doFill,
|
|
14750
14747
|
doStroke = data.doStroke;
|
|
14751
14748
|
if (context.beginPath(), path.pathShape) renderCommandList(path.pathShape.commandList, context, x, y, 1, 1, z);else {
|
|
14752
|
-
var path2D = null !== (
|
|
14749
|
+
var path2D = null !== (_c = path.attribute.path) && void 0 !== _c ? _c : pathAttribute.path;
|
|
14753
14750
|
renderCommandList(path2D.commandList, context, x, y, 1, 1, z);
|
|
14754
14751
|
}
|
|
14755
14752
|
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);
|
|
@@ -14758,12 +14755,12 @@
|
|
|
14758
14755
|
key: "draw",
|
|
14759
14756
|
value: function draw(path, renderService, drawContext, params) {
|
|
14760
14757
|
var pathAttribute = getTheme(path, null == params ? void 0 : params.theme).path;
|
|
14761
|
-
this._draw(path, pathAttribute, !1, drawContext, params);
|
|
14758
|
+
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14762
14759
|
}
|
|
14763
14760
|
}]);
|
|
14764
14761
|
return DefaultCanvasPathRender;
|
|
14765
14762
|
}(BaseRender);
|
|
14766
|
-
DefaultCanvasPathRender = __decorate$u([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PathRenderContribution)), __metadata$
|
|
14763
|
+
DefaultCanvasPathRender = __decorate$u([injectable(), __param$b(0, inject(ContributionProvider)), __param$b(0, named(PathRenderContribution)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
14767
14764
|
|
|
14768
14765
|
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14769
14766
|
var d,
|
|
@@ -14772,7 +14769,7 @@
|
|
|
14772
14769
|
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);
|
|
14773
14770
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14774
14771
|
},
|
|
14775
|
-
__metadata$
|
|
14772
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
14776
14773
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14777
14774
|
},
|
|
14778
14775
|
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14792,17 +14789,14 @@
|
|
|
14792
14789
|
_createClass(DefaultCanvasRectRender, [{
|
|
14793
14790
|
key: "drawShape",
|
|
14794
14791
|
value: function drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14795
|
-
var
|
|
14792
|
+
var _a;
|
|
14793
|
+
var rectAttribute = null !== (_a = this.tempTheme) && void 0 !== _a ? _a : getTheme(rect, null == params ? void 0 : params.theme).rect,
|
|
14796
14794
|
_rect$attribute = rect.attribute,
|
|
14797
14795
|
_rect$attribute$fill = _rect$attribute.fill,
|
|
14798
14796
|
fill = _rect$attribute$fill === void 0 ? rectAttribute.fill : _rect$attribute$fill,
|
|
14799
14797
|
background = _rect$attribute.background,
|
|
14800
14798
|
_rect$attribute$strok = _rect$attribute.stroke,
|
|
14801
14799
|
stroke = _rect$attribute$strok === void 0 ? rectAttribute.stroke : _rect$attribute$strok,
|
|
14802
|
-
_rect$attribute$width = _rect$attribute.width,
|
|
14803
|
-
width = _rect$attribute$width === void 0 ? rectAttribute.width : _rect$attribute$width,
|
|
14804
|
-
_rect$attribute$heigh = _rect$attribute.height,
|
|
14805
|
-
height = _rect$attribute$heigh === void 0 ? rectAttribute.height : _rect$attribute$heigh,
|
|
14806
14800
|
_rect$attribute$corne = _rect$attribute.cornerRadius,
|
|
14807
14801
|
cornerRadius = _rect$attribute$corne === void 0 ? rectAttribute.cornerRadius : _rect$attribute$corne,
|
|
14808
14802
|
_rect$attribute$opaci = _rect$attribute.opacity,
|
|
@@ -14815,11 +14809,17 @@
|
|
|
14815
14809
|
strokeOpacity = _rect$attribute$strok2 === void 0 ? rectAttribute.strokeOpacity : _rect$attribute$strok2,
|
|
14816
14810
|
_rect$attribute$visib = _rect$attribute.visible,
|
|
14817
14811
|
visible = _rect$attribute$visib === void 0 ? rectAttribute.visible : _rect$attribute$visib,
|
|
14812
|
+
x1 = _rect$attribute.x1,
|
|
14813
|
+
y1 = _rect$attribute.y1,
|
|
14818
14814
|
_rect$attribute$x = _rect$attribute.x,
|
|
14819
14815
|
originX = _rect$attribute$x === void 0 ? rectAttribute.x : _rect$attribute$x,
|
|
14820
14816
|
_rect$attribute$y = _rect$attribute.y,
|
|
14821
|
-
originY = _rect$attribute$y === void 0 ? rectAttribute.y : _rect$attribute$y
|
|
14822
|
-
|
|
14817
|
+
originY = _rect$attribute$y === void 0 ? rectAttribute.y : _rect$attribute$y;
|
|
14818
|
+
var _rect$attribute2 = rect.attribute,
|
|
14819
|
+
width = _rect$attribute2.width,
|
|
14820
|
+
height = _rect$attribute2.height;
|
|
14821
|
+
width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0;
|
|
14822
|
+
var fVisible = rectFillVisible(opacity, fillOpacity, width, height, fill),
|
|
14823
14823
|
sVisible = rectStrokeVisible(opacity, strokeOpacity, width, height),
|
|
14824
14824
|
doFill = runFill(fill, background),
|
|
14825
14825
|
doStroke = runStroke(stroke, lineWidth);
|
|
@@ -14839,12 +14839,12 @@
|
|
|
14839
14839
|
key: "draw",
|
|
14840
14840
|
value: function draw(rect, renderService, drawContext, params) {
|
|
14841
14841
|
var rectAttribute = getTheme(rect, null == params ? void 0 : params.theme).rect;
|
|
14842
|
-
this._draw(rect, rectAttribute, !1, drawContext, params);
|
|
14842
|
+
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14843
14843
|
}
|
|
14844
14844
|
}]);
|
|
14845
14845
|
return DefaultCanvasRectRender;
|
|
14846
14846
|
}(BaseRender);
|
|
14847
|
-
DefaultCanvasRectRender = __decorate$t([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(RectRenderContribution)), __metadata$
|
|
14847
|
+
DefaultCanvasRectRender = __decorate$t([injectable(), __param$a(0, inject(ContributionProvider)), __param$a(0, named(RectRenderContribution)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
14848
14848
|
|
|
14849
14849
|
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14850
14850
|
var d,
|
|
@@ -14853,7 +14853,7 @@
|
|
|
14853
14853
|
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);
|
|
14854
14854
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14855
14855
|
},
|
|
14856
|
-
__metadata$
|
|
14856
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
14857
14857
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14858
14858
|
},
|
|
14859
14859
|
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14917,7 +14917,7 @@
|
|
|
14917
14917
|
}]);
|
|
14918
14918
|
return DefaultCanvasSymbolRender;
|
|
14919
14919
|
}(BaseRender);
|
|
14920
|
-
DefaultCanvasSymbolRender = __decorate$s([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(SymbolRenderContribution)), __metadata$
|
|
14920
|
+
DefaultCanvasSymbolRender = __decorate$s([injectable(), __param$9(0, inject(ContributionProvider)), __param$9(0, named(SymbolRenderContribution)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
14921
14921
|
|
|
14922
14922
|
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14923
14923
|
var d,
|
|
@@ -14926,7 +14926,7 @@
|
|
|
14926
14926
|
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);
|
|
14927
14927
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14928
14928
|
},
|
|
14929
|
-
__metadata$
|
|
14929
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
14930
14930
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14931
14931
|
},
|
|
14932
14932
|
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15147,7 +15147,7 @@
|
|
|
15147
15147
|
}]);
|
|
15148
15148
|
return DefaultCanvasTextRender;
|
|
15149
15149
|
}(BaseRender);
|
|
15150
|
-
DefaultCanvasTextRender = __decorate$r([injectable(), __param$8(0, inject(ContributionProvider)), __param$8(0, named(TextRenderContribution)), __metadata$
|
|
15150
|
+
DefaultCanvasTextRender = __decorate$r([injectable(), __param$8(0, inject(ContributionProvider)), __param$8(0, named(TextRenderContribution)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
15151
15151
|
|
|
15152
15152
|
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15153
15153
|
var d,
|
|
@@ -15222,7 +15222,7 @@
|
|
|
15222
15222
|
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);
|
|
15223
15223
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15224
15224
|
},
|
|
15225
|
-
__metadata$
|
|
15225
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
15226
15226
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15227
15227
|
},
|
|
15228
15228
|
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15273,7 +15273,7 @@
|
|
|
15273
15273
|
}]);
|
|
15274
15274
|
return DefaultCanvasPolygonRender;
|
|
15275
15275
|
}(BaseRender);
|
|
15276
|
-
DefaultCanvasPolygonRender = __decorate$p([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(PolygonRenderContribution)), __metadata$
|
|
15276
|
+
DefaultCanvasPolygonRender = __decorate$p([injectable(), __param$7(0, inject(ContributionProvider)), __param$7(0, named(PolygonRenderContribution)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
15277
15277
|
|
|
15278
15278
|
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15279
15279
|
var d,
|
|
@@ -15282,7 +15282,7 @@
|
|
|
15282
15282
|
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);
|
|
15283
15283
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15284
15284
|
},
|
|
15285
|
-
__metadata$
|
|
15285
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
15286
15286
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15287
15287
|
},
|
|
15288
15288
|
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15353,7 +15353,7 @@
|
|
|
15353
15353
|
}]);
|
|
15354
15354
|
return DefaultCanvasImageRender;
|
|
15355
15355
|
}(BaseRender);
|
|
15356
|
-
DefaultCanvasImageRender = __decorate$o([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(ImageRenderContribution)), __metadata$
|
|
15356
|
+
DefaultCanvasImageRender = __decorate$o([injectable(), __param$6(0, inject(ContributionProvider)), __param$6(0, named(ImageRenderContribution)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
15357
15357
|
|
|
15358
15358
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
15359
15359
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -15382,7 +15382,7 @@
|
|
|
15382
15382
|
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);
|
|
15383
15383
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15384
15384
|
},
|
|
15385
|
-
__metadata$
|
|
15385
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
15386
15386
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15387
15387
|
},
|
|
15388
15388
|
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15400,7 +15400,7 @@
|
|
|
15400
15400
|
key: "prepare",
|
|
15401
15401
|
value: function prepare(updateBounds) {
|
|
15402
15402
|
var _this = this;
|
|
15403
|
-
this.renderTreeRoots.forEach(function (g) {
|
|
15403
|
+
updateBounds && this.renderTreeRoots.forEach(function (g) {
|
|
15404
15404
|
_this._prepare(g, updateBounds);
|
|
15405
15405
|
});
|
|
15406
15406
|
}
|
|
@@ -15441,7 +15441,7 @@
|
|
|
15441
15441
|
}]);
|
|
15442
15442
|
return DefaultRenderService;
|
|
15443
15443
|
}();
|
|
15444
|
-
DefaultRenderService = __decorate$n([injectable(), __param$5(0, inject(DrawContribution)), __metadata$
|
|
15444
|
+
DefaultRenderService = __decorate$n([injectable(), __param$5(0, inject(DrawContribution)), __metadata$d("design:paramtypes", [Object])], DefaultRenderService);
|
|
15445
15445
|
|
|
15446
15446
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
15447
15447
|
bind(RenderService).to(DefaultRenderService).inSingletonScope();
|
|
@@ -15615,7 +15615,7 @@
|
|
|
15615
15615
|
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);
|
|
15616
15616
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15617
15617
|
},
|
|
15618
|
-
__metadata$
|
|
15618
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
15619
15619
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15620
15620
|
},
|
|
15621
15621
|
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15666,7 +15666,7 @@
|
|
|
15666
15666
|
}]);
|
|
15667
15667
|
return DefaultPluginService;
|
|
15668
15668
|
}();
|
|
15669
|
-
DefaultPluginService = __decorate$l([injectable(), __param$4(0, inject(ContributionProvider)), __param$4(0, named(AutoEnablePlugins)), __metadata$
|
|
15669
|
+
DefaultPluginService = __decorate$l([injectable(), __param$4(0, inject(ContributionProvider)), __param$4(0, named(AutoEnablePlugins)), __metadata$c("design:paramtypes", [Object])], DefaultPluginService);
|
|
15670
15670
|
|
|
15671
15671
|
var pluginModule = new ContainerModule(function (bind) {
|
|
15672
15672
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -15687,7 +15687,7 @@
|
|
|
15687
15687
|
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);
|
|
15688
15688
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15689
15689
|
},
|
|
15690
|
-
__metadata$
|
|
15690
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
15691
15691
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15692
15692
|
};
|
|
15693
15693
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15780,7 +15780,7 @@
|
|
|
15780
15780
|
}]);
|
|
15781
15781
|
return CanvasLayerHandlerContribution;
|
|
15782
15782
|
}();
|
|
15783
|
-
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$
|
|
15783
|
+
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$b("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
15784
15784
|
|
|
15785
15785
|
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15786
15786
|
var d,
|
|
@@ -15789,7 +15789,7 @@
|
|
|
15789
15789
|
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);
|
|
15790
15790
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15791
15791
|
},
|
|
15792
|
-
__metadata$
|
|
15792
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
15793
15793
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15794
15794
|
};
|
|
15795
15795
|
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15847,7 +15847,7 @@
|
|
|
15847
15847
|
}]);
|
|
15848
15848
|
return EmptyLayerHandlerContribution;
|
|
15849
15849
|
}();
|
|
15850
|
-
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$
|
|
15850
|
+
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$a("design:paramtypes", [])], EmptyLayerHandlerContribution);
|
|
15851
15851
|
|
|
15852
15852
|
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15853
15853
|
var d,
|
|
@@ -15856,7 +15856,7 @@
|
|
|
15856
15856
|
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);
|
|
15857
15857
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15858
15858
|
},
|
|
15859
|
-
__metadata$
|
|
15859
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
15860
15860
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15861
15861
|
};
|
|
15862
15862
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15943,7 +15943,7 @@
|
|
|
15943
15943
|
}]);
|
|
15944
15944
|
return OffscreenLayerHandlerContribution;
|
|
15945
15945
|
}();
|
|
15946
|
-
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$
|
|
15946
|
+
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$9("design:paramtypes", [])], OffscreenLayerHandlerContribution);
|
|
15947
15947
|
|
|
15948
15948
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
15949
15949
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
@@ -16071,12 +16071,15 @@
|
|
|
16071
16071
|
}
|
|
16072
16072
|
|
|
16073
16073
|
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16074
|
+
var d,
|
|
16075
|
+
c = arguments.length,
|
|
16076
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16077
|
+
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);
|
|
16078
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16079
|
+
},
|
|
16080
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
16081
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16082
|
+
};
|
|
16080
16083
|
var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
|
|
16081
16084
|
var tempDirtyBounds = new vutils.AABBBounds();
|
|
16082
16085
|
var ShadowRootDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
@@ -16109,21 +16112,15 @@
|
|
|
16109
16112
|
}]);
|
|
16110
16113
|
return ShadowRootDrawItemInterceptorContribution;
|
|
16111
16114
|
}();
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
this.order = 1;
|
|
16115
|
+
var DebugDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16116
|
+
function DebugDrawItemInterceptorContribution() {
|
|
16117
|
+
_classCallCheck(this, DebugDrawItemInterceptorContribution);
|
|
16118
|
+
this.order = 1, this.interceptors = [new ShadowRootDrawItemInterceptorContribution(), new Canvas3DDrawItemInterceptor(), new InteractiveDrawItemInterceptorContribution()];
|
|
16117
16119
|
}
|
|
16118
|
-
_createClass(
|
|
16120
|
+
_createClass(DebugDrawItemInterceptorContribution, [{
|
|
16119
16121
|
key: "afterDrawItem",
|
|
16120
16122
|
value: function afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16121
|
-
return
|
|
16122
|
-
}
|
|
16123
|
-
}, {
|
|
16124
|
-
key: "beforeDrawItem",
|
|
16125
|
-
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16126
|
-
return graphic.attribute.shadowRootIdx < 0 && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
16123
|
+
return graphic.attribute._debug_bounds && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
16127
16124
|
}
|
|
16128
16125
|
}, {
|
|
16129
16126
|
key: "drawItem",
|
|
@@ -16135,9 +16132,30 @@
|
|
|
16135
16132
|
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;
|
|
16136
16133
|
}
|
|
16137
16134
|
}]);
|
|
16135
|
+
return DebugDrawItemInterceptorContribution;
|
|
16136
|
+
}();
|
|
16137
|
+
var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16138
|
+
function CommonDrawItemInterceptorContribution() {
|
|
16139
|
+
_classCallCheck(this, CommonDrawItemInterceptorContribution);
|
|
16140
|
+
this.order = 1, this.interceptors = [new ShadowRootDrawItemInterceptorContribution(), new Canvas3DDrawItemInterceptor(), new InteractiveDrawItemInterceptorContribution(), new DebugDrawItemInterceptorContribution()];
|
|
16141
|
+
}
|
|
16142
|
+
_createClass(CommonDrawItemInterceptorContribution, [{
|
|
16143
|
+
key: "afterDrawItem",
|
|
16144
|
+
value: function afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16145
|
+
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;
|
|
16146
|
+
return !1;
|
|
16147
|
+
}
|
|
16148
|
+
}, {
|
|
16149
|
+
key: "beforeDrawItem",
|
|
16150
|
+
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
16151
|
+
if ((!graphic.in3dMode || drawContext.in3dInterceptor) && !graphic.shadowRoot && !(graphic.baseGraphic || graphic.attribute.globalZIndex || graphic.interactiveGraphic)) return !1;
|
|
16152
|
+
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;
|
|
16153
|
+
return !1;
|
|
16154
|
+
}
|
|
16155
|
+
}]);
|
|
16138
16156
|
return CommonDrawItemInterceptorContribution;
|
|
16139
16157
|
}();
|
|
16140
|
-
CommonDrawItemInterceptorContribution = __decorate$h([injectable()], CommonDrawItemInterceptorContribution);
|
|
16158
|
+
CommonDrawItemInterceptorContribution = __decorate$h([injectable(), __metadata$8("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
16141
16159
|
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16142
16160
|
function InteractiveDrawItemInterceptorContribution() {
|
|
16143
16161
|
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
@@ -16196,7 +16214,6 @@
|
|
|
16196
16214
|
}]);
|
|
16197
16215
|
return InteractiveDrawItemInterceptorContribution;
|
|
16198
16216
|
}();
|
|
16199
|
-
InteractiveDrawItemInterceptorContribution = __decorate$h([injectable()], InteractiveDrawItemInterceptorContribution);
|
|
16200
16217
|
var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
|
|
16201
16218
|
function Canvas3DDrawItemInterceptor() {
|
|
16202
16219
|
_classCallCheck(this, Canvas3DDrawItemInterceptor);
|
|
@@ -16287,7 +16304,6 @@
|
|
|
16287
16304
|
}]);
|
|
16288
16305
|
return Canvas3DDrawItemInterceptor;
|
|
16289
16306
|
}();
|
|
16290
|
-
Canvas3DDrawItemInterceptor = __decorate$h([injectable()], Canvas3DDrawItemInterceptor);
|
|
16291
16307
|
|
|
16292
16308
|
var DefaultBoundsAllocate = /*#__PURE__*/function () {
|
|
16293
16309
|
function DefaultBoundsAllocate() {
|
|
@@ -16365,9 +16381,7 @@
|
|
|
16365
16381
|
}, {
|
|
16366
16382
|
key: "prepareForDraw",
|
|
16367
16383
|
value: function prepareForDraw(renderService, drawContext) {
|
|
16368
|
-
|
|
16369
|
-
return a + b.count;
|
|
16370
|
-
}, 0) < this.global.optmizeSkipCheckBoundariesThreshold ? this.useDirtyBounds = !1 : this.useDirtyBounds = !0;
|
|
16384
|
+
drawContext.updateBounds ? this.useDirtyBounds = !0 : this.useDirtyBounds = !drawContext.stage.params.optimize.disableCheckGraphicWidthOutRange;
|
|
16371
16385
|
}
|
|
16372
16386
|
}, {
|
|
16373
16387
|
key: "draw",
|
|
@@ -16421,7 +16435,8 @@
|
|
|
16421
16435
|
if (drawContext["break"] || !1 === group.attribute.visibleAll) return;
|
|
16422
16436
|
if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext["break"] = !0, void this._increaseRender(group, drawContext);
|
|
16423
16437
|
if (this.useDirtyBounds && !vutils.isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
|
|
16424
|
-
var
|
|
16438
|
+
var tempBounds,
|
|
16439
|
+
nextM = parentMatrix;
|
|
16425
16440
|
if (this.useDirtyBounds) {
|
|
16426
16441
|
tempBounds = boundsAllocate.allocateByObj(this.dirtyBounds);
|
|
16427
16442
|
var gm = group.transMatrix;
|
|
@@ -17689,7 +17704,7 @@
|
|
|
17689
17704
|
DefaultCanvasPyramid3dRender = __decorate$7([injectable()], DefaultCanvasPyramid3dRender);
|
|
17690
17705
|
|
|
17691
17706
|
var renderModule = new ContainerModule(function (bind) {
|
|
17692
|
-
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(
|
|
17707
|
+
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);
|
|
17693
17708
|
});
|
|
17694
17709
|
|
|
17695
17710
|
function load(container) {
|
|
@@ -30262,7 +30277,7 @@
|
|
|
30262
30277
|
}
|
|
30263
30278
|
};
|
|
30264
30279
|
|
|
30265
|
-
const version = "0.17.0-alpha.
|
|
30280
|
+
const version = "0.17.0-alpha.6";
|
|
30266
30281
|
|
|
30267
30282
|
exports.AbstractComponent = AbstractComponent;
|
|
30268
30283
|
exports.ArcInfo = ArcInfo;
|