Skip to content

BlockSuite API Documentation / @blocksuite/block-std / PathFinder

Class: PathFinder

Methods

equals()

static equals(path1, path2): boolean

Parameters

path1: readonly string[]

path2: readonly string[]

Returns

boolean

Defined in

packages/framework/block-std/src/utils/path-finder.ts:2


id()

static id(path): string

Parameters

path: readonly string[]

Returns

string

Defined in

packages/framework/block-std/src/utils/path-finder.ts:6


includes()

static includes(path1, path2): boolean

Parameters

path1: string[]

path2: string[]

Returns

boolean

Defined in

packages/framework/block-std/src/utils/path-finder.ts:11


keyToPath()

static keyToPath(key): string[]

Parameters

key: string

Returns

string[]

Defined in

packages/framework/block-std/src/utils/path-finder.ts:15


parent()

static parent(path): string[]

Parameters

path: readonly string[]

Returns

string[]

Defined in

packages/framework/block-std/src/utils/path-finder.ts:19


pathToKey()

static pathToKey(path): string

Parameters

path: readonly string[]

Returns

string

Defined in

packages/framework/block-std/src/utils/path-finder.ts:23