API > @blocksuite/block-std > PathFinder
Class: PathFinder ​
Constructors ​
constructor ​
private
new PathFinder():PathFinder
Returns ​
Defined In ​
block-std/src/utils/path-finder.ts:2
Methods ​
equals ​
static
equals(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 ​
static
id(path
):string
Parameters ​
Parameter | Type |
---|---|
path | readonly string [] |
Returns ​
string
Defined In ​
block-std/src/utils/path-finder.ts:6
includes ​
static
includes(path1
,path2
):boolean
Parameters ​
Parameter | Type |
---|---|
path1 | string [] |
path2 | string [] |
Returns ​
boolean
Defined In ​
block-std/src/utils/path-finder.ts:27
keyToPath ​
static
keyToPath(key
):string
[]
Parameters ​
Parameter | Type |
---|---|
key | string |
Returns ​
string
[]
Defined In ​
block-std/src/utils/path-finder.ts:18
parent ​
static
parent(path
):string
[]
Parameters ​
Parameter | Type |
---|---|
path | readonly string [] |
Returns ​
string
[]
Defined In ​
block-std/src/utils/path-finder.ts:10
pathToKey ​
static
pathToKey(path
):string
Parameters ​
Parameter | Type |
---|---|
path | readonly string [] |
Returns ​
string
Defined In ​
block-std/src/utils/path-finder.ts:14