@witchcraft/layout
Github
Issues
npm
Preparing search index...
drag/DragDirectionStore
DragDirectionStore
Class DragDirectionStore
Index
Constructors
constructor
Properties
drag
Direction
greater
hooks
last
Point
lesser
Methods
get
Drag
Direction
reset
update
Constructors
constructor
new
DragDirectionStore
(
hooks
:
{
onUpdate
:
(
directions
:
Record
<
Orientation
,
Direction
|
undefined
>
,
)
=>
void
;
}
,
)
:
DragDirectionStore
Parameters
hooks
:
{
onUpdate
:
(
directions
:
Record
<
Orientation
,
Direction
|
undefined
>
)
=>
void
}
Returns
DragDirectionStore
Properties
drag
Direction
dragDirection
:
Record
<
Orientation
,
Direction
|
undefined
>
= ...
greater
greater
:
{
x
:
"up"
|
"down"
|
"left"
|
"right"
;
y
:
"up"
|
"down"
|
"left"
|
"right"
;
}
= ...
hooks
hooks
:
{
onUpdate
:
(
directions
:
Record
<
Orientation
,
Direction
|
undefined
>
,
)
=>
void
;
}
last
Point
lastPoint
:
undefined
|
{
x
:
number
;
y
:
number
}
lesser
lesser
:
{
x
:
"up"
|
"down"
|
"left"
|
"right"
;
y
:
"up"
|
"down"
|
"left"
|
"right"
;
}
= ...
Methods
get
Drag
Direction
getDragDirection
(
coord
:
"x"
|
"y"
,
point
:
{
x
:
number
;
y
:
number
}
,
)
:
false
|
"up"
|
"down"
|
"left"
|
"right"
Parameters
coord
:
"x"
|
"y"
point
:
{
x
:
number
;
y
:
number
}
Returns
false
|
"up"
|
"down"
|
"left"
|
"right"
reset
reset
()
:
void
Returns
void
update
update
(
point
:
{
x
:
number
;
y
:
number
}
)
:
boolean
Parameters
point
:
{
x
:
number
;
y
:
number
}
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
drag
Direction
greater
hooks
last
Point
lesser
Methods
get
Drag
Direction
reset
update
Github
Issues
npm
@witchcraft/layout
Loading...