{ "version": 3, "sources": ["../../../src/lib/canvas/TldrawSelectionBackground.tsx"], "sourcesContent": ["import {\n\tDefaultSelectionBackground,\n\tTLSelectionBackgroundComponent,\n\tuseEditor,\n\tuseValue,\n} from '@tldraw/editor'\n\nexport const TldrawSelectionBackground: TLSelectionBackgroundComponent = ({ bounds, rotation }) => {\n\tconst editor = useEditor()\n\n\tconst shouldDisplay = useValue(\n\t\t'should display',\n\t\t() =>\n\t\t\teditor.isInAny(\n\t\t\t\t'select.idle',\n\t\t\t\t'select.brushing',\n\t\t\t\t'select.scribble_brushing',\n\t\t\t\t'select.pointing_shape',\n\t\t\t\t'select.pointing_selection',\n\t\t\t\t'text.resizing'\n\t\t\t),\n\t\t[editor]\n\t)\n\n\tif (!shouldDisplay) return null\n\n\treturn \n}\n"], "mappings": "AA0BQ;AA1BR;AAAA,EACC;AAAA,EAEA;AAAA,EACA;AAAA,OACM;AAEA,MAAM,4BAA4D,CAAC,EAAE,QAAQ,SAAS,MAAM;AAClG,QAAM,SAAS,UAAU;AAEzB,QAAM,gBAAgB;AAAA,IACrB;AAAA,IACA,MACC,OAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACD,CAAC,MAAM;AAAA,EACR;AAEA,MAAI,CAAC;AAAe,WAAO;AAE3B,SAAO,oBAAC,8BAA2B,QAAgB,UAAoB;AACxE;", "names": [] }