Skip to main content

Module stamp

Module stamp 

Source
Expand description

What a tool stamped on the canvas creates.

The cluster’s cells answer two gestures. A click arms a tool; a press dragged off the cluster and released on the canvas stamps the tool’s default thing where it landed. The armed text and port tools stamp on a click too, through on_click, so a click and a drop are one path; the block and area tools draw theirs with a drag.

One resolver, because the policy has to be one thing: what each creator’s default is (encoded beside its emitter), and which creators a bare drop cannot finish at all.

Functions§

on_click
A click with tool armed, as the drop of tool where it landed.
stamp
Stamp tool’s default thing at the world point at, returning the tool the gesture settles on — the same editor its dragged sibling opens, so a stamped thing is named the way a drawn one is.