@turbowarp/types-tw
Preparing search index...
scratch-paint
ScratchPaint
ScratchPaintState
Interface ScratchPaintState
interface
ScratchPaintState
{
bitBrushSize
:
number
;
bitEraserSize
:
number
;
brushMode
:
{
brushSize
:
number
}
;
clipboard
:
{
items
:
Base
[]
;
pasteOffset
:
number
}
;
color
:
{
eyeDropper
:
{
active
:
boolean
;
callback
:
(
color
:
string
)
=>
void
;
previousTool
:
Mode
;
}
;
fillColor
:
ColorStyle
;
strokeColor
:
ColorStyle
;
strokeWidth
:
number
;
}
;
cursor
:
Cursor
;
eraserMode
:
{
brushSize
:
number
}
;
fillBitmapShapes
:
boolean
;
fillMode
:
{
colorIndex
:
ColorIndex
;
gradientType
:
GradientType
|
null
}
;
font
:
string
;
format
:
Format
|
null
;
hoveredItemId
:
number
|
null
;
layout
:
{
rtl
:
boolean
}
;
modals
:
Record
<
ScratchPaint
.
Modal
,
boolean
>
;
mode
:
Mode
;
selectedItems
:
Base
[]
;
textEditTarget
:
number
|
null
;
undo
:
{
pointer
:
number
;
stack
:
UndoSnapshot
[]
}
;
viewBounds
:
Matrix
;
zoomLevels
:
{
currentZoomLevelId
:
string
}
&
Record
<
string
,
Matrix
>
;
}
Index
Properties
bit
Brush
Size
bit
Eraser
Size
brush
Mode
clipboard
color
cursor
eraser
Mode
fill
Bitmap
Shapes
fill
Mode
font
format
hovered
Item
Id
layout
modals
mode
selected
Items
text
Edit
Target
undo
view
Bounds
zoom
Levels
Properties
bit
Brush
Size
bitBrushSize
:
number
bit
Eraser
Size
bitEraserSize
:
number
brush
Mode
brushMode
:
{
brushSize
:
number
}
clipboard
clipboard
:
{
items
:
Base
[]
;
pasteOffset
:
number
}
color
color
:
{
eyeDropper
:
{
active
:
boolean
;
callback
:
(
color
:
string
)
=>
void
;
previousTool
:
Mode
;
}
;
fillColor
:
ColorStyle
;
strokeColor
:
ColorStyle
;
strokeWidth
:
number
;
}
cursor
cursor
:
Cursor
eraser
Mode
eraserMode
:
{
brushSize
:
number
}
fill
Bitmap
Shapes
fillBitmapShapes
:
boolean
fill
Mode
fillMode
:
{
colorIndex
:
ColorIndex
;
gradientType
:
GradientType
|
null
}
font
font
:
string
format
format
:
Format
|
null
hovered
Item
Id
hoveredItemId
:
number
|
null
layout
layout
:
{
rtl
:
boolean
}
modals
modals
:
Record
<
ScratchPaint
.
Modal
,
boolean
>
mode
mode
:
Mode
selected
Items
selectedItems
:
Base
[]
text
Edit
Target
textEditTarget
:
number
|
null
undo
undo
:
{
pointer
:
number
;
stack
:
UndoSnapshot
[]
}
view
Bounds
viewBounds
:
Matrix
zoom
Levels
zoomLevels
:
{
currentZoomLevelId
:
string
}
&
Record
<
string
,
Matrix
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
bit
Brush
Size
bit
Eraser
Size
brush
Mode
clipboard
color
cursor
eraser
Mode
fill
Bitmap
Shapes
fill
Mode
font
format
hovered
Item
Id
layout
modals
mode
selected
Items
text
Edit
Target
undo
view
Bounds
zoom
Levels
@turbowarp/types-tw
Loading...