WebCAD-Lib-TS API 文档 - v1.0.0
Preparing search index...
ShapeParser
Class ShapeParser
Index
Constructors
constructor
Methods
parse
validate
Shape
create
Lookup
Table
Constructors
constructor
new
ShapeParser
()
:
ShapeParser
Returns
ShapeParser
Methods
parse
parse
(
shapeDefinitions
:
string
)
:
ShapeDefinition
[]
解析shape定义字符串
Parameters
shapeDefinitions
:
string
shape定义字符串
Returns
ShapeDefinition
[]
解析出的shape定义数组
validate
Shape
validateShape
(
definition
:
ShapeDefinition
)
:
boolean
验证shape数据
Parameters
definition
:
ShapeDefinition
shape定义
Returns
boolean
是否有效
create
Lookup
Table
createLookupTable
(
definitions
:
ShapeDefinition
[]
,
)
:
{
byNumber
:
Map
<
number
,
ShapeDefinition
>
;
byName
:
Map
<
string
,
ShapeDefinition
[]
>
;
byFileName
:
Map
<
string
,
ShapeDefinition
[]
>
;
}
从shape定义数组创建查找表
Parameters
definitions
:
ShapeDefinition
[]
shape定义数组
Returns
{
byNumber
:
Map
<
number
,
ShapeDefinition
>
;
byName
:
Map
<
string
,
ShapeDefinition
[]
>
;
byFileName
:
Map
<
string
,
ShapeDefinition
[]
>
;
}
查找表对象
Settings
Member Visibility
Protected
Internal
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
parse
validate
Shape
create
Lookup
Table
WebCAD-Lib-TS API 文档 - v1.0.0
Loading...
解析shape定义字符串