BlockSuite API Documentation / @blocksuite/blocks / ConnectorPathGenerator
Class: ConnectorPathGenerator
Constructors
new ConnectorPathGenerator()
new ConnectorPathGenerator(
options
):ConnectorPathGenerator
Parameters
• options
• options.getElementById
Returns
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:48
Properties
_aStarRunner
protected
_aStarRunner:null
|AStarRunner
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:47
Methods
generateOrthogonalConnectorPath()
generateOrthogonalConnectorPath(
input
):IVec
[]
Parameters
• input: OrthogonalConnectorInput
Returns
IVec
[]
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:59
hasRelatedElement()
hasRelatedElement(
connecter
):boolean
Parameters
• connecter: ConnectorElementModel
| LocalConnectorElementModel
Returns
boolean
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:60
updatePath()
static
updatePath(connector
,path
,elementGetter
?):void
Parameters
• connector: ConnectorElementModel
| LocalConnectorElementModel
• path: null
| PointLocation
[]
• elementGetter?
Returns
void
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:51