@mocanvas/editor · interface

TLFileReplaceExternalContent

interface TLFileReplaceExternalContent extends TLBaseExternalContent

A file dropped onto an existing shape, to replace what that shape shows.

Distinct from TLFilesExternalContent because the answer is different: this must not create a shape, and it must keep the target's position, size and bindings.


Properties · 3

file: File
shapeId: ShapeId

The shape whose asset is being replaced.

type: "file-replace"

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.