BlockSuite API Documentation / @blocksuite/block-std / PathFinder
Class: PathFinder
Constructors
new PathFinder(undefined)
privatenew PathFinder():PathFinder
Returns
Source
block-std/src/utils/path-finder.ts:2
Methods
equals()
staticequals(path1,path2):boolean
Parameters
• path1: readonly string[]
• path2: readonly string[]
Returns
boolean
Source
block-std/src/utils/path-finder.ts:22
id()
staticid(path):string
Parameters
• path: readonly string[]
Returns
string
Source
block-std/src/utils/path-finder.ts:6
includes()
staticincludes(path1,path2):boolean
Parameters
• path1: string[]
• path2: string[]
Returns
boolean
Source
block-std/src/utils/path-finder.ts:27
keyToPath()
statickeyToPath(key):string[]
Parameters
• key: string
Returns
string[]
Source
block-std/src/utils/path-finder.ts:18
parent()
staticparent(path):string[]
Parameters
• path: readonly string[]
Returns
string[]
Source
block-std/src/utils/path-finder.ts:10
pathToKey()
staticpathToKey(path):string
Parameters
• path: readonly string[]
Returns
string
Source
block-std/src/utils/path-finder.ts:14
Generated using TypeDoc and typedoc-plugin-markdown.