Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-surface / ConnectorPathGenerator

Class: ConnectorPathGenerator

Extends

Constructors

new ConnectorPathGenerator()

new ConnectorPathGenerator(options): ConnectorPathGenerator

Parameters

options
getElementById

(id) => null | GfxModel

Returns

ConnectorPathGenerator

Overrides

PathGenerator.constructor

Defined in

packages/affine/block-surface/src/managers/connector-manager.ts:1151

Properties

_aStarRunner

protected _aStarRunner: null | AStarRunner = null

Inherited from

PathGenerator._aStarRunner

Defined in

packages/affine/block-surface/src/managers/connector-manager.ts:1039

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/src/managers/connector-manager.ts:1041


generateOrthogonalConnectorPath()

generateOrthogonalConnectorPath(input): IVec[]

Parameters

input

OrthogonalConnectorInput

Returns

IVec[]

Inherited from

PathGenerator.generateOrthogonalConnectorPath

Defined in

packages/affine/block-surface/src/managers/connector-manager.ts:1088


hasRelatedElement()

hasRelatedElement(connecter): boolean

Parameters

connecter

ConnectorElementModel | LocalConnectorElementModel

Returns

boolean

Defined in

packages/affine/block-surface/src/managers/connector-manager.ts:1406


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/src/managers/connector-manager.ts:1159