Skip to content

API > @blocksuite/block-std > PathFinder

Class: PathFinder ​

Constructors ​

constructor ​

private new PathFinder(): PathFinder

Returns ​

PathFinder

Defined In ​

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

Methods ​

equals ​

static equals(path1, path2): boolean

Parameters ​

ParameterType
path1readonly string[]
path2readonly string[]

Returns ​

boolean

Defined In ​

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


id ​

static id(path): string

Parameters ​

ParameterType
pathreadonly string[]

Returns ​

string

Defined In ​

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


includes ​

static includes(path1, path2): boolean

Parameters ​

ParameterType
path1string[]
path2string[]

Returns ​

boolean

Defined In ​

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


keyToPath ​

static keyToPath(key): string[]

Parameters ​

ParameterType
keystring

Returns ​

string[]

Defined In ​

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


parent ​

static parent(path): string[]

Parameters ​

ParameterType
pathreadonly string[]

Returns ​

string[]

Defined In ​

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


pathToKey ​

static pathToKey(path): string

Parameters ​

ParameterType
pathreadonly string[]

Returns ​

string

Defined In ​

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