We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a02b3cc commit e2dc4e9Copy full SHA for e2dc4e9
api/editor.md
@@ -30,6 +30,26 @@ local point = app.editor.mousePos
30
Returns a [point](point.md#point) indicating the mouse position on the
31
screen.
32
33
+## Editor.zoom
34
+
35
+```lua
36
+app.editor.zoom = 0.33333333333
37
+local zoom = app.editor.zoom
38
39
+local percentage = zoom * 100 -- 33.3%
40
+```
41
42
+Gets or sets the editor zoom as a float. To get a percentage, multiply by 100.
43
44
+## Editor.scroll
45
46
47
+local scroll = app.editor.scroll
48
+app.editor.scroll = scroll
49
50
51
+Gets or sets the editor scroll (coordinates of sprite pixel to center the editor at) as a table, with values `x` and `y` as floats.
52
53
## Editor:askPoint()
54
55
```lua
0 commit comments