FConnectorShape
| packages | @univerjs-pro/sheets-shape-ui |
|---|
The facade class for connector (line) shape builder and connector relation operations.
APIs
setShapeType
Sets the connector shape type.
Signature
setShapeType(shapeType: ShapeTypeEnum): thisParameters
shapeType(ShapeTypeEnum) - Connector shape type. Must be a connector-type enum value.
Returns
- (
this) - The builder itself for chaining.
setStartArrowType
Sets start arrow type of the connector line.
Signature
setStartArrowType(arrowType: ShapeArrowTypeEnum): thisParameters
arrowType(ShapeArrowTypeEnum) - Start arrow type, available fromuniverAPI.Enum.ShapeArrowTypeEnum.
Returns
- (
this) - The builder itself for chaining.
setEndArrowType
Sets end arrow type of the connector line.
Signature
setEndArrowType(arrowType: ShapeArrowTypeEnum): thisParameters
arrowType(ShapeArrowTypeEnum) - End arrow type, available fromuniverAPI.Enum.ShapeArrowTypeEnum.
Returns
- (
this) - The builder itself for chaining.
setStartArrowSize
Sets start arrow size of the connector line.
Signature
setStartArrowSize(arrowSize: ShapeArrowSizeEnum): thisParameters
arrowSize(ShapeArrowSizeEnum) - Start arrow size.
Returns
- (
this) - The builder itself for chaining.
setEndArrowSize
Sets end arrow size of the connector line.
Signature
setEndArrowSize(arrowSize: ShapeArrowSizeEnum): thisParameters
arrowSize(ShapeArrowSizeEnum) - End arrow size.
Returns
- (
this) - The builder itself for chaining.
build
Builds connector shape payload for insert/update.
Signature
build(): IShapeBuilderInfoReturns
- (
IShapeBuilderInfo) - Shape builder info forinsertShape/updateShape.
getEndConnectInfo
Returns end connection info for this connector.
Signature
getEndConnectInfo(): IShapeRelationItem | nullReturns
- (
IShapeRelationItem | null) - End-side relation info, ornullif not connected.
getStartConnectInfo
Returns start connection info for this connector.
Signature
getStartConnectInfo(): IShapeRelationItem | nullReturns
- (
IShapeRelationItem | null) - Start-side relation info, ornullif not connected.
