@inweb/viewer-three 26.5.1 → 26.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/viewer-three.js +12 -8
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +1 -1
- package/package.json +5 -5
package/dist/viewer-three.js
CHANGED
|
@@ -78540,7 +78540,7 @@ void main() {
|
|
|
78540
78540
|
|
|
78541
78541
|
class KonvaEllipse {
|
|
78542
78542
|
constructor(params, ref = null, worldTransformer = new WorldTransform) {
|
|
78543
|
-
var _a, _b;
|
|
78543
|
+
var _a, _b, _c;
|
|
78544
78544
|
this._worldTransformer = worldTransformer;
|
|
78545
78545
|
if (ref) {
|
|
78546
78546
|
this._ref = ref;
|
|
@@ -78573,6 +78573,10 @@ void main() {
|
|
|
78573
78573
|
y: 0
|
|
78574
78574
|
};
|
|
78575
78575
|
if (params.position2) {
|
|
78576
|
+
(_a = params.radius) !== null && _a !== undefined ? _a : params.radius = {
|
|
78577
|
+
x: 0,
|
|
78578
|
+
y: 0
|
|
78579
|
+
};
|
|
78576
78580
|
params.radius.x = getDistanceIn2D(params.position, params.position2);
|
|
78577
78581
|
if (params.position3) params.radius.y = getDistanceIn2D(params.position, params.position3); else params.radius.x = params.radius.y;
|
|
78578
78582
|
} else {
|
|
@@ -78582,8 +78586,8 @@ void main() {
|
|
|
78582
78586
|
};
|
|
78583
78587
|
}
|
|
78584
78588
|
this._ref = new Konva.Ellipse({
|
|
78585
|
-
stroke: (
|
|
78586
|
-
strokeWidth: (
|
|
78589
|
+
stroke: (_b = params.color) !== null && _b !== undefined ? _b : "#ff0000",
|
|
78590
|
+
strokeWidth: (_c = params.lineWidth) !== null && _c !== undefined ? _c : 4,
|
|
78587
78591
|
globalCompositeOperation: "source-over",
|
|
78588
78592
|
lineCap: "round",
|
|
78589
78593
|
lineJoin: "round",
|
|
@@ -79019,13 +79023,13 @@ void main() {
|
|
|
79019
79023
|
this._ref.width(params.maxHeight / this._ratio);
|
|
79020
79024
|
this._ref.height(params.maxHeight);
|
|
79021
79025
|
}
|
|
79022
|
-
const wcsEnd = this._worldTransformer.screenToWorld({
|
|
79023
|
-
x: params.position.x + this._ref.width(),
|
|
79024
|
-
y: params.position.y + this._ref.height()
|
|
79025
|
-
});
|
|
79026
|
-
this._ref.setAttr("wcsEnd", wcsEnd);
|
|
79027
79026
|
}
|
|
79028
79027
|
}
|
|
79028
|
+
const wcsEnd = this._worldTransformer.screenToWorld({
|
|
79029
|
+
x: params.position.x + this._ref.width(),
|
|
79030
|
+
y: params.position.y + this._ref.height()
|
|
79031
|
+
});
|
|
79032
|
+
this._ref.setAttr("wcsEnd", wcsEnd);
|
|
79029
79033
|
};
|
|
79030
79034
|
this._canvasImage.onerror = () => {
|
|
79031
79035
|
this._canvasImage.onerror = function() {};
|