Skip to content

Support to import and export diagram layout with custom JSON-serializable types derived from Element or Link #81

Merged
AlexeyMz merged 1 commit into
masterfrom
custom-cell-type-serialization
Oct 26, 2025
Merged

Support to import and export diagram layout with custom JSON-serializable types derived from Element or Link #81
AlexeyMz merged 1 commit into
masterfrom
custom-cell-type-serialization

Conversation

@AlexeyMz
Copy link
Copy Markdown
Member

  • Introduce a custom protocols for Element or Link derived types to be serializable: SerializableElementCell and SerializableLinkCell;
  • When implemented, the corresponding cell types can be exported and later imported with the diagram;
  • Importing diagram with custom cell types requires to pass known/supported cell classes via elementCellTypes and linkCellTypes.

@AlexeyMz AlexeyMz force-pushed the custom-cell-type-serialization branch 2 times, most recently from 3923558 to 2ecff9b Compare October 26, 2025 10:55
…able types derived from `Element` or `Link` :

* Introduce an optional contract for `Element` or `Link` derived cell types to be serializable: `SerializableElementCell` and `SerializableLinkCell`;
* When implemented, the corresponding cell types can be exported and later imported with the diagram;
* `DataDiagramModel.importLayout()` will accept known cell types via `elementCellTypes` and `linkCellTypes` to import.
@AlexeyMz AlexeyMz force-pushed the custom-cell-type-serialization branch from 2ecff9b to 60b6fbe Compare October 26, 2025 23:52
@AlexeyMz AlexeyMz merged commit 90f8be4 into master Oct 26, 2025
4 checks passed
@AlexeyMz AlexeyMz deleted the custom-cell-type-serialization branch October 26, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant