Appearance
ModelLabEditor
component · /editorProps
| Prop | Type | Description |
|---|---|---|
initialConfig | DeepPartial<ViewerConfig> | Initial authoring state |
className | string | Root class name |
style | CSSProperties | Root inline style |
dracoDecoderPath | string | Decoder directory |
onConfigChange | (config) => void | Full config change callback |
onSequenceChange | (sequence) => void | Timeline change callback |
onModelLoaded | (info) => void | Loaded asset information |
Ref methods
| Method | Description |
|---|---|
getConfig() | Return current complete configuration |
getPreset() | Build the complete versioned export payload |
setConfig(partial) | Merge new values into current configuration |
loadFiles(files) | Load browser File objects |
openFiles() | Open the file picker |
openFolder() | Open the directory picker |
fitCamera() | Fit the active asset |
reset() | Restore initial configuration |
captureScreenshot() | Return PNG data URL |
setPivot(point, options) | Use exact local pivot |
centerPivot(options) | Use calculated bounds center; returns success |
resetPivot(options) | Restore imported origin |
Export helpers
The editor entry point also exports createExportPayload() and createSequencePayload() for custom persistence workflows.