Interface: SerializableLinkCell<T>
Defined in: editor/serializedDiagram.ts:123
Static interface (contract) for serializable graph link classes derived from Link.
Example:
class MyLink extends Reactodia.Link {
...
static readonly fromJSONType = 'MyLink';
static fromJSON(state: SerializedMyLink): MyLink | undefined {
...
}
toJSON(): SerializedMyLink {
...
}
}
interface SerializedMyLink extends Reactodia.SerializedLink {
'@type': 'MyLink';
...
}
MyLink satisfies SerializableLinkCell<MyLink>;
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
Constructors
Constructor
new SerializableLinkCell(...
args):T
Defined in: editor/serializedDiagram.ts:124
Parameters
| Parameter | Type |
|---|---|
... |
|
Returns
T
Properties
| Property | Modifier | Type |
|---|---|---|
|
|
Methods
fromJSON()
fromJSON(
state,options):undefined|T
Defined in: editor/serializedDiagram.ts:126
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
undefined | T