TLClipboardPasteRawInfo
Raw clipboard paste payload, before tldraw parses clipboard contents into TLExternalContent.
native-event: from thepasteevent —clipboardDatais available synchronously (unlike asyncnavigator.clipboard.read()). -clipboard-read: from an explicitnavigator.clipboard.read()call — onlyClipboardItem[]exists (noDataTransfer).
type TLClipboardPasteRawInfo =
| {
readonly clipboardData: DataTransfer | null;
readonly editor: Editor;
readonly event: ClipboardEvent;
readonly point: undefined | VecLike;
readonly source: "native-event";
}
| {
readonly clipboardItems: readonly ClipboardItem[];
readonly editor: Editor;
readonly point: undefined | VecLike;
readonly source: "clipboard-read";
};Prev
TLClickStateNext
TLCompleteEvent