@mocanvas/editor · interface
interface TLFileReplaceExternalContent extends TLBaseExternalContentA 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: FileshapeId: ShapeIdThe shape whose asset is being replaced.
type: "file-replace"Mentioned here
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.