An abstract base class with provider methods that always return empty promises.
Implements
Inheritance Hierarchy
Remarks
Use this for convenient implementation of the IMasterProvider interface.
Members
No filters for this type
Constructors
Initializes a new instance of the MasterProviderBase class.
Initializes a new instance of the MasterProviderBase class.
Methods
Note that a master or style sheet is only valid for the same export run it was created.
Implements
IMasterProvider.clearedge
(edge: IEdge, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.
edge
(edge: IEdge, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.
label
(label: ILabel, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.
label
(label: ILabel, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.
Parameters
- label: ILabel
- context: MasterProviderContext
Return Value
Implements
IMasterProvider.labelOverridden in
CachingMasterProvider.labelnode
(node: INode, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullWill be called once for each node in the graph and shall return a VSDX Master and VSDX
StyleSheets or an empty Promise.
node
(node: INode, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullWill be called once for each node in the graph and shall return a VSDX Master and VSDX StyleSheets or an empty Promise.
When this method returns a value the propagation will be stopped and the returned master and styles are used for the shape representing this node. Otherwise, this node will be propagated through other IMasterProviders in the chain after this one.
Parameters
- node: INode
The node to create the master and styles for.
- context: MasterProviderContext
Return Value
- Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | null
- A promise with an object containing a master and style sheets to stop the propagation or an empty promise.
Implements
IMasterProvider.nodeport
(port: IPort, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.
port
(port: IPort, context: MasterProviderContext): Promise<[ ShapeStyleConfiguration, null]> | ShapeStyleConfiguration | nullSee node.