Loading and Saving
Canvas data is stored through FlowDocument
Canvas Data Format
Canvas document data uses a tree structure that supports nesting
Document Data Basic Structure:
- nodes
arrayNode list, supports nesting
Node Data Basic Structure:
- id:
stringNode unique identifier, must be unique - meta:
objectNode UI configuration information, such as free layoutpositioninformation is stored here - type:
string | numberNode type, corresponds to thetypeinnodeRegistries - data:
objectNode form data - blocks:
arrayNode branches, usingblockis closer toGramming
initial-data.tsx
Loading
- Loading through initialData
- Dynamic loading through ref
- Dynamically reload data