Functions
Const getCirclePolygonCoordinates
- getCirclePolygonCoordinates(center: { x: number; y: number }, radius: number, points?: number, startAngle?: number, endAngle?: number, includeCenterWhenArc?: boolean): number[][]
-
Parameters
-
center: { x: number; y: number }
-
radius: number
-
Default value points: number = 360
-
Default value startAngle: number = 0
-
Default value endAngle: number = 360
-
Default value includeCenterWhenArc: boolean = false
Returns number[][]
getDwgColorByIndex
- getDwgColorByIndex(index: number, isHtmlColor?: boolean): string | number[]
-
Parameters
-
index: number
-
Optional isHtmlColor: boolean
Returns string | number[]
颜色值.
toDWG
-
Parameters
Returns string
String of json content.
-
Parameters
Returns string
String of json content.
-
Parameters
Returns string
String of json content.
toJson
-
Parameters
Returns string
String of content.
Const wrap
- wrap(n: number, min: number, max: number, isMin?: boolean): number
-
Parameters
-
n: number
-
min: number
-
max: number
-
Default value isMin: boolean = false
Returns number
Object literals
colors
colors: object
fuchsia
fuchsia: number = 6
maroon
maroon: number = 14
orange
orange: number = 30
purple
purple: number = 214
silver
silver: number = 254
yellow
yellow: number = 2
得到圆或圆弧的离散化的多边形的点