{ "version": 3, "sources": ["../../../../../src/lib/ui/hooks/clipboard/pasteTldrawContent.ts"], "sourcesContent": ["import { Editor, TLContent, VecLike } from '@tldraw/editor'\n\n/**\n * When the clipboard has tldraw content, paste it into the scene.\n *\n * @param editor - The editor instance.\n * @param clipboard - The clipboard model.\n * @param point - (optional) The point at which to paste the text.\n * @internal\n */\nexport function pasteTldrawContent(editor: Editor, clipboard: TLContent, point?: VecLike) {\n\tconst p = point ?? (editor.inputs.shiftKey ? editor.inputs.currentPagePoint : undefined)\n\n\teditor.mark('paste')\n\teditor.putContentOntoCurrentPage(clipboard, {\n\t\tpoint: p,\n\t\tselect: true,\n\t})\n}\n"], "mappings": "AAUO,SAAS,mBAAmB,QAAgB,WAAsB,OAAiB;AACzF,QAAM,IAAI,UAAU,OAAO,OAAO,WAAW,OAAO,OAAO,mBAAmB;AAE9E,SAAO,KAAK,OAAO;AACnB,SAAO,0BAA0B,WAAW;AAAA,IAC3C,OAAO;AAAA,IACP,QAAQ;AAAA,EACT,CAAC;AACF;", "names": [] }