@mocanvas/editor · interface
interface TLShapeUtilCanBeLaidOutOptsWhy a shape is being asked whether it can be laid out.
The alignment operations are one question with several answers: a connector follows the shapes it joins and must not be aligned itself, but it *can* be packed along with them, and a shape locked to its aspect ratio can be aligned but not stretched. Passing the operation lets one method answer all of them.
Properties · 2
shapes?: readonly UnknownShape[]Every shape in the operation, including this one.
type: "align" | "distribute" | "flip" | "pack" | "stack" | "stretch"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.