Skip to content

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

Class: PathFinder ​

Contents ​

Constructors ​

new PathFinder(undefined) ​

private new PathFinder(): PathFinder

Returns ​

PathFinder

Source ​

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

Methods ​

equals() ​

static equals(path1, path2): boolean

Parameters ​

• path1: readonly string[]

• path2: readonly string[]

Returns ​

boolean

Source ​

block-std/src/utils/path-finder.ts:22


id() ​

static id(path): string

Parameters ​

• path: readonly string[]

Returns ​

string

Source ​

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


includes() ​

static includes(path1, path2): boolean

Parameters ​

• path1: string[]

• path2: string[]

Returns ​

boolean

Source ​

block-std/src/utils/path-finder.ts:27


keyToPath() ​

static keyToPath(key): string[]

Parameters ​

• key: string

Returns ​

string[]

Source ​

block-std/src/utils/path-finder.ts:18


parent() ​

static parent(path): string[]

Parameters ​

• path: readonly string[]

Returns ​

string[]

Source ​

block-std/src/utils/path-finder.ts:10


pathToKey() ​

static pathToKey(path): string

Parameters ​

• path: readonly string[]

Returns ​

string

Source ​

block-std/src/utils/path-finder.ts:14


Generated using typedoc-plugin-markdown and TypeDoc