Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ConnectorPathGenerator

Class: ConnectorPathGenerator

Constructors

new ConnectorPathGenerator()

new ConnectorPathGenerator(options): ConnectorPathGenerator

Parameters

options

options.getElementById

Returns

ConnectorPathGenerator

Defined in

packages/affine/block-surface/dist/managers/connector-manager.d.ts:49

Properties

_aStarRunner

protected _aStarRunner: null | AStarRunner

Defined in

packages/affine/block-surface/dist/managers/connector-manager.d.ts:48

Methods

generateOrthogonalConnectorPath()

generateOrthogonalConnectorPath(input): IVec[]

Parameters

input: OrthogonalConnectorInput

Returns

IVec[]

Defined in

packages/affine/block-surface/dist/managers/connector-manager.d.ts:60


hasRelatedElement()

hasRelatedElement(connecter): boolean

Parameters

connecter: ConnectorElementModel | LocalConnectorElementModel

Returns

boolean

Defined in

packages/affine/block-surface/dist/managers/connector-manager.d.ts:61


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:52