IFClite TypeScript API
Guides
Packages
Preparing search index...
@ifc-lite/collab
entityToJSON
Function entityToJSON
entityToJSON
(
entity
:
YMap
<
unknown
>
,
)
:
{
attributes
:
Record
<
string
,
unknown
>
;
children
:
Record
<
string
,
string
>
;
classifications
:
ClassificationRef
[]
;
geometryRefs
:
string
[]
;
inherits
:
Record
<
string
,
string
>
;
materials
:
MaterialAssignment
[]
;
meta
:
Record
<
string
,
unknown
>
;
psets
:
Record
<
string
,
Record
<
string
,
PropertyValue
>
>
;
quantities
:
Record
<
string
,
Record
<
string
,
number
>
>
;
}
Convert an entity Y.Map into a plain JSON snapshot. Useful for tests and for the IFCX writer.
Parameters
entity
:
YMap
<
unknown
>
Returns
{
attributes
:
Record
<
string
,
unknown
>
;
children
:
Record
<
string
,
string
>
;
classifications
:
ClassificationRef
[]
;
geometryRefs
:
string
[]
;
inherits
:
Record
<
string
,
string
>
;
materials
:
MaterialAssignment
[]
;
meta
:
Record
<
string
,
unknown
>
;
psets
:
Record
<
string
,
Record
<
string
,
PropertyValue
>
>
;
quantities
:
Record
<
string
,
Record
<
string
,
number
>
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Guides
Packages
IFClite TypeScript API
Loading...
Convert an entity Y.Map into a plain JSON snapshot. Useful for tests and for the IFCX writer.