Registers a diagram item class.
Namespace: MindFusion.Diagramming
File: Diagram.js
JavaScript Copy Code |
---|
function registerClass (itemClass, className, [classId, [classVersion, [baseType]]]) |
Object. An object identifying the item class.
String. A class identifier to use when saving and loading items of the specified type to/from JSON.
String. A class identifier to use when saving and loading items of the specified type to/from XML.
Number. A revision number of the item's class serialization format.
Object. The base class of the item class.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |