fl-web-component 1.3.4 → 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 +2 -0
- package/dist/fl-web-component.common.1.js +4 -4
- package/dist/fl-web-component.common.js +187 -176
- package/dist/fl-web-component.common.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/flgltf-parser.js +1 -0
- package/src/utils/instance-parser.js +3 -0
- package/src/static/DXF.svg +0 -530
|
@@ -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
|
});
|
|
@@ -3079,47 +3090,33 @@ var Pixelate = function Pixelate(imageData) {
|
|
|
3079
3090
|
var pixelSize = Math.ceil(this.pixelSize()),
|
|
3080
3091
|
width = imageData.width,
|
|
3081
3092
|
height = imageData.height,
|
|
3082
|
-
x,
|
|
3083
|
-
y,
|
|
3084
|
-
i,
|
|
3085
|
-
red,
|
|
3086
|
-
green,
|
|
3087
|
-
blue,
|
|
3088
|
-
alpha,
|
|
3089
3093
|
nBinsX = Math.ceil(width / pixelSize),
|
|
3090
3094
|
nBinsY = Math.ceil(height / pixelSize),
|
|
3091
|
-
xBinStart,
|
|
3092
|
-
xBinEnd,
|
|
3093
|
-
yBinStart,
|
|
3094
|
-
yBinEnd,
|
|
3095
|
-
xBin,
|
|
3096
|
-
yBin,
|
|
3097
|
-
pixelsInBin,
|
|
3098
3095
|
data = imageData.data;
|
|
3099
3096
|
if (pixelSize <= 0) {
|
|
3100
3097
|
Util_1.Util.error('pixelSize value can not be <= 0');
|
|
3101
3098
|
return;
|
|
3102
3099
|
}
|
|
3103
|
-
for (xBin = 0; xBin < nBinsX; xBin += 1) {
|
|
3104
|
-
for (yBin = 0; yBin < nBinsY; yBin += 1) {
|
|
3105
|
-
red = 0;
|
|
3106
|
-
green = 0;
|
|
3107
|
-
blue = 0;
|
|
3108
|
-
alpha = 0;
|
|
3109
|
-
xBinStart = xBin * pixelSize;
|
|
3110
|
-
xBinEnd = xBinStart + pixelSize;
|
|
3111
|
-
yBinStart = yBin * pixelSize;
|
|
3112
|
-
yBinEnd = yBinStart + pixelSize;
|
|
3113
|
-
pixelsInBin = 0;
|
|
3114
|
-
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) {
|
|
3115
3112
|
if (x >= width) {
|
|
3116
3113
|
continue;
|
|
3117
3114
|
}
|
|
3118
|
-
for (y = yBinStart; y < yBinEnd; y += 1) {
|
|
3115
|
+
for (var y = yBinStart; y < yBinEnd; y += 1) {
|
|
3119
3116
|
if (y >= height) {
|
|
3120
3117
|
continue;
|
|
3121
3118
|
}
|
|
3122
|
-
i = (width * y + x) * 4;
|
|
3119
|
+
var i = (width * y + x) * 4;
|
|
3123
3120
|
red += data[i + 0];
|
|
3124
3121
|
green += data[i + 1];
|
|
3125
3122
|
blue += data[i + 2];
|
|
@@ -3131,19 +3128,19 @@ var Pixelate = function Pixelate(imageData) {
|
|
|
3131
3128
|
green = green / pixelsInBin;
|
|
3132
3129
|
blue = blue / pixelsInBin;
|
|
3133
3130
|
alpha = alpha / pixelsInBin;
|
|
3134
|
-
for (
|
|
3135
|
-
if (
|
|
3131
|
+
for (var _x = xBinStart; _x < xBinEnd; _x += 1) {
|
|
3132
|
+
if (_x >= width) {
|
|
3136
3133
|
continue;
|
|
3137
3134
|
}
|
|
3138
|
-
for (
|
|
3139
|
-
if (
|
|
3135
|
+
for (var _y = yBinStart; _y < yBinEnd; _y += 1) {
|
|
3136
|
+
if (_y >= height) {
|
|
3140
3137
|
continue;
|
|
3141
3138
|
}
|
|
3142
|
-
|
|
3143
|
-
data[
|
|
3144
|
-
data[
|
|
3145
|
-
data[
|
|
3146
|
-
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;
|
|
3147
3144
|
}
|
|
3148
3145
|
}
|
|
3149
3146
|
}
|
|
@@ -3354,12 +3351,11 @@ var HSV = function HSV(imageData) {
|
|
|
3354
3351
|
var br = 0.299 * v - 0.3 * vsu + 1.25 * vsw,
|
|
3355
3352
|
bg = 0.587 * v - 0.586 * vsu - 1.05 * vsw,
|
|
3356
3353
|
bb = 0.114 * v + 0.886 * vsu - 0.2 * vsw;
|
|
3357
|
-
var r, g, b, a;
|
|
3358
3354
|
for (var i = 0; i < nPixels; i += 4) {
|
|
3359
|
-
r = data[i + 0];
|
|
3360
|
-
g = data[i + 1];
|
|
3361
|
-
b = data[i + 2];
|
|
3362
|
-
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];
|
|
3363
3359
|
data[i + 0] = rr * r + rg * g + rb * b;
|
|
3364
3360
|
data[i + 1] = gr * r + gg * g + gb * b;
|
|
3365
3361
|
data[i + 2] = br * r + bg * g + bb * b;
|
|
@@ -3398,11 +3394,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3398
3394
|
value: true
|
|
3399
3395
|
});
|
|
3400
3396
|
exports.Node = void 0;
|
|
3401
|
-
var Util_1 = __webpack_require__("9cb8");
|
|
3402
|
-
var Factory_1 = __webpack_require__("f0b4");
|
|
3403
3397
|
var Canvas_1 = __webpack_require__("f655");
|
|
3404
|
-
var Global_1 = __webpack_require__("d777");
|
|
3405
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");
|
|
3406
3402
|
var Validators_1 = __webpack_require__("4546");
|
|
3407
3403
|
var ABSOLUTE_OPACITY = 'absoluteOpacity',
|
|
3408
3404
|
ALL_LISTENERS = 'allEventListeners',
|
|
@@ -3415,6 +3411,10 @@ var ABSOLUTE_OPACITY = 'absoluteOpacity',
|
|
|
3415
3411
|
LISTENING = 'listening',
|
|
3416
3412
|
MOUSEENTER = 'mouseenter',
|
|
3417
3413
|
MOUSELEAVE = 'mouseleave',
|
|
3414
|
+
POINTERENTER = 'pointerenter',
|
|
3415
|
+
POINTERLEAVE = 'pointerleave',
|
|
3416
|
+
TOUCHENTER = 'touchenter',
|
|
3417
|
+
TOUCHLEAVE = 'touchleave',
|
|
3418
3418
|
NAME = 'name',
|
|
3419
3419
|
SET = 'set',
|
|
3420
3420
|
SHAPE = 'Shape',
|
|
@@ -3509,8 +3509,9 @@ var Node = /*#__PURE__*/function () {
|
|
|
3509
3509
|
var _this$_cache$get = this._cache.get(CANVAS),
|
|
3510
3510
|
scene = _this$_cache$get.scene,
|
|
3511
3511
|
filter = _this$_cache$get.filter,
|
|
3512
|
-
hit = _this$_cache$get.hit
|
|
3513
|
-
|
|
3512
|
+
hit = _this$_cache$get.hit,
|
|
3513
|
+
buffer = _this$_cache$get.buffer;
|
|
3514
|
+
Util_1.Util.releaseCanvas(scene, filter, hit, buffer);
|
|
3514
3515
|
this._cache.delete(CANVAS);
|
|
3515
3516
|
}
|
|
3516
3517
|
this._clearSelfAndDescendantCache();
|
|
@@ -3564,6 +3565,12 @@ var Node = /*#__PURE__*/function () {
|
|
|
3564
3565
|
}),
|
|
3565
3566
|
sceneContext = cachedSceneCanvas.getContext(),
|
|
3566
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();
|
|
3567
3574
|
cachedHitCanvas.isCache = true;
|
|
3568
3575
|
cachedSceneCanvas.isCache = true;
|
|
3569
3576
|
this._cache.delete(CANVAS);
|
|
@@ -3574,12 +3581,16 @@ var Node = /*#__PURE__*/function () {
|
|
|
3574
3581
|
}
|
|
3575
3582
|
sceneContext.save();
|
|
3576
3583
|
hitContext.save();
|
|
3584
|
+
bufferContext.save();
|
|
3577
3585
|
sceneContext.translate(-x, -y);
|
|
3578
3586
|
hitContext.translate(-x, -y);
|
|
3587
|
+
bufferContext.translate(-x, -y);
|
|
3588
|
+
bufferCanvas.x = x;
|
|
3589
|
+
bufferCanvas.y = y;
|
|
3579
3590
|
this._isUnderCache = true;
|
|
3580
3591
|
this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY);
|
|
3581
3592
|
this._clearSelfAndDescendantCache(ABSOLUTE_SCALE);
|
|
3582
|
-
this.drawScene(cachedSceneCanvas, this);
|
|
3593
|
+
this.drawScene(cachedSceneCanvas, this, bufferCanvas);
|
|
3583
3594
|
this.drawHit(cachedHitCanvas, this);
|
|
3584
3595
|
this._isUnderCache = false;
|
|
3585
3596
|
sceneContext.restore();
|
|
@@ -3598,6 +3609,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
3598
3609
|
scene: cachedSceneCanvas,
|
|
3599
3610
|
filter: cachedFilterCanvas,
|
|
3600
3611
|
hit: cachedHitCanvas,
|
|
3612
|
+
buffer: bufferCanvas,
|
|
3601
3613
|
x: x,
|
|
3602
3614
|
y: y
|
|
3603
3615
|
});
|
|
@@ -3718,22 +3730,18 @@ var Node = /*#__PURE__*/function () {
|
|
|
3718
3730
|
}, {
|
|
3719
3731
|
key: "on",
|
|
3720
3732
|
value: function on(evtStr, handler) {
|
|
3721
|
-
|
|
3733
|
+
if (this._cache) {
|
|
3734
|
+
this._cache.delete(ALL_LISTENERS);
|
|
3735
|
+
}
|
|
3722
3736
|
if (arguments.length === 3) {
|
|
3723
3737
|
return this._delegate.apply(this, arguments);
|
|
3724
3738
|
}
|
|
3725
|
-
var events = evtStr.split(SPACE)
|
|
3726
|
-
|
|
3727
|
-
n
|
|
3728
|
-
event
|
|
3729
|
-
parts
|
|
3730
|
-
|
|
3731
|
-
name;
|
|
3732
|
-
for (n = 0; n < len; n++) {
|
|
3733
|
-
event = events[n];
|
|
3734
|
-
parts = event.split('.');
|
|
3735
|
-
baseEvent = parts[0];
|
|
3736
|
-
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] || '';
|
|
3737
3745
|
if (!this.eventListeners[baseEvent]) {
|
|
3738
3746
|
this.eventListeners[baseEvent] = [];
|
|
3739
3747
|
}
|
|
@@ -4803,10 +4811,11 @@ var Node = /*#__PURE__*/function () {
|
|
|
4803
4811
|
if (evt && this.nodeType === SHAPE) {
|
|
4804
4812
|
evt.target = this;
|
|
4805
4813
|
}
|
|
4806
|
-
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);
|
|
4807
4816
|
if (!shouldStop) {
|
|
4808
4817
|
this._fire(eventType, evt);
|
|
4809
|
-
var stopBubble = (eventType
|
|
4818
|
+
var stopBubble = nonBubbling.indexOf(eventType) !== -1 && compareShape && compareShape.isAncestorOf && compareShape.isAncestorOf(this) && !compareShape.isAncestorOf(this.parent);
|
|
4810
4819
|
if ((evt && !evt.cancelBubble || !evt) && this.parent && this.parent.isListening() && !stopBubble) {
|
|
4811
4820
|
if (compareShape && compareShape.parent) {
|
|
4812
4821
|
this._fireAndBubble.call(this.parent, eventType, evt, compareShape);
|
|
@@ -4850,8 +4859,8 @@ var Node = /*#__PURE__*/function () {
|
|
|
4850
4859
|
}
|
|
4851
4860
|
var selfListeners = this.eventListeners[eventType];
|
|
4852
4861
|
if (selfListeners) {
|
|
4853
|
-
for (var
|
|
4854
|
-
selfListeners[
|
|
4862
|
+
for (var _i = 0; _i < selfListeners.length; _i++) {
|
|
4863
|
+
selfListeners[_i].handler.call(this, evt);
|
|
4855
4864
|
}
|
|
4856
4865
|
}
|
|
4857
4866
|
}
|
|
@@ -5538,8 +5547,6 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5538
5547
|
baseline = 'alphabetic';
|
|
5539
5548
|
translateY = (metrics.fontBoundingBoxAscent - metrics.fontBoundingBoxDescent) / 2 + lineHeightPx / 2;
|
|
5540
5549
|
}
|
|
5541
|
-
var lineTranslateX = 0;
|
|
5542
|
-
var lineTranslateY = 0;
|
|
5543
5550
|
if (direction === RTL) {
|
|
5544
5551
|
context.setAttr('direction', direction);
|
|
5545
5552
|
}
|
|
@@ -5558,10 +5565,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5558
5565
|
var obj = textArr[n],
|
|
5559
5566
|
text = obj.text,
|
|
5560
5567
|
width = obj.width,
|
|
5561
|
-
lastLine = obj.lastInParagraph
|
|
5562
|
-
spacesNumber,
|
|
5563
|
-
oneWord,
|
|
5564
|
-
lineWidth;
|
|
5568
|
+
lastLine = obj.lastInParagraph;
|
|
5565
5569
|
context.save();
|
|
5566
5570
|
if (align === RIGHT) {
|
|
5567
5571
|
lineTranslateX += totalWidth - width - padding * 2;
|
|
@@ -5575,9 +5579,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5575
5579
|
var x = lineTranslateX;
|
|
5576
5580
|
var y = translateY + lineTranslateY + yOffset;
|
|
5577
5581
|
context.moveTo(x, y);
|
|
5578
|
-
|
|
5579
|
-
oneWord = spacesNumber === 0;
|
|
5580
|
-
lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5582
|
+
var lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5581
5583
|
context.lineTo(x + Math.round(lineWidth), y);
|
|
5582
5584
|
context.lineWidth = fontSize / 15;
|
|
5583
5585
|
var gradient = this._getLinearGradient();
|
|
@@ -5590,10 +5592,8 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5590
5592
|
context.beginPath();
|
|
5591
5593
|
var _yOffset = Global_1.Konva._fixTextRendering ? -Math.round(fontSize / 4) : 0;
|
|
5592
5594
|
context.moveTo(lineTranslateX, translateY + lineTranslateY + _yOffset);
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
lineWidth = align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width;
|
|
5596
|
-
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);
|
|
5597
5597
|
context.lineWidth = fontSize / 15;
|
|
5598
5598
|
var _gradient = this._getLinearGradient();
|
|
5599
5599
|
context.strokeStyle = _gradient || fill;
|
|
@@ -5601,7 +5601,7 @@ var Text = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
5601
5601
|
context.restore();
|
|
5602
5602
|
}
|
|
5603
5603
|
if (direction !== RTL && (letterSpacing !== 0 || align === JUSTIFY)) {
|
|
5604
|
-
spacesNumber = text.split(' ').length - 1;
|
|
5604
|
+
var spacesNumber = text.split(' ').length - 1;
|
|
5605
5605
|
var array = stringToArray(text);
|
|
5606
5606
|
for (var li = 0; li < array.length; li++) {
|
|
5607
5607
|
var letter = array[li];
|
|
@@ -21573,8 +21573,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21573
21573
|
});
|
|
21574
21574
|
exports.Path = void 0;
|
|
21575
21575
|
var Factory_1 = __webpack_require__("f0b4");
|
|
21576
|
-
var Shape_1 = __webpack_require__("fce6");
|
|
21577
21576
|
var Global_1 = __webpack_require__("d777");
|
|
21577
|
+
var Shape_1 = __webpack_require__("fce6");
|
|
21578
21578
|
var BezierFunctions_1 = __webpack_require__("2905");
|
|
21579
21579
|
var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
21580
21580
|
function Path(config) {
|
|
@@ -21752,11 +21752,19 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21752
21752
|
};
|
|
21753
21753
|
}
|
|
21754
21754
|
if (length < 0.01) {
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
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
|
+
}
|
|
21760
21768
|
}
|
|
21761
21769
|
var cp = dataArray[i];
|
|
21762
21770
|
var p = cp.points;
|
|
@@ -21776,9 +21784,9 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21776
21784
|
cy = p[1],
|
|
21777
21785
|
rx = p[2],
|
|
21778
21786
|
ry = p[3],
|
|
21779
|
-
theta = p[4],
|
|
21780
21787
|
dTheta = p[5],
|
|
21781
21788
|
psi = p[6];
|
|
21789
|
+
var theta = p[4];
|
|
21782
21790
|
theta += dTheta * length / cp.pathLength;
|
|
21783
21791
|
return Path.getPointOnEllipticalArc(cx, cy, rx, ry, theta, psi);
|
|
21784
21792
|
}
|
|
@@ -21897,8 +21905,8 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21897
21905
|
var cpy = 0;
|
|
21898
21906
|
var re = /([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;
|
|
21899
21907
|
var match;
|
|
21900
|
-
for (
|
|
21901
|
-
var str = arr[
|
|
21908
|
+
for (var _n = 1; _n < arr.length; _n++) {
|
|
21909
|
+
var str = arr[_n];
|
|
21902
21910
|
var c = str.charAt(0);
|
|
21903
21911
|
str = str.slice(1);
|
|
21904
21912
|
coords.length = 0;
|
|
@@ -21926,8 +21934,16 @@ var Path = /*#__PURE__*/function (_Shape_1$Shape) {
|
|
|
21926
21934
|
var points = [];
|
|
21927
21935
|
var startX = cpx,
|
|
21928
21936
|
startY = cpy;
|
|
21929
|
-
var prevCmd
|
|
21930
|
-
|
|
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;
|
|
21931
21947
|
switch (c) {
|
|
21932
21948
|
case 'l':
|
|
21933
21949
|
cpx += p.shift();
|
|
@@ -22268,7 +22284,7 @@ Factory_1.Factory.addGetterSetter(Node_1.Node, 'blue', 0, Validators_1.RGBCompon
|
|
|
22268
22284
|
/***/ "9224":
|
|
22269
22285
|
/***/ (function(module) {
|
|
22270
22286
|
|
|
22271
|
-
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\"]}");
|
|
22272
22288
|
|
|
22273
22289
|
/***/ }),
|
|
22274
22290
|
|
|
@@ -23876,7 +23892,7 @@ var Enhance = function Enhance(imageData) {
|
|
|
23876
23892
|
bMax = 255;
|
|
23877
23893
|
bMin = 0;
|
|
23878
23894
|
}
|
|
23879
|
-
var
|
|
23895
|
+
var rGoalMax, rGoalMin, gGoalMax, gGoalMin, bGoalMax, bGoalMin;
|
|
23880
23896
|
if (enhanceAmount > 0) {
|
|
23881
23897
|
rGoalMax = rMax + enhanceAmount * (255 - rMax);
|
|
23882
23898
|
rGoalMin = rMin - enhanceAmount * (rMin - 0);
|
|
@@ -23885,13 +23901,13 @@ var Enhance = function Enhance(imageData) {
|
|
|
23885
23901
|
bGoalMax = bMax + enhanceAmount * (255 - bMax);
|
|
23886
23902
|
bGoalMin = bMin - enhanceAmount * (bMin - 0);
|
|
23887
23903
|
} else {
|
|
23888
|
-
rMid = (rMax + rMin) * 0.5;
|
|
23904
|
+
var rMid = (rMax + rMin) * 0.5;
|
|
23889
23905
|
rGoalMax = rMax + enhanceAmount * (rMax - rMid);
|
|
23890
23906
|
rGoalMin = rMin + enhanceAmount * (rMin - rMid);
|
|
23891
|
-
gMid = (gMax + gMin) * 0.5;
|
|
23907
|
+
var gMid = (gMax + gMin) * 0.5;
|
|
23892
23908
|
gGoalMax = gMax + enhanceAmount * (gMax - gMid);
|
|
23893
23909
|
gGoalMin = gMin + enhanceAmount * (gMin - gMid);
|
|
23894
|
-
bMid = (bMax + bMin) * 0.5;
|
|
23910
|
+
var bMid = (bMax + bMin) * 0.5;
|
|
23895
23911
|
bGoalMax = bMax + enhanceAmount * (bMax - bMid);
|
|
23896
23912
|
bGoalMin = bMin + enhanceAmount * (bMin - bMid);
|
|
23897
23913
|
}
|
|
@@ -23932,7 +23948,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23932
23948
|
var pixels = imageData.data,
|
|
23933
23949
|
width = imageData.width,
|
|
23934
23950
|
height = imageData.height;
|
|
23935
|
-
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;
|
|
23936
23952
|
var div = radius + radius + 1,
|
|
23937
23953
|
widthMinus1 = width - 1,
|
|
23938
23954
|
heightMinus1 = height - 1,
|
|
@@ -23945,7 +23961,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23945
23961
|
stack = stackStart,
|
|
23946
23962
|
stackIn = null,
|
|
23947
23963
|
stackOut = null;
|
|
23948
|
-
for (i = 1; i < div; i++) {
|
|
23964
|
+
for (var i = 1; i < div; i++) {
|
|
23949
23965
|
stack = stack.next = new BlurStack();
|
|
23950
23966
|
if (i === radiusPlus1) {
|
|
23951
23967
|
stackEnd = stack;
|
|
@@ -23953,7 +23969,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23953
23969
|
}
|
|
23954
23970
|
stack.next = stackStart;
|
|
23955
23971
|
yw = yi = 0;
|
|
23956
|
-
for (y = 0; y < height; y++) {
|
|
23972
|
+
for (var y = 0; y < height; y++) {
|
|
23957
23973
|
r_in_sum = g_in_sum = b_in_sum = a_in_sum = r_sum = g_sum = b_sum = a_sum = 0;
|
|
23958
23974
|
r_out_sum = radiusPlus1 * (pr = pixels[yi]);
|
|
23959
23975
|
g_out_sum = radiusPlus1 * (pg = pixels[yi + 1]);
|
|
@@ -23964,16 +23980,16 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23964
23980
|
b_sum += sumFactor * pb;
|
|
23965
23981
|
a_sum += sumFactor * pa;
|
|
23966
23982
|
stack = stackStart;
|
|
23967
|
-
for (
|
|
23983
|
+
for (var _i = 0; _i < radiusPlus1; _i++) {
|
|
23968
23984
|
stack.r = pr;
|
|
23969
23985
|
stack.g = pg;
|
|
23970
23986
|
stack.b = pb;
|
|
23971
23987
|
stack.a = pa;
|
|
23972
23988
|
stack = stack.next;
|
|
23973
23989
|
}
|
|
23974
|
-
for (
|
|
23975
|
-
p = yi + ((widthMinus1 <
|
|
23976
|
-
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);
|
|
23977
23993
|
g_sum += (stack.g = pg = pixels[p + 1]) * rbs;
|
|
23978
23994
|
b_sum += (stack.b = pb = pixels[p + 2]) * rbs;
|
|
23979
23995
|
a_sum += (stack.a = pa = pixels[p + 3]) * rbs;
|
|
@@ -23985,7 +24001,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
23985
24001
|
}
|
|
23986
24002
|
stackIn = stackStart;
|
|
23987
24003
|
stackOut = stackEnd;
|
|
23988
|
-
for (x = 0; x < width; x++) {
|
|
24004
|
+
for (var x = 0; x < width; x++) {
|
|
23989
24005
|
pixels[yi + 3] = pa = a_sum * mul_sum >> shg_sum;
|
|
23990
24006
|
if (pa !== 0) {
|
|
23991
24007
|
pa = 255 / pa;
|
|
@@ -24026,9 +24042,9 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24026
24042
|
}
|
|
24027
24043
|
yw += width;
|
|
24028
24044
|
}
|
|
24029
|
-
for (
|
|
24045
|
+
for (var _x = 0; _x < width; _x++) {
|
|
24030
24046
|
g_in_sum = b_in_sum = a_in_sum = r_in_sum = g_sum = b_sum = a_sum = r_sum = 0;
|
|
24031
|
-
yi =
|
|
24047
|
+
yi = _x << 2;
|
|
24032
24048
|
r_out_sum = radiusPlus1 * (pr = pixels[yi]);
|
|
24033
24049
|
g_out_sum = radiusPlus1 * (pg = pixels[yi + 1]);
|
|
24034
24050
|
b_out_sum = radiusPlus1 * (pb = pixels[yi + 2]);
|
|
@@ -24038,17 +24054,17 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24038
24054
|
b_sum += sumFactor * pb;
|
|
24039
24055
|
a_sum += sumFactor * pa;
|
|
24040
24056
|
stack = stackStart;
|
|
24041
|
-
for (
|
|
24057
|
+
for (var _i3 = 0; _i3 < radiusPlus1; _i3++) {
|
|
24042
24058
|
stack.r = pr;
|
|
24043
24059
|
stack.g = pg;
|
|
24044
24060
|
stack.b = pb;
|
|
24045
24061
|
stack.a = pa;
|
|
24046
24062
|
stack = stack.next;
|
|
24047
24063
|
}
|
|
24048
|
-
yp = width;
|
|
24049
|
-
for (
|
|
24050
|
-
yi = yp +
|
|
24051
|
-
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);
|
|
24052
24068
|
g_sum += (stack.g = pg = pixels[yi + 1]) * rbs;
|
|
24053
24069
|
b_sum += (stack.b = pb = pixels[yi + 2]) * rbs;
|
|
24054
24070
|
a_sum += (stack.a = pa = pixels[yi + 3]) * rbs;
|
|
@@ -24057,14 +24073,14 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24057
24073
|
b_in_sum += pb;
|
|
24058
24074
|
a_in_sum += pa;
|
|
24059
24075
|
stack = stack.next;
|
|
24060
|
-
if (
|
|
24076
|
+
if (_i4 < heightMinus1) {
|
|
24061
24077
|
yp += width;
|
|
24062
24078
|
}
|
|
24063
24079
|
}
|
|
24064
|
-
yi =
|
|
24080
|
+
yi = _x;
|
|
24065
24081
|
stackIn = stackStart;
|
|
24066
24082
|
stackOut = stackEnd;
|
|
24067
|
-
for (
|
|
24083
|
+
for (var _y = 0; _y < height; _y++) {
|
|
24068
24084
|
p = yi << 2;
|
|
24069
24085
|
pixels[p + 3] = pa = a_sum * mul_sum >> shg_sum;
|
|
24070
24086
|
if (pa > 0) {
|
|
@@ -24083,7 +24099,7 @@ function filterGaussBlurRGBA(imageData, radius) {
|
|
|
24083
24099
|
g_out_sum -= stackIn.g;
|
|
24084
24100
|
b_out_sum -= stackIn.b;
|
|
24085
24101
|
a_out_sum -= stackIn.a;
|
|
24086
|
-
p =
|
|
24102
|
+
p = _x + ((p = _y + radiusPlus1) < heightMinus1 ? p : heightMinus1) * width << 2;
|
|
24087
24103
|
r_sum += r_in_sum += stackIn.r = pixels[p];
|
|
24088
24104
|
g_sum += g_in_sum += stackIn.g = pixels[p + 1];
|
|
24089
24105
|
b_sum += b_in_sum += stackIn.b = pixels[p + 2];
|
|
@@ -25559,20 +25575,20 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25559
25575
|
this.findOne('.top-left').y(anchorNode.y());
|
|
25560
25576
|
} else if (this._movingAnchorName === 'top-right') {
|
|
25561
25577
|
if (keepProportion) {
|
|
25562
|
-
var
|
|
25578
|
+
var _comparePoint = centeredScaling ? {
|
|
25563
25579
|
x: this.width() / 2,
|
|
25564
25580
|
y: this.height() / 2
|
|
25565
25581
|
} : {
|
|
25566
25582
|
x: this.findOne('.bottom-left').x(),
|
|
25567
25583
|
y: this.findOne('.bottom-left').y()
|
|
25568
25584
|
};
|
|
25569
|
-
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() -
|
|
25570
|
-
var
|
|
25571
|
-
var
|
|
25572
|
-
x = newHypotenuse * this.cos *
|
|
25573
|
-
y = newHypotenuse * this.sin *
|
|
25574
|
-
this.findOne('.top-right').x(
|
|
25575
|
-
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);
|
|
25576
25592
|
}
|
|
25577
25593
|
var pos = anchorNode.position();
|
|
25578
25594
|
this.findOne('.top-left').y(pos.y);
|
|
@@ -25583,20 +25599,20 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25583
25599
|
this.findOne('.bottom-right').x(anchorNode.x());
|
|
25584
25600
|
} else if (this._movingAnchorName === 'bottom-left') {
|
|
25585
25601
|
if (keepProportion) {
|
|
25586
|
-
var
|
|
25602
|
+
var _comparePoint2 = centeredScaling ? {
|
|
25587
25603
|
x: this.width() / 2,
|
|
25588
25604
|
y: this.height() / 2
|
|
25589
25605
|
} : {
|
|
25590
25606
|
x: this.findOne('.top-right').x(),
|
|
25591
25607
|
y: this.findOne('.top-right').y()
|
|
25592
25608
|
};
|
|
25593
|
-
newHypotenuse = Math.sqrt(Math.pow(
|
|
25594
|
-
var
|
|
25595
|
-
var
|
|
25596
|
-
x = newHypotenuse * this.cos *
|
|
25597
|
-
y = newHypotenuse * this.sin *
|
|
25598
|
-
anchorNode.x(
|
|
25599
|
-
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);
|
|
25600
25616
|
}
|
|
25601
25617
|
pos = anchorNode.position();
|
|
25602
25618
|
this.findOne('.top-left').x(pos.x);
|
|
@@ -25605,25 +25621,25 @@ var Transformer = /*#__PURE__*/function (_Group_1$Group) {
|
|
|
25605
25621
|
this.findOne('.bottom-right').y(anchorNode.y());
|
|
25606
25622
|
} else if (this._movingAnchorName === 'bottom-right') {
|
|
25607
25623
|
if (keepProportion) {
|
|
25608
|
-
var
|
|
25624
|
+
var _comparePoint3 = centeredScaling ? {
|
|
25609
25625
|
x: this.width() / 2,
|
|
25610
25626
|
y: this.height() / 2
|
|
25611
25627
|
} : {
|
|
25612
25628
|
x: this.findOne('.top-left').x(),
|
|
25613
25629
|
y: this.findOne('.top-left').y()
|
|
25614
25630
|
};
|
|
25615
|
-
newHypotenuse = Math.sqrt(Math.pow(anchorNode.x() -
|
|
25616
|
-
var
|
|
25617
|
-
var
|
|
25618
|
-
x = newHypotenuse * this.cos *
|
|
25619
|
-
y = newHypotenuse * this.sin *
|
|
25620
|
-
this.findOne('.bottom-right').x(
|
|
25621
|
-
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);
|
|
25622
25638
|
}
|
|
25623
25639
|
} else {
|
|
25624
25640
|
console.error(new Error('Wrong position argument of selection resizer: ' + this._movingAnchorName));
|
|
25625
25641
|
}
|
|
25626
|
-
|
|
25642
|
+
centeredScaling = this.centeredScaling() || e.altKey;
|
|
25627
25643
|
if (centeredScaling) {
|
|
25628
25644
|
var topLeft = this.findOne('.top-left');
|
|
25629
25645
|
var bottomRight = this.findOne('.bottom-right');
|
|
@@ -26047,7 +26063,7 @@ function detectBrowser() {
|
|
|
26047
26063
|
exports.glob = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof WorkerGlobalScope !== 'undefined' ? self : {};
|
|
26048
26064
|
exports.Konva = {
|
|
26049
26065
|
_global: exports.glob,
|
|
26050
|
-
version: '9.3.
|
|
26066
|
+
version: '9.3.22',
|
|
26051
26067
|
isBrowser: detectBrowser(),
|
|
26052
26068
|
isUnminified: /param/.test(function (param) {}.toString()),
|
|
26053
26069
|
dblClickWindow: 400,
|
|
@@ -26855,17 +26871,11 @@ var Container = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
26855
26871
|
return _createClass(Container, [{
|
|
26856
26872
|
key: "getChildren",
|
|
26857
26873
|
value: function getChildren(filterFunc) {
|
|
26858
|
-
if (!filterFunc) {
|
|
26859
|
-
return this.children || [];
|
|
26860
|
-
}
|
|
26861
26874
|
var children = this.children || [];
|
|
26862
|
-
|
|
26863
|
-
|
|
26864
|
-
|
|
26865
|
-
|
|
26866
|
-
}
|
|
26867
|
-
});
|
|
26868
|
-
return results;
|
|
26875
|
+
if (filterFunc) {
|
|
26876
|
+
return children.filter(filterFunc);
|
|
26877
|
+
}
|
|
26878
|
+
return children;
|
|
26869
26879
|
}
|
|
26870
26880
|
}, {
|
|
26871
26881
|
key: "hasChildren",
|
|
@@ -27289,7 +27299,7 @@ var STAGE = 'Stage',
|
|
|
27289
27299
|
TOUCHCANCEL = 'touchcancel',
|
|
27290
27300
|
WHEEL = 'wheel',
|
|
27291
27301
|
MAX_LAYERS_NUMBER = 5,
|
|
27292
|
-
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']];
|
|
27293
27303
|
var EVENTS_MAP = {
|
|
27294
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'),
|
|
27295
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'),
|
|
@@ -27367,11 +27377,11 @@ var Stage = /*#__PURE__*/function (_Container_1$Containe) {
|
|
|
27367
27377
|
key: "setContainer",
|
|
27368
27378
|
value: function setContainer(container) {
|
|
27369
27379
|
if (_typeof(container) === STRING) {
|
|
27380
|
+
var id;
|
|
27370
27381
|
if (container.charAt(0) === '.') {
|
|
27371
27382
|
var className = container.slice(1);
|
|
27372
27383
|
container = document.getElementsByClassName(className)[0];
|
|
27373
27384
|
} else {
|
|
27374
|
-
var id;
|
|
27375
27385
|
if (container.charAt(0) !== '#') {
|
|
27376
27386
|
id = container;
|
|
27377
27387
|
} else {
|
|
@@ -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,7 +62696,7 @@ 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":"
|
|
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
|
|
62688
62700
|
var com_flcanvasvue_type_template_id_32dc6e8c_scoped_true_render = function render() {
|
|
62689
62701
|
var _vm = this,
|
|
62690
62702
|
_c = _vm._self._c;
|
|
@@ -65903,7 +65915,7 @@ var com_flcanvas_component = normalizeComponent(
|
|
|
65903
65915
|
)
|
|
65904
65916
|
|
|
65905
65917
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
65906
|
-
// 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
|
|
65907
65919
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
65908
65920
|
var _vm = this,
|
|
65909
65921
|
_c = _vm._self._c;
|
|
@@ -66011,7 +66023,7 @@ var per_control_component = normalizeComponent(
|
|
|
66011
66023
|
)
|
|
66012
66024
|
|
|
66013
66025
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
66014
|
-
// 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
|
|
66015
66027
|
var pidvue_type_template_id_0ec35ee4_scoped_true_render = function render() {
|
|
66016
66028
|
var _vm = this,
|
|
66017
66029
|
_c = _vm._self._c;
|
|
@@ -66630,10 +66642,9 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66630
66642
|
context = canvas.getContext(),
|
|
66631
66643
|
cachedCanvas = this._getCanvasCache(),
|
|
66632
66644
|
drawFunc = this.getSceneFunc(),
|
|
66633
|
-
hasShadow = this.hasShadow()
|
|
66634
|
-
|
|
66635
|
-
|
|
66636
|
-
var skipBuffer = canvas.isCache;
|
|
66645
|
+
hasShadow = this.hasShadow();
|
|
66646
|
+
var stage;
|
|
66647
|
+
var skipBuffer = false;
|
|
66637
66648
|
var cachingSelf = top === this;
|
|
66638
66649
|
if (!this.isVisible() && !cachingSelf) {
|
|
66639
66650
|
return this;
|
|
@@ -66653,7 +66664,7 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66653
66664
|
if (this._useBufferCanvas() && !skipBuffer) {
|
|
66654
66665
|
stage = this.getStage();
|
|
66655
66666
|
var bc = bufferCanvas || stage.bufferCanvas;
|
|
66656
|
-
bufferContext = bc.getContext();
|
|
66667
|
+
var bufferContext = bc.getContext();
|
|
66657
66668
|
bufferContext.clear();
|
|
66658
66669
|
bufferContext.save();
|
|
66659
66670
|
bufferContext._applyLineJoin(this);
|
|
@@ -66667,12 +66678,12 @@ var Shape = /*#__PURE__*/function (_Node_1$Node) {
|
|
|
66667
66678
|
}
|
|
66668
66679
|
context._applyOpacity(this);
|
|
66669
66680
|
context._applyGlobalCompositeOperation(this);
|
|
66670
|
-
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);
|
|
66671
66682
|
} else {
|
|
66672
66683
|
context._applyLineJoin(this);
|
|
66673
66684
|
if (!cachingSelf) {
|
|
66674
|
-
var
|
|
66675
|
-
context.transform(
|
|
66685
|
+
var _o = this.getAbsoluteTransform(top).getMatrix();
|
|
66686
|
+
context.transform(_o[0], _o[1], _o[2], _o[3], _o[4], _o[5]);
|
|
66676
66687
|
context._applyOpacity(this);
|
|
66677
66688
|
context._applyGlobalCompositeOperation(this);
|
|
66678
66689
|
}
|