WebCAD-Lib-TS API 文档 - v1.0.0
Preparing search index...
ShapePath
Interface ShapePath
Shape路径(渲染结果)
interface
ShapePath
{
commands
:
PathCommand
[]
;
start
:
ShapePoint2D
;
end
:
ShapePoint2D
;
addMoveTo
(
point
:
ShapePoint2D
)
:
void
;
addLineTo
(
point
:
ShapePoint2D
)
:
void
;
addArc
(
center
:
ShapePoint2D
,
radius
:
number
,
startAngle
:
number
,
endAngle
:
number
,
counterClockwise
?:
boolean
,
)
:
void
;
}
Index
Properties
commands
start
end
Methods
add
Move
To
add
Line
To
add
Arc
Properties
commands
commands
:
PathCommand
[]
= []
start
start
:
ShapePoint2D
= ...
end
end
:
ShapePoint2D
= ...
Methods
add
Move
To
addMoveTo
(
point
:
ShapePoint2D
)
:
void
Parameters
point
:
ShapePoint2D
Returns
void
add
Line
To
addLineTo
(
point
:
ShapePoint2D
)
:
void
Parameters
point
:
ShapePoint2D
Returns
void
add
Arc
addArc
(
center
:
ShapePoint2D
,
radius
:
number
,
startAngle
:
number
,
endAngle
:
number
,
counterClockwise
?:
boolean
,
)
:
void
Parameters
center
:
ShapePoint2D
radius
:
number
startAngle
:
number
endAngle
:
number
counterClockwise
:
boolean
= false
Returns
void
Settings
Member Visibility
Protected
Internal
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Properties
commands
start
end
Methods
add
Move
To
add
Line
To
add
Arc
WebCAD-Lib-TS API 文档 - v1.0.0
Loading...
Shape路径(渲染结果)