Syncfusion AI Assistant

How can I help you?

VisioDecoratorModel

16 Mar 20261 minute to read

Represents a decorator (arrow head or end marker) for a connector.
Defines shape, size, and styling of source or target decorators.

Properties

IsConnector boolean

Flag indicating this is a connector decorator

QuickStyleLineColor number

QuickStyle line color index

QuickStyleLineMatrix number

QuickStyle line matrix index

arrowDimension string

decorator dimensions of a connector

height number

Height of the decorator in pixels

isSource boolean

Flag indicating this is a connector source decorator

isSourceShapeChanged boolean

Flag indicating if connector source decorator shape is changed

isTargetShapeChanged boolean

Flag indicating if connector target decorator shape is changed

shape DecoratorShapes

Shape type of the decorator (Arrow, Diamond, etc.)

style VisioDecoratorStyleModel

Styling properties of the decorator

width number

Width of the decorator in pixels

Methods

fromJs

Creates a VisioDecoratorModel instance from a Visio connector shape.
Extracts arrow/decorator properties for either source or target end.

Parameter Type Description
shape VisioShapeNode The Visio connector shape object
isSource boolean True for source end decorator, false for target end
context ParsingContext Parsing context for warnings and master data

Returns VisioDecoratorModel