@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
107 lines (106 loc) • 3.01 kB
TypeScript
import { Base } from "./base-inputs";
export declare namespace Polyline {
class PolylinePropertiesDto {
/**
* Provide options without default values
*/
constructor(points?: Base.Point3[], isClosed?: boolean);
/**
* Points of the polyline
*/
points: Base.Point3[];
/**
* Can contain is closed information
*/
isClosed?: boolean;
/**
* Can contain color information
*/
color?: string | number[];
}
class PolylineDto {
constructor(polyline?: PolylinePropertiesDto);
/**
* Polyline with points
*/
polyline: PolylinePropertiesDto;
}
class PolylinesDto {
constructor(polylines?: PolylinePropertiesDto[]);
/**
* Polylines array
*/
polylines: PolylinePropertiesDto[];
}
class TransformPolylineDto {
constructor(polyline?: PolylinePropertiesDto, transformation?: Base.TransformMatrixes);
/**
* Polyline to transform
*/
polyline: PolylinePropertiesDto;
/**
* Transformation matrix or a list of transformation matrixes
*/
transformation: Base.TransformMatrixes;
}
class DrawPolylineDto<T> {
/**
* Provide options without default values
*/
constructor(polyline?: PolylinePropertiesDto, opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, polylineMesh?: T);
/**
* Polyline
*/
polyline: PolylinePropertiesDto;
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Width of the polyline
*/
size: number;
/**
* Indicates wether the position of this polyline will change in time
*/
updatable: boolean;
/**
* Line mesh variable in case it already exists and needs updating
*/
polylineMesh?: T;
}
class DrawPolylinesDto<T> {
/**
* Provide options without default values
*/
constructor(polylines?: PolylinePropertiesDto[], opacity?: number, colours?: string | string[], size?: number, updatable?: boolean, polylinesMesh?: T);
/**
* Polylines
*/
polylines: PolylinePropertiesDto[];
/**
* Value between 0 and 1
*/
opacity: number;
/**
* Hex colour string
*/
colours: string | string[];
/**
* Width of the polyline
*/
size: number;
/**
* Indicates wether the position of this polyline will change in time
*/
updatable: boolean;
/**
* Polyline mesh variable in case it already exists and needs updating
*/
polylinesMesh?: T;
}
}