@inweb/client 25.3.4 → 25.3.6
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/client.js +15 -23
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +13 -21
- package/dist/client.module.js.map +1 -1
- package/lib/Viewer/Markup/IViewpoint.d.ts +1 -6
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Viewer/Markup/Api/Impl/Konva/KonvaLine.ts +12 -12
- package/src/Viewer/Markup/IViewpoint.ts +1 -6
- package/src/Viewer/Markup/Impl/Konva/KonvaMarkup.ts +1 -1
- package/src/index.ts +1 -0
package/dist/client.js
CHANGED
|
@@ -3925,7 +3925,7 @@
|
|
|
3925
3925
|
.then((data) => ({
|
|
3926
3926
|
...data,
|
|
3927
3927
|
server: data.version,
|
|
3928
|
-
client: "25.3.
|
|
3928
|
+
client: "25.3.6",
|
|
3929
3929
|
}));
|
|
3930
3930
|
}
|
|
3931
3931
|
/**
|
|
@@ -18399,18 +18399,10 @@
|
|
|
18399
18399
|
}
|
|
18400
18400
|
}
|
|
18401
18401
|
|
|
18402
|
-
var LineType;
|
|
18403
|
-
(function (LineType) {
|
|
18404
|
-
LineType[LineType["Unknown"] = 0] = "Unknown";
|
|
18405
|
-
LineType["Solid"] = "solid";
|
|
18406
|
-
LineType["Dot"] = "dot";
|
|
18407
|
-
LineType["Dash"] = "dash";
|
|
18408
|
-
})(LineType || (LineType = {}));
|
|
18409
|
-
|
|
18410
18402
|
const LineTypeSpecs = new Map([
|
|
18411
|
-
[
|
|
18412
|
-
[
|
|
18413
|
-
[
|
|
18403
|
+
["solid", []],
|
|
18404
|
+
["dot", [30, 30, 0.001, 30]],
|
|
18405
|
+
["dash", [30, 30]],
|
|
18414
18406
|
]);
|
|
18415
18407
|
class KonvaLine {
|
|
18416
18408
|
constructor(params, ref = null) {
|
|
@@ -18481,24 +18473,24 @@
|
|
|
18481
18473
|
}
|
|
18482
18474
|
getLineType() {
|
|
18483
18475
|
const typeSpecs = this._ref.dash() || [];
|
|
18484
|
-
let type
|
|
18476
|
+
let type;
|
|
18485
18477
|
switch (typeSpecs) {
|
|
18486
|
-
case LineTypeSpecs.get(
|
|
18478
|
+
case LineTypeSpecs.get("dot"):
|
|
18487
18479
|
type = "dot";
|
|
18488
18480
|
break;
|
|
18489
|
-
case LineTypeSpecs.get(
|
|
18481
|
+
case LineTypeSpecs.get("dash"):
|
|
18490
18482
|
type = "dash";
|
|
18491
18483
|
break;
|
|
18484
|
+
default:
|
|
18485
|
+
type = "solid";
|
|
18486
|
+
break;
|
|
18492
18487
|
}
|
|
18493
18488
|
return type;
|
|
18494
18489
|
}
|
|
18495
18490
|
setLineType(type) {
|
|
18496
|
-
const
|
|
18497
|
-
if (
|
|
18498
|
-
|
|
18499
|
-
if (specs)
|
|
18500
|
-
this._ref.dash(specs);
|
|
18501
|
-
}
|
|
18491
|
+
const specs = LineTypeSpecs.get(type);
|
|
18492
|
+
if (specs)
|
|
18493
|
+
this._ref.dash(specs);
|
|
18502
18494
|
}
|
|
18503
18495
|
addPoints(points) {
|
|
18504
18496
|
let newPoints = this._ref.points();
|
|
@@ -19806,7 +19798,7 @@
|
|
|
19806
19798
|
const konvaLine = new KonvaLine({
|
|
19807
19799
|
points,
|
|
19808
19800
|
color: color || this._markupColor.HexColor,
|
|
19809
|
-
type: type ||
|
|
19801
|
+
type: type || "solid",
|
|
19810
19802
|
width: width || this.lineWidth,
|
|
19811
19803
|
id,
|
|
19812
19804
|
});
|
|
@@ -21516,7 +21508,7 @@
|
|
|
21516
21508
|
commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
|
|
21517
21509
|
|
|
21518
21510
|
///////////////////////////////////////////////////////////////////////////////
|
|
21519
|
-
const version = "25.3.
|
|
21511
|
+
const version = "25.3.6";
|
|
21520
21512
|
|
|
21521
21513
|
exports.Assembly = Assembly;
|
|
21522
21514
|
exports.CANVAS_EVENTS = CANVAS_EVENTS;
|