@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
133 lines (132 loc) • 3.97 kB
JavaScript
export var Polyline;
(function (Polyline) {
class PolylinePropertiesDto {
/**
* Provide options without default values
*/
constructor(points, isClosed) {
/**
* Can contain is closed information
*/
this.isClosed = false;
if (points !== undefined) {
this.points = points;
}
if (isClosed !== undefined) {
this.isClosed = isClosed;
}
}
}
Polyline.PolylinePropertiesDto = PolylinePropertiesDto;
class PolylineDto {
constructor(polyline) {
if (polyline !== undefined) {
this.polyline = polyline;
}
}
}
Polyline.PolylineDto = PolylineDto;
class PolylinesDto {
constructor(polylines) {
if (polylines !== undefined) {
this.polylines = polylines;
}
}
}
Polyline.PolylinesDto = PolylinesDto;
class TransformPolylineDto {
constructor(polyline, transformation) {
if (polyline !== undefined) {
this.polyline = polyline;
}
if (transformation !== undefined) {
this.transformation = transformation;
}
}
}
Polyline.TransformPolylineDto = TransformPolylineDto;
class DrawPolylineDto {
/**
* Provide options without default values
*/
constructor(polyline, opacity, colours, size, updatable, polylineMesh) {
/**
* Value between 0 and 1
*/
this.opacity = 1;
/**
* Hex colour string
*/
this.colours = "#444444";
/**
* Width of the polyline
*/
this.size = 3;
/**
* Indicates wether the position of this polyline will change in time
*/
this.updatable = false;
if (polyline !== undefined) {
this.polyline = polyline;
}
if (opacity !== undefined) {
this.opacity = opacity;
}
if (colours !== undefined) {
this.colours = colours;
}
if (size !== undefined) {
this.size = size;
}
if (updatable !== undefined) {
this.updatable = updatable;
}
if (polylineMesh !== undefined) {
this.polylineMesh = polylineMesh;
}
}
}
Polyline.DrawPolylineDto = DrawPolylineDto;
class DrawPolylinesDto {
/**
* Provide options without default values
*/
constructor(polylines, opacity, colours, size, updatable, polylinesMesh) {
/**
* Value between 0 and 1
*/
this.opacity = 1;
/**
* Hex colour string
*/
this.colours = "#444444";
/**
* Width of the polyline
*/
this.size = 3;
/**
* Indicates wether the position of this polyline will change in time
*/
this.updatable = false;
if (polylines !== undefined) {
this.polylines = polylines;
}
if (opacity !== undefined) {
this.opacity = opacity;
}
if (colours !== undefined) {
this.colours = colours;
}
if (size !== undefined) {
this.size = size;
}
if (updatable !== undefined) {
this.updatable = updatable;
}
if (polylinesMesh !== undefined) {
this.polylinesMesh = polylinesMesh;
}
}
}
Polyline.DrawPolylinesDto = DrawPolylinesDto;
})(Polyline || (Polyline = {}));