Decorates other node styles with a smooth drop shadow.
Remarks
This implementation uses an SVG filter effect. This may cause performance issues for larger nodes or high zoom factors. In this case it might be more appropriate to implement a drop shadow implementation using canvas drawing and displaying the canvas content using an
image
element with canvas.toDataURL
.Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.ShadowNodeStyleDecorator
Constructors
Creates a new instance wrapping the provided style.
Remarks
The provided instance is used by reference, so subsequent changes to the style will affect the appearance of this style.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- wrapped - INodeStyle
- The style to wrap.
Properties
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
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
See Also
Implements
Gets or sets the wrapped node style instance by reference.
Methods
Create a clone of this object.