# Canvas editing

Source: https://docs.lightair.app/desktop/build-your-show/canvas-editing

> Move, resize, rotate, crop and tilt objects on the canvas, snap them to the edges and centre, shape and mask them, and edit with the keyboard.

In short:
- Drag an object to move it, a corner to resize it, the handle above it to rotate it. Hold `⇧` or `Shift` on Windows to keep its shape or snap to 15°.
- `⌥` or `Alt` on Windows-drag a corner, or drag a side handle, to crop. Hold `⌘` or `Ctrl` on Windows while dragging to stop snapping.
- Arrow keys nudge the selection by a pixel. `⌘0` or `Ctrl+0` on Windows fits the canvas in view.

In the app: Canvas; Inspector › Transform; View › Zoom to Fit

The canvas in the middle of the **Live** place shows the selected scene as viewers will see it,
and you edit it directly. Every change can be undone with `⌘Z` or `Ctrl+Z` on Windows; a whole drag is one
step.

## Select

- Click an object to select it. The topmost visible object under the pointer is picked.
- `⇧` or `Shift` on Windows-click or `⌘` or `Ctrl` on Windows-click to add an object to the selection, or take it
  out.
- Drag on empty canvas to draw a selection box. Hold `⇧` or `Shift` on Windows to add to what's selected.
- `⌘A` or `Ctrl+A` on Windows selects everything; `⎋` or `Esc` on Windows selects nothing.

Hidden objects can't be picked on the canvas, and a locked object can be selected but not moved.
Select hidden objects in the [Hierarchy](/desktop/build-your-show/objects#the-hierarchy).

## Move and resize

- **Move**: drag the object. With several selected, dragging any of them moves them all.
- **Resize**: drag a corner handle. Hold `⇧` or `Shift` on Windows to keep the box's shape.
- **Fill canvas**: right-click and choose **Fill canvas**, or click **Fill the canvas** in the
  Inspector, to make the object cover the whole canvas.

### Snapping

While you move an object, its edges and centre snap to the canvas's edges and centre lines, and a
guide shows where. While you resize, the dragged corner snaps the same way. Hold `⌘` or `Ctrl` on Windows
while dragging to move freely.

### Fit

An object's picture sits in its box one of four ways, set under **Fit** in the Inspector's
**Transform** section:

| Fit | What it does |
|---|---|
| **Fit** | The whole picture, at its own shape, inside the box. Resizing keeps the box's shape too |
| **Fill** | The picture covers the box, cut at the edges if the shapes differ |
| **Stretch** | The picture is stretched to the box's shape |
| **1:1** | The picture at its own size, one pixel to one canvas pixel |

To distort a picture by resizing, choose **Stretch** first.

## Rotate

Drag the round handle above the object. Hold `⇧` or `Shift` on Windows to snap to 15° steps. The
**Transform** section's rotation field takes an exact angle.

## Crop

- `⌥` or `Alt` on Windows-drag a corner handle to crop from that corner.
- Drag a handle in the middle of a side to crop that side.
- In a cropped object, `⌥` or `Alt` on Windows-drag inside it to slide the picture within the crop.

While you crop, the parts cut away show faintly, so you can see what you're leaving out. Click
**Uncrop** at the top of the **Transform** section to undo all cropping.

## Tilt in 3D

Drag the ⊙ handle below the object to tilt it in 3D: drag sideways to turn it left or right, up and down
to tip it. Hold `⇧` or `Shift` on Windows to snap to 15°. Each tilt goes up to 75° either way.

For one axis at a time, press `⇧⌘E` or `Ctrl+Shift+E` on Windows to show the rotate gizmo: three rings,
one for each axis. Drag a ring to turn the object around that axis. Press it again, or
`⎋` or `Esc` on Windows, to hide it.

A tilted object shows **Tilt ↕** and **Tilt ↔** sliders in the Inspector. Click **Flat**, or
double-click the ⊙ handle, to make it flat again.

## Numbers in the Inspector

The **Transform** section has **X**, **Y**, rotation, **W** and **H**, and buttons to flip the
picture left to right and top to bottom. Each number:

- Changes as you drag it sideways (`⇧` or `Shift` on Windows for faster, `⌥` or `Alt` on Windows for finer).
- Takes a typed value when clicked, including sums such as `120+40`. `↩` or `Enter` on Windows or
  clicking away keeps it; `⎋` or `Esc` on Windows doesn't.

## Shape

**Shape** in the **Transform** section cuts the picture to a shape: **None**, **Rounded**,
**Circle** or **Pill**. A shape adds:

- **Corners** (Rounded only): how round, as a percentage.
- **Softness**: a soft edge, 0 to 40 px.
- **Border**: an outline, 0 to 40 px, with a choice of colours.

A circle camera in a corner is **Shape › Circle** with a **Border**.

## Masks

To cut an object to another shape, add a mask effect in its **Effects**:

- **Image mask**: cut to an image file's transparency or brightness.
- **Object mask**: cut to another object's picture in the scene, such as a logo, text or a
  video, by its transparency or brightness, with **Invert**.

See [Effects](/desktop/build-your-show/effects).

## Align and space

Select two or more objects. The Inspector shows **Align left edges**, **Align centres**, **Align
right edges**, **Align top edges**, **Align middles** and **Align bottom edges**. With three or
more, **Space evenly across** and **Space evenly down** spread them out.

## Edit text on the canvas

Double-click a text object to type into it right there. Click elsewhere or press
`⌘↩` or `Ctrl+Enter` on Windows to keep the change; `⎋` or `Esc` on Windows cancels it. See
[Media, text and graphics](/desktop/build-your-show/media-text-and-graphics#text).

## Zoom and pan

| Action | How |
|---|---|
| Zoom in, zoom out | `⌘=` or `Ctrl+=` on Windows, `⌘-` or `Ctrl+-` on Windows, or `⌘` or `Ctrl` on Windows and scroll, or pinch on a trackpad |
| Fit the canvas in view | `⌘0` or `Ctrl+0` on Windows, or click the zoom percentage |
| Actual size (100%) | `⌥⌘0` or `Ctrl+Alt+0` on Windows, or double-click the zoom percentage |
| Pan | Scroll, or hold `Space` and drag |
| Full screen, just the picture | `⇧⌘F` or `Ctrl+Shift+F` on Windows; `⎋` or `Esc` on Windows to leave |

The zoom controls are at the bottom right of the canvas.

## Keyboard

| Action | Shortcut |
|---|---|
| Nudge 1 pixel | Arrow keys |
| Duplicate | `⌘D` or `Ctrl+D` on Windows |
| Delete | `⌫` or `Backspace` on Windows |
| Rename | `↩` or `Enter` on Windows |
| Group, ungroup | `⌘G` or `Ctrl+G` on Windows, `⇧⌘G` or `Ctrl+Shift+G` on Windows |
| Bring forward, send backward | `⌘]` or `Ctrl+]` on Windows, `⌘[` or `Ctrl+[` on Windows |
| Bring to front, send to back | `⇧⌘]` or `Ctrl+Shift+]` on Windows, `⇧⌘[` or `Ctrl+Shift+[` on Windows |
| Show or hide | `⇧⌘H` or `Ctrl+Shift+H` on Windows |
| Lock or unlock | `⇧⌘L` or `Ctrl+Shift+L` on Windows |
| Rotate gizmo | `⇧⌘E` or `Ctrl+Shift+E` on Windows |

Every shortcut is listed in [Keyboard shortcuts](/desktop/reference/keyboard-shortcuts).

## Related

- [Objects](/desktop/build-your-show/objects)
- [Canvases](/desktop/build-your-show/canvases)
- [Effects](/desktop/build-your-show/effects)
