@bitbybit-dev/base 0.20.3 → 0.20.4

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.
@@ -74,6 +74,15 @@ export declare class Line {
74
74
  * @drawable true
75
75
  */
76
76
  create(inputs: Inputs.Line.LinePointsDto): Inputs.Base.Line3;
77
+ /**
78
+ * Create the segment
79
+ * @param inputs start and end points of the segment
80
+ * @returns segment
81
+ * @group create
82
+ * @shortname segment
83
+ * @drawable true
84
+ */
85
+ createSegment(inputs: Inputs.Line.LinePointsDto): Inputs.Base.Segment3;
77
86
  /**
78
87
  * Gets the point on the line segment at a given param
79
88
  * @param inputs line
@@ -102,6 +102,20 @@ export class Line {
102
102
  end: inputs.end,
103
103
  };
104
104
  }
105
+ /**
106
+ * Create the segment
107
+ * @param inputs start and end points of the segment
108
+ * @returns segment
109
+ * @group create
110
+ * @shortname segment
111
+ * @drawable true
112
+ */
113
+ createSegment(inputs) {
114
+ return [
115
+ inputs.start,
116
+ inputs.end,
117
+ ];
118
+ }
105
119
  /**
106
120
  * Gets the point on the line segment at a given param
107
121
  * @param inputs line
@@ -82,8 +82,10 @@ export class Polyline {
82
82
  * @drawable true
83
83
  */
84
84
  create(inputs) {
85
+ var _a;
85
86
  return {
86
87
  points: inputs.points,
88
+ isClosed: (_a = inputs.isClosed) !== null && _a !== void 0 ? _a : false,
87
89
  };
88
90
  }
89
91
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbybit-dev/base",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "Bit By Bit Developers Base CAD Library to Program Geometry",
5
5
  "main": "index.js",
6
6
  "repository": {