documentationfor yFiles for HTML 2.6

Usages of SvgVisual

Properties

contentin PatternFillGets or sets the content.
childrenin SvgVisualGroupGets the list of children with read and write access.

Method Return Values

createVisual (IRenderContext, IHandle)in HandleInputModeCreates the Visual for the given handle, if renderMode is set to SVG.
createButton (IRenderContext, boolean, Size)in CollapsibleNodeStyleDecoratorRendererCreates the button visual.
updateButton (IRenderContext, boolean, Size, Visual)in CollapsibleNodeStyleDecoratorRendererUpdates the button visual.
createTemplate (IRenderContext, ILabel)in TemplateLabelStyleBaseFactory method that is called by the TemplateLabelStyleRenderer to create the visual that will be used for the display of the label.
createTemplate (IRenderContext, INode)in TemplateNodeStyleBaseFactory method that is called by the TemplateNodeStyleRenderer to create the visual that will be used for the display of the node.
createTemplate (IRenderContext, IPort)in TemplatePortStyleBaseFactory method that is called by the TemplatePortStyleRenderer to create the visual that will be used for the display of the port.
createTemplate (IRenderContext, IStripe)in TemplateStripeStyleBaseFactory method that is called by the TemplateStripeStyleRenderer to create the visual that will be used for the display of the stripe.
createVisual (IRenderContext, Rect, Object)in IVisualTemplateThis method is called by the framework to create a SvgVisual with the given bounds.
updateVisual (IRenderContext, SvgVisual, Rect, Object)in IVisualTemplateThis method updates or replaces a previously created SvgVisual to adjust to the changed bounds.

Method Parameters

addToggleExpansionStateCommand (SvgVisual, INode, IRenderContext)in CollapsibleNodeStyleDecoratorRendererAdds the toggle expansion state command to the given button visual.
create ()in IVisualTemplateCreates an implementation of the interface IVisualTemplate from the given definition.
updateVisual (IRenderContext, SvgVisual, Rect, Object)in IVisualTemplateThis method updates or replaces a previously created SvgVisual to adjust to the changed bounds.
add (SvgVisual)in SvgVisualGroupAdds another SvgVisual to the children collection of this instance.
remove (SvgVisual)in SvgVisualGroupRemoves a previously added SvgVisual from the children collection of this instance.

Extending Types

SvgVisualGroupA container that can hold a number of SvgVisuals.