How can I help you?
VisioConnector
16 Mar 20262 minutes to read
Represents a Visio connector (line, arrow, or connector shape).
Contains all properties needed to define connector geometry, styling, and metadata.
Properties
IsConnector boolean
Flag indicating this is a connector shape
QuickStyleLineColor number
QuickStyle line color index
QuickStyleLineMatrix number
QuickStyle line matrix index
addInfo ShapeAddInfo
Retrieved data from import
allowDrop boolean
Flag allowing shapes to be dropped on this connector
annotation VisioConnectorAnnotation
Text annotation/label for the connector
beginX number
Starting X coordinate in pixels
beginY number
Starting Y coordinate in pixels
bridgeSpace number
Distance for line bridges to jump over connectors
conLineRouteExt string
Connector line routing extension setting
constraints number
Constraint flags for connector behavior
cornerRadius number
Corner radius for the connector
endX number
Ending X coordinate in pixels
endY number
Ending Y coordinate in pixels
id string
Unique identifier for the connector
layerMember number
Layer membership index
lineRouting boolean
Flag enabling automatic connector line routing
master VisioMaster
Reference to the master shape
masterId string
ID of the master shape this connector is based on
ports VisioPort[]
Connection points/ports on the connector
segments DiagramConnectorSegmentModel[]
Segments defining the connector path
shape ConnectorShapePayload
Reference to the underlying Visio shape object
shapeRouteStyle string
Shape-level routing style (0-22) - Controls routing algorithm
sourceDecorator VisioDecoratorModel
Decorator (arrow head) at the source end
sourceId string
ID of the source shape
sourcePortId string
ID of the source port on the source shape
style VisioStyleModel
Connector styling properties
targetDecorator VisioDecoratorModel
Decorator (arrow head) at the target end
targetId string
ID of the target shape
targetPortId string
ID of the target port on the target shape
tooltip string
Tooltip text for the connector
type ConnectorType
Type of connector routing (Straight, Orthogonal, Bezier)
visible boolean
Flag indicating if connector is visible
Methods
fromJs
Creates VisioConnector instances from Visio shape data.
Parses connector cells and extracts all relevant properties.
Returns VisioConnector[]