@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 CHANGED
@@ -3925,7 +3925,7 @@
3925
3925
  .then((data) => ({
3926
3926
  ...data,
3927
3927
  server: data.version,
3928
- client: "25.3.5",
3928
+ client: "25.3.7",
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
- [LineType.Solid, []],
18412
- [LineType.Dot, [30, 30, 0.001, 30]],
18413
- [LineType.Dash, [30, 30]],
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 = "solid";
18476
+ let type;
18485
18477
  switch (typeSpecs) {
18486
- case LineTypeSpecs.get(LineType.Dot):
18478
+ case LineTypeSpecs.get("dot"):
18487
18479
  type = "dot";
18488
18480
  break;
18489
- case LineTypeSpecs.get(LineType.Dash):
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 lineType = LineType[type];
18497
- if (lineType) {
18498
- const specs = LineTypeSpecs.get(lineType);
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 || LineType.Solid,
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.5";
21511
+ const version = "25.3.7";
21520
21512
 
21521
21513
  exports.Assembly = Assembly;
21522
21514
  exports.CANVAS_EVENTS = CANVAS_EVENTS;