@witchcraft/layout
Github
Issues
npm
Preparing search index...
helpers/toCoord
toCoord
Function toCoord
toCoord
<
T
extends
HasOpposite
>
(
dir
:
T
,
)
:
T
extends
"horizontal"
|
"left"
|
"right"
?
"x"
:
"y"
Converts the given side/dir into a coordinate key (x/y)
Type Parameters
T
extends
HasOpposite
Parameters
dir
:
T
Returns
T
extends
"horizontal"
|
"left"
|
"right"
?
"x"
:
"y"
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/layout
Loading...
Converts the given side/dir into a coordinate key (x/y)