Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AStarRunner

Class: AStarRunner

Constructors

new AStarRunner()

new AStarRunner(points, _sp, _ep, _originalSp, _originalEp, blocks?, expandBlocks?): AStarRunner

Parameters

points: IVec3[]

_sp: IVec3

_ep: IVec3

_originalSp: IVec3

_originalEp: IVec3

blocks?: Bound[]

expandBlocks?: Bound[]

Returns

AStarRunner

Defined in

packages/affine/block-surface/dist/utils/a-star.d.ts:16

Accessors

path

get path(): IVec3[]

Returns

IVec3[]

Defined in

packages/affine/block-surface/dist/utils/a-star.d.ts:15

Methods

reset()

reset(): void

Returns

void

Defined in

packages/affine/block-surface/dist/utils/a-star.d.ts:19


run()

run(): void

Returns

void

Defined in

packages/affine/block-surface/dist/utils/a-star.d.ts:20


step()

step(): void

Returns

void

Defined in

packages/affine/block-surface/dist/utils/a-star.d.ts:21