@visactor/vrender 0.16.0-alpha.0 → 0.16.0-alpha.2
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 +582 -297
- 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 +3 -3
package/dist/index.js
CHANGED
|
@@ -2782,17 +2782,17 @@
|
|
|
2782
2782
|
var EnvContribution = Symbol["for"]("EnvContribution");
|
|
2783
2783
|
var VGlobal = Symbol["for"]("VGlobal");
|
|
2784
2784
|
|
|
2785
|
-
var __decorate$
|
|
2785
|
+
var __decorate$1U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
2786
2786
|
var d,
|
|
2787
2787
|
c = arguments.length,
|
|
2788
2788
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
2789
2789
|
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);
|
|
2790
2790
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2791
2791
|
},
|
|
2792
|
-
__metadata$
|
|
2792
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
2793
2793
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
2794
2794
|
},
|
|
2795
|
-
__param$
|
|
2795
|
+
__param$Y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
2796
2796
|
return function (target, key) {
|
|
2797
2797
|
decorator(target, key, paramIndex);
|
|
2798
2798
|
};
|
|
@@ -3017,7 +3017,7 @@
|
|
|
3017
3017
|
}]);
|
|
3018
3018
|
return DefaultGlobal;
|
|
3019
3019
|
}();
|
|
3020
|
-
exports.DefaultGlobal = __decorate$
|
|
3020
|
+
exports.DefaultGlobal = __decorate$1U([injectable(), __param$Y(0, inject(ContributionProvider)), __param$Y(0, named(EnvContribution)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultGlobal);
|
|
3021
3021
|
|
|
3022
3022
|
function getDefaultExportFromCjs (x) {
|
|
3023
3023
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -6264,7 +6264,8 @@
|
|
|
6264
6264
|
scaleIn3d: !1,
|
|
6265
6265
|
direction: "horizontal",
|
|
6266
6266
|
wordBreak: "break-all",
|
|
6267
|
-
ignoreBuf: !1
|
|
6267
|
+
ignoreBuf: !1,
|
|
6268
|
+
verticalMode: 0
|
|
6268
6269
|
};
|
|
6269
6270
|
var DefaultStyle = Object.assign(Object.assign(Object.assign({
|
|
6270
6271
|
opacity: 1,
|
|
@@ -6284,7 +6285,10 @@
|
|
|
6284
6285
|
connectedX: NaN,
|
|
6285
6286
|
connectedY: NaN
|
|
6286
6287
|
};
|
|
6287
|
-
var
|
|
6288
|
+
var DefaultDebugAttribute = {
|
|
6289
|
+
_debug_bounds: !1
|
|
6290
|
+
};
|
|
6291
|
+
var DefaultAttribute = Object.assign(Object.assign(Object.assign({
|
|
6288
6292
|
strokeSeg: null,
|
|
6289
6293
|
pickable: !0,
|
|
6290
6294
|
childrenPickable: !0,
|
|
@@ -6296,8 +6300,9 @@
|
|
|
6296
6300
|
customPickShape: null,
|
|
6297
6301
|
boundsMode: "accurate",
|
|
6298
6302
|
keepDirIn3d: !0,
|
|
6299
|
-
shadowRootIdx: 1
|
|
6300
|
-
|
|
6303
|
+
shadowRootIdx: 1,
|
|
6304
|
+
interactive: !1
|
|
6305
|
+
}, DefaultDebugAttribute), DefaultStyle), DefaultTransform);
|
|
6301
6306
|
function addAttributeToPrototype(obj, c, keys) {
|
|
6302
6307
|
keys.forEach(function (key) {
|
|
6303
6308
|
c.prototype[key] = obj[key];
|
|
@@ -6548,7 +6553,7 @@
|
|
|
6548
6553
|
return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
6549
6554
|
}
|
|
6550
6555
|
|
|
6551
|
-
var __decorate$
|
|
6556
|
+
var __decorate$1T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6552
6557
|
var d,
|
|
6553
6558
|
c = arguments.length,
|
|
6554
6559
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -6754,9 +6759,9 @@
|
|
|
6754
6759
|
}]);
|
|
6755
6760
|
return ATextMeasure;
|
|
6756
6761
|
}();
|
|
6757
|
-
ATextMeasure = __decorate$
|
|
6762
|
+
ATextMeasure = __decorate$1T([injectable()], ATextMeasure);
|
|
6758
6763
|
|
|
6759
|
-
var __decorate$
|
|
6764
|
+
var __decorate$1S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6760
6765
|
var d,
|
|
6761
6766
|
c = arguments.length,
|
|
6762
6767
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -6773,7 +6778,7 @@
|
|
|
6773
6778
|
}
|
|
6774
6779
|
return _createClass(DefaultTextMeasureContribution);
|
|
6775
6780
|
}(ATextMeasure);
|
|
6776
|
-
exports.DefaultTextMeasureContribution = __decorate$
|
|
6781
|
+
exports.DefaultTextMeasureContribution = __decorate$1S([injectable()], exports.DefaultTextMeasureContribution);
|
|
6777
6782
|
|
|
6778
6783
|
var container = new Container();
|
|
6779
6784
|
|
|
@@ -7148,17 +7153,17 @@
|
|
|
7148
7153
|
return containPath(commands, lineWidth, !0, x, y);
|
|
7149
7154
|
}
|
|
7150
7155
|
|
|
7151
|
-
var __decorate$
|
|
7156
|
+
var __decorate$1R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
7152
7157
|
var d,
|
|
7153
7158
|
c = arguments.length,
|
|
7154
7159
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
7155
7160
|
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);
|
|
7156
7161
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7157
7162
|
},
|
|
7158
|
-
__metadata$
|
|
7163
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
7159
7164
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
7160
7165
|
},
|
|
7161
|
-
__param$
|
|
7166
|
+
__param$X = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
7162
7167
|
return function (target, key) {
|
|
7163
7168
|
decorator(target, key, paramIndex);
|
|
7164
7169
|
};
|
|
@@ -7229,7 +7234,7 @@
|
|
|
7229
7234
|
}]);
|
|
7230
7235
|
return DefaultGraphicUtil;
|
|
7231
7236
|
}();
|
|
7232
|
-
exports.DefaultGraphicUtil = __decorate$
|
|
7237
|
+
exports.DefaultGraphicUtil = __decorate$1R([injectable(), __param$X(0, inject(ContributionProvider)), __param$X(0, named(TextMeasureContribution)), __param$X(1, inject(VGlobal)), __metadata$1c("design:paramtypes", [Object, Object])], exports.DefaultGraphicUtil);
|
|
7233
7238
|
var TransformMode;
|
|
7234
7239
|
!function (TransformMode) {
|
|
7235
7240
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -7306,7 +7311,7 @@
|
|
|
7306
7311
|
}]);
|
|
7307
7312
|
return DefaultTransformUtil;
|
|
7308
7313
|
}();
|
|
7309
|
-
exports.DefaultTransformUtil = __decorate$
|
|
7314
|
+
exports.DefaultTransformUtil = __decorate$1R([injectable(), __metadata$1c("design:paramtypes", [])], exports.DefaultTransformUtil);
|
|
7310
7315
|
|
|
7311
7316
|
var defaultThemeObj = {
|
|
7312
7317
|
arc: DefaultArcAttribute,
|
|
@@ -7635,8 +7640,9 @@
|
|
|
7635
7640
|
}, {
|
|
7636
7641
|
key: "appendChild",
|
|
7637
7642
|
value: function appendChild(node) {
|
|
7643
|
+
var highPerformance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
7638
7644
|
if (this._uid === node._uid) return null;
|
|
7639
|
-
if (node.isAncestorsOf(this)) throw new Error("【Node::appendChild】不能将父辈元素append为子元素");
|
|
7645
|
+
if (!highPerformance && node.isAncestorsOf(this)) throw new Error("【Node::appendChild】不能将父辈元素append为子元素");
|
|
7640
7646
|
return node.parent && node.parent.removeChild(node), node.parent = this, this._lastChild ? (this._lastChild._next = node, node._prev = this._lastChild, this._lastChild = node) : (this._firstChild = this._lastChild = node, node._prev = node._next = null), this._idMap || (this._idMap = new Map()), this._idMap.set(node._uid, node), this.setCount(node.count), this._structEdit = !0, node;
|
|
7641
7647
|
}
|
|
7642
7648
|
}, {
|
|
@@ -9263,7 +9269,15 @@
|
|
|
9263
9269
|
}, {
|
|
9264
9270
|
key: "update",
|
|
9265
9271
|
value: function update(end, ratio, out) {
|
|
9266
|
-
|
|
9272
|
+
var _this = this;
|
|
9273
|
+
if (0 === this.updateCount) {
|
|
9274
|
+
this.onFirstRun();
|
|
9275
|
+
var props = this.step.getLastProps();
|
|
9276
|
+
Object.keys(props).forEach(function (k) {
|
|
9277
|
+
_this.subAnimate.animate.validAttr(k) && (out[k] = props[k]);
|
|
9278
|
+
});
|
|
9279
|
+
}
|
|
9280
|
+
this.updateCount += 1, this.onUpdate(end, ratio, out), end && this.onEnd();
|
|
9267
9281
|
}
|
|
9268
9282
|
}]);
|
|
9269
9283
|
return ACustomAnimate;
|
|
@@ -9272,10 +9286,10 @@
|
|
|
9272
9286
|
_inherits(CbAnimate, _ACustomAnimate);
|
|
9273
9287
|
var _super = _createSuper(CbAnimate);
|
|
9274
9288
|
function CbAnimate(cb) {
|
|
9275
|
-
var
|
|
9289
|
+
var _this2;
|
|
9276
9290
|
_classCallCheck(this, CbAnimate);
|
|
9277
|
-
|
|
9278
|
-
return
|
|
9291
|
+
_this2 = _super.call(this, null, null, 0, "linear"), _this2.cb = cb;
|
|
9292
|
+
return _this2;
|
|
9279
9293
|
}
|
|
9280
9294
|
_createClass(CbAnimate, [{
|
|
9281
9295
|
key: "onUpdate",
|
|
@@ -9351,9 +9365,9 @@
|
|
|
9351
9365
|
}, {
|
|
9352
9366
|
key: "runCb",
|
|
9353
9367
|
value: function runCb(cb) {
|
|
9354
|
-
var
|
|
9368
|
+
var _this3 = this;
|
|
9355
9369
|
var customAnimate = new CbAnimate(function () {
|
|
9356
|
-
cb(
|
|
9370
|
+
cb(_this3, customAnimate.step.prev);
|
|
9357
9371
|
});
|
|
9358
9372
|
return this.tailAnimate.play(customAnimate), this;
|
|
9359
9373
|
}
|
|
@@ -9465,9 +9479,9 @@
|
|
|
9465
9479
|
}, {
|
|
9466
9480
|
key: "preventAttrs",
|
|
9467
9481
|
value: function preventAttrs(keys) {
|
|
9468
|
-
var
|
|
9482
|
+
var _this4 = this;
|
|
9469
9483
|
keys.forEach(function (key) {
|
|
9470
|
-
return
|
|
9484
|
+
return _this4.preventAttr(key);
|
|
9471
9485
|
});
|
|
9472
9486
|
}
|
|
9473
9487
|
}, {
|
|
@@ -9583,22 +9597,22 @@
|
|
|
9583
9597
|
}, {
|
|
9584
9598
|
key: "to",
|
|
9585
9599
|
value: function to(props, duration, easing, params) {
|
|
9586
|
-
var
|
|
9600
|
+
var _this5 = this;
|
|
9587
9601
|
(null == duration || duration < 0) && (duration = 0);
|
|
9588
9602
|
var easingFunc = "string" == typeof easing ? Easing[easing] : easing,
|
|
9589
9603
|
step = this._addStep(duration, null, easingFunc);
|
|
9590
9604
|
return step.type = exports.AnimateStepType.to, this._appendProps(props, step, !!params && params.tempProps), step.propKeys || (step.propKeys = Object.keys(step.props)), params && params.noPreventAttrs || this.target.animates.forEach(function (a) {
|
|
9591
|
-
a.id !==
|
|
9605
|
+
a.id !== _this5.animate.id && a.preventAttrs(step.propKeys);
|
|
9592
9606
|
}), this;
|
|
9593
9607
|
}
|
|
9594
9608
|
}, {
|
|
9595
9609
|
key: "from",
|
|
9596
9610
|
value: function from(props, duration, easing, params) {
|
|
9597
|
-
var
|
|
9611
|
+
var _this6 = this;
|
|
9598
9612
|
this.to(props, 0, easing, params);
|
|
9599
9613
|
var toProps = {};
|
|
9600
9614
|
this.stepTail.propKeys || (this.stepTail.propKeys = Object.keys(this.stepTail.props)), this.stepTail.propKeys.forEach(function (k) {
|
|
9601
|
-
toProps[k] =
|
|
9615
|
+
toProps[k] = _this6.getLastPropByName(k, _this6.stepTail);
|
|
9602
9616
|
}), this.to(toProps, duration, easing, params), this.stepTail.type = exports.AnimateStepType.from;
|
|
9603
9617
|
}
|
|
9604
9618
|
}, {
|
|
@@ -9640,20 +9654,20 @@
|
|
|
9640
9654
|
}, {
|
|
9641
9655
|
key: "_appendProps",
|
|
9642
9656
|
value: function _appendProps(props, step, tempProps) {
|
|
9643
|
-
var
|
|
9657
|
+
var _this7 = this;
|
|
9644
9658
|
step.props = tempProps ? props : Object.assign({}, props);
|
|
9645
9659
|
var lastStep = step.prev;
|
|
9646
9660
|
var _props = step.props;
|
|
9647
9661
|
for (step.propKeys || (step.propKeys = Object.keys(step.props)), step.propKeys.forEach(function (k) {
|
|
9648
|
-
void 0 === step.props[k] && (step.props[k] =
|
|
9662
|
+
void 0 === step.props[k] && (step.props[k] = _this7.target.getDefaultAttribute(k));
|
|
9649
9663
|
}); lastStep.prev;) lastStep.props && (lastStep.propKeys || (lastStep.propKeys = Object.keys(lastStep.props)), lastStep.propKeys.forEach(function (key) {
|
|
9650
9664
|
void 0 === _props[key] && (_props[key] = lastStep.props[key]);
|
|
9651
9665
|
})), lastStep = lastStep.prev;
|
|
9652
9666
|
var initProps = this.stepHead.props;
|
|
9653
9667
|
step.propKeys || (step.propKeys = Object.keys(_props)), step.propKeys.forEach(function (key) {
|
|
9654
9668
|
if (void 0 === initProps[key]) {
|
|
9655
|
-
var parentAnimateInitProps =
|
|
9656
|
-
initProps[key] = parentAnimateInitProps[key] =
|
|
9669
|
+
var parentAnimateInitProps = _this7.animate.getStartProps();
|
|
9670
|
+
initProps[key] = parentAnimateInitProps[key] = _this7.target.getComputedAttribute(key);
|
|
9657
9671
|
}
|
|
9658
9672
|
}), this.target.onAddStep && this.target.onAddStep(step);
|
|
9659
9673
|
}
|
|
@@ -12323,7 +12337,7 @@
|
|
|
12323
12337
|
}, {
|
|
12324
12338
|
key: "onAttributeUpdate",
|
|
12325
12339
|
value: function onAttributeUpdate(context) {
|
|
12326
|
-
application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context);
|
|
12340
|
+
context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
|
|
12327
12341
|
}
|
|
12328
12342
|
}, {
|
|
12329
12343
|
key: "update",
|
|
@@ -12733,7 +12747,7 @@
|
|
|
12733
12747
|
}, {
|
|
12734
12748
|
key: "release",
|
|
12735
12749
|
value: function release() {
|
|
12736
|
-
this.releaseStatus = "released";
|
|
12750
|
+
this.releaseStatus = "released", application.graphicService.onRelease(this);
|
|
12737
12751
|
}
|
|
12738
12752
|
}, {
|
|
12739
12753
|
key: "_emitCustomEvent",
|
|
@@ -13403,7 +13417,6 @@
|
|
|
13403
13417
|
}(Graphic);
|
|
13404
13418
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
13405
13419
|
|
|
13406
|
-
var LayerHandlerContribution = Symbol["for"]("LayerHandlerContribution");
|
|
13407
13420
|
var Layer = /*#__PURE__*/function (_Group) {
|
|
13408
13421
|
_inherits(Layer, _Group);
|
|
13409
13422
|
var _super = _createSuper(Layer);
|
|
@@ -13411,13 +13424,13 @@
|
|
|
13411
13424
|
var _this;
|
|
13412
13425
|
_classCallCheck(this, Layer);
|
|
13413
13426
|
var _a;
|
|
13414
|
-
_this = _super.call(this, {}), _this.stage = stage, _this.global = global, _this.window = window, _this.main = params.main, _this.layerHandler =
|
|
13427
|
+
_this = _super.call(this, {}), _this.stage = stage, _this.global = global, _this.window = window, _this.main = params.main, _this.layerHandler = params.layerHandler, _this.layerHandler.init(_assertThisInitialized(_this), window, {
|
|
13415
13428
|
main: params.main,
|
|
13416
13429
|
canvasId: params.canvasId,
|
|
13417
13430
|
width: _this.viewWidth,
|
|
13418
13431
|
height: _this.viewHeight,
|
|
13419
13432
|
zIndex: null !== (_a = params.zIndex) && void 0 !== _a ? _a : 0
|
|
13420
|
-
}), _this.layer = _assertThisInitialized(_this), _this.subLayers = new Map(), _this.theme = new Theme(), _this.background = "rgba(0, 0, 0, 0)", _this.
|
|
13433
|
+
}), _this.layer = _assertThisInitialized(_this), _this.subLayers = new Map(), _this.theme = new Theme(), _this.background = "rgba(0, 0, 0, 0)", _this.afterDrawCbs = [];
|
|
13421
13434
|
return _this;
|
|
13422
13435
|
}
|
|
13423
13436
|
_createClass(Layer, [{
|
|
@@ -13425,6 +13438,11 @@
|
|
|
13425
13438
|
get: function get() {
|
|
13426
13439
|
return this.layerHandler.offscreen;
|
|
13427
13440
|
}
|
|
13441
|
+
}, {
|
|
13442
|
+
key: "layerMode",
|
|
13443
|
+
get: function get() {
|
|
13444
|
+
return this.layerHandler.type;
|
|
13445
|
+
}
|
|
13428
13446
|
}, {
|
|
13429
13447
|
key: "width",
|
|
13430
13448
|
get: function get() {
|
|
@@ -13486,10 +13504,18 @@
|
|
|
13486
13504
|
value: function pick(x, y) {
|
|
13487
13505
|
throw new Error("暂不支持");
|
|
13488
13506
|
}
|
|
13507
|
+
}, {
|
|
13508
|
+
key: "tryRenderSecondaryLayer",
|
|
13509
|
+
value: function tryRenderSecondaryLayer(params, userParams) {
|
|
13510
|
+
var _this3 = this;
|
|
13511
|
+
this.layerHandler.secondaryHandlers && this.layerHandler.secondaryHandlers.length && this.layerHandler.secondaryHandlers.forEach(function (h) {
|
|
13512
|
+
h.layer.renderCount = _this3.renderCount, h.layer.render(params, userParams);
|
|
13513
|
+
});
|
|
13514
|
+
}
|
|
13489
13515
|
}, {
|
|
13490
13516
|
key: "render",
|
|
13491
13517
|
value: function render(params, userParams) {
|
|
13492
|
-
var
|
|
13518
|
+
var _this4 = this;
|
|
13493
13519
|
var _a;
|
|
13494
13520
|
var stage = this.stage;
|
|
13495
13521
|
this.layerHandler.render([this], {
|
|
@@ -13503,8 +13529,8 @@
|
|
|
13503
13529
|
background: null !== (_a = params.background) && void 0 !== _a ? _a : this.background,
|
|
13504
13530
|
updateBounds: params.updateBounds
|
|
13505
13531
|
}, userParams), this.afterDrawCbs.forEach(function (c) {
|
|
13506
|
-
return c(
|
|
13507
|
-
});
|
|
13532
|
+
return c(_this4);
|
|
13533
|
+
}), this.tryRenderSecondaryLayer(params, userParams);
|
|
13508
13534
|
}
|
|
13509
13535
|
}, {
|
|
13510
13536
|
key: "resize",
|
|
@@ -13542,7 +13568,7 @@
|
|
|
13542
13568
|
}, {
|
|
13543
13569
|
key: "combineTo",
|
|
13544
13570
|
value: function combineTo(target, params) {
|
|
13545
|
-
var
|
|
13571
|
+
var _this5 = this;
|
|
13546
13572
|
var _a, _b, _c;
|
|
13547
13573
|
this.offscreen && (this.layerHandler.drawTo(target, [this], Object.assign({
|
|
13548
13574
|
background: null !== (_a = params.background) && void 0 !== _a ? _a : this.background,
|
|
@@ -13554,21 +13580,21 @@
|
|
|
13554
13580
|
stage: this.stage,
|
|
13555
13581
|
layer: this
|
|
13556
13582
|
}, params)), this.afterDrawCbs.forEach(function (c) {
|
|
13557
|
-
return c(
|
|
13583
|
+
return c(_this5);
|
|
13558
13584
|
}));
|
|
13559
13585
|
}
|
|
13560
13586
|
}, {
|
|
13561
13587
|
key: "release",
|
|
13562
13588
|
value: function release() {
|
|
13563
|
-
var
|
|
13589
|
+
var _this6 = this;
|
|
13564
13590
|
_get(_getPrototypeOf(Layer.prototype), "release", this).call(this), this.layerHandler.release(), this.subLayers && this.subLayers.forEach(function (l) {
|
|
13565
|
-
application.layerService.releaseLayer(
|
|
13591
|
+
application.layerService.releaseLayer(_this6.stage, l.layer);
|
|
13566
13592
|
});
|
|
13567
13593
|
}
|
|
13568
13594
|
}, {
|
|
13569
13595
|
key: "drawTo",
|
|
13570
13596
|
value: function drawTo(target, params) {
|
|
13571
|
-
var
|
|
13597
|
+
var _this7 = this;
|
|
13572
13598
|
var _a, _b, _c;
|
|
13573
13599
|
this.layerHandler.drawTo(target, [this], Object.assign({
|
|
13574
13600
|
background: null !== (_a = params.background) && void 0 !== _a ? _a : this.background,
|
|
@@ -13580,24 +13606,31 @@
|
|
|
13580
13606
|
stage: this.stage,
|
|
13581
13607
|
layer: this
|
|
13582
13608
|
}, params)), this.afterDrawCbs.forEach(function (c) {
|
|
13583
|
-
return c(
|
|
13609
|
+
return c(_this7);
|
|
13584
13610
|
});
|
|
13585
13611
|
}
|
|
13586
13612
|
}]);
|
|
13587
13613
|
return Layer;
|
|
13588
13614
|
}(Group);
|
|
13589
13615
|
|
|
13590
|
-
var
|
|
13616
|
+
var TransformUtil = Symbol["for"]("TransformUtil");
|
|
13617
|
+
var GraphicUtil = Symbol["for"]("GraphicUtil");
|
|
13618
|
+
var LayerService = Symbol["for"]("LayerService");
|
|
13619
|
+
var StaticLayerHandlerContribution = Symbol["for"]("StaticLayerHandlerContribution");
|
|
13620
|
+
var DynamicLayerHandlerContribution = Symbol["for"]("DynamicLayerHandlerContribution");
|
|
13621
|
+
var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
|
|
13622
|
+
|
|
13623
|
+
var __decorate$1Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13591
13624
|
var d,
|
|
13592
13625
|
c = arguments.length,
|
|
13593
13626
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
13594
13627
|
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);
|
|
13595
13628
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13596
13629
|
},
|
|
13597
|
-
__metadata$
|
|
13630
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
13598
13631
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13599
13632
|
},
|
|
13600
|
-
__param$
|
|
13633
|
+
__param$W = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
13601
13634
|
return function (target, key) {
|
|
13602
13635
|
decorator(target, key, paramIndex);
|
|
13603
13636
|
};
|
|
@@ -13617,6 +13650,17 @@
|
|
|
13617
13650
|
value: function getStageLayer(stage) {
|
|
13618
13651
|
return this.layerMap.get(stage);
|
|
13619
13652
|
}
|
|
13653
|
+
}, {
|
|
13654
|
+
key: "getRecommendedLayerType",
|
|
13655
|
+
value: function getRecommendedLayerType(layerMode) {
|
|
13656
|
+
return layerMode || (0 !== this.staticLayerCountInEnv ? "static" : 0 !== this.dynamicLayerCountInEnv ? "dynamic" : "virtual");
|
|
13657
|
+
}
|
|
13658
|
+
}, {
|
|
13659
|
+
key: "getLayerHandler",
|
|
13660
|
+
value: function getLayerHandler(layerMode) {
|
|
13661
|
+
var layerHandler;
|
|
13662
|
+
return layerHandler = "static" === layerMode ? container.get(StaticLayerHandlerContribution) : "dynamic" === layerMode ? container.get(DynamicLayerHandlerContribution) : container.get(VirtualLayerHandlerContribution), layerHandler;
|
|
13663
|
+
}
|
|
13620
13664
|
}, {
|
|
13621
13665
|
key: "createLayer",
|
|
13622
13666
|
value: function createLayer(stage) {
|
|
@@ -13624,12 +13668,26 @@
|
|
|
13624
13668
|
main: !1
|
|
13625
13669
|
};
|
|
13626
13670
|
this.tryInit();
|
|
13627
|
-
var
|
|
13628
|
-
|
|
13671
|
+
var layerMode = this.getRecommendedLayerType(options.layerMode),
|
|
13672
|
+
layerHandler = this.getLayerHandler(layerMode),
|
|
13673
|
+
layer = new Layer(stage, this.global, stage.window, Object.assign(Object.assign({
|
|
13674
|
+
main: !1
|
|
13675
|
+
}, options), {
|
|
13676
|
+
layerMode: layerMode,
|
|
13677
|
+
layerHandler: layerHandler
|
|
13629
13678
|
})),
|
|
13630
13679
|
stageLayers = this.layerMap.get(stage) || [];
|
|
13631
13680
|
return stageLayers.push(layer), this.layerMap.set(stage, stageLayers), this.staticLayerCountInEnv--, layer;
|
|
13632
13681
|
}
|
|
13682
|
+
}, {
|
|
13683
|
+
key: "prepareStageLayer",
|
|
13684
|
+
value: function prepareStageLayer(stage) {
|
|
13685
|
+
var mainHandler;
|
|
13686
|
+
stage.forEachChildren(function (l) {
|
|
13687
|
+
var handler = l.getNativeHandler();
|
|
13688
|
+
"virtual" === handler.type ? (handler.mainHandler = mainHandler, mainHandler.secondaryHandlers.push(handler)) : (mainHandler = handler, mainHandler.secondaryHandlers = []);
|
|
13689
|
+
});
|
|
13690
|
+
}
|
|
13633
13691
|
}, {
|
|
13634
13692
|
key: "releaseLayer",
|
|
13635
13693
|
value: function releaseLayer(stage, layer) {
|
|
@@ -13652,19 +13710,19 @@
|
|
|
13652
13710
|
}]);
|
|
13653
13711
|
return DefaultLayerService;
|
|
13654
13712
|
}();
|
|
13655
|
-
exports.DefaultLayerService = __decorate$
|
|
13713
|
+
exports.DefaultLayerService = __decorate$1Q([injectable(), __param$W(0, inject(VGlobal)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultLayerService);
|
|
13656
13714
|
|
|
13657
|
-
var __decorate$
|
|
13715
|
+
var __decorate$1P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13658
13716
|
var d,
|
|
13659
13717
|
c = arguments.length,
|
|
13660
13718
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
13661
13719
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
13662
13720
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13663
13721
|
},
|
|
13664
|
-
__metadata$
|
|
13722
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
13665
13723
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13666
13724
|
},
|
|
13667
|
-
__param$
|
|
13725
|
+
__param$V = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
13668
13726
|
return function (target, key) {
|
|
13669
13727
|
decorator(target, key, paramIndex);
|
|
13670
13728
|
};
|
|
@@ -13819,11 +13877,7 @@
|
|
|
13819
13877
|
}]);
|
|
13820
13878
|
return DefaultWindow;
|
|
13821
13879
|
}();
|
|
13822
|
-
__decorate$
|
|
13823
|
-
|
|
13824
|
-
var TransformUtil = Symbol["for"]("TransformUtil");
|
|
13825
|
-
var GraphicUtil = Symbol["for"]("GraphicUtil");
|
|
13826
|
-
var LayerService = Symbol["for"]("LayerService");
|
|
13880
|
+
__decorate$1P([postConstruct(), __metadata$1a("design:type", Function), __metadata$1a("design:paramtypes", []), __metadata$1a("design:returntype", void 0)], exports.DefaultWindow.prototype, "postInit", null), exports.DefaultWindow = __decorate$1P([injectable(), __param$V(0, inject(VGlobal)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultWindow);
|
|
13827
13881
|
|
|
13828
13882
|
var coreModule = new ContainerModule(function (bind) {
|
|
13829
13883
|
bind(exports.DefaultGlobal).toSelf().inSingletonScope(), bind(VGlobal).toService(exports.DefaultGlobal), bind(exports.DefaultWindow).to(exports.DefaultWindow), bind(VWindow).toService(exports.DefaultWindow), bind(exports.DefaultGraphicUtil).toSelf().inSingletonScope(), bind(GraphicUtil).toService(exports.DefaultGraphicUtil), bind(exports.DefaultTransformUtil).toSelf().inSingletonScope(), bind(TransformUtil).toService(exports.DefaultTransformUtil), bind(exports.DefaultLayerService).toSelf().inSingletonScope(), bind(LayerService).toService(exports.DefaultLayerService);
|
|
@@ -13973,7 +14027,7 @@
|
|
|
13973
14027
|
t0 = cornerTangents(xirs, yirs, xors, yors, outerRadius, cornerRadiusStart, Number(clockwise)),
|
|
13974
14028
|
t1 = cornerTangents(xore, yore, xire, yire, outerRadius, cornerRadiusEnd, Number(clockwise));
|
|
13975
14029
|
limitedOcr < maxOuterCornerRadius && cornerRadiusStart === cornerRadiusEnd ? !partStroke || partStroke[0] ? (context.moveTo(cx + t0.cx + t0.x01, cy + t0.cy + t0.y01), context.arc(cx + t0.cx, cy + t0.cy, limitedOcr, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !clockwise)) : context.moveTo(cx + t0.cx + limitedOcr * cos(atan2(t1.y01, t1.x01)), cy + t0.cy + limitedOcr * sin(atan2(t1.y01, t1.x01))) : !partStroke || partStroke[0] ? (context.moveTo(cx + t0.cx + t0.x01, cy + t0.cy + t0.y01), cornerRadiusStart > 0 && context.arc(cx + t0.cx, cy + t0.cy, cornerRadiusStart, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !clockwise), context.arc(cx, cy, outerRadius, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !clockwise), cornerRadiusEnd > 0 && context.arc(cx + t1.cx, cy + t1.cy, cornerRadiusEnd, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !clockwise)) : cornerRadiusEnd > 0 ? context.moveTo(cx + t1.cx + cornerRadiusEnd * cos(atan2(t1.y01, t1.x01)), cy + t1.cy + cornerRadiusEnd * sin(atan2(t1.y01, t1.x01))) : context.moveTo(cx + xore, cy + outerRadius * sin(outerEndAngle));
|
|
13976
|
-
} else !partStroke || partStroke[0] ? (context.moveTo(cx + xors, cy + yors), context.arc(cx, cy, outerRadius, outerStartAngle, outerEndAngle, !clockwise)) : context.moveTo(cx + outerRadius * cos(outerEndAngle), cy +
|
|
14030
|
+
} else !partStroke || partStroke[0] ? (context.moveTo(cx + xors, cy + yors), context.arc(cx, cy, outerRadius, outerStartAngle, outerEndAngle, !clockwise)) : context.moveTo(cx + outerRadius * cos(outerEndAngle), cy + outerRadius * sin(outerEndAngle));
|
|
13977
14031
|
if (!(innerRadius > epsilon) || innerDeltaAngle < .001) !partStroke || partStroke[1] ? context.lineTo(cx + xire, cy + yire) : context.moveTo(cx + xire, cy + yire), collapsedToLine = !0;else if (limitedIcr > epsilon) {
|
|
13978
14032
|
var _cornerRadiusStart = min(innerCornerRadiusStart, limitedIcr),
|
|
13979
14033
|
_cornerRadiusEnd = min(innerCornerRadiusEnd, limitedIcr),
|
|
@@ -14526,10 +14580,20 @@
|
|
|
14526
14580
|
var dy = textLayoutOffsetY(textBaseline, lh, fontSize, buf);
|
|
14527
14581
|
return this._AABBBounds.set(dx, dy, dx + width, dy + lh), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
14528
14582
|
}
|
|
14583
|
+
}, {
|
|
14584
|
+
key: "getBaselineMapAlign",
|
|
14585
|
+
value: function getBaselineMapAlign() {
|
|
14586
|
+
return Text.baselineMapAlign;
|
|
14587
|
+
}
|
|
14588
|
+
}, {
|
|
14589
|
+
key: "getAlignMapBaseline",
|
|
14590
|
+
value: function getAlignMapBaseline() {
|
|
14591
|
+
return Text.alignMapBaseline;
|
|
14592
|
+
}
|
|
14529
14593
|
}, {
|
|
14530
14594
|
key: "updateVerticalSinglelineAABBBounds",
|
|
14531
14595
|
value: function updateVerticalSinglelineAABBBounds(text) {
|
|
14532
|
-
var _a;
|
|
14596
|
+
var _a, _b, _c;
|
|
14533
14597
|
var textTheme = getTheme(this).text,
|
|
14534
14598
|
textMeasure = application.graphicUtil.textMeasure;
|
|
14535
14599
|
var width;
|
|
@@ -14541,10 +14605,6 @@
|
|
|
14541
14605
|
maxLineWidth = _attribute$maxLineWid4 === void 0 ? textTheme.maxLineWidth : _attribute$maxLineWid4,
|
|
14542
14606
|
_attribute$ellipsis2 = attribute.ellipsis,
|
|
14543
14607
|
ellipsis = _attribute$ellipsis2 === void 0 ? textTheme.ellipsis : _attribute$ellipsis2,
|
|
14544
|
-
_attribute$textAlign2 = attribute.textAlign,
|
|
14545
|
-
textAlign = _attribute$textAlign2 === void 0 ? textTheme.textAlign : _attribute$textAlign2,
|
|
14546
|
-
_attribute$textBaseli2 = attribute.textBaseline,
|
|
14547
|
-
textBaseline = _attribute$textBaseli2 === void 0 ? textTheme.textBaseline : _attribute$textBaseli2,
|
|
14548
14608
|
_attribute$fontSize2 = attribute.fontSize,
|
|
14549
14609
|
fontSize = _attribute$fontSize2 === void 0 ? textTheme.fontSize : _attribute$fontSize2,
|
|
14550
14610
|
_attribute$fontWeight2 = attribute.fontWeight,
|
|
@@ -14557,8 +14617,16 @@
|
|
|
14557
14617
|
lineHeight = _attribute$lineHeight2 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight2,
|
|
14558
14618
|
_attribute$lineWidth2 = attribute.lineWidth,
|
|
14559
14619
|
lineWidth = _attribute$lineWidth2 === void 0 ? textTheme.lineWidth : _attribute$lineWidth2,
|
|
14560
|
-
_attribute$
|
|
14561
|
-
_attribute$
|
|
14620
|
+
_attribute$verticalMo = attribute.verticalMode,
|
|
14621
|
+
verticalMode = _attribute$verticalMo === void 0 ? textTheme.verticalMode : _attribute$verticalMo;
|
|
14622
|
+
var _attribute$textAlign2 = attribute.textAlign,
|
|
14623
|
+
textAlign = _attribute$textAlign2 === void 0 ? textTheme.textAlign : _attribute$textAlign2,
|
|
14624
|
+
_attribute$textBaseli2 = attribute.textBaseline,
|
|
14625
|
+
textBaseline = _attribute$textBaseli2 === void 0 ? textTheme.textBaseline : _attribute$textBaseli2;
|
|
14626
|
+
if (!verticalMode) {
|
|
14627
|
+
var t = textAlign;
|
|
14628
|
+
textAlign = null !== (_b = Text.baselineMapAlign[textBaseline]) && void 0 !== _b ? _b : "left", textBaseline = null !== (_c = Text.alignMapBaseline[t]) && void 0 !== _c ? _c : "top";
|
|
14629
|
+
}
|
|
14562
14630
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
14563
14631
|
width = this.cache.clipedWidth;
|
|
14564
14632
|
var _dx2 = textDrawOffsetX(textAlign, width),
|
|
@@ -14622,8 +14690,8 @@
|
|
|
14622
14690
|
stroke = _attribute$stroke3 === void 0 ? textTheme.stroke : _attribute$stroke3,
|
|
14623
14691
|
_attribute$lineWidth3 = attribute.lineWidth,
|
|
14624
14692
|
lineWidth = _attribute$lineWidth3 === void 0 ? textTheme.lineWidth : _attribute$lineWidth3,
|
|
14625
|
-
_attribute$
|
|
14626
|
-
_attribute$
|
|
14693
|
+
_attribute$wordBreak2 = attribute.wordBreak;
|
|
14694
|
+
_attribute$wordBreak2 === void 0 ? textTheme.wordBreak : _attribute$wordBreak2;
|
|
14627
14695
|
if (!this.shouldUpdateShape() && (null === (_a = this.cache) || void 0 === _a ? void 0 : _a.layoutData)) {
|
|
14628
14696
|
var _bbox = this.cache.layoutData.bbox;
|
|
14629
14697
|
return this._AABBBounds.set(_bbox.xOffset, _bbox.yOffset, _bbox.xOffset + _bbox.width, _bbox.yOffset + _bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
@@ -14640,7 +14708,7 @@
|
|
|
14640
14708
|
}, {
|
|
14641
14709
|
key: "updateVerticalMultilineAABBBounds",
|
|
14642
14710
|
value: function updateVerticalMultilineAABBBounds(text) {
|
|
14643
|
-
var _a;
|
|
14711
|
+
var _a, _b, _c;
|
|
14644
14712
|
var textTheme = getTheme(this).text,
|
|
14645
14713
|
textMeasure = application.graphicUtil.textMeasure;
|
|
14646
14714
|
var width;
|
|
@@ -14652,10 +14720,6 @@
|
|
|
14652
14720
|
maxLineWidth = _attribute$maxLineWid5 === void 0 ? textTheme.maxLineWidth : _attribute$maxLineWid5,
|
|
14653
14721
|
_attribute$ellipsis4 = attribute.ellipsis,
|
|
14654
14722
|
ellipsis = _attribute$ellipsis4 === void 0 ? textTheme.ellipsis : _attribute$ellipsis4,
|
|
14655
|
-
_attribute$textAlign4 = attribute.textAlign,
|
|
14656
|
-
textAlign = _attribute$textAlign4 === void 0 ? textTheme.textAlign : _attribute$textAlign4,
|
|
14657
|
-
_attribute$textBaseli4 = attribute.textBaseline,
|
|
14658
|
-
textBaseline = _attribute$textBaseli4 === void 0 ? textTheme.textBaseline : _attribute$textBaseli4,
|
|
14659
14723
|
_attribute$fontFamily4 = attribute.fontFamily,
|
|
14660
14724
|
fontFamily = _attribute$fontFamily4 === void 0 ? textTheme.fontFamily : _attribute$fontFamily4,
|
|
14661
14725
|
_attribute$fontSize4 = attribute.fontSize,
|
|
@@ -14668,8 +14732,16 @@
|
|
|
14668
14732
|
lineHeight = _attribute$lineHeight4 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight4,
|
|
14669
14733
|
_attribute$lineWidth4 = attribute.lineWidth,
|
|
14670
14734
|
lineWidth = _attribute$lineWidth4 === void 0 ? textTheme.lineWidth : _attribute$lineWidth4,
|
|
14671
|
-
_attribute$
|
|
14672
|
-
_attribute$
|
|
14735
|
+
_attribute$verticalMo2 = attribute.verticalMode,
|
|
14736
|
+
verticalMode = _attribute$verticalMo2 === void 0 ? textTheme.verticalMode : _attribute$verticalMo2;
|
|
14737
|
+
var _attribute$textAlign4 = attribute.textAlign,
|
|
14738
|
+
textAlign = _attribute$textAlign4 === void 0 ? textTheme.textAlign : _attribute$textAlign4,
|
|
14739
|
+
_attribute$textBaseli4 = attribute.textBaseline,
|
|
14740
|
+
textBaseline = _attribute$textBaseli4 === void 0 ? textTheme.textBaseline : _attribute$textBaseli4;
|
|
14741
|
+
if (!verticalMode) {
|
|
14742
|
+
var t = textAlign;
|
|
14743
|
+
textAlign = null !== (_b = Text.baselineMapAlign[textBaseline]) && void 0 !== _b ? _b : "left", textBaseline = null !== (_c = Text.alignMapBaseline[t]) && void 0 !== _c ? _c : "top";
|
|
14744
|
+
}
|
|
14673
14745
|
if (width = 0, !this.shouldUpdateShape() && this.cache) {
|
|
14674
14746
|
this.cache.verticalList.forEach(function (item) {
|
|
14675
14747
|
var w = item.reduce(function (a, b) {
|
|
@@ -14765,7 +14837,15 @@
|
|
|
14765
14837
|
textBaseline: 1,
|
|
14766
14838
|
fontFamily: 1,
|
|
14767
14839
|
fontWeight: 1
|
|
14768
|
-
}, NOWORK_ANIMATE_ATTR)
|
|
14840
|
+
}, NOWORK_ANIMATE_ATTR), Text.baselineMapAlign = {
|
|
14841
|
+
top: "left",
|
|
14842
|
+
bottom: "right",
|
|
14843
|
+
middle: "center"
|
|
14844
|
+
}, Text.alignMapBaseline = {
|
|
14845
|
+
left: "top",
|
|
14846
|
+
right: "bottom",
|
|
14847
|
+
center: "middle"
|
|
14848
|
+
};
|
|
14769
14849
|
|
|
14770
14850
|
var WRAP_TEXT_UPDATE_TAG_KEY = ["heightLimit", "lineClamp"];
|
|
14771
14851
|
var WrapText = /*#__PURE__*/function (_Text) {
|
|
@@ -17599,7 +17679,7 @@
|
|
|
17599
17679
|
}(Polygon);
|
|
17600
17680
|
Pyramid3d.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
17601
17681
|
|
|
17602
|
-
var __decorate$
|
|
17682
|
+
var __decorate$1O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17603
17683
|
var d,
|
|
17604
17684
|
c = arguments.length,
|
|
17605
17685
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17629,9 +17709,9 @@
|
|
|
17629
17709
|
}]);
|
|
17630
17710
|
return DefaultOuterBorderBoundsContribution;
|
|
17631
17711
|
}();
|
|
17632
|
-
DefaultOuterBorderBoundsContribution = __decorate$
|
|
17712
|
+
DefaultOuterBorderBoundsContribution = __decorate$1O([injectable()], DefaultOuterBorderBoundsContribution);
|
|
17633
17713
|
|
|
17634
|
-
var __decorate$
|
|
17714
|
+
var __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17635
17715
|
var d,
|
|
17636
17716
|
c = arguments.length,
|
|
17637
17717
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17648,9 +17728,9 @@
|
|
|
17648
17728
|
}
|
|
17649
17729
|
return _createClass(DefaultRectOuterBorderBoundsContribution);
|
|
17650
17730
|
}(DefaultOuterBorderBoundsContribution);
|
|
17651
|
-
DefaultRectOuterBorderBoundsContribution = __decorate$
|
|
17731
|
+
DefaultRectOuterBorderBoundsContribution = __decorate$1N([injectable()], DefaultRectOuterBorderBoundsContribution);
|
|
17652
17732
|
|
|
17653
|
-
var __decorate$
|
|
17733
|
+
var __decorate$1M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17654
17734
|
var d,
|
|
17655
17735
|
c = arguments.length,
|
|
17656
17736
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17686,9 +17766,9 @@
|
|
|
17686
17766
|
}]);
|
|
17687
17767
|
return DefaultSymbolOuterBorderBoundsContribution;
|
|
17688
17768
|
}(DefaultOuterBorderBoundsContribution);
|
|
17689
|
-
DefaultSymbolOuterBorderBoundsContribution = __decorate$
|
|
17769
|
+
DefaultSymbolOuterBorderBoundsContribution = __decorate$1M([injectable()], DefaultSymbolOuterBorderBoundsContribution);
|
|
17690
17770
|
|
|
17691
|
-
var __decorate$
|
|
17771
|
+
var __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17692
17772
|
var d,
|
|
17693
17773
|
c = arguments.length,
|
|
17694
17774
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17705,9 +17785,9 @@
|
|
|
17705
17785
|
}
|
|
17706
17786
|
return _createClass(DefaultCircleOuterBorderBoundsContribution);
|
|
17707
17787
|
}(DefaultOuterBorderBoundsContribution);
|
|
17708
|
-
DefaultCircleOuterBorderBoundsContribution = __decorate$
|
|
17788
|
+
DefaultCircleOuterBorderBoundsContribution = __decorate$1L([injectable()], DefaultCircleOuterBorderBoundsContribution);
|
|
17709
17789
|
|
|
17710
|
-
var __decorate$
|
|
17790
|
+
var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17711
17791
|
var d,
|
|
17712
17792
|
c = arguments.length,
|
|
17713
17793
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17724,9 +17804,9 @@
|
|
|
17724
17804
|
}
|
|
17725
17805
|
return _createClass(DefaultArcOuterBorderBoundsContribution);
|
|
17726
17806
|
}(DefaultOuterBorderBoundsContribution);
|
|
17727
|
-
DefaultArcOuterBorderBoundsContribution = __decorate$
|
|
17807
|
+
DefaultArcOuterBorderBoundsContribution = __decorate$1K([injectable()], DefaultArcOuterBorderBoundsContribution);
|
|
17728
17808
|
|
|
17729
|
-
var __decorate$
|
|
17809
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17730
17810
|
var d,
|
|
17731
17811
|
c = arguments.length,
|
|
17732
17812
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17743,7 +17823,7 @@
|
|
|
17743
17823
|
}
|
|
17744
17824
|
return _createClass(DefaultPathOuterBorderBoundsContribution);
|
|
17745
17825
|
}(DefaultOuterBorderBoundsContribution);
|
|
17746
|
-
DefaultPathOuterBorderBoundsContribution = __decorate$
|
|
17826
|
+
DefaultPathOuterBorderBoundsContribution = __decorate$1J([injectable()], DefaultPathOuterBorderBoundsContribution);
|
|
17747
17827
|
|
|
17748
17828
|
var MatrixAllocate = Symbol["for"]("MatrixAllocate");
|
|
17749
17829
|
var Mat4Allocate = Symbol["for"]("Mat4Allocate");
|
|
@@ -17833,17 +17913,17 @@
|
|
|
17833
17913
|
var matrixAllocate = new DefaultMatrixAllocate();
|
|
17834
17914
|
var mat4Allocate = new DefaultMat4Allocate();
|
|
17835
17915
|
|
|
17836
|
-
var __decorate$
|
|
17916
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17837
17917
|
var d,
|
|
17838
17918
|
c = arguments.length,
|
|
17839
17919
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17840
17920
|
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);
|
|
17841
17921
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17842
17922
|
},
|
|
17843
|
-
__metadata$
|
|
17923
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
17844
17924
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17845
17925
|
},
|
|
17846
|
-
__param$
|
|
17926
|
+
__param$U = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17847
17927
|
return function (target, key) {
|
|
17848
17928
|
decorator(target, key, paramIndex);
|
|
17849
17929
|
};
|
|
@@ -18055,6 +18135,7 @@
|
|
|
18055
18135
|
onAttributeUpdate: new SyncHook(["graphic"]),
|
|
18056
18136
|
onSetStage: new SyncHook(["graphic", "stage"]),
|
|
18057
18137
|
onRemove: new SyncHook(["graphic"]),
|
|
18138
|
+
onRelease: new SyncHook(["graphic"]),
|
|
18058
18139
|
onAddIncremental: new SyncHook(["graphic", "group", "stage"]),
|
|
18059
18140
|
onClearIncremental: new SyncHook(["graphic", "group", "stage"]),
|
|
18060
18141
|
beforeUpdateAABBBounds: new SyncHook(["graphic", "stage", "willUpdate", "aabbBounds"]),
|
|
@@ -18076,6 +18157,11 @@
|
|
|
18076
18157
|
value: function onRemove(graphic) {
|
|
18077
18158
|
this.hooks.onRemove.taps.length && this.hooks.onRemove.call(graphic);
|
|
18078
18159
|
}
|
|
18160
|
+
}, {
|
|
18161
|
+
key: "onRelease",
|
|
18162
|
+
value: function onRelease(graphic) {
|
|
18163
|
+
this.hooks.onRelease.taps.length && this.hooks.onRelease.call(graphic);
|
|
18164
|
+
}
|
|
18079
18165
|
}, {
|
|
18080
18166
|
key: "onAddIncremental",
|
|
18081
18167
|
value: function onAddIncremental(graphic, group, stage) {
|
|
@@ -18512,7 +18598,7 @@
|
|
|
18512
18598
|
}]);
|
|
18513
18599
|
return DefaultGraphicService;
|
|
18514
18600
|
}();
|
|
18515
|
-
exports.DefaultGraphicService = __decorate$
|
|
18601
|
+
exports.DefaultGraphicService = __decorate$1I([injectable(), __param$U(0, inject(GraphicCreator)), __param$U(1, inject(ContributionProvider)), __param$U(1, named(RectBoundsContribution)), __param$U(2, inject(ContributionProvider)), __param$U(2, named(SymbolBoundsContribution)), __param$U(3, inject(ContributionProvider)), __param$U(3, named(CircleBoundsContribution)), __param$U(4, inject(ContributionProvider)), __param$U(4, named(ArcBoundsContribution)), __param$U(5, inject(ContributionProvider)), __param$U(5, named(PathBoundsContribution)), __metadata$19("design:paramtypes", [Object, Object, Object, Object, Object, Object])], exports.DefaultGraphicService);
|
|
18516
18602
|
|
|
18517
18603
|
var ShadowRoot = /*#__PURE__*/function (_Group) {
|
|
18518
18604
|
_inherits(ShadowRoot, _Group);
|
|
@@ -18646,7 +18732,7 @@
|
|
|
18646
18732
|
return richText.setAttributes(params), richText.AABBBounds;
|
|
18647
18733
|
}
|
|
18648
18734
|
|
|
18649
|
-
var __decorate$
|
|
18735
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18650
18736
|
var d,
|
|
18651
18737
|
c = arguments.length,
|
|
18652
18738
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18816,19 +18902,19 @@
|
|
|
18816
18902
|
}]);
|
|
18817
18903
|
return BaseRender;
|
|
18818
18904
|
}();
|
|
18819
|
-
exports.BaseRender = __decorate$
|
|
18905
|
+
exports.BaseRender = __decorate$1H([injectable()], exports.BaseRender);
|
|
18820
18906
|
|
|
18821
|
-
var __decorate$
|
|
18907
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18822
18908
|
var d,
|
|
18823
18909
|
c = arguments.length,
|
|
18824
18910
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18825
18911
|
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);
|
|
18826
18912
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18827
18913
|
},
|
|
18828
|
-
__metadata$
|
|
18914
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
18829
18915
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18830
18916
|
},
|
|
18831
|
-
__param$
|
|
18917
|
+
__param$T = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18832
18918
|
return function (target, key) {
|
|
18833
18919
|
decorator(target, key, paramIndex);
|
|
18834
18920
|
};
|
|
@@ -18998,19 +19084,19 @@
|
|
|
18998
19084
|
}]);
|
|
18999
19085
|
return DefaultCanvasArcRender;
|
|
19000
19086
|
}(exports.BaseRender);
|
|
19001
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
19087
|
+
exports.DefaultCanvasArcRender = __decorate$1G([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(ArcRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
19002
19088
|
|
|
19003
|
-
var __decorate$
|
|
19089
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19004
19090
|
var d,
|
|
19005
19091
|
c = arguments.length,
|
|
19006
19092
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19007
19093
|
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);
|
|
19008
19094
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19009
19095
|
},
|
|
19010
|
-
__metadata$
|
|
19096
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
19011
19097
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19012
19098
|
},
|
|
19013
|
-
__param$
|
|
19099
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19014
19100
|
return function (target, key) {
|
|
19015
19101
|
decorator(target, key, paramIndex);
|
|
19016
19102
|
};
|
|
@@ -19056,7 +19142,7 @@
|
|
|
19056
19142
|
}]);
|
|
19057
19143
|
return DefaultCanvasCircleRender;
|
|
19058
19144
|
}(exports.BaseRender);
|
|
19059
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
19145
|
+
exports.DefaultCanvasCircleRender = __decorate$1F([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(CircleRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
19060
19146
|
|
|
19061
19147
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
19062
19148
|
var _a;
|
|
@@ -19196,7 +19282,7 @@
|
|
|
19196
19282
|
}
|
|
19197
19283
|
}
|
|
19198
19284
|
|
|
19199
|
-
var __decorate$
|
|
19285
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19200
19286
|
var d,
|
|
19201
19287
|
c = arguments.length,
|
|
19202
19288
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19354,7 +19440,7 @@
|
|
|
19354
19440
|
}]);
|
|
19355
19441
|
return DefaultCanvasLineRender;
|
|
19356
19442
|
}(exports.BaseRender);
|
|
19357
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
19443
|
+
exports.DefaultCanvasLineRender = __decorate$1E([injectable()], exports.DefaultCanvasLineRender);
|
|
19358
19444
|
|
|
19359
19445
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
19360
19446
|
var _a;
|
|
@@ -19495,17 +19581,17 @@
|
|
|
19495
19581
|
}
|
|
19496
19582
|
}
|
|
19497
19583
|
|
|
19498
|
-
var __decorate$
|
|
19584
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19499
19585
|
var d,
|
|
19500
19586
|
c = arguments.length,
|
|
19501
19587
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19502
19588
|
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);
|
|
19503
19589
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19504
19590
|
},
|
|
19505
|
-
__metadata$
|
|
19591
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
19506
19592
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19507
19593
|
},
|
|
19508
|
-
__param$
|
|
19594
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19509
19595
|
return function (target, key) {
|
|
19510
19596
|
decorator(target, key, paramIndex);
|
|
19511
19597
|
};
|
|
@@ -19725,19 +19811,19 @@
|
|
|
19725
19811
|
}]);
|
|
19726
19812
|
return DefaultCanvasAreaRender;
|
|
19727
19813
|
}(exports.BaseRender);
|
|
19728
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
19814
|
+
exports.DefaultCanvasAreaRender = __decorate$1D([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(AreaRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
19729
19815
|
|
|
19730
|
-
var __decorate$
|
|
19816
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19731
19817
|
var d,
|
|
19732
19818
|
c = arguments.length,
|
|
19733
19819
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19734
19820
|
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);
|
|
19735
19821
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19736
19822
|
},
|
|
19737
|
-
__metadata$
|
|
19823
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
19738
19824
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19739
19825
|
},
|
|
19740
|
-
__param$
|
|
19826
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19741
19827
|
return function (target, key) {
|
|
19742
19828
|
decorator(target, key, paramIndex);
|
|
19743
19829
|
};
|
|
@@ -19783,7 +19869,7 @@
|
|
|
19783
19869
|
}]);
|
|
19784
19870
|
return DefaultCanvasPathRender;
|
|
19785
19871
|
}(exports.BaseRender);
|
|
19786
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
19872
|
+
exports.DefaultCanvasPathRender = __decorate$1C([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(PathRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
19787
19873
|
|
|
19788
19874
|
var halfPi = pi / 2;
|
|
19789
19875
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
@@ -19843,17 +19929,17 @@
|
|
|
19843
19929
|
return path.closePath(), path;
|
|
19844
19930
|
}
|
|
19845
19931
|
|
|
19846
|
-
var __decorate$
|
|
19932
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19847
19933
|
var d,
|
|
19848
19934
|
c = arguments.length,
|
|
19849
19935
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19850
19936
|
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);
|
|
19851
19937
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19852
19938
|
},
|
|
19853
|
-
__metadata$
|
|
19939
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
19854
19940
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19855
19941
|
},
|
|
19856
|
-
__param$
|
|
19942
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19857
19943
|
return function (target, key) {
|
|
19858
19944
|
decorator(target, key, paramIndex);
|
|
19859
19945
|
};
|
|
@@ -19922,19 +20008,19 @@
|
|
|
19922
20008
|
}]);
|
|
19923
20009
|
return DefaultCanvasRectRender;
|
|
19924
20010
|
}(exports.BaseRender);
|
|
19925
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
20011
|
+
exports.DefaultCanvasRectRender = __decorate$1B([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(RectRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
19926
20012
|
|
|
19927
|
-
var __decorate$
|
|
20013
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19928
20014
|
var d,
|
|
19929
20015
|
c = arguments.length,
|
|
19930
20016
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19931
20017
|
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);
|
|
19932
20018
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19933
20019
|
},
|
|
19934
|
-
__metadata$
|
|
20020
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
19935
20021
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19936
20022
|
},
|
|
19937
|
-
__param$
|
|
20023
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19938
20024
|
return function (target, key) {
|
|
19939
20025
|
decorator(target, key, paramIndex);
|
|
19940
20026
|
};
|
|
@@ -19995,19 +20081,19 @@
|
|
|
19995
20081
|
}]);
|
|
19996
20082
|
return DefaultCanvasSymbolRender;
|
|
19997
20083
|
}(exports.BaseRender);
|
|
19998
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
20084
|
+
exports.DefaultCanvasSymbolRender = __decorate$1A([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(SymbolRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
19999
20085
|
|
|
20000
|
-
var __decorate$
|
|
20086
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20001
20087
|
var d,
|
|
20002
20088
|
c = arguments.length,
|
|
20003
20089
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20004
20090
|
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);
|
|
20005
20091
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20006
20092
|
},
|
|
20007
|
-
__metadata$
|
|
20093
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
20008
20094
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20009
20095
|
},
|
|
20010
|
-
__param$
|
|
20096
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20011
20097
|
return function (target, key) {
|
|
20012
20098
|
decorator(target, key, paramIndex);
|
|
20013
20099
|
};
|
|
@@ -20025,7 +20111,7 @@
|
|
|
20025
20111
|
key: "drawShape",
|
|
20026
20112
|
value: function drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
20027
20113
|
var _this2 = this;
|
|
20028
|
-
var _a;
|
|
20114
|
+
var _a, _b, _c;
|
|
20029
20115
|
var textAttribute = getTheme(text, null == params ? void 0 : params.theme).text,
|
|
20030
20116
|
_text$attribute = text.attribute,
|
|
20031
20117
|
str = _text$attribute.text,
|
|
@@ -20053,15 +20139,22 @@
|
|
|
20053
20139
|
direction = _text$attribute$direc === void 0 ? textAttribute.direction : _text$attribute$direc,
|
|
20054
20140
|
_text$attribute$fontS = _text$attribute.fontSize,
|
|
20055
20141
|
fontSize = _text$attribute$fontS === void 0 ? textAttribute.fontSize : _text$attribute$fontS,
|
|
20056
|
-
_text$attribute$
|
|
20057
|
-
|
|
20058
|
-
_text$attribute$textA = _text$attribute.textAlign,
|
|
20059
|
-
textAlign = _text$attribute$textA === void 0 ? textAttribute.textAlign : _text$attribute$textA,
|
|
20142
|
+
_text$attribute$verti = _text$attribute.verticalMode,
|
|
20143
|
+
verticalMode = _text$attribute$verti === void 0 ? textAttribute.verticalMode : _text$attribute$verti,
|
|
20060
20144
|
_text$attribute$x = _text$attribute.x,
|
|
20061
20145
|
originX = _text$attribute$x === void 0 ? textAttribute.x : _text$attribute$x,
|
|
20062
20146
|
_text$attribute$y = _text$attribute.y,
|
|
20063
|
-
originY = _text$attribute$y === void 0 ? textAttribute.y : _text$attribute$y
|
|
20064
|
-
|
|
20147
|
+
originY = _text$attribute$y === void 0 ? textAttribute.y : _text$attribute$y;
|
|
20148
|
+
var _text$attribute2 = text.attribute,
|
|
20149
|
+
_text$attribute2$text = _text$attribute2.textAlign,
|
|
20150
|
+
textAlign = _text$attribute2$text === void 0 ? textAttribute.textAlign : _text$attribute2$text,
|
|
20151
|
+
_text$attribute2$text2 = _text$attribute2.textBaseline,
|
|
20152
|
+
textBaseline = _text$attribute2$text2 === void 0 ? textAttribute.textBaseline : _text$attribute2$text2;
|
|
20153
|
+
if (!verticalMode && "vertical" === direction) {
|
|
20154
|
+
var t = textAlign;
|
|
20155
|
+
textAlign = null !== (_a = text.getBaselineMapAlign()[textBaseline]) && void 0 !== _a ? _a : "left", textBaseline = null !== (_b = text.getAlignMapBaseline()[t]) && void 0 !== _b ? _b : "top";
|
|
20156
|
+
}
|
|
20157
|
+
var lineHeight = null !== (_c = text.attribute.lineHeight) && void 0 !== _c ? _c : fontSize,
|
|
20065
20158
|
data = this.valid(text, textAttribute, fillCb, strokeCb);
|
|
20066
20159
|
if (!data) return;
|
|
20067
20160
|
var fVisible = data.fVisible,
|
|
@@ -20125,9 +20218,9 @@
|
|
|
20125
20218
|
var _cache = text.cache;
|
|
20126
20219
|
if ("horizontal" === direction) {
|
|
20127
20220
|
context.setTextStyle(text.attribute, textAttribute, z);
|
|
20128
|
-
var
|
|
20221
|
+
var _t = text.clipedText;
|
|
20129
20222
|
var dy = 0;
|
|
20130
|
-
lineHeight !== fontSize && ("top" === textBaseline ? dy = (lineHeight - fontSize) / 2 : "middle" === textBaseline || "bottom" === textBaseline && (dy = -(lineHeight - fontSize) / 2)), drawText(
|
|
20223
|
+
lineHeight !== fontSize && ("top" === textBaseline ? dy = (lineHeight - fontSize) / 2 : "middle" === textBaseline || "bottom" === textBaseline && (dy = -(lineHeight - fontSize) / 2)), drawText(_t, 0, dy, 0);
|
|
20131
20224
|
} else if (_cache) {
|
|
20132
20225
|
context.setTextStyleWithoutAlignBaseline(text.attribute, textAttribute, z);
|
|
20133
20226
|
var _verticalList = _cache.verticalList;
|
|
@@ -20159,19 +20252,19 @@
|
|
|
20159
20252
|
key: "drawUnderLine",
|
|
20160
20253
|
value: function drawUnderLine(underline, lineThrough, text, x, y, z, textAttribute, context) {
|
|
20161
20254
|
if (lineThrough + underline <= 0) return;
|
|
20162
|
-
var _text$
|
|
20163
|
-
_text$
|
|
20164
|
-
textAlign = _text$
|
|
20165
|
-
_text$
|
|
20166
|
-
textBaseline = _text$
|
|
20167
|
-
_text$
|
|
20168
|
-
fontSize = _text$
|
|
20169
|
-
_text$
|
|
20170
|
-
fill = _text$
|
|
20171
|
-
_text$
|
|
20172
|
-
opacity = _text$
|
|
20173
|
-
_text$
|
|
20174
|
-
fillOpacity = _text$
|
|
20255
|
+
var _text$attribute3 = text.attribute,
|
|
20256
|
+
_text$attribute3$text = _text$attribute3.textAlign,
|
|
20257
|
+
textAlign = _text$attribute3$text === void 0 ? textAttribute.textAlign : _text$attribute3$text,
|
|
20258
|
+
_text$attribute3$text2 = _text$attribute3.textBaseline,
|
|
20259
|
+
textBaseline = _text$attribute3$text2 === void 0 ? textAttribute.textBaseline : _text$attribute3$text2,
|
|
20260
|
+
_text$attribute3$font = _text$attribute3.fontSize,
|
|
20261
|
+
fontSize = _text$attribute3$font === void 0 ? textAttribute.fontSize : _text$attribute3$font,
|
|
20262
|
+
_text$attribute3$fill = _text$attribute3.fill,
|
|
20263
|
+
fill = _text$attribute3$fill === void 0 ? textAttribute.fill : _text$attribute3$fill,
|
|
20264
|
+
_text$attribute3$opac = _text$attribute3.opacity,
|
|
20265
|
+
opacity = _text$attribute3$opac === void 0 ? textAttribute.opacity : _text$attribute3$opac,
|
|
20266
|
+
_text$attribute3$fill2 = _text$attribute3.fillOpacity,
|
|
20267
|
+
fillOpacity = _text$attribute3$fill2 === void 0 ? textAttribute.fillOpacity : _text$attribute3$fill2,
|
|
20175
20268
|
w = text.clipedWidth,
|
|
20176
20269
|
offsetX = textDrawOffsetX(textAlign, w),
|
|
20177
20270
|
offsetY = textLayoutOffsetY(textBaseline, fontSize, fontSize),
|
|
@@ -20196,17 +20289,17 @@
|
|
|
20196
20289
|
key: "drawMultiUnderLine",
|
|
20197
20290
|
value: function drawMultiUnderLine(underline, lineThrough, text, x, y, z, w, textAttribute, context) {
|
|
20198
20291
|
if (lineThrough + underline <= 0) return;
|
|
20199
|
-
var _text$
|
|
20200
|
-
_text$
|
|
20201
|
-
textAlign = _text$
|
|
20202
|
-
_text$
|
|
20203
|
-
fontSize = _text$
|
|
20204
|
-
_text$
|
|
20205
|
-
fill = _text$
|
|
20206
|
-
_text$
|
|
20207
|
-
opacity = _text$
|
|
20208
|
-
_text$
|
|
20209
|
-
fillOpacity = _text$
|
|
20292
|
+
var _text$attribute4 = text.attribute,
|
|
20293
|
+
_text$attribute4$text = _text$attribute4.textAlign,
|
|
20294
|
+
textAlign = _text$attribute4$text === void 0 ? textAttribute.textAlign : _text$attribute4$text,
|
|
20295
|
+
_text$attribute4$font = _text$attribute4.fontSize,
|
|
20296
|
+
fontSize = _text$attribute4$font === void 0 ? textAttribute.fontSize : _text$attribute4$font,
|
|
20297
|
+
_text$attribute4$fill = _text$attribute4.fill,
|
|
20298
|
+
fill = _text$attribute4$fill === void 0 ? textAttribute.fill : _text$attribute4$fill,
|
|
20299
|
+
_text$attribute4$opac = _text$attribute4.opacity,
|
|
20300
|
+
opacity = _text$attribute4$opac === void 0 ? textAttribute.opacity : _text$attribute4$opac,
|
|
20301
|
+
_text$attribute4$fill2 = _text$attribute4.fillOpacity,
|
|
20302
|
+
fillOpacity = _text$attribute4$fill2 === void 0 ? textAttribute.fillOpacity : _text$attribute4$fill2,
|
|
20210
20303
|
offsetX = textDrawOffsetX(textAlign, w),
|
|
20211
20304
|
offsetY = textLayoutOffsetY("alphabetic", fontSize, fontSize),
|
|
20212
20305
|
attribute = {
|
|
@@ -20230,9 +20323,9 @@
|
|
|
20230
20323
|
}]);
|
|
20231
20324
|
return DefaultCanvasTextRender;
|
|
20232
20325
|
}(exports.BaseRender);
|
|
20233
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
20326
|
+
exports.DefaultCanvasTextRender = __decorate$1z([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(TextRenderContribution)), __metadata$12("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
20234
20327
|
|
|
20235
|
-
var __decorate$
|
|
20328
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20236
20329
|
var d,
|
|
20237
20330
|
c = arguments.length,
|
|
20238
20331
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -20242,7 +20335,7 @@
|
|
|
20242
20335
|
exports.AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
|
|
20243
20336
|
_classCallCheck(this, AbstractGraphicRender);
|
|
20244
20337
|
});
|
|
20245
|
-
exports.AbstractGraphicRender = __decorate$
|
|
20338
|
+
exports.AbstractGraphicRender = __decorate$1y([injectable()], exports.AbstractGraphicRender);
|
|
20246
20339
|
|
|
20247
20340
|
function drawPolygon(path, points, x, y) {
|
|
20248
20341
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -20295,17 +20388,17 @@
|
|
|
20295
20388
|
};
|
|
20296
20389
|
}
|
|
20297
20390
|
|
|
20298
|
-
var __decorate$
|
|
20391
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20299
20392
|
var d,
|
|
20300
20393
|
c = arguments.length,
|
|
20301
20394
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20302
20395
|
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);
|
|
20303
20396
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20304
20397
|
},
|
|
20305
|
-
__metadata$
|
|
20398
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
20306
20399
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20307
20400
|
},
|
|
20308
|
-
__param$
|
|
20401
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20309
20402
|
return function (target, key) {
|
|
20310
20403
|
decorator(target, key, paramIndex);
|
|
20311
20404
|
};
|
|
@@ -20353,19 +20446,19 @@
|
|
|
20353
20446
|
}]);
|
|
20354
20447
|
return DefaultCanvasPolygonRender;
|
|
20355
20448
|
}(exports.BaseRender);
|
|
20356
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
20449
|
+
exports.DefaultCanvasPolygonRender = __decorate$1x([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(PolygonRenderContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
20357
20450
|
|
|
20358
|
-
var __decorate$
|
|
20451
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20359
20452
|
var d,
|
|
20360
20453
|
c = arguments.length,
|
|
20361
20454
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20362
20455
|
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);
|
|
20363
20456
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20364
20457
|
},
|
|
20365
|
-
__metadata
|
|
20458
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
20366
20459
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20367
20460
|
},
|
|
20368
|
-
__param$
|
|
20461
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20369
20462
|
return function (target, key) {
|
|
20370
20463
|
decorator(target, key, paramIndex);
|
|
20371
20464
|
};
|
|
@@ -20433,7 +20526,7 @@
|
|
|
20433
20526
|
}]);
|
|
20434
20527
|
return DefaultCanvasImageRender;
|
|
20435
20528
|
}(exports.BaseRender);
|
|
20436
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
20529
|
+
exports.DefaultCanvasImageRender = __decorate$1w([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(ImageRenderContribution)), __metadata$10("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
20437
20530
|
|
|
20438
20531
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
20439
20532
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -20596,17 +20689,17 @@
|
|
|
20596
20689
|
}();
|
|
20597
20690
|
var canvasAllocate = new DefaultCanvasAllocate();
|
|
20598
20691
|
|
|
20599
|
-
var __decorate$
|
|
20692
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20600
20693
|
var d,
|
|
20601
20694
|
c = arguments.length,
|
|
20602
20695
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20603
20696
|
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);
|
|
20604
20697
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20605
20698
|
},
|
|
20606
|
-
__metadata
|
|
20699
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
20607
20700
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20608
20701
|
},
|
|
20609
|
-
__param$
|
|
20702
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20610
20703
|
return function (target, key) {
|
|
20611
20704
|
decorator(target, key, paramIndex);
|
|
20612
20705
|
};
|
|
@@ -20640,7 +20733,7 @@
|
|
|
20640
20733
|
}]);
|
|
20641
20734
|
return DefaultBaseBackgroundRenderContribution;
|
|
20642
20735
|
}();
|
|
20643
|
-
exports.DefaultBaseBackgroundRenderContribution = __decorate$
|
|
20736
|
+
exports.DefaultBaseBackgroundRenderContribution = __decorate$1v([injectable()], exports.DefaultBaseBackgroundRenderContribution);
|
|
20644
20737
|
exports.DefaultBaseInteractiveRenderContribution = /*#__PURE__*/function () {
|
|
20645
20738
|
function DefaultBaseInteractiveRenderContribution(subRenderContribitions) {
|
|
20646
20739
|
_classCallCheck(this, DefaultBaseInteractiveRenderContribution);
|
|
@@ -20656,7 +20749,7 @@
|
|
|
20656
20749
|
}]);
|
|
20657
20750
|
return DefaultBaseInteractiveRenderContribution;
|
|
20658
20751
|
}();
|
|
20659
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
20752
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1v([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(InteractiveSubRenderContribution)), __metadata$$("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
20660
20753
|
exports.DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
20661
20754
|
function DefaultBaseTextureRenderContribution() {
|
|
20662
20755
|
_classCallCheck(this, DefaultBaseTextureRenderContribution);
|
|
@@ -20797,9 +20890,9 @@
|
|
|
20797
20890
|
}]);
|
|
20798
20891
|
return DefaultBaseTextureRenderContribution;
|
|
20799
20892
|
}();
|
|
20800
|
-
exports.DefaultBaseTextureRenderContribution = __decorate$
|
|
20893
|
+
exports.DefaultBaseTextureRenderContribution = __decorate$1v([injectable()], exports.DefaultBaseTextureRenderContribution);
|
|
20801
20894
|
|
|
20802
|
-
var __decorate$
|
|
20895
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20803
20896
|
var d,
|
|
20804
20897
|
c = arguments.length,
|
|
20805
20898
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -20881,7 +20974,7 @@
|
|
|
20881
20974
|
}]);
|
|
20882
20975
|
return DefaultArcRenderContribution;
|
|
20883
20976
|
}();
|
|
20884
|
-
exports.DefaultArcRenderContribution = __decorate$
|
|
20977
|
+
exports.DefaultArcRenderContribution = __decorate$1u([injectable()], exports.DefaultArcRenderContribution);
|
|
20885
20978
|
exports.DefaultArcBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
|
|
20886
20979
|
_inherits(DefaultArcBackgroundRenderContribution, _DefaultBaseBackgroun);
|
|
20887
20980
|
var _super = _createSuper(DefaultArcBackgroundRenderContribution);
|
|
@@ -20893,7 +20986,7 @@
|
|
|
20893
20986
|
}
|
|
20894
20987
|
return _createClass(DefaultArcBackgroundRenderContribution);
|
|
20895
20988
|
}(exports.DefaultBaseBackgroundRenderContribution);
|
|
20896
|
-
exports.DefaultArcBackgroundRenderContribution = __decorate$
|
|
20989
|
+
exports.DefaultArcBackgroundRenderContribution = __decorate$1u([injectable()], exports.DefaultArcBackgroundRenderContribution);
|
|
20897
20990
|
exports.DefaultArcTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
|
|
20898
20991
|
_inherits(DefaultArcTextureRenderContribution, _DefaultBaseTextureRe);
|
|
20899
20992
|
var _super2 = _createSuper(DefaultArcTextureRenderContribution);
|
|
@@ -20905,9 +20998,9 @@
|
|
|
20905
20998
|
}
|
|
20906
20999
|
return _createClass(DefaultArcTextureRenderContribution);
|
|
20907
21000
|
}(exports.DefaultBaseTextureRenderContribution);
|
|
20908
|
-
exports.DefaultArcTextureRenderContribution = __decorate$
|
|
21001
|
+
exports.DefaultArcTextureRenderContribution = __decorate$1u([injectable()], exports.DefaultArcTextureRenderContribution);
|
|
20909
21002
|
|
|
20910
|
-
var __decorate$
|
|
21003
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20911
21004
|
var d,
|
|
20912
21005
|
c = arguments.length,
|
|
20913
21006
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -20969,7 +21062,7 @@
|
|
|
20969
21062
|
}]);
|
|
20970
21063
|
return DefaultCircleRenderContribution;
|
|
20971
21064
|
}();
|
|
20972
|
-
exports.DefaultCircleRenderContribution = __decorate$
|
|
21065
|
+
exports.DefaultCircleRenderContribution = __decorate$1t([injectable()], exports.DefaultCircleRenderContribution);
|
|
20973
21066
|
exports.DefaultCircleBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
|
|
20974
21067
|
_inherits(DefaultCircleBackgroundRenderContribution, _DefaultBaseBackgroun);
|
|
20975
21068
|
var _super = _createSuper(DefaultCircleBackgroundRenderContribution);
|
|
@@ -20981,7 +21074,7 @@
|
|
|
20981
21074
|
}
|
|
20982
21075
|
return _createClass(DefaultCircleBackgroundRenderContribution);
|
|
20983
21076
|
}(exports.DefaultBaseBackgroundRenderContribution);
|
|
20984
|
-
exports.DefaultCircleBackgroundRenderContribution = __decorate$
|
|
21077
|
+
exports.DefaultCircleBackgroundRenderContribution = __decorate$1t([injectable()], exports.DefaultCircleBackgroundRenderContribution);
|
|
20985
21078
|
exports.DefaultCircleTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
|
|
20986
21079
|
_inherits(DefaultCircleTextureRenderContribution, _DefaultBaseTextureRe);
|
|
20987
21080
|
var _super2 = _createSuper(DefaultCircleTextureRenderContribution);
|
|
@@ -20993,9 +21086,9 @@
|
|
|
20993
21086
|
}
|
|
20994
21087
|
return _createClass(DefaultCircleTextureRenderContribution);
|
|
20995
21088
|
}(exports.DefaultBaseTextureRenderContribution);
|
|
20996
|
-
exports.DefaultCircleTextureRenderContribution = __decorate$
|
|
21089
|
+
exports.DefaultCircleTextureRenderContribution = __decorate$1t([injectable()], exports.DefaultCircleTextureRenderContribution);
|
|
20997
21090
|
|
|
20998
|
-
var __decorate$
|
|
21091
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20999
21092
|
var d,
|
|
21000
21093
|
c = arguments.length,
|
|
21001
21094
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21026,9 +21119,9 @@
|
|
|
21026
21119
|
}]);
|
|
21027
21120
|
return DefaultGroupBackgroundRenderContribution;
|
|
21028
21121
|
}(exports.DefaultBaseBackgroundRenderContribution);
|
|
21029
|
-
exports.DefaultGroupBackgroundRenderContribution = __decorate$
|
|
21122
|
+
exports.DefaultGroupBackgroundRenderContribution = __decorate$1s([injectable()], exports.DefaultGroupBackgroundRenderContribution);
|
|
21030
21123
|
|
|
21031
|
-
var __decorate$
|
|
21124
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21032
21125
|
var d,
|
|
21033
21126
|
c = arguments.length,
|
|
21034
21127
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21093,7 +21186,7 @@
|
|
|
21093
21186
|
}]);
|
|
21094
21187
|
return DefaultImageBackgroundRenderContribution;
|
|
21095
21188
|
}(exports.DefaultBaseBackgroundRenderContribution);
|
|
21096
|
-
exports.DefaultImageBackgroundRenderContribution = __decorate$
|
|
21189
|
+
exports.DefaultImageBackgroundRenderContribution = __decorate$1r([injectable()], exports.DefaultImageBackgroundRenderContribution);
|
|
21097
21190
|
function getActualPosition(graphic) {
|
|
21098
21191
|
var boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
21099
21192
|
bounds = graphic.AABBBounds;
|
|
@@ -21109,7 +21202,7 @@
|
|
|
21109
21202
|
};
|
|
21110
21203
|
}
|
|
21111
21204
|
|
|
21112
|
-
var __decorate$
|
|
21205
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21113
21206
|
var d,
|
|
21114
21207
|
c = arguments.length,
|
|
21115
21208
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21181,7 +21274,7 @@
|
|
|
21181
21274
|
}]);
|
|
21182
21275
|
return DefaultRectRenderContribution;
|
|
21183
21276
|
}();
|
|
21184
|
-
exports.DefaultRectRenderContribution = __decorate$
|
|
21277
|
+
exports.DefaultRectRenderContribution = __decorate$1q([injectable()], exports.DefaultRectRenderContribution);
|
|
21185
21278
|
exports.DefaultRectBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
|
|
21186
21279
|
_inherits(DefaultRectBackgroundRenderContribution, _DefaultBaseBackgroun);
|
|
21187
21280
|
var _super = _createSuper(DefaultRectBackgroundRenderContribution);
|
|
@@ -21193,7 +21286,7 @@
|
|
|
21193
21286
|
}
|
|
21194
21287
|
return _createClass(DefaultRectBackgroundRenderContribution);
|
|
21195
21288
|
}(exports.DefaultBaseBackgroundRenderContribution);
|
|
21196
|
-
exports.DefaultRectBackgroundRenderContribution = __decorate$
|
|
21289
|
+
exports.DefaultRectBackgroundRenderContribution = __decorate$1q([injectable()], exports.DefaultRectBackgroundRenderContribution);
|
|
21197
21290
|
exports.DefaultRectTextureRenderContribution = /*#__PURE__*/function (_DefaultBaseTextureRe) {
|
|
21198
21291
|
_inherits(DefaultRectTextureRenderContribution, _DefaultBaseTextureRe);
|
|
21199
21292
|
var _super2 = _createSuper(DefaultRectTextureRenderContribution);
|
|
@@ -21205,7 +21298,7 @@
|
|
|
21205
21298
|
}
|
|
21206
21299
|
return _createClass(DefaultRectTextureRenderContribution);
|
|
21207
21300
|
}(exports.DefaultBaseTextureRenderContribution);
|
|
21208
|
-
exports.DefaultRectTextureRenderContribution = __decorate$
|
|
21301
|
+
exports.DefaultRectTextureRenderContribution = __decorate$1q([injectable()], exports.DefaultRectTextureRenderContribution);
|
|
21209
21302
|
exports.SplitRectBeforeRenderContribution = /*#__PURE__*/function () {
|
|
21210
21303
|
function SplitRectBeforeRenderContribution() {
|
|
21211
21304
|
_classCallCheck(this, SplitRectBeforeRenderContribution);
|
|
@@ -21223,7 +21316,7 @@
|
|
|
21223
21316
|
}]);
|
|
21224
21317
|
return SplitRectBeforeRenderContribution;
|
|
21225
21318
|
}();
|
|
21226
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
21319
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1q([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
21227
21320
|
exports.SplitRectAfterRenderContribution = /*#__PURE__*/function () {
|
|
21228
21321
|
function SplitRectAfterRenderContribution() {
|
|
21229
21322
|
_classCallCheck(this, SplitRectAfterRenderContribution);
|
|
@@ -21252,9 +21345,9 @@
|
|
|
21252
21345
|
}]);
|
|
21253
21346
|
return SplitRectAfterRenderContribution;
|
|
21254
21347
|
}();
|
|
21255
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
21348
|
+
exports.SplitRectAfterRenderContribution = __decorate$1q([injectable()], exports.SplitRectAfterRenderContribution);
|
|
21256
21349
|
|
|
21257
|
-
var __decorate$
|
|
21350
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21258
21351
|
var d,
|
|
21259
21352
|
c = arguments.length,
|
|
21260
21353
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21314,7 +21407,7 @@
|
|
|
21314
21407
|
}]);
|
|
21315
21408
|
return DefaultSymbolRenderContribution;
|
|
21316
21409
|
}();
|
|
21317
|
-
exports.DefaultSymbolRenderContribution = __decorate$
|
|
21410
|
+
exports.DefaultSymbolRenderContribution = __decorate$1p([injectable()], exports.DefaultSymbolRenderContribution);
|
|
21318
21411
|
var DefaultSymbolBackgroundRenderContribution = /*#__PURE__*/function (_DefaultBaseBackgroun) {
|
|
21319
21412
|
_inherits(DefaultSymbolBackgroundRenderContribution, _DefaultBaseBackgroun);
|
|
21320
21413
|
var _super = _createSuper(DefaultSymbolBackgroundRenderContribution);
|
|
@@ -21338,17 +21431,17 @@
|
|
|
21338
21431
|
return _createClass(DefaultSymbolTextureRenderContribution);
|
|
21339
21432
|
}(exports.DefaultBaseTextureRenderContribution);
|
|
21340
21433
|
|
|
21341
|
-
var __decorate$
|
|
21434
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21342
21435
|
var d,
|
|
21343
21436
|
c = arguments.length,
|
|
21344
21437
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21345
21438
|
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);
|
|
21346
21439
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21347
21440
|
},
|
|
21348
|
-
__metadata$
|
|
21441
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
21349
21442
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21350
21443
|
},
|
|
21351
|
-
__param$
|
|
21444
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21352
21445
|
return function (target, key) {
|
|
21353
21446
|
decorator(target, key, paramIndex);
|
|
21354
21447
|
};
|
|
@@ -21405,7 +21498,7 @@
|
|
|
21405
21498
|
}]);
|
|
21406
21499
|
return DefaultRenderService;
|
|
21407
21500
|
}();
|
|
21408
|
-
exports.DefaultRenderService = __decorate$
|
|
21501
|
+
exports.DefaultRenderService = __decorate$1o([injectable(), __param$J(0, inject(DrawContribution)), __metadata$_("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
21409
21502
|
|
|
21410
21503
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
21411
21504
|
bind(exports.DefaultRenderService).toSelf(), bind(RenderService).toService(exports.DefaultRenderService);
|
|
@@ -21416,17 +21509,17 @@
|
|
|
21416
21509
|
var BoundsPicker = Symbol["for"]("BoundsPicker");
|
|
21417
21510
|
var GlobalPickerService = Symbol["for"]("GlobalPickerService");
|
|
21418
21511
|
|
|
21419
|
-
var __decorate$
|
|
21512
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21420
21513
|
var d,
|
|
21421
21514
|
c = arguments.length,
|
|
21422
21515
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21423
21516
|
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);
|
|
21424
21517
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21425
21518
|
},
|
|
21426
|
-
__metadata$
|
|
21519
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
21427
21520
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21428
21521
|
},
|
|
21429
|
-
__param$
|
|
21522
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21430
21523
|
return function (target, key) {
|
|
21431
21524
|
decorator(target, key, paramIndex);
|
|
21432
21525
|
};
|
|
@@ -21451,7 +21544,14 @@
|
|
|
21451
21544
|
};
|
|
21452
21545
|
var parentMatrix = new Matrix(1, 0, 0, 1, 0, 0);
|
|
21453
21546
|
var group;
|
|
21454
|
-
for (var i = 0; i < graphics.length
|
|
21547
|
+
for (var i = 0; i < graphics.length; i++) {
|
|
21548
|
+
if (graphics[i].isContainer) result = this.pickGroup(graphics[i], point, parentMatrix, params);else {
|
|
21549
|
+
var data = this.pickItem(graphics[i], point, parentMatrix, params);
|
|
21550
|
+
data && (result.graphic = data.graphic, result.params = data.params);
|
|
21551
|
+
}
|
|
21552
|
+
if (result.graphic) break;
|
|
21553
|
+
group || (group = result.group);
|
|
21554
|
+
}
|
|
21455
21555
|
if (result.graphic || (result.group = group), result.graphic) {
|
|
21456
21556
|
var g = result.graphic;
|
|
21457
21557
|
for (; g.parent;) g = g.parent;
|
|
@@ -21484,7 +21584,9 @@
|
|
|
21484
21584
|
return parentMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 !== group.attribute.childrenPickable && group.forEachChildren(function (graphic) {
|
|
21485
21585
|
if (graphic.isContainer) result = _this2.pickGroup(graphic, point, parentMatrix, params);else {
|
|
21486
21586
|
var _newPoint = new Point(point.x, point.y);
|
|
21487
|
-
parentMatrix.transformPoint(_newPoint, _newPoint)
|
|
21587
|
+
parentMatrix.transformPoint(_newPoint, _newPoint);
|
|
21588
|
+
var data = _this2.pickItem(graphic, _newPoint, parentMatrix, params);
|
|
21589
|
+
data && (result.graphic = data.graphic, result.params = data.params);
|
|
21488
21590
|
}
|
|
21489
21591
|
return !!result.graphic || !!result.group;
|
|
21490
21592
|
}), result.graphic || result.group || !groupPicked || (result.group = group), result;
|
|
@@ -21492,14 +21594,16 @@
|
|
|
21492
21594
|
}, {
|
|
21493
21595
|
key: "pickItem",
|
|
21494
21596
|
value: function pickItem(graphic, point, parentMatrix, params) {
|
|
21495
|
-
return !1 === graphic.attribute.pickable ? null : graphic.AABBBounds.containsPoint(point) ?
|
|
21597
|
+
return !1 === graphic.attribute.pickable ? null : graphic.AABBBounds.containsPoint(point) ? {
|
|
21598
|
+
graphic: graphic
|
|
21599
|
+
} : null;
|
|
21496
21600
|
}
|
|
21497
21601
|
}]);
|
|
21498
21602
|
return DefaultGlobalPickerService;
|
|
21499
21603
|
}();
|
|
21500
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
21604
|
+
exports.DefaultGlobalPickerService = __decorate$1n([injectable(), __param$I(0, inject(VGlobal)), __metadata$Z("design:paramtypes", [Object])], exports.DefaultGlobalPickerService);
|
|
21501
21605
|
|
|
21502
|
-
var __decorate$
|
|
21606
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21503
21607
|
var d,
|
|
21504
21608
|
c = arguments.length,
|
|
21505
21609
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21515,20 +21619,20 @@
|
|
|
21515
21619
|
_createClass(ShadowRootPickItemInterceptorContribution, [{
|
|
21516
21620
|
key: "afterPickItem",
|
|
21517
21621
|
value: function afterPickItem(graphic, pickerService, point, pickParams, params) {
|
|
21518
|
-
return
|
|
21622
|
+
return graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx ? this._pickItem(graphic, pickerService, point, pickParams, params) : null;
|
|
21519
21623
|
}
|
|
21520
21624
|
}, {
|
|
21521
21625
|
key: "beforePickItem",
|
|
21522
21626
|
value: function beforePickItem(graphic, pickerService, point, pickParams, params) {
|
|
21523
|
-
return graphic.attribute.shadowRootIdx < 0
|
|
21627
|
+
return graphic.attribute.shadowRootIdx < 0 ? this._pickItem(graphic, pickerService, point, pickParams, params) : null;
|
|
21524
21628
|
}
|
|
21525
21629
|
}, {
|
|
21526
21630
|
key: "_pickItem",
|
|
21527
21631
|
value: function _pickItem(graphic, pickerService, point, pickParams, params) {
|
|
21528
|
-
if (!graphic.shadowRoot) return
|
|
21632
|
+
if (!graphic.shadowRoot) return null;
|
|
21529
21633
|
var _ref = params || {},
|
|
21530
21634
|
parentMatrix = _ref.parentMatrix;
|
|
21531
|
-
if (!parentMatrix) return
|
|
21635
|
+
if (!parentMatrix) return null;
|
|
21532
21636
|
var context = pickerService.pickContext;
|
|
21533
21637
|
context.highPerformanceSave();
|
|
21534
21638
|
var g = graphic.shadowRoot,
|
|
@@ -21543,7 +21647,7 @@
|
|
|
21543
21647
|
}]);
|
|
21544
21648
|
return ShadowRootPickItemInterceptorContribution;
|
|
21545
21649
|
}();
|
|
21546
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
21650
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
21547
21651
|
exports.Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
|
|
21548
21652
|
function Canvas3DPickItemInterceptor() {
|
|
21549
21653
|
_classCallCheck(this, Canvas3DPickItemInterceptor);
|
|
@@ -21620,7 +21724,7 @@
|
|
|
21620
21724
|
}]);
|
|
21621
21725
|
return Canvas3DPickItemInterceptor;
|
|
21622
21726
|
}();
|
|
21623
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
21727
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1m([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
21624
21728
|
|
|
21625
21729
|
var pickModule = new ContainerModule(function (bind) {
|
|
21626
21730
|
bind(PickerService).toService(GlobalPickerService), bind(exports.DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(exports.DefaultGlobalPickerService), bind(exports.Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.Canvas3DPickItemInterceptor), bind(exports.ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.ShadowRootPickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
|
|
@@ -21633,17 +21737,17 @@
|
|
|
21633
21737
|
var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
|
|
21634
21738
|
var PluginService = Symbol["for"]("PluginService");
|
|
21635
21739
|
|
|
21636
|
-
var __decorate$
|
|
21740
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21637
21741
|
var d,
|
|
21638
21742
|
c = arguments.length,
|
|
21639
21743
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21640
21744
|
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);
|
|
21641
21745
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21642
21746
|
},
|
|
21643
|
-
__metadata$
|
|
21747
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
21644
21748
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21645
21749
|
},
|
|
21646
|
-
__param$
|
|
21750
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21647
21751
|
return function (target, key) {
|
|
21648
21752
|
decorator(target, key, paramIndex);
|
|
21649
21753
|
};
|
|
@@ -21691,7 +21795,7 @@
|
|
|
21691
21795
|
}]);
|
|
21692
21796
|
return DefaultPluginService;
|
|
21693
21797
|
}();
|
|
21694
|
-
DefaultPluginService = __decorate$
|
|
21798
|
+
DefaultPluginService = __decorate$1l([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(AutoEnablePlugins)), __metadata$Y("design:paramtypes", [Object])], DefaultPluginService);
|
|
21695
21799
|
|
|
21696
21800
|
var pluginModule = new ContainerModule(function (bind) {
|
|
21697
21801
|
bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -21705,17 +21809,17 @@
|
|
|
21705
21809
|
bind(exports.DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(exports.DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
|
|
21706
21810
|
});
|
|
21707
21811
|
|
|
21708
|
-
var __decorate$
|
|
21812
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21709
21813
|
var d,
|
|
21710
21814
|
c = arguments.length,
|
|
21711
21815
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21712
21816
|
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);
|
|
21713
21817
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21714
21818
|
},
|
|
21715
|
-
__metadata$
|
|
21819
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
21716
21820
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21717
21821
|
},
|
|
21718
|
-
__param$
|
|
21822
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21719
21823
|
return function (target, key) {
|
|
21720
21824
|
decorator(target, key, paramIndex);
|
|
21721
21825
|
};
|
|
@@ -21723,7 +21827,7 @@
|
|
|
21723
21827
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
21724
21828
|
function CanvasLayerHandlerContribution(global) {
|
|
21725
21829
|
_classCallCheck(this, CanvasLayerHandlerContribution);
|
|
21726
|
-
this.global = global, this.offscreen = !1;
|
|
21830
|
+
this.global = global, this.type = "static", this.offscreen = !1;
|
|
21727
21831
|
}
|
|
21728
21832
|
_createClass(CanvasLayerHandlerContribution, [{
|
|
21729
21833
|
key: "setDpr",
|
|
@@ -21810,7 +21914,79 @@
|
|
|
21810
21914
|
}]);
|
|
21811
21915
|
return CanvasLayerHandlerContribution;
|
|
21812
21916
|
}();
|
|
21813
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
21917
|
+
CanvasLayerHandlerContribution = __decorate$1k([injectable(), __param$G(0, inject(VGlobal)), __metadata$X("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
|
|
21918
|
+
|
|
21919
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21920
|
+
var d,
|
|
21921
|
+
c = arguments.length,
|
|
21922
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21923
|
+
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);
|
|
21924
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21925
|
+
},
|
|
21926
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
21927
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21928
|
+
},
|
|
21929
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21930
|
+
return function (target, key) {
|
|
21931
|
+
decorator(target, key, paramIndex);
|
|
21932
|
+
};
|
|
21933
|
+
};
|
|
21934
|
+
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
21935
|
+
function EmptyLayerHandlerContribution(global) {
|
|
21936
|
+
_classCallCheck(this, EmptyLayerHandlerContribution);
|
|
21937
|
+
this.global = global, this.type = "virtual", this.offscreen = !1;
|
|
21938
|
+
}
|
|
21939
|
+
_createClass(EmptyLayerHandlerContribution, [{
|
|
21940
|
+
key: "setDpr",
|
|
21941
|
+
value: function setDpr(dpr) {}
|
|
21942
|
+
}, {
|
|
21943
|
+
key: "init",
|
|
21944
|
+
value: function init(layer, window, params) {
|
|
21945
|
+
if (this.layer = layer, this.window = window, params.main) throw new Error("virtual layer不能作为main layer");
|
|
21946
|
+
this.main = !1, this.canvas = null, this.context = null;
|
|
21947
|
+
}
|
|
21948
|
+
}, {
|
|
21949
|
+
key: "resize",
|
|
21950
|
+
value: function resize(w, h) {}
|
|
21951
|
+
}, {
|
|
21952
|
+
key: "resizeView",
|
|
21953
|
+
value: function resizeView(w, h) {}
|
|
21954
|
+
}, {
|
|
21955
|
+
key: "render",
|
|
21956
|
+
value: function render(group, params, userParams) {
|
|
21957
|
+
this.mainHandler.render(group, params, Object.assign(Object.assign({}, userParams), {
|
|
21958
|
+
clear: !1
|
|
21959
|
+
}));
|
|
21960
|
+
}
|
|
21961
|
+
}, {
|
|
21962
|
+
key: "merge",
|
|
21963
|
+
value: function merge(layerHandlers) {}
|
|
21964
|
+
}, {
|
|
21965
|
+
key: "prepare",
|
|
21966
|
+
value: function prepare(dirtyBounds, params) {}
|
|
21967
|
+
}, {
|
|
21968
|
+
key: "drawTo",
|
|
21969
|
+
value: function drawTo(target, group, params) {
|
|
21970
|
+
var _a;
|
|
21971
|
+
var context = target.getContext();
|
|
21972
|
+
params.renderService.render(group, Object.assign(Object.assign({
|
|
21973
|
+
context: context
|
|
21974
|
+
}, params), {
|
|
21975
|
+
clear: params.clear ? null !== (_a = params.background) && void 0 !== _a ? _a : "#fff" : void 0
|
|
21976
|
+
}));
|
|
21977
|
+
}
|
|
21978
|
+
}, {
|
|
21979
|
+
key: "getContext",
|
|
21980
|
+
value: function getContext() {
|
|
21981
|
+
return null;
|
|
21982
|
+
}
|
|
21983
|
+
}, {
|
|
21984
|
+
key: "release",
|
|
21985
|
+
value: function release() {}
|
|
21986
|
+
}]);
|
|
21987
|
+
return EmptyLayerHandlerContribution;
|
|
21988
|
+
}();
|
|
21989
|
+
EmptyLayerHandlerContribution = __decorate$1j([injectable(), __param$F(0, inject(VGlobal)), __metadata$W("design:paramtypes", [Object])], EmptyLayerHandlerContribution);
|
|
21814
21990
|
|
|
21815
21991
|
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21816
21992
|
var d,
|
|
@@ -21830,7 +22006,7 @@
|
|
|
21830
22006
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
21831
22007
|
function OffscreenLayerHandlerContribution(global) {
|
|
21832
22008
|
_classCallCheck(this, OffscreenLayerHandlerContribution);
|
|
21833
|
-
this.global = global, this.offscreen = !0;
|
|
22009
|
+
this.global = global, this.type = "dynamic", this.offscreen = !0;
|
|
21834
22010
|
}
|
|
21835
22011
|
_createClass(OffscreenLayerHandlerContribution, [{
|
|
21836
22012
|
key: "setDpr",
|
|
@@ -21914,7 +22090,7 @@
|
|
|
21914
22090
|
OffscreenLayerHandlerContribution = __decorate$1i([injectable(), __param$E(0, inject(VGlobal)), __metadata$V("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
|
|
21915
22091
|
|
|
21916
22092
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
21917
|
-
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(
|
|
22093
|
+
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
21918
22094
|
});
|
|
21919
22095
|
|
|
21920
22096
|
function load$1(container) {
|
|
@@ -22078,6 +22254,71 @@
|
|
|
22078
22254
|
return ShadowRootDrawItemInterceptorContribution;
|
|
22079
22255
|
}();
|
|
22080
22256
|
ShadowRootDrawItemInterceptorContribution = __decorate$1h([injectable()], ShadowRootDrawItemInterceptorContribution);
|
|
22257
|
+
var CommonDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
22258
|
+
function CommonDrawItemInterceptorContribution() {
|
|
22259
|
+
_classCallCheck(this, CommonDrawItemInterceptorContribution);
|
|
22260
|
+
this.order = 1;
|
|
22261
|
+
}
|
|
22262
|
+
_createClass(CommonDrawItemInterceptorContribution, [{
|
|
22263
|
+
key: "afterDrawItem",
|
|
22264
|
+
value: function afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
22265
|
+
return (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
22266
|
+
}
|
|
22267
|
+
}, {
|
|
22268
|
+
key: "beforeDrawItem",
|
|
22269
|
+
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
22270
|
+
return graphic.attribute.shadowRootIdx < 0 && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
22271
|
+
}
|
|
22272
|
+
}, {
|
|
22273
|
+
key: "drawItem",
|
|
22274
|
+
value: function drawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
22275
|
+
if (!graphic.attribute._debug_bounds) return !1;
|
|
22276
|
+
var context = drawContext.context;
|
|
22277
|
+
context.highPerformanceSave();
|
|
22278
|
+
var b = graphic.AABBBounds;
|
|
22279
|
+
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;
|
|
22280
|
+
}
|
|
22281
|
+
}]);
|
|
22282
|
+
return CommonDrawItemInterceptorContribution;
|
|
22283
|
+
}();
|
|
22284
|
+
CommonDrawItemInterceptorContribution = __decorate$1h([injectable()], CommonDrawItemInterceptorContribution);
|
|
22285
|
+
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
22286
|
+
function InteractiveDrawItemInterceptorContribution() {
|
|
22287
|
+
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
22288
|
+
this.order = 1;
|
|
22289
|
+
}
|
|
22290
|
+
_createClass(InteractiveDrawItemInterceptorContribution, [{
|
|
22291
|
+
key: "beforeDrawItem",
|
|
22292
|
+
value: function beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
22293
|
+
var interactiveGraphic;
|
|
22294
|
+
if (graphic.attribute.interactive) {
|
|
22295
|
+
interactiveGraphic = graphic.interactiveGraphic, interactiveGraphic || (interactiveGraphic = graphic.clone(), graphic.interactiveGraphic = interactiveGraphic);
|
|
22296
|
+
var m = graphic.globalTransMatrix;
|
|
22297
|
+
interactiveGraphic.setAttributes({
|
|
22298
|
+
x: 0,
|
|
22299
|
+
y: 0,
|
|
22300
|
+
scaleX: 1,
|
|
22301
|
+
scaleY: 1,
|
|
22302
|
+
angle: 0,
|
|
22303
|
+
postMatrix: m,
|
|
22304
|
+
interactive: !1
|
|
22305
|
+
}, !1, {
|
|
22306
|
+
skipUpdateCallback: !0
|
|
22307
|
+
}), drawContext.stage.tryInitInteractiveLayer();
|
|
22308
|
+
var interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
|
|
22309
|
+
return interactiveLayer && interactiveLayer.add(interactiveGraphic), !0;
|
|
22310
|
+
}
|
|
22311
|
+
if (interactiveGraphic) {
|
|
22312
|
+
drawContext.stage.tryInitInteractiveLayer();
|
|
22313
|
+
var _interactiveLayer = drawContext.stage.getLayer("_builtin_interactive");
|
|
22314
|
+
_interactiveLayer && _interactiveLayer.removeChild(interactiveGraphic);
|
|
22315
|
+
}
|
|
22316
|
+
return !1;
|
|
22317
|
+
}
|
|
22318
|
+
}]);
|
|
22319
|
+
return InteractiveDrawItemInterceptorContribution;
|
|
22320
|
+
}();
|
|
22321
|
+
InteractiveDrawItemInterceptorContribution = __decorate$1h([injectable()], InteractiveDrawItemInterceptorContribution);
|
|
22081
22322
|
var Canvas3DDrawItemInterceptor = /*#__PURE__*/function () {
|
|
22082
22323
|
function Canvas3DDrawItemInterceptor() {
|
|
22083
22324
|
_classCallCheck(this, Canvas3DDrawItemInterceptor);
|
|
@@ -23659,7 +23900,7 @@
|
|
|
23659
23900
|
DefaultAreaTextureRenderContribution = __decorate$13([injectable()], DefaultAreaTextureRenderContribution);
|
|
23660
23901
|
|
|
23661
23902
|
var renderModule = new ContainerModule(function (bind) {
|
|
23662
|
-
bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(exports.DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(exports.DefaultCanvasCircleRender), bind(GraphicRender).to(exports.DefaultCanvasCircleRender), bind(exports.DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(exports.DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(exports.DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(exports.DefaultCanvasRectRender), bind(GraphicRender).to(exports.DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(exports.DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(exports.SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(exports.SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(exports.DefaultRectRenderContribution), bind(RectRenderContribution).toService(exports.DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(exports.DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(exports.SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(exports.SplitRectAfterRenderContribution), bindContributionProvider(bind, RectRenderContribution), bind(exports.DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(exports.DefaultCanvasTextRender), bind(GraphicRender).to(exports.DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(exports.DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(exports.DefaultCanvasPathRender), bind(GraphicRender).to(exports.DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(exports.DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(exports.DefaultCanvasSymbolRender), bind(GraphicRender).to(exports.DefaultCanvasSymbolRender), bind(exports.DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(exports.DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(exports.DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(exports.DefaultCanvasArcRender), bind(GraphicRender).to(exports.DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(exports.DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(exports.DefaultArcRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(exports.DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(exports.DefaultCanvasLineRender), bind(GraphicRender).to(exports.DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(exports.DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(exports.DefaultCanvasAreaRender), bind(GraphicRender).to(exports.DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(exports.DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(exports.DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(exports.DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(exports.DefaultCanvasPolygonRender), bind(GraphicRender).to(exports.DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(exports.DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(exports.DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(exports.DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(exports.DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bindContributionProvider(bind, DrawItemInterceptor);
|
|
23903
|
+
bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(exports.DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(exports.DefaultCanvasCircleRender), bind(GraphicRender).to(exports.DefaultCanvasCircleRender), bind(exports.DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(exports.DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(exports.DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(exports.DefaultCanvasRectRender), bind(GraphicRender).to(exports.DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(exports.DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(exports.SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(exports.SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(exports.DefaultRectRenderContribution), bind(RectRenderContribution).toService(exports.DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(exports.DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(exports.SplitRectBeforeRenderContribution), bind(RectRenderContribution).toService(exports.SplitRectAfterRenderContribution), bindContributionProvider(bind, RectRenderContribution), bind(exports.DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(exports.DefaultCanvasTextRender), bind(GraphicRender).to(exports.DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(exports.DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(exports.DefaultCanvasPathRender), bind(GraphicRender).to(exports.DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(exports.DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(exports.DefaultCanvasSymbolRender), bind(GraphicRender).to(exports.DefaultCanvasSymbolRender), bind(exports.DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(exports.DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(exports.DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(exports.DefaultCanvasArcRender), bind(GraphicRender).to(exports.DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(exports.DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(exports.DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(exports.DefaultArcRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(exports.DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(exports.DefaultCanvasLineRender), bind(GraphicRender).to(exports.DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(exports.DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(exports.DefaultCanvasAreaRender), bind(GraphicRender).to(exports.DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(exports.DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(exports.DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(exports.DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(exports.DefaultCanvasPolygonRender), bind(GraphicRender).to(exports.DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(exports.DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(exports.DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(exports.DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(exports.DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bind(InteractiveDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(InteractiveDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
|
|
23663
23904
|
});
|
|
23664
23905
|
|
|
23665
23906
|
function load(container) {
|
|
@@ -23817,6 +24058,8 @@
|
|
|
23817
24058
|
var _this = this;
|
|
23818
24059
|
this.pluginService = context, context.stage.hooks.afterRender.tap(this.key, function (stage) {
|
|
23819
24060
|
stage && stage === _this.pluginService.stage && _this.drawHTML(context.stage.renderService);
|
|
24061
|
+
}), application.graphicService.hooks.onRelease.tap(this.key, function (graphic) {
|
|
24062
|
+
_this.removeDom(graphic);
|
|
23820
24063
|
});
|
|
23821
24064
|
}
|
|
23822
24065
|
}, {
|
|
@@ -23846,6 +24089,13 @@
|
|
|
23846
24089
|
g.isContainer ? _this4.renderGroupHTML(g) : _this4.renderGraphicHTML(g);
|
|
23847
24090
|
});
|
|
23848
24091
|
}
|
|
24092
|
+
}, {
|
|
24093
|
+
key: "removeDom",
|
|
24094
|
+
value: function removeDom(graphic) {
|
|
24095
|
+
graphic.bindDom && graphic.bindDom.size && (graphic.bindDom.forEach(function (item) {
|
|
24096
|
+
item.dom && item.dom.parentElement.removeChild(item.dom);
|
|
24097
|
+
}), graphic.bindDom.clear());
|
|
24098
|
+
}
|
|
23849
24099
|
}, {
|
|
23850
24100
|
key: "renderGraphicHTML",
|
|
23851
24101
|
value: function renderGraphicHTML(graphic) {
|
|
@@ -24334,7 +24584,7 @@
|
|
|
24334
24584
|
canvasControled: !1 !== params.canvasControled,
|
|
24335
24585
|
title: params.title || "",
|
|
24336
24586
|
canvas: params.canvas
|
|
24337
|
-
}), _this._viewBox = new AABBBounds(), params.viewBox ? _this._viewBox.setValue(params.viewBox.x1, params.viewBox.y1, params.viewBox.x2, params.viewBox.y2) : _this._viewBox.setValue(0, 0, _this.width, _this.height), _this.renderCount = 0, _this._subView = !(_this._viewBox.width() === _this.width && _this._viewBox.height() === _this.height), _this._background = null !== (_a = params.background) && void 0 !== _a ? _a : DefaultConfig$1.BACKGROUND, _this.appendChild(_this.layerService.createLayer(_assertThisInitialized(_this), {
|
|
24587
|
+
}), _this._viewBox = new AABBBounds(), params.viewBox ? _this._viewBox.setValue(params.viewBox.x1, params.viewBox.y1, params.viewBox.x2, params.viewBox.y2) : _this._viewBox.setValue(0, 0, _this.width, _this.height), _this.state = "normal", _this.renderCount = 0, _this._subView = !(_this._viewBox.width() === _this.width && _this._viewBox.height() === _this.height), _this._background = null !== (_a = params.background) && void 0 !== _a ? _a : DefaultConfig$1.BACKGROUND, _this.appendChild(_this.layerService.createLayer(_assertThisInitialized(_this), {
|
|
24338
24588
|
main: !0
|
|
24339
24589
|
})), _this.nextFrameRenderLayerSet = new Set(), _this.willNextFrameRender = !1, _this.stage = _assertThisInitialized(_this), _this.renderStyle = params.renderStyle, _this.global.supportEvent && (_this.eventSystem = new EventSystem({
|
|
24340
24590
|
targetElement: _this.window,
|
|
@@ -24637,10 +24887,10 @@
|
|
|
24637
24887
|
}
|
|
24638
24888
|
}, {
|
|
24639
24889
|
key: "createLayer",
|
|
24640
|
-
value: function createLayer(
|
|
24890
|
+
value: function createLayer(layerMode) {
|
|
24641
24891
|
var layer = this.layerService.createLayer(this, {
|
|
24642
24892
|
main: !1,
|
|
24643
|
-
|
|
24893
|
+
layerMode: layerMode
|
|
24644
24894
|
});
|
|
24645
24895
|
return this.appendChild(layer), layer;
|
|
24646
24896
|
}
|
|
@@ -24671,57 +24921,48 @@
|
|
|
24671
24921
|
}, {
|
|
24672
24922
|
key: "render",
|
|
24673
24923
|
value: function render(layers, params) {
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
renderService: _this10.renderService,
|
|
24678
|
-
background: layer === _this10.defaultLayer ? _this10.background : void 0,
|
|
24679
|
-
updateBounds: !!_this10.dirtyBounds
|
|
24680
|
-
}, Object.assign({
|
|
24681
|
-
renderStyle: _this10.renderStyle
|
|
24682
|
-
}, params));
|
|
24683
|
-
}), this.combineLayersToWindow(), this.nextFrameRenderLayerSet.clear(), this.hooks.afterRender.call(this)), this._skipRender && this._skipRender++;
|
|
24924
|
+
this.ticker.start(), this.timeline.resume();
|
|
24925
|
+
var state = this.state;
|
|
24926
|
+
this.state = "rendering", this.layerService.prepareStageLayer(this), this._skipRender || (this.lastRenderparams = params, this.hooks.beforeRender.call(this), this.renderLayerList(this.children), this.combineLayersToWindow(), this.nextFrameRenderLayerSet.clear(), this.hooks.afterRender.call(this)), this.state = state, this._skipRender && this._skipRender++;
|
|
24684
24927
|
}
|
|
24685
24928
|
}, {
|
|
24686
24929
|
key: "combineLayersToWindow",
|
|
24687
|
-
value: function combineLayersToWindow() {
|
|
24688
|
-
var _this11 = this;
|
|
24689
|
-
this.forEach(function (layer, i) {
|
|
24690
|
-
layer.combineTo(_this11.window, {
|
|
24691
|
-
clear: 0 === i,
|
|
24692
|
-
x: _this11.x,
|
|
24693
|
-
y: _this11.y,
|
|
24694
|
-
width: _this11.viewWidth,
|
|
24695
|
-
height: _this11.viewHeight,
|
|
24696
|
-
renderService: _this11.renderService,
|
|
24697
|
-
background: layer === _this11.defaultLayer ? _this11.background : void 0,
|
|
24698
|
-
updateBounds: !!_this11.dirtyBounds
|
|
24699
|
-
});
|
|
24700
|
-
});
|
|
24701
|
-
}
|
|
24930
|
+
value: function combineLayersToWindow() {}
|
|
24702
24931
|
}, {
|
|
24703
24932
|
key: "renderNextFrame",
|
|
24704
|
-
value: function renderNextFrame(layers) {
|
|
24705
|
-
var
|
|
24706
|
-
this.nextFrameRenderLayerSet.size !== this.childrenCount && (layers || this).forEach(function (layer) {
|
|
24707
|
-
|
|
24933
|
+
value: function renderNextFrame(layers, force) {
|
|
24934
|
+
var _this10 = this;
|
|
24935
|
+
("rendering" !== this.state || force) && (this.nextFrameRenderLayerSet.size !== this.childrenCount && (layers || this).forEach(function (layer) {
|
|
24936
|
+
_this10.nextFrameRenderLayerSet.add(layer);
|
|
24708
24937
|
}), this.willNextFrameRender || (this.willNextFrameRender = !0, this.global.getRequestAnimationFrame()(function () {
|
|
24709
|
-
|
|
24710
|
-
}));
|
|
24938
|
+
_this10._doRenderInThisFrame(), _this10.willNextFrameRender = !1;
|
|
24939
|
+
})));
|
|
24711
24940
|
}
|
|
24712
24941
|
}, {
|
|
24713
24942
|
key: "_doRenderInThisFrame",
|
|
24714
24943
|
value: function _doRenderInThisFrame() {
|
|
24715
|
-
|
|
24716
|
-
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24944
|
+
this.timeline.resume(), this.ticker.start();
|
|
24945
|
+
var state = this.state;
|
|
24946
|
+
this.state = "rendering", this.layerService.prepareStageLayer(this), this.nextFrameRenderLayerSet.size && !this._skipRender && (this.hooks.beforeRender.call(this), this.renderLayerList(Array.from(this.nextFrameRenderLayerSet.values()), this.lastRenderparams || {}), this.combineLayersToWindow(), this.hooks.afterRender.call(this), this.nextFrameRenderLayerSet.clear()), this.state = state, this._skipRender && this._skipRender++;
|
|
24947
|
+
}
|
|
24948
|
+
}, {
|
|
24949
|
+
key: "renderLayerList",
|
|
24950
|
+
value: function renderLayerList(layerList, params) {
|
|
24951
|
+
var _this11 = this;
|
|
24952
|
+
var list = [];
|
|
24953
|
+
for (var i = 0; i < layerList.length; i++) {
|
|
24954
|
+
var l = layerList[i];
|
|
24955
|
+
"virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
|
|
24956
|
+
}
|
|
24957
|
+
list.forEach(function (layer) {
|
|
24958
|
+
layer.renderCount > _this11.renderCount || (layer.renderCount = _this11.renderCount + 1, layer.render({
|
|
24959
|
+
renderService: _this11.renderService,
|
|
24960
|
+
background: layer === _this11.defaultLayer ? _this11.background : void 0,
|
|
24961
|
+
updateBounds: !!_this11.dirtyBounds
|
|
24721
24962
|
}, Object.assign({
|
|
24722
|
-
renderStyle:
|
|
24723
|
-
},
|
|
24724
|
-
})
|
|
24963
|
+
renderStyle: _this11.renderStyle
|
|
24964
|
+
}, params)));
|
|
24965
|
+
});
|
|
24725
24966
|
}
|
|
24726
24967
|
}, {
|
|
24727
24968
|
key: "resizeWindow",
|
|
@@ -24751,10 +24992,10 @@
|
|
|
24751
24992
|
}, {
|
|
24752
24993
|
key: "setViewBox",
|
|
24753
24994
|
value: function setViewBox(x, y, w, h, rerender) {
|
|
24754
|
-
var
|
|
24995
|
+
var _this12 = this;
|
|
24755
24996
|
var isRerender = !0;
|
|
24756
24997
|
"object" == _typeof(x) ? (this.viewBox.setValue(x.x1, x.y1, x.x2, x.y2), !1 === y && (isRerender = !1)) : (this.viewBox.setValue(x, y, x + w, y + h), !1 === rerender && (isRerender = !1)), this.forEachChildren(function (c) {
|
|
24757
|
-
c.resizeView(
|
|
24998
|
+
c.resizeView(_this12.viewBox.width(), _this12.viewBox.height());
|
|
24758
24999
|
}), isRerender && this.render();
|
|
24759
25000
|
}
|
|
24760
25001
|
}, {
|
|
@@ -24818,13 +25059,13 @@
|
|
|
24818
25059
|
}, {
|
|
24819
25060
|
key: "renderTo",
|
|
24820
25061
|
value: function renderTo(window, params) {
|
|
24821
|
-
var
|
|
25062
|
+
var _this13 = this;
|
|
24822
25063
|
this.forEachChildren(function (layer, i) {
|
|
24823
25064
|
layer.drawTo(window, Object.assign(Object.assign({}, params), {
|
|
24824
|
-
renderService:
|
|
24825
|
-
background: layer ===
|
|
25065
|
+
renderService: _this13.renderService,
|
|
25066
|
+
background: layer === _this13.defaultLayer ? _this13.background : void 0,
|
|
24826
25067
|
clear: 0 === i,
|
|
24827
|
-
updateBounds: !!
|
|
25068
|
+
updateBounds: !!_this13.dirtyBounds
|
|
24828
25069
|
}));
|
|
24829
25070
|
});
|
|
24830
25071
|
}
|
|
@@ -25616,7 +25857,7 @@
|
|
|
25616
25857
|
this.pickContext && (this.pickContext.inuse = !0), params.pickContext = this.pickContext, this.pickContext && this.pickContext.clearMatrix(!0, 1);
|
|
25617
25858
|
var parentMatrix = new Matrix(1, 0, 0, 1, offsetX, offsetY);
|
|
25618
25859
|
var group;
|
|
25619
|
-
for (var i = graphics.length - 1; i >= 0 && (graphics[i].isContainer ?
|
|
25860
|
+
for (var i = graphics.length - 1; i >= 0 && (result = graphics[i].isContainer ? this.pickGroup(graphics[i], point, parentMatrix, params) : this.pickItem(graphics[i], point, parentMatrix, params), !result.graphic); i--) group || (group = result.group);
|
|
25620
25861
|
if (result.graphic || (result.group = group), this.pickContext && (this.pickContext.inuse = !1), result.graphic) {
|
|
25621
25862
|
var g = result.graphic;
|
|
25622
25863
|
for (; g.parent;) g = g.parent;
|
|
@@ -25668,9 +25909,9 @@
|
|
|
25668
25909
|
var insideGroup = group.AABBBounds.containsPoint(newPoint);
|
|
25669
25910
|
if (!insideGroup && !group.stage.camera) return result;
|
|
25670
25911
|
var pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
|
|
25671
|
-
pickedItem && (result.graphic = pickedItem);
|
|
25912
|
+
pickedItem && pickedItem.graphic && (result.graphic = pickedItem.graphic, result.params = pickedItem.params);
|
|
25672
25913
|
var groupPicked = !1 !== group.attribute.pickable && insideGroup;
|
|
25673
|
-
return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 === group.attribute.childrenPickable || pickedItem || foreach(group, DefaultAttribute.zIndex, function (graphic) {
|
|
25914
|
+
return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 === group.attribute.childrenPickable || pickedItem && pickedItem.graphic || foreach(group, DefaultAttribute.zIndex, function (graphic) {
|
|
25674
25915
|
if (graphic.isContainer) {
|
|
25675
25916
|
var _newPoint = new Point(point.x, point.y),
|
|
25676
25917
|
theme = getTheme(group).group,
|
|
@@ -25691,7 +25932,7 @@
|
|
|
25691
25932
|
_scrollY = _group$attribute2$scr2 === void 0 ? _theme.scrollY : _group$attribute2$scr2;
|
|
25692
25933
|
_newPoint2.x -= _scrollX, _newPoint2.y -= _scrollY;
|
|
25693
25934
|
var _pickedItem = _this.pickItem(graphic, _newPoint2, parentMatrix, params);
|
|
25694
|
-
result.graphic = _pickedItem;
|
|
25935
|
+
_pickedItem && _pickedItem.graphic && (result.graphic = _pickedItem.graphic, result.params = _pickedItem.params);
|
|
25695
25936
|
}
|
|
25696
25937
|
return !!result.graphic || !!result.group;
|
|
25697
25938
|
}, !0, !!context.camera), context.modelMatrix !== lastMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastMatrix, result.graphic || result.group || !groupPicked || group.stage.camera || (result.group = group), matrixAllocate.free(currentGroupMatrix), result;
|
|
@@ -28456,20 +28697,23 @@
|
|
|
28456
28697
|
var ret = drawContribution.beforePickItem(graphic, this, point, params, {
|
|
28457
28698
|
parentMatrix: parentMatrix
|
|
28458
28699
|
});
|
|
28459
|
-
if (ret) return
|
|
28700
|
+
if (ret) return ret;
|
|
28460
28701
|
}
|
|
28461
28702
|
}
|
|
28462
28703
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
28463
28704
|
if (!picker) return null;
|
|
28464
|
-
var
|
|
28465
|
-
|
|
28705
|
+
var g = picker.contains(graphic, point, params) ? graphic : null,
|
|
28706
|
+
data = {
|
|
28707
|
+
graphic: g
|
|
28708
|
+
};
|
|
28709
|
+
if (g) return data;
|
|
28466
28710
|
if (this.InterceptorContributions.length) for (var _i = 0; _i < this.InterceptorContributions.length; _i++) {
|
|
28467
28711
|
var _drawContribution = this.InterceptorContributions[_i];
|
|
28468
28712
|
if (_drawContribution.afterPickItem) {
|
|
28469
28713
|
var _ret = _drawContribution.afterPickItem(graphic, this, point, params, {
|
|
28470
28714
|
parentMatrix: parentMatrix
|
|
28471
28715
|
});
|
|
28472
|
-
if (_ret) return
|
|
28716
|
+
if (_ret) return _ret;
|
|
28473
28717
|
}
|
|
28474
28718
|
}
|
|
28475
28719
|
return data;
|
|
@@ -28575,7 +28819,7 @@
|
|
|
28575
28819
|
x += _point.x, y += _point.y, pickContext.setTransformForCurrent();
|
|
28576
28820
|
} else x = 0, y = 0, onlyTranslate = !1, pickContext.transformFromMatrix(rect.transMatrix, !0);
|
|
28577
28821
|
var picked = !0;
|
|
28578
|
-
if (!onlyTranslate || isNumber$2(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(function (num) {
|
|
28822
|
+
if (!onlyTranslate || rect.shadowRoot || isNumber$2(cornerRadius, !0) && 0 !== cornerRadius || isArray$1(cornerRadius) && cornerRadius.some(function (num) {
|
|
28579
28823
|
return 0 !== num;
|
|
28580
28824
|
})) picked = !1, this.canvasRenderer.drawShape(rect, pickContext, x, y, {}, null, function (context, rectAttribute, themeAttribute) {
|
|
28581
28825
|
return !!picked || (picked = context.isPointInPath(point.x, point.y), picked);
|
|
@@ -28583,7 +28827,7 @@
|
|
|
28583
28827
|
if (picked) return !0;
|
|
28584
28828
|
var lineWidth = rectAttribute.lineWidth || themeAttribute.lineWidth;
|
|
28585
28829
|
return pickContext.lineWidth = getScaledStroke(pickContext, lineWidth, pickContext.dpr), picked = context.isPointInStroke(point.x, point.y), picked;
|
|
28586
|
-
});else
|
|
28830
|
+
});else {
|
|
28587
28831
|
var _rect$attribute2 = rect.attribute,
|
|
28588
28832
|
_rect$attribute2$fill = _rect$attribute2.fill,
|
|
28589
28833
|
fill = _rect$attribute2$fill === void 0 ? rectAttribute.fill : _rect$attribute2$fill,
|
|
@@ -29116,7 +29360,9 @@
|
|
|
29116
29360
|
if (pickerService) {
|
|
29117
29361
|
var picked = !1;
|
|
29118
29362
|
return glyph.getSubGraphic().forEach(function (g) {
|
|
29119
|
-
|
|
29363
|
+
if (picked) return;
|
|
29364
|
+
var data = pickerService.pickItem(g, point, null, params);
|
|
29365
|
+
picked = !(!data || !data.graphic);
|
|
29120
29366
|
}), picked;
|
|
29121
29367
|
}
|
|
29122
29368
|
return !1;
|
|
@@ -29861,7 +30107,11 @@
|
|
|
29861
30107
|
value: function pickItem(graphic, point, parentMatrix, params) {
|
|
29862
30108
|
if (!1 === graphic.attribute.pickable) return null;
|
|
29863
30109
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
29864
|
-
|
|
30110
|
+
if (!picker) return null;
|
|
30111
|
+
var g = picker.contains(graphic, point, params) ? graphic : null;
|
|
30112
|
+
return g ? {
|
|
30113
|
+
graphic: g
|
|
30114
|
+
} : null;
|
|
29865
30115
|
}
|
|
29866
30116
|
}]);
|
|
29867
30117
|
return DefaultMathPickerService;
|
|
@@ -33612,26 +33862,50 @@
|
|
|
33612
33862
|
}).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
33613
33863
|
});
|
|
33614
33864
|
|
|
33865
|
+
function loadAllEnv(container) {
|
|
33866
|
+
loadAllModule(container);
|
|
33867
|
+
}
|
|
33615
33868
|
function loadAllModule(container) {
|
|
33616
|
-
container.load(allEnvModule), loadAllCavnvas(container), container.load(allWindowModule);
|
|
33869
|
+
container.load(allEnvModule), loadAllCavnvas(container), container.load(allWindowModule), loadCanvasPicker(container);
|
|
33617
33870
|
}
|
|
33618
33871
|
function loadBrowserEnv(container) {
|
|
33619
|
-
container.load(browserEnvModule), container.load(browserCanvasModule), container.load(browserWindowModule);
|
|
33872
|
+
container.load(browserEnvModule), container.load(browserCanvasModule), container.load(browserWindowModule), loadCanvasPicker(container);
|
|
33620
33873
|
}
|
|
33621
33874
|
function loadFeishuEnv(container) {
|
|
33622
|
-
container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule);
|
|
33875
|
+
container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule), loadMathPicker(container);
|
|
33623
33876
|
}
|
|
33624
33877
|
function loadLynxEnv(container) {
|
|
33625
|
-
container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule);
|
|
33878
|
+
container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule), loadMathPicker(container);
|
|
33626
33879
|
}
|
|
33627
33880
|
function loadNodeEnv(container) {
|
|
33628
|
-
container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule);
|
|
33881
|
+
container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule), loadMathPicker(container);
|
|
33629
33882
|
}
|
|
33630
33883
|
function loadTaroEnv(container) {
|
|
33631
|
-
container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule);
|
|
33884
|
+
container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadMathPicker(container);
|
|
33632
33885
|
}
|
|
33633
33886
|
function loadWxEnv(container) {
|
|
33634
|
-
container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule);
|
|
33887
|
+
container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadMathPicker(container);
|
|
33888
|
+
}
|
|
33889
|
+
function initAllEnv() {
|
|
33890
|
+
loadAllEnv(container);
|
|
33891
|
+
}
|
|
33892
|
+
function initBrowserEnv() {
|
|
33893
|
+
loadBrowserEnv(container);
|
|
33894
|
+
}
|
|
33895
|
+
function initFeishuEnv() {
|
|
33896
|
+
loadFeishuEnv(container);
|
|
33897
|
+
}
|
|
33898
|
+
function initLynxEnv() {
|
|
33899
|
+
loadLynxEnv(container);
|
|
33900
|
+
}
|
|
33901
|
+
function initNodeEnv() {
|
|
33902
|
+
loadNodeEnv(container);
|
|
33903
|
+
}
|
|
33904
|
+
function initTaroEnv() {
|
|
33905
|
+
loadTaroEnv(container);
|
|
33906
|
+
}
|
|
33907
|
+
function initWxEnv() {
|
|
33908
|
+
loadWxEnv(container);
|
|
33635
33909
|
}
|
|
33636
33910
|
|
|
33637
33911
|
var REACT_TO_CANOPUS_EVENTS = {
|
|
@@ -34085,7 +34359,7 @@
|
|
|
34085
34359
|
|
|
34086
34360
|
var roughModule = _roughModule;
|
|
34087
34361
|
|
|
34088
|
-
const version = "0.16.0-alpha.
|
|
34362
|
+
const version = "0.16.0-alpha.2";
|
|
34089
34363
|
loadAllModule(container);
|
|
34090
34364
|
|
|
34091
34365
|
exports.ACustomAnimate = ACustomAnimate;
|
|
@@ -34136,6 +34410,7 @@
|
|
|
34136
34410
|
exports.DefaultAttribute = DefaultAttribute;
|
|
34137
34411
|
exports.DefaultCircleAttribute = DefaultCircleAttribute;
|
|
34138
34412
|
exports.DefaultConnectAttribute = DefaultConnectAttribute;
|
|
34413
|
+
exports.DefaultDebugAttribute = DefaultDebugAttribute;
|
|
34139
34414
|
exports.DefaultFillStyle = DefaultFillStyle;
|
|
34140
34415
|
exports.DefaultGlyphAttribute = DefaultGlyphAttribute;
|
|
34141
34416
|
exports.DefaultGroupAttribute = DefaultGroupAttribute;
|
|
@@ -34164,6 +34439,7 @@
|
|
|
34164
34439
|
exports.DefaultTransform = DefaultTransform;
|
|
34165
34440
|
exports.DragNDrop = DragNDrop;
|
|
34166
34441
|
exports.DrawContribution = DrawContribution;
|
|
34442
|
+
exports.DynamicLayerHandlerContribution = DynamicLayerHandlerContribution;
|
|
34167
34443
|
exports.EnvContribution = EnvContribution;
|
|
34168
34444
|
exports.EventManager = EventManager;
|
|
34169
34445
|
exports.EventSystem = EventSystem;
|
|
@@ -34204,7 +34480,6 @@
|
|
|
34204
34480
|
exports.InteractiveSubRenderContribution = InteractiveSubRenderContribution;
|
|
34205
34481
|
exports.LINE_NUMBER_TYPE = LINE_NUMBER_TYPE;
|
|
34206
34482
|
exports.Layer = Layer;
|
|
34207
|
-
exports.LayerHandlerContribution = LayerHandlerContribution;
|
|
34208
34483
|
exports.LayerService = LayerService;
|
|
34209
34484
|
exports.Line = Line$1;
|
|
34210
34485
|
exports.LineRender = LineRender;
|
|
@@ -34263,6 +34538,7 @@
|
|
|
34263
34538
|
exports.SYMBOL_NUMBER_TYPE = SYMBOL_NUMBER_TYPE;
|
|
34264
34539
|
exports.SegContext = SegContext;
|
|
34265
34540
|
exports.Stage = Stage;
|
|
34541
|
+
exports.StaticLayerHandlerContribution = StaticLayerHandlerContribution;
|
|
34266
34542
|
exports.Step = Step$1;
|
|
34267
34543
|
exports.StreamLight = StreamLight;
|
|
34268
34544
|
exports.SubAnimate = SubAnimate;
|
|
@@ -34296,6 +34572,7 @@
|
|
|
34296
34572
|
exports.VSymbol = VSymbol;
|
|
34297
34573
|
exports.VText = VText;
|
|
34298
34574
|
exports.VWindow = VWindow;
|
|
34575
|
+
exports.VirtualLayerHandlerContribution = VirtualLayerHandlerContribution;
|
|
34299
34576
|
exports.WILDCARD = WILDCARD;
|
|
34300
34577
|
exports.WindowHandlerContribution = WindowHandlerContribution;
|
|
34301
34578
|
exports.WrapText = WrapText;
|
|
@@ -34397,6 +34674,13 @@
|
|
|
34397
34674
|
exports.graphicService = graphicService;
|
|
34398
34675
|
exports.graphicUtil = graphicUtil;
|
|
34399
34676
|
exports.incrementalAddTo = incrementalAddTo;
|
|
34677
|
+
exports.initAllEnv = initAllEnv;
|
|
34678
|
+
exports.initBrowserEnv = initBrowserEnv;
|
|
34679
|
+
exports.initFeishuEnv = initFeishuEnv;
|
|
34680
|
+
exports.initLynxEnv = initLynxEnv;
|
|
34681
|
+
exports.initNodeEnv = initNodeEnv;
|
|
34682
|
+
exports.initTaroEnv = initTaroEnv;
|
|
34683
|
+
exports.initWxEnv = initWxEnv;
|
|
34400
34684
|
exports.inject = inject;
|
|
34401
34685
|
exports.injectable = injectable;
|
|
34402
34686
|
exports.interpolateColor = interpolateColor;
|
|
@@ -34411,6 +34695,7 @@
|
|
|
34411
34695
|
exports.jsx = jsx;
|
|
34412
34696
|
exports.layerService = layerService;
|
|
34413
34697
|
exports.loadAllCavnvas = loadAllCavnvas;
|
|
34698
|
+
exports.loadAllEnv = loadAllEnv;
|
|
34414
34699
|
exports.loadAllModule = loadAllModule;
|
|
34415
34700
|
exports.loadBrowserCanvas = loadBrowserCanvas;
|
|
34416
34701
|
exports.loadBrowserEnv = loadBrowserEnv;
|