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:62
Properties
_aStarRunner
protected
_aStarRunner:null
|AStarRunner
Inherited from
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:47
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:48
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:58
hasRelatedElement()
hasRelatedElement(
connecter
):boolean
Parameters
connecter
ConnectorElementModel
| LocalConnectorElementModel
Returns
boolean
Defined in
packages/affine/block-surface/dist/managers/connector-manager.d.ts:72
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:65