Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/vue
FieldNotesCanvas
Variable FieldNotesCanvas
Const
FieldNotesCanvas
:
DefineComponent
<
ExtractPropTypes
<
{
changeDebounceMs
:
{
default
:
250
;
type
:
NumberConstructor
}
;
defaultTool
:
StringConstructor
;
initialData
:
PropType
<
string
|
ImportableCanvasState
>
;
onChange
:
PropType
<
(
state
:
CanvasState
)
=>
void
>
;
onReady
:
PropType
<
(
viewport
:
Viewport
)
=>
void
>
;
onToolChange
:
PropType
<
(
name
:
string
)
=>
void
>
;
options
:
PropType
<
ViewportOptions
>
;
snapToGrid
:
{
default
:
undefined
;
type
:
BooleanConstructor
}
;
theme
:
{
default
:
undefined
;
type
:
PropType
<
Theme
>
}
;
tool
:
StringConstructor
;
tools
:
PropType
<
Tool
[]
|
"default"
>
;
}
,
>
,
()
=>
VNode
<
RendererNode
,
RendererElement
,
{
[
key
:
string
]:
any
}
>
,
{}
,
{}
,
{}
,
ComponentOptionsMixin
,
ComponentOptionsMixin
,
{
"update:tool"
:
(
_name
:
string
)
=>
true
}
,
string
,
PublicProps
,
ToResolvedProps
<
ExtractPropTypes
<
{
changeDebounceMs
:
{
default
:
250
;
type
:
NumberConstructor
}
;
defaultTool
:
StringConstructor
;
initialData
:
PropType
<
string
|
ImportableCanvasState
>
;
onChange
:
PropType
<
(
state
:
CanvasState
)
=>
void
>
;
onReady
:
PropType
<
(
viewport
:
Viewport
)
=>
void
>
;
onToolChange
:
PropType
<
(
name
:
string
)
=>
void
>
;
options
:
PropType
<
ViewportOptions
>
;
snapToGrid
:
{
default
:
undefined
;
type
:
BooleanConstructor
}
;
theme
:
{
default
:
undefined
;
type
:
PropType
<
Theme
>
}
;
tool
:
StringConstructor
;
tools
:
PropType
<
Tool
[]
|
"default"
>
;
}
,
>
,
{
"update:tool"
:
(
_name
:
string
)
=>
true
}
,
>
,
{
changeDebounceMs
:
number
;
snapToGrid
:
boolean
;
theme
:
Theme
}
,
{}
,
{}
,
{}
,
string
,
ComponentProvideOptions
,
true
,
{}
,
any
,
>
= ...
Mounts a Field Notes Viewport; the default slot renders inside it once the viewport exists.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Field Notes home
Docs
Playground
Field Notes
Loading...
Mounts a Field Notes Viewport; the default slot renders inside it once the viewport exists.