DiagramComponent
Renders an SVG diagram.
Implements
AfterViewInitOnDestroy
Methods
ngAfterViewInit()
ngAfterViewInit():
void
A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.
Returns
void
Implementation of
AfterViewInit.ngAfterViewInit
ngOnDestroy()
ngOnDestroy():
void
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Returns
void
Implementation of
OnDestroy.ngOnDestroy
save()
save(
options?):DiagramSaveData
Saves the diagram data and state to an object.
Parameters
options?
DiagramSaveOptions
Options for save
Returns
DiagramSaveData
saveToUrl()
saveToUrl(
options):void
Saves the diagram data and state via POST to a nominated URL. Internally this calls save and then posts the result to the url you specify.
Parameters
options
SaveOptions
Options for save.
Returns
void
Properties
data
data:
InputSignal<Record<string,any>>
Optional data to load after the view has been initialised. This input is a signal, and will reload the dataset if changed.
Input
diagram
diagram:
Diagram
The underlying Diagram.
Class Member
modelOptions?
optionalmodelOptions:ModelOptions
Options for the underlying model
Input
options?
optionaloptions:DiagramOptions
Options for the Diagram
Input
url
url:
InputSignal<string>
Optional url from which to load data after the view has been initialised. This input is a signal, and will reload the dataset if changed.