# feat: select, move and resize page pictures as OneNote does · clo/snowbound

[View on GitCafe](https://git.cafe/clo/snowbound/commit/b5d8955327de829054dd337a86eed6fc6582be62)

Repository: [clo/snowbound](https://git.cafe/clo/snowbound)

Visibility: public

Requested revision: b5d8955327de829054dd337a86eed6fc6582be62

Requested commit: b5d8955327de829054dd337a86eed6fc6582be62

Commit: b5d8955327de829054dd337a86eed6fc6582be62

Tree: c8f61922efc1a5865a75017ae88c4cadf1739008

Author: clover caruso

Committer: clover caruso

## Message

```
feat: select, move and resize page pictures as OneNote does

Pictures were drawn but took no hits, so clicks fell through to the page.
Observed in OneNote 2010 on "av: casual night in the trees": a click
selects a picture with a dashed border 5 px outside it, eight handles on
that border and a 25% tint; dragging the body moves it on the page grid;
edge handles stretch one axis and corner handles keep the aspect ratio at
the larger of the two scales, anchored at the opposite corner (a corner
drag of (-75, 30.75) pt gave 281.83 x 169.35 from 333 x 200.1). Background
pictures pass clicks through.

The editor gains image_placement and place_image, whose move or resize is
one undo step and marks a resize as set by the user, as the page writer
stores it. The scene reports picture hits in paint order and can draw one
picture at a previewed rectangle. The host replaces its read-only focus
with ObjectFocus, so a selected picture hides the caret and suspends
typing as a placeholder does, while keeping undo.

Assisted-by: claude-opus-5

```

## Parents

- [72cf5607adf5f82934a103defa655f845b225b4a](https://git.cafe/clo/snowbound/commit/72cf5607adf5f82934a103defa655f845b225b4a?format=markdown)

[Source at this commit](https://git.cafe/clo/snowbound/tree/b5d8955327de829054dd337a86eed6fc6582be62?format=markdown)
