M3D / M3D / Reader / GroupFactory
Class: GroupFactory
Memberof
SView.Reader
Description
组工厂类
Author
ye
Date
2023-6-29
Version
1.0
Hierarchy
-
↳
GroupFactory
Table of contents
Constructors
Methods
Constructors
constructor
• new GroupFactory(): GroupFactory
Returns
Inherited from
Methods
createMObject
▸ createMObject<T
>(arg
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
arg | T | 泛型 |
Returns
T
Description
创建对象
Inherited from
decodeGroupShape
▸ decodeGroupShape(group
, groupShape
): void
Parameters
Name | Type | Description |
---|---|---|
group | Group | 组对象 |
groupShape | any | group中包含的shape数据json |
Returns
void
Static
Description
解析组中包含的shape数据
fromJson
▸ fromJson(json
): Map
<any
, any
>
Parameters
Name | Type |
---|---|
json | any |
Returns
Map
<any
, any
>
Static
Description
组数据json解析