BlockSuite API Documentation / @blocksuite/blocks / ConnectorPathGenerator
Class: ConnectorPathGenerator
Extends
Constructors
new ConnectorPathGenerator()
new ConnectorPathGenerator(
options
):ConnectorPathGenerator
Parameters
options
getElementById
(id
) => null
| GfxModel
Returns
Overrides
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:67
Properties
_aStarRunner
protected
_aStarRunner:null
|AStarRunner
Inherited from
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:52
Methods
_prepareOrthogonalConnectorInfo()
protected
_prepareOrthogonalConnectorInfo(connectorInfo
): [IVec
,IVec
,IVec
,IVec
,null
|Bound
,null
|Bound
,null
|Bound
,null
|Bound
]
Parameters
connectorInfo
OrthogonalConnectorInput
Returns
[IVec
, IVec
, IVec
, IVec
, null
| Bound
, null
| Bound
, null
| Bound
, null
| Bound
]
Inherited from
PathGenerator
._prepareOrthogonalConnectorInfo
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:53
generateOrthogonalConnectorPath()
generateOrthogonalConnectorPath(
input
):IVec
[]
Parameters
input
OrthogonalConnectorInput
Returns
IVec
[]
Inherited from
PathGenerator
.generateOrthogonalConnectorPath
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:63
hasRelatedElement()
hasRelatedElement(
connecter
):boolean
Parameters
connecter
ConnectorElementModel
| LocalConnectorElementModel
Returns
boolean
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:77
updatePath()
static
updatePath(connector
,path
,elementGetter
?):void
Parameters
connector
ConnectorElementModel
| LocalConnectorElementModel
path
null
| PointLocation
[]
elementGetter?
(id
) => null
| GfxModel
Returns
void
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:70