Trevixal API
Preparing search index...
@trevixal/core
NodeSelection
Class NodeSelection
A single non-text node selected as a whole (image, hr, …).
Hierarchy (
View Summary
)
Selection
NodeSelection
Index
Constructors
constructor
Properties
path
Accessors
empty
from
index
parent
Path
to
Methods
eq
map
to
JSON
Constructors
constructor
new
NodeSelection
(
path
:
Path
)
:
NodeSelection
Parameters
path
:
Path
Returns
NodeSelection
Properties
Readonly
path
path
:
Path
Accessors
empty
get
empty
()
:
boolean
Returns
boolean
from
get
from
()
:
Position
Returns
Position
index
get
index
()
:
number
Returns
number
parent
Path
get
parentPath
()
:
Path
Returns
Path
to
get
to
()
:
Position
Returns
Position
Methods
eq
eq
(
other
:
Selection
)
:
boolean
Parameters
other
:
Selection
Returns
boolean
map
map
(
doc
:
EditorNode
,
mapper
:
PositionMapper
)
:
Selection
Parameters
doc
:
EditorNode
mapper
:
PositionMapper
Returns
Selection
to
JSON
toJSON
()
:
SelectionJSON
Returns
SelectionJSON
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
path
Accessors
empty
from
index
parent
Path
to
Methods
eq
map
to
JSON
Trevixal API
Loading...
A single non-text node selected as a whole (image, hr, …).