API > @blocksuite/block-std > PathFinder
Class: PathFinder ​
Constructors ​
constructor ​
privatenew PathFinder():PathFinder
Returns ​
Defined In ​
block-std/src/utils/path-finder.ts:2
Methods ​
equals ​
staticequals(path1,path2):boolean
Parameters ​
| Parameter | Type |
|---|---|
path1 | readonly string[] |
path2 | readonly string[] |
Returns ​
boolean
Defined In ​
block-std/src/utils/path-finder.ts:22
id ​
staticid(path):string
Parameters ​
| Parameter | Type |
|---|---|
path | readonly string[] |
Returns ​
string
Defined In ​
block-std/src/utils/path-finder.ts:6
includes ​
staticincludes(path1,path2):boolean
Parameters ​
| Parameter | Type |
|---|---|
path1 | string[] |
path2 | string[] |
Returns ​
boolean
Defined In ​
block-std/src/utils/path-finder.ts:27
keyToPath ​
statickeyToPath(key):string[]
Parameters ​
| Parameter | Type |
|---|---|
key | string |
Returns ​
string[]
Defined In ​
block-std/src/utils/path-finder.ts:18
parent ​
staticparent(path):string[]
Parameters ​
| Parameter | Type |
|---|---|
path | readonly string[] |
Returns ​
string[]
Defined In ​
block-std/src/utils/path-finder.ts:10
pathToKey ​
staticpathToKey(path):string
Parameters ​
| Parameter | Type |
|---|---|
path | readonly string[] |
Returns ​
string
Defined In ​
block-std/src/utils/path-finder.ts:14