Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
createShape
Function createShape
createShape
(
input
:
ShapeInput
&
{
shape
?:
"rectangle"
}
,
)
:
ShapeElement
&
{
shape
:
"rectangle"
}
Parameters
input
:
ShapeInput
&
{
shape
?:
"rectangle"
}
Returns
ShapeElement
&
{
shape
:
"rectangle"
}
createShape
<
T
extends
ShapeKind
>
(
input
:
ShapeInput
&
{
shape
:
T
}
,
)
:
ShapeElement
&
{
shape
:
T
}
Type Parameters
T
extends
ShapeKind
Parameters
input
:
ShapeInput
&
{
shape
:
T
}
Returns
ShapeElement
&
{
shape
:
T
}
createShape
(
input
:
ShapeInput
)
:
ShapeElement
Parameters
input
:
ShapeInput
Returns
ShapeElement
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Field Notes home
Docs
Playground
Field Notes
Loading...