DiagramShapeDefaultsSettingsBuilder
Defines the fluent API for configuring the DiagramShapeDefaultsSettings settings.
Methods
ConnectorDefaults(System.Action)
Defines the default options for the shape connectors.
Parameters
configurator - System.Action<DiagramShapeConnectorBuilder>
The action that configures the default options.
Connectors(System.Action)
Defines the connectors the shape owns.You can easily define your own custom connectors or mix-match with the above defined custom connectors.Example - custom shape with custom connectorsThe following defines a custom shape with connectors adapted to the shape's outline. Note in particular the various helpful methods (right(), left(), top()) to define positions relative to the shape.
Parameters
configurator - System.Action<DiagramShapeConnectorFactory>
The action that configures the connectors.
Content(System.Action)
Defines the shapes content settings.
Parameters
configurator - System.Action<DiagramShapeDefaultsContentSettingsBuilder>
The action that configures the content.
Editable(System.Boolean)
Defines the shape editable options.
Parameters
enabled - System.Boolean
Enables or disables the editable option.
Editable(System.Action)
Defines the shape editable options.
Parameters
configurator - System.Action<DiagramShapeDefaultsEditableSettingsBuilder>
The action that configures the editable.
Fill(System.Action)
Defines the fill options of the shape.
Parameters
configurator - System.Action<DiagramShapeDefaultsFillSettingsBuilder>
The action that configures the fill.
Height(System.Double)
Defines the height of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the height.
Hover(System.Action)
Defines the hover configuration.
Parameters
configurator - System.Action<DiagramShapeDefaultsHoverSettingsBuilder>
The action that configures the hover.
MinHeight(System.Double)
Defines the minimum height the shape should have, i.e. it cannot be resized to a value smaller than the given one.
Parameters
value - System.Double
The value that configures the minheight.
MinWidth(System.Double)
Defines the minimum width the shape should have, i.e. it cannot be resized to a value smaller than the given one.
Parameters
value - System.Double
The value that configures the minwidth.
Path(System.String)
The path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (http://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").
Parameters
value - System.String
The value that configures the path.
Rotation(System.Action)
Defines the rotation of the shape.
Parameters
configurator - System.Action<DiagramShapeDefaultsRotationSettingsBuilder>
The action that configures the rotation.
Selectable(System.Boolean)
Specifies if the shape can be selected.
Parameters
value - System.Boolean
The value that configures the selectable.
Source(System.String)
The source of the shape image. Applicable when the type is set to "image".
Parameters
value - System.String
The value that configures the source.
Stroke(System.Action)
Defines the stroke configuration.
Parameters
configurator - System.Action<DiagramShapeDefaultsStrokeSettingsBuilder>
The action that configures the stroke.
Type(System.String)
Specifies the type of the Shape using any of the built-in shape type.
Parameters
value - System.String
The value that configures the type.
Width(System.Double)
Defines the width of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the width.
X(System.Double)
Defines the x-coordinate of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the x.
Y(System.Double)
Defines the y-coordinate of the shape when added to the diagram.
Parameters
value - System.Double
The value that configures the y.
Visual(System.Func)
Defines the inline visual template
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Visual(System.String)
Defines the name of the JavaScript function that will create the visual element.
Parameters
visualHandler - System.String
The name of the JavaScript function that will create the visual element.