@bitbybit-dev/base 0.20.3 → 0.20.5
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
|
package/lib/api/services/line.js
CHANGED
|
@@ -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
|