Feedback
- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- WebSocketMessageType
Classes/objects
- Brush
- Cel
- Color
- ColorSpace
- Dialog
- Editor
- Events
- Frame
- GraphicsContext
- Grid
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- Uuid
- WebSocket
- Window
Scroll
app.command.Scroll {
direction=string,
units=string,
quantity=int
}
Scrolls the active editor view according to the given parameters.
direction
: The selection will be moved to a specific direction, can be"left"
,"right"
,"up"
or"down"
.units
: The unit to use forquantity
. Can be"pixel"
,"tile-width"
,"tile-height"
"zoomed-pixel"
,"zoomed-tile-width"
,"zoomed-tile-height"
,"viewport-width"
,"viewport-height"
.quantity
: the number ofpixel
s, ortile-width
s, etc. to move the selection to the givendirection
depending on theunits
.
Example
app.command.Scroll{
quantity=50,
units="pixel",
direction="right"
}