This module provides utilities for serializing and deserializing DataModels
to and from the SDK’s canonical JSON representation, DataModelParams. The format captures
a DataModel’s complete semantic state, including objects, relationships, properties, and metadata.
Because DataModelParams is a lossless representation of xeokit’s semantic graph,
a DataModel can be exported and re-imported without changing object IDs, relationships,
or properties—making it suitable for caching and synchronization workflows.
xeokit DataModelParams Importer and Exporter
Import and export semantic DataModels using xeokit’s JSON-based DataModelParams interchange format.
This module provides utilities for serializing and deserializing DataModels to and from the SDK’s canonical JSON representation, DataModelParams. The format captures a DataModel’s complete semantic state, including objects, relationships, properties, and metadata.
Installation
Usage
Exporting a DataModel to JSON
Use DataModelParamsExporter to serialize a DataModel into a DataModelParams object, which can then be stored or transmitted as JSON.
Importing a DataModel from JSON
Use DataModelParamsLoader to reconstruct a DataModel from a previously serialized DataModelParams object.
Round-tripping DataModels
Because DataModelParams is a lossless representation of xeokit’s semantic graph, a DataModel can be exported and re-imported without changing object IDs, relationships, or properties—making it suitable for caching and synchronization workflows.