@mocanvas/mocanvas · interface

EmbedShapeUtilDisplayValues

interface EmbedShapeUtilDisplayValues extends TLDefaultDisplayValues

What an embed shape paints with.

An embed is an iframe: the page inside it paints itself, and the only thing this shape draws is the placeholder card shown before — or instead of — that page. So those are the values it adds to the shared set.


Properties · 4

cornerRadius: number

Corner radius of the card and of the iframe, in page units.

placeholderFill: string

Fill of the placeholder card.

placeholderStroke: string

Border of the placeholder card.

placeholderTextColor: string

Ink of the text on the placeholder card.

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.