@visactor/vrender-components 0.17.0-alpha.4 → 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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +112 -100
- 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 () {
|
|
@@ -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();
|
|
@@ -11977,7 +11973,7 @@
|
|
|
11977
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);
|
|
11978
11974
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11979
11975
|
},
|
|
11980
|
-
__metadata$
|
|
11976
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
11981
11977
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11982
11978
|
},
|
|
11983
11979
|
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -12607,7 +12603,7 @@
|
|
|
12607
12603
|
}]);
|
|
12608
12604
|
return DefaultGraphicService;
|
|
12609
12605
|
}();
|
|
12610
|
-
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);
|
|
12611
12607
|
|
|
12612
12608
|
var ShadowRoot = /*#__PURE__*/function (_Group) {
|
|
12613
12609
|
_inherits(ShadowRoot, _Group);
|
|
@@ -12729,6 +12725,12 @@
|
|
|
12729
12725
|
}
|
|
12730
12726
|
createRichText({});
|
|
12731
12727
|
|
|
12728
|
+
var result = {
|
|
12729
|
+
x: 0,
|
|
12730
|
+
y: 0,
|
|
12731
|
+
z: 0,
|
|
12732
|
+
lastModelMatrix: null
|
|
12733
|
+
};
|
|
12732
12734
|
var BaseRender = /*#__PURE__*/function () {
|
|
12733
12735
|
function BaseRender() {
|
|
12734
12736
|
_classCallCheck(this, BaseRender);
|
|
@@ -12795,8 +12797,7 @@
|
|
|
12795
12797
|
key: "transform",
|
|
12796
12798
|
value: function transform(graphic, graphicAttribute, context) {
|
|
12797
12799
|
var use3dMatrixIn3dMode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
|
12798
|
-
var
|
|
12799
|
-
_graphic$attribute2 = graphic.attribute,
|
|
12800
|
+
var _graphic$attribute2 = graphic.attribute,
|
|
12800
12801
|
_graphic$attribute2$x = _graphic$attribute2.x,
|
|
12801
12802
|
x = _graphic$attribute2$x === void 0 ? graphicAttribute.x : _graphic$attribute2$x,
|
|
12802
12803
|
_graphic$attribute2$y = _graphic$attribute2.y,
|
|
@@ -12810,16 +12811,11 @@
|
|
|
12810
12811
|
_graphic$attribute2$a = _graphic$attribute2.angle,
|
|
12811
12812
|
angle = _graphic$attribute2$a === void 0 ? graphicAttribute.angle : _graphic$attribute2$a,
|
|
12812
12813
|
postMatrix = _graphic$attribute2.postMatrix,
|
|
12813
|
-
onlyTranslate = transMatrix.onlyTranslate() && !postMatrix,
|
|
12814
12814
|
lastModelMatrix = context.modelMatrix,
|
|
12815
|
-
camera = context.camera
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
z: z,
|
|
12820
|
-
lastModelMatrix: lastModelMatrix
|
|
12821
|
-
},
|
|
12822
|
-
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;
|
|
12823
12819
|
if (shouldTransform3d) {
|
|
12824
12820
|
var nextModelMatrix = mat4Allocate.allocate(),
|
|
12825
12821
|
modelMatrix = mat4Allocate.allocate();
|
|
@@ -12993,7 +12989,7 @@
|
|
|
12993
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);
|
|
12994
12990
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12995
12991
|
},
|
|
12996
|
-
__metadata$
|
|
12992
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
12997
12993
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
12998
12994
|
},
|
|
12999
12995
|
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13046,7 +13042,7 @@
|
|
|
13046
13042
|
}]);
|
|
13047
13043
|
return DefaultBaseInteractiveRenderContribution;
|
|
13048
13044
|
}();
|
|
13049
|
-
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);
|
|
13050
13046
|
var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
13051
13047
|
function DefaultBaseTextureRenderContribution() {
|
|
13052
13048
|
_classCallCheck(this, DefaultBaseTextureRenderContribution);
|
|
@@ -13666,7 +13662,7 @@
|
|
|
13666
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);
|
|
13667
13663
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13668
13664
|
},
|
|
13669
|
-
__metadata$
|
|
13665
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
13670
13666
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13671
13667
|
},
|
|
13672
13668
|
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13839,7 +13835,7 @@
|
|
|
13839
13835
|
}]);
|
|
13840
13836
|
return DefaultCanvasArcRender;
|
|
13841
13837
|
}(BaseRender);
|
|
13842
|
-
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);
|
|
13843
13839
|
|
|
13844
13840
|
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13845
13841
|
var d,
|
|
@@ -13848,7 +13844,7 @@
|
|
|
13848
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);
|
|
13849
13845
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13850
13846
|
},
|
|
13851
|
-
__metadata$
|
|
13847
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
13852
13848
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13853
13849
|
},
|
|
13854
13850
|
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -13897,7 +13893,7 @@
|
|
|
13897
13893
|
}]);
|
|
13898
13894
|
return DefaultCanvasCircleRender;
|
|
13899
13895
|
}(BaseRender);
|
|
13900
|
-
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);
|
|
13901
13897
|
|
|
13902
13898
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
13903
13899
|
var _a;
|
|
@@ -14429,7 +14425,7 @@
|
|
|
14429
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);
|
|
14430
14426
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14431
14427
|
},
|
|
14432
|
-
__metadata$
|
|
14428
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
14433
14429
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14434
14430
|
},
|
|
14435
14431
|
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14702,7 +14698,7 @@
|
|
|
14702
14698
|
}]);
|
|
14703
14699
|
return DefaultCanvasAreaRender;
|
|
14704
14700
|
}(BaseRender);
|
|
14705
|
-
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);
|
|
14706
14702
|
|
|
14707
14703
|
var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
14708
14704
|
var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -14714,7 +14710,7 @@
|
|
|
14714
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);
|
|
14715
14711
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14716
14712
|
},
|
|
14717
|
-
__metadata$
|
|
14713
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
14718
14714
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14719
14715
|
},
|
|
14720
14716
|
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14734,14 +14730,14 @@
|
|
|
14734
14730
|
_createClass(DefaultCanvasPathRender, [{
|
|
14735
14731
|
key: "drawShape",
|
|
14736
14732
|
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,
|
|
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,
|
|
14739
14735
|
_path$attribute = path.attribute,
|
|
14740
14736
|
_path$attribute$x = _path$attribute.x,
|
|
14741
14737
|
originX = _path$attribute$x === void 0 ? pathAttribute.x : _path$attribute$x,
|
|
14742
14738
|
_path$attribute$y = _path$attribute.y,
|
|
14743
14739
|
originY = _path$attribute$y === void 0 ? pathAttribute.y : _path$attribute$y,
|
|
14744
|
-
z = null !== (
|
|
14740
|
+
z = null !== (_b = this.z) && void 0 !== _b ? _b : 0,
|
|
14745
14741
|
data = this.valid(path, pathAttribute, fillCb, strokeCb);
|
|
14746
14742
|
if (!data) return;
|
|
14747
14743
|
var fVisible = data.fVisible,
|
|
@@ -14749,7 +14745,7 @@
|
|
|
14749
14745
|
doFill = data.doFill,
|
|
14750
14746
|
doStroke = data.doStroke;
|
|
14751
14747
|
if (context.beginPath(), path.pathShape) renderCommandList(path.pathShape.commandList, context, x, y, 1, 1, z);else {
|
|
14752
|
-
var path2D = null !== (
|
|
14748
|
+
var path2D = null !== (_c = path.attribute.path) && void 0 !== _c ? _c : pathAttribute.path;
|
|
14753
14749
|
renderCommandList(path2D.commandList, context, x, y, 1, 1, z);
|
|
14754
14750
|
}
|
|
14755
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);
|
|
@@ -14758,12 +14754,12 @@
|
|
|
14758
14754
|
key: "draw",
|
|
14759
14755
|
value: function draw(path, renderService, drawContext, params) {
|
|
14760
14756
|
var pathAttribute = getTheme(path, null == params ? void 0 : params.theme).path;
|
|
14761
|
-
this._draw(path, pathAttribute, !1, drawContext, params);
|
|
14757
|
+
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14762
14758
|
}
|
|
14763
14759
|
}]);
|
|
14764
14760
|
return DefaultCanvasPathRender;
|
|
14765
14761
|
}(BaseRender);
|
|
14766
|
-
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);
|
|
14767
14763
|
|
|
14768
14764
|
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14769
14765
|
var d,
|
|
@@ -14772,7 +14768,7 @@
|
|
|
14772
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);
|
|
14773
14769
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14774
14770
|
},
|
|
14775
|
-
__metadata$
|
|
14771
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
14776
14772
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14777
14773
|
},
|
|
14778
14774
|
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14792,7 +14788,8 @@
|
|
|
14792
14788
|
_createClass(DefaultCanvasRectRender, [{
|
|
14793
14789
|
key: "drawShape",
|
|
14794
14790
|
value: function drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
14795
|
-
var
|
|
14791
|
+
var _a;
|
|
14792
|
+
var rectAttribute = null !== (_a = this.tempTheme) && void 0 !== _a ? _a : getTheme(rect, null == params ? void 0 : params.theme).rect,
|
|
14796
14793
|
_rect$attribute = rect.attribute,
|
|
14797
14794
|
_rect$attribute$fill = _rect$attribute.fill,
|
|
14798
14795
|
fill = _rect$attribute$fill === void 0 ? rectAttribute.fill : _rect$attribute$fill,
|
|
@@ -14839,12 +14836,12 @@
|
|
|
14839
14836
|
key: "draw",
|
|
14840
14837
|
value: function draw(rect, renderService, drawContext, params) {
|
|
14841
14838
|
var rectAttribute = getTheme(rect, null == params ? void 0 : params.theme).rect;
|
|
14842
|
-
this._draw(rect, rectAttribute, !1, drawContext, params);
|
|
14839
|
+
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
14843
14840
|
}
|
|
14844
14841
|
}]);
|
|
14845
14842
|
return DefaultCanvasRectRender;
|
|
14846
14843
|
}(BaseRender);
|
|
14847
|
-
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);
|
|
14848
14845
|
|
|
14849
14846
|
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14850
14847
|
var d,
|
|
@@ -14853,7 +14850,7 @@
|
|
|
14853
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);
|
|
14854
14851
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14855
14852
|
},
|
|
14856
|
-
__metadata$
|
|
14853
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
14857
14854
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14858
14855
|
},
|
|
14859
14856
|
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -14917,7 +14914,7 @@
|
|
|
14917
14914
|
}]);
|
|
14918
14915
|
return DefaultCanvasSymbolRender;
|
|
14919
14916
|
}(BaseRender);
|
|
14920
|
-
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);
|
|
14921
14918
|
|
|
14922
14919
|
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
14923
14920
|
var d,
|
|
@@ -14926,7 +14923,7 @@
|
|
|
14926
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);
|
|
14927
14924
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14928
14925
|
},
|
|
14929
|
-
__metadata$
|
|
14926
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
14930
14927
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
14931
14928
|
},
|
|
14932
14929
|
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15147,7 +15144,7 @@
|
|
|
15147
15144
|
}]);
|
|
15148
15145
|
return DefaultCanvasTextRender;
|
|
15149
15146
|
}(BaseRender);
|
|
15150
|
-
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);
|
|
15151
15148
|
|
|
15152
15149
|
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15153
15150
|
var d,
|
|
@@ -15222,7 +15219,7 @@
|
|
|
15222
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);
|
|
15223
15220
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15224
15221
|
},
|
|
15225
|
-
__metadata$
|
|
15222
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
15226
15223
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15227
15224
|
},
|
|
15228
15225
|
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15273,7 +15270,7 @@
|
|
|
15273
15270
|
}]);
|
|
15274
15271
|
return DefaultCanvasPolygonRender;
|
|
15275
15272
|
}(BaseRender);
|
|
15276
|
-
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);
|
|
15277
15274
|
|
|
15278
15275
|
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15279
15276
|
var d,
|
|
@@ -15282,7 +15279,7 @@
|
|
|
15282
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);
|
|
15283
15280
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15284
15281
|
},
|
|
15285
|
-
__metadata$
|
|
15282
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
15286
15283
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15287
15284
|
},
|
|
15288
15285
|
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15353,7 +15350,7 @@
|
|
|
15353
15350
|
}]);
|
|
15354
15351
|
return DefaultCanvasImageRender;
|
|
15355
15352
|
}(BaseRender);
|
|
15356
|
-
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);
|
|
15357
15354
|
|
|
15358
15355
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
15359
15356
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -15382,7 +15379,7 @@
|
|
|
15382
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);
|
|
15383
15380
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15384
15381
|
},
|
|
15385
|
-
__metadata$
|
|
15382
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
15386
15383
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15387
15384
|
},
|
|
15388
15385
|
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15400,7 +15397,7 @@
|
|
|
15400
15397
|
key: "prepare",
|
|
15401
15398
|
value: function prepare(updateBounds) {
|
|
15402
15399
|
var _this = this;
|
|
15403
|
-
this.renderTreeRoots.forEach(function (g) {
|
|
15400
|
+
updateBounds && this.renderTreeRoots.forEach(function (g) {
|
|
15404
15401
|
_this._prepare(g, updateBounds);
|
|
15405
15402
|
});
|
|
15406
15403
|
}
|
|
@@ -15441,7 +15438,7 @@
|
|
|
15441
15438
|
}]);
|
|
15442
15439
|
return DefaultRenderService;
|
|
15443
15440
|
}();
|
|
15444
|
-
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);
|
|
15445
15442
|
|
|
15446
15443
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
15447
15444
|
bind(RenderService).to(DefaultRenderService).inSingletonScope();
|
|
@@ -15615,7 +15612,7 @@
|
|
|
15615
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);
|
|
15616
15613
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15617
15614
|
},
|
|
15618
|
-
__metadata$
|
|
15615
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
15619
15616
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15620
15617
|
},
|
|
15621
15618
|
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
@@ -15666,7 +15663,7 @@
|
|
|
15666
15663
|
}]);
|
|
15667
15664
|
return DefaultPluginService;
|
|
15668
15665
|
}();
|
|
15669
|
-
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);
|
|
15670
15667
|
|
|
15671
15668
|
var pluginModule = new ContainerModule(function (bind) {
|
|
15672
15669
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -15687,7 +15684,7 @@
|
|
|
15687
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);
|
|
15688
15685
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15689
15686
|
},
|
|
15690
|
-
__metadata$
|
|
15687
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
15691
15688
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15692
15689
|
};
|
|
15693
15690
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15780,7 +15777,7 @@
|
|
|
15780
15777
|
}]);
|
|
15781
15778
|
return CanvasLayerHandlerContribution;
|
|
15782
15779
|
}();
|
|
15783
|
-
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$
|
|
15780
|
+
CanvasLayerHandlerContribution = __decorate$k([injectable(), __metadata$b("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
15784
15781
|
|
|
15785
15782
|
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15786
15783
|
var d,
|
|
@@ -15789,7 +15786,7 @@
|
|
|
15789
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);
|
|
15790
15787
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15791
15788
|
},
|
|
15792
|
-
__metadata$
|
|
15789
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
15793
15790
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15794
15791
|
};
|
|
15795
15792
|
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15847,7 +15844,7 @@
|
|
|
15847
15844
|
}]);
|
|
15848
15845
|
return EmptyLayerHandlerContribution;
|
|
15849
15846
|
}();
|
|
15850
|
-
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$
|
|
15847
|
+
EmptyLayerHandlerContribution = __decorate$j([injectable(), __metadata$a("design:paramtypes", [])], EmptyLayerHandlerContribution);
|
|
15851
15848
|
|
|
15852
15849
|
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15853
15850
|
var d,
|
|
@@ -15856,7 +15853,7 @@
|
|
|
15856
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);
|
|
15857
15854
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15858
15855
|
},
|
|
15859
|
-
__metadata$
|
|
15856
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
15860
15857
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15861
15858
|
};
|
|
15862
15859
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -15943,7 +15940,7 @@
|
|
|
15943
15940
|
}]);
|
|
15944
15941
|
return OffscreenLayerHandlerContribution;
|
|
15945
15942
|
}();
|
|
15946
|
-
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$
|
|
15943
|
+
OffscreenLayerHandlerContribution = __decorate$i([injectable(), __metadata$9("design:paramtypes", [])], OffscreenLayerHandlerContribution);
|
|
15947
15944
|
|
|
15948
15945
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
15949
15946
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
@@ -16071,12 +16068,15 @@
|
|
|
16071
16068
|
}
|
|
16072
16069
|
|
|
16073
16070
|
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
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
|
+
};
|
|
16080
16080
|
var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
|
|
16081
16081
|
var tempDirtyBounds = new vutils.AABBBounds();
|
|
16082
16082
|
var ShadowRootDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
@@ -16109,21 +16109,15 @@
|
|
|
16109
16109
|
}]);
|
|
16110
16110
|
return ShadowRootDrawItemInterceptorContribution;
|
|
16111
16111
|
}();
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
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()];
|
|
16117
16116
|
}
|
|
16118
|
-
_createClass(
|
|
16117
|
+
_createClass(DebugDrawItemInterceptorContribution, [{
|
|
16119
16118
|
key: "afterDrawItem",
|
|
16120
16119
|
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;
|
|
16120
|
+
return graphic.attribute._debug_bounds && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
16127
16121
|
}
|
|
16128
16122
|
}, {
|
|
16129
16123
|
key: "drawItem",
|
|
@@ -16135,9 +16129,30 @@
|
|
|
16135
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;
|
|
16136
16130
|
}
|
|
16137
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
|
+
}]);
|
|
16138
16153
|
return CommonDrawItemInterceptorContribution;
|
|
16139
16154
|
}();
|
|
16140
|
-
CommonDrawItemInterceptorContribution = __decorate$h([injectable()], CommonDrawItemInterceptorContribution);
|
|
16155
|
+
CommonDrawItemInterceptorContribution = __decorate$h([injectable(), __metadata$8("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
16141
16156
|
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
16142
16157
|
function InteractiveDrawItemInterceptorContribution() {
|
|
16143
16158
|
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
@@ -16196,7 +16211,6 @@
|
|
|
16196
16211
|
}]);
|
|
16197
16212
|
return InteractiveDrawItemInterceptorContribution;
|
|
16198
16213
|
}();
|
|
16199
|
-
InteractiveDrawItemInterceptorContribution = __decorate$h([injectable()], InteractiveDrawItemInterceptorContribution);
|
|
16200
16214
|
var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
|
|
16201
16215
|
function Canvas3DDrawItemInterceptor() {
|
|
16202
16216
|
_classCallCheck(this, Canvas3DDrawItemInterceptor);
|
|
@@ -16287,7 +16301,6 @@
|
|
|
16287
16301
|
}]);
|
|
16288
16302
|
return Canvas3DDrawItemInterceptor;
|
|
16289
16303
|
}();
|
|
16290
|
-
Canvas3DDrawItemInterceptor = __decorate$h([injectable()], Canvas3DDrawItemInterceptor);
|
|
16291
16304
|
|
|
16292
16305
|
var DefaultBoundsAllocate = /*#__PURE__*/function () {
|
|
16293
16306
|
function DefaultBoundsAllocate() {
|
|
@@ -16365,9 +16378,7 @@
|
|
|
16365
16378
|
}, {
|
|
16366
16379
|
key: "prepareForDraw",
|
|
16367
16380
|
value: function prepareForDraw(renderService, drawContext) {
|
|
16368
|
-
|
|
16369
|
-
return a + b.count;
|
|
16370
|
-
}, 0) < this.global.optmizeSkipCheckBoundariesThreshold ? this.useDirtyBounds = !1 : this.useDirtyBounds = !0;
|
|
16381
|
+
drawContext.updateBounds ? this.useDirtyBounds = !0 : this.useDirtyBounds = !drawContext.stage.params.optimize.disableCheckGraphicWidthOutRange;
|
|
16371
16382
|
}
|
|
16372
16383
|
}, {
|
|
16373
16384
|
key: "draw",
|
|
@@ -16421,7 +16432,8 @@
|
|
|
16421
16432
|
if (drawContext["break"] || !1 === group.attribute.visibleAll) return;
|
|
16422
16433
|
if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext["break"] = !0, void this._increaseRender(group, drawContext);
|
|
16423
16434
|
if (this.useDirtyBounds && !vutils.isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
|
|
16424
|
-
var
|
|
16435
|
+
var tempBounds,
|
|
16436
|
+
nextM = parentMatrix;
|
|
16425
16437
|
if (this.useDirtyBounds) {
|
|
16426
16438
|
tempBounds = boundsAllocate.allocateByObj(this.dirtyBounds);
|
|
16427
16439
|
var gm = group.transMatrix;
|
|
@@ -17689,7 +17701,7 @@
|
|
|
17689
17701
|
DefaultCanvasPyramid3dRender = __decorate$7([injectable()], DefaultCanvasPyramid3dRender);
|
|
17690
17702
|
|
|
17691
17703
|
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(
|
|
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);
|
|
17693
17705
|
});
|
|
17694
17706
|
|
|
17695
17707
|
function load(container) {
|
|
@@ -30262,7 +30274,7 @@
|
|
|
30262
30274
|
}
|
|
30263
30275
|
};
|
|
30264
30276
|
|
|
30265
|
-
const version = "0.17.0-alpha.
|
|
30277
|
+
const version = "0.17.0-alpha.5";
|
|
30266
30278
|
|
|
30267
30279
|
exports.AbstractComponent = AbstractComponent;
|
|
30268
30280
|
exports.ArcInfo = ArcInfo;
|