@mocanvas/editor · interface

GapsSnapIndicator

interface GapsSnapIndicator

"These gaps are equal." The indicator drawn when a shape is being spaced evenly between others.

Each gap is the pair of facing edges that bound it, so the renderer can draw the end caps in the right places without recomputing which shapes were involved.


Properties · 4

direction: "horizontal" | "vertical"

Which axis the gaps run along.

gaps: {
id: string
type: "gaps"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.