Implementation of the INodeStyle which creates rectangular nodes with rounded corners and a highlighted ('shiny plate') interior.
Remarks
By default, this style renders a drop shadow by itself.
This style uses the ShinyPlateNodeStyleRenderer to visualize a node.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.ShinyPlateNodeStyle
See Also
Deprecation warning
Use ShapeNodeStyle, RectangleNodeStyle, ArrowNodeStyle, or implement this as a custom style instead. If you really need to use this style, please contact us.Constructors
Creates a new instance using the provided renderer.
Parameters
A map of options to pass to the method.
- renderer - ShinyPlateNodeStyleRenderer
- The renderer to use with this instance. If none is provided, a new ShinyPlateNodeStyleRenderer instance is used.
- fill - Fill
The background brush for this style. This option sets the fill property on the created object.
- stroke - Stroke
- radius - number
The corner radius of the rounded rectangle This option sets the radius property on the created object.
- drawShadow - boolean
A value indicating whether to draw a drop shadow. This option sets the drawShadow property on the created object.
- insets - Insets
The instance to use that provides the insets for this style. This option sets the insets property on the created object.
Properties
Gets or sets the instance to use that provides the insets for this style.
Remarks
The ShinyPlateNodeStyleRenderer will use these insets and return them via an INodeInsetsProvider if such an instance is queried through the context lookup.
The default insets are set to (5,5,5,5).
See Also
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given node and this style instance.
Remarks
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
See Also
Implements
Methods
Create a clone of this object.