@inweb/client 25.3.5 → 25.3.7
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.module.js
CHANGED
|
@@ -2080,7 +2080,7 @@ class Client extends EventEmitter2 {
|
|
|
2080
2080
|
return this._httpClient.get("/version").then((response => response.json())).then((data => ({
|
|
2081
2081
|
...data,
|
|
2082
2082
|
server: data.version,
|
|
2083
|
-
client: "25.3.
|
|
2083
|
+
client: "25.3.7"
|
|
2084
2084
|
})));
|
|
2085
2085
|
}
|
|
2086
2086
|
registerUser(email, password, userName) {
|
|
@@ -4705,16 +4705,7 @@ class MarkupColor {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
}
|
|
4707
4707
|
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
(function(LineType) {
|
|
4711
|
-
LineType[LineType["Unknown"] = 0] = "Unknown";
|
|
4712
|
-
LineType["Solid"] = "solid";
|
|
4713
|
-
LineType["Dot"] = "dot";
|
|
4714
|
-
LineType["Dash"] = "dash";
|
|
4715
|
-
})(LineType || (LineType = {}));
|
|
4716
|
-
|
|
4717
|
-
const LineTypeSpecs = new Map([ [ LineType.Solid, [] ], [ LineType.Dot, [ 30, 30, .001, 30 ] ], [ LineType.Dash, [ 30, 30 ] ] ]);
|
|
4708
|
+
const LineTypeSpecs = new Map([ [ "solid", [] ], [ "dot", [ 30, 30, .001, 30 ] ], [ "dash", [ 30, 30 ] ] ]);
|
|
4718
4709
|
|
|
4719
4710
|
class KonvaLine {
|
|
4720
4711
|
constructor(params, ref = null) {
|
|
@@ -4784,24 +4775,25 @@ class KonvaLine {
|
|
|
4784
4775
|
}
|
|
4785
4776
|
getLineType() {
|
|
4786
4777
|
const typeSpecs = this._ref.dash() || [];
|
|
4787
|
-
let type
|
|
4778
|
+
let type;
|
|
4788
4779
|
switch (typeSpecs) {
|
|
4789
|
-
case LineTypeSpecs.get(
|
|
4780
|
+
case LineTypeSpecs.get("dot"):
|
|
4790
4781
|
type = "dot";
|
|
4791
4782
|
break;
|
|
4792
4783
|
|
|
4793
|
-
case LineTypeSpecs.get(
|
|
4784
|
+
case LineTypeSpecs.get("dash"):
|
|
4794
4785
|
type = "dash";
|
|
4795
4786
|
break;
|
|
4787
|
+
|
|
4788
|
+
default:
|
|
4789
|
+
type = "solid";
|
|
4790
|
+
break;
|
|
4796
4791
|
}
|
|
4797
4792
|
return type;
|
|
4798
4793
|
}
|
|
4799
4794
|
setLineType(type) {
|
|
4800
|
-
const
|
|
4801
|
-
if (
|
|
4802
|
-
const specs = LineTypeSpecs.get(lineType);
|
|
4803
|
-
if (specs) this._ref.dash(specs);
|
|
4804
|
-
}
|
|
4795
|
+
const specs = LineTypeSpecs.get(type);
|
|
4796
|
+
if (specs) this._ref.dash(specs);
|
|
4805
4797
|
}
|
|
4806
4798
|
addPoints(points) {
|
|
4807
4799
|
let newPoints = this._ref.points();
|
|
@@ -6113,7 +6105,7 @@ class KonvaMarkup {
|
|
|
6113
6105
|
const konvaLine = new KonvaLine({
|
|
6114
6106
|
points: points,
|
|
6115
6107
|
color: color || this._markupColor.HexColor,
|
|
6116
|
-
type: type ||
|
|
6108
|
+
type: type || "solid",
|
|
6117
6109
|
width: width || this.lineWidth,
|
|
6118
6110
|
id: id
|
|
6119
6111
|
});
|
|
@@ -7624,7 +7616,7 @@ function zoomToSelected(viewer) {
|
|
|
7624
7616
|
|
|
7625
7617
|
commands("VisualizeJS").registerCommand("zoomToSelected", zoomToSelected);
|
|
7626
7618
|
|
|
7627
|
-
const version = "25.3.
|
|
7619
|
+
const version = "25.3.7";
|
|
7628
7620
|
|
|
7629
7621
|
export { Assembly, CANVAS_EVENTS, ClashTest, Client, EventEmitter2, File$1 as File, Job, Member, Model, OdBaseDragger, Options, Permission, Project, Role, User, Viewer, Viewer as VisualizejsViewer, commands, version };
|
|
7630
7622
|
//# sourceMappingURL=client.module.js.map
|