fl-web-component 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/fl-web-component.common.1.js +4 -4
- package/dist/fl-web-component.common.js +230 -206
- package/dist/fl-web-component.common.js.map +1 -1
- package/dist/fl-web-component.css +1 -1
- package/package.json +1 -1
- package/packages/components/com-flcanvas/index.vue +18 -5
- package/src/utils/flgltf-parser.js +1 -0
- package/src/utils/instance-parser.js +3 -0
|
@@ -614,10 +614,21 @@ var Tween = /*#__PURE__*/function () {
|
|
|
614
614
|
thisId = this._id,
|
|
615
615
|
attrs = Tween.tweens[nodeId];
|
|
616
616
|
this.pause();
|
|
617
|
+
if (this.anim) {
|
|
618
|
+
this.anim.stop();
|
|
619
|
+
}
|
|
617
620
|
for (var key in attrs) {
|
|
618
621
|
delete Tween.tweens[nodeId][key];
|
|
619
622
|
}
|
|
620
623
|
delete Tween.attrs[nodeId][thisId];
|
|
624
|
+
if (Tween.tweens[nodeId]) {
|
|
625
|
+
if (Object.keys(Tween.tweens[nodeId]).length === 0) {
|
|
626
|
+
delete Tween.tweens[nodeId];
|
|
627
|
+
}
|
|
628
|
+
if (Object.keys(Tween.attrs[nodeId]).length === 0) {
|
|
629
|
+
delete Tween.attrs[nodeId];
|
|
630
|
+
}
|
|
631
|
+
}
|
|
621
632
|
}
|
|
622
633
|
}]);
|
|
623
634
|
}();
|
|
@@ -1102,7 +1113,7 @@ var Layer = /*#__PURE__*/function (_Container_1$Containe) {
|
|
|
1102
1113
|
}
|
|
1103
1114
|
}, {
|
|
1104
1115
|
key: "drawScene",
|
|
1105
|
-
value: function drawScene(can, top) {
|
|
1116
|
+
value: function drawScene(can, top, bufferCanvas) {
|
|
1106
1117
|
var layer = this.getLayer(),
|
|
1107
1118
|
canvas = can || layer && layer.getCanvas();
|
|
1108
1119
|
this._fire(BEFORE_DRAW, {
|
|
@@ -1111,7 +1122,7 @@ var Layer = /*#__PURE__*/function (_Container_1$Containe) {
|
|
|
1111
1122
|
if (this.clearBeforeDraw()) {
|
|
1112
1123
|
canvas.getContext().clear();
|
|
1113
1124
|
}
|
|
1114
|
-
Container_1.Container.prototype.drawScene.call(this, canvas, top);
|
|
1125
|
+
Container_1.Container.prototype.drawScene.call(this, canvas, top, bufferCanvas);
|
|
1115
1126
|
this._fire(DRAW, {
|
|
1116
1127
|
node: this
|
|
1117
1128
|
});
|
|
@@ -1209,13 +1220,6 @@ Factory_1.Factory.addGetterSetter(Node_1.Node, 'threshold', 0.5, (0, Validators_
|
|
|
1209
1220
|
|
|
1210
1221
|
/***/ }),
|
|
1211
1222
|
|
|
1212
|
-
/***/ "12d0":
|
|
1213
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1214
|
-
|
|
1215
|
-
// extracted by mini-css-extract-plugin
|
|
1216
|
-
|
|
1217
|
-
/***/ }),
|
|
1218
|
-
|
|
1219
1223
|
/***/ "1bd8":
|
|
1220
1224
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1221
1225
|
|
|
@@ -2648,6 +2652,17 @@ Factory_1.Factory.addGetterSetter(TextPath, 'text', EMPTY_STRING);
|
|
|
2648
2652
|
Factory_1.Factory.addGetterSetter(TextPath, 'textDecoration', '');
|
|
2649
2653
|
Factory_1.Factory.addGetterSetter(TextPath, 'kerningFunc', undefined);
|
|
2650
2654
|
|
|
2655
|
+
/***/ }),
|
|
2656
|
+
|
|
2657
|
+
/***/ "2e9d":
|
|
2658
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2659
|
+
|
|
2660
|
+
"use strict";
|
|
2661
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_32dc6e8c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("459a");
|
|
2662
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_32dc6e8c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_32dc6e8c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
2663
|
+
/* unused harmony reexport * */
|
|
2664
|
+
|
|
2665
|
+
|
|
2651
2666
|
/***/ }),
|
|
2652
2667
|
|
|
2653
2668
|
/***/ "2fb2":
|
|
@@ -3075,47 +3090,33 @@ var Pixelate = function Pixelate(imageData) {
|
|
|
3075
3090
|
var pixelSize = Math.ceil(this.pixelSize()),
|
|
3076
3091
|
width = imageData.width,
|
|
3077
3092
|
height = imageData.height,
|
|
3078
|
-
x,
|
|
3079
|
-
y,
|
|
3080
|
-
i,
|
|
3081
|
-
red,
|
|
3082
|
-
green,
|
|
3083
|
-
blue,
|
|
3084
|
-
alpha,
|
|
3085
3093
|
nBinsX = Math.ceil(width / pixelSize),
|
|
3086
3094
|
nBinsY = Math.ceil(height / pixelSize),
|
|
3087
|
-
xBinStart,
|
|
3088
|
-
xBinEnd,
|
|
3089
|
-
yBinStart,
|
|
3090
|
-
yBinEnd,
|
|
3091
|
-
xBin,
|
|
3092
|
-
yBin,
|
|
3093
|
-
pixelsInBin,
|
|
3094
3095
|
data = imageData.data;
|
|
3095
3096
|
if (pixelSize <= 0) {
|
|
3096
3097
|
Util_1.Util.error('pixelSize value can not be <= 0');
|
|
3097
3098
|
return;
|
|
3098
3099
|
}
|
|
3099
|
-
for (xBin = 0; xBin < nBinsX; xBin += 1) {
|
|
3100
|
-
for (yBin = 0; yBin < nBinsY; yBin += 1) {
|
|
3101
|
-
red = 0;
|
|
3102
|
-
green = 0;
|
|
3103
|
-
blue = 0;
|
|
3104
|
-
alpha = 0;
|
|
3105
|
-
xBinStart = xBin * pixelSize;
|
|
3106
|
-
xBinEnd = xBinStart + pixelSize;
|
|
3107
|
-
yBinStart = yBin * pixelSize;
|
|
3108
|
-
yBinEnd = yBinStart + pixelSize;
|
|
3109
|
-
pixelsInBin = 0;
|
|
3110
|
-
for (x = xBinStart; x < xBinEnd; x += 1) {
|
|
3100
|
+
for (var xBin = 0; xBin < nBinsX; xBin += 1) {
|
|
3101
|
+
for (var yBin = 0; yBin < nBinsY; yBin += 1) {
|
|
3102
|
+
var red = 0;
|
|
3103
|
+
var green = 0;
|
|
3104
|
+
var blue = 0;
|
|
3105
|
+
var alpha = 0;
|
|
3106
|
+
var xBinStart = xBin * pixelSize;
|
|
3107
|
+
var xBinEnd = xBinStart + pixelSize;
|
|
3108
|
+
var yBinStart = yBin * pixelSize;
|
|
3109
|
+
var yBinEnd = yBinStart + pixelSize;
|
|
3110
|
+
var pixelsInBin = 0;
|
|
3111
|
+
for (var x = xBinStart; x < xBinEnd; x += 1) {
|
|
3111
3112
|
if (x >= width) {
|
|
3112
3113
|
continue;
|
|
3113
3114
|
}
|
|
3114
|
-
for (y = yBinStart; y < yBinEnd; y += 1) {
|
|
3115
|
+
for (var y = yBinStart; y < yBinEnd; y += 1) {
|
|
3115
3116
|
if (y >= height) {
|
|
3116
3117
|
continue;
|
|
3117
3118
|
}
|
|
3118
|
-
i = (width * y + x) * 4;
|
|
3119
|
+
var i = (width * y + x) * 4;
|
|
3119
3120
|
red += data[i + 0];
|
|
3120
3121
|
green += data[i + 1];
|
|
3121
3122
|
blue += data[i + 2];
|
|
@@ -3127,19 +3128,19 @@ var Pixelate = function Pixelate(imageData) {
|
|
|
3127
3128
|
green = green / pixelsInBin;
|
|
3128
3129
|
blue = blue / pixelsInBin;
|
|
3129
3130
|
alpha = alpha / pixelsInBin;
|
|
3130
|
-
for (
|
|
3131
|
-
if (
|
|
3131
|
+
for (var _x = xBinStart; _x < xBinEnd; _x += 1) {
|
|
3132
|
+
if (_x >= width) {
|
|
3132
3133
|
continue;
|
|
3133
3134
|
}
|
|
3134
|
-
for (
|
|
3135
|
-
if (
|
|
3135
|
+
for (var _y = yBinStart; _y < yBinEnd; _y += 1) {
|
|
3136
|
+
if (_y >= height) {
|
|
3136
3137
|
continue;
|
|
3137
3138
|
}
|
|
3138
|
-
|
|
3139
|
-
data[
|
|
3140
|
-
data[
|
|
3141
|
-
data[
|
|
3142
|
-
data[
|
|
3139
|
+
var _i = (width * _y + _x) * 4;
|
|
3140
|
+
data[_i + 0] = red;
|
|
3141
|
+
data[_i + 1] = green;
|
|
3142
|
+
data[_i + 2] = blue;
|
|
3143
|
+
data[_i + 3] = alpha;
|
|
3143
3144
|
}
|
|
3144
3145
|
}
|
|
3145
3146
|
}
|
|
@@ -3313,6 +3314,13 @@ function getComponentValidator(components) {
|
|
|
3313
3314
|
|
|
3314
3315
|
/***/ }),
|
|
3315
3316
|
|
|
3317
|
+
/***/ "459a":
|
|
3318
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3319
|
+
|
|
3320
|
+
// extracted by mini-css-extract-plugin
|
|
3321
|
+
|
|
3322
|
+
/***/ }),
|
|
3323
|
+
|
|
3316
3324
|
/***/ "461e":
|
|
3317
3325
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3318
3326
|
|
|
@@ -3343,12 +3351,11 @@ var HSV = function HSV(imageData) {
|
|
|
3343
3351
|
var br = 0.299 * v - 0.3 * vsu + 1.25 * vsw,
|
|
3344
3352
|
bg = 0.587 * v - 0.586 * vsu - 1.05 * vsw,
|
|
3345
3353
|
bb = 0.114 * v + 0.886 * vsu - 0.2 * vsw;
|
|
3346
|
-
var r, g, b, a;
|
|
3347
3354
|
for (var i = 0; i < nPixels; i += 4) {
|
|
3348
|
-
r = data[i + 0];
|
|
3349
|
-
g = data[i + 1];
|
|
3350
|
-
b = data[i + 2];
|
|
3351
|
-
a = data[i + 3];
|
|
3355
|
+
var r = data[i + 0];
|
|
3356
|
+
var g = data[i + 1];
|
|
3357
|
+
var b = data[i + 2];
|
|
3358
|
+
var a = data[i + 3];
|
|
3352
3359
|
data[i + 0] = rr * r + rg * g + rb * b;
|
|
3353
3360
|
data[i + 1] = gr * r + gg * g + gb * b;
|
|
3354
3361
|
data[i + 2] = br * r + bg * g + bb * b;
|
|
@@ -3387,11 +3394,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3387
3394
|
value: true
|
|
3388
3395
|
});
|
|
3389
3396
|
exports.Node = void 0;
|
|
3390
|
-
var Util_1 = __webpack_require__("9cb8");
|
|
3391
|
-
var Factory_1 = __webpack_require__("f0b4");
|
|
3392
3397
|
var Canvas_1 = __webpack_require__("f655");
|
|
3393
|
-
var Global_1 = __webpack_require__("d777");
|
|
3394
3398
|
var DragAndDrop_1 = __webpack_require__("df93");
|
|
3399
|
+
var Factory_1 = __webpack_require__("f0b4");
|
|
3400
|
+
var Global_1 = __webpack_require__("d777");
|
|
3401
|
+
var Util_1 = __webpack_require__("9cb8");
|
|
3395
3402
|
var Validators_1 = __webpack_require__("4546");
|
|
3396
3403
|
var ABSOLUTE_OPACITY = 'absoluteOpacity',
|
|
3397
3404
|
ALL_LISTENERS = 'allEventListeners',
|
|
@@ -3404,6 +3411,10 @@ var ABSOLUTE_OPACITY = 'absoluteOpacity',
|
|
|
3404
3411
|
LISTENING = 'listening',
|
|
3405
3412
|
MOUSEENTER = 'mouseenter',
|
|
3406
3413
|
MOUSELEAVE = 'mouseleave',
|
|
3414
|
+
POINTERENTER = 'pointerenter',
|
|
3415
|
+
POINTERLEAVE = 'pointerleave',
|
|
3416
|
+
TOUCHENTER = 'touchenter',
|
|
3417
|
+
TOUCHLEAVE = 'touchleave',
|
|
3407
3418
|
NAME = 'name',
|
|
3408
3419
|
SET = 'set',
|
|
3409
3420
|
SHAPE = 'Shape',
|
|
@@ -3498,8 +3509,9 @@ var Node = /*#__PURE__*/function () {
|
|
|
3498
3509
|
var _this$_cache$get = this._cache.get(CANVAS),
|
|
3499
3510
|
scene = _this$_cache$get.scene,
|
|
3500
3511
|
filter = _this$_cache$get.filter,
|
|
3501
|
-
hit = _this$_cache$get.hit
|
|
3502
|
-
|
|
3512
|
+
hit = _this$_cache$get.hit,
|
|
3513
|
+
buffer = _this$_cache$get.buffer;
|
|
3514
|
+
Util_1.Util.releaseCanvas(scene, filter, hit, buffer);
|
|
3503
3515
|
this._cache.delete(CANVAS);
|
|
3504
3516
|
}
|
|
3505
3517
|
this._clearSelfAndDescendantCache();
|
|
@@ -3553,6 +3565,12 @@ var Node = /*#__PURE__*/function () {
|
|
|
3553
3565
|
}),
|
|
3554
3566
|
sceneContext = cachedSceneCanvas.getContext(),
|
|
3555
3567
|
hitContext = cachedHitCanvas.getContext();
|
|
3568
|
+
var bufferCanvas = new Canvas_1.SceneCanvas({
|
|
3569
|
+
width: cachedSceneCanvas.width / cachedSceneCanvas.pixelRatio + Math.abs(x),
|
|
3570
|
+
height: cachedSceneCanvas.height / cachedSceneCanvas.pixelRatio + Math.abs(y),
|
|
3571
|
+
pixelRatio: cachedSceneCanvas.pixelRatio
|
|
3572
|
+
}),
|
|
3573
|
+
bufferContext = bufferCanvas.getContext();
|
|
3556
3574
|
cachedHitCanvas.isCache = true;
|
|
3557
3575
|
cachedSceneCanvas.isCache = true;
|
|
3558
3576
|
this._cache.delete(CANVAS);
|
|
@@ -3563,12 +3581,16 @@ var Node = /*#__PURE__*/function () {
|
|
|
3563
3581
|
}
|
|
3564
3582
|
sceneContext.save();
|
|
3565
3583
|
hitContext.save();
|
|
3584
|
+
bufferContext.save();
|
|
3566
3585
|
sceneContext.translate(-x, -y);
|
|
3567
3586
|
hitContext.translate(-x, -y);
|
|
3587
|
+
bufferContext.translate(-x, -y);
|
|
3588
|
+
bufferCanvas.x = x;
|
|
3589
|
+
bufferCanvas.y = y;
|
|
3568
3590
|
this._isUnderCache = true;
|
|
3569
3591
|
this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY);
|
|
3570
3592
|
this._clearSelfAndDescendantCache(ABSOLUTE_SCALE);
|
|
3571
|
-
this.drawScene(cachedSceneCanvas, this);
|
|
3593
|
+
this.drawScene(cachedSceneCanvas, this, bufferCanvas);
|
|
3572
3594
|
this.drawHit(cachedHitCanvas, this);
|
|
3573
3595
|
this._isUnderCache = false;
|
|
3574
3596
|
sceneContext.restore();
|
|
@@ -3587,6 +3609,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
3587
3609
|
scene: cachedSceneCanvas,
|
|
3588
3610
|
filter: cachedFilterCanvas,
|
|
3589
3611
|
hit: cachedHitCanvas,
|
|
3612
|
+
buffer: bufferCanvas,
|
|
3590
3613
|
x: x,
|
|
3591
3614
|
y: y
|
|
3592
3615
|
});
|
|
@@ -3707,22 +3730,18 @@ var Node = /*#__PURE__*/function () {
|
|
|
3707
3730
|
}, {
|
|
3708
3731
|
key: "on",
|
|
3709
3732
|
value: function on(evtStr, handler) {
|
|
3710
|
-
|
|
3733
|
+
if (this._cache) {
|
|
3734
|
+
this._cache.delete(ALL_LISTENERS);
|
|
3735
|
+
}
|
|
3711
3736
|
if (arguments.length === 3) {
|
|
3712
3737
|
return this._delegate.apply(this, arguments);
|
|
3713
3738
|
}
|
|
3714
|
-
var events = evtStr.split(SPACE)
|
|
3715
|
-
|
|
3716
|
-
n
|
|
3717
|
-
event
|
|
3718
|
-
parts
|
|
3719
|
-
|
|
3720
|
-
name;
|
|
3721
|
-
for (n = 0; n < len; n++) {
|
|
3722
|
-
event = events[n];
|
|
3723
|
-
parts = event.split('.');
|
|
3724
|
-
baseEvent = parts[0];
|
|
3725
|
-
name = parts[1] || '';
|
|
3739
|
+
var events = evtStr.split(SPACE);
|
|
3740
|
+
for (var n = 0; n < events.length; n++) {
|
|
3741
|
+
var event = events[n];
|
|
3742
|
+
var parts = event.split('.');
|
|
3743
|
+
var baseEvent = parts[0];
|
|
3744
|
+
var name = parts[1] || '';
|
|
3726
3745
|
if (!this.eventListeners[baseEvent]) {
|
|
3727
3746
|
this.eventListeners[baseEvent] = [];
|
|
3728
3747
|
}
|
|
@@ -4792,10 +4811,11 @@ var Node = /*#__PURE__*/function () {
|
|
|
4792
4811
|
if (evt && this.nodeType === SHAPE) {
|
|
4793
4812
|
evt.target = this;
|
|
4794
4813
|
}
|
|
4795
|
-
var
|
|
4814
|
+
var nonBubbling = [MOUSEENTER, MOUSELEAVE, POINTERENTER, POINTERLEAVE, TOUCHENTER, TOUCHLEAVE];
|
|
4815
|
+
var shouldStop = nonBubbling.indexOf(eventType) !== -1 && (compareShape && (this === compareShape || this.isAncestorOf && this.isAncestorOf(compareShape)) || this.nodeType === 'Stage' && !compareShape);
|
|
4796
4816
|
if (!shouldStop) {
|
|
4797
4817
|
this._fire(eventType, evt);
|
|
4798
|
-
var stopBubble = (eventType
|
|
4818
|
+
var stopBubble = nonBubbling.indexOf(eventType) !== -1 && compareShape && compareShape.isAncestorOf && compareShape.isAncestorOf(this) && !compareShape.isAncestorOf(this.parent);
|
|
4799
4819
|
if ((evt && !evt.cancelBubble || !evt) && this.parent && this.parent.isListening() && !stopBubble) {
|
|
4800
4820
|
if (compareShape && compareShape.parent) {
|
|
4801
4821
|
this._fireAndBubble.call(this.parent, eventType, evt, compareShape);
|
|
@@ -4839,8 +4859,8 @@ var Node = /*#__PURE__*/function () {
|
|
|
4839
4859
|
}
|
|
4840
4860
|
var selfListeners = this.eventListeners[eventType];
|
|
4841
4861
|
if (selfListeners) {
|
|
4842
|
-
for (var
|
|
4843
|
-
selfListeners[
|
|
4862
|
+
for (var _i = 0; _i < selfListeners.length; _i++) {
|
|
4863
|
+
selfListeners[_i].handler.call(this, evt);
|
|
4844
4864
|
}
|
|
4845
4865
|
}
|
|
4846
4866
|
}
|
|
@@ -5527,8 +5547,6 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5527
5547
|
baseline = 'alphabetic';
|
|
5528
5548
|
translateY = (metrics.fontBoundingBoxAscent - metrics.fontBoundingBoxDescent) / 2 + lineHeightPx / 2;
|
|
5529
5549
|
}
|
|
5530
|
-
var lineTranslateX = 0;
|
|
5531
|
-
var lineTranslateY = 0;
|
|
5532
5550
|
if (direction === RTL) {
|
|
5533
5551
|
context.setAttr('direction', direction);
|
|
5534
5552
|
}
|
|
@@ -5547,10 +5565,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5547
5565
|
var obj = textArr[n],
|
|
5548
5566
|
text = obj.text,
|
|
5549
5567
|
width = obj.width,
|
|
5550
|
-
lastLine = obj.lastInParagraph
|
|
5551
|
-
spacesNumber,
|
|
5552
|
-
oneWord,
|
|
5553
|
-
lineWidth;
|
|
5568
|
+
lastLine = obj.lastInParagraph;
|
|
5554
5569
|
context.save();
|
|
5555
5570
|
if (align === RIGHT) {
|
|
5556
5571
|
lineTranslateX += totalWidth - width - padding * 2;
|
|
@@ -5564,9 +5579,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5564
5579
|
var x = lineTranslateX;
|
|
5565
5580
|
var y = translateY + lineTranslateY + yOffset;
|
|
5566
5581
|
context.moveTo(x, y);
|
|
5567
|
-
|
|
5568
|
-
oneWord = spacesNumber === 0;
|
|
5569
|
-
lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5582
|
+
var lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5570
5583
|
context.lineTo(x + Math.round(lineWidth), y);
|
|
5571
5584
|
context.lineWidth = fontSize / 15;
|
|
5572
5585
|
var gradient = this._getLinearGradient();
|
|
@@ -5579,10 +5592,8 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5579
5592
|
context.beginPath();
|
|
5580
5593
|
var _yOffset = Global_1.Konva._fixTextRendering ? -Math.round(fontSize / 4) : 0;
|
|
5581
5594
|
context.moveTo(lineTranslateX, translateY + lineTranslateY + _yOffset);
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5585
|
-
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + _yOffset);
|
|
5595
|
+
var _lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5596
|
+
context.lineTo(lineTranslateX + Math.round(_lineWidth), translateY + lineTranslateY + _yOffset);
|
|
5586
5597
|
context.lineWidth = fontSize / 15;
|
|
5587
5598
|
var _gradient = this._getLinearGradient();
|
|
5588
5599
|
context.strokeStyle = _gradient || fill;
|
|
@@ -5590,7 +5601,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5590
5601
|
context.restore();
|
|
5591
5602
|
}
|
|
5592
5603
|
if (direction !== RTL && (letterSpacing !== 0 || align === JUSTIFY)) {
|
|
5593
|
-
spacesNumber = text.split(' ').length - 1;
|
|
5604
|
+
var spacesNumber = text.split(' ').length - 1;
|
|
5594
5605
|
var array = stringToArray(text);
|
|
5595
5606
|
for (var li = 0; li < array.length; li++) {
|
|
5596
5607
|
var letter = array[li];
|
|
@@ -21562,8 +21573,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21562
21573
|
});
|
|
21563
21574
|
exports.Path = void 0;
|
|
21564
21575
|
var Factory_1 = __webpack_require__("f0b4");
|
|
21565
|
-
var Shape_1 = __webpack_require__("fce6");
|
|
21566
21576
|
var Global_1 = __webpack_require__("d777");
|
|
21577
|
+
var Shape_1 = __webpack_require__("fce6");
|
|
21567
21578
|
var BezierFunctions_1 = __webpack_require__("2905");
|
|
21568
21579
|
var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
21569
21580
|
function Path(config) {
|
|
@@ -21741,11 +21752,19 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21741
21752
|
};
|
|
21742
21753
|
}
|
|
21743
21754
|
if (length < 0.01) {
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21755
|
+
var cmd = dataArray[i].command;
|
|
21756
|
+
if (cmd === 'M') {
|
|
21757
|
+
points = dataArray[i].points.slice(0, 2);
|
|
21758
|
+
return {
|
|
21759
|
+
x: points[0],
|
|
21760
|
+
y: points[1]
|
|
21761
|
+
};
|
|
21762
|
+
} else {
|
|
21763
|
+
return {
|
|
21764
|
+
x: dataArray[i].start.x,
|
|
21765
|
+
y: dataArray[i].start.y
|
|
21766
|
+
};
|
|
21767
|
+
}
|
|
21749
21768
|
}
|
|
21750
21769
|
var cp = dataArray[i];
|
|
21751
21770
|
var p = cp.points;
|
|
@@ -21765,9 +21784,9 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21765
21784
|
cy = p[1],
|
|
21766
21785
|
rx = p[2],
|
|
21767
21786
|
ry = p[3],
|
|
21768
|
-
theta = p[4],
|
|
21769
21787
|
dTheta = p[5],
|
|
21770
21788
|
psi = p[6];
|
|
21789
|
+
var theta = p[4];
|
|
21771
21790
|
theta += dTheta * length / cp.pathLength;
|
|
21772
21791
|
return Path.getPointOnEllipticalArc(cx, cy, rx, ry, theta, psi);
|
|
21773
21792
|
}
|
|
@@ -21886,8 +21905,8 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21886
21905
|
var cpy = 0;
|
|
21887
21906
|
var re = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;
|
|
21888
21907
|
var match;
|
|
21889
|
-
for (
|
|
21890
|
-
var str = arr[
|
|
21908
|
+
for (var _n = 1; _n < arr.length; _n++) {
|
|
21909
|
+
var str = arr[_n];
|
|
21891
21910
|
var c = str.charAt(0);
|
|
21892
21911
|
str = str.slice(1);
|
|
21893
21912
|
coords.length = 0;
|
|
@@ -21915,8 +21934,16 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21915
21934
|
var points = [];
|
|
21916
21935
|
var startX = cpx,
|
|
21917
21936
|
startY = cpy;
|
|
21918
|
-
var prevCmd
|
|
21919
|
-
|
|
21937
|
+
var prevCmd = void 0,
|
|
21938
|
+
ctlPtx = void 0,
|
|
21939
|
+
ctlPty = void 0;
|
|
21940
|
+
var rx = void 0,
|
|
21941
|
+
ry = void 0,
|
|
21942
|
+
psi = void 0,
|
|
21943
|
+
fa = void 0,
|
|
21944
|
+
fs = void 0,
|
|
21945
|
+
x1 = void 0,
|
|
21946
|
+
y1 = void 0;
|
|
21920
21947
|
switch (c) {
|
|
21921
21948
|
case 'l':
|
|
21922
21949
|
cpx += p.shift();
|
|
@@ -22257,7 +22284,7 @@ Factory_1.Factory.addGetterSetter(Node_1.Node, 'blue', 0, Validators_1.RGBCompon
|
|
|
22257
22284
|
/***/ "9224":
|
|
22258
22285
|
/***/ (function(module) {
|
|
22259
22286
|
|
|
22260
|
-
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"1.3.
|
|
22287
|
+
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"1.3.5\",\"scripts\":{\"tip1\":\"仅调试本组件不涉及业务组件,请执行dev\",\"dev\":\"vue-cli-service serve\",\"lint\":\"eslint \\\"{src,packages}/**/*.{vue,js}\\\" --fix\",\"prettier\":\"prettier --write \\\"packages/**/*.{js,css,less,scss,vue,html}\\\"\",\"=\":\"=============================================================\",\"tip2\":\"同时调试本组件与业务组件,请执行watch\",\"watch\":\"vue-cli-service build --watch --mode production --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build\":\"npm run lint && vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build:test\":\"vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"registry:npm\":\"npm config set registry https://registry.npmjs.org/\",\"publish:base\":\"npm run build && npm run registry:npm && npm publish\",\"==\":\"=============================================================\",\"tip3\":\"发版注意: 【修改bug执行publish:fix】【新增功能执行publish:feat】【新特性执行publish:perf】\",\"publish:fix\":\"npm version patch && npm run publish:base\",\"publish:feat\":\"npm version minor && npm run publish:base\",\"publish:perf\":\"npm version major && npm run publish:base\"},\"files\":[\"dist\",\"packages\",\"src\",\"patches\"],\"main\":\"dist/fl-web-component.common.js\",\"dependencies\":{\"camera-controls\":\"2.9.0\",\"core-js\":\"^3.42.0\",\"dxf-parser\":\"^1.1.2\",\"element-ui\":\"2.15.14\",\"html2canvas\":\"^1.4.1\",\"jspdf\":\"^3.0.1\",\"konva\":\"^9.3.14\",\"lodash\":\"^4.17.21\",\"meshline\":\"^3.3.1\",\"regenerator-runtime\":\"^0.14.1\",\"svg-pan-zoom\":\"^3.6.2\",\"three\":\"^0.176.0\",\"three.path\":\"^1.0.1\",\"vue\":\"^2.6.11\"},\"devDependencies\":{\"@babel/core\":\"^7.12.16\",\"@babel/preset-env\":\"^7.0.0\",\"@babel/runtime-corejs3\":\"^7.27.1\",\"@vue/cli-plugin-babel\":\"~4.4.0\",\"@vue/cli-plugin-eslint\":\"~4.4.0\",\"@vue/cli-service\":\"~4.4.0\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.0\",\"copy-webpack-plugin\":\"^4.0.1\",\"eslint\":\"^6.7.2\",\"eslint-plugin-vue\":\"^6.2.2\",\"patch-package\":\"^6.4.7\",\"sass\":\"1.32.13\",\"sass-loader\":\"10.1.1\",\"vue-template-compiler\":\"^2.6.11\"},\"eslintConfig\":{\"root\":true,\"env\":{\"node\":true},\"extends\":[\"plugin:vue/essential\",\"eslint:recommended\"],\"parserOptions\":{\"parser\":\"babel-eslint\"},\"rules\":{}},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not dead\"]}");
|
|
22261
22288
|
|
|
22262
22289
|
/***/ }),
|
|
22263
22290
|
|
|
@@ -23865,7 +23892,7 @@ var Enhance = function Enhance(imageData) {
|
|
|
23865
23892
|
bMax = 255;
|
|
23866
23893
|
bMin = 0;
|
|
23867
23894
|
}
|
|
23868
|
-
var
|
|
23895
|
+
var rGoalMax, rGoalMin, gGoalMax, gGoalMin, bGoalMax, bGoalMin;
|
|
23869
23896
|
if (enhanceAmount > 0) {
|
|
23870
23897
|
rGoalMax = rMax + enhanceAmount * (255 - rMax);
|
|
23871
23898
|
rGoalMin = rMin - enhanceAmount * (rMin - 0);
|
|
@@ -23874,13 +23901,13 @@ var Enhance = function Enhance(imageData) {
|
|
|
23874
23901
|
bGoalMax = bMax + enhanceAmount * (255 - bMax);
|
|
23875
23902
|
bGoalMin = bMin - enhanceAmount * (bMin - 0);
|
|
23876
23903
|
} else {
|
|
23877
|
-
rMid = (rMax + rMin) * 0.5;
|
|
23904
|
+
var rMid = (rMax + rMin) * 0.5;
|
|
23878
23905
|
rGoalMax = rMax + enhanceAmount * (rMax - rMid);
|
|
23879
23906
|
rGoalMin = rMin + enhanceAmount * (rMin - rMid);
|
|
23880
|
-
gMid = (gMax + gMin) * 0.5;
|
|
23907
|
+
var gMid = (gMax + gMin) * 0.5;
|
|
23881
23908
|
gGoalMax = gMax + enhanceAmount * (gMax - gMid);
|
|
23882
23909
|
gGoalMin = gMin + enhanceAmount * (gMin - gMid);
|
|
23883
|
-
bMid = (bMax + bMin) * 0.5;
|
|
23910
|
+
var bMid = (bMax + bMin) * 0.5;
|
|
23884
23911
|
bGoalMax = bMax + enhanceAmount * (bMax - bMid);
|
|
23885
23912
|
bGoalMin = bMin + enhanceAmount * (bMin - bMid);
|
|
23886
23913
|
}
|
|
@@ -23921,7 +23948,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23921
23948
|
var pixels = imageData.data,
|
|
23922
23949
|
width = imageData.width,
|
|
23923
23950
|
height = imageData.height;
|
|
23924
|
-
var
|
|
23951
|
+
var p, yi, yw, r_sum, g_sum, b_sum, a_sum, r_out_sum, g_out_sum, b_out_sum, a_out_sum, r_in_sum, g_in_sum, b_in_sum, a_in_sum, pr, pg, pb, pa, rbs;
|
|
23925
23952
|
var div = radius + radius + 1,
|
|
23926
23953
|
widthMinus1 = width - 1,
|
|
23927
23954
|
heightMinus1 = height - 1,
|
|
@@ -23934,7 +23961,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23934
23961
|
stack = stackStart,
|
|
23935
23962
|
stackIn = null,
|
|
23936
23963
|
stackOut = null;
|
|
23937
|
-
for (i = 1; i < div; i++) {
|
|
23964
|
+
for (var i = 1; i < div; i++) {
|
|
23938
23965
|
stack = stack.next = new BlurStack();
|
|
23939
23966
|
if (i === radiusPlus1) {
|
|
23940
23967
|
stackEnd = stack;
|
|
@@ -23942,7 +23969,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23942
23969
|
}
|
|
23943
23970
|
stack.next = stackStart;
|
|
23944
23971
|
yw = yi = 0;
|
|
23945
|
-
for (y = 0; y < height; y++) {
|
|
23972
|
+
for (var y = 0; y < height; y++) {
|
|
23946
23973
|
r_in_sum = g_in_sum = b_in_sum = a_in_sum = r_sum = g_sum = b_sum = a_sum = 0;
|
|
23947
23974
|
r_out_sum = radiusPlus1 * (pr = pixels[yi]);
|
|
23948
23975
|
g_out_sum = radiusPlus1 * (pg = pixels[yi + 1]);
|
|
@@ -23953,16 +23980,16 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23953
23980
|
b_sum += sumFactor * pb;
|
|
23954
23981
|
a_sum += sumFactor * pa;
|
|
23955
23982
|
stack = stackStart;
|
|
23956
|
-
for (
|
|
23983
|
+
for (var _i = 0; _i < radiusPlus1; _i++) {
|
|
23957
23984
|
stack.r = pr;
|
|
23958
23985
|
stack.g = pg;
|
|
23959
23986
|
stack.b = pb;
|
|
23960
23987
|
stack.a = pa;
|
|
23961
23988
|
stack = stack.next;
|
|
23962
23989
|
}
|
|
23963
|
-
for (
|
|
23964
|
-
p = yi + ((widthMinus1 <
|
|
23965
|
-
r_sum += (stack.r = pr = pixels[p]) * (rbs = radiusPlus1 -
|
|
23990
|
+
for (var _i2 = 1; _i2 < radiusPlus1; _i2++) {
|
|
23991
|
+
p = yi + ((widthMinus1 < _i2 ? widthMinus1 : _i2) << 2);
|
|
23992
|
+
r_sum += (stack.r = pr = pixels[p]) * (rbs = radiusPlus1 - _i2);
|
|
23966
23993
|
g_sum += (stack.g = pg = pixels[p + 1]) * rbs;
|
|
23967
23994
|
b_sum += (stack.b = pb = pixels[p + 2]) * rbs;
|
|
23968
23995
|
a_sum += (stack.a = pa = pixels[p + 3]) * rbs;
|
|
@@ -23974,7 +24001,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23974
24001
|
}
|
|
23975
24002
|
stackIn = stackStart;
|
|
23976
24003
|
stackOut = stackEnd;
|
|
23977
|
-
for (x = 0; x < width; x++) {
|
|
24004
|
+
for (var x = 0; x < width; x++) {
|
|
23978
24005
|
pixels[yi + 3] = pa = a_sum * mul_sum >> shg_sum;
|
|
23979
24006
|
if (pa !== 0) {
|
|
23980
24007
|
pa = 255 / pa;
|
|
@@ -24015,9 +24042,9 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24015
24042
|
}
|
|
24016
24043
|
yw += width;
|
|
24017
24044
|
}
|
|
24018
|
-
for (
|
|
24045
|
+
for (var _x = 0; _x < width; _x++) {
|
|
24019
24046
|
g_in_sum = b_in_sum = a_in_sum = r_in_sum = g_sum = b_sum = a_sum = r_sum = 0;
|
|
24020
|
-
yi =
|
|
24047
|
+
yi = _x << 2;
|
|
24021
24048
|
r_out_sum = radiusPlus1 * (pr = pixels[yi]);
|
|
24022
24049
|
g_out_sum = radiusPlus1 * (pg = pixels[yi + 1]);
|
|
24023
24050
|
b_out_sum = radiusPlus1 * (pb = pixels[yi + 2]);
|
|
@@ -24027,17 +24054,17 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24027
24054
|
b_sum += sumFactor * pb;
|
|
24028
24055
|
a_sum += sumFactor * pa;
|
|
24029
24056
|
stack = stackStart;
|
|
24030
|
-
for (
|
|
24057
|
+
for (var _i3 = 0; _i3 < radiusPlus1; _i3++) {
|
|
24031
24058
|
stack.r = pr;
|
|
24032
24059
|
stack.g = pg;
|
|
24033
24060
|
stack.b = pb;
|
|
24034
24061
|
stack.a = pa;
|
|
24035
24062
|
stack = stack.next;
|
|
24036
24063
|
}
|
|
24037
|
-
yp = width;
|
|
24038
|
-
for (
|
|
24039
|
-
yi = yp +
|
|
24040
|
-
r_sum += (stack.r = pr = pixels[yi]) * (rbs = radiusPlus1 -
|
|
24064
|
+
var yp = width;
|
|
24065
|
+
for (var _i4 = 1; _i4 <= radius; _i4++) {
|
|
24066
|
+
yi = yp + _x << 2;
|
|
24067
|
+
r_sum += (stack.r = pr = pixels[yi]) * (rbs = radiusPlus1 - _i4);
|
|
24041
24068
|
g_sum += (stack.g = pg = pixels[yi + 1]) * rbs;
|
|
24042
24069
|
b_sum += (stack.b = pb = pixels[yi + 2]) * rbs;
|
|
24043
24070
|
a_sum += (stack.a = pa = pixels[yi + 3]) * rbs;
|
|
@@ -24046,14 +24073,14 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24046
24073
|
b_in_sum += pb;
|
|
24047
24074
|
a_in_sum += pa;
|
|
24048
24075
|
stack = stack.next;
|
|
24049
|
-
if (
|
|
24076
|
+
if (_i4 < heightMinus1) {
|
|
24050
24077
|
yp += width;
|
|
24051
24078
|
}
|
|
24052
24079
|
}
|
|
24053
|
-
yi =
|
|
24080
|
+
yi = _x;
|
|
24054
24081
|
stackIn = stackStart;
|
|
24055
24082
|
stackOut = stackEnd;
|
|
24056
|
-
for (
|
|
24083
|
+
for (var _y = 0; _y < height; _y++) {
|
|
24057
24084
|
p = yi << 2;
|
|
24058
24085
|
pixels[p + 3] = pa = a_sum * mul_sum >> shg_sum;
|
|
24059
24086
|
if (pa > 0) {
|
|
@@ -24072,7 +24099,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24072
24099
|
g_out_sum -= stackIn.g;
|
|
24073
24100
|
b_out_sum -= stackIn.b;
|
|
24074
24101
|
a_out_sum -= stackIn.a;
|
|
24075
|
-
p =
|
|
24102
|
+
p = _x + ((p = _y + radiusPlus1) < heightMinus1 ? p : heightMinus1) * width << 2;
|
|
24076
24103
|
r_sum += r_in_sum += stackIn.r = pixels[p];
|
|
24077
24104
|
g_sum += g_in_sum += stackIn.g = pixels[p + 1];
|
|
24078
24105
|
b_sum += b_in_sum += stackIn.b = pixels[p + 2];
|
|
@@ -25548,20 +25575,20 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25548
25575
|
this.findOne('.top-left').y(anchorNode.y());
|
|
25549
25576
|
} else if (this._movingAnchorName === 'top-right') {
|
|
25550
25577
|
if (keepProportion) {
|
|
25551
|
-
var
|
|
25578
|
+
var _comparePoint = centeredScaling ? {
|
|
25552
25579
|
x: this.width() / 2,
|
|
25553
25580
|
y: this.height() / 2
|
|
25554
25581
|
} : {
|
|
25555
25582
|
x: this.findOne('.bottom-left').x(),
|
|
25556
25583
|
y: this.findOne('.bottom-left').y()
|
|
25557
25584
|
};
|
|
25558
|
-
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() -
|
|
25559
|
-
var
|
|
25560
|
-
var
|
|
25561
|
-
x = newHypotenuse * this.cos *
|
|
25562
|
-
y = newHypotenuse * this.sin *
|
|
25563
|
-
this.findOne('.top-right').x(
|
|
25564
|
-
this.findOne('.top-right').y(
|
|
25585
|
+
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() - _comparePoint.x, 2) + Math.pow(_comparePoint.y - anchorNode.y(), 2));
|
|
25586
|
+
var _reverseX = this.findOne('.top-right').x() < _comparePoint.x ? -1 : 1;
|
|
25587
|
+
var _reverseY = this.findOne('.top-right').y() > _comparePoint.y ? -1 : 1;
|
|
25588
|
+
x = newHypotenuse * this.cos * _reverseX;
|
|
25589
|
+
y = newHypotenuse * this.sin * _reverseY;
|
|
25590
|
+
this.findOne('.top-right').x(_comparePoint.x + x);
|
|
25591
|
+
this.findOne('.top-right').y(_comparePoint.y - y);
|
|
25565
25592
|
}
|
|
25566
25593
|
var pos = anchorNode.position();
|
|
25567
25594
|
this.findOne('.top-left').y(pos.y);
|
|
@@ -25572,20 +25599,20 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25572
25599
|
this.findOne('.bottom-right').x(anchorNode.x());
|
|
25573
25600
|
} else if (this._movingAnchorName === 'bottom-left') {
|
|
25574
25601
|
if (keepProportion) {
|
|
25575
|
-
var
|
|
25602
|
+
var _comparePoint2 = centeredScaling ? {
|
|
25576
25603
|
x: this.width() / 2,
|
|
25577
25604
|
y: this.height() / 2
|
|
25578
25605
|
} : {
|
|
25579
25606
|
x: this.findOne('.top-right').x(),
|
|
25580
25607
|
y: this.findOne('.top-right').y()
|
|
25581
25608
|
};
|
|
25582
|
-
newHypotenuse = Math.sqrt(Math.pow(
|
|
25583
|
-
var
|
|
25584
|
-
var
|
|
25585
|
-
x = newHypotenuse * this.cos *
|
|
25586
|
-
y = newHypotenuse * this.sin *
|
|
25587
|
-
anchorNode.x(
|
|
25588
|
-
anchorNode.y(
|
|
25609
|
+
newHypotenuse = Math.sqrt(Math.pow(_comparePoint2.x - anchorNode.x(), 2) + Math.pow(anchorNode.y() - _comparePoint2.y, 2));
|
|
25610
|
+
var _reverseX2 = _comparePoint2.x < anchorNode.x() ? -1 : 1;
|
|
25611
|
+
var _reverseY2 = anchorNode.y() < _comparePoint2.y ? -1 : 1;
|
|
25612
|
+
x = newHypotenuse * this.cos * _reverseX2;
|
|
25613
|
+
y = newHypotenuse * this.sin * _reverseY2;
|
|
25614
|
+
anchorNode.x(_comparePoint2.x - x);
|
|
25615
|
+
anchorNode.y(_comparePoint2.y + y);
|
|
25589
25616
|
}
|
|
25590
25617
|
pos = anchorNode.position();
|
|
25591
25618
|
this.findOne('.top-left').x(pos.x);
|
|
@@ -25594,25 +25621,25 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25594
25621
|
this.findOne('.bottom-right').y(anchorNode.y());
|
|
25595
25622
|
} else if (this._movingAnchorName === 'bottom-right') {
|
|
25596
25623
|
if (keepProportion) {
|
|
25597
|
-
var
|
|
25624
|
+
var _comparePoint3 = centeredScaling ? {
|
|
25598
25625
|
x: this.width() / 2,
|
|
25599
25626
|
y: this.height() / 2
|
|
25600
25627
|
} : {
|
|
25601
25628
|
x: this.findOne('.top-left').x(),
|
|
25602
25629
|
y: this.findOne('.top-left').y()
|
|
25603
25630
|
};
|
|
25604
|
-
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() -
|
|
25605
|
-
var
|
|
25606
|
-
var
|
|
25607
|
-
x = newHypotenuse * this.cos *
|
|
25608
|
-
y = newHypotenuse * this.sin *
|
|
25609
|
-
this.findOne('.bottom-right').x(
|
|
25610
|
-
this.findOne('.bottom-right').y(
|
|
25631
|
+
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() - _comparePoint3.x, 2) + Math.pow(anchorNode.y() - _comparePoint3.y, 2));
|
|
25632
|
+
var _reverseX3 = this.findOne('.bottom-right').x() < _comparePoint3.x ? -1 : 1;
|
|
25633
|
+
var _reverseY3 = this.findOne('.bottom-right').y() < _comparePoint3.y ? -1 : 1;
|
|
25634
|
+
x = newHypotenuse * this.cos * _reverseX3;
|
|
25635
|
+
y = newHypotenuse * this.sin * _reverseY3;
|
|
25636
|
+
this.findOne('.bottom-right').x(_comparePoint3.x + x);
|
|
25637
|
+
this.findOne('.bottom-right').y(_comparePoint3.y + y);
|
|
25611
25638
|
}
|
|
25612
25639
|
} else {
|
|
25613
25640
|
console.error(new Error('Wrong position argument of selection resizer: ' + this._movingAnchorName));
|
|
25614
25641
|
}
|
|
25615
|
-
|
|
25642
|
+
centeredScaling = this.centeredScaling() || e.altKey;
|
|
25616
25643
|
if (centeredScaling) {
|
|
25617
25644
|
var topLeft = this.findOne('.top-left');
|
|
25618
25645
|
var bottomRight = this.findOne('.bottom-right');
|
|
@@ -26036,7 +26063,7 @@ function detectBrowser() {
|
|
|
26036
26063
|
exports.glob = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof WorkerGlobalScope !== 'undefined' ? self : {};
|
|
26037
26064
|
exports.Konva = {
|
|
26038
26065
|
_global: exports.glob,
|
|
26039
|
-
version: '9.3.
|
|
26066
|
+
version: '9.3.22',
|
|
26040
26067
|
isBrowser: detectBrowser(),
|
|
26041
26068
|
isUnminified: /param/.test(function (param) {}.toString()),
|
|
26042
26069
|
dblClickWindow: 400,
|
|
@@ -26844,17 +26871,11 @@ var Container = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
26844
26871
|
return _createClass(Container, [{
|
|
26845
26872
|
key: "getChildren",
|
|
26846
26873
|
value: function getChildren(filterFunc) {
|
|
26847
|
-
if (!filterFunc) {
|
|
26848
|
-
return this.children || [];
|
|
26849
|
-
}
|
|
26850
26874
|
var children = this.children || [];
|
|
26851
|
-
|
|
26852
|
-
|
|
26853
|
-
|
|
26854
|
-
|
|
26855
|
-
}
|
|
26856
|
-
});
|
|
26857
|
-
return results;
|
|
26875
|
+
if (filterFunc) {
|
|
26876
|
+
return children.filter(filterFunc);
|
|
26877
|
+
}
|
|
26878
|
+
return children;
|
|
26858
26879
|
}
|
|
26859
26880
|
}, {
|
|
26860
26881
|
key: "hasChildren",
|
|
@@ -27278,7 +27299,7 @@ var STAGE = 'Stage',
|
|
|
27278
27299
|
TOUCHCANCEL = 'touchcancel',
|
|
27279
27300
|
WHEEL = 'wheel',
|
|
27280
27301
|
MAX_LAYERS_NUMBER = 5,
|
|
27281
|
-
EVENTS = [[MOUSEENTER, '_pointerenter'], [MOUSEDOWN, '_pointerdown'], [MOUSEMOVE, '_pointermove'], [MOUSEUP, '_pointerup'], [MOUSELEAVE, '_pointerleave'], [TOUCHSTART, '_pointerdown'], [TOUCHMOVE, '_pointermove'], [TOUCHEND, '_pointerup'], [TOUCHCANCEL, '_pointercancel'], [MOUSEOVER, '_pointerover'], [WHEEL, '_wheel'], [CONTEXTMENU, '_contextmenu'], [POINTERDOWN, '_pointerdown'], [POINTERMOVE, '_pointermove'], [POINTERUP, '_pointerup'], [POINTERCANCEL, '_pointercancel'], [LOSTPOINTERCAPTURE, '_lostpointercapture']];
|
|
27302
|
+
EVENTS = [[MOUSEENTER, '_pointerenter'], [MOUSEDOWN, '_pointerdown'], [MOUSEMOVE, '_pointermove'], [MOUSEUP, '_pointerup'], [MOUSELEAVE, '_pointerleave'], [TOUCHSTART, '_pointerdown'], [TOUCHMOVE, '_pointermove'], [TOUCHEND, '_pointerup'], [TOUCHCANCEL, '_pointercancel'], [MOUSEOVER, '_pointerover'], [WHEEL, '_wheel'], [CONTEXTMENU, '_contextmenu'], [POINTERDOWN, '_pointerdown'], [POINTERMOVE, '_pointermove'], [POINTERUP, '_pointerup'], [POINTERCANCEL, '_pointercancel'], [POINTERLEAVE, '_pointerleave'], [LOSTPOINTERCAPTURE, '_lostpointercapture']];
|
|
27282
27303
|
var EVENTS_MAP = {
|
|
27283
27304
|
mouse: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, POINTEROUT, MOUSEOUT), POINTERLEAVE, MOUSELEAVE), POINTEROVER, MOUSEOVER), POINTERENTER, MOUSEENTER), POINTERMOVE, MOUSEMOVE), POINTERDOWN, MOUSEDOWN), POINTERUP, MOUSEUP), POINTERCANCEL, 'mousecancel'), "pointerclick", 'click'), "pointerdblclick", 'dblclick'),
|
|
27284
27305
|
touch: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, POINTEROUT, 'touchout'), POINTERLEAVE, 'touchleave'), POINTEROVER, 'touchover'), POINTERENTER, 'touchenter'), POINTERMOVE, TOUCHMOVE), POINTERDOWN, TOUCHSTART), POINTERUP, TOUCHEND), POINTERCANCEL, TOUCHCANCEL), "pointerclick", 'tap'), "pointerdblclick", 'dbltap'),
|
|
@@ -27356,11 +27377,11 @@ var Stage = /*#__PURE__*/function (_Container_1$Containe) {
|
|
|
27356
27377
|
key: "setContainer",
|
|
27357
27378
|
value: function setContainer(container) {
|
|
27358
27379
|
if (_typeof(container) === STRING) {
|
|
27380
|
+
var id;
|
|
27359
27381
|
if (container.charAt(0) === '.') {
|
|
27360
27382
|
var className = container.slice(1);
|
|
27361
27383
|
container = document.getElementsByClassName(className)[0];
|
|
27362
27384
|
} else {
|
|
27363
|
-
var id;
|
|
27364
27385
|
if (container.charAt(0) !== '#') {
|
|
27365
27386
|
id = container;
|
|
27366
27387
|
} else {
|
|
@@ -28406,17 +28427,6 @@ exports.Group = Group;
|
|
|
28406
28427
|
Group.prototype.nodeType = 'Group';
|
|
28407
28428
|
(0, Global_1._registerNode)(Group);
|
|
28408
28429
|
|
|
28409
|
-
/***/ }),
|
|
28410
|
-
|
|
28411
|
-
/***/ "f481":
|
|
28412
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28413
|
-
|
|
28414
|
-
"use strict";
|
|
28415
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_95b325ba_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("12d0");
|
|
28416
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_95b325ba_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_95b325ba_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
28417
|
-
/* unused harmony reexport * */
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
28430
|
/***/ }),
|
|
28421
28431
|
|
|
28422
28432
|
/***/ "f655":
|
|
@@ -28667,18 +28677,16 @@ var Line = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
28667
28677
|
length = points.length,
|
|
28668
28678
|
tension = this.tension(),
|
|
28669
28679
|
closed = this.closed(),
|
|
28670
|
-
bezier = this.bezier()
|
|
28671
|
-
tp,
|
|
28672
|
-
len,
|
|
28673
|
-
n;
|
|
28680
|
+
bezier = this.bezier();
|
|
28674
28681
|
if (!length) {
|
|
28675
28682
|
return;
|
|
28676
28683
|
}
|
|
28684
|
+
var n = 0;
|
|
28677
28685
|
context.beginPath();
|
|
28678
28686
|
context.moveTo(points[0], points[1]);
|
|
28679
28687
|
if (tension !== 0 && length > 4) {
|
|
28680
|
-
tp = this.getTensionPoints();
|
|
28681
|
-
len = tp.length;
|
|
28688
|
+
var tp = this.getTensionPoints();
|
|
28689
|
+
var len = tp.length;
|
|
28682
28690
|
n = closed ? 0 : 4;
|
|
28683
28691
|
if (!closed) {
|
|
28684
28692
|
context.quadraticCurveTo(tp[0], tp[1], tp[2], tp[3]);
|
|
@@ -29248,7 +29256,7 @@ if (typeof window !== 'undefined') {
|
|
|
29248
29256
|
// Indicate to webpack that this file can be concatenated
|
|
29249
29257
|
/* harmony default export */ var setPublicPath = (null);
|
|
29250
29258
|
|
|
29251
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
29259
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d724051e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=e9c014d6&scoped=true
|
|
29252
29260
|
var com_graphicsvue_type_template_id_e9c014d6_scoped_true_render = function render() {
|
|
29253
29261
|
var _vm = this,
|
|
29254
29262
|
_c = _vm._self._c;
|
|
@@ -31866,7 +31874,7 @@ var CameraControls = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
31866
31874
|
}(EventDispatcher);
|
|
31867
31875
|
|
|
31868
31876
|
// CONCATENATED MODULE: ./node_modules/three/build/three.core.js
|
|
31869
|
-
function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,three_core_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),three_core_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(three_core_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&three_core_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function three_core_superPropGet(t,o,e,r){var p=three_core_get(three_core_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function three_core_get(){return three_core_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=three_core_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},three_core_get.apply(null,arguments);}function three_core_superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=three_core_getPrototypeOf(t)););return t;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function three_core_callSuper(t,o,e){return o=three_core_getPrototypeOf(o),three_core_possibleConstructorReturn(t,three_core_isNativeReflectConstruct()?Reflect.construct(o,e||[],three_core_getPrototypeOf(t).constructor):o.apply(t,e));}function three_core_possibleConstructorReturn(t,e){if(e&&("object"==three_core_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return three_core_assertThisInitialized(t);}function three_core_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function three_core_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(three_core_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function three_core_getPrototypeOf(t){return three_core_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},three_core_getPrototypeOf(t);}function three_core_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&three_core_setPrototypeOf(t,e);}function three_core_setPrototypeOf(t,e){return three_core_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},three_core_setPrototypeOf(t,e);}function _defineProperty(e,r,t){return(r=three_core_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}o("next",0),o("throw",1),o("return",2);}},_regeneratorDefine2(e,r,n,t);}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function three_core_typeof(o){"@babel/helpers - typeof";return three_core_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},three_core_typeof(o);}function three_core_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function three_core_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,three_core_toPropertyKey(o.key),o);}}function three_core_createClass(e,r,t){return r&&three_core_defineProperties(e.prototype,r),t&&three_core_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function three_core_toPropertyKey(t){var i=three_core_toPrimitive(t,"string");return"symbol"==three_core_typeof(i)?i:i+"";}function three_core_toPrimitive(t,r){if("object"!=three_core_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=three_core_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
|
31877
|
+
function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,three_core_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),three_core_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(three_core_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&three_core_setPrototypeOf(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function three_core_superPropGet(t,o,e,r){var p=three_core_get(three_core_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function three_core_get(){return three_core_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=three_core_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},three_core_get.apply(null,arguments);}function three_core_superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=three_core_getPrototypeOf(t)););return t;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function three_core_callSuper(t,o,e){return o=three_core_getPrototypeOf(o),three_core_possibleConstructorReturn(t,three_core_isNativeReflectConstruct()?Reflect.construct(o,e||[],three_core_getPrototypeOf(t).constructor):o.apply(t,e));}function three_core_possibleConstructorReturn(t,e){if(e&&("object"==three_core_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return three_core_assertThisInitialized(t);}function three_core_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function three_core_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(three_core_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function three_core_getPrototypeOf(t){return three_core_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},three_core_getPrototypeOf(t);}function three_core_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&three_core_setPrototypeOf(t,e);}function three_core_setPrototypeOf(t,e){return three_core_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},three_core_setPrototypeOf(t,e);}function _defineProperty(e,r,t){return(r=three_core_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function three_core_typeof(o){"@babel/helpers - typeof";return three_core_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},three_core_typeof(o);}function three_core_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function three_core_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,three_core_toPropertyKey(o.key),o);}}function three_core_createClass(e,r,t){return r&&three_core_defineProperties(e.prototype,r),t&&three_core_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function three_core_toPropertyKey(t){var i=three_core_toPrimitive(t,"string");return"symbol"==three_core_typeof(i)?i:i+"";}function three_core_toPrimitive(t,r){if("object"!=three_core_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=three_core_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
|
31870
31878
|
* @license
|
|
31871
31879
|
* Copyright 2010-2025 Three.js Authors
|
|
31872
31880
|
* SPDX-License-Identifier: MIT
|
|
@@ -57147,7 +57155,9 @@ function parseData(input) {
|
|
|
57147
57155
|
italic: material === null || material === void 0 ? void 0 : material.italic,
|
|
57148
57156
|
linepacing: 1,
|
|
57149
57157
|
// 默认值
|
|
57150
|
-
linewidth: (material === null || material === void 0 ? void 0 : material.linewidth) !== undefined ? material === null || material === void 0 ? void 0 : material.linewidth : 1
|
|
57158
|
+
linewidth: (material === null || material === void 0 ? void 0 : material.linewidth) !== undefined ? material === null || material === void 0 ? void 0 : material.linewidth : 1,
|
|
57159
|
+
// 默认值
|
|
57160
|
+
visible: (material === null || material === void 0 ? void 0 : material.visible) === false ? false : true
|
|
57151
57161
|
};
|
|
57152
57162
|
var identity = new Matrix4().identity();
|
|
57153
57163
|
geomList.push({
|
|
@@ -57554,7 +57564,7 @@ var TextGeometry = /*#__PURE__*/function (_ExtrudeGeometry) {
|
|
|
57554
57564
|
var helvetiker_regular_typeface = __webpack_require__("7e1b");
|
|
57555
57565
|
|
|
57556
57566
|
// CONCATENATED MODULE: ./node_modules/three/build/three.module.js
|
|
57557
|
-
function three_module_regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return three_module_regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(three_module_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,three_module_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,three_module_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),three_module_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",three_module_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),three_module_regeneratorDefine2(u),three_module_regeneratorDefine2(u,o,"Generator"),three_module_regeneratorDefine2(u,n,function(){return this;}),three_module_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(three_module_regenerator=function _regenerator(){return{w:i,m:f};})();}function three_module_regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}three_module_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){
|
|
57567
|
+
function three_module_regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return three_module_regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(three_module_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,three_module_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,three_module_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),three_module_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",three_module_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),three_module_regeneratorDefine2(u),three_module_regeneratorDefine2(u,o,"Generator"),three_module_regeneratorDefine2(u,n,function(){return this;}),three_module_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(three_module_regenerator=function _regenerator(){return{w:i,m:f};})();}function three_module_regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}three_module_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){three_module_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},three_module_regeneratorDefine2(e,r,n,t);}function three_module_asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function three_module_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){three_module_asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){three_module_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function three_module_callSuper(t,o,e){return o=three_module_getPrototypeOf(o),three_module_possibleConstructorReturn(t,three_module_isNativeReflectConstruct()?Reflect.construct(o,e||[],three_module_getPrototypeOf(t).constructor):o.apply(t,e));}function three_module_possibleConstructorReturn(t,e){if(e&&("object"==three_module_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return three_module_assertThisInitialized(t);}function three_module_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function three_module_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(three_module_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function three_module_getPrototypeOf(t){return three_module_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},three_module_getPrototypeOf(t);}function three_module_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&three_module_setPrototypeOf(t,e);}function three_module_setPrototypeOf(t,e){return three_module_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},three_module_setPrototypeOf(t,e);}function three_module_defineProperty(e,r,t){return(r=three_module_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function three_module_createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=three_module_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function three_module_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return three_module_arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?three_module_arrayLikeToArray(r,a):void 0;}}function three_module_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function three_module_typeof(o){"@babel/helpers - typeof";return three_module_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},three_module_typeof(o);}function three_module_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function three_module_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,three_module_toPropertyKey(o.key),o);}}function three_module_createClass(e,r,t){return r&&three_module_defineProperties(e.prototype,r),t&&three_module_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function three_module_toPropertyKey(t){var i=three_module_toPrimitive(t,"string");return"symbol"==three_module_typeof(i)?i:i+"";}function three_module_toPrimitive(t,r){if("object"!=three_module_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=three_module_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
|
57558
57568
|
* @license
|
|
57559
57569
|
* Copyright 2010-2025 Three.js Authors
|
|
57560
57570
|
* SPDX-License-Identifier: MIT
|
|
@@ -59785,6 +59795,8 @@ function draw3Dmodel(geom, instanceName, instanceCount, nColor, nOpacity) {
|
|
|
59785
59795
|
};
|
|
59786
59796
|
}
|
|
59787
59797
|
mesh = new InstancedMesh(geometry, material, instanceCount);
|
|
59798
|
+
var visible = prop.visible;
|
|
59799
|
+
mesh.visible = visible;
|
|
59788
59800
|
mesh.userData.drawObjectId = instanceName;
|
|
59789
59801
|
mesh.userData.is3D = geom.type == GEOM_TYPES.geom_3d || geom.type == GEOM_TYPES.geom_3d_obj;
|
|
59790
59802
|
|
|
@@ -61057,7 +61069,7 @@ var RenderPass_RenderPass = /*#__PURE__*/function (_Pass) {
|
|
|
61057
61069
|
|
|
61058
61070
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=script&lang=js
|
|
61059
61071
|
function com_graphicsvue_type_script_lang_js_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return com_graphicsvue_type_script_lang_js_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (com_graphicsvue_type_script_lang_js_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, com_graphicsvue_type_script_lang_js_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, com_graphicsvue_type_script_lang_js_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), com_graphicsvue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", com_graphicsvue_type_script_lang_js_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), com_graphicsvue_type_script_lang_js_regeneratorDefine2(u), com_graphicsvue_type_script_lang_js_regeneratorDefine2(u, o, "Generator"), com_graphicsvue_type_script_lang_js_regeneratorDefine2(u, n, function () { return this; }), com_graphicsvue_type_script_lang_js_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (com_graphicsvue_type_script_lang_js_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
61060
|
-
function com_graphicsvue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } com_graphicsvue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) {
|
|
61072
|
+
function com_graphicsvue_type_script_lang_js_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } com_graphicsvue_type_script_lang_js_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { com_graphicsvue_type_script_lang_js_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, com_graphicsvue_type_script_lang_js_regeneratorDefine2(e, r, n, t); }
|
|
61061
61073
|
function com_graphicsvue_type_script_lang_js_slicedToArray(r, e) { return com_graphicsvue_type_script_lang_js_arrayWithHoles(r) || com_graphicsvue_type_script_lang_js_iterableToArrayLimit(r, e) || com_graphicsvue_type_script_lang_js_unsupportedIterableToArray(r, e) || com_graphicsvue_type_script_lang_js_nonIterableRest(); }
|
|
61062
61074
|
function com_graphicsvue_type_script_lang_js_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
61063
61075
|
function com_graphicsvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return com_graphicsvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? com_graphicsvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -62684,8 +62696,8 @@ var component = normalizeComponent(
|
|
|
62684
62696
|
)
|
|
62685
62697
|
|
|
62686
62698
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
62687
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
62688
|
-
var
|
|
62699
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d724051e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=32dc6e8c&scoped=true
|
|
62700
|
+
var com_flcanvasvue_type_template_id_32dc6e8c_scoped_true_render = function render() {
|
|
62689
62701
|
var _vm = this,
|
|
62690
62702
|
_c = _vm._self._c;
|
|
62691
62703
|
return _c('div', {
|
|
@@ -62698,9 +62710,9 @@ var com_flcanvasvue_type_template_id_95b325ba_scoped_true_render = function rend
|
|
|
62698
62710
|
}
|
|
62699
62711
|
});
|
|
62700
62712
|
};
|
|
62701
|
-
var
|
|
62713
|
+
var com_flcanvasvue_type_template_id_32dc6e8c_scoped_true_staticRenderFns = [];
|
|
62702
62714
|
|
|
62703
|
-
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=template&id=
|
|
62715
|
+
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=template&id=32dc6e8c&scoped=true
|
|
62704
62716
|
|
|
62705
62717
|
// EXTERNAL MODULE: ./node_modules/konva/lib/index.js
|
|
62706
62718
|
var lib = __webpack_require__("362d");
|
|
@@ -65525,6 +65537,14 @@ function downloadPDF(base64, fileName) {
|
|
|
65525
65537
|
|
|
65526
65538
|
var konvaStage = null,
|
|
65527
65539
|
konvaLayer = null;
|
|
65540
|
+
var activedSvgPan = {
|
|
65541
|
+
x: 0,
|
|
65542
|
+
y: 0,
|
|
65543
|
+
zoom: {
|
|
65544
|
+
x: 1,
|
|
65545
|
+
y: 1
|
|
65546
|
+
}
|
|
65547
|
+
};
|
|
65528
65548
|
/* harmony default export */ var com_flcanvasvue_type_script_lang_js = ({
|
|
65529
65549
|
name: 'Fl2dcanvas',
|
|
65530
65550
|
components: {},
|
|
@@ -65751,6 +65771,11 @@ var konvaStage = null,
|
|
|
65751
65771
|
// });
|
|
65752
65772
|
konvaStage.setX(x);
|
|
65753
65773
|
konvaStage.setY(y); // 750
|
|
65774
|
+
|
|
65775
|
+
activedSvgPan.zoom.x = scale;
|
|
65776
|
+
activedSvgPan.zoom.y = scale;
|
|
65777
|
+
activedSvgPan.x = x;
|
|
65778
|
+
activedSvgPan.y = y;
|
|
65754
65779
|
setTimeout(function () {
|
|
65755
65780
|
_this2.$emit('loaded');
|
|
65756
65781
|
}, 100);
|
|
@@ -65758,11 +65783,11 @@ var konvaStage = null,
|
|
|
65758
65783
|
toPdf: function toPdf(name) {
|
|
65759
65784
|
// get data URL with default settings
|
|
65760
65785
|
konvaStage.scale({
|
|
65761
|
-
x:
|
|
65762
|
-
y:
|
|
65786
|
+
x: activedSvgPan.zoom.x,
|
|
65787
|
+
y: activedSvgPan.zoom.y
|
|
65763
65788
|
});
|
|
65764
|
-
konvaStage.setX(
|
|
65765
|
-
konvaStage.setY(
|
|
65789
|
+
konvaStage.setX(activedSvgPan.x);
|
|
65790
|
+
konvaStage.setY(activedSvgPan.y);
|
|
65766
65791
|
// open in new window
|
|
65767
65792
|
konvaLayer.getCanvas().setPixelRatio(1);
|
|
65768
65793
|
var jpegURL = konvaStage.toDataURL({
|
|
@@ -65866,8 +65891,8 @@ var konvaStage = null,
|
|
|
65866
65891
|
});
|
|
65867
65892
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=script&lang=js
|
|
65868
65893
|
/* harmony default export */ var components_com_flcanvasvue_type_script_lang_js = (com_flcanvasvue_type_script_lang_js);
|
|
65869
|
-
// EXTERNAL MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=style&index=0&id=
|
|
65870
|
-
var
|
|
65894
|
+
// EXTERNAL MODULE: ./packages/components/com-flcanvas/index.vue?vue&type=style&index=0&id=32dc6e8c&prod&lang=scss&scoped=true
|
|
65895
|
+
var com_flcanvasvue_type_style_index_0_id_32dc6e8c_prod_lang_scss_scoped_true = __webpack_require__("2e9d");
|
|
65871
65896
|
|
|
65872
65897
|
// CONCATENATED MODULE: ./packages/components/com-flcanvas/index.vue
|
|
65873
65898
|
|
|
@@ -65880,17 +65905,17 @@ var com_flcanvasvue_type_style_index_0_id_95b325ba_prod_lang_scss_scoped_true =
|
|
|
65880
65905
|
|
|
65881
65906
|
var com_flcanvas_component = normalizeComponent(
|
|
65882
65907
|
components_com_flcanvasvue_type_script_lang_js,
|
|
65883
|
-
|
|
65884
|
-
|
|
65908
|
+
com_flcanvasvue_type_template_id_32dc6e8c_scoped_true_render,
|
|
65909
|
+
com_flcanvasvue_type_template_id_32dc6e8c_scoped_true_staticRenderFns,
|
|
65885
65910
|
false,
|
|
65886
65911
|
null,
|
|
65887
|
-
"
|
|
65912
|
+
"32dc6e8c",
|
|
65888
65913
|
null
|
|
65889
65914
|
|
|
65890
65915
|
)
|
|
65891
65916
|
|
|
65892
65917
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
65893
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
65918
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d724051e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/per-control.vue?vue&type=template&id=f547d5c6&scoped=true
|
|
65894
65919
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
65895
65920
|
var _vm = this,
|
|
65896
65921
|
_c = _vm._self._c;
|
|
@@ -65998,7 +66023,7 @@ var per_control_component = normalizeComponent(
|
|
|
65998
66023
|
)
|
|
65999
66024
|
|
|
66000
66025
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
66001
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
66026
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d724051e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/pid.vue?vue&type=template&id=0ec35ee4&scoped=true
|
|
66002
66027
|
var pidvue_type_template_id_0ec35ee4_scoped_true_render = function render() {
|
|
66003
66028
|
var _vm = this,
|
|
66004
66029
|
_c = _vm._self._c;
|
|
@@ -66617,10 +66642,9 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66617
66642
|
context = canvas.getContext(),
|
|
66618
66643
|
cachedCanvas = this._getCanvasCache(),
|
|
66619
66644
|
drawFunc = this.getSceneFunc(),
|
|
66620
|
-
hasShadow = this.hasShadow()
|
|
66621
|
-
|
|
66622
|
-
|
|
66623
|
-
var skipBuffer = canvas.isCache;
|
|
66645
|
+
hasShadow = this.hasShadow();
|
|
66646
|
+
var stage;
|
|
66647
|
+
var skipBuffer = false;
|
|
66624
66648
|
var cachingSelf = top === this;
|
|
66625
66649
|
if (!this.isVisible() && !cachingSelf) {
|
|
66626
66650
|
return this;
|
|
@@ -66640,7 +66664,7 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66640
66664
|
if (this._useBufferCanvas() && !skipBuffer) {
|
|
66641
66665
|
stage = this.getStage();
|
|
66642
66666
|
var bc = bufferCanvas || stage.bufferCanvas;
|
|
66643
|
-
bufferContext = bc.getContext();
|
|
66667
|
+
var bufferContext = bc.getContext();
|
|
66644
66668
|
bufferContext.clear();
|
|
66645
66669
|
bufferContext.save();
|
|
66646
66670
|
bufferContext._applyLineJoin(this);
|
|
@@ -66654,12 +66678,12 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66654
66678
|
}
|
|
66655
66679
|
context._applyOpacity(this);
|
|
66656
66680
|
context._applyGlobalCompositeOperation(this);
|
|
66657
|
-
context.drawImage(bc._canvas, 0, 0, bc.width / ratio, bc.height / ratio);
|
|
66681
|
+
context.drawImage(bc._canvas, bc.x || 0, bc.y || 0, bc.width / ratio, bc.height / ratio);
|
|
66658
66682
|
} else {
|
|
66659
66683
|
context._applyLineJoin(this);
|
|
66660
66684
|
if (!cachingSelf) {
|
|
66661
|
-
var
|
|
66662
|
-
context.transform(
|
|
66685
|
+
var _o = this.getAbsoluteTransform(top).getMatrix();
|
|
66686
|
+
context.transform(_o[0], _o[1], _o[2], _o[3], _o[4], _o[5]);
|
|
66663
66687
|
context._applyOpacity(this);
|
|
66664
66688
|
context._applyGlobalCompositeOperation(this);
|
|
66665
66689
|
}
|