@inweb/client 25.3.5 → 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.
@@ -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.5"
2083
+ client: "25.3.6"
2084
2084
  })));
2085
2085
  }
2086
2086
  registerUser(email, password, userName) {
@@ -4705,16 +4705,7 @@ class MarkupColor {
4705
4705
  }
4706
4706
  }
4707
4707
 
4708
- var LineType;
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 = "solid";
4778
+ let type;
4788
4779
  switch (typeSpecs) {
4789
- case LineTypeSpecs.get(LineType.Dot):
4780
+ case LineTypeSpecs.get("dot"):
4790
4781
  type = "dot";
4791
4782
  break;
4792
4783
 
4793
- case LineTypeSpecs.get(LineType.Dash):
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 lineType = LineType[type];
4801
- if (lineType) {
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 || LineType.Solid,
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.5";
7619
+ const version = "25.3.6";
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