@bigbluebutton/tldraw 2.0.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1357) hide show
  1. package/LICENSE +190 -0
  2. package/dist-cjs/index.d.ts +2954 -0
  3. package/dist-cjs/index.js +216 -0
  4. package/dist-cjs/index.js.map +7 -0
  5. package/dist-cjs/lib/Tldraw.js +136 -0
  6. package/dist-cjs/lib/Tldraw.js.map +7 -0
  7. package/dist-cjs/lib/canvas/TldrawCropHandles.js +164 -0
  8. package/dist-cjs/lib/canvas/TldrawCropHandles.js.map +7 -0
  9. package/dist-cjs/lib/canvas/TldrawHandles.js +37 -0
  10. package/dist-cjs/lib/canvas/TldrawHandles.js.map +7 -0
  11. package/dist-cjs/lib/canvas/TldrawHoveredShapeIndicator.js +42 -0
  12. package/dist-cjs/lib/canvas/TldrawHoveredShapeIndicator.js.map +7 -0
  13. package/dist-cjs/lib/canvas/TldrawScribble.js +72 -0
  14. package/dist-cjs/lib/canvas/TldrawScribble.js.map +7 -0
  15. package/dist-cjs/lib/canvas/TldrawSelectionBackground.js +44 -0
  16. package/dist-cjs/lib/canvas/TldrawSelectionBackground.js.map +7 -0
  17. package/dist-cjs/lib/canvas/TldrawSelectionForeground.js +509 -0
  18. package/dist-cjs/lib/canvas/TldrawSelectionForeground.js.map +7 -0
  19. package/dist-cjs/lib/defaultExternalContentHandlers.js +400 -0
  20. package/dist-cjs/lib/defaultExternalContentHandlers.js.map +7 -0
  21. package/dist-cjs/lib/defaultShapeTools.js +42 -0
  22. package/dist-cjs/lib/defaultShapeTools.js.map +7 -0
  23. package/dist-cjs/lib/defaultShapeUtils.js +50 -0
  24. package/dist-cjs/lib/defaultShapeUtils.js.map +7 -0
  25. package/dist-cjs/lib/defaultSideEffects.js +69 -0
  26. package/dist-cjs/lib/defaultSideEffects.js.map +7 -0
  27. package/dist-cjs/lib/defaultTools.js +30 -0
  28. package/dist-cjs/lib/defaultTools.js.map +7 -0
  29. package/dist-cjs/lib/shapes/arrow/ArrowShapeTool.js +33 -0
  30. package/dist-cjs/lib/shapes/arrow/ArrowShapeTool.js.map +7 -0
  31. package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js +805 -0
  32. package/dist-cjs/lib/shapes/arrow/ArrowShapeUtil.js.map +7 -0
  33. package/dist-cjs/lib/shapes/arrow/components/ArrowTextLabel.js +114 -0
  34. package/dist-cjs/lib/shapes/arrow/components/ArrowTextLabel.js.map +7 -0
  35. package/dist-cjs/lib/shapes/arrow/toolStates/Idle.js +53 -0
  36. package/dist-cjs/lib/shapes/arrow/toolStates/Idle.js.map +7 -0
  37. package/dist-cjs/lib/shapes/arrow/toolStates/Pointing.js +182 -0
  38. package/dist-cjs/lib/shapes/arrow/toolStates/Pointing.js.map +7 -0
  39. package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js +163 -0
  40. package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js.map +7 -0
  41. package/dist-cjs/lib/shapes/draw/DrawShapeTool.js +37 -0
  42. package/dist-cjs/lib/shapes/draw/DrawShapeTool.js.map +7 -0
  43. package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js +243 -0
  44. package/dist-cjs/lib/shapes/draw/DrawShapeUtil.js.map +7 -0
  45. package/dist-cjs/lib/shapes/draw/getPath.js +102 -0
  46. package/dist-cjs/lib/shapes/draw/getPath.js.map +7 -0
  47. package/dist-cjs/lib/shapes/draw/toolStates/Drawing.js +556 -0
  48. package/dist-cjs/lib/shapes/draw/toolStates/Drawing.js.map +7 -0
  49. package/dist-cjs/lib/shapes/draw/toolStates/Idle.js +37 -0
  50. package/dist-cjs/lib/shapes/draw/toolStates/Idle.js.map +7 -0
  51. package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js +192 -0
  52. package/dist-cjs/lib/shapes/embed/EmbedShapeUtil.js.map +7 -0
  53. package/dist-cjs/lib/shapes/frame/FrameShapeTool.js +66 -0
  54. package/dist-cjs/lib/shapes/frame/FrameShapeTool.js.map +7 -0
  55. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js +234 -0
  56. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js.map +7 -0
  57. package/dist-cjs/lib/shapes/frame/components/FrameHeading.js +106 -0
  58. package/dist-cjs/lib/shapes/frame/components/FrameHeading.js.map +7 -0
  59. package/dist-cjs/lib/shapes/frame/components/FrameLabelInput.js +101 -0
  60. package/dist-cjs/lib/shapes/frame/components/FrameLabelInput.js.map +7 -0
  61. package/dist-cjs/lib/shapes/geo/GeoShapeTool.js +33 -0
  62. package/dist-cjs/lib/shapes/geo/GeoShapeTool.js.map +7 -0
  63. package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js +999 -0
  64. package/dist-cjs/lib/shapes/geo/GeoShapeUtil.js.map +7 -0
  65. package/dist-cjs/lib/shapes/geo/cloudOutline.js +288 -0
  66. package/dist-cjs/lib/shapes/geo/cloudOutline.js.map +7 -0
  67. package/dist-cjs/lib/shapes/geo/components/DashStyleCloud.js +124 -0
  68. package/dist-cjs/lib/shapes/geo/components/DashStyleCloud.js.map +7 -0
  69. package/dist-cjs/lib/shapes/geo/components/DashStyleEllipse.js +123 -0
  70. package/dist-cjs/lib/shapes/geo/components/DashStyleEllipse.js.map +7 -0
  71. package/dist-cjs/lib/shapes/geo/components/DashStyleOval.js +118 -0
  72. package/dist-cjs/lib/shapes/geo/components/DashStyleOval.js.map +7 -0
  73. package/dist-cjs/lib/shapes/geo/components/DashStylePolygon.js +155 -0
  74. package/dist-cjs/lib/shapes/geo/components/DashStylePolygon.js.map +7 -0
  75. package/dist-cjs/lib/shapes/geo/components/DrawStyleCloud.js +79 -0
  76. package/dist-cjs/lib/shapes/geo/components/DrawStyleCloud.js.map +7 -0
  77. package/dist-cjs/lib/shapes/geo/components/DrawStyleEllipse.js +133 -0
  78. package/dist-cjs/lib/shapes/geo/components/DrawStyleEllipse.js.map +7 -0
  79. package/dist-cjs/lib/shapes/geo/components/DrawStylePolygon.js +93 -0
  80. package/dist-cjs/lib/shapes/geo/components/DrawStylePolygon.js.map +7 -0
  81. package/dist-cjs/lib/shapes/geo/components/SolidStyleCloud.js +79 -0
  82. package/dist-cjs/lib/shapes/geo/components/SolidStyleCloud.js.map +7 -0
  83. package/dist-cjs/lib/shapes/geo/components/SolidStyleEllipse.js +84 -0
  84. package/dist-cjs/lib/shapes/geo/components/SolidStyleEllipse.js.map +7 -0
  85. package/dist-cjs/lib/shapes/geo/components/SolidStyleOval.js +99 -0
  86. package/dist-cjs/lib/shapes/geo/components/SolidStyleOval.js.map +7 -0
  87. package/dist-cjs/lib/shapes/geo/components/SolidStylePolygon.js +86 -0
  88. package/dist-cjs/lib/shapes/geo/components/SolidStylePolygon.js.map +7 -0
  89. package/dist-cjs/lib/shapes/geo/helpers.js +53 -0
  90. package/dist-cjs/lib/shapes/geo/helpers.js.map +7 -0
  91. package/dist-cjs/lib/shapes/geo/toolStates/Idle.js +53 -0
  92. package/dist-cjs/lib/shapes/geo/toolStates/Idle.js.map +7 -0
  93. package/dist-cjs/lib/shapes/geo/toolStates/Pointing.js +118 -0
  94. package/dist-cjs/lib/shapes/geo/toolStates/Pointing.js.map +7 -0
  95. package/dist-cjs/lib/shapes/highlight/HighlightShapeTool.js +37 -0
  96. package/dist-cjs/lib/shapes/highlight/HighlightShapeTool.js.map +7 -0
  97. package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js +208 -0
  98. package/dist-cjs/lib/shapes/highlight/HighlightShapeUtil.js.map +7 -0
  99. package/dist-cjs/lib/shapes/image/ImageShapeUtil.js +262 -0
  100. package/dist-cjs/lib/shapes/image/ImageShapeUtil.js.map +7 -0
  101. package/dist-cjs/lib/shapes/line/LineShapeTool.js +33 -0
  102. package/dist-cjs/lib/shapes/line/LineShapeTool.js.map +7 -0
  103. package/dist-cjs/lib/shapes/line/LineShapeUtil.js +359 -0
  104. package/dist-cjs/lib/shapes/line/LineShapeUtil.js.map +7 -0
  105. package/dist-cjs/lib/shapes/line/components/getLinePath.js +88 -0
  106. package/dist-cjs/lib/shapes/line/components/getLinePath.js.map +7 -0
  107. package/dist-cjs/lib/shapes/line/components/svg.js +73 -0
  108. package/dist-cjs/lib/shapes/line/components/svg.js.map +7 -0
  109. package/dist-cjs/lib/shapes/line/toolStates/Idle.js +39 -0
  110. package/dist-cjs/lib/shapes/line/toolStates/Idle.js.map +7 -0
  111. package/dist-cjs/lib/shapes/line/toolStates/Pointing.js +145 -0
  112. package/dist-cjs/lib/shapes/line/toolStates/Pointing.js.map +7 -0
  113. package/dist-cjs/lib/shapes/note/NoteShapeTool.js +33 -0
  114. package/dist-cjs/lib/shapes/note/NoteShapeTool.js.map +7 -0
  115. package/dist-cjs/lib/shapes/note/NoteShapeUtil.js +205 -0
  116. package/dist-cjs/lib/shapes/note/NoteShapeUtil.js.map +7 -0
  117. package/dist-cjs/lib/shapes/note/toolStates/Idle.js +37 -0
  118. package/dist-cjs/lib/shapes/note/toolStates/Idle.js.map +7 -0
  119. package/dist-cjs/lib/shapes/note/toolStates/Pointing.js +114 -0
  120. package/dist-cjs/lib/shapes/note/toolStates/Pointing.js.map +7 -0
  121. package/dist-cjs/lib/shapes/shared/HyperlinkButton.js +65 -0
  122. package/dist-cjs/lib/shapes/shared/HyperlinkButton.js.map +7 -0
  123. package/dist-cjs/lib/shapes/shared/ShapeFill.js +117 -0
  124. package/dist-cjs/lib/shapes/shared/ShapeFill.js.map +7 -0
  125. package/dist-cjs/lib/shapes/shared/TextHelpers.js +228 -0
  126. package/dist-cjs/lib/shapes/shared/TextHelpers.js.map +7 -0
  127. package/dist-cjs/lib/shapes/shared/TextLabel.js +138 -0
  128. package/dist-cjs/lib/shapes/shared/TextLabel.js.map +7 -0
  129. package/dist-cjs/lib/shapes/shared/createTextSvgElementFromSpans.js +75 -0
  130. package/dist-cjs/lib/shapes/shared/createTextSvgElementFromSpans.js.map +7 -0
  131. package/dist-cjs/lib/shapes/shared/default-shape-constants.js +72 -0
  132. package/dist-cjs/lib/shapes/shared/default-shape-constants.js.map +7 -0
  133. package/dist-cjs/lib/shapes/shared/defaultStyleDefs.js +252 -0
  134. package/dist-cjs/lib/shapes/shared/defaultStyleDefs.js.map +7 -0
  135. package/dist-cjs/lib/shapes/shared/freehand/getStroke.js +33 -0
  136. package/dist-cjs/lib/shapes/shared/freehand/getStroke.js.map +7 -0
  137. package/dist-cjs/lib/shapes/shared/freehand/getStrokeOutlinePoints.js +175 -0
  138. package/dist-cjs/lib/shapes/shared/freehand/getStrokeOutlinePoints.js.map +7 -0
  139. package/dist-cjs/lib/shapes/shared/freehand/getStrokePoints.js +144 -0
  140. package/dist-cjs/lib/shapes/shared/freehand/getStrokePoints.js.map +7 -0
  141. package/dist-cjs/lib/shapes/shared/freehand/getStrokeRadius.js +27 -0
  142. package/dist-cjs/lib/shapes/shared/freehand/getStrokeRadius.js.map +7 -0
  143. package/dist-cjs/lib/shapes/shared/freehand/setStrokePointRadii.js +101 -0
  144. package/dist-cjs/lib/shapes/shared/freehand/setStrokePointRadii.js.map +7 -0
  145. package/dist-cjs/lib/shapes/shared/freehand/svg.js +56 -0
  146. package/dist-cjs/lib/shapes/shared/freehand/svg.js.map +7 -0
  147. package/dist-cjs/lib/shapes/shared/freehand/svgInk.js +163 -0
  148. package/dist-cjs/lib/shapes/shared/freehand/svgInk.js.map +7 -0
  149. package/dist-cjs/lib/shapes/shared/freehand/types.js +17 -0
  150. package/dist-cjs/lib/shapes/shared/freehand/types.js.map +7 -0
  151. package/dist-cjs/lib/shapes/shared/getBrowserCanvasMaxSize.js +52 -0
  152. package/dist-cjs/lib/shapes/shared/getBrowserCanvasMaxSize.js.map +7 -0
  153. package/dist-cjs/lib/shapes/shared/getPerfectDashProps.js +96 -0
  154. package/dist-cjs/lib/shapes/shared/getPerfectDashProps.js.map +7 -0
  155. package/dist-cjs/lib/shapes/shared/getTextLabelSvgElement.js +56 -0
  156. package/dist-cjs/lib/shapes/shared/getTextLabelSvgElement.js.map +7 -0
  157. package/dist-cjs/lib/shapes/shared/legacyProps.js +42 -0
  158. package/dist-cjs/lib/shapes/shared/legacyProps.js.map +7 -0
  159. package/dist-cjs/lib/shapes/shared/polygon-helpers.js +116 -0
  160. package/dist-cjs/lib/shapes/shared/polygon-helpers.js.map +7 -0
  161. package/dist-cjs/lib/shapes/shared/resizeBox.js +117 -0
  162. package/dist-cjs/lib/shapes/shared/resizeBox.js.map +7 -0
  163. package/dist-cjs/lib/shapes/shared/resizeScaled.js +48 -0
  164. package/dist-cjs/lib/shapes/shared/resizeScaled.js.map +7 -0
  165. package/dist-cjs/lib/shapes/shared/rotated-box-shadow.js +50 -0
  166. package/dist-cjs/lib/shapes/shared/rotated-box-shadow.js.map +7 -0
  167. package/dist-cjs/lib/shapes/shared/useColorSpace.js +39 -0
  168. package/dist-cjs/lib/shapes/shared/useColorSpace.js.map +7 -0
  169. package/dist-cjs/lib/shapes/shared/useEditableText.js +179 -0
  170. package/dist-cjs/lib/shapes/shared/useEditableText.js.map +7 -0
  171. package/dist-cjs/lib/shapes/shared/useForceSolid.js +29 -0
  172. package/dist-cjs/lib/shapes/shared/useForceSolid.js.map +7 -0
  173. package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js +38 -0
  174. package/dist-cjs/lib/shapes/shared/usePrefersReducedMotion.js.map +7 -0
  175. package/dist-cjs/lib/shapes/text/TextShapeTool.js +33 -0
  176. package/dist-cjs/lib/shapes/text/TextShapeTool.js.map +7 -0
  177. package/dist-cjs/lib/shapes/text/TextShapeUtil.js +341 -0
  178. package/dist-cjs/lib/shapes/text/TextShapeUtil.js.map +7 -0
  179. package/dist-cjs/lib/shapes/text/toolStates/Idle.js +62 -0
  180. package/dist-cjs/lib/shapes/text/toolStates/Idle.js.map +7 -0
  181. package/dist-cjs/lib/shapes/text/toolStates/Pointing.js +109 -0
  182. package/dist-cjs/lib/shapes/text/toolStates/Pointing.js.map +7 -0
  183. package/dist-cjs/lib/shapes/video/VideoShapeUtil.js +202 -0
  184. package/dist-cjs/lib/shapes/video/VideoShapeUtil.js.map +7 -0
  185. package/dist-cjs/lib/tools/EraserTool/EraserTool.js +36 -0
  186. package/dist-cjs/lib/tools/EraserTool/EraserTool.js.map +7 -0
  187. package/dist-cjs/lib/tools/EraserTool/childStates/Erasing.js +111 -0
  188. package/dist-cjs/lib/tools/EraserTool/childStates/Erasing.js.map +7 -0
  189. package/dist-cjs/lib/tools/EraserTool/childStates/Idle.js +34 -0
  190. package/dist-cjs/lib/tools/EraserTool/childStates/Idle.js.map +7 -0
  191. package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js +84 -0
  192. package/dist-cjs/lib/tools/EraserTool/childStates/Pointing.js.map +7 -0
  193. package/dist-cjs/lib/tools/HandTool/HandTool.js +58 -0
  194. package/dist-cjs/lib/tools/HandTool/HandTool.js.map +7 -0
  195. package/dist-cjs/lib/tools/HandTool/childStates/Dragging.js +58 -0
  196. package/dist-cjs/lib/tools/HandTool/childStates/Dragging.js.map +7 -0
  197. package/dist-cjs/lib/tools/HandTool/childStates/Idle.js +37 -0
  198. package/dist-cjs/lib/tools/HandTool/childStates/Idle.js.map +7 -0
  199. package/dist-cjs/lib/tools/HandTool/childStates/Pointing.js +55 -0
  200. package/dist-cjs/lib/tools/HandTool/childStates/Pointing.js.map +7 -0
  201. package/dist-cjs/lib/tools/LaserTool/LaserTool.js +35 -0
  202. package/dist-cjs/lib/tools/LaserTool/LaserTool.js.map +7 -0
  203. package/dist-cjs/lib/tools/LaserTool/childStates/Idle.js +31 -0
  204. package/dist-cjs/lib/tools/LaserTool/childStates/Idle.js.map +7 -0
  205. package/dist-cjs/lib/tools/LaserTool/childStates/Lasering.js +66 -0
  206. package/dist-cjs/lib/tools/LaserTool/childStates/Lasering.js.map +7 -0
  207. package/dist-cjs/lib/tools/SelectTool/DragAndDropManager.js +100 -0
  208. package/dist-cjs/lib/tools/SelectTool/DragAndDropManager.js.map +7 -0
  209. package/dist-cjs/lib/tools/SelectTool/SelectTool.js +70 -0
  210. package/dist-cjs/lib/tools/SelectTool/SelectTool.js.map +7 -0
  211. package/dist-cjs/lib/tools/SelectTool/childStates/Brushing.js +145 -0
  212. package/dist-cjs/lib/tools/SelectTool/childStates/Brushing.js.map +7 -0
  213. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/Crop.js +33 -0
  214. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/Crop.js.map +7 -0
  215. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/Idle.js +204 -0
  216. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/Idle.js.map +7 -0
  217. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.js +39 -0
  218. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.js.map +7 -0
  219. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/TranslatingCrop.js +101 -0
  220. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/TranslatingCrop.js.map +7 -0
  221. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/crop_helpers.js +58 -0
  222. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/crop_helpers.js.map +7 -0
  223. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/crop-constants.js +25 -0
  224. package/dist-cjs/lib/tools/SelectTool/childStates/Crop/crop-constants.js.map +7 -0
  225. package/dist-cjs/lib/tools/SelectTool/childStates/Cropping.js +210 -0
  226. package/dist-cjs/lib/tools/SelectTool/childStates/Cropping.js.map +7 -0
  227. package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js +230 -0
  228. package/dist-cjs/lib/tools/SelectTool/childStates/DraggingHandle.js.map +7 -0
  229. package/dist-cjs/lib/tools/SelectTool/childStates/EditingShape.js +121 -0
  230. package/dist-cjs/lib/tools/SelectTool/childStates/EditingShape.js.map +7 -0
  231. package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js +461 -0
  232. package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js.map +7 -0
  233. package/dist-cjs/lib/tools/SelectTool/childStates/PointingCanvas.js +56 -0
  234. package/dist-cjs/lib/tools/SelectTool/childStates/PointingCanvas.js.map +7 -0
  235. package/dist-cjs/lib/tools/SelectTool/childStates/PointingCropHandle.js +89 -0
  236. package/dist-cjs/lib/tools/SelectTool/childStates/PointingCropHandle.js.map +7 -0
  237. package/dist-cjs/lib/tools/SelectTool/childStates/PointingHandle.js +67 -0
  238. package/dist-cjs/lib/tools/SelectTool/childStates/PointingHandle.js.map +7 -0
  239. package/dist-cjs/lib/tools/SelectTool/childStates/PointingResizeHandle.js +91 -0
  240. package/dist-cjs/lib/tools/SelectTool/childStates/PointingResizeHandle.js.map +7 -0
  241. package/dist-cjs/lib/tools/SelectTool/childStates/PointingRotateHandle.js +83 -0
  242. package/dist-cjs/lib/tools/SelectTool/childStates/PointingRotateHandle.js.map +7 -0
  243. package/dist-cjs/lib/tools/SelectTool/childStates/PointingSelection.js +73 -0
  244. package/dist-cjs/lib/tools/SelectTool/childStates/PointingSelection.js.map +7 -0
  245. package/dist-cjs/lib/tools/SelectTool/childStates/PointingShape.js +176 -0
  246. package/dist-cjs/lib/tools/SelectTool/childStates/PointingShape.js.map +7 -0
  247. package/dist-cjs/lib/tools/SelectTool/childStates/Resizing.js +371 -0
  248. package/dist-cjs/lib/tools/SelectTool/childStates/Resizing.js.map +7 -0
  249. package/dist-cjs/lib/tools/SelectTool/childStates/Rotating.js +148 -0
  250. package/dist-cjs/lib/tools/SelectTool/childStates/Rotating.js.map +7 -0
  251. package/dist-cjs/lib/tools/SelectTool/childStates/ScribbleBrushing.js +140 -0
  252. package/dist-cjs/lib/tools/SelectTool/childStates/ScribbleBrushing.js.map +7 -0
  253. package/dist-cjs/lib/tools/SelectTool/childStates/Translating.js +315 -0
  254. package/dist-cjs/lib/tools/SelectTool/childStates/Translating.js.map +7 -0
  255. package/dist-cjs/lib/tools/SelectTool/children/DraggingHandle.js +230 -0
  256. package/dist-cjs/lib/tools/SelectTool/children/DraggingHandle.js.map +7 -0
  257. package/dist-cjs/lib/tools/ZoomTool/ZoomTool.js +79 -0
  258. package/dist-cjs/lib/tools/ZoomTool/ZoomTool.js.map +7 -0
  259. package/dist-cjs/lib/tools/ZoomTool/childStates/Idle.js +35 -0
  260. package/dist-cjs/lib/tools/ZoomTool/childStates/Idle.js.map +7 -0
  261. package/dist-cjs/lib/tools/ZoomTool/childStates/Pointing.js +55 -0
  262. package/dist-cjs/lib/tools/ZoomTool/childStates/Pointing.js.map +7 -0
  263. package/dist-cjs/lib/tools/ZoomTool/childStates/ZoomBrushing.js +72 -0
  264. package/dist-cjs/lib/tools/ZoomTool/childStates/ZoomBrushing.js.map +7 -0
  265. package/dist-cjs/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.js +41 -0
  266. package/dist-cjs/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.js.map +7 -0
  267. package/dist-cjs/lib/tools/selection-logic/getShouldEnterCropModeOnPointerDown.js +28 -0
  268. package/dist-cjs/lib/tools/selection-logic/getShouldEnterCropModeOnPointerDown.js.map +7 -0
  269. package/dist-cjs/lib/tools/selection-logic/selectOnCanvasPointerUp.js +80 -0
  270. package/dist-cjs/lib/tools/selection-logic/selectOnCanvasPointerUp.js.map +7 -0
  271. package/dist-cjs/lib/tools/selection-logic/updateHoveredId.js +47 -0
  272. package/dist-cjs/lib/tools/selection-logic/updateHoveredId.js.map +7 -0
  273. package/dist-cjs/lib/ui/TldrawUi.js +155 -0
  274. package/dist-cjs/lib/ui/TldrawUi.js.map +7 -0
  275. package/dist-cjs/lib/ui/TldrawUiContextProvider.js +57 -0
  276. package/dist-cjs/lib/ui/TldrawUiContextProvider.js.map +7 -0
  277. package/dist-cjs/lib/ui/assetUrls.js +67 -0
  278. package/dist-cjs/lib/ui/assetUrls.js.map +7 -0
  279. package/dist-cjs/lib/ui/components/ActionsMenu.js +96 -0
  280. package/dist-cjs/lib/ui/components/ActionsMenu.js.map +7 -0
  281. package/dist-cjs/lib/ui/components/BackToContent.js +67 -0
  282. package/dist-cjs/lib/ui/components/BackToContent.js.map +7 -0
  283. package/dist-cjs/lib/ui/components/ContextMenu.js +214 -0
  284. package/dist-cjs/lib/ui/components/ContextMenu.js.map +7 -0
  285. package/dist-cjs/lib/ui/components/DebugPanel.js +334 -0
  286. package/dist-cjs/lib/ui/components/DebugPanel.js.map +7 -0
  287. package/dist-cjs/lib/ui/components/Dialogs.js +64 -0
  288. package/dist-cjs/lib/ui/components/Dialogs.js.map +7 -0
  289. package/dist-cjs/lib/ui/components/DuplicateButton.js +47 -0
  290. package/dist-cjs/lib/ui/components/DuplicateButton.js.map +7 -0
  291. package/dist-cjs/lib/ui/components/EditLinkDialog.js +161 -0
  292. package/dist-cjs/lib/ui/components/EditLinkDialog.js.map +7 -0
  293. package/dist-cjs/lib/ui/components/EmbedDialog.js +152 -0
  294. package/dist-cjs/lib/ui/components/EmbedDialog.js.map +7 -0
  295. package/dist-cjs/lib/ui/components/FollowingIndicator.js +41 -0
  296. package/dist-cjs/lib/ui/components/FollowingIndicator.js.map +7 -0
  297. package/dist-cjs/lib/ui/components/HTMLCanvas.js +66 -0
  298. package/dist-cjs/lib/ui/components/HTMLCanvas.js.map +7 -0
  299. package/dist-cjs/lib/ui/components/HelpMenu.js +116 -0
  300. package/dist-cjs/lib/ui/components/HelpMenu.js.map +7 -0
  301. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog.js +74 -0
  302. package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog.js.map +7 -0
  303. package/dist-cjs/lib/ui/components/LanguageMenu.js +60 -0
  304. package/dist-cjs/lib/ui/components/LanguageMenu.js.map +7 -0
  305. package/dist-cjs/lib/ui/components/Menu.js +139 -0
  306. package/dist-cjs/lib/ui/components/Menu.js.map +7 -0
  307. package/dist-cjs/lib/ui/components/MenuZone.js +51 -0
  308. package/dist-cjs/lib/ui/components/MenuZone.js.map +7 -0
  309. package/dist-cjs/lib/ui/components/MobileStylePanel.js +69 -0
  310. package/dist-cjs/lib/ui/components/MobileStylePanel.js.map +7 -0
  311. package/dist-cjs/lib/ui/components/MoveToPageMenu.js +142 -0
  312. package/dist-cjs/lib/ui/components/MoveToPageMenu.js.map +7 -0
  313. package/dist-cjs/lib/ui/components/NavigationZone/Minimap.js +208 -0
  314. package/dist-cjs/lib/ui/components/NavigationZone/Minimap.js.map +7 -0
  315. package/dist-cjs/lib/ui/components/NavigationZone/MinimapManager.js +293 -0
  316. package/dist-cjs/lib/ui/components/NavigationZone/MinimapManager.js.map +7 -0
  317. package/dist-cjs/lib/ui/components/NavigationZone/NavigationZone.js +103 -0
  318. package/dist-cjs/lib/ui/components/NavigationZone/NavigationZone.js.map +7 -0
  319. package/dist-cjs/lib/ui/components/NavigationZone/ZoomMenu.js +118 -0
  320. package/dist-cjs/lib/ui/components/NavigationZone/ZoomMenu.js.map +7 -0
  321. package/dist-cjs/lib/ui/components/OfflineIndicator/OfflineIndicator.js +47 -0
  322. package/dist-cjs/lib/ui/components/OfflineIndicator/OfflineIndicator.js.map +7 -0
  323. package/dist-cjs/lib/ui/components/PageMenu/PageItemInput.js +63 -0
  324. package/dist-cjs/lib/ui/components/PageMenu/PageItemInput.js.map +7 -0
  325. package/dist-cjs/lib/ui/components/PageMenu/PageItemSubmenu.js +88 -0
  326. package/dist-cjs/lib/ui/components/PageMenu/PageItemSubmenu.js.map +7 -0
  327. package/dist-cjs/lib/ui/components/PageMenu/PageMenu.js +395 -0
  328. package/dist-cjs/lib/ui/components/PageMenu/PageMenu.js.map +7 -0
  329. package/dist-cjs/lib/ui/components/PageMenu/edit-pages-shared.js +45 -0
  330. package/dist-cjs/lib/ui/components/PageMenu/edit-pages-shared.js.map +7 -0
  331. package/dist-cjs/lib/ui/components/PenModeToggle.js +45 -0
  332. package/dist-cjs/lib/ui/components/PenModeToggle.js.map +7 -0
  333. package/dist-cjs/lib/ui/components/RedoButton.js +49 -0
  334. package/dist-cjs/lib/ui/components/RedoButton.js.map +7 -0
  335. package/dist-cjs/lib/ui/components/Spinner.js +41 -0
  336. package/dist-cjs/lib/ui/components/Spinner.js.map +7 -0
  337. package/dist-cjs/lib/ui/components/StopFollowing.js +45 -0
  338. package/dist-cjs/lib/ui/components/StopFollowing.js.map +7 -0
  339. package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js +138 -0
  340. package/dist-cjs/lib/ui/components/StylePanel/DoubleDropdownPicker.js.map +7 -0
  341. package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js +89 -0
  342. package/dist-cjs/lib/ui/components/StylePanel/DropdownPicker.js.map +7 -0
  343. package/dist-cjs/lib/ui/components/StylePanel/StylePanel.js +313 -0
  344. package/dist-cjs/lib/ui/components/StylePanel/StylePanel.js.map +7 -0
  345. package/dist-cjs/lib/ui/components/StylePanel/styles.js +119 -0
  346. package/dist-cjs/lib/ui/components/StylePanel/styles.js.map +7 -0
  347. package/dist-cjs/lib/ui/components/Toasts.js +101 -0
  348. package/dist-cjs/lib/ui/components/Toasts.js.map +7 -0
  349. package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js +73 -0
  350. package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js.map +7 -0
  351. package/dist-cjs/lib/ui/components/Toolbar/Toolbar.js +247 -0
  352. package/dist-cjs/lib/ui/components/Toolbar/Toolbar.js.map +7 -0
  353. package/dist-cjs/lib/ui/components/TrashButton.js +51 -0
  354. package/dist-cjs/lib/ui/components/TrashButton.js.map +7 -0
  355. package/dist-cjs/lib/ui/components/UndoButton.js +49 -0
  356. package/dist-cjs/lib/ui/components/UndoButton.js.map +7 -0
  357. package/dist-cjs/lib/ui/components/primitives/Button.js +79 -0
  358. package/dist-cjs/lib/ui/components/primitives/Button.js.map +7 -0
  359. package/dist-cjs/lib/ui/components/primitives/ButtonPicker.js +121 -0
  360. package/dist-cjs/lib/ui/components/primitives/ButtonPicker.js.map +7 -0
  361. package/dist-cjs/lib/ui/components/primitives/Dialog.js +70 -0
  362. package/dist-cjs/lib/ui/components/primitives/Dialog.js.map +7 -0
  363. package/dist-cjs/lib/ui/components/primitives/DropdownMenu.js +187 -0
  364. package/dist-cjs/lib/ui/components/primitives/DropdownMenu.js.map +7 -0
  365. package/dist-cjs/lib/ui/components/primitives/Icon.js +71 -0
  366. package/dist-cjs/lib/ui/components/primitives/Icon.js.map +7 -0
  367. package/dist-cjs/lib/ui/components/primitives/Input.js +155 -0
  368. package/dist-cjs/lib/ui/components/primitives/Input.js.map +7 -0
  369. package/dist-cjs/lib/ui/components/primitives/Kbd.js +29 -0
  370. package/dist-cjs/lib/ui/components/primitives/Kbd.js.map +7 -0
  371. package/dist-cjs/lib/ui/components/primitives/Popover.js +69 -0
  372. package/dist-cjs/lib/ui/components/primitives/Popover.js.map +7 -0
  373. package/dist-cjs/lib/ui/components/primitives/Slider.js +69 -0
  374. package/dist-cjs/lib/ui/components/primitives/Slider.js.map +7 -0
  375. package/dist-cjs/lib/ui/components/primitives/shared.js +44 -0
  376. package/dist-cjs/lib/ui/components/primitives/shared.js.map +7 -0
  377. package/dist-cjs/lib/ui/constants.js +25 -0
  378. package/dist-cjs/lib/ui/constants.js.map +7 -0
  379. package/dist-cjs/lib/ui/hooks/clipboard/pasteExcalidrawContent.js +454 -0
  380. package/dist-cjs/lib/ui/hooks/clipboard/pasteExcalidrawContent.js.map +7 -0
  381. package/dist-cjs/lib/ui/hooks/clipboard/pasteFiles.js +37 -0
  382. package/dist-cjs/lib/ui/hooks/clipboard/pasteFiles.js.map +7 -0
  383. package/dist-cjs/lib/ui/hooks/clipboard/pasteTldrawContent.js +32 -0
  384. package/dist-cjs/lib/ui/hooks/clipboard/pasteTldrawContent.js.map +7 -0
  385. package/dist-cjs/lib/ui/hooks/clipboard/pasteUrl.js +48 -0
  386. package/dist-cjs/lib/ui/hooks/clipboard/pasteUrl.js.map +7 -0
  387. package/dist-cjs/lib/ui/hooks/menuHelpers.js +172 -0
  388. package/dist-cjs/lib/ui/hooks/menuHelpers.js.map +7 -0
  389. package/dist-cjs/lib/ui/hooks/useActions.js +1152 -0
  390. package/dist-cjs/lib/ui/hooks/useActions.js.map +7 -0
  391. package/dist-cjs/lib/ui/hooks/useActionsMenuSchema.js +112 -0
  392. package/dist-cjs/lib/ui/hooks/useActionsMenuSchema.js.map +7 -0
  393. package/dist-cjs/lib/ui/hooks/useAssetUrls.js +41 -0
  394. package/dist-cjs/lib/ui/hooks/useAssetUrls.js.map +7 -0
  395. package/dist-cjs/lib/ui/hooks/useBreakpoint.js +64 -0
  396. package/dist-cjs/lib/ui/hooks/useBreakpoint.js.map +7 -0
  397. package/dist-cjs/lib/ui/hooks/useCanRedo.js +29 -0
  398. package/dist-cjs/lib/ui/hooks/useCanRedo.js.map +7 -0
  399. package/dist-cjs/lib/ui/hooks/useCanUndo.js +29 -0
  400. package/dist-cjs/lib/ui/hooks/useCanUndo.js.map +7 -0
  401. package/dist-cjs/lib/ui/hooks/useClipboardEvents.js +463 -0
  402. package/dist-cjs/lib/ui/hooks/useClipboardEvents.js.map +7 -0
  403. package/dist-cjs/lib/ui/hooks/useContextMenuSchema.js +228 -0
  404. package/dist-cjs/lib/ui/hooks/useContextMenuSchema.js.map +7 -0
  405. package/dist-cjs/lib/ui/hooks/useCopyAs.js +47 -0
  406. package/dist-cjs/lib/ui/hooks/useCopyAs.js.map +7 -0
  407. package/dist-cjs/lib/ui/hooks/useDialogsProvider.js +108 -0
  408. package/dist-cjs/lib/ui/hooks/useDialogsProvider.js.map +7 -0
  409. package/dist-cjs/lib/ui/hooks/useEditorEvents.js +43 -0
  410. package/dist-cjs/lib/ui/hooks/useEditorEvents.js.map +7 -0
  411. package/dist-cjs/lib/ui/hooks/useEventsProvider.js +47 -0
  412. package/dist-cjs/lib/ui/hooks/useEventsProvider.js.map +7 -0
  413. package/dist-cjs/lib/ui/hooks/useExportAs.js +51 -0
  414. package/dist-cjs/lib/ui/hooks/useExportAs.js.map +7 -0
  415. package/dist-cjs/lib/ui/hooks/useHasLinkShapeSelected.js +36 -0
  416. package/dist-cjs/lib/ui/hooks/useHasLinkShapeSelected.js.map +7 -0
  417. package/dist-cjs/lib/ui/hooks/useHelpMenuSchema.js +103 -0
  418. package/dist-cjs/lib/ui/hooks/useHelpMenuSchema.js.map +7 -0
  419. package/dist-cjs/lib/ui/hooks/useHighDpiCanvas.js +35 -0
  420. package/dist-cjs/lib/ui/hooks/useHighDpiCanvas.js.map +7 -0
  421. package/dist-cjs/lib/ui/hooks/useInsertMedia.js +57 -0
  422. package/dist-cjs/lib/ui/hooks/useInsertMedia.js.map +7 -0
  423. package/dist-cjs/lib/ui/hooks/useKeyboardShortcuts.js +138 -0
  424. package/dist-cjs/lib/ui/hooks/useKeyboardShortcuts.js.map +7 -0
  425. package/dist-cjs/lib/ui/hooks/useKeyboardShortcutsSchema.js +134 -0
  426. package/dist-cjs/lib/ui/hooks/useKeyboardShortcutsSchema.js.map +7 -0
  427. package/dist-cjs/lib/ui/hooks/useLocalStorageState.js +59 -0
  428. package/dist-cjs/lib/ui/hooks/useLocalStorageState.js.map +7 -0
  429. package/dist-cjs/lib/ui/hooks/useMenuIsOpen.js +74 -0
  430. package/dist-cjs/lib/ui/hooks/useMenuIsOpen.js.map +7 -0
  431. package/dist-cjs/lib/ui/hooks/useMenuSchema.js +260 -0
  432. package/dist-cjs/lib/ui/hooks/useMenuSchema.js.map +7 -0
  433. package/dist-cjs/lib/ui/hooks/useOnlyFlippableShape.js +38 -0
  434. package/dist-cjs/lib/ui/hooks/useOnlyFlippableShape.js.map +7 -0
  435. package/dist-cjs/lib/ui/hooks/usePreloadAssets.js +106 -0
  436. package/dist-cjs/lib/ui/hooks/usePreloadAssets.js.map +7 -0
  437. package/dist-cjs/lib/ui/hooks/usePreloadIcons.js +51 -0
  438. package/dist-cjs/lib/ui/hooks/usePreloadIcons.js.map +7 -0
  439. package/dist-cjs/lib/ui/hooks/usePrint.js +220 -0
  440. package/dist-cjs/lib/ui/hooks/usePrint.js.map +7 -0
  441. package/dist-cjs/lib/ui/hooks/useReadonly.js +29 -0
  442. package/dist-cjs/lib/ui/hooks/useReadonly.js.map +7 -0
  443. package/dist-cjs/lib/ui/hooks/useRevelantStyles.js +45 -0
  444. package/dist-cjs/lib/ui/hooks/useRevelantStyles.js.map +7 -0
  445. package/dist-cjs/lib/ui/hooks/useShowAutoSizeToggle.js +36 -0
  446. package/dist-cjs/lib/ui/hooks/useShowAutoSizeToggle.js.map +7 -0
  447. package/dist-cjs/lib/ui/hooks/useToastsProvider.js +53 -0
  448. package/dist-cjs/lib/ui/hooks/useToastsProvider.js.map +7 -0
  449. package/dist-cjs/lib/ui/hooks/useToolbarSchema.js +99 -0
  450. package/dist-cjs/lib/ui/hooks/useToolbarSchema.js.map +7 -0
  451. package/dist-cjs/lib/ui/hooks/useTools.js +235 -0
  452. package/dist-cjs/lib/ui/hooks/useTools.js.map +7 -0
  453. package/dist-cjs/lib/ui/hooks/useTranslation/TLUiTranslationKey.js +17 -0
  454. package/dist-cjs/lib/ui/hooks/useTranslation/TLUiTranslationKey.js.map +7 -0
  455. package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js +377 -0
  456. package/dist-cjs/lib/ui/hooks/useTranslation/defaultTranslation.js.map +7 -0
  457. package/dist-cjs/lib/ui/hooks/useTranslation/translations.js +67 -0
  458. package/dist-cjs/lib/ui/hooks/useTranslation/translations.js.map +7 -0
  459. package/dist-cjs/lib/ui/hooks/useTranslation/useLanguages.js +32 -0
  460. package/dist-cjs/lib/ui/hooks/useTranslation/useLanguages.js.map +7 -0
  461. package/dist-cjs/lib/ui/hooks/useTranslation/useTranslation.js +101 -0
  462. package/dist-cjs/lib/ui/hooks/useTranslation/useTranslation.js.map +7 -0
  463. package/dist-cjs/lib/ui/icon-types.js +190 -0
  464. package/dist-cjs/lib/ui/icon-types.js.map +7 -0
  465. package/dist-cjs/lib/ui/overrides.js +178 -0
  466. package/dist-cjs/lib/ui/overrides.js.map +7 -0
  467. package/dist-cjs/lib/ui/version.js +25 -0
  468. package/dist-cjs/lib/ui/version.js.map +7 -0
  469. package/dist-cjs/lib/utils/assets/assets.js +91 -0
  470. package/dist-cjs/lib/utils/assets/assets.js.map +7 -0
  471. package/dist-cjs/lib/utils/assets/is-gif-animated.js +74 -0
  472. package/dist-cjs/lib/utils/assets/is-gif-animated.js.map +7 -0
  473. package/dist-cjs/lib/utils/assets.js +91 -0
  474. package/dist-cjs/lib/utils/assets.js.map +7 -0
  475. package/dist-cjs/lib/utils/embeds/embeds.js +85 -0
  476. package/dist-cjs/lib/utils/embeds/embeds.js.map +7 -0
  477. package/dist-cjs/lib/utils/export/copyAs.js +116 -0
  478. package/dist-cjs/lib/utils/export/copyAs.js.map +7 -0
  479. package/dist-cjs/lib/utils/export/export.js +117 -0
  480. package/dist-cjs/lib/utils/export/export.js.map +7 -0
  481. package/dist-cjs/lib/utils/export/exportAs.js +88 -0
  482. package/dist-cjs/lib/utils/export/exportAs.js.map +7 -0
  483. package/dist-cjs/lib/utils/frames/frames.js +92 -0
  484. package/dist-cjs/lib/utils/frames/frames.js.map +7 -0
  485. package/dist-cjs/lib/utils/static-assets/assetUrls.js +48 -0
  486. package/dist-cjs/lib/utils/static-assets/assetUrls.js.map +7 -0
  487. package/dist-cjs/lib/utils/text/text.js +57 -0
  488. package/dist-cjs/lib/utils/text/text.js.map +7 -0
  489. package/dist-cjs/lib/utils/tldr/buildFromV1Document.js +792 -0
  490. package/dist-cjs/lib/utils/tldr/buildFromV1Document.js.map +7 -0
  491. package/dist-cjs/lib/utils/tldr/file.js +230 -0
  492. package/dist-cjs/lib/utils/tldr/file.js.map +7 -0
  493. package/dist-esm/index.d.mts +2954 -0
  494. package/dist-esm/index.mjs +234 -0
  495. package/dist-esm/index.mjs.map +7 -0
  496. package/dist-esm/lib/Tldraw.mjs +127 -0
  497. package/dist-esm/lib/Tldraw.mjs.map +7 -0
  498. package/dist-esm/lib/canvas/TldrawCropHandles.mjs +134 -0
  499. package/dist-esm/lib/canvas/TldrawCropHandles.mjs.map +7 -0
  500. package/dist-esm/lib/canvas/TldrawHandles.mjs +17 -0
  501. package/dist-esm/lib/canvas/TldrawHandles.mjs.map +7 -0
  502. package/dist-esm/lib/canvas/TldrawHoveredShapeIndicator.mjs +26 -0
  503. package/dist-esm/lib/canvas/TldrawHoveredShapeIndicator.mjs.map +7 -0
  504. package/dist-esm/lib/canvas/TldrawScribble.mjs +42 -0
  505. package/dist-esm/lib/canvas/TldrawScribble.mjs.map +7 -0
  506. package/dist-esm/lib/canvas/TldrawSelectionBackground.mjs +28 -0
  507. package/dist-esm/lib/canvas/TldrawSelectionBackground.mjs.map +7 -0
  508. package/dist-esm/lib/canvas/TldrawSelectionForeground.mjs +487 -0
  509. package/dist-esm/lib/canvas/TldrawSelectionForeground.mjs.map +7 -0
  510. package/dist-esm/lib/defaultExternalContentHandlers.mjs +387 -0
  511. package/dist-esm/lib/defaultExternalContentHandlers.mjs.map +7 -0
  512. package/dist-esm/lib/defaultShapeTools.mjs +22 -0
  513. package/dist-esm/lib/defaultShapeTools.mjs.map +7 -0
  514. package/dist-esm/lib/defaultShapeUtils.mjs +30 -0
  515. package/dist-esm/lib/defaultShapeUtils.mjs.map +7 -0
  516. package/dist-esm/lib/defaultSideEffects.mjs +49 -0
  517. package/dist-esm/lib/defaultSideEffects.mjs.map +7 -0
  518. package/dist-esm/lib/defaultTools.mjs +10 -0
  519. package/dist-esm/lib/defaultTools.mjs.map +7 -0
  520. package/dist-esm/lib/shapes/arrow/ArrowShapeTool.mjs +13 -0
  521. package/dist-esm/lib/shapes/arrow/ArrowShapeTool.mjs.map +7 -0
  522. package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs +808 -0
  523. package/dist-esm/lib/shapes/arrow/ArrowShapeUtil.mjs.map +7 -0
  524. package/dist-esm/lib/shapes/arrow/components/ArrowTextLabel.mjs +84 -0
  525. package/dist-esm/lib/shapes/arrow/components/ArrowTextLabel.mjs.map +7 -0
  526. package/dist-esm/lib/shapes/arrow/toolStates/Idle.mjs +33 -0
  527. package/dist-esm/lib/shapes/arrow/toolStates/Idle.mjs.map +7 -0
  528. package/dist-esm/lib/shapes/arrow/toolStates/Pointing.mjs +162 -0
  529. package/dist-esm/lib/shapes/arrow/toolStates/Pointing.mjs.map +7 -0
  530. package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.mjs +154 -0
  531. package/dist-esm/lib/shapes/bookmark/BookmarkShapeUtil.mjs.map +7 -0
  532. package/dist-esm/lib/shapes/draw/DrawShapeTool.mjs +17 -0
  533. package/dist-esm/lib/shapes/draw/DrawShapeTool.mjs.map +7 -0
  534. package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs +237 -0
  535. package/dist-esm/lib/shapes/draw/DrawShapeUtil.mjs.map +7 -0
  536. package/dist-esm/lib/shapes/draw/getPath.mjs +87 -0
  537. package/dist-esm/lib/shapes/draw/getPath.mjs.map +7 -0
  538. package/dist-esm/lib/shapes/draw/toolStates/Drawing.mjs +546 -0
  539. package/dist-esm/lib/shapes/draw/toolStates/Drawing.mjs.map +7 -0
  540. package/dist-esm/lib/shapes/draw/toolStates/Idle.mjs +17 -0
  541. package/dist-esm/lib/shapes/draw/toolStates/Idle.mjs.map +7 -0
  542. package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs +181 -0
  543. package/dist-esm/lib/shapes/embed/EmbedShapeUtil.mjs.map +7 -0
  544. package/dist-esm/lib/shapes/frame/FrameShapeTool.mjs +46 -0
  545. package/dist-esm/lib/shapes/frame/FrameShapeTool.mjs.map +7 -0
  546. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs +216 -0
  547. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs.map +7 -0
  548. package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs +93 -0
  549. package/dist-esm/lib/shapes/frame/components/FrameHeading.mjs.map +7 -0
  550. package/dist-esm/lib/shapes/frame/components/FrameLabelInput.mjs +81 -0
  551. package/dist-esm/lib/shapes/frame/components/FrameLabelInput.mjs.map +7 -0
  552. package/dist-esm/lib/shapes/geo/GeoShapeTool.mjs +13 -0
  553. package/dist-esm/lib/shapes/geo/GeoShapeTool.mjs.map +7 -0
  554. package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs +1010 -0
  555. package/dist-esm/lib/shapes/geo/GeoShapeUtil.mjs.map +7 -0
  556. package/dist-esm/lib/shapes/geo/cloudOutline.mjs +275 -0
  557. package/dist-esm/lib/shapes/geo/cloudOutline.mjs.map +7 -0
  558. package/dist-esm/lib/shapes/geo/components/DashStyleCloud.mjs +102 -0
  559. package/dist-esm/lib/shapes/geo/components/DashStyleCloud.mjs.map +7 -0
  560. package/dist-esm/lib/shapes/geo/components/DashStyleEllipse.mjs +101 -0
  561. package/dist-esm/lib/shapes/geo/components/DashStyleEllipse.mjs.map +7 -0
  562. package/dist-esm/lib/shapes/geo/components/DashStyleOval.mjs +93 -0
  563. package/dist-esm/lib/shapes/geo/components/DashStyleOval.mjs.map +7 -0
  564. package/dist-esm/lib/shapes/geo/components/DashStylePolygon.mjs +130 -0
  565. package/dist-esm/lib/shapes/geo/components/DashStylePolygon.mjs.map +7 -0
  566. package/dist-esm/lib/shapes/geo/components/DrawStyleCloud.mjs +54 -0
  567. package/dist-esm/lib/shapes/geo/components/DrawStyleCloud.mjs.map +7 -0
  568. package/dist-esm/lib/shapes/geo/components/DrawStyleEllipse.mjs +116 -0
  569. package/dist-esm/lib/shapes/geo/components/DrawStyleEllipse.mjs.map +7 -0
  570. package/dist-esm/lib/shapes/geo/components/DrawStylePolygon.mjs +68 -0
  571. package/dist-esm/lib/shapes/geo/components/DrawStylePolygon.mjs.map +7 -0
  572. package/dist-esm/lib/shapes/geo/components/SolidStyleCloud.mjs +54 -0
  573. package/dist-esm/lib/shapes/geo/components/SolidStyleCloud.mjs.map +7 -0
  574. package/dist-esm/lib/shapes/geo/components/SolidStyleEllipse.mjs +59 -0
  575. package/dist-esm/lib/shapes/geo/components/SolidStyleEllipse.mjs.map +7 -0
  576. package/dist-esm/lib/shapes/geo/components/SolidStyleOval.mjs +74 -0
  577. package/dist-esm/lib/shapes/geo/components/SolidStyleOval.mjs.map +7 -0
  578. package/dist-esm/lib/shapes/geo/components/SolidStylePolygon.mjs +61 -0
  579. package/dist-esm/lib/shapes/geo/components/SolidStylePolygon.mjs.map +7 -0
  580. package/dist-esm/lib/shapes/geo/helpers.mjs +33 -0
  581. package/dist-esm/lib/shapes/geo/helpers.mjs.map +7 -0
  582. package/dist-esm/lib/shapes/geo/toolStates/Idle.mjs +33 -0
  583. package/dist-esm/lib/shapes/geo/toolStates/Idle.mjs.map +7 -0
  584. package/dist-esm/lib/shapes/geo/toolStates/Pointing.mjs +104 -0
  585. package/dist-esm/lib/shapes/geo/toolStates/Pointing.mjs.map +7 -0
  586. package/dist-esm/lib/shapes/highlight/HighlightShapeTool.mjs +17 -0
  587. package/dist-esm/lib/shapes/highlight/HighlightShapeTool.mjs.map +7 -0
  588. package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs +198 -0
  589. package/dist-esm/lib/shapes/highlight/HighlightShapeUtil.mjs.map +7 -0
  590. package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs +252 -0
  591. package/dist-esm/lib/shapes/image/ImageShapeUtil.mjs.map +7 -0
  592. package/dist-esm/lib/shapes/line/LineShapeTool.mjs +13 -0
  593. package/dist-esm/lib/shapes/line/LineShapeTool.mjs.map +7 -0
  594. package/dist-esm/lib/shapes/line/LineShapeUtil.mjs +357 -0
  595. package/dist-esm/lib/shapes/line/LineShapeUtil.mjs.map +7 -0
  596. package/dist-esm/lib/shapes/line/components/getLinePath.mjs +68 -0
  597. package/dist-esm/lib/shapes/line/components/getLinePath.mjs.map +7 -0
  598. package/dist-esm/lib/shapes/line/components/svg.mjs +57 -0
  599. package/dist-esm/lib/shapes/line/components/svg.mjs.map +7 -0
  600. package/dist-esm/lib/shapes/line/toolStates/Idle.mjs +19 -0
  601. package/dist-esm/lib/shapes/line/toolStates/Idle.mjs.map +7 -0
  602. package/dist-esm/lib/shapes/line/toolStates/Pointing.mjs +134 -0
  603. package/dist-esm/lib/shapes/line/toolStates/Pointing.mjs.map +7 -0
  604. package/dist-esm/lib/shapes/note/NoteShapeTool.mjs +13 -0
  605. package/dist-esm/lib/shapes/note/NoteShapeTool.mjs.map +7 -0
  606. package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs +193 -0
  607. package/dist-esm/lib/shapes/note/NoteShapeUtil.mjs.map +7 -0
  608. package/dist-esm/lib/shapes/note/toolStates/Idle.mjs +17 -0
  609. package/dist-esm/lib/shapes/note/toolStates/Idle.mjs.map +7 -0
  610. package/dist-esm/lib/shapes/note/toolStates/Pointing.mjs +97 -0
  611. package/dist-esm/lib/shapes/note/toolStates/Pointing.mjs.map +7 -0
  612. package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs +35 -0
  613. package/dist-esm/lib/shapes/shared/HyperlinkButton.mjs.map +7 -0
  614. package/dist-esm/lib/shapes/shared/ShapeFill.mjs +93 -0
  615. package/dist-esm/lib/shapes/shared/ShapeFill.mjs.map +7 -0
  616. package/dist-esm/lib/shapes/shared/TextHelpers.mjs +208 -0
  617. package/dist-esm/lib/shapes/shared/TextHelpers.mjs.map +7 -0
  618. package/dist-esm/lib/shapes/shared/TextLabel.mjs +112 -0
  619. package/dist-esm/lib/shapes/shared/TextLabel.mjs.map +7 -0
  620. package/dist-esm/lib/shapes/shared/createTextSvgElementFromSpans.mjs +57 -0
  621. package/dist-esm/lib/shapes/shared/createTextSvgElementFromSpans.mjs.map +7 -0
  622. package/dist-esm/lib/shapes/shared/default-shape-constants.mjs +52 -0
  623. package/dist-esm/lib/shapes/shared/default-shape-constants.mjs.map +7 -0
  624. package/dist-esm/lib/shapes/shared/defaultStyleDefs.mjs +240 -0
  625. package/dist-esm/lib/shapes/shared/defaultStyleDefs.mjs.map +7 -0
  626. package/dist-esm/lib/shapes/shared/freehand/getStroke.mjs +13 -0
  627. package/dist-esm/lib/shapes/shared/freehand/getStroke.mjs.map +7 -0
  628. package/dist-esm/lib/shapes/shared/freehand/getStrokeOutlinePoints.mjs +155 -0
  629. package/dist-esm/lib/shapes/shared/freehand/getStrokeOutlinePoints.mjs.map +7 -0
  630. package/dist-esm/lib/shapes/shared/freehand/getStrokePoints.mjs +124 -0
  631. package/dist-esm/lib/shapes/shared/freehand/getStrokePoints.mjs.map +7 -0
  632. package/dist-esm/lib/shapes/shared/freehand/getStrokeRadius.mjs +7 -0
  633. package/dist-esm/lib/shapes/shared/freehand/getStrokeRadius.mjs.map +7 -0
  634. package/dist-esm/lib/shapes/shared/freehand/setStrokePointRadii.mjs +81 -0
  635. package/dist-esm/lib/shapes/shared/freehand/setStrokePointRadii.mjs.map +7 -0
  636. package/dist-esm/lib/shapes/shared/freehand/svg.mjs +36 -0
  637. package/dist-esm/lib/shapes/shared/freehand/svg.mjs.map +7 -0
  638. package/dist-esm/lib/shapes/shared/freehand/svgInk.mjs +150 -0
  639. package/dist-esm/lib/shapes/shared/freehand/svgInk.mjs.map +7 -0
  640. package/dist-esm/lib/shapes/shared/freehand/types.mjs +1 -0
  641. package/dist-esm/lib/shapes/shared/freehand/types.mjs.map +7 -0
  642. package/dist-esm/lib/shapes/shared/getBrowserCanvasMaxSize.mjs +22 -0
  643. package/dist-esm/lib/shapes/shared/getBrowserCanvasMaxSize.mjs.map +7 -0
  644. package/dist-esm/lib/shapes/shared/getPerfectDashProps.mjs +76 -0
  645. package/dist-esm/lib/shapes/shared/getPerfectDashProps.mjs.map +7 -0
  646. package/dist-esm/lib/shapes/shared/getTextLabelSvgElement.mjs +36 -0
  647. package/dist-esm/lib/shapes/shared/getTextLabelSvgElement.mjs.map +7 -0
  648. package/dist-esm/lib/shapes/shared/legacyProps.mjs +22 -0
  649. package/dist-esm/lib/shapes/shared/legacyProps.mjs.map +7 -0
  650. package/dist-esm/lib/shapes/shared/polygon-helpers.mjs +96 -0
  651. package/dist-esm/lib/shapes/shared/polygon-helpers.mjs.map +7 -0
  652. package/dist-esm/lib/shapes/shared/resizeBox.mjs +99 -0
  653. package/dist-esm/lib/shapes/shared/resizeBox.mjs.map +7 -0
  654. package/dist-esm/lib/shapes/shared/resizeScaled.mjs +28 -0
  655. package/dist-esm/lib/shapes/shared/resizeScaled.mjs.map +7 -0
  656. package/dist-esm/lib/shapes/shared/rotated-box-shadow.mjs +30 -0
  657. package/dist-esm/lib/shapes/shared/rotated-box-shadow.mjs.map +7 -0
  658. package/dist-esm/lib/shapes/shared/useColorSpace.mjs +19 -0
  659. package/dist-esm/lib/shapes/shared/useColorSpace.mjs.map +7 -0
  660. package/dist-esm/lib/shapes/shared/useEditableText.mjs +165 -0
  661. package/dist-esm/lib/shapes/shared/useEditableText.mjs.map +7 -0
  662. package/dist-esm/lib/shapes/shared/useForceSolid.mjs +9 -0
  663. package/dist-esm/lib/shapes/shared/useForceSolid.mjs.map +7 -0
  664. package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs +18 -0
  665. package/dist-esm/lib/shapes/shared/usePrefersReducedMotion.mjs.map +7 -0
  666. package/dist-esm/lib/shapes/text/TextShapeTool.mjs +13 -0
  667. package/dist-esm/lib/shapes/text/TextShapeTool.mjs.map +7 -0
  668. package/dist-esm/lib/shapes/text/TextShapeUtil.mjs +334 -0
  669. package/dist-esm/lib/shapes/text/TextShapeUtil.mjs.map +7 -0
  670. package/dist-esm/lib/shapes/text/toolStates/Idle.mjs +42 -0
  671. package/dist-esm/lib/shapes/text/toolStates/Idle.mjs.map +7 -0
  672. package/dist-esm/lib/shapes/text/toolStates/Pointing.mjs +89 -0
  673. package/dist-esm/lib/shapes/text/toolStates/Pointing.mjs.map +7 -0
  674. package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs +180 -0
  675. package/dist-esm/lib/shapes/video/VideoShapeUtil.mjs.map +7 -0
  676. package/dist-esm/lib/tools/EraserTool/EraserTool.mjs +16 -0
  677. package/dist-esm/lib/tools/EraserTool/EraserTool.mjs.map +7 -0
  678. package/dist-esm/lib/tools/EraserTool/childStates/Erasing.mjs +95 -0
  679. package/dist-esm/lib/tools/EraserTool/childStates/Erasing.mjs.map +7 -0
  680. package/dist-esm/lib/tools/EraserTool/childStates/Idle.mjs +14 -0
  681. package/dist-esm/lib/tools/EraserTool/childStates/Idle.mjs.map +7 -0
  682. package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs +67 -0
  683. package/dist-esm/lib/tools/EraserTool/childStates/Pointing.mjs.map +7 -0
  684. package/dist-esm/lib/tools/HandTool/HandTool.mjs +38 -0
  685. package/dist-esm/lib/tools/HandTool/HandTool.mjs.map +7 -0
  686. package/dist-esm/lib/tools/HandTool/childStates/Dragging.mjs +38 -0
  687. package/dist-esm/lib/tools/HandTool/childStates/Dragging.mjs.map +7 -0
  688. package/dist-esm/lib/tools/HandTool/childStates/Idle.mjs +17 -0
  689. package/dist-esm/lib/tools/HandTool/childStates/Idle.mjs.map +7 -0
  690. package/dist-esm/lib/tools/HandTool/childStates/Pointing.mjs +35 -0
  691. package/dist-esm/lib/tools/HandTool/childStates/Pointing.mjs.map +7 -0
  692. package/dist-esm/lib/tools/LaserTool/LaserTool.mjs +15 -0
  693. package/dist-esm/lib/tools/LaserTool/LaserTool.mjs.map +7 -0
  694. package/dist-esm/lib/tools/LaserTool/childStates/Idle.mjs +11 -0
  695. package/dist-esm/lib/tools/LaserTool/childStates/Idle.mjs.map +7 -0
  696. package/dist-esm/lib/tools/LaserTool/childStates/Lasering.mjs +46 -0
  697. package/dist-esm/lib/tools/LaserTool/childStates/Lasering.mjs.map +7 -0
  698. package/dist-esm/lib/tools/SelectTool/DragAndDropManager.mjs +80 -0
  699. package/dist-esm/lib/tools/SelectTool/DragAndDropManager.mjs.map +7 -0
  700. package/dist-esm/lib/tools/SelectTool/SelectTool.mjs +50 -0
  701. package/dist-esm/lib/tools/SelectTool/SelectTool.mjs.map +7 -0
  702. package/dist-esm/lib/tools/SelectTool/childStates/Brushing.mjs +131 -0
  703. package/dist-esm/lib/tools/SelectTool/childStates/Brushing.mjs.map +7 -0
  704. package/dist-esm/lib/tools/SelectTool/childStates/Crop/Crop.mjs +13 -0
  705. package/dist-esm/lib/tools/SelectTool/childStates/Crop/Crop.mjs.map +7 -0
  706. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/Idle.mjs +187 -0
  707. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/Idle.mjs.map +7 -0
  708. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.mjs +19 -0
  709. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.mjs.map +7 -0
  710. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/TranslatingCrop.mjs +81 -0
  711. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/TranslatingCrop.mjs.map +7 -0
  712. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/crop_helpers.mjs +40 -0
  713. package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/crop_helpers.mjs.map +7 -0
  714. package/dist-esm/lib/tools/SelectTool/childStates/Crop/crop-constants.mjs +5 -0
  715. package/dist-esm/lib/tools/SelectTool/childStates/Crop/crop-constants.mjs.map +7 -0
  716. package/dist-esm/lib/tools/SelectTool/childStates/Cropping.mjs +194 -0
  717. package/dist-esm/lib/tools/SelectTool/childStates/Cropping.mjs.map +7 -0
  718. package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs +217 -0
  719. package/dist-esm/lib/tools/SelectTool/childStates/DraggingHandle.mjs.map +7 -0
  720. package/dist-esm/lib/tools/SelectTool/childStates/EditingShape.mjs +103 -0
  721. package/dist-esm/lib/tools/SelectTool/childStates/EditingShape.mjs.map +7 -0
  722. package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs +447 -0
  723. package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs.map +7 -0
  724. package/dist-esm/lib/tools/SelectTool/childStates/PointingCanvas.mjs +36 -0
  725. package/dist-esm/lib/tools/SelectTool/childStates/PointingCanvas.mjs.map +7 -0
  726. package/dist-esm/lib/tools/SelectTool/childStates/PointingCropHandle.mjs +69 -0
  727. package/dist-esm/lib/tools/SelectTool/childStates/PointingCropHandle.mjs.map +7 -0
  728. package/dist-esm/lib/tools/SelectTool/childStates/PointingHandle.mjs +47 -0
  729. package/dist-esm/lib/tools/SelectTool/childStates/PointingHandle.mjs.map +7 -0
  730. package/dist-esm/lib/tools/SelectTool/childStates/PointingResizeHandle.mjs +73 -0
  731. package/dist-esm/lib/tools/SelectTool/childStates/PointingResizeHandle.mjs.map +7 -0
  732. package/dist-esm/lib/tools/SelectTool/childStates/PointingRotateHandle.mjs +63 -0
  733. package/dist-esm/lib/tools/SelectTool/childStates/PointingRotateHandle.mjs.map +7 -0
  734. package/dist-esm/lib/tools/SelectTool/childStates/PointingSelection.mjs +55 -0
  735. package/dist-esm/lib/tools/SelectTool/childStates/PointingSelection.mjs.map +7 -0
  736. package/dist-esm/lib/tools/SelectTool/childStates/PointingShape.mjs +159 -0
  737. package/dist-esm/lib/tools/SelectTool/childStates/PointingShape.mjs.map +7 -0
  738. package/dist-esm/lib/tools/SelectTool/childStates/Resizing.mjs +360 -0
  739. package/dist-esm/lib/tools/SelectTool/childStates/Resizing.mjs.map +7 -0
  740. package/dist-esm/lib/tools/SelectTool/childStates/Rotating.mjs +136 -0
  741. package/dist-esm/lib/tools/SelectTool/childStates/Rotating.mjs.map +7 -0
  742. package/dist-esm/lib/tools/SelectTool/childStates/ScribbleBrushing.mjs +125 -0
  743. package/dist-esm/lib/tools/SelectTool/childStates/ScribbleBrushing.mjs.map +7 -0
  744. package/dist-esm/lib/tools/SelectTool/childStates/Translating.mjs +302 -0
  745. package/dist-esm/lib/tools/SelectTool/childStates/Translating.mjs.map +7 -0
  746. package/dist-esm/lib/tools/SelectTool/children/DraggingHandle.mjs +217 -0
  747. package/dist-esm/lib/tools/SelectTool/children/DraggingHandle.mjs.map +7 -0
  748. package/dist-esm/lib/tools/ZoomTool/ZoomTool.mjs +61 -0
  749. package/dist-esm/lib/tools/ZoomTool/ZoomTool.mjs.map +7 -0
  750. package/dist-esm/lib/tools/ZoomTool/childStates/Idle.mjs +15 -0
  751. package/dist-esm/lib/tools/ZoomTool/childStates/Idle.mjs.map +7 -0
  752. package/dist-esm/lib/tools/ZoomTool/childStates/Pointing.mjs +35 -0
  753. package/dist-esm/lib/tools/ZoomTool/childStates/Pointing.mjs.map +7 -0
  754. package/dist-esm/lib/tools/ZoomTool/childStates/ZoomBrushing.mjs +52 -0
  755. package/dist-esm/lib/tools/ZoomTool/childStates/ZoomBrushing.mjs.map +7 -0
  756. package/dist-esm/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.mjs +21 -0
  757. package/dist-esm/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.mjs.map +7 -0
  758. package/dist-esm/lib/tools/selection-logic/getShouldEnterCropModeOnPointerDown.mjs +8 -0
  759. package/dist-esm/lib/tools/selection-logic/getShouldEnterCropModeOnPointerDown.mjs.map +7 -0
  760. package/dist-esm/lib/tools/selection-logic/selectOnCanvasPointerUp.mjs +60 -0
  761. package/dist-esm/lib/tools/selection-logic/selectOnCanvasPointerUp.mjs.map +7 -0
  762. package/dist-esm/lib/tools/selection-logic/updateHoveredId.mjs +27 -0
  763. package/dist-esm/lib/tools/selection-logic/updateHoveredId.mjs.map +7 -0
  764. package/dist-esm/lib/ui/TldrawUi.mjs +125 -0
  765. package/dist-esm/lib/ui/TldrawUi.mjs.map +7 -0
  766. package/dist-esm/lib/ui/TldrawUiContextProvider.mjs +37 -0
  767. package/dist-esm/lib/ui/TldrawUiContextProvider.mjs.map +7 -0
  768. package/dist-esm/lib/ui/assetUrls.mjs +47 -0
  769. package/dist-esm/lib/ui/assetUrls.mjs.map +7 -0
  770. package/dist-esm/lib/ui/components/ActionsMenu.mjs +66 -0
  771. package/dist-esm/lib/ui/components/ActionsMenu.mjs.map +7 -0
  772. package/dist-esm/lib/ui/components/BackToContent.mjs +47 -0
  773. package/dist-esm/lib/ui/components/BackToContent.mjs.map +7 -0
  774. package/dist-esm/lib/ui/components/ContextMenu.mjs +184 -0
  775. package/dist-esm/lib/ui/components/ContextMenu.mjs.map +7 -0
  776. package/dist-esm/lib/ui/components/DebugPanel.mjs +315 -0
  777. package/dist-esm/lib/ui/components/DebugPanel.mjs.map +7 -0
  778. package/dist-esm/lib/ui/components/Dialogs.mjs +34 -0
  779. package/dist-esm/lib/ui/components/Dialogs.mjs.map +7 -0
  780. package/dist-esm/lib/ui/components/DuplicateButton.mjs +27 -0
  781. package/dist-esm/lib/ui/components/DuplicateButton.mjs.map +7 -0
  782. package/dist-esm/lib/ui/components/EditLinkDialog.mjs +131 -0
  783. package/dist-esm/lib/ui/components/EditLinkDialog.mjs.map +7 -0
  784. package/dist-esm/lib/ui/components/EmbedDialog.mjs +122 -0
  785. package/dist-esm/lib/ui/components/EmbedDialog.mjs.map +7 -0
  786. package/dist-esm/lib/ui/components/FollowingIndicator.mjs +21 -0
  787. package/dist-esm/lib/ui/components/FollowingIndicator.mjs.map +7 -0
  788. package/dist-esm/lib/ui/components/HTMLCanvas.mjs +36 -0
  789. package/dist-esm/lib/ui/components/HTMLCanvas.mjs.map +7 -0
  790. package/dist-esm/lib/ui/components/HelpMenu.mjs +86 -0
  791. package/dist-esm/lib/ui/components/HelpMenu.mjs.map +7 -0
  792. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog.mjs +44 -0
  793. package/dist-esm/lib/ui/components/KeyboardShortcutsDialog.mjs.map +7 -0
  794. package/dist-esm/lib/ui/components/LanguageMenu.mjs +30 -0
  795. package/dist-esm/lib/ui/components/LanguageMenu.mjs.map +7 -0
  796. package/dist-esm/lib/ui/components/Menu.mjs +109 -0
  797. package/dist-esm/lib/ui/components/Menu.mjs.map +7 -0
  798. package/dist-esm/lib/ui/components/MenuZone.mjs +31 -0
  799. package/dist-esm/lib/ui/components/MenuZone.mjs.map +7 -0
  800. package/dist-esm/lib/ui/components/MobileStylePanel.mjs +54 -0
  801. package/dist-esm/lib/ui/components/MobileStylePanel.mjs.map +7 -0
  802. package/dist-esm/lib/ui/components/MoveToPageMenu.mjs +112 -0
  803. package/dist-esm/lib/ui/components/MoveToPageMenu.mjs.map +7 -0
  804. package/dist-esm/lib/ui/components/NavigationZone/Minimap.mjs +191 -0
  805. package/dist-esm/lib/ui/components/NavigationZone/Minimap.mjs.map +7 -0
  806. package/dist-esm/lib/ui/components/NavigationZone/MinimapManager.mjs +279 -0
  807. package/dist-esm/lib/ui/components/NavigationZone/MinimapManager.mjs.map +7 -0
  808. package/dist-esm/lib/ui/components/NavigationZone/NavigationZone.mjs +83 -0
  809. package/dist-esm/lib/ui/components/NavigationZone/NavigationZone.mjs.map +7 -0
  810. package/dist-esm/lib/ui/components/NavigationZone/ZoomMenu.mjs +88 -0
  811. package/dist-esm/lib/ui/components/NavigationZone/ZoomMenu.mjs.map +7 -0
  812. package/dist-esm/lib/ui/components/OfflineIndicator/OfflineIndicator.mjs +17 -0
  813. package/dist-esm/lib/ui/components/OfflineIndicator/OfflineIndicator.mjs.map +7 -0
  814. package/dist-esm/lib/ui/components/PageMenu/PageItemInput.mjs +43 -0
  815. package/dist-esm/lib/ui/components/PageMenu/PageItemInput.mjs.map +7 -0
  816. package/dist-esm/lib/ui/components/PageMenu/PageItemSubmenu.mjs +58 -0
  817. package/dist-esm/lib/ui/components/PageMenu/PageItemSubmenu.mjs.map +7 -0
  818. package/dist-esm/lib/ui/components/PageMenu/PageMenu.mjs +381 -0
  819. package/dist-esm/lib/ui/components/PageMenu/PageMenu.mjs.map +7 -0
  820. package/dist-esm/lib/ui/components/PageMenu/edit-pages-shared.mjs +29 -0
  821. package/dist-esm/lib/ui/components/PageMenu/edit-pages-shared.mjs.map +7 -0
  822. package/dist-esm/lib/ui/components/PenModeToggle.mjs +25 -0
  823. package/dist-esm/lib/ui/components/PenModeToggle.mjs.map +7 -0
  824. package/dist-esm/lib/ui/components/RedoButton.mjs +29 -0
  825. package/dist-esm/lib/ui/components/RedoButton.mjs.map +7 -0
  826. package/dist-esm/lib/ui/components/Spinner.mjs +21 -0
  827. package/dist-esm/lib/ui/components/Spinner.mjs.map +7 -0
  828. package/dist-esm/lib/ui/components/StopFollowing.mjs +25 -0
  829. package/dist-esm/lib/ui/components/StopFollowing.mjs.map +7 -0
  830. package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs +108 -0
  831. package/dist-esm/lib/ui/components/StylePanel/DoubleDropdownPicker.mjs.map +7 -0
  832. package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs +59 -0
  833. package/dist-esm/lib/ui/components/StylePanel/DropdownPicker.mjs.map +7 -0
  834. package/dist-esm/lib/ui/components/StylePanel/StylePanel.mjs +297 -0
  835. package/dist-esm/lib/ui/components/StylePanel/StylePanel.mjs.map +7 -0
  836. package/dist-esm/lib/ui/components/StylePanel/styles.mjs +99 -0
  837. package/dist-esm/lib/ui/components/StylePanel/styles.mjs.map +7 -0
  838. package/dist-esm/lib/ui/components/Toasts.mjs +71 -0
  839. package/dist-esm/lib/ui/components/Toasts.mjs.map +7 -0
  840. package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs +43 -0
  841. package/dist-esm/lib/ui/components/Toolbar/ToggleToolLockedButton.mjs.map +7 -0
  842. package/dist-esm/lib/ui/components/Toolbar/Toolbar.mjs +217 -0
  843. package/dist-esm/lib/ui/components/Toolbar/Toolbar.mjs.map +7 -0
  844. package/dist-esm/lib/ui/components/TrashButton.mjs +31 -0
  845. package/dist-esm/lib/ui/components/TrashButton.mjs.map +7 -0
  846. package/dist-esm/lib/ui/components/UndoButton.mjs +29 -0
  847. package/dist-esm/lib/ui/components/UndoButton.mjs.map +7 -0
  848. package/dist-esm/lib/ui/components/primitives/Button.mjs +49 -0
  849. package/dist-esm/lib/ui/components/primitives/Button.mjs.map +7 -0
  850. package/dist-esm/lib/ui/components/primitives/ButtonPicker.mjs +96 -0
  851. package/dist-esm/lib/ui/components/primitives/ButtonPicker.mjs.map +7 -0
  852. package/dist-esm/lib/ui/components/primitives/Dialog.mjs +40 -0
  853. package/dist-esm/lib/ui/components/primitives/Dialog.mjs.map +7 -0
  854. package/dist-esm/lib/ui/components/primitives/DropdownMenu.mjs +157 -0
  855. package/dist-esm/lib/ui/components/primitives/DropdownMenu.mjs.map +7 -0
  856. package/dist-esm/lib/ui/components/primitives/Icon.mjs +41 -0
  857. package/dist-esm/lib/ui/components/primitives/Icon.mjs.map +7 -0
  858. package/dist-esm/lib/ui/components/primitives/Input.mjs +125 -0
  859. package/dist-esm/lib/ui/components/primitives/Input.mjs.map +7 -0
  860. package/dist-esm/lib/ui/components/primitives/Kbd.mjs +9 -0
  861. package/dist-esm/lib/ui/components/primitives/Kbd.mjs.map +7 -0
  862. package/dist-esm/lib/ui/components/primitives/Popover.mjs +39 -0
  863. package/dist-esm/lib/ui/components/primitives/Popover.mjs.map +7 -0
  864. package/dist-esm/lib/ui/components/primitives/Slider.mjs +49 -0
  865. package/dist-esm/lib/ui/components/primitives/Slider.mjs.map +7 -0
  866. package/dist-esm/lib/ui/components/primitives/shared.mjs +24 -0
  867. package/dist-esm/lib/ui/components/primitives/shared.mjs.map +7 -0
  868. package/dist-esm/lib/ui/constants.mjs +5 -0
  869. package/dist-esm/lib/ui/constants.mjs.map +7 -0
  870. package/dist-esm/lib/ui/hooks/clipboard/pasteExcalidrawContent.mjs +444 -0
  871. package/dist-esm/lib/ui/hooks/clipboard/pasteExcalidrawContent.mjs.map +7 -0
  872. package/dist-esm/lib/ui/hooks/clipboard/pasteFiles.mjs +17 -0
  873. package/dist-esm/lib/ui/hooks/clipboard/pasteFiles.mjs.map +7 -0
  874. package/dist-esm/lib/ui/hooks/clipboard/pasteTldrawContent.mjs +12 -0
  875. package/dist-esm/lib/ui/hooks/clipboard/pasteTldrawContent.mjs.map +7 -0
  876. package/dist-esm/lib/ui/hooks/clipboard/pasteUrl.mjs +28 -0
  877. package/dist-esm/lib/ui/hooks/clipboard/pasteUrl.mjs.map +7 -0
  878. package/dist-esm/lib/ui/hooks/menuHelpers.mjs +157 -0
  879. package/dist-esm/lib/ui/hooks/menuHelpers.mjs.map +7 -0
  880. package/dist-esm/lib/ui/hooks/useActions.mjs +1132 -0
  881. package/dist-esm/lib/ui/hooks/useActions.mjs.map +7 -0
  882. package/dist-esm/lib/ui/hooks/useActionsMenuSchema.mjs +87 -0
  883. package/dist-esm/lib/ui/hooks/useActionsMenuSchema.mjs.map +7 -0
  884. package/dist-esm/lib/ui/hooks/useAssetUrls.mjs +21 -0
  885. package/dist-esm/lib/ui/hooks/useAssetUrls.mjs.map +7 -0
  886. package/dist-esm/lib/ui/hooks/useBreakpoint.mjs +34 -0
  887. package/dist-esm/lib/ui/hooks/useBreakpoint.mjs.map +7 -0
  888. package/dist-esm/lib/ui/hooks/useCanRedo.mjs +9 -0
  889. package/dist-esm/lib/ui/hooks/useCanRedo.mjs.map +7 -0
  890. package/dist-esm/lib/ui/hooks/useCanUndo.mjs +9 -0
  891. package/dist-esm/lib/ui/hooks/useCanUndo.mjs.map +7 -0
  892. package/dist-esm/lib/ui/hooks/useClipboardEvents.mjs +448 -0
  893. package/dist-esm/lib/ui/hooks/useClipboardEvents.mjs.map +7 -0
  894. package/dist-esm/lib/ui/hooks/useContextMenuSchema.mjs +208 -0
  895. package/dist-esm/lib/ui/hooks/useContextMenuSchema.mjs.map +7 -0
  896. package/dist-esm/lib/ui/hooks/useCopyAs.mjs +27 -0
  897. package/dist-esm/lib/ui/hooks/useCopyAs.mjs.map +7 -0
  898. package/dist-esm/lib/ui/hooks/useDialogsProvider.mjs +88 -0
  899. package/dist-esm/lib/ui/hooks/useDialogsProvider.mjs.map +7 -0
  900. package/dist-esm/lib/ui/hooks/useEditorEvents.mjs +23 -0
  901. package/dist-esm/lib/ui/hooks/useEditorEvents.mjs.map +7 -0
  902. package/dist-esm/lib/ui/hooks/useEventsProvider.mjs +17 -0
  903. package/dist-esm/lib/ui/hooks/useEventsProvider.mjs.map +7 -0
  904. package/dist-esm/lib/ui/hooks/useExportAs.mjs +31 -0
  905. package/dist-esm/lib/ui/hooks/useExportAs.mjs.map +7 -0
  906. package/dist-esm/lib/ui/hooks/useHasLinkShapeSelected.mjs +16 -0
  907. package/dist-esm/lib/ui/hooks/useHasLinkShapeSelected.mjs.map +7 -0
  908. package/dist-esm/lib/ui/hooks/useHelpMenuSchema.mjs +73 -0
  909. package/dist-esm/lib/ui/hooks/useHelpMenuSchema.mjs.map +7 -0
  910. package/dist-esm/lib/ui/hooks/useHighDpiCanvas.mjs +15 -0
  911. package/dist-esm/lib/ui/hooks/useHighDpiCanvas.mjs.map +7 -0
  912. package/dist-esm/lib/ui/hooks/useInsertMedia.mjs +37 -0
  913. package/dist-esm/lib/ui/hooks/useInsertMedia.mjs.map +7 -0
  914. package/dist-esm/lib/ui/hooks/useKeyboardShortcuts.mjs +108 -0
  915. package/dist-esm/lib/ui/hooks/useKeyboardShortcuts.mjs.map +7 -0
  916. package/dist-esm/lib/ui/hooks/useKeyboardShortcutsSchema.mjs +104 -0
  917. package/dist-esm/lib/ui/hooks/useKeyboardShortcutsSchema.mjs.map +7 -0
  918. package/dist-esm/lib/ui/hooks/useLocalStorageState.mjs +29 -0
  919. package/dist-esm/lib/ui/hooks/useLocalStorageState.mjs.map +7 -0
  920. package/dist-esm/lib/ui/hooks/useMenuIsOpen.mjs +54 -0
  921. package/dist-esm/lib/ui/hooks/useMenuIsOpen.mjs.map +7 -0
  922. package/dist-esm/lib/ui/hooks/useMenuSchema.mjs +239 -0
  923. package/dist-esm/lib/ui/hooks/useMenuSchema.mjs.map +7 -0
  924. package/dist-esm/lib/ui/hooks/useOnlyFlippableShape.mjs +21 -0
  925. package/dist-esm/lib/ui/hooks/useOnlyFlippableShape.mjs.map +7 -0
  926. package/dist-esm/lib/ui/hooks/usePreloadAssets.mjs +86 -0
  927. package/dist-esm/lib/ui/hooks/usePreloadAssets.mjs.map +7 -0
  928. package/dist-esm/lib/ui/hooks/usePreloadIcons.mjs +31 -0
  929. package/dist-esm/lib/ui/hooks/usePreloadIcons.mjs.map +7 -0
  930. package/dist-esm/lib/ui/hooks/usePrint.mjs +200 -0
  931. package/dist-esm/lib/ui/hooks/usePrint.mjs.map +7 -0
  932. package/dist-esm/lib/ui/hooks/useReadonly.mjs +9 -0
  933. package/dist-esm/lib/ui/hooks/useReadonly.mjs.map +7 -0
  934. package/dist-esm/lib/ui/hooks/useRevelantStyles.mjs +33 -0
  935. package/dist-esm/lib/ui/hooks/useRevelantStyles.mjs.map +7 -0
  936. package/dist-esm/lib/ui/hooks/useShowAutoSizeToggle.mjs +16 -0
  937. package/dist-esm/lib/ui/hooks/useShowAutoSizeToggle.mjs.map +7 -0
  938. package/dist-esm/lib/ui/hooks/useToastsProvider.mjs +33 -0
  939. package/dist-esm/lib/ui/hooks/useToastsProvider.mjs.map +7 -0
  940. package/dist-esm/lib/ui/hooks/useToolbarSchema.mjs +69 -0
  941. package/dist-esm/lib/ui/hooks/useToolbarSchema.mjs.map +7 -0
  942. package/dist-esm/lib/ui/hooks/useTools.mjs +205 -0
  943. package/dist-esm/lib/ui/hooks/useTools.mjs.map +7 -0
  944. package/dist-esm/lib/ui/hooks/useTranslation/TLUiTranslationKey.mjs +1 -0
  945. package/dist-esm/lib/ui/hooks/useTranslation/TLUiTranslationKey.mjs.map +7 -0
  946. package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs +357 -0
  947. package/dist-esm/lib/ui/hooks/useTranslation/defaultTranslation.mjs.map +7 -0
  948. package/dist-esm/lib/ui/hooks/useTranslation/translations.mjs +47 -0
  949. package/dist-esm/lib/ui/hooks/useTranslation/translations.mjs.map +7 -0
  950. package/dist-esm/lib/ui/hooks/useTranslation/useLanguages.mjs +12 -0
  951. package/dist-esm/lib/ui/hooks/useTranslation/useLanguages.mjs.map +7 -0
  952. package/dist-esm/lib/ui/hooks/useTranslation/useTranslation.mjs +71 -0
  953. package/dist-esm/lib/ui/hooks/useTranslation/useTranslation.mjs.map +7 -0
  954. package/dist-esm/lib/ui/icon-types.mjs +170 -0
  955. package/dist-esm/lib/ui/icon-types.mjs.map +7 -0
  956. package/dist-esm/lib/ui/overrides.mjs +158 -0
  957. package/dist-esm/lib/ui/overrides.mjs.map +7 -0
  958. package/dist-esm/lib/ui/version.mjs +5 -0
  959. package/dist-esm/lib/ui/version.mjs.map +7 -0
  960. package/dist-esm/lib/utils/assets/assets.mjs +61 -0
  961. package/dist-esm/lib/utils/assets/assets.mjs.map +7 -0
  962. package/dist-esm/lib/utils/assets/is-gif-animated.mjs +54 -0
  963. package/dist-esm/lib/utils/assets/is-gif-animated.mjs.map +7 -0
  964. package/dist-esm/lib/utils/assets.mjs +61 -0
  965. package/dist-esm/lib/utils/assets.mjs.map +7 -0
  966. package/dist-esm/lib/utils/embeds/embeds.mjs +65 -0
  967. package/dist-esm/lib/utils/embeds/embeds.mjs.map +7 -0
  968. package/dist-esm/lib/utils/export/copyAs.mjs +96 -0
  969. package/dist-esm/lib/utils/export/copyAs.mjs.map +7 -0
  970. package/dist-esm/lib/utils/export/export.mjs +97 -0
  971. package/dist-esm/lib/utils/export/export.mjs.map +7 -0
  972. package/dist-esm/lib/utils/export/exportAs.mjs +68 -0
  973. package/dist-esm/lib/utils/export/exportAs.mjs.map +7 -0
  974. package/dist-esm/lib/utils/frames/frames.mjs +76 -0
  975. package/dist-esm/lib/utils/frames/frames.mjs.map +7 -0
  976. package/dist-esm/lib/utils/static-assets/assetUrls.mjs +28 -0
  977. package/dist-esm/lib/utils/static-assets/assetUrls.mjs.map +7 -0
  978. package/dist-esm/lib/utils/text/text.mjs +37 -0
  979. package/dist-esm/lib/utils/text/text.mjs.map +7 -0
  980. package/dist-esm/lib/utils/tldr/buildFromV1Document.mjs +779 -0
  981. package/dist-esm/lib/utils/tldr/buildFromV1Document.mjs.map +7 -0
  982. package/dist-esm/lib/utils/tldr/file.mjs +219 -0
  983. package/dist-esm/lib/utils/tldr/file.mjs.map +7 -0
  984. package/package.json +105 -0
  985. package/src/index.ts +174 -0
  986. package/src/lib/Tldraw.test.tsx +78 -0
  987. package/src/lib/Tldraw.tsx +179 -0
  988. package/src/lib/canvas/TldrawCropHandles.tsx +126 -0
  989. package/src/lib/canvas/TldrawHandles.tsx +15 -0
  990. package/src/lib/canvas/TldrawHoveredShapeIndicator.tsx +30 -0
  991. package/src/lib/canvas/TldrawScribble.tsx +45 -0
  992. package/src/lib/canvas/TldrawSelectionBackground.tsx +29 -0
  993. package/src/lib/canvas/TldrawSelectionForeground.tsx +526 -0
  994. package/src/lib/defaultExternalContentHandlers.ts +533 -0
  995. package/src/lib/defaultShapeTools.ts +20 -0
  996. package/src/lib/defaultShapeUtils.ts +29 -0
  997. package/src/lib/defaultSideEffects.ts +48 -0
  998. package/src/lib/defaultTools.ts +8 -0
  999. package/src/lib/shapes/arrow/ArrowShapeTool.test.ts +558 -0
  1000. package/src/lib/shapes/arrow/ArrowShapeTool.ts +12 -0
  1001. package/src/lib/shapes/arrow/ArrowShapeUtil.test.ts +595 -0
  1002. package/src/lib/shapes/arrow/ArrowShapeUtil.tsx +1036 -0
  1003. package/src/lib/shapes/arrow/components/ArrowTextLabel.tsx +87 -0
  1004. package/src/lib/shapes/arrow/toolStates/Idle.ts +37 -0
  1005. package/src/lib/shapes/arrow/toolStates/Pointing.ts +190 -0
  1006. package/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx +196 -0
  1007. package/src/lib/shapes/draw/DrawShapeTool.test.ts +52 -0
  1008. package/src/lib/shapes/draw/DrawShapeTool.ts +17 -0
  1009. package/src/lib/shapes/draw/DrawShapeUtil.tsx +298 -0
  1010. package/src/lib/shapes/draw/getPath.ts +108 -0
  1011. package/src/lib/shapes/draw/toolStates/Drawing.ts +722 -0
  1012. package/src/lib/shapes/draw/toolStates/Idle.ts +17 -0
  1013. package/src/lib/shapes/embed/EmbedShapeUtil.tsx +218 -0
  1014. package/src/lib/shapes/frame/FrameShapeTool.test.ts +169 -0
  1015. package/src/lib/shapes/frame/FrameShapeTool.ts +53 -0
  1016. package/src/lib/shapes/frame/FrameShapeUtil.tsx +258 -0
  1017. package/src/lib/shapes/frame/components/FrameHeading.tsx +115 -0
  1018. package/src/lib/shapes/frame/components/FrameLabelInput.tsx +85 -0
  1019. package/src/lib/shapes/geo/GeoShapeTool.test.ts +191 -0
  1020. package/src/lib/shapes/geo/GeoShapeTool.ts +11 -0
  1021. package/src/lib/shapes/geo/GeoShapeUtil.tsx +1153 -0
  1022. package/src/lib/shapes/geo/cloudOutline.ts +391 -0
  1023. package/src/lib/shapes/geo/components/DashStyleCloud.tsx +135 -0
  1024. package/src/lib/shapes/geo/components/DashStyleEllipse.tsx +117 -0
  1025. package/src/lib/shapes/geo/components/DashStyleOval.tsx +102 -0
  1026. package/src/lib/shapes/geo/components/DashStylePolygon.tsx +152 -0
  1027. package/src/lib/shapes/geo/components/DrawStyleCloud.tsx +65 -0
  1028. package/src/lib/shapes/geo/components/DrawStyleEllipse.tsx +145 -0
  1029. package/src/lib/shapes/geo/components/DrawStylePolygon.tsx +263 -0
  1030. package/src/lib/shapes/geo/components/SolidStyleCloud.tsx +65 -0
  1031. package/src/lib/shapes/geo/components/SolidStyleEllipse.tsx +68 -0
  1032. package/src/lib/shapes/geo/components/SolidStyleOval.tsx +83 -0
  1033. package/src/lib/shapes/geo/components/SolidStylePolygon.tsx +77 -0
  1034. package/src/lib/shapes/geo/helpers.ts +34 -0
  1035. package/src/lib/shapes/geo/toolStates/Idle.ts +38 -0
  1036. package/src/lib/shapes/geo/toolStates/Pointing.ts +131 -0
  1037. package/src/lib/shapes/highlight/HighlightShapeTool.test.ts +3 -0
  1038. package/src/lib/shapes/highlight/HighlightShapeTool.ts +17 -0
  1039. package/src/lib/shapes/highlight/HighlightShapeUtil.tsx +255 -0
  1040. package/src/lib/shapes/image/ImageShapeUtil.tsx +313 -0
  1041. package/src/lib/shapes/line/LineShapeTool.test.ts +228 -0
  1042. package/src/lib/shapes/line/LineShapeTool.ts +12 -0
  1043. package/src/lib/shapes/line/LineShapeUtil.test.ts +222 -0
  1044. package/src/lib/shapes/line/LineShapeUtil.tsx +421 -0
  1045. package/src/lib/shapes/line/__snapshots__/LineShapeUtil.test.ts.snap +41 -0
  1046. package/src/lib/shapes/line/components/getLinePath.ts +91 -0
  1047. package/src/lib/shapes/line/components/svg.ts +62 -0
  1048. package/src/lib/shapes/line/toolStates/Idle.ts +20 -0
  1049. package/src/lib/shapes/line/toolStates/Pointing.ts +165 -0
  1050. package/src/lib/shapes/note/NoteShapeTool.test.ts +146 -0
  1051. package/src/lib/shapes/note/NoteShapeTool.ts +11 -0
  1052. package/src/lib/shapes/note/NoteShapeUtil.tsx +221 -0
  1053. package/src/lib/shapes/note/toolStates/Idle.ts +17 -0
  1054. package/src/lib/shapes/note/toolStates/Pointing.ts +121 -0
  1055. package/src/lib/shapes/shared/HyperlinkButton.tsx +30 -0
  1056. package/src/lib/shapes/shared/ShapeFill.tsx +113 -0
  1057. package/src/lib/shapes/shared/TextHelpers.ts +289 -0
  1058. package/src/lib/shapes/shared/TextLabel.tsx +131 -0
  1059. package/src/lib/shapes/shared/createTextSvgElementFromSpans.ts +101 -0
  1060. package/src/lib/shapes/shared/default-shape-constants.ts +57 -0
  1061. package/src/lib/shapes/shared/defaultStyleDefs.tsx +276 -0
  1062. package/src/lib/shapes/shared/freehand/getStroke.ts +23 -0
  1063. package/src/lib/shapes/shared/freehand/getStrokeOutlinePoints.ts +333 -0
  1064. package/src/lib/shapes/shared/freehand/getStrokePoints.ts +187 -0
  1065. package/src/lib/shapes/shared/freehand/getStrokeRadius.ts +13 -0
  1066. package/src/lib/shapes/shared/freehand/setStrokePointRadii.ts +127 -0
  1067. package/src/lib/shapes/shared/freehand/svg.ts +50 -0
  1068. package/src/lib/shapes/shared/freehand/svgInk.ts +195 -0
  1069. package/src/lib/shapes/shared/freehand/types.ts +49 -0
  1070. package/src/lib/shapes/shared/getBrowserCanvasMaxSize.tsx +28 -0
  1071. package/src/lib/shapes/shared/getPerfectDashProps.ts +96 -0
  1072. package/src/lib/shapes/shared/getTextLabelSvgElement.ts +42 -0
  1073. package/src/lib/shapes/shared/legacyProps.ts +25 -0
  1074. package/src/lib/shapes/shared/polygon-helpers.ts +131 -0
  1075. package/src/lib/shapes/shared/resizeBox.ts +130 -0
  1076. package/src/lib/shapes/shared/resizeScaled.ts +40 -0
  1077. package/src/lib/shapes/shared/rotated-box-shadow.ts +29 -0
  1078. package/src/lib/shapes/shared/useColorSpace.tsx +21 -0
  1079. package/src/lib/shapes/shared/useEditableText.ts +211 -0
  1080. package/src/lib/shapes/shared/useForceSolid.ts +6 -0
  1081. package/src/lib/shapes/shared/usePrefersReducedMotion.tsx +18 -0
  1082. package/src/lib/shapes/text/TextShapeTool.test.ts +157 -0
  1083. package/src/lib/shapes/text/TextShapeTool.ts +11 -0
  1084. package/src/lib/shapes/text/TextShapeUtil.tsx +401 -0
  1085. package/src/lib/shapes/text/toolStates/Idle.ts +47 -0
  1086. package/src/lib/shapes/text/toolStates/Pointing.ts +105 -0
  1087. package/src/lib/shapes/video/VideoShapeUtil.tsx +215 -0
  1088. package/src/lib/tools/EraserTool/EraserTool.ts +15 -0
  1089. package/src/lib/tools/EraserTool/childStates/Erasing.ts +131 -0
  1090. package/src/lib/tools/EraserTool/childStates/Idle.ts +13 -0
  1091. package/src/lib/tools/EraserTool/childStates/Pointing.ts +93 -0
  1092. package/src/lib/tools/HandTool/HandTool.ts +40 -0
  1093. package/src/lib/tools/HandTool/childStates/Dragging.ts +45 -0
  1094. package/src/lib/tools/HandTool/childStates/Idle.ts +17 -0
  1095. package/src/lib/tools/HandTool/childStates/Pointing.ts +39 -0
  1096. package/src/lib/tools/LaserTool/LaserTool.ts +14 -0
  1097. package/src/lib/tools/LaserTool/childStates/Idle.ts +9 -0
  1098. package/src/lib/tools/LaserTool/childStates/Lasering.ts +53 -0
  1099. package/src/lib/tools/SelectTool/DragAndDropManager.ts +112 -0
  1100. package/src/lib/tools/SelectTool/SelectTool.ts +49 -0
  1101. package/src/lib/tools/SelectTool/childStates/Brushing.ts +206 -0
  1102. package/src/lib/tools/SelectTool/childStates/Crop/Crop.ts +10 -0
  1103. package/src/lib/tools/SelectTool/childStates/Crop/children/Idle.ts +217 -0
  1104. package/src/lib/tools/SelectTool/childStates/Crop/children/PointingCrop.ts +19 -0
  1105. package/src/lib/tools/SelectTool/childStates/Crop/children/TranslatingCrop.ts +108 -0
  1106. package/src/lib/tools/SelectTool/childStates/Crop/children/crop_helpers.ts +64 -0
  1107. package/src/lib/tools/SelectTool/childStates/Crop/crop-constants.ts +2 -0
  1108. package/src/lib/tools/SelectTool/childStates/Cropping.ts +249 -0
  1109. package/src/lib/tools/SelectTool/childStates/DraggingHandle.ts +308 -0
  1110. package/src/lib/tools/SelectTool/childStates/EditingShape.ts +130 -0
  1111. package/src/lib/tools/SelectTool/childStates/Idle.ts +575 -0
  1112. package/src/lib/tools/SelectTool/childStates/PointingCanvas.ts +41 -0
  1113. package/src/lib/tools/SelectTool/childStates/PointingCropHandle.ts +83 -0
  1114. package/src/lib/tools/SelectTool/childStates/PointingHandle.ts +56 -0
  1115. package/src/lib/tools/SelectTool/childStates/PointingResizeHandle.ts +90 -0
  1116. package/src/lib/tools/SelectTool/childStates/PointingRotateHandle.ts +76 -0
  1117. package/src/lib/tools/SelectTool/childStates/PointingSelection.ts +71 -0
  1118. package/src/lib/tools/SelectTool/childStates/PointingShape.ts +218 -0
  1119. package/src/lib/tools/SelectTool/childStates/Resizing.ts +511 -0
  1120. package/src/lib/tools/SelectTool/childStates/Rotating.ts +175 -0
  1121. package/src/lib/tools/SelectTool/childStates/ScribbleBrushing.ts +167 -0
  1122. package/src/lib/tools/SelectTool/childStates/Translating.ts +418 -0
  1123. package/src/lib/tools/SelectTool/children/DraggingHandle.ts +308 -0
  1124. package/src/lib/tools/ZoomTool/ZoomTool.ts +72 -0
  1125. package/src/lib/tools/ZoomTool/childStates/Idle.ts +15 -0
  1126. package/src/lib/tools/ZoomTool/childStates/Pointing.ts +39 -0
  1127. package/src/lib/tools/ZoomTool/childStates/ZoomBrushing.ts +62 -0
  1128. package/src/lib/tools/selection-logic/getHitShapeOnCanvasPointerDown.ts +20 -0
  1129. package/src/lib/tools/selection-logic/getShouldEnterCropModeOnPointerDown.ts +10 -0
  1130. package/src/lib/tools/selection-logic/selectOnCanvasPointerUp.ts +94 -0
  1131. package/src/lib/tools/selection-logic/selection.tldr +1041 -0
  1132. package/src/lib/tools/selection-logic/updateHoveredId.ts +32 -0
  1133. package/src/lib/ui/TldrawUi.tsx +195 -0
  1134. package/src/lib/ui/TldrawUiContextProvider.tsx +99 -0
  1135. package/src/lib/ui/assetUrls.ts +57 -0
  1136. package/src/lib/ui/components/ActionsMenu.tsx +75 -0
  1137. package/src/lib/ui/components/BackToContent.tsx +55 -0
  1138. package/src/lib/ui/components/ContextMenu.tsx +234 -0
  1139. package/src/lib/ui/components/DebugPanel.tsx +355 -0
  1140. package/src/lib/ui/components/Dialogs.tsx +52 -0
  1141. package/src/lib/ui/components/DuplicateButton.tsx +23 -0
  1142. package/src/lib/ui/components/EditLinkDialog.tsx +180 -0
  1143. package/src/lib/ui/components/EmbedDialog.tsx +143 -0
  1144. package/src/lib/ui/components/FollowingIndicator.tsx +16 -0
  1145. package/src/lib/ui/components/HTMLCanvas.tsx +54 -0
  1146. package/src/lib/ui/components/HelpMenu.tsx +109 -0
  1147. package/src/lib/ui/components/KeyboardShortcutsDialog.tsx +62 -0
  1148. package/src/lib/ui/components/LanguageMenu.tsx +38 -0
  1149. package/src/lib/ui/components/Menu.tsx +129 -0
  1150. package/src/lib/ui/components/MenuZone.tsx +35 -0
  1151. package/src/lib/ui/components/MobileStylePanel.tsx +61 -0
  1152. package/src/lib/ui/components/MoveToPageMenu.tsx +104 -0
  1153. package/src/lib/ui/components/NavigationZone/Minimap.tsx +245 -0
  1154. package/src/lib/ui/components/NavigationZone/MinimapManager.ts +382 -0
  1155. package/src/lib/ui/components/NavigationZone/NavigationZone.tsx +81 -0
  1156. package/src/lib/ui/components/NavigationZone/ZoomMenu.tsx +87 -0
  1157. package/src/lib/ui/components/OfflineIndicator/OfflineIndicator.tsx +17 -0
  1158. package/src/lib/ui/components/PageMenu/PageItemInput.tsx +46 -0
  1159. package/src/lib/ui/components/PageMenu/PageItemSubmenu.tsx +86 -0
  1160. package/src/lib/ui/components/PageMenu/PageMenu.tsx +415 -0
  1161. package/src/lib/ui/components/PageMenu/edit-pages-shared.ts +32 -0
  1162. package/src/lib/ui/components/PenModeToggle.tsx +24 -0
  1163. package/src/lib/ui/components/RedoButton.tsx +26 -0
  1164. package/src/lib/ui/components/Spinner.tsx +22 -0
  1165. package/src/lib/ui/components/StopFollowing.tsx +23 -0
  1166. package/src/lib/ui/components/StylePanel/DoubleDropdownPicker.tsx +150 -0
  1167. package/src/lib/ui/components/StylePanel/DropdownPicker.tsx +76 -0
  1168. package/src/lib/ui/components/StylePanel/StylePanel.tsx +332 -0
  1169. package/src/lib/ui/components/StylePanel/styles.tsx +100 -0
  1170. package/src/lib/ui/components/Toasts.tsx +104 -0
  1171. package/src/lib/ui/components/Toolbar/ToggleToolLockedButton.tsx +45 -0
  1172. package/src/lib/ui/components/Toolbar/Toolbar.tsx +281 -0
  1173. package/src/lib/ui/components/TrashButton.tsx +28 -0
  1174. package/src/lib/ui/components/UndoButton.tsx +26 -0
  1175. package/src/lib/ui/components/primitives/Button.tsx +69 -0
  1176. package/src/lib/ui/components/primitives/ButtonPicker.tsx +128 -0
  1177. package/src/lib/ui/components/primitives/Dialog.tsx +57 -0
  1178. package/src/lib/ui/components/primitives/DropdownMenu.tsx +229 -0
  1179. package/src/lib/ui/components/primitives/Icon.tsx +55 -0
  1180. package/src/lib/ui/components/primitives/Input.tsx +165 -0
  1181. package/src/lib/ui/components/primitives/Kbd.tsx +17 -0
  1182. package/src/lib/ui/components/primitives/Popover.tsx +61 -0
  1183. package/src/lib/ui/components/primitives/Slider.tsx +62 -0
  1184. package/src/lib/ui/components/primitives/shared.ts +40 -0
  1185. package/src/lib/ui/constants.ts +2 -0
  1186. package/src/lib/ui/hooks/clipboard/pasteExcalidrawContent.ts +514 -0
  1187. package/src/lib/ui/hooks/clipboard/pasteFiles.ts +31 -0
  1188. package/src/lib/ui/hooks/clipboard/pasteTldrawContent.ts +19 -0
  1189. package/src/lib/ui/hooks/clipboard/pasteUrl.ts +44 -0
  1190. package/src/lib/ui/hooks/menuHelpers.ts +247 -0
  1191. package/src/lib/ui/hooks/useActions.tsx +1180 -0
  1192. package/src/lib/ui/hooks/useActionsMenuSchema.tsx +123 -0
  1193. package/src/lib/ui/hooks/useAssetUrls.tsx +28 -0
  1194. package/src/lib/ui/hooks/useBreakpoint.tsx +42 -0
  1195. package/src/lib/ui/hooks/useCanRedo.ts +7 -0
  1196. package/src/lib/ui/hooks/useCanUndo.ts +7 -0
  1197. package/src/lib/ui/hooks/useClipboardEvents.ts +705 -0
  1198. package/src/lib/ui/hooks/useContextMenuSchema.tsx +260 -0
  1199. package/src/lib/ui/hooks/useCopyAs.ts +26 -0
  1200. package/src/lib/ui/hooks/useDialogsProvider.tsx +128 -0
  1201. package/src/lib/ui/hooks/useEditorEvents.ts +23 -0
  1202. package/src/lib/ui/hooks/useEventsProvider.tsx +129 -0
  1203. package/src/lib/ui/hooks/useExportAs.ts +30 -0
  1204. package/src/lib/ui/hooks/useHasLinkShapeSelected.ts +17 -0
  1205. package/src/lib/ui/hooks/useHelpMenuSchema.tsx +105 -0
  1206. package/src/lib/ui/hooks/useHighDpiCanvas.ts +14 -0
  1207. package/src/lib/ui/hooks/useInsertMedia.ts +35 -0
  1208. package/src/lib/ui/hooks/useKeyboardShortcuts.ts +121 -0
  1209. package/src/lib/ui/hooks/useKeyboardShortcutsSchema.tsx +127 -0
  1210. package/src/lib/ui/hooks/useLocalStorageState.ts +30 -0
  1211. package/src/lib/ui/hooks/useMenuIsOpen.ts +73 -0
  1212. package/src/lib/ui/hooks/useMenuSchema.tsx +280 -0
  1213. package/src/lib/ui/hooks/useOnlyFlippableShape.ts +29 -0
  1214. package/src/lib/ui/hooks/usePreloadAssets.ts +120 -0
  1215. package/src/lib/ui/hooks/usePreloadIcons.ts +38 -0
  1216. package/src/lib/ui/hooks/usePrint.ts +223 -0
  1217. package/src/lib/ui/hooks/useReadonly.ts +7 -0
  1218. package/src/lib/ui/hooks/useRevelantStyles.ts +38 -0
  1219. package/src/lib/ui/hooks/useShowAutoSizeToggle.ts +17 -0
  1220. package/src/lib/ui/hooks/useToastsProvider.tsx +75 -0
  1221. package/src/lib/ui/hooks/useToolbarSchema.tsx +99 -0
  1222. package/src/lib/ui/hooks/useTools.tsx +245 -0
  1223. package/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts +356 -0
  1224. package/src/lib/ui/hooks/useTranslation/defaultTranslation.ts +367 -0
  1225. package/src/lib/ui/hooks/useTranslation/translations.ts +74 -0
  1226. package/src/lib/ui/hooks/useTranslation/useLanguages.tsx +10 -0
  1227. package/src/lib/ui/hooks/useTranslation/useTranslation.tsx +117 -0
  1228. package/src/lib/ui/icon-types.ts +337 -0
  1229. package/src/lib/ui/overrides.ts +211 -0
  1230. package/src/lib/ui/version.ts +1 -0
  1231. package/src/lib/ui.css +1603 -0
  1232. package/src/lib/utils/assets/assets.ts +103 -0
  1233. package/src/lib/utils/assets/is-gif-animated.ts +106 -0
  1234. package/src/lib/utils/assets.ts +103 -0
  1235. package/src/lib/utils/embeds/embeds.test.ts +612 -0
  1236. package/src/lib/utils/embeds/embeds.ts +99 -0
  1237. package/src/lib/utils/export/copyAs.ts +139 -0
  1238. package/src/lib/utils/export/export.ts +128 -0
  1239. package/src/lib/utils/export/exportAs.ts +94 -0
  1240. package/src/lib/utils/frames/frames.ts +101 -0
  1241. package/src/lib/utils/static-assets/assetUrls.ts +41 -0
  1242. package/src/lib/utils/text/text.test.ts +11 -0
  1243. package/src/lib/utils/text/text.ts +59 -0
  1244. package/src/lib/utils/tldr/buildFromV1Document.ts +1171 -0
  1245. package/src/lib/utils/tldr/file.ts +303 -0
  1246. package/src/test/ClickManager.test.ts +258 -0
  1247. package/src/test/Editor.test.tsx +647 -0
  1248. package/src/test/EraserTool.test.ts +446 -0
  1249. package/src/test/HandTool.test.ts +191 -0
  1250. package/src/test/HighlightShape.test.ts +24 -0
  1251. package/src/test/LaserTool.test.ts +3 -0
  1252. package/src/test/SelectTool.test.ts +445 -0
  1253. package/src/test/TLSessionStateSnapshot.test.ts +152 -0
  1254. package/src/test/TLUserPreferences.test.ts +123 -0
  1255. package/src/test/TestEditor.test.ts +7 -0
  1256. package/src/test/TestEditor.ts +661 -0
  1257. package/src/test/TldrawEditor.test.tsx +377 -0
  1258. package/src/test/ZoomTool.test.ts +210 -0
  1259. package/src/test/__snapshots__/groups.test.ts.snap +46 -0
  1260. package/src/test/__snapshots__/resizing.test.ts.snap +43 -0
  1261. package/src/test/arrowBindingsIndex.test.tsx +295 -0
  1262. package/src/test/arrows-megabus.test.ts +652 -0
  1263. package/src/test/assets.test.ts +38 -0
  1264. package/src/test/bookmark-shapes.test.ts +141 -0
  1265. package/src/test/cleanup.test.ts +127 -0
  1266. package/src/test/commands/__snapshots__/getSvg.test.ts.snap +174 -0
  1267. package/src/test/commands/__snapshots__/packShapes.test.ts.snap +185 -0
  1268. package/src/test/commands/__snapshots__/zoomToFit.test.ts.snap +12 -0
  1269. package/src/test/commands/alignShapes.test.tsx +388 -0
  1270. package/src/test/commands/allShapesCommonBounds.test.ts +91 -0
  1271. package/src/test/commands/animateShapes.test.ts +3 -0
  1272. package/src/test/commands/animateToShape.test.ts +3 -0
  1273. package/src/test/commands/animationSpeed.test.ts +38 -0
  1274. package/src/test/commands/blur.test.ts +3 -0
  1275. package/src/test/commands/cancel.test.ts +3 -0
  1276. package/src/test/commands/centerOnPoint.test.ts +21 -0
  1277. package/src/test/commands/clipboard.test.ts +481 -0
  1278. package/src/test/commands/complete.test.ts +3 -0
  1279. package/src/test/commands/createPage.test.ts +65 -0
  1280. package/src/test/commands/createShapes.test.ts +141 -0
  1281. package/src/test/commands/deletePage.test.ts +79 -0
  1282. package/src/test/commands/deleteShapes.test.ts +113 -0
  1283. package/src/test/commands/distributeShapes.test.ts +232 -0
  1284. package/src/test/commands/duplicatePage.test.ts +55 -0
  1285. package/src/test/commands/getContent.test.ts +9 -0
  1286. package/src/test/commands/getInitialMetaForShape.test.ts +21 -0
  1287. package/src/test/commands/getSvg.test.ts +110 -0
  1288. package/src/test/commands/groupShapes.test.ts +42 -0
  1289. package/src/test/commands/guide.md +12 -0
  1290. package/src/test/commands/interrupt.test.ts +3 -0
  1291. package/src/test/commands/lockShapes.test.ts +176 -0
  1292. package/src/test/commands/moveShapesToPage.test.ts +254 -0
  1293. package/src/test/commands/nudge.test.ts +292 -0
  1294. package/src/test/commands/packShapes.test.ts +62 -0
  1295. package/src/test/commands/pageToScreen.test.ts +25 -0
  1296. package/src/test/commands/pan.test.ts +32 -0
  1297. package/src/test/commands/penmode.test.ts +27 -0
  1298. package/src/test/commands/pinch.test.ts +11 -0
  1299. package/src/test/commands/putContent.test.ts +39 -0
  1300. package/src/test/commands/reorderShapes.test.ts +950 -0
  1301. package/src/test/commands/reparentShapesById.test.ts +162 -0
  1302. package/src/test/commands/resetZoom.test.ts +30 -0
  1303. package/src/test/commands/resizeShape.test.ts +58 -0
  1304. package/src/test/commands/rotateShapes.test.ts +82 -0
  1305. package/src/test/commands/screenToPage.test.ts +246 -0
  1306. package/src/test/commands/setAppState.test.ts +9 -0
  1307. package/src/test/commands/setBrush.test.ts +38 -0
  1308. package/src/test/commands/setCurrentPage.test.ts +88 -0
  1309. package/src/test/commands/setPageState.test.ts +9 -0
  1310. package/src/test/commands/setSelectedIds.test.ts +57 -0
  1311. package/src/test/commands/setSelectedTool.test.ts +23 -0
  1312. package/src/test/commands/setSettings.test.ts +9 -0
  1313. package/src/test/commands/setStyle.test.ts +11 -0
  1314. package/src/test/commands/squash.test.ts +13 -0
  1315. package/src/test/commands/stackShapes.test.ts +227 -0
  1316. package/src/test/commands/stretch.test.tsx +245 -0
  1317. package/src/test/commands/ungroup.test.ts +17 -0
  1318. package/src/test/commands/updateShapes.test.ts +192 -0
  1319. package/src/test/commands/updateViewportPageBounds.test.ts +123 -0
  1320. package/src/test/commands/zoomIn.test.ts +43 -0
  1321. package/src/test/commands/zoomOut.test.ts +31 -0
  1322. package/src/test/commands/zoomToBounds.test.ts +50 -0
  1323. package/src/test/commands/zoomToFit.test.ts +20 -0
  1324. package/src/test/commands/zoomToSelection.test.ts +42 -0
  1325. package/src/test/cropping.test.ts +1033 -0
  1326. package/src/test/drawing.test.ts +262 -0
  1327. package/src/test/duplicate.test.ts +217 -0
  1328. package/src/test/flipShapes.test.ts +581 -0
  1329. package/src/test/frames.test.ts +995 -0
  1330. package/src/test/getShapeAtPoint.test.ts +168 -0
  1331. package/src/test/getSnapLines.ts +25 -0
  1332. package/src/test/groups.test.ts +2005 -0
  1333. package/src/test/middleMouseButtonPanning.test.ts +31 -0
  1334. package/src/test/modifiers.test.ts +36 -0
  1335. package/src/test/panning.test.ts +25 -0
  1336. package/src/test/parentsToChildrenWithIndexes.test.ts +117 -0
  1337. package/src/test/paste.test.ts +494 -0
  1338. package/src/test/renderingShapes.test.tsx +223 -0
  1339. package/src/test/resizeBox.test.ts +106 -0
  1340. package/src/test/resizing.test.ts +3901 -0
  1341. package/src/test/rotating.test.ts +321 -0
  1342. package/src/test/roundedBox.ts +13 -0
  1343. package/src/test/select.test.tsx +172 -0
  1344. package/src/test/selection-omnibus.test.ts +1710 -0
  1345. package/src/test/shapeIdsInCurrentPage.test.ts +75 -0
  1346. package/src/test/shapeutils.test.ts +204 -0
  1347. package/src/test/spacebarPanning.test.ts +50 -0
  1348. package/src/test/styles2.test.tsx +199 -0
  1349. package/src/test/styles3.test.ts +70 -0
  1350. package/src/test/test-jsx.tsx +134 -0
  1351. package/src/test/testutils/getSnapLines.ts +25 -0
  1352. package/src/test/testutils/roundedBox.ts +13 -0
  1353. package/src/test/text.test.ts +269 -0
  1354. package/src/test/translating-snapping.test.ts +584 -0
  1355. package/src/test/translating.test.ts +1829 -0
  1356. package/src/test/viewport-following.test.ts +18 -0
  1357. package/tldraw.css +3264 -0
package/tldraw.css ADDED
@@ -0,0 +1,3264 @@
1
+ /* THIS CSS FILE IS GENERATED! DO NOT EDIT. OR EDIT. I'M A COMMENT NOT A COP */
2
+ /* This file is created by the copy-css-files.mjs script in @bigbluebutton/tldraw. */
3
+ /* It combines @bigbluebutton/editor's editor.css and @bigbluebutton/tldraw's ui.css */
4
+
5
+ /* @bigbluebutton/editor */
6
+
7
+ .tl-container {
8
+ width: 100%;
9
+ height: 100%;
10
+ font-size: 12px;
11
+ /* Spacing */
12
+ --space-1: 2px;
13
+ --space-2: 4px;
14
+ --space-3: 8px;
15
+ --space-4: 12px;
16
+ --space-5: 16px;
17
+ --space-6: 20px;
18
+ --space-7: 28px;
19
+ --space-8: 32px;
20
+ --space-9: 64px;
21
+ --space-10: 72px;
22
+ /* Radius */
23
+ --radius-0: 2px;
24
+ --radius-1: 4px;
25
+ --radius-2: 6px;
26
+ --radius-3: 9px;
27
+ --radius-4: 13px;
28
+ --layer-background: 100;
29
+ --layer-grid: 150;
30
+ --layer-canvas: 200;
31
+ --layer-shapes: 300;
32
+ --layer-overlays: 400;
33
+ --layer-following-indicator: 1000;
34
+ /* Misc */
35
+ --tl-zoom: 1;
36
+ --tl-dpr-multiple: 100;
37
+ --tl-dpr-multiple-px: calc(var(--tl-dpr-multiple) * 1px);
38
+
39
+ /* Cursor SVGs */
40
+ --tl-cursor-none: none;
41
+ --tl-cursor-default: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z' fill='white'/><path d='m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z' fill='white'/><path d='m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z' fill='black'/><path d='m13 10.814v11.188l2.969-2.866.428-.139h4.768z' fill='black'/></g></svg>")
42
+ 12 8,
43
+ default;
44
+ --tl-cursor-pointer: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' fill='white'/><g stroke='black' stroke-linecap='round' stroke-width='.75'><path d='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' stroke-linejoin='round'/><path d='m21.5664 21.7344v-3.459'/><path d='m19.5508 21.7461-.016-3.473'/><path d='m17.5547 18.3047.021 3.426'/></g></g></svg>")
45
+ 14 10,
46
+ pointer;
47
+ --tl-cursor-cross: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m25 16h-6.01v-6h-2.98v6h-6.01v3h6.01v6h2.98v-6h6.01z' fill='white'/><path d='m23.9902 17.0103h-6v-6.01h-.98v6.01h-6v.98h6v6.01h.98v-6.01h6z' fill='%23231f1f'/></g></svg>")
48
+ 16 16,
49
+ crosshair;
50
+ --tl-cursor-move: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m19 14h1v1h-1zm1 6h-1v-1h1zm-5-5h-1v-1h1zm0 5h-1v-1h1zm2-10.987-7.985 7.988 5.222 5.221 2.763 2.763 7.984-7.985z' fill='white'/><g fill='black'><path d='m23.5664 16.9971-2.557-2.809v1.829h-4.009-4.001v-1.829l-2.571 2.809 2.572 2.808-.001-1.808h4.001 4.009l-.001 1.808z'/><path d='m17.9873 17h.013v-4.001l1.807.001-2.807-2.571-2.809 2.57h1.809v4.001h.008v4.002l-1.828-.001 2.807 2.577 2.805-2.576h-1.805z'/></g></g></svg>")
51
+ 16 16,
52
+ move;
53
+ --tl-cursor-grab: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m13.5557 17.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121' fill='white'/><g stroke='black' stroke-linecap='round' stroke-width='.75'><path d='m13.5557 17.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121' stroke-linejoin='round'/><path d='m20.5664 21.7344v-3.459'/><path d='m18.5508 21.7461-.016-3.473'/><path d='m16.5547 18.3047.021 3.426'/></g></g></svg>")
54
+ 16 16,
55
+ grab;
56
+ --tl-cursor-grabbing: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m13.5732 12.0361c.48-.178 1.427-.069 1.677.473.213.462.396 1.241.406 1.075.024-.369-.024-1.167.137-1.584.117-.304.347-.59.686-.691.285-.086.62-.116.916-.055.313.064.642.287.765.499.362.623.368 1.899.385 1.831.064-.272.07-1.229.283-1.584.141-.235.497-.445.687-.479.294-.052.656-.068.964-.008.249.049.586.344.677.487.219.344.342 1.316.379 1.658.016.141.074-.393.293-.736.406-.639 1.844-.763 1.898.639.026.654.02.624.02 1.064 0 .516-.012.828-.04 1.202-.03.399-.116 1.304-.241 1.742-.086.301-.371.978-.653 1.384 0 0-1.074 1.25-1.191 1.812-.117.563-.078.567-.102.965-.023.399.121.923.121.923s-.801.104-1.234.034c-.391-.062-.875-.84-1-1.078-.172-.328-.539-.265-.682-.023-.224.383-.709 1.07-1.05 1.113-.669.084-2.055.03-3.14.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.283-.36-1.002-.929-1.243-1.985-.213-.936-.192-1.395.037-1.77.232-.381.67-.589.854-.625.208-.042.692-.039.875.062.223.123.313.159.488.391.23.307.312.456.213.121-.076-.262-.322-.595-.434-.97-.109-.361-.401-.943-.38-1.526.008-.221.103-.771.832-1.042' fill='white'/><g stroke='black' stroke-width='.75'><path d='m13.5732 12.0361c.48-.178 1.427-.069 1.677.473.213.462.396 1.241.406 1.075.024-.369-.024-1.167.137-1.584.117-.304.347-.59.686-.691.285-.086.62-.116.916-.055.313.064.642.287.765.499.362.623.368 1.899.385 1.831.064-.272.07-1.229.283-1.584.141-.235.497-.445.687-.479.294-.052.656-.068.964-.008.249.049.586.344.677.487.219.344.342 1.316.379 1.658.016.141.074-.393.293-.736.406-.639 1.844-.763 1.898.639.026.654.02.624.02 1.064 0 .516-.012.828-.04 1.202-.03.399-.116 1.304-.241 1.742-.086.301-.371.978-.653 1.384 0 0-1.074 1.25-1.191 1.812-.117.563-.078.567-.102.965-.023.399.121.923.121.923s-.801.104-1.234.034c-.391-.062-.875-.84-1-1.078-.172-.328-.539-.265-.682-.023-.224.383-.709 1.07-1.05 1.113-.669.084-2.055.03-3.14.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.283-.36-1.002-.929-1.243-1.985-.213-.936-.192-1.395.037-1.77.232-.381.67-.589.854-.625.208-.042.692-.039.875.062.223.123.313.159.488.391.23.307.312.456.213.121-.076-.262-.322-.595-.434-.97-.109-.361-.401-.943-.38-1.526.008-.221.103-.771.832-1.042z' stroke-linejoin='round'/><path d='m20.5664 19.7344v-3.459' stroke-linecap='round'/><path d='m18.5508 19.7461-.016-3.473' stroke-linecap='round'/><path d='m16.5547 16.3047.021 3.426' stroke-linecap='round'/></g></g></svg>")
57
+ 16 16,
58
+ grabbing;
59
+ --tl-cursor-text: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path fill='white' d='M7.94 0a5.25 5.25 0 0 0-3.47 1.17A5.27 5.27 0 0 0 1 0H0v3h1c1.41 0 1.85.7 2 1v3.94H2v3h1v3c-.13.3-.57 1-2 1H0v3h1a5.27 5.27 0 0 0 3.47-1.17c.98.8 2.21 1.21 3.47 1.17h1v-3h-1c-1.41 0-1.85-.7-2-1v-3H7v-3H6V4c.13-.3.57-1 2-1h1V0H7.94z'/><path fill='black' d='M7.94 2V1a4 4 0 0 0-3.47 1.64A4 4 0 0 0 1 1v1c1.3-.17 2.56.6 3 1.84v5.1H3v1h1v4.16c-.45 1.24-1.7 2-3 1.84v1a4.05 4.05 0 0 0 3.47-1.63 4.05 4.05 0 0 0 3.47 1.63v-1A2.82 2.82 0 0 1 5 14.1V9.93h1v-1H5V3.85A2.81 2.81 0 0 1 7.94 2z'/></g></svg>")
60
+ 4 10,
61
+ text;
62
+ --tl-cursor-zoom-in: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m20.5 15c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5' fill='white'/><path d='m20.5 15c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5z' stroke='black'/><g fill='black'><path d='m18 14h-2v-2h-2v2h-2v1.98h2v2.02h2v-2.02h2z'/><path d='m23.5859 25 1.414-1.414-5.449-5.449-1.414 1.414z'/></g></g></svg>")
63
+ 16 16,
64
+ zoom-in;
65
+ --tl-cursor-zoom-out: url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m20.5 15c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5' fill='white'/><path d='m20.5 15c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5z' stroke='black'/><g fill='black'><path d='m18 16h-5.98v-1.98h5.98z'/><path d='m23.5859 25 1.414-1.414-5.449-5.449-1.414 1.414z'/></g></g></svg>")
66
+ 16 16,
67
+ zoom-out;
68
+
69
+ /* These cursor values get programmatically overridden */
70
+ /* They're just here to help your editor autocomplete */
71
+ --tl-cursor: var(--tl-cursor-default);
72
+ --tl-cursor-resize-edge: ew-resize;
73
+ --tl-cursor-resize-corner: nesw-resize;
74
+ --tl-cursor-ew-resize: ew-resize;
75
+ --tl-cursor-ns-resize: ns-resize;
76
+ --tl-cursor-nesw-resize: nesw-resize;
77
+ --tl-cursor-nwse-resize: nwse-resize;
78
+ --tl-cursor-rotate: pointer;
79
+ --tl-cursor-nwse-rotate: pointer;
80
+ --tl-cursor-nesw-rotate: pointer;
81
+ --tl-cursor-senw-rotate: pointer;
82
+ --tl-cursor-swne-rotate: pointer;
83
+ --tl-scale: calc(1 / var(--tl-zoom));
84
+ --tl-font-draw: 'tldraw_draw', sans-serif;
85
+ --tl-font-sans: 'tldraw_sans', sans-serif;
86
+ --tl-font-serif: 'tldraw_serif', serif;
87
+ --tl-font-mono: 'tldraw_mono', monospace;
88
+ --a: calc(min(0.5, 1 / var(--tl-zoom)) * 2px);
89
+ --b: calc(min(0.5, 1 / var(--tl-zoom)) * -2px);
90
+ --tl-text-outline: 0 var(--b) 0 var(--color-background), 0 var(--a) 0 var(--color-background),
91
+ var(--b) var(--b) 0 var(--color-background), var(--a) var(--b) 0 var(--color-background),
92
+ var(--a) var(--a) 0 var(--color-background), var(--b) var(--a) 0 var(--color-background);
93
+ /* Own properties */
94
+ position: relative;
95
+ top: 0px;
96
+ left: 0px;
97
+ width: 100%;
98
+ height: 100%;
99
+ overflow: clip;
100
+ }
101
+
102
+ .tl-theme__light {
103
+ --color-accent: #e64a4a;
104
+ --color-background: rgb(249, 250, 251);
105
+ --color-brush-fill: rgba(144, 144, 144, 0.102);
106
+ --color-brush-stroke: rgba(144, 144, 144, 0.251);
107
+ --color-grid: rgb(109, 109, 109);
108
+ --color-low: hsl(204, 16%, 94%);
109
+ --color-low-border: hsl(204, 16%, 92%);
110
+ --color-culled: rgb(235, 238, 240);
111
+ --color-muted-none: rgba(0, 0, 0, 0);
112
+ --color-muted-0: rgba(0, 0, 0, 0.02);
113
+ --color-muted-1: rgba(0, 0, 0, 0.1);
114
+ --color-muted-2: rgba(0, 0, 0, 0.042);
115
+ --color-hint: rgba(0, 0, 0, 0.055);
116
+ --color-overlay: rgba(0, 0, 0, 0.2);
117
+ --color-divider: #e8e8e8;
118
+ --color-panel-contrast: #ffffff;
119
+ --color-panel-overlay: rgba(255, 255, 255, 0.82);
120
+ --color-panel: #fdfdfd;
121
+ --color-focus: #004094;
122
+ --color-selected: #2f80ed;
123
+ --color-selected-contrast: #ffffff;
124
+ --color-selection-fill: #1e90ff06;
125
+ --color-selection-stroke: #2f80ed;
126
+ --color-text-0: #1d1d1d;
127
+ --color-text-1: #2d2d2d;
128
+ --color-text-3: #a4a5a7;
129
+ --color-text-shadow: #ffffff;
130
+ --color-primary: #2f80ed;
131
+ --color-warn: #d10b0b;
132
+ --color-text: #000000;
133
+ --color-laser: #ff0000;
134
+
135
+ --shadow-1: 0px 1px 2px rgba(0, 0, 0, 0.25), 0px 1px 3px rgba(0, 0, 0, 0.09);
136
+ --shadow-2: 0px 0px 2px rgba(0, 0, 0, 0.16), 0px 2px 3px rgba(0, 0, 0, 0.24),
137
+ 0px 2px 6px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 1px var(--color-panel-contrast);
138
+ --shadow-3: 0px 1px 2px rgba(0, 0, 0, 0.28), 0px 2px 6px rgba(0, 0, 0, 0.14),
139
+ inset 0px 0px 0px 1px var(--color-panel-contrast);
140
+ --shadow-4: 0px 0px 3px rgba(0, 0, 0, 0.19), 0px 5px 4px rgba(0, 0, 0, 0.16),
141
+ 0px 2px 16px rgba(0, 0, 0, 0.06), inset 0px 0px 0px 1px var(--color-panel-contrast);
142
+ }
143
+
144
+ .tl-theme__dark {
145
+ --color-accent: #e64a4a;
146
+ --color-background: #212529;
147
+ --color-brush-fill: rgba(180, 180, 180, 0.05);
148
+ --color-brush-stroke: rgba(180, 180, 180, 0.25);
149
+ --color-grid: #909090;
150
+ --color-low: #2c3136;
151
+ --color-low-border: #30363b;
152
+ --color-culled: rgb(47, 52, 57);
153
+ --color-muted-none: rgba(255, 255, 255, 0);
154
+ --color-muted-0: rgba(255, 255, 255, 0.02);
155
+ --color-muted-1: rgba(255, 255, 255, 0.1);
156
+ --color-muted-2: rgba(255, 255, 255, 0.05);
157
+ --color-hint: rgba(255, 255, 255, 0.1);
158
+ --color-overlay: rgba(0, 0, 0, 0.35);
159
+ --color-divider: #49555f;
160
+ --color-panel-contrast: #49555f;
161
+ --color-panel: #363d44;
162
+ --color-panel-overlay: rgba(54, 61, 68, 0.82);
163
+ --color-focus: #a5c3f3;
164
+ --color-selected: #4285f4;
165
+ --color-selected-contrast: #ffffff;
166
+ --color-selection-fill: rgba(38, 150, 255, 0.05);
167
+ --color-selection-stroke: #2f80ed;
168
+ --color-text-0: #f0eded;
169
+ --color-text-1: #d9d9d9;
170
+ --color-text-3: #6d747b;
171
+ --color-text-shadow: #292f35;
172
+ --color-primary: #2f80ed;
173
+ --color-warn: #ef6464;
174
+ --color-text: #f8f9fa;
175
+ --color-laser: #ff0000;
176
+
177
+ --shadow-1: 0px 1px 2px #00000029, 0px 1px 3px #00000038,
178
+ inset 0px 0px 0px 1px var(--color-panel-contrast);
179
+ --shadow-2: 0px 1px 3px #00000077, 0px 2px 6px #00000055,
180
+ inset 0px 0px 0px 1px var(--color-panel-contrast);
181
+ --shadow-3: 0px 1px 3px #00000077, 0px 2px 12px rgba(0, 0, 0, 0.22),
182
+ inset 0px 0px 0px 1px var(--color-panel-contrast);
183
+ }
184
+
185
+ .tl-counter-scaled {
186
+ transform: scale(var(--tl-scale));
187
+ transform-origin: top left;
188
+ width: calc(100% * var(--tl-zoom));
189
+ height: calc(100% * var(--tl-zoom));
190
+ }
191
+
192
+ .tl-container,
193
+ .tl-container * {
194
+ -webkit-touch-callout: none;
195
+ -webkit-tap-highlight-color: transparent;
196
+ scrollbar-highlight-color: transparent;
197
+ -webkit-user-select: none;
198
+ user-select: none;
199
+ box-sizing: border-box;
200
+ outline: none;
201
+ }
202
+
203
+ .tl-container a {
204
+ -webkit-touch-callout: initial;
205
+ }
206
+
207
+ .tl-container:focus-within {
208
+ outline: 1px solid var(--color-low);
209
+ }
210
+
211
+ input,
212
+ *[contenteditable],
213
+ *[contenteditable] * {
214
+ -webkit-user-select: text;
215
+ }
216
+
217
+ /* -------------------------------------------------- */
218
+ /* Canvas */
219
+ /* -------------------------------------------------- */
220
+
221
+ .tl-canvas {
222
+ position: absolute;
223
+ top: 0px;
224
+ left: 0px;
225
+ width: 100%;
226
+ height: 100%;
227
+ color: var(--color-text);
228
+ z-index: var(--layer-canvas);
229
+ cursor: var(--tl-cursor);
230
+ overflow: clip;
231
+ content-visibility: auto;
232
+ touch-action: none;
233
+ contain: strict;
234
+ }
235
+
236
+ .tl-fixed-layer {
237
+ position: absolute;
238
+ top: 0px;
239
+ left: 0px;
240
+ width: 100%;
241
+ height: 100%;
242
+ contain: strict;
243
+ pointer-events: none;
244
+ }
245
+
246
+ .tl-shapes {
247
+ position: relative;
248
+ z-index: var(--layer-shapes);
249
+ }
250
+
251
+ .tl-overlays {
252
+ position: relative;
253
+ z-index: var(--layer-overlays);
254
+ }
255
+
256
+ .tl-overlays__item {
257
+ position: absolute;
258
+ top: 0px;
259
+ left: 0px;
260
+ height: var(--tl-dpr-multiple-px);
261
+ width: var(--tl-dpr-multiple-px);
262
+ overflow: visible;
263
+ pointer-events: none;
264
+ transform-origin: top left;
265
+ }
266
+
267
+ .tl-svg-context {
268
+ position: absolute;
269
+ top: 0px;
270
+ left: 0px;
271
+ height: var(--tl-dpr-multiple-px);
272
+ width: var(--tl-dpr-multiple-px);
273
+ pointer-events: none;
274
+ }
275
+
276
+ .tl-positioned {
277
+ position: absolute;
278
+ top: 0px;
279
+ left: 0px;
280
+ transform-origin: top left;
281
+ }
282
+
283
+ /* ------------------- Background ------------------- */
284
+
285
+ .tl-background {
286
+ position: absolute;
287
+ background-color: var(--color-background);
288
+ inset: 0px;
289
+ z-index: var(--layer-background);
290
+ }
291
+
292
+ /* --------------------- Grid Layer --------------------- */
293
+
294
+ .tl-grid {
295
+ position: absolute;
296
+ top: 0px;
297
+ left: 0px;
298
+ width: 100%;
299
+ height: 100%;
300
+ touch-action: none;
301
+ pointer-events: none;
302
+ z-index: var(--layer-grid);
303
+ contain: strict;
304
+ }
305
+
306
+ .tl-grid-dot {
307
+ fill: var(--color-grid);
308
+ }
309
+
310
+ /* --------------------- Layers --------------------- */
311
+
312
+ .tl-html-layer {
313
+ position: absolute;
314
+ top: 0px;
315
+ left: 0px;
316
+ width: 1px;
317
+ height: 1px;
318
+ contain: layout style size;
319
+ }
320
+
321
+ /* ---------------------- Brush --------------------- */
322
+
323
+ .tl-brush {
324
+ stroke-width: calc(var(--tl-scale) * 1px);
325
+ contain: size layout;
326
+ }
327
+
328
+ .tl-brush__default {
329
+ stroke: var(--color-brush-stroke);
330
+ fill: var(--color-brush-fill);
331
+ }
332
+
333
+ .tl-screenshot-brush {
334
+ stroke: var(--color-text-0);
335
+ fill: none;
336
+ }
337
+
338
+ /* -------------------- Scribble -------------------- */
339
+
340
+ .tl-scribble {
341
+ stroke-linejoin: round;
342
+ stroke-linecap: round;
343
+ pointer-events: none;
344
+ contain: size layout;
345
+ }
346
+
347
+ /* ---------------------- Shape --------------------- */
348
+
349
+ .tl-shape {
350
+ position: absolute;
351
+ pointer-events: none;
352
+ overflow: visible;
353
+ transform-origin: top left;
354
+ contain: size layout;
355
+ }
356
+
357
+ .tl-shape__culled {
358
+ position: relative;
359
+ background-color: var(--color-culled);
360
+ }
361
+
362
+ /* ---------------- Shape Containers ---------------- */
363
+
364
+ .tl-svg-container {
365
+ position: absolute;
366
+ top: 0px;
367
+ left: 0px;
368
+ width: 100%;
369
+ height: 100%;
370
+ pointer-events: none;
371
+ stroke-linecap: round;
372
+ stroke-linejoin: round;
373
+ transform-origin: top left;
374
+ overflow: visible;
375
+ }
376
+
377
+ .tl-html-container {
378
+ position: absolute;
379
+ top: 0px;
380
+ left: 0px;
381
+ width: 100%;
382
+ height: 100%;
383
+ pointer-events: none;
384
+ stroke-linecap: round;
385
+ stroke-linejoin: round;
386
+ /* content-visibility: auto; */
387
+ transform-origin: top left;
388
+ color: inherit;
389
+ }
390
+
391
+ /* --------------- Overlay Stack --------------- */
392
+
393
+ /* back of the stack, behind user's stuff */
394
+ .tl-collaborator__scribble {
395
+ z-index: 10;
396
+ }
397
+
398
+ .tl-collaborator__brush {
399
+ z-index: 20;
400
+ }
401
+
402
+ .tl-collaborator__shape-indicator {
403
+ z-index: 30;
404
+ }
405
+
406
+ .tl-user-scribble {
407
+ z-index: 40;
408
+ }
409
+
410
+ .tl-user-brush {
411
+ z-index: 50;
412
+ }
413
+
414
+ .tl-user-indicator__selected {
415
+ z-index: 60;
416
+ }
417
+
418
+ .tl-user-indicator__hovered {
419
+ z-index: 70;
420
+ }
421
+
422
+ .tl-user-handles {
423
+ z-index: 80;
424
+ }
425
+
426
+ .tl-user-snapline {
427
+ z-index: 90;
428
+ }
429
+
430
+ .tl-selection__fg {
431
+ pointer-events: none;
432
+ z-index: 100;
433
+ }
434
+
435
+ .tl-user-indicator__hint {
436
+ z-index: 110;
437
+ stroke-width: calc(2.5px * var(--tl-scale));
438
+ }
439
+
440
+ /* behind collaborator cursor */
441
+ .tl-collaborator__cursor-hint {
442
+ z-index: 120;
443
+ }
444
+
445
+ .tl-collaborator__cursor {
446
+ z-index: 130;
447
+ }
448
+
449
+ .tl-cursor {
450
+ overflow: visible;
451
+ }
452
+
453
+ /* -------------------- Indicator ------------------- */
454
+
455
+ .tl-shape-indicator {
456
+ transform-origin: top left;
457
+ fill: none;
458
+ stroke-width: calc(1.5px * var(--tl-scale));
459
+ contain: size;
460
+ }
461
+
462
+ /* ------------------ SelectionBox ------------------ */
463
+
464
+ .tl-selection__bg {
465
+ position: absolute;
466
+ top: 0px;
467
+ left: 0px;
468
+ transform-origin: top left;
469
+ background-color: transparent;
470
+ pointer-events: all;
471
+ }
472
+
473
+ .tl-selection__fg__outline {
474
+ fill: none;
475
+ pointer-events: none;
476
+ stroke: var(--color-selection-stroke);
477
+ stroke-width: calc(1.5px * var(--tl-scale));
478
+ }
479
+
480
+ .tl-corner-handle {
481
+ pointer-events: none;
482
+ stroke: var(--color-selection-stroke);
483
+ fill: var(--color-background);
484
+ stroke-width: calc(1.5px * var(--tl-scale));
485
+ }
486
+
487
+ .tl-text-handle {
488
+ pointer-events: none;
489
+ fill: var(--color-selection-stroke);
490
+ }
491
+
492
+ .tl-corner-crop-handle {
493
+ pointer-events: none;
494
+ fill: none;
495
+ stroke: var(--color-selection-stroke);
496
+ }
497
+
498
+ .tl-corner-crop-edge-handle {
499
+ pointer-events: none;
500
+ fill: none;
501
+ stroke: var(--color-selection-stroke);
502
+ }
503
+
504
+ .tl-rotate-handle {
505
+ stroke: var(--color-selection-stroke);
506
+ fill: var(--color-background);
507
+ stroke-width: calc(1.5px * var(--tl-scale));
508
+ pointer-events: all;
509
+ }
510
+
511
+ .tl-mobile-rotate__bg {
512
+ pointer-events: all;
513
+ cursor: var(--tl-cursor-grab);
514
+ }
515
+
516
+ .tl-mobile-rotate__fg {
517
+ pointer-events: none;
518
+ stroke: var(--color-selection-stroke);
519
+ fill: var(--color-background);
520
+ stroke-width: calc(1.5px * var(--tl-scale));
521
+ }
522
+
523
+ .tl-transparent {
524
+ fill: transparent;
525
+ stroke: transparent;
526
+ }
527
+
528
+ /* --------------------- Handles -------------------- */
529
+
530
+ .tl-handle {
531
+ pointer-events: all;
532
+ }
533
+
534
+ .tl-handle__bg {
535
+ fill: transparent;
536
+ stroke: transparent;
537
+ pointer-events: all;
538
+ cursor: var(--tl-cursor-grabbing);
539
+ }
540
+
541
+ .tl-handle__fg {
542
+ fill: var(--color-background);
543
+ stroke: var(--color-selection-stroke);
544
+ stroke-width: calc(1.5px * var(--tl-scale));
545
+ pointer-events: none;
546
+ }
547
+
548
+ .tl-handle__create {
549
+ opacity: 0;
550
+ }
551
+ .tl-handle__create:hover {
552
+ opacity: 1;
553
+ }
554
+
555
+ .tl-handle__bg:active {
556
+ fill: none;
557
+ }
558
+
559
+ .tl-handle__bg:hover {
560
+ cursor: var(--tl-cursor-grab);
561
+ fill: var(--color-selection-fill);
562
+ }
563
+
564
+ @media (pointer: coarse) {
565
+ .tl-handle__bg:active {
566
+ fill: var(--color-selection-fill);
567
+ }
568
+
569
+ .tl-handle__create {
570
+ opacity: 1;
571
+ }
572
+ }
573
+
574
+ /* ------------------ Bounds Detail ----------------- */
575
+
576
+ .tl-image,
577
+ .tl-video {
578
+ object-fit: cover;
579
+ background-size: cover;
580
+ width: 100%;
581
+ height: 100%;
582
+ }
583
+
584
+ .tl-image-container,
585
+ .tl-video-container,
586
+ .tl-embed-container {
587
+ width: 100%;
588
+ height: 100%;
589
+ pointer-events: all;
590
+ /* background-color: var(--color-background); */
591
+
592
+ display: flex;
593
+ justify-content: center;
594
+ align-items: center;
595
+ }
596
+
597
+ .tl-image__tg {
598
+ --scale: calc(min(2, var(--tl-scale)));
599
+ position: absolute;
600
+ top: calc(var(--scale) * 8px);
601
+ right: calc(var(--scale) * 8px);
602
+ font-size: 10px;
603
+ transform-origin: top right;
604
+ background-color: var(--color-background);
605
+ padding: 2px 4px;
606
+ border-radius: var(--radius-1);
607
+ }
608
+
609
+ /* --------------------- Nametag -------------------- */
610
+
611
+ .tl-collaborator-cursor {
612
+ position: absolute;
613
+ }
614
+
615
+ .tl-nametag {
616
+ position: absolute;
617
+ top: 16px;
618
+ left: 13px;
619
+ width: fit-content;
620
+ height: fit-content;
621
+ max-width: 120px;
622
+ padding: 3px 6px;
623
+ white-space: nowrap;
624
+ position: absolute;
625
+ overflow: hidden;
626
+ text-overflow: ellipsis;
627
+ font-size: 12px;
628
+ font-family: var(--font-body);
629
+ border-radius: var(--radius-2);
630
+ color: var(--color-selected-contrast);
631
+ }
632
+
633
+ .tl-nametag-title {
634
+ position: absolute;
635
+ top: -2px;
636
+ left: 13px;
637
+ width: fit-content;
638
+ height: fit-content;
639
+ padding: 0px 6px;
640
+ max-width: 120px;
641
+ white-space: nowrap;
642
+ position: absolute;
643
+ overflow: hidden;
644
+ text-overflow: ellipsis;
645
+ font-size: 12px;
646
+ font-family: var(--font-body);
647
+ text-shadow: var(--tl-text-outline);
648
+ color: var(--color-selected-contrast);
649
+ }
650
+
651
+ .tl-nametag-chat {
652
+ position: absolute;
653
+ top: 16px;
654
+ left: 13px;
655
+ width: fit-content;
656
+ height: fit-content;
657
+ color: var(--color-selected-contrast);
658
+ white-space: nowrap;
659
+ position: absolute;
660
+ padding: 3px 6px;
661
+ font-size: 12px;
662
+ font-family: var(--font-body);
663
+ opacity: 1;
664
+ border-radius: var(--radius-2);
665
+ }
666
+
667
+ .tl-cursor-chat {
668
+ position: absolute;
669
+ color: var(--color-selected-contrast);
670
+ white-space: nowrap;
671
+ padding: 3px 6px;
672
+ font-size: 12px;
673
+ font-family: var(--font-body);
674
+ pointer-events: none;
675
+ z-index: var(--layer-cursor);
676
+ margin-top: 16px;
677
+ margin-left: 13px;
678
+ opacity: 1;
679
+ border: none;
680
+ user-select: text;
681
+ border-radius: var(--radius-2);
682
+ }
683
+
684
+ .tl-cursor-chat .tl-cursor-chat__bubble {
685
+ padding-right: 12px;
686
+ }
687
+
688
+ .tl-cursor-chat::selection {
689
+ background: var(--color-selected);
690
+ color: var(--color-selected-contrast);
691
+ text-shadow: none;
692
+ }
693
+
694
+ .tl-cursor-chat-fade {
695
+ /* Setting to zero causes it to immediately disappear */
696
+ /* Setting to near-zero causes it to fade out gradually */
697
+ opacity: 0.0001;
698
+ transition: opacity 5s ease-in-out;
699
+ }
700
+
701
+ .tl-cursor-chat::placeholder {
702
+ color: var(--color-selected-contrast);
703
+ opacity: 0.7;
704
+ }
705
+
706
+ /* -------------------------------------------------- */
707
+ /* Spinner */
708
+ /* -------------------------------------------------- */
709
+
710
+ @keyframes spinner {
711
+ to {
712
+ transform: rotate(360deg);
713
+ }
714
+ }
715
+
716
+ .tl-spinner::after {
717
+ content: '';
718
+ box-sizing: border-box;
719
+ position: absolute;
720
+ top: 50%;
721
+ left: 50%;
722
+ width: 20px;
723
+ height: 20px;
724
+ margin-top: -10px;
725
+ margin-left: -10px;
726
+ border-radius: 50%;
727
+ border: 2px solid #ccc;
728
+ border-top-color: #000;
729
+ animation: spinner 0.6s linear infinite;
730
+ pointer-events: none;
731
+ }
732
+
733
+ /* -------------------- IconShape ------------------- */
734
+
735
+ .tl-iconshape__icon {
736
+ pointer-events: all;
737
+ width: 100%;
738
+ height: 100%;
739
+ }
740
+
741
+ .tl-icon-preview {
742
+ width: 14px;
743
+ height: 14px;
744
+ }
745
+
746
+ /* ------------------- Text Shape ------------------- */
747
+
748
+ .tl-text-shape__wrapper {
749
+ position: relative;
750
+ font-weight: normal;
751
+ min-width: 1px;
752
+ padding: 0px;
753
+ margin: 0px;
754
+ border: none;
755
+ height: 100%;
756
+ font-variant: normal;
757
+ font-style: normal;
758
+ pointer-events: all;
759
+ white-space: pre-wrap;
760
+ overflow-wrap: break-word;
761
+ text-shadow: var(--tl-text-outline);
762
+ }
763
+
764
+ .tl-text-shape__wrapper[data-align='start'] {
765
+ text-align: left;
766
+ }
767
+
768
+ .tl-text-shape__wrapper[data-align='middle'] {
769
+ text-align: center;
770
+ }
771
+
772
+ .tl-text-shape__wrapper[data-align='end'] {
773
+ text-align: right;
774
+ }
775
+
776
+ .tl-text-shape__wrapper[data-font='draw'] {
777
+ font-family: var(--tl-font-draw);
778
+ }
779
+
780
+ .tl-text-shape__wrapper[data-font='sans'] {
781
+ font-family: var(--tl-font-sans);
782
+ }
783
+
784
+ .tl-text-shape__wrapper[data-font='serif'] {
785
+ font-family: var(--tl-font-serif);
786
+ }
787
+
788
+ .tl-text-shape__wrapper[data-font='mono'] {
789
+ font-family: var(--tl-font-mono);
790
+ }
791
+
792
+ .tl-text-shape__wrapper[data-isediting='true'] .tl-text-content {
793
+ opacity: 0;
794
+ }
795
+
796
+ .tl-text {
797
+ /* remove overflow from textarea on windows */
798
+ margin: 0px;
799
+ padding: 0px;
800
+ border: 0px;
801
+ color: inherit;
802
+ caret-color: var(--color-text);
803
+ background: none;
804
+ border-image: none;
805
+ font-size: inherit;
806
+ font-family: inherit;
807
+ font-weight: inherit;
808
+ line-height: inherit;
809
+ font-variant: inherit;
810
+ font-style: inherit;
811
+ text-align: inherit;
812
+ letter-spacing: inherit;
813
+ text-shadow: inherit;
814
+ outline: none;
815
+ white-space: pre-wrap;
816
+ word-wrap: break-word;
817
+ overflow-wrap: break-word;
818
+ pointer-events: all;
819
+ text-rendering: auto;
820
+ text-transform: none;
821
+ text-indent: 0px;
822
+ display: inline-block;
823
+ appearance: auto;
824
+ column-count: initial !important;
825
+ writing-mode: horizontal-tb !important;
826
+ word-spacing: 0px;
827
+ }
828
+
829
+ .tl-text-measure {
830
+ position: absolute;
831
+ z-index: 999999;
832
+ top: -9999px;
833
+ right: -9999px;
834
+ opacity: 0;
835
+ width: max-content;
836
+ box-sizing: border-box;
837
+ pointer-events: none;
838
+ line-break: normal;
839
+ white-space: pre-wrap;
840
+ word-wrap: break-word;
841
+ overflow-wrap: break-word;
842
+ resize: none;
843
+ border: none;
844
+ user-select: none;
845
+ contain: style paint;
846
+ -webkit-user-select: none;
847
+ }
848
+
849
+ .tl-text-edit-container {
850
+ position: relative;
851
+ width: 100%;
852
+ height: 100%;
853
+ }
854
+
855
+ .tl-text-input,
856
+ .tl-text-content {
857
+ position: absolute;
858
+ top: 0px;
859
+ left: 0px;
860
+ width: 100%;
861
+ height: 100%;
862
+ min-width: 1px;
863
+ min-height: 1px;
864
+ overflow: visible;
865
+ outline: none;
866
+ }
867
+
868
+ .tl-text-content {
869
+ pointer-events: none;
870
+ }
871
+
872
+ .tl-text-input {
873
+ resize: none;
874
+ user-select: all;
875
+ -webkit-user-select: text;
876
+ overflow: hidden;
877
+ cursor: var(--tl-cursor-text);
878
+ }
879
+
880
+ .tl-text-input::selection {
881
+ background: var(--color-selected);
882
+ color: var(--color-selected-contrast);
883
+ text-shadow: none;
884
+ }
885
+
886
+ /* ------------------- Snap Lines ------------------- */
887
+
888
+ .tl-snap-line {
889
+ stroke: var(--color-accent);
890
+ stroke-width: calc(1px * var(--tl-scale));
891
+ fill: none;
892
+ }
893
+
894
+ .tl-snap-point {
895
+ stroke: var(--color-accent);
896
+ stroke-width: calc(1px * var(--tl-scale));
897
+ fill: none;
898
+ }
899
+
900
+ /* -------------------- Groups ------------------ */
901
+
902
+ .tl-group {
903
+ stroke: var(--color-text);
904
+ stroke-width: calc(1px * var(--tl-scale));
905
+ opacity: 0.5;
906
+ }
907
+
908
+ /* ------------------- Bookmark Shape ------------------- */
909
+
910
+ .tl-bookmark__container {
911
+ width: 100%;
912
+ height: 100%;
913
+ position: relative;
914
+ border: 1px solid var(--color-panel-contrast);
915
+ background-color: var(--color-panel);
916
+ border-radius: var(--radius-2);
917
+ display: flex;
918
+ flex-direction: column;
919
+ overflow: hidden;
920
+ }
921
+
922
+ .tl-bookmark__image_container {
923
+ flex: 1;
924
+ overflow: hidden;
925
+ border-top-left-radius: var(--radius-1);
926
+ border-top-right-radius: var(--radius-1);
927
+ width: 100%;
928
+ height: 100%;
929
+ display: flex;
930
+ justify-content: flex-end;
931
+ align-items: flex-start;
932
+ }
933
+
934
+ .tl-bookmark__image_container > .tl-hyperlink-button::after {
935
+ background-color: var(--color-panel);
936
+ }
937
+
938
+ .tl-bookmark__placeholder {
939
+ width: 100%;
940
+ height: 100%;
941
+ background-color: var(--color-muted-2);
942
+ border-bottom: 1px solid var(--color-muted-2);
943
+ }
944
+
945
+ .tl-bookmark__image {
946
+ width: 100%;
947
+ height: 100%;
948
+ object-fit: cover;
949
+ object-position: center;
950
+ }
951
+
952
+ .tl-bookmark__copy_container {
953
+ background-color: var(--color-muted);
954
+ padding: var(--space-4);
955
+ pointer-events: all;
956
+ }
957
+
958
+ .tl-bookmark__heading,
959
+ .tl-bookmark__description,
960
+ .tl-bookmark__link {
961
+ margin: 0px;
962
+ width: 100%;
963
+ font-family: inherit;
964
+ }
965
+
966
+ .tl-bookmark__heading {
967
+ font-size: 16px;
968
+ font-weight: bold;
969
+ padding-bottom: var(--space-2);
970
+ margin: 8px 0px;
971
+ }
972
+
973
+ .tl-bookmark__description {
974
+ font-size: 12px;
975
+ padding-bottom: var(--space-4);
976
+ }
977
+
978
+ .tl-bookmark__link {
979
+ font-size: 14px;
980
+ pointer-events: all;
981
+ z-index: 999;
982
+ overflow: hidden;
983
+ display: block;
984
+ color: var(--color-text);
985
+ text-overflow: ellipsis;
986
+ text-decoration: none;
987
+ color: var(--color-text-1);
988
+ cursor: var(--tl-cursor-pointer);
989
+ }
990
+
991
+ .tl-bookmark__link:hover {
992
+ color: var(--color-selected);
993
+ }
994
+
995
+ /* ---------------- Hyperlink Button ---------------- */
996
+
997
+ .tl-hyperlink-button {
998
+ background: none;
999
+ margin: 0px;
1000
+ position: absolute;
1001
+ top: 0px;
1002
+ right: 0px;
1003
+ height: 44px;
1004
+ width: 44px;
1005
+ display: flex;
1006
+ align-items: center;
1007
+ justify-content: center;
1008
+ z-index: 200;
1009
+ font-size: 12px;
1010
+ font-weight: 400;
1011
+ color: var(--color-text-1);
1012
+ padding: 13px;
1013
+ cursor: var(--tl-cursor-pointer);
1014
+ border: none;
1015
+ outline: none;
1016
+ pointer-events: all;
1017
+ }
1018
+
1019
+ .tl-hyperlink-button::after {
1020
+ content: '';
1021
+ z-index: -1;
1022
+ position: absolute;
1023
+ right: 6px;
1024
+ bottom: 6px;
1025
+ display: block;
1026
+ width: calc(100% - 12px);
1027
+ height: calc(100% - 12px);
1028
+ border-radius: var(--radius-1);
1029
+ background-color: var(--color-background);
1030
+ pointer-events: none;
1031
+ }
1032
+
1033
+ .tl-hyperlink-button:hover {
1034
+ color: var(--color-selected);
1035
+ }
1036
+
1037
+ .tl-hyperlink-button:focus-visible {
1038
+ color: var(--color-selected);
1039
+ }
1040
+
1041
+ .tl-hyperlink-button__icon {
1042
+ width: 18px;
1043
+ height: 18px;
1044
+ background-color: currentColor;
1045
+ pointer-events: none;
1046
+ }
1047
+
1048
+ .tl-hyperlink-button__hidden {
1049
+ display: none;
1050
+ }
1051
+
1052
+ /* ---------------- Geo shape ---------------- */
1053
+
1054
+ .tl-text-label {
1055
+ display: flex;
1056
+ justify-content: center;
1057
+ align-items: center;
1058
+ color: var(--color-text);
1059
+ text-shadow: var(--tl-text-outline);
1060
+ line-height: inherit;
1061
+ position: absolute;
1062
+ inset: 0px;
1063
+ z-index: 10;
1064
+ }
1065
+
1066
+ .tl-text-label[data-isediting='true'] .tl-text-content {
1067
+ opacity: 0;
1068
+ }
1069
+
1070
+ .tl-text-label[data-hastext='false'][data-isediting='false'] > .tl-text-label__inner {
1071
+ width: 40px;
1072
+ height: 40px;
1073
+ }
1074
+
1075
+ .tl-text-label[data-hastext='true'][data-isediting='false'] .tl-text-content {
1076
+ pointer-events: all;
1077
+ }
1078
+
1079
+ .tl-text-label__inner {
1080
+ position: relative;
1081
+ width: fit-content;
1082
+ height: fit-content;
1083
+ display: flex;
1084
+ align-items: center;
1085
+ justify-content: center;
1086
+ pointer-events: all;
1087
+ min-height: auto;
1088
+ }
1089
+
1090
+ .tl-text-label__inner > .tl-text {
1091
+ position: relative;
1092
+ top: 0px;
1093
+ left: 0px;
1094
+ padding: 16px;
1095
+ height: fit-content;
1096
+ width: fit-content;
1097
+ border-radius: var(--radius-1);
1098
+ max-width: 100%;
1099
+ z-index: 3;
1100
+ }
1101
+
1102
+ .tl-text-label__inner > .tl-text-input {
1103
+ position: absolute;
1104
+ top: 0px;
1105
+ left: 0px;
1106
+ width: 100%;
1107
+ height: 100%;
1108
+ padding: 16px;
1109
+ z-index: 4;
1110
+ }
1111
+
1112
+ .tl-text-label[data-textwrap='true'] > .tl-text-label__inner {
1113
+ max-width: 100%;
1114
+ }
1115
+
1116
+ .tl-text-label[data-isediting='true'] {
1117
+ background-color: transparent;
1118
+ min-height: auto;
1119
+ }
1120
+
1121
+ .tl-text-label[data-isediting='true'] p {
1122
+ opacity: 0;
1123
+ }
1124
+
1125
+ .tl-text-label[data-align='start'],
1126
+ .tl-text-label[data-align='start-legacy'] {
1127
+ text-align: left;
1128
+ }
1129
+
1130
+ .tl-text-label[data-align='middle'],
1131
+ .tl-text-label[data-align='middle-legacy'] {
1132
+ text-align: center;
1133
+ }
1134
+
1135
+ .tl-text-label[data-align='end'],
1136
+ .tl-text-label[data-align='end-legacy'] {
1137
+ text-align: right;
1138
+ }
1139
+
1140
+ .tl-arrow-hint {
1141
+ stroke: var(--color-text-1);
1142
+ fill: none;
1143
+ stroke-linecap: round;
1144
+ overflow: visible;
1145
+ }
1146
+
1147
+ .tl-arrow-label[data-font='draw'],
1148
+ .tl-text-label[data-font='draw'] {
1149
+ font-family: var(--tl-font-draw);
1150
+ }
1151
+
1152
+ .tl-arrow-label[data-font='sans'],
1153
+ .tl-text-label[data-font='sans'] {
1154
+ font-family: var(--tl-font-sans);
1155
+ }
1156
+
1157
+ .tl-arrow-label[data-font='serif'],
1158
+ .tl-text-label[data-font='serif'] {
1159
+ font-family: var(--tl-font-serif);
1160
+ }
1161
+
1162
+ .tl-arrow-label[data-font='mono'],
1163
+ .tl-text-label[data-font='mono'] {
1164
+ font-family: var(--tl-font-mono);
1165
+ }
1166
+
1167
+ /* ------------------- Arrow Shape ------------------ */
1168
+
1169
+ .tl-arrow-label {
1170
+ position: absolute;
1171
+ top: -1px;
1172
+ left: -1px;
1173
+ width: 2px;
1174
+ height: 2px;
1175
+ padding: 0px;
1176
+ display: flex;
1177
+ justify-content: center;
1178
+ align-items: center;
1179
+ color: var(--color-text);
1180
+ text-shadow: var(--tl-text-outline);
1181
+ }
1182
+
1183
+ .tl-arrow-label[data-isediting='true'] p {
1184
+ opacity: 0;
1185
+ }
1186
+
1187
+ .tl-arrow-label[data-isediting='true'] > .tl-arrow-label__inner {
1188
+ background-color: var(--color-background);
1189
+ }
1190
+
1191
+ .tl-arrow-label__inner {
1192
+ border-radius: var(--radius-1);
1193
+ box-sizing: content-box;
1194
+ position: relative;
1195
+ height: max-content;
1196
+ width: max-content;
1197
+ pointer-events: all;
1198
+ display: flex;
1199
+ justify-content: center;
1200
+ align-items: center;
1201
+ }
1202
+
1203
+ .tl-arrow-label p,
1204
+ .tl-arrow-label textarea {
1205
+ margin: 0px;
1206
+ padding: 0px;
1207
+ border: 0px;
1208
+ color: inherit;
1209
+ caret-color: var(--color-text);
1210
+ background: none;
1211
+ border-image: none;
1212
+ font-size: inherit;
1213
+ font-family: inherit;
1214
+ font-weight: inherit;
1215
+ line-height: inherit;
1216
+ font-variant: inherit;
1217
+ font-style: inherit;
1218
+ text-align: inherit;
1219
+ letter-spacing: inherit;
1220
+ text-shadow: inherit;
1221
+ outline: none;
1222
+ white-space: pre-wrap;
1223
+ word-wrap: break-word;
1224
+ overflow-wrap: break-word;
1225
+ pointer-events: all;
1226
+ text-rendering: auto;
1227
+ text-transform: none;
1228
+ text-indent: 0px;
1229
+ display: inline-block;
1230
+ appearance: auto;
1231
+ column-count: initial !important;
1232
+ writing-mode: horizontal-tb !important;
1233
+ word-spacing: 0px;
1234
+ }
1235
+
1236
+ .tl-arrow-label p {
1237
+ position: relative;
1238
+ height: max-content;
1239
+ z-index: 2;
1240
+ padding: 4px;
1241
+ overflow: visible;
1242
+ }
1243
+
1244
+ .tl-arrow-label textarea {
1245
+ z-index: 3;
1246
+ margin: 0px;
1247
+ padding: 4px;
1248
+ height: 100%;
1249
+ width: 100%;
1250
+ position: absolute;
1251
+ resize: none;
1252
+ border: 0px;
1253
+ user-select: all;
1254
+ -webkit-user-select: text;
1255
+ caret-color: var(--color-text);
1256
+ border-image: none;
1257
+ /* Don't allow textarea to be zero width */
1258
+ min-width: 4px;
1259
+ }
1260
+
1261
+ /* -------------------- NoteShape ------------------- */
1262
+
1263
+ .tl-note__container {
1264
+ position: relative;
1265
+ width: 100%;
1266
+ height: 100%;
1267
+ border-radius: var(--radius-2);
1268
+ box-shadow: var(--shadow-1);
1269
+ overflow: hidden;
1270
+ border-color: currentColor;
1271
+ border-style: solid;
1272
+ border-width: 1px;
1273
+ }
1274
+
1275
+ .tl-note__container .tl-text-label {
1276
+ text-shadow: none;
1277
+ }
1278
+
1279
+ .tl-note__scrim {
1280
+ position: absolute;
1281
+ z-index: 1;
1282
+ top: 0px;
1283
+ left: 0px;
1284
+ width: 100%;
1285
+ height: 100%;
1286
+ background-color: var(--color-background);
1287
+ opacity: 0.28;
1288
+ }
1289
+
1290
+ .tl-loading {
1291
+ background-color: var(--color-background);
1292
+ color: var(--color-text-1);
1293
+ height: 100%;
1294
+ width: 100%;
1295
+ display: flex;
1296
+ flex-direction: column;
1297
+ justify-content: center;
1298
+ align-items: center;
1299
+ gap: var(--space-2);
1300
+ font-size: 14px;
1301
+ font-weight: 500;
1302
+ opacity: 0;
1303
+ animation: fade-in 0.2s ease-in-out forwards;
1304
+ animation-delay: 0.2s;
1305
+ }
1306
+
1307
+ @keyframes fade-in {
1308
+ 0% {
1309
+ opacity: 0;
1310
+ }
1311
+ 100% {
1312
+ opacity: 1;
1313
+ }
1314
+ }
1315
+
1316
+ /* -------------------- FrameShape ------------------- */
1317
+
1318
+ .tl-frame__body {
1319
+ stroke-width: calc(1px * var(--tl-scale));
1320
+ }
1321
+
1322
+ .tl-frame__creating {
1323
+ stroke: var(--color-selected);
1324
+ fill: none;
1325
+ }
1326
+
1327
+ .tl-frame__hitarea {
1328
+ border-style: solid;
1329
+ border-width: calc(8px * var(--tl-scale));
1330
+ border-color: transparent;
1331
+ background: none;
1332
+ pointer-events: stroke;
1333
+ box-sizing: border-box;
1334
+ top: calc(-8px * var(--tl-scale));
1335
+ left: calc(-8px * var(--tl-scale));
1336
+ width: calc(100% + calc(16px * var(--tl-scale)));
1337
+ height: calc(100% + calc(16px * var(--tl-scale)));
1338
+ z-index: 1;
1339
+ position: absolute;
1340
+ }
1341
+
1342
+ .tl-frame-heading {
1343
+ display: flex;
1344
+ align-items: center;
1345
+ position: absolute;
1346
+ transform-origin: 0% 100%;
1347
+ overflow: hidden;
1348
+ max-width: 100%;
1349
+ min-width: 32px;
1350
+ height: auto;
1351
+ font-size: 12px;
1352
+ padding-bottom: 4px;
1353
+ pointer-events: all;
1354
+ }
1355
+
1356
+ .tl-frame-heading-hit-area {
1357
+ pointer-events: all;
1358
+ /* scale from bottom left corner so we can pin it to the top left corner of the frame */
1359
+ transform-origin: 0% 100%;
1360
+ display: flex;
1361
+ height: 100%;
1362
+ width: 100%;
1363
+ align-items: center;
1364
+ border-radius: var(--radius-1);
1365
+ background-color: var(--color-background);
1366
+ }
1367
+
1368
+ .tl-frame-label {
1369
+ pointer-events: all;
1370
+ overflow: hidden;
1371
+ text-overflow: ellipsis;
1372
+ padding: var(--space-3) var(--space-3);
1373
+ position: relative;
1374
+ font-size: inherit;
1375
+ white-space: pre;
1376
+ border: 1px solid transparent;
1377
+ }
1378
+
1379
+ .tl-frame-label__editing {
1380
+ color: transparent;
1381
+ white-space: pre;
1382
+ width: auto;
1383
+ overflow: visible;
1384
+ background-color: var(--color-panel);
1385
+ border-radius: var(--radius-1);
1386
+ border-color: var(--color-selected);
1387
+ }
1388
+
1389
+ .tl-frame-name-input {
1390
+ position: absolute;
1391
+ top: 0px;
1392
+ left: 0px;
1393
+ border: none;
1394
+ background: none;
1395
+ outline: none;
1396
+ padding: var(--space-3) var(--space-3);
1397
+ inset: 0px;
1398
+ font-size: inherit;
1399
+ font-family: inherit;
1400
+ font-weight: inherit;
1401
+ width: 100%;
1402
+ color: var(--color-text-1);
1403
+ border-radius: var(--radius-1);
1404
+ user-select: all;
1405
+ -webkit-user-select: text;
1406
+ white-space: pre;
1407
+ cursor: var(--tl-cursor-text);
1408
+ }
1409
+
1410
+ /* If mobile use 16px as font size */
1411
+ /* On iOS, font size under 16px in an input will make the page zoom into the input 🤦‍♂️ */
1412
+ /* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
1413
+ @media (max-width: 600px) {
1414
+ .tl-frame-heading {
1415
+ font-size: 16px;
1416
+ }
1417
+ }
1418
+
1419
+ /* ------------------ iFrames Detail ----------------- */
1420
+
1421
+ .tl-embed {
1422
+ border: none;
1423
+ border-radius: var(--radius-2);
1424
+ }
1425
+
1426
+ /* ------------------- Code Editor ------------------ */
1427
+
1428
+ .tl-image__button {
1429
+ padding: 4px 8px;
1430
+ color: var(--color-text);
1431
+ background-color: var(--color-panel);
1432
+ border-radius: var(--radius-2);
1433
+ box-shadow: var(--shadow-1);
1434
+ pointer-events: all;
1435
+ cursor: var(--tl-cursor-pointer);
1436
+ outline: none;
1437
+ display: flex;
1438
+ }
1439
+
1440
+ .tl-image__button:disabled {
1441
+ opacity: 0.5;
1442
+ pointer-events: none;
1443
+ }
1444
+
1445
+ .tl-image__toolbox {
1446
+ position: absolute;
1447
+ top: 0px;
1448
+ left: 0px;
1449
+ display: flex;
1450
+ justify-content: flex-end;
1451
+ align-items: flex-end;
1452
+ padding: 10px;
1453
+ }
1454
+
1455
+ .tl-image__toolbox__hidden {
1456
+ display: none;
1457
+ }
1458
+
1459
+ /* -------------- Shape Error Boundary -------------- */
1460
+
1461
+ .tl-shape-error-boundary {
1462
+ width: 100%;
1463
+ height: 100%;
1464
+ background-color: var(--color-muted-1);
1465
+ border-width: calc(1px * var(--tl-scale));
1466
+ border-color: var(--color-muted-1);
1467
+ border-style: solid;
1468
+ border-radius: calc(var(--radius-1) * var(--tl-scale));
1469
+ display: flex;
1470
+ flex-direction: column;
1471
+ align-items: center;
1472
+ justify-content: center;
1473
+ text-align: left;
1474
+ position: relative;
1475
+ pointer-events: all;
1476
+ overflow: hidden;
1477
+ padding: var(--space-2);
1478
+ }
1479
+
1480
+ .tl-shape-error-boundary::before {
1481
+ transform: scale(var(--tl-scale));
1482
+ content: 'Error';
1483
+ font-size: 12px;
1484
+ font-family: inherit;
1485
+ color: var(--color-text-0);
1486
+ }
1487
+
1488
+ /* ----------------- Error Boundary ----------------- */
1489
+
1490
+ .tl-error-boundary {
1491
+ width: 100%;
1492
+ height: 100%;
1493
+ display: flex;
1494
+ align-items: center;
1495
+ justify-content: center;
1496
+ padding: var(--space-4);
1497
+ background-color: var(--color-background);
1498
+ color: var(--color-text-1);
1499
+ position: absolute;
1500
+ z-index: 600;
1501
+ }
1502
+
1503
+ .tl-error-boundary__overlay {
1504
+ position: absolute;
1505
+ inset: 0px;
1506
+ z-index: 500;
1507
+ background-color: var(--color-overlay);
1508
+ }
1509
+
1510
+ .tl-error-boundary__content * {
1511
+ user-select: all;
1512
+ -webkit-user-select: text;
1513
+ pointer-events: all;
1514
+ }
1515
+
1516
+ .tl-error-boundary__canvas {
1517
+ pointer-events: none;
1518
+ position: absolute;
1519
+ inset: 0px;
1520
+ z-index: -1;
1521
+ }
1522
+ /* some browsers seem to have some weird interactions between stacking contexts
1523
+ and pointer-events. this ::after pseudo element covers the canvas and prevents
1524
+ it from receiving any pointer events or affecting the cursor. */
1525
+ .tl-error-boundary__canvas::after {
1526
+ content: ' ';
1527
+ display: block;
1528
+ position: absolute;
1529
+ inset: 0px;
1530
+ z-index: 600;
1531
+ pointer-events: all;
1532
+ }
1533
+
1534
+ .tl-error-boundary__content {
1535
+ width: fit-content;
1536
+ height: fit-content;
1537
+ max-width: 100%;
1538
+ width: 400px;
1539
+ max-height: 100%;
1540
+ background-color: var(--color-panel);
1541
+ padding: 16px;
1542
+ border-radius: 16px;
1543
+ box-shadow: var(--shadow-2);
1544
+ font-size: 14px;
1545
+ font-weight: 400;
1546
+ display: flex;
1547
+ flex-direction: column;
1548
+ overflow: auto;
1549
+ z-index: 600;
1550
+ gap: 12px;
1551
+ }
1552
+
1553
+ .tl-error-boundary__content__expanded {
1554
+ width: 600px;
1555
+ }
1556
+
1557
+ .tl-error-boundary__content h2 {
1558
+ font-size: 16px;
1559
+ margin: 0px;
1560
+ font-weight: 500;
1561
+ }
1562
+
1563
+ .tl-error-boundary__content p {
1564
+ line-height: 1.5;
1565
+ margin: 0px;
1566
+ }
1567
+
1568
+ .tl-error-boundary__content pre {
1569
+ background-color: var(--color-muted-2);
1570
+ padding: var(--space-5);
1571
+ border-radius: var(--radius-2);
1572
+ overflow: auto;
1573
+ font-size: 12px;
1574
+ max-height: 320px;
1575
+ }
1576
+
1577
+ .tl-error-boundary__content button {
1578
+ background: none;
1579
+ border: none;
1580
+ font-family: inherit;
1581
+ font-size: 14px;
1582
+ font-weight: 500;
1583
+ padding: var(--space-4);
1584
+ border-radius: var(--radius-3);
1585
+ cursor: var(--tl-cursor-pointer);
1586
+ color: inherit;
1587
+ background-color: transparent;
1588
+ }
1589
+ .tl-error-boundary__content button:hover {
1590
+ background-color: var(--color-low);
1591
+ }
1592
+
1593
+ .tl-error-boundary__content a {
1594
+ color: var(--color-text-1);
1595
+ font-weight: 500;
1596
+ text-decoration: none;
1597
+ }
1598
+ .tl-error-boundary__content a:hover {
1599
+ color: var(--color-text-1);
1600
+ }
1601
+
1602
+ .tl-error-boundary__content__error {
1603
+ position: relative;
1604
+ }
1605
+ .tl-error-boundary__content__error button {
1606
+ position: absolute;
1607
+ top: var(--space-2);
1608
+ right: var(--space-2);
1609
+ font-size: 12px;
1610
+ padding: var(--space-2) var(--space-3);
1611
+ background-color: var(--color-panel);
1612
+ border-radius: var(--radius-1);
1613
+ }
1614
+
1615
+ .tl-error-boundary__content__actions {
1616
+ display: flex;
1617
+ justify-content: space-between;
1618
+ gap: var(--space-4);
1619
+ margin: 0px;
1620
+ margin-left: -4px;
1621
+ }
1622
+ .tl-error-boundary__content__actions__group {
1623
+ display: flex;
1624
+ gap: var(--space-4);
1625
+ }
1626
+ .tl-error-boundary__content .tl-error-boundary__reset {
1627
+ color: var(--color-warn);
1628
+ }
1629
+ .tl-error-boundary__content .tl-error-boundary__refresh {
1630
+ background-color: var(--color-primary);
1631
+ color: var(--color-selected-contrast);
1632
+ }
1633
+ .tl-error-boundary__content .tl-error-boundary__refresh:hover {
1634
+ background-color: var(--color-primary);
1635
+ opacity: 0.9;
1636
+ }
1637
+
1638
+ /* --------------------- Coarse --------------------- */
1639
+
1640
+ @media screen and (pointer: coarse) {
1641
+ /* If mobile always show handle-hint as there is no hover state */
1642
+ .tl-canvas__mobile .tl-handle__hint {
1643
+ opacity: 1;
1644
+ }
1645
+ }
1646
+
1647
+ .tl-hidden {
1648
+ opacity: 0;
1649
+ pointer-events: none;
1650
+ }
1651
+
1652
+ .debug__ui-logger {
1653
+ position: absolute;
1654
+ top: 62px;
1655
+ left: 16px;
1656
+ color: #555;
1657
+ font-size: 12px;
1658
+ font-family: monospace;
1659
+ }
1660
+
1661
+ /* @bigbluebutton/ui */
1662
+
1663
+ .tl-container {
1664
+ --layer-panels: 300;
1665
+ --layer-menus: 400;
1666
+ --layer-overlays: 500;
1667
+ --layer-toasts: 650;
1668
+ --layer-cursor: 700;
1669
+ }
1670
+
1671
+ /* -------------------------------------------------- */
1672
+ /* UI Refresh */
1673
+ /* -------------------------------------------------- */
1674
+
1675
+ /* Button */
1676
+
1677
+ .tlui-button {
1678
+ position: relative;
1679
+ height: 40px;
1680
+ min-width: 40px;
1681
+ padding: 0px 12px;
1682
+ display: flex;
1683
+ align-items: center;
1684
+ justify-content: center;
1685
+ background-color: transparent;
1686
+ border: transparent;
1687
+ color: currentColor;
1688
+ cursor: pointer;
1689
+ pointer-events: all;
1690
+ font-weight: inherit;
1691
+ font-family: inherit;
1692
+ text-rendering: optimizeLegibility;
1693
+ font-size: 12px;
1694
+ gap: 0px;
1695
+ color: var(--color-text-1);
1696
+ text-shadow: 1px 1px var(--color-text-shadow);
1697
+ }
1698
+
1699
+ .tlui-button:disabled {
1700
+ color: var(--color-text-3);
1701
+ text-shadow: none;
1702
+ }
1703
+
1704
+ .tlui-button:disabled .tlui-kbd {
1705
+ color: var(--color-text-3);
1706
+ }
1707
+
1708
+ .tlui-button > * {
1709
+ position: relative;
1710
+ z-index: 1;
1711
+ }
1712
+
1713
+ .tlui-button__label {
1714
+ flex-grow: 2;
1715
+ text-align: left;
1716
+ }
1717
+
1718
+ .tlui-button:focus-visible:not(:hover) {
1719
+ outline: 1px solid var(--color-selected);
1720
+ outline-offset: -4px;
1721
+ border-radius: var(--radius-3);
1722
+ }
1723
+
1724
+ .tlui-button::after {
1725
+ display: block;
1726
+ content: '';
1727
+ position: absolute;
1728
+ inset: 4px;
1729
+ background-color: transparent;
1730
+ border-radius: var(--radius-2);
1731
+ }
1732
+
1733
+ .tlui-button[aria-expanded='true']::after {
1734
+ background-color: var(--color-muted-0);
1735
+ opacity: 1;
1736
+ }
1737
+
1738
+ @media (hover: hover) {
1739
+ .tlui-button::after {
1740
+ background-color: var(--color-muted-2);
1741
+ opacity: 0;
1742
+ }
1743
+
1744
+ .tlui-button:not(:disabled):hover::after {
1745
+ opacity: 1;
1746
+ }
1747
+ }
1748
+
1749
+ /* Low button */
1750
+
1751
+ .tlui-button__low {
1752
+ border-radius: var(--radius-3);
1753
+ background-color: var(--color-low);
1754
+ }
1755
+
1756
+ @media (hover: hover) {
1757
+ .tlui-button__low::after {
1758
+ background-color: var(--color-muted-2);
1759
+ }
1760
+ }
1761
+
1762
+ /* Primary / danger buttons */
1763
+
1764
+ .tlui-button__primary {
1765
+ color: var(--color-primary);
1766
+ }
1767
+
1768
+ .tlui-button__danger {
1769
+ color: var(--color-warn);
1770
+ text-shadow: none;
1771
+ }
1772
+
1773
+ @media (hover: hover) {
1774
+ .tlui-button__primary:not(:disabled, :focus-visible):hover {
1775
+ color: var(--color-primary);
1776
+ }
1777
+
1778
+ .tlui-button__danger:not(:disabled, :focus-visible):hover {
1779
+ color: var(--color-warn);
1780
+ text-shadow: none;
1781
+ }
1782
+ }
1783
+
1784
+ /* Panel button */
1785
+
1786
+ .tlui-button__panel {
1787
+ position: relative;
1788
+ }
1789
+
1790
+ /* Icon button */
1791
+
1792
+ .tlui-button__icon {
1793
+ height: 40px;
1794
+ width: 40px;
1795
+ min-height: 40px;
1796
+ min-width: 40px;
1797
+ padding: 0px;
1798
+ }
1799
+
1800
+ /* Hinted */
1801
+
1802
+ .tlui-button__icon[data-state='hinted']::after {
1803
+ background: var(--color-hint);
1804
+ opacity: 1;
1805
+ /* box-shadow: inset 0 0 0 1px var(--color-muted-1); */
1806
+ }
1807
+
1808
+ .tlui-button__icon[data-state='hinted']:not(:disabled, :focus-visible):active::after {
1809
+ background: var(--color-hint);
1810
+ opacity: 1;
1811
+ /* box-shadow: inset 0 0 0 1px var(--color-text-3); */
1812
+ }
1813
+
1814
+ @media (hover: hover) {
1815
+ .tlui-button__icon::after {
1816
+ inset: 4px;
1817
+ border-radius: var(--radius-2);
1818
+ }
1819
+
1820
+ .tlui-button__icon[data-state='hinted']:not(:disabled, :focus-visible):hover::after {
1821
+ background: var(--color-hint);
1822
+ /* box-shadow: inset 0 0 0 1px var(--color-text-3); */
1823
+ }
1824
+ }
1825
+
1826
+ /* Menu button */
1827
+
1828
+ .tlui-button__menu {
1829
+ height: 40px;
1830
+ min-height: 40px;
1831
+ min-width: 128px;
1832
+ width: 100%;
1833
+ gap: 8px;
1834
+ margin: -4px 0px;
1835
+ }
1836
+
1837
+ .tlui-button__menu:nth-child(1) {
1838
+ margin-top: 0px;
1839
+ }
1840
+
1841
+ .tlui-button__menu:nth-last-child(1) {
1842
+ margin-bottom: 0px;
1843
+ }
1844
+
1845
+ @media (hover: hover) {
1846
+ .tlui-button__menu::after {
1847
+ inset: 4px;
1848
+ border-radius: var(--radius-2);
1849
+ }
1850
+ }
1851
+
1852
+ /* Menu checkbox button */
1853
+
1854
+ .tlui-button__checkbox {
1855
+ padding-left: 8px;
1856
+ }
1857
+
1858
+ .tlui-button__checkbox__indicator {
1859
+ width: 15px;
1860
+ height: 15px;
1861
+ }
1862
+
1863
+ /* Tool lock button */
1864
+
1865
+ .tlui-toolbar__lock-button {
1866
+ position: absolute;
1867
+ top: 4px;
1868
+ right: 0px;
1869
+ pointer-events: all;
1870
+ height: 40px;
1871
+ width: 40px;
1872
+ min-width: 0px;
1873
+ border-radius: var(--radius-2);
1874
+ }
1875
+
1876
+ .tlui-toolbar__lock-button::after {
1877
+ top: 4px;
1878
+ left: 8px;
1879
+ inset: 4px;
1880
+ }
1881
+
1882
+ /* Tool button */
1883
+
1884
+ .tlui-button__tool {
1885
+ position: relative;
1886
+ height: 48px;
1887
+ width: 48px;
1888
+ margin-left: -2px;
1889
+ margin-right: -2px;
1890
+ }
1891
+
1892
+ .tlui-button__tool:nth-of-type(1) {
1893
+ margin-left: 0px;
1894
+ }
1895
+
1896
+ .tlui-button__tool:nth-last-of-type(1) {
1897
+ margin-right: 0px;
1898
+ }
1899
+
1900
+ @media (hover: hover) {
1901
+ .tlui-button__tool::after {
1902
+ inset: 4px;
1903
+ border-radius: 8px;
1904
+ }
1905
+
1906
+ .tlui-button__tool[data-state='selected']:not(:disabled, :focus-visible):hover {
1907
+ color: var(--color-selected-contrast);
1908
+ }
1909
+ }
1910
+
1911
+ .tlui-button__tool[data-state='selected'] {
1912
+ color: var(--color-selected-contrast);
1913
+ }
1914
+
1915
+ .tlui-button__tool[data-state='selected']:not(:disabled, :focus-visible):active {
1916
+ color: var(--color-selected-contrast);
1917
+ }
1918
+
1919
+ .tlui-button__tool[data-state='selected']:not(:disabled)::after {
1920
+ background: var(--color-selected);
1921
+ opacity: 1;
1922
+ }
1923
+
1924
+ /* Help */
1925
+
1926
+ .tlui-button__help {
1927
+ height: 32px;
1928
+ width: 32px;
1929
+ padding: 0px;
1930
+ min-width: 32px;
1931
+ border-radius: 100%;
1932
+ background-color: var(--color-low);
1933
+ border: 1px solid var(--color-low-border);
1934
+ }
1935
+
1936
+ @media (hover: hover) {
1937
+ .tlui-button__help::after {
1938
+ background-color: var(--color-muted-2);
1939
+ border-radius: 100%;
1940
+ inset: 4px;
1941
+ }
1942
+ }
1943
+
1944
+ /* Button Row */
1945
+
1946
+ .tlui-buttons__horizontal {
1947
+ display: flex;
1948
+ flex-direction: row;
1949
+ }
1950
+ .tlui-buttons__horizontal > * {
1951
+ margin-left: -2px;
1952
+ margin-right: -2px;
1953
+ }
1954
+ .tlui-buttons__horizontal > *:nth-child(1) {
1955
+ margin-left: 0px;
1956
+ }
1957
+ .tlui-buttons__horizontal > *:nth-last-child(1) {
1958
+ margin-right: 0px;
1959
+ }
1960
+
1961
+ /* Button Grid */
1962
+
1963
+ .tlui-buttons__grid {
1964
+ display: grid;
1965
+ grid-template-columns: repeat(4, auto);
1966
+ grid-auto-flow: row;
1967
+ overflow: hidden;
1968
+ }
1969
+ .tlui-buttons__grid > .tlui-button {
1970
+ margin: -2px;
1971
+ }
1972
+ .tlui-buttons__grid > .tlui-button:nth-of-type(4n) {
1973
+ margin-right: 0px;
1974
+ }
1975
+ .tlui-buttons__grid > .tlui-button:nth-of-type(4n - 3) {
1976
+ margin-left: 0px;
1977
+ }
1978
+ .tlui-buttons__grid > .tlui-button:nth-of-type(-n + 4) {
1979
+ margin-top: 0px;
1980
+ }
1981
+ .tlui-buttons__grid > .tlui-button:nth-last-of-type(-n + 4) {
1982
+ margin-bottom: 0px;
1983
+ }
1984
+
1985
+ /* Zoom button */
1986
+
1987
+ .tlui-zoom-menu__button__pct {
1988
+ width: 60px;
1989
+ min-width: 60px;
1990
+ text-align: center;
1991
+ }
1992
+
1993
+ @media (max-width: 640px) {
1994
+ .tlui-button__tool {
1995
+ height: 48px;
1996
+ width: 44px;
1997
+ }
1998
+
1999
+ .tlui-button__tool > .tlui-icon {
2000
+ height: 16px;
2001
+ width: 16px;
2002
+ }
2003
+
2004
+ .tlui-kbd {
2005
+ visibility: hidden;
2006
+ }
2007
+
2008
+ .tlui-menu__group .tlui-button__icon-left {
2009
+ display: none;
2010
+ }
2011
+ }
2012
+
2013
+ /* --------------------- Layout --------------------- */
2014
+
2015
+ .tlui-layout {
2016
+ position: relative;
2017
+ display: grid;
2018
+ grid-template-columns: 1fr;
2019
+ grid-template-rows: minmax(0px, 1fr) auto;
2020
+ grid-auto-rows: auto;
2021
+ height: 100%;
2022
+ max-height: 100%;
2023
+ overflow: clip;
2024
+ pointer-events: none;
2025
+ user-select: none;
2026
+ contain: strict;
2027
+ z-index: var(--layer-panels);
2028
+ -webkit-transform: translate3d(0, 0, 0);
2029
+ --sab: env(safe-area-inset-bottom);
2030
+ }
2031
+
2032
+ .tlui-layout__top {
2033
+ grid-column: 1;
2034
+ grid-row: 1;
2035
+ display: flex;
2036
+ min-width: 0px;
2037
+ justify-content: space-between;
2038
+ }
2039
+
2040
+ .tlui-layout__top__left {
2041
+ display: flex;
2042
+ flex-direction: column;
2043
+ align-items: flex-start;
2044
+ justify-content: flex-start;
2045
+ width: 100%;
2046
+ height: 100%;
2047
+ flex: 0 1 0;
2048
+ }
2049
+
2050
+ .tlui-layout__top__right {
2051
+ display: flex;
2052
+ flex-direction: column;
2053
+ align-items: flex-end;
2054
+ justify-content: flex-start;
2055
+ height: 100%;
2056
+ flex: 0 0 auto;
2057
+ min-width: 0px;
2058
+ }
2059
+
2060
+ .scrollable,
2061
+ .scrollable * {
2062
+ pointer-events: all;
2063
+ touch-action: auto;
2064
+ overscroll-behavior: none;
2065
+ }
2066
+
2067
+ /* ----------------- Helper Buttons ---------------- */
2068
+
2069
+ .tlui-helper-buttons {
2070
+ position: relative;
2071
+ display: flex;
2072
+ flex-direction: column;
2073
+ justify-content: flex-start;
2074
+ align-items: flex-start;
2075
+ width: min-content;
2076
+ gap: var(--space-3);
2077
+ margin: var(--space-2) var(--space-3);
2078
+ white-space: nowrap;
2079
+ pointer-events: none;
2080
+ z-index: var(--layer-panels);
2081
+ }
2082
+
2083
+ /* ---------------------- Icon ---------------------- */
2084
+
2085
+ .tlui-icon {
2086
+ flex-shrink: 0;
2087
+ width: 18px;
2088
+ height: 18px;
2089
+ background-color: currentColor;
2090
+ }
2091
+
2092
+ .tlui-icon__small {
2093
+ width: 15px;
2094
+ height: 15px;
2095
+ }
2096
+
2097
+ /* --------------------- Slider --------------------- */
2098
+
2099
+ .tlui-slider {
2100
+ position: relative;
2101
+ display: flex;
2102
+ align-items: center;
2103
+ user-select: none;
2104
+ touch-action: none;
2105
+ }
2106
+
2107
+ .tlui-slider__container {
2108
+ width: 100%;
2109
+ padding: 0px var(--space-4);
2110
+ }
2111
+
2112
+ .tlui-slider__track {
2113
+ position: relative;
2114
+ flex-grow: 1;
2115
+ height: 44px;
2116
+ cursor: pointer;
2117
+ }
2118
+
2119
+ .tlui-slider__track::after {
2120
+ display: block;
2121
+ position: absolute;
2122
+ top: calc(50% - 2px);
2123
+ content: '';
2124
+ height: 3px;
2125
+ width: 100%;
2126
+ background-color: var(--color-muted-1);
2127
+ border-radius: 14px;
2128
+ }
2129
+
2130
+ .tlui-slider__range {
2131
+ position: absolute;
2132
+ top: calc(50% - 2px);
2133
+ left: 0px;
2134
+ height: 3px;
2135
+ background-color: var(--color-selected);
2136
+ border-radius: 14px;
2137
+ }
2138
+
2139
+ .tlui-slider__thumb {
2140
+ all: unset;
2141
+ cursor: grab;
2142
+ display: block;
2143
+ width: 18px;
2144
+ height: 18px;
2145
+ position: relative;
2146
+ top: -1px;
2147
+ background-color: var(--color-panel);
2148
+ border-radius: 999px;
2149
+ box-shadow: inset 0px 0px 0px 2px var(--color-text-1);
2150
+ }
2151
+
2152
+ .tlui-slider__thumb:active {
2153
+ cursor: grabbing;
2154
+ box-shadow: inset 0px 0px 0px 2px var(--color-text-1), var(--shadow-1);
2155
+ }
2156
+
2157
+ .tlui-slider__thumb:focus-visible {
2158
+ box-shadow: inset 0 0 0 2px var(--color-focus);
2159
+ }
2160
+
2161
+ /* ----------------------- Kbd ---------------------- */
2162
+
2163
+ .tlui-kbd {
2164
+ font-family: inherit;
2165
+ font-size: 11px;
2166
+ line-height: 11px;
2167
+ display: grid;
2168
+ justify-items: center;
2169
+ grid-auto-flow: column;
2170
+ grid-template-columns: auto;
2171
+ grid-auto-columns: minmax(1em, auto);
2172
+ gap: 1px;
2173
+ align-self: bottom;
2174
+ color: var(--color-text-1);
2175
+ margin-left: var(--space-4);
2176
+ }
2177
+
2178
+ .tlui-kbd > span {
2179
+ width: 100%;
2180
+ text-align: center;
2181
+ display: inline;
2182
+ margin: 0px;
2183
+ padding: 2px;
2184
+ border-radius: 2px;
2185
+ }
2186
+
2187
+ .tlui-kbd:not(:last-child) {
2188
+ margin-right: var(--space-2);
2189
+ }
2190
+
2191
+ /* Focus Mode Button */
2192
+
2193
+ .tlui-focus-button {
2194
+ z-index: var(--layer-panels);
2195
+ pointer-events: all;
2196
+ }
2197
+
2198
+ /* --------------------- Popover -------------------- */
2199
+
2200
+ .tlui-popover {
2201
+ position: relative;
2202
+ display: flex;
2203
+ align-content: stretch;
2204
+ }
2205
+
2206
+ .tlui-popover__content {
2207
+ position: relative;
2208
+ max-height: 75vh;
2209
+ margin: 0px;
2210
+ border: none;
2211
+ border-radius: var(--radius-3);
2212
+ background-color: var(--color-panel);
2213
+ box-shadow: var(--shadow-3);
2214
+ z-index: var(--layer-menus);
2215
+ overflow: hidden;
2216
+ overflow-y: auto;
2217
+ touch-action: auto;
2218
+ overscroll-behavior: none;
2219
+ scrollbar-width: none;
2220
+ -ms-overflow-style: none;
2221
+ }
2222
+
2223
+ /* -------------------------------------------------- */
2224
+ /* Zones */
2225
+ /* -------------------------------------------------- */
2226
+
2227
+ /* ------------------- Status Bar ------------------- */
2228
+
2229
+ .tlui-debug-panel {
2230
+ background-color: var(--color-low);
2231
+ width: 100%;
2232
+ display: grid;
2233
+ align-items: center;
2234
+ grid-template-columns: 1fr auto auto;
2235
+ justify-content: space-between;
2236
+ padding-left: var(--space-4);
2237
+ border-top: 1px solid var(--color-background);
2238
+ font-size: 12px;
2239
+ color: var(--color-text-1);
2240
+ z-index: var(--layer-panels);
2241
+ pointer-events: all;
2242
+ }
2243
+
2244
+ .tlui-debug-panel__current-state {
2245
+ white-space: nowrap;
2246
+ }
2247
+
2248
+ /* -------------------- Menu Zone ------------------- */
2249
+
2250
+ .tlui-menu-zone {
2251
+ position: relative;
2252
+ z-index: var(--layer-panels);
2253
+ width: fit-content;
2254
+ border-right: 4px solid var(--color-background);
2255
+ border-bottom: 4px solid var(--color-background);
2256
+ border-bottom-right-radius: var(--radius-4);
2257
+ background-color: var(--color-low);
2258
+ }
2259
+
2260
+ .tlui-menu-zone *[data-state='open']::after {
2261
+ background: linear-gradient(180deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
2262
+ }
2263
+
2264
+ /* ------------------- Style Panel ------------------ */
2265
+
2266
+ .tlui-style-panel__wrapper {
2267
+ box-shadow: var(--shadow-2);
2268
+ border-radius: var(--radius-3);
2269
+ pointer-events: all;
2270
+ background-color: var(--color-panel);
2271
+ height: fit-content;
2272
+ max-height: 100%;
2273
+ margin: 4px 8px;
2274
+ touch-action: auto;
2275
+ overscroll-behavior: none;
2276
+ overflow-y: auto;
2277
+ overflow-x: hidden;
2278
+ color: var(--color-text);
2279
+ }
2280
+
2281
+ .tlui-style-panel {
2282
+ position: relative;
2283
+ z-index: var(--layer-panels);
2284
+ pointer-events: all;
2285
+ width: 148px;
2286
+ max-width: 148px;
2287
+ }
2288
+
2289
+ .tlui-style-panel::-webkit-scrollbar {
2290
+ display: none;
2291
+ }
2292
+
2293
+ .tlui-style-panel .tlui-button.select {
2294
+ width: 100%;
2295
+ }
2296
+
2297
+ .tlui-style-panel__section {
2298
+ display: flex;
2299
+ position: relative;
2300
+ flex-direction: column;
2301
+ }
2302
+
2303
+ .tlui-style-panel__section:nth-of-type(n + 2):not(:last-child) {
2304
+ border-bottom: 1px solid var(--color-divider);
2305
+ }
2306
+
2307
+ .tlui-style-panel__section:empty {
2308
+ display: none;
2309
+ }
2310
+
2311
+ .tlui-style-panel__section__common:not(:only-child) {
2312
+ margin-bottom: 7px;
2313
+ border-bottom: 1px solid var(--color-divider);
2314
+ }
2315
+
2316
+ .tlui-style-panel__row {
2317
+ display: flex;
2318
+ }
2319
+ /* Only really used for the alignment picker */
2320
+ .tlui-style-panel__row__extra-button {
2321
+ margin-left: -2px;
2322
+ }
2323
+
2324
+ .tlui-style-panel__double-select-picker__wrapper {
2325
+ width: 100%;
2326
+ max-width: 100%;
2327
+ }
2328
+
2329
+ .tlui-style-panel__double-select-picker {
2330
+ display: flex;
2331
+ grid-template-columns: 1fr auto;
2332
+ align-items: center;
2333
+ padding-left: var(--space-4);
2334
+ color: var(--color-text-1);
2335
+ font-size: 12px;
2336
+ }
2337
+
2338
+ .tlui-style-panel__double-select-picker-label {
2339
+ text-overflow: ellipsis;
2340
+ overflow: hidden;
2341
+ white-space: nowrap;
2342
+ flex-grow: 2;
2343
+ max-width: 100%;
2344
+ }
2345
+
2346
+ .tlui-style-panel__section *[data-state='open']::after {
2347
+ background: var(--color-muted-0);
2348
+ }
2349
+
2350
+ /* ---------------------- Input --------------------- */
2351
+
2352
+ .tlui-input {
2353
+ background: none;
2354
+ margin: 0px;
2355
+ position: relative;
2356
+ z-index: 1;
2357
+ height: 40px;
2358
+ max-height: 40px;
2359
+ display: flex;
2360
+ align-items: center;
2361
+ justify-content: center;
2362
+ font-family: inherit;
2363
+ font-size: 12px;
2364
+ font-weight: inherit;
2365
+ color: var(--color-text-1);
2366
+ padding: var(--space-4);
2367
+ padding-left: 0px;
2368
+ border: none;
2369
+ outline: none;
2370
+ text-overflow: ellipsis;
2371
+ width: 100%;
2372
+ user-select: all;
2373
+ text-rendering: optimizeLegibility;
2374
+ -webkit-user-select: auto !important;
2375
+ }
2376
+
2377
+ .tlui-input__wrapper {
2378
+ width: 100%;
2379
+ height: 44px;
2380
+ display: flex;
2381
+ align-items: center;
2382
+ gap: var(--space-4);
2383
+ color: var(--color-text);
2384
+ }
2385
+
2386
+ .tlui-input__wrapper > .tlui-icon {
2387
+ flex-shrink: 0;
2388
+ }
2389
+
2390
+ /* If mobile use 16px as font size */
2391
+ /* On iOS, font size under 16px in an input will make the page zoom into the input 🤦‍♂️ */
2392
+ /* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
2393
+ @media (max-width: 600px) {
2394
+ @supports (-webkit-touch-callout: none) {
2395
+ /* CSS specific to iOS devices */
2396
+ .tlui-input {
2397
+ font-size: 16px;
2398
+ }
2399
+ }
2400
+ }
2401
+
2402
+ /* ---------------- Prompt ---------------- */
2403
+
2404
+ .tlui-prompt__overlay {
2405
+ background: var(--color-overlay);
2406
+ position: fixed;
2407
+ top: 0px;
2408
+ left: 0px;
2409
+ right: 0px;
2410
+ bottom: 0px;
2411
+ display: grid;
2412
+ place-items: center;
2413
+ overflow-y: auto;
2414
+ z-index: var(--layer-overlays);
2415
+ }
2416
+
2417
+ .tlui-prompt__content {
2418
+ cursor: default;
2419
+ background-color: var(--color-panel);
2420
+ box-shadow: var(--shadow-3);
2421
+ border-radius: var(--radius-4);
2422
+ padding: var(--space-5);
2423
+ font-size: 12px;
2424
+ overflow-y: auto;
2425
+ min-width: 300px;
2426
+ max-width: 80vw;
2427
+ max-height: 80vh;
2428
+ }
2429
+
2430
+ .tlui-prompt__actions {
2431
+ border: none;
2432
+ padding: 0px;
2433
+ margin: 0px;
2434
+ display: flex;
2435
+ justify-content: flex-end;
2436
+ margin-right: calc(-1 * var(--space-3));
2437
+ margin-bottom: calc(-1 * var(--space-3));
2438
+ }
2439
+
2440
+ .tlui-prompt__title {
2441
+ margin: 0px;
2442
+ font-size: 12px;
2443
+ }
2444
+
2445
+ .tlui-prompt__error {
2446
+ color: #d10b0b;
2447
+ display: flex;
2448
+ gap: var(--space-2);
2449
+ align-items: center;
2450
+ }
2451
+
2452
+ /* ---------------- Dialog ---------------- */
2453
+
2454
+ .tlui-dialog__overlay {
2455
+ position: absolute;
2456
+ top: 0px;
2457
+ left: 0px;
2458
+ width: 100%;
2459
+ height: 100%;
2460
+ z-index: var(--layer-overlays);
2461
+ background-color: var(--color-overlay);
2462
+ pointer-events: all;
2463
+ animation: fadeIn 0.12s ease-out;
2464
+ display: grid;
2465
+ place-items: center;
2466
+ overflow-y: auto;
2467
+ }
2468
+
2469
+ .tlui-dialog__content {
2470
+ display: flex;
2471
+ flex-direction: column;
2472
+ position: relative;
2473
+ cursor: default;
2474
+ background-color: var(--color-panel);
2475
+ box-shadow: var(--shadow-3);
2476
+ border-radius: var(--radius-3);
2477
+ font-size: 12px;
2478
+ overflow: hidden;
2479
+ min-width: 300px;
2480
+ max-width: 80vw;
2481
+ max-height: 80vh;
2482
+ }
2483
+
2484
+ .tlui-dialog__header {
2485
+ position: relative;
2486
+ display: flex;
2487
+ align-items: center;
2488
+ flex: 0;
2489
+ z-index: 999;
2490
+ padding-left: var(--space-4);
2491
+ color: var(--color-text);
2492
+ height: 44px;
2493
+ }
2494
+
2495
+ .tlui-dialog__header__title {
2496
+ flex: 1;
2497
+ font-weight: inherit;
2498
+ font-size: 12px;
2499
+ margin: 0px;
2500
+ color: var(--color-text-1);
2501
+ }
2502
+
2503
+ .tlui-dialog__header__close {
2504
+ justify-self: flex-end;
2505
+ }
2506
+
2507
+ .tlui-dialog__body {
2508
+ padding: var(--space-4) var(--space-4);
2509
+ flex: 0 1;
2510
+ overflow-y: auto;
2511
+ overflow-x: hidden;
2512
+ color: var(--color-text-1);
2513
+ user-select: all;
2514
+ -webkit-user-select: text;
2515
+ }
2516
+
2517
+ .tlui-dialog__footer {
2518
+ position: relative;
2519
+ z-index: 999;
2520
+ }
2521
+
2522
+ .tlui-dialog__footer__actions {
2523
+ display: flex;
2524
+ align-items: center;
2525
+ justify-content: flex-end;
2526
+ }
2527
+
2528
+ .tlui-dialog__footer__actions > .tlui-button:nth-last-child(n + 2) {
2529
+ margin-right: -4px;
2530
+ }
2531
+
2532
+ /* --------------------- Toolbar -------------------- */
2533
+
2534
+ /* Wide container */
2535
+ .tlui-toolbar {
2536
+ grid-column: 1 / span 3;
2537
+ grid-row: 1;
2538
+ display: flex;
2539
+ align-items: center;
2540
+ justify-content: center;
2541
+ flex-grow: 2;
2542
+ padding-bottom: calc(var(--space-3) + var(--sab));
2543
+ }
2544
+
2545
+ /* Centered Content */
2546
+ .tlui-toolbar__inner {
2547
+ position: relative;
2548
+ width: fit-content;
2549
+ display: flex;
2550
+ gap: var(--space-3);
2551
+ align-items: flex-end;
2552
+ }
2553
+
2554
+ .tlui-toolbar__left {
2555
+ width: fit-content;
2556
+ }
2557
+
2558
+ /* Row of controls + lock button */
2559
+ .tlui-toolbar__extras {
2560
+ position: relative;
2561
+ z-index: 1;
2562
+ width: 100%;
2563
+ pointer-events: none;
2564
+ top: 4px;
2565
+ height: 48px;
2566
+ }
2567
+
2568
+ .tlui-toolbar__extras__controls {
2569
+ display: flex;
2570
+ position: relative;
2571
+ flex-direction: row;
2572
+ z-index: 1;
2573
+ background-color: var(--color-low);
2574
+ border-top-left-radius: var(--radius-4);
2575
+ border-top-right-radius: var(--radius-4);
2576
+ border: 4px solid var(--color-background);
2577
+ margin-left: 8px;
2578
+ margin-right: 0px;
2579
+ pointer-events: all;
2580
+ width: fit-content;
2581
+ }
2582
+
2583
+ .tlui-toolbar__tools {
2584
+ display: flex;
2585
+ flex-direction: row;
2586
+ background-color: var(--color-low);
2587
+ border-radius: 11px;
2588
+ z-index: var(--layer-panels);
2589
+ pointer-events: all;
2590
+ position: relative;
2591
+ align-items: center;
2592
+ background: var(--color-panel);
2593
+ box-shadow: var(--shadow-2);
2594
+ }
2595
+
2596
+ .tlui-toolbar__overflow {
2597
+ width: 40px;
2598
+ }
2599
+
2600
+ @media (max-width: 640px) {
2601
+ .tlui-toolbar__overflow {
2602
+ width: 32px;
2603
+ padding: 0px;
2604
+ }
2605
+
2606
+ .tlui-toolbar *[data-state='open']::after {
2607
+ background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
2608
+ }
2609
+ }
2610
+
2611
+ /* -------------------- Help Zone ------------------- */
2612
+
2613
+ .tlui-help-menu {
2614
+ pointer-events: all;
2615
+ position: absolute;
2616
+ bottom: var(--space-2);
2617
+ right: var(--space-2);
2618
+ z-index: var(--layer-panels);
2619
+ border: 4px solid var(--color-background);
2620
+ border-radius: 100%;
2621
+ }
2622
+
2623
+ /* ------------------ Context Menu ------------------ */
2624
+
2625
+ .tlui-context-menu__move-to-page__name {
2626
+ max-width: calc(min(300px, 35vw));
2627
+ overflow: hidden;
2628
+ text-overflow: ellipsis;
2629
+ }
2630
+
2631
+ .tlui-context-menu__move-to-page__name[data-disabled] {
2632
+ color: var(--color-text-3);
2633
+ pointer-events: none;
2634
+ }
2635
+
2636
+ /* ---------------------- Menu ---------------------- */
2637
+
2638
+ .tlui-menu {
2639
+ z-index: var(--layer-menus);
2640
+ height: fit-content;
2641
+ width: fit-content;
2642
+ max-height: 80vh;
2643
+ border-radius: var(--radius-3);
2644
+ pointer-events: all;
2645
+ touch-action: auto;
2646
+ overflow-y: auto;
2647
+ overscroll-behavior: none;
2648
+ background-color: var(--color-panel);
2649
+ box-shadow: var(--shadow-3);
2650
+ }
2651
+
2652
+ .tlui-menu::-webkit-scrollbar {
2653
+ display: none;
2654
+ }
2655
+
2656
+ .tlui-menu__arrow {
2657
+ position: relative;
2658
+ top: -1px;
2659
+ fill: var(--color-panel);
2660
+ stroke: var(--color-panel-contrast);
2661
+ stroke-width: 1px;
2662
+ }
2663
+
2664
+ .tlui-menu__group[data-size='large'] {
2665
+ min-width: initial;
2666
+ }
2667
+
2668
+ .tlui-menu__group[data-size='medium'] {
2669
+ min-width: 144px;
2670
+ }
2671
+
2672
+ .tlui-menu__group[data-size='small'] {
2673
+ min-width: 96px;
2674
+ }
2675
+
2676
+ .tlui-menu__group[data-size='tiny'] {
2677
+ min-width: 0px;
2678
+ }
2679
+
2680
+ .tlui-menu__group + .tlui-menu__group {
2681
+ border-top: 1px solid var(--color-divider);
2682
+ }
2683
+
2684
+ .tlui-menu__submenu__trigger[data-state='open']:not(:hover)::after {
2685
+ border-radius: var(--radius-1);
2686
+ background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
2687
+ }
2688
+
2689
+ .tlui-menu__submenu__trigger[data-direction='left'][data-state='open']:not(:hover)::after {
2690
+ border-radius: var(--radius-1);
2691
+ background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
2692
+ }
2693
+
2694
+ /* ------------------ Actions Menu ------------------ */
2695
+
2696
+ .tlui-actions-menu {
2697
+ max-height: calc(100vh - 150px);
2698
+ }
2699
+
2700
+ /* --------------------- Toasts --------------------- */
2701
+
2702
+ .tlui-toast__viewport {
2703
+ position: absolute;
2704
+ inset: 0px;
2705
+ margin: 0px;
2706
+ display: flex;
2707
+ align-items: flex-end;
2708
+ justify-content: flex-end;
2709
+ flex-direction: column;
2710
+ gap: var(--space-3);
2711
+ pointer-events: none;
2712
+ padding: 0px var(--space-3) 64px 0px;
2713
+ z-index: var(--layer-toasts);
2714
+ }
2715
+
2716
+ .tlui-toast__viewport > * {
2717
+ pointer-events: all;
2718
+ }
2719
+
2720
+ .tlui-toast__icon {
2721
+ padding-top: var(--space-4);
2722
+ padding-left: var(--space-4);
2723
+ color: var(--color-text-1);
2724
+ }
2725
+
2726
+ .tlui-toast__container {
2727
+ min-width: 200px;
2728
+ display: flex;
2729
+ flex-direction: row;
2730
+ background-color: var(--color-panel);
2731
+ box-shadow: var(--shadow-2);
2732
+ border-radius: var(--radius-3);
2733
+ font-size: 12px;
2734
+ }
2735
+
2736
+ .tlui-toast__main {
2737
+ flex-grow: 2;
2738
+ max-width: 280px;
2739
+ }
2740
+
2741
+ .tlui-toast__content {
2742
+ padding: var(--space-4);
2743
+ display: flex;
2744
+ flex-direction: column;
2745
+ gap: var(--space-3);
2746
+ }
2747
+
2748
+ .tlui-toast__title {
2749
+ font-weight: bold;
2750
+ color: var(--color-text-1);
2751
+ }
2752
+
2753
+ .tlui-toast__description {
2754
+ color: var(--color-text-1);
2755
+ padding: var(--space-3);
2756
+ margin: 0px;
2757
+ padding: 0px;
2758
+ }
2759
+
2760
+ .tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
2761
+ padding-left: 0px;
2762
+ }
2763
+
2764
+ .tlui-toast__actions {
2765
+ display: flex;
2766
+ flex-direction: row;
2767
+ justify-content: flex-start;
2768
+ margin-left: 0;
2769
+ }
2770
+
2771
+ .tlui-toast__close {
2772
+ align-self: flex-end;
2773
+ flex-shrink: 0;
2774
+ }
2775
+
2776
+ @media (prefers-reduced-motion: no-preference) {
2777
+ .tlui-toast__container[data-state='open'] {
2778
+ animation: slide-in 200ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
2779
+ }
2780
+
2781
+ .tlui-toast__container[data-state='closed'] {
2782
+ animation: hide 100ms ease-in;
2783
+ }
2784
+
2785
+ .tlui-toast__container[data-swipe='move'] {
2786
+ transform: translateX(var(--radix-toast-swipe-move-x));
2787
+ }
2788
+
2789
+ .tlui-toast__container[data-swipe='cancel'] {
2790
+ transform: translateX(0);
2791
+ transition: transform 200ms ease-out;
2792
+ }
2793
+
2794
+ .tlui-toast__container[data-swipe='end'] {
2795
+ animation: swipe-out 100ms ease-out;
2796
+ }
2797
+ }
2798
+
2799
+ /* --------------------- Bottom --------------------- */
2800
+
2801
+ .tlui-layout__bottom {
2802
+ grid-row: 2;
2803
+ }
2804
+
2805
+ .tlui-layout__bottom__main {
2806
+ width: 100%;
2807
+ position: relative;
2808
+ display: flex;
2809
+ align-items: flex-end;
2810
+ justify-content: center;
2811
+ }
2812
+
2813
+ /* ------------------- Navigation ------------------- */
2814
+
2815
+ .tlui-navigation-zone {
2816
+ display: flex;
2817
+ width: min-content;
2818
+ flex-direction: column;
2819
+ z-index: var(--layer-panels);
2820
+ pointer-events: all;
2821
+ position: absolute;
2822
+ left: 0px;
2823
+ bottom: 0px;
2824
+ }
2825
+
2826
+ .tlui-navigation-zone::before {
2827
+ content: '';
2828
+ display: block;
2829
+ position: absolute;
2830
+ z-index: -1;
2831
+ inset: -4px -4px 0px 0px;
2832
+ border-radius: 0;
2833
+ border-top: 4px solid var(--color-background);
2834
+ border-right: 4px solid var(--color-background);
2835
+ border-top-right-radius: var(--radius-4);
2836
+ background-color: var(--color-low);
2837
+ }
2838
+
2839
+ .tlui-navigation-zone__toggle .tlui-icon {
2840
+ opacity: 0.24;
2841
+ }
2842
+
2843
+ .tlui-navigation-zone__toggle:active .tlui-icon {
2844
+ opacity: 1;
2845
+ }
2846
+
2847
+ @media (hover: hover) {
2848
+ .tlui-navigation-zone__toggle:hover .tlui-icon {
2849
+ opacity: 1;
2850
+ }
2851
+ }
2852
+
2853
+ .tlui-minimap {
2854
+ width: 100%;
2855
+ height: 96px;
2856
+ min-height: 96px;
2857
+ overflow: hidden;
2858
+ padding: var(--space-3);
2859
+ padding-top: 0px;
2860
+ }
2861
+
2862
+ .tlui-minimap__canvas {
2863
+ position: relative;
2864
+ width: 100%;
2865
+ height: 100%;
2866
+ }
2867
+
2868
+ /* ----------------------- ... ---------------------- */
2869
+
2870
+ @keyframes hide {
2871
+ 0% {
2872
+ opacity: 1;
2873
+ }
2874
+ 100% {
2875
+ opacity: 0;
2876
+ }
2877
+ }
2878
+
2879
+ @keyframes slide-in {
2880
+ from {
2881
+ transform: translateX(calc(100% + var(--space-3)));
2882
+ }
2883
+ to {
2884
+ transform: translateX(0px);
2885
+ }
2886
+ }
2887
+
2888
+ @keyframes swipe-out {
2889
+ from {
2890
+ transform: translateX(var(--radix-toast-swipe-end-x));
2891
+ }
2892
+ to {
2893
+ transform: translateX(calc(100% + var(--space-3)));
2894
+ }
2895
+ }
2896
+
2897
+ /* ------------------- Page Select ------------------ */
2898
+
2899
+ .tlui-page-menu__wrapper {
2900
+ position: relative;
2901
+ display: flex;
2902
+ flex-direction: column;
2903
+ width: 220px;
2904
+ height: fit-content;
2905
+ max-height: 50vh;
2906
+ }
2907
+
2908
+ .tlui-page-menu__trigger {
2909
+ width: 128px;
2910
+ }
2911
+
2912
+ .tlui-page-menu__trigger > span {
2913
+ flex-grow: 2;
2914
+ margin-right: var(--space-4);
2915
+ }
2916
+
2917
+ .tlui-page-menu__header {
2918
+ display: flex;
2919
+ flex-direction: row;
2920
+ align-items: center;
2921
+ width: 100%;
2922
+ padding-left: var(--space-4);
2923
+ border-bottom: 1px solid var(--color-divider);
2924
+ }
2925
+
2926
+ .tlui-page-menu__header > .tlui-button:nth-of-type(1) {
2927
+ margin-right: -4px;
2928
+ }
2929
+
2930
+ .tlui-page-menu__header__title {
2931
+ color: var(--color-text);
2932
+ font-size: 12px;
2933
+ flex-grow: 2;
2934
+ }
2935
+
2936
+ .tlui-page-menu__name {
2937
+ flex-grow: 2;
2938
+ text-align: left;
2939
+ overflow: hidden;
2940
+ text-overflow: ellipsis;
2941
+ white-space: nowrap;
2942
+ }
2943
+
2944
+ .tlui-page-menu__list {
2945
+ position: relative;
2946
+ touch-action: auto;
2947
+ flex-direction: column;
2948
+ max-height: 100%;
2949
+ overflow-x: hidden;
2950
+ overflow-y: auto;
2951
+ touch-action: auto;
2952
+ }
2953
+
2954
+ .tlui-page-menu__item {
2955
+ display: flex;
2956
+ flex-direction: row;
2957
+ align-items: center;
2958
+ justify-content: space-between;
2959
+ gap: 0px;
2960
+ }
2961
+
2962
+ .tlui-page-menu__item:nth-of-type(n + 2) {
2963
+ margin-top: -4px;
2964
+ }
2965
+
2966
+ .tlui-page-menu__item__button:not(:only-child) {
2967
+ flex-grow: 2;
2968
+ margin-right: -2px;
2969
+ }
2970
+
2971
+ .tlui-page-menu__item__button > span {
2972
+ display: block;
2973
+ flex-grow: 2;
2974
+ text-align: left;
2975
+ overflow: hidden;
2976
+ text-overflow: ellipsis;
2977
+ white-space: nowrap;
2978
+ }
2979
+
2980
+ .tlui-page-menu__item__button__checkbox {
2981
+ padding-left: 35px;
2982
+ }
2983
+
2984
+ .tlui-page-menu__item__button__check {
2985
+ position: absolute;
2986
+ left: 0px;
2987
+ width: 24px;
2988
+ padding-left: 10px;
2989
+ display: inline-flex;
2990
+ align-items: center;
2991
+ justify-content: center;
2992
+ color: var(--color-text);
2993
+ }
2994
+
2995
+ .tlui-page_menu__item__sortable {
2996
+ position: absolute;
2997
+ top: 0px;
2998
+ left: 0px;
2999
+ width: 100%;
3000
+ height: fit-content;
3001
+ display: flex;
3002
+ flex-direction: row;
3003
+ align-items: center;
3004
+ overflow: hidden;
3005
+ z-index: 1;
3006
+ }
3007
+
3008
+ .tlui-page_menu__item__sortable__title {
3009
+ flex: 1;
3010
+ }
3011
+
3012
+ .tlui-page_menu__item__sortable__title > .tlui-input__wrapper {
3013
+ height: 100%;
3014
+ }
3015
+
3016
+ .tlui-page_menu__item__sortable:focus-within {
3017
+ z-index: 10;
3018
+ }
3019
+
3020
+ .tlui-page_menu__item__sortable__handle {
3021
+ touch-action: none;
3022
+ width: 32px;
3023
+ min-width: 0px;
3024
+ height: 40px;
3025
+ cursor: grab;
3026
+ color: var(--color-text-3);
3027
+ flex-shrink: 0;
3028
+ margin-right: -9px;
3029
+ }
3030
+
3031
+ .tlui-page_menu__item__sortable__handle:active {
3032
+ cursor: grabbing;
3033
+ }
3034
+
3035
+ .tlui-page-menu__item__input {
3036
+ margin-left: 12px;
3037
+ height: 100%;
3038
+ }
3039
+
3040
+ /* The more menu has complex CSS here: */
3041
+ /* If the user can hover, then visible but opacity zero until hover */
3042
+ /* If the user cannot hover, then not displayed unless editing, and then opacity 1 */
3043
+
3044
+ .tlui-page_menu__item__submenu {
3045
+ pointer-events: all;
3046
+ flex: 0;
3047
+ cursor: pointer;
3048
+ margin: 0px;
3049
+ display: none;
3050
+ margin-left: -2px;
3051
+ }
3052
+
3053
+ .tlui-page_menu__item__submenu[data-isediting='true'] {
3054
+ display: block;
3055
+ }
3056
+
3057
+ @media (hover: hover) {
3058
+ .tlui-page_menu__item__submenu {
3059
+ opacity: 0;
3060
+ display: block;
3061
+ }
3062
+
3063
+ .tlui-page_menu__item__submenu:hover,
3064
+ .tlui-page-menu__item:focus-within > .tlui-page_menu__item__submenu,
3065
+ .tlui-page_menu__item__sortable:focus-within > .tlui-page_menu__item__submenu {
3066
+ opacity: 1;
3067
+ }
3068
+ }
3069
+
3070
+ /* --------------------- Dialogs -------------------- */
3071
+
3072
+ /* Edit Link Dialog */
3073
+
3074
+ .tlui-edit-link-dialog {
3075
+ display: flex;
3076
+ flex-direction: column;
3077
+ gap: var(--space-4);
3078
+ color: var(--color-text);
3079
+ }
3080
+
3081
+ .tlui-edit-link-dialog__input {
3082
+ background-color: var(--color-muted-2);
3083
+ flex-grow: 2;
3084
+ border-radius: var(--radius-2);
3085
+ padding: 0px var(--space-4);
3086
+ }
3087
+
3088
+ /* Embed Dialog */
3089
+
3090
+ .tlui-embed__spacer {
3091
+ flex-grow: 2;
3092
+ min-height: 0px;
3093
+ margin-left: calc(-1 * var(--space-4));
3094
+ margin-top: calc(-1 * var(--space-4));
3095
+ pointer-events: none;
3096
+ }
3097
+
3098
+ .tlui-embed-dialog__list {
3099
+ display: flex;
3100
+ flex-direction: column;
3101
+ padding-bottom: var(--space-5);
3102
+ }
3103
+
3104
+ .tlui-embed-dialog__item {
3105
+ position: relative;
3106
+ border: none;
3107
+ background: none;
3108
+ font-family: inherit;
3109
+ display: flex;
3110
+ text-align: left;
3111
+ gap: var(--space-3);
3112
+ margin: 0px -8px;
3113
+ cursor: pointer;
3114
+ padding: 0px 4px;
3115
+ align-items: center;
3116
+ color: var(--color-text);
3117
+ font-size: var(--font-size-1);
3118
+ height: 44px;
3119
+ }
3120
+
3121
+ @media (hover: hover) {
3122
+ .tlui-embed-dialog__item:not(:disabled, :focus-visible):hover::after {
3123
+ display: block;
3124
+ content: '';
3125
+ position: absolute;
3126
+ inset: 4px;
3127
+ background-color: var(--color-muted-2);
3128
+ border-radius: var(--radius-1);
3129
+ }
3130
+ }
3131
+
3132
+ .tlui-embed-dialog__item__image {
3133
+ width: 24px;
3134
+ height: 24px;
3135
+ display: flex;
3136
+ align-items: center;
3137
+ justify-content: center;
3138
+ background-size: contain;
3139
+ background-repeat: no-repeat;
3140
+ background-position: center center;
3141
+ }
3142
+
3143
+ .tlui-embed-dialog__enter {
3144
+ display: flex;
3145
+ flex-direction: column;
3146
+ gap: var(--space-4);
3147
+ color: var(--color-text-1);
3148
+ }
3149
+
3150
+ .tlui-embed-dialog__input {
3151
+ background-color: var(--color-muted-2);
3152
+ flex-grow: 2;
3153
+ border-radius: var(--radius-2);
3154
+ padding: 0px var(--space-4);
3155
+ }
3156
+
3157
+ .tlui-embed-dialog__warning {
3158
+ color: var(--color-warn);
3159
+ text-shadow: none;
3160
+ }
3161
+
3162
+ .tlui-embed-dialog__instruction__link {
3163
+ display: flex;
3164
+ gap: var(--space-1);
3165
+ margin-top: var(--space-4);
3166
+ }
3167
+
3168
+ .tlui-embed-dialog__enter a {
3169
+ color: var(--color-text-1);
3170
+ }
3171
+
3172
+ .tlui-following-indicator {
3173
+ display: block;
3174
+ position: absolute;
3175
+ inset: 0px;
3176
+ border-width: 2px;
3177
+ border-style: solid;
3178
+ z-index: var(--layer-following-indicator);
3179
+ pointer-events: none;
3180
+ }
3181
+
3182
+ /* ---------------- Offline Indicator --------------- */
3183
+
3184
+ .tlui-offline-indicator {
3185
+ display: flex;
3186
+ flex-direction: row;
3187
+ gap: var(--space-3);
3188
+ color: var(--color-text);
3189
+ background-color: var(--color-low);
3190
+ border: 3px solid var(--color-background);
3191
+ padding: 0px var(--space-5);
3192
+ height: 42px;
3193
+ align-items: center;
3194
+ justify-content: center;
3195
+ border-radius: 99px;
3196
+ opacity: 0;
3197
+ animation: fade-in;
3198
+ animation-duration: 0.12s;
3199
+ animation-delay: 2s;
3200
+ animation-fill-mode: forwards;
3201
+ }
3202
+
3203
+ /* --------------- Keyboard shortcuts --------------- */
3204
+
3205
+ .tlui-shortcuts-dialog__header {
3206
+ border-bottom: 1px solid var(--color-divider);
3207
+ }
3208
+
3209
+ .tlui-shortcuts-dialog__body {
3210
+ position: relative;
3211
+ columns: 1;
3212
+ column-gap: var(--space-9);
3213
+ pointer-events: all;
3214
+ touch-action: auto;
3215
+ }
3216
+
3217
+ @media (min-width: 475px) {
3218
+ .tlui-shortcuts-dialog__body {
3219
+ columns: 2;
3220
+ column-gap: var(--space-9);
3221
+ }
3222
+ }
3223
+
3224
+ @media (min-width: 960px) {
3225
+ .tlui-shortcuts-dialog__body {
3226
+ columns: 3;
3227
+ column-gap: var(--space-9);
3228
+ }
3229
+ }
3230
+
3231
+ .tlui-shortcuts-dialog__group {
3232
+ break-inside: avoid-column;
3233
+ padding-bottom: var(--space-6);
3234
+ }
3235
+
3236
+ .tlui-shortcuts-dialog__group__title {
3237
+ font-size: inherit;
3238
+ font-weight: inherit;
3239
+ margin: 0px;
3240
+ color: var(--color-text-3);
3241
+ height: 32px;
3242
+ display: flex;
3243
+ align-items: center;
3244
+ }
3245
+
3246
+ .tlui-shortcuts-dialog__group__content {
3247
+ display: flex;
3248
+ flex-direction: column;
3249
+ color: var(--color-text-1);
3250
+ }
3251
+
3252
+ .tlui-shortcuts-dialog__key-pair {
3253
+ display: flex;
3254
+ gap: var(--space-4);
3255
+ align-items: center;
3256
+ justify-content: space-between;
3257
+ height: 32px;
3258
+ }
3259
+
3260
+ .tlui-shortcuts-dialog__key-pair__key {
3261
+ flex: 1;
3262
+ font-size: 12px;
3263
+ }
3264
+