Creates a new Data.
See @xeokit/sdk/data for usage.
OptionaldataParams: { logging?: boolean }Parameters for creating this Data.
Optionallogging?: booleanIndicates whether to log errors to the console for this Data.
Indicates whether this Data instance has been destroyed.
ReadonlyeventsEvents emitted by this Data instance.
Indicates whether to log errors to the console for this Data.
Default value is false.
ReadonlymodelsA collection of DataModels in this Data, keyed by their ID.
ReadonlyobjectsA collection of DataObjects in this Data, keyed by their ID.
ReadonlyobjectsA collection of DataObjects grouped by their type. Each type maps to a collection of objects keyed by their ID.
ReadonlypropertyA collection of PropertySets in this Data, keyed by their ID.
ReadonlyrootA collection of root DataObjects in this Data, keyed by their ID.
Root objects are those that are not the "related" participant in any Relationships.
ReadonlytypeTracks the count of DataObjects for each type in this Data.
Destroys all DataModels contained in this Data.
Fires the DataEvents.onModelDestroyed event for each destroyed DataModel.
A result indicating success or an error message on failure.
Destroys this Data instance and all contained DataModels.
Fires the onModelDestroyed event for each destroyed DataModel.
Fires the onDataDestroyed event.
Unsubscribes all event listeners.
A result indicating success or an error message on failure.
Retrieves the IDs of DataObjects that have the specified type.
The type of the objects to retrieve.
A result containing an array of object IDs on success, or an error message on failure.
Represents the root container for semantic data, including models, objects, relationships and property sets.
A
Dataserves as the authoritative registry and lifecycle manager of:It provides:
See @xeokit/sdk/data for general usage examples.