@inweb/viewer-visualize 26.6.1 → 26.6.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-visualize.js
CHANGED
|
@@ -16512,7 +16512,7 @@
|
|
|
16512
16512
|
let wcsPoints = this._ref.getAttr("wcsPoints");
|
|
16513
16513
|
if (!wcsPoints) {
|
|
16514
16514
|
wcsPoints = [];
|
|
16515
|
-
|
|
16515
|
+
const points = this._ref.points();
|
|
16516
16516
|
let wcsPoint;
|
|
16517
16517
|
for (let i = 0; i < points.length; i += 2) {
|
|
16518
16518
|
wcsPoint = this._worldTransformer.screenToWorld({
|
|
@@ -16541,7 +16541,7 @@
|
|
|
16541
16541
|
const wcsPoints = [];
|
|
16542
16542
|
params.points.forEach((point => {
|
|
16543
16543
|
konvaPoints.push(point.x, point.y);
|
|
16544
|
-
|
|
16544
|
+
const wcsPoint = this._worldTransformer.screenToWorld({
|
|
16545
16545
|
x: point.x,
|
|
16546
16546
|
y: point.y
|
|
16547
16547
|
});
|
|
@@ -16569,8 +16569,8 @@
|
|
|
16569
16569
|
}));
|
|
16570
16570
|
this._ref.on("transformend", (e => {
|
|
16571
16571
|
const absoluteTransform = this._ref.getAbsoluteTransform();
|
|
16572
|
-
|
|
16573
|
-
|
|
16572
|
+
const wcsPoints = [];
|
|
16573
|
+
const points = this._ref.points();
|
|
16574
16574
|
let wcsPoint;
|
|
16575
16575
|
for (let i = 0; i < points.length; i += 2) {
|
|
16576
16576
|
const position = absoluteTransform.point({
|
|
@@ -16591,8 +16591,8 @@
|
|
|
16591
16591
|
}));
|
|
16592
16592
|
this._ref.on("dragend", (e => {
|
|
16593
16593
|
const absoluteTransform = this._ref.getAbsoluteTransform();
|
|
16594
|
-
|
|
16595
|
-
|
|
16594
|
+
const wcsPoints = [];
|
|
16595
|
+
const points = this._ref.points();
|
|
16596
16596
|
let wcsPoint;
|
|
16597
16597
|
for (let i = 0; i < points.length; i += 2) {
|
|
16598
16598
|
const position = absoluteTransform.point({
|
|
@@ -16680,17 +16680,17 @@
|
|
|
16680
16680
|
}
|
|
16681
16681
|
addPoints(points) {
|
|
16682
16682
|
let newPoints = this._ref.points();
|
|
16683
|
-
|
|
16683
|
+
const wcsPoints = this._ref.getAttr("wcsPoints");
|
|
16684
16684
|
points.forEach((point => {
|
|
16685
16685
|
newPoints = newPoints.concat([ point.x, point.y ]);
|
|
16686
|
-
|
|
16686
|
+
const wcsPoint = this._worldTransformer.screenToWorld(point);
|
|
16687
16687
|
wcsPoints.push(wcsPoint);
|
|
16688
16688
|
}));
|
|
16689
16689
|
this._ref.points(newPoints);
|
|
16690
16690
|
}
|
|
16691
16691
|
updateScreenCoordinates() {
|
|
16692
|
-
|
|
16693
|
-
|
|
16692
|
+
const wcsPoints = this._ref.getAttr("wcsPoints");
|
|
16693
|
+
const points = [];
|
|
16694
16694
|
let invert = this._ref.getAbsoluteTransform().copy();
|
|
16695
16695
|
invert = invert.invert();
|
|
16696
16696
|
wcsPoints.forEach((point => {
|
|
@@ -16849,7 +16849,7 @@
|
|
|
16849
16849
|
this._ref.fontSize(size);
|
|
16850
16850
|
}
|
|
16851
16851
|
updateScreenCoordinates() {
|
|
16852
|
-
|
|
16852
|
+
const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
|
|
16853
16853
|
let invert = this._ref.getStage().getAbsoluteTransform().copy();
|
|
16854
16854
|
invert = invert.invert();
|
|
16855
16855
|
const positionStart = invert.point(screenPositionStart);
|
|
@@ -17065,8 +17065,8 @@
|
|
|
17065
17065
|
return this._ref.strokeWidth();
|
|
17066
17066
|
}
|
|
17067
17067
|
updateScreenCoordinates() {
|
|
17068
|
-
|
|
17069
|
-
|
|
17068
|
+
const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
|
|
17069
|
+
const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
|
|
17070
17070
|
let invert = this._ref.getStage().getAbsoluteTransform().copy();
|
|
17071
17071
|
invert = invert.invert();
|
|
17072
17072
|
const positionStart = invert.point(screenPositionStart);
|
|
@@ -17304,9 +17304,9 @@
|
|
|
17304
17304
|
this._ref = null;
|
|
17305
17305
|
}
|
|
17306
17306
|
updateScreenCoordinates() {
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17307
|
+
const screenPosition = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsPosition"));
|
|
17308
|
+
const radiusX = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusX"));
|
|
17309
|
+
const radiusY = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsRadiusY"));
|
|
17310
17310
|
let invert = this._ref.getStage().getAbsoluteTransform().copy();
|
|
17311
17311
|
invert = invert.invert();
|
|
17312
17312
|
const position = invert.point({
|
|
@@ -17491,8 +17491,8 @@
|
|
|
17491
17491
|
}));
|
|
17492
17492
|
}
|
|
17493
17493
|
updateScreenCoordinates() {
|
|
17494
|
-
|
|
17495
|
-
|
|
17494
|
+
const screenStartPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
|
|
17495
|
+
const screenEndPoint = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
|
|
17496
17496
|
let invert = this._ref.getAbsoluteTransform().copy();
|
|
17497
17497
|
invert = invert.invert();
|
|
17498
17498
|
const startPoint = invert.point({
|
|
@@ -17730,8 +17730,8 @@
|
|
|
17730
17730
|
this._ref.setAttr("wcsEnd", wcsRightLowerPoint);
|
|
17731
17731
|
}
|
|
17732
17732
|
updateScreenCoordinates() {
|
|
17733
|
-
|
|
17734
|
-
|
|
17733
|
+
const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
|
|
17734
|
+
const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
|
|
17735
17735
|
let invert = this._ref.getStage().getAbsoluteTransform().copy();
|
|
17736
17736
|
invert = invert.invert();
|
|
17737
17737
|
const positionStart = invert.point(screenPositionStart);
|
|
@@ -18029,8 +18029,8 @@
|
|
|
18029
18029
|
this._ref.strokeWidth(size);
|
|
18030
18030
|
}
|
|
18031
18031
|
updateScreenCoordinates() {
|
|
18032
|
-
|
|
18033
|
-
|
|
18032
|
+
const screenPositionStart = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsStart"));
|
|
18033
|
+
const screenPositionEnd = this._worldTransformer.worldToScreen(this._ref.getAttr("wcsEnd"));
|
|
18034
18034
|
let invert = this._ref.getStage().getAbsoluteTransform().copy();
|
|
18035
18035
|
invert = invert.invert();
|
|
18036
18036
|
const positionStart = invert.point(screenPositionStart);
|