@mocanvas/mocanvas 4.0.1 → 4.1.0
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.
- package/ARCHITECTURE.md +8 -2
- package/BENCHMARK.md +244 -84
- package/MIGRATION.md +46 -22
- package/README.md +57 -24
- package/UI.md +24 -2
- package/dist/{chunk-TWCVRVK2.js → chunk-3F2HKY37.js} +3 -3
- package/dist/{chunk-TWCVRVK2.js.map → chunk-3F2HKY37.js.map} +1 -1
- package/dist/{chunk-DMCI6V5Y.js → chunk-HRUFJLK5.js} +3 -3
- package/dist/{chunk-DMCI6V5Y.js.map → chunk-HRUFJLK5.js.map} +1 -1
- package/dist/{chunk-OCYJAMXT.js → chunk-S7FPGQAA.js} +22 -3
- package/dist/chunk-S7FPGQAA.js.map +1 -0
- package/dist/{chunk-QDUQZXE4.js → chunk-YMUR46N6.js} +456 -19
- package/dist/chunk-YMUR46N6.js.map +1 -0
- package/dist/{export-VQGOVONC.js → export-UA6X35ZW.js} +4 -4
- package/dist/{export-VQGOVONC.js.map → export-UA6X35ZW.js.map} +1 -1
- package/dist/index.d.ts +279 -35
- package/dist/index.js +404 -410
- package/dist/index.js.map +1 -1
- package/dist/{ui-4C5V5GYT.css → mocanvas.css} +73 -241
- package/dist/mocanvas.css.map +1 -0
- package/dist/panel-shortcuts-4GIFCQQR.js +4 -0
- package/dist/{panel-shortcuts-R2PDTDUN.js.map → panel-shortcuts-4GIFCQQR.js.map} +1 -1
- package/dist/urlContent-WYYVQYYN.js +4 -0
- package/dist/{urlContent-GC44EU52.js.map → urlContent-WYYVQYYN.js.map} +1 -1
- package/package.json +8 -4
- package/dist/chunk-OCYJAMXT.js.map +0 -1
- package/dist/chunk-QDUQZXE4.js.map +0 -1
- package/dist/panel-shortcuts-R2PDTDUN.js +0 -4
- package/dist/urlContent-GC44EU52.js +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -969,6 +969,8 @@ declare const ICONS: {
|
|
|
969
969
|
hand: react.JSX.Element;
|
|
970
970
|
draw: react.JSX.Element;
|
|
971
971
|
eraser: react.JSX.Element;
|
|
972
|
+
highlight: react.JSX.Element;
|
|
973
|
+
laser: react.JSX.Element;
|
|
972
974
|
text: react.JSX.Element;
|
|
973
975
|
note: react.JSX.Element;
|
|
974
976
|
frame: react.JSX.Element;
|
|
@@ -1148,17 +1150,56 @@ declare function Popover({ anchorRef, open, onClose, label, cols, prefer, childr
|
|
|
1148
1150
|
|
|
1149
1151
|
/** Whether the frame-statistics chip is visible. Toggled with ⌥D. */
|
|
1150
1152
|
declare const debugStatsOpen: _mocanvas_state.Atom<boolean, unknown>;
|
|
1153
|
+
/** The sections the shortcuts dialog groups its rows under. */
|
|
1154
|
+
type TLKeyboardShortcutGroup = "Edit" | "View" | "Arrange" | "Canvas";
|
|
1155
|
+
/** One binding this hook installs. */
|
|
1156
|
+
interface TLKeyboardShortcut {
|
|
1157
|
+
/** Stable id; also what the dialog keys its rows on. */
|
|
1158
|
+
id: string;
|
|
1159
|
+
/** Display text for the dialog. */
|
|
1160
|
+
label: string;
|
|
1161
|
+
/** The binding, in the `"mod+shift+z"` notation {@link TldrawUiKbd} renders. */
|
|
1162
|
+
kbd: string;
|
|
1163
|
+
/** Further bindings that do the same thing; not shown. */
|
|
1164
|
+
also?: readonly string[];
|
|
1165
|
+
group: TLKeyboardShortcutGroup;
|
|
1166
|
+
/**
|
|
1167
|
+
* Do the thing. Returning `false` means "not handled after all" — the event
|
|
1168
|
+
* keeps its default, which is what lets ⌘C fall through to the browser's own
|
|
1169
|
+
* copy when there is no selection to take.
|
|
1170
|
+
*/
|
|
1171
|
+
run(editor: Editor, event: KeyboardEvent): void | false;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Every shortcut the editor binds, as data.
|
|
1175
|
+
*
|
|
1176
|
+
* This list *is* the binding: the handler below dispatches through it and the
|
|
1177
|
+
* keyboard-shortcuts dialog renders from it, so the sheet cannot describe a
|
|
1178
|
+
* key the editor does not answer to, and a key added here appears in the sheet
|
|
1179
|
+
* without anyone remembering to write it down. The previous arrangement — a
|
|
1180
|
+
* switch statement here and a separate list in the dialog — is exactly the
|
|
1181
|
+
* shape that drifts.
|
|
1182
|
+
*
|
|
1183
|
+
* Tool switches are *not* here. They come from the UI tool list, because that
|
|
1184
|
+
* is the list an app's `TLUiOverrides.tools` can rewrite; `useToolShortcuts`
|
|
1185
|
+
* binds them and the dialog reads the same list.
|
|
1186
|
+
*/
|
|
1187
|
+
declare const KEYBOARD_SHORTCUTS: readonly TLKeyboardShortcut[];
|
|
1188
|
+
/** Normalize an authored binding into the same shape {@link bindingString} makes. */
|
|
1189
|
+
declare function normalizeKbd(kbd: string): string;
|
|
1190
|
+
/** Every binding in the table, indexed by its normalized form. */
|
|
1191
|
+
declare function buildShortcutIndex(shortcuts?: readonly TLKeyboardShortcut[]): Map<string, TLKeyboardShortcut>;
|
|
1151
1192
|
interface KeyboardShortcutOptions {
|
|
1152
1193
|
/**
|
|
1153
1194
|
* Bind the plain-key tool switches (`v`, `h`, `n`, …). Leave it on for an
|
|
1154
|
-
* editor with no chrome; turn it OFF whenever
|
|
1195
|
+
* editor with no chrome; turn it OFF whenever the chrome is mounted, because
|
|
1155
1196
|
* the UI tool list binds those keys itself — and it is the list an app's
|
|
1156
1197
|
* `TLUiOverrides.tools` can rewrite, so a binding hard-coded here would
|
|
1157
1198
|
* survive an override that meant to remove it. Defaults to `true`.
|
|
1158
1199
|
*/
|
|
1159
1200
|
tools?: boolean;
|
|
1160
1201
|
}
|
|
1161
|
-
/** Default keyboard shortcuts:
|
|
1202
|
+
/** Default keyboard shortcuts: {@link KEYBOARD_SHORTCUTS}, plus tool switching. */
|
|
1162
1203
|
declare function useKeyboardShortcuts(editor: Editor | null, options?: KeyboardShortcutOptions): void;
|
|
1163
1204
|
|
|
1164
1205
|
interface DefaultToolbarProps {
|
|
@@ -1234,6 +1275,19 @@ declare function useToolShortcuts(): void;
|
|
|
1234
1275
|
/** Component form, so the hook can be mounted from inside the UI provider. */
|
|
1235
1276
|
declare function ToolShortcuts(): null;
|
|
1236
1277
|
|
|
1278
|
+
/**
|
|
1279
|
+
* `{ normalized binding: actionId }` for every action that declares one.
|
|
1280
|
+
*
|
|
1281
|
+
* Bindings already owned by {@link KEYBOARD_SHORTCUTS} are skipped rather than
|
|
1282
|
+
* overridden: those carry behaviour an action item does not (undo coalescing,
|
|
1283
|
+
* clipboard fallbacks), and firing both would run the same operation twice.
|
|
1284
|
+
*/
|
|
1285
|
+
declare function actionKeyMap(actions: TLUiActionsContextType, isReadonly: boolean): Map<string, string>;
|
|
1286
|
+
/** Binds the action list's shortcuts for as long as the calling component is mounted. */
|
|
1287
|
+
declare function useActionShortcuts(): void;
|
|
1288
|
+
/** Component form, so the hook can be mounted from inside the UI provider. */
|
|
1289
|
+
declare function ActionShortcuts(): null;
|
|
1290
|
+
|
|
1237
1291
|
/**
|
|
1238
1292
|
* The analytics seam: one callback the whole UI reports through.
|
|
1239
1293
|
*
|
|
@@ -1395,6 +1449,12 @@ interface TLUiTranslation {
|
|
|
1395
1449
|
label: string;
|
|
1396
1450
|
dir: "ltr" | "rtl";
|
|
1397
1451
|
messages: Readonly<Record<string, string>>;
|
|
1452
|
+
/**
|
|
1453
|
+
* The locales the host supplied a dictionary for, in the order it gave
|
|
1454
|
+
* them. Empty when it supplied none — which is the default, because
|
|
1455
|
+
* mocanvas ships no catalogues of its own.
|
|
1456
|
+
*/
|
|
1457
|
+
locales?: readonly string[];
|
|
1398
1458
|
}
|
|
1399
1459
|
/**
|
|
1400
1460
|
* A UI string id. Open (`string`) rather than a closed union: mocanvas has no
|
|
@@ -1451,6 +1511,17 @@ declare function useMaybeCurrentTranslation(): TLUiTranslation | null;
|
|
|
1451
1511
|
declare function useTranslation(): (id: TLUiTranslationKey) => string;
|
|
1452
1512
|
/** Alias of {@link useTranslation}, spelled as the value it returns. */
|
|
1453
1513
|
declare const useMsg: typeof useTranslation;
|
|
1514
|
+
/**
|
|
1515
|
+
* The languages this editor can actually be shown in.
|
|
1516
|
+
*
|
|
1517
|
+
* mocanvas ships no message catalogues — its default labels are English
|
|
1518
|
+
* display text — so this is the set the *host* supplied through
|
|
1519
|
+
* `overrides.translations`, named where {@link LANGUAGES} knows the name.
|
|
1520
|
+
* With no dictionaries it is empty, and a language menu built from it
|
|
1521
|
+
* correctly offers nothing rather than twenty-five languages that all render
|
|
1522
|
+
* the same English.
|
|
1523
|
+
*/
|
|
1524
|
+
declare function useAvailableTranslationLocales(): readonly TLLanguage[];
|
|
1454
1525
|
/** The writing direction of the current locale; `"ltr"` outside a provider. */
|
|
1455
1526
|
declare function useDirection(): "ltr" | "rtl";
|
|
1456
1527
|
/**
|
|
@@ -1581,14 +1652,45 @@ declare function DefaultA11yAnnouncer(): react.JSX.Element;
|
|
|
1581
1652
|
* Says how many shapes are selected and, for a single shape, what kind it is —
|
|
1582
1653
|
* which is the minimum a keyboard user needs to know that their last keystroke
|
|
1583
1654
|
* did what they meant.
|
|
1655
|
+
*
|
|
1656
|
+
* Under {@link ToggleEnhancedA11yModeItem} it also reads back position and
|
|
1657
|
+
* size. That is deliberately not the default: it is what a person wants when
|
|
1658
|
+
* they are placing something by keyboard, and unbearable when they are only
|
|
1659
|
+
* tabbing through a board.
|
|
1584
1660
|
*/
|
|
1585
1661
|
declare function useSelectedShapesAnnouncer(): void;
|
|
1586
1662
|
/**
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1663
|
+
* Runs {@link useSelectedShapesAnnouncer}. Draws nothing.
|
|
1664
|
+
*
|
|
1665
|
+
* Separate from {@link DefaultA11yAnnouncer} — which is the live region, the
|
|
1666
|
+
* place announcements land — because the two are independently replaceable:
|
|
1667
|
+
* an app that swaps the `A11y` slot for its own region still wants the
|
|
1668
|
+
* editor's selection announcements delivered into it. Before this existed the
|
|
1669
|
+
* regions rendered and nothing ever announced into them, so a screen reader
|
|
1670
|
+
* heard nothing at all when the selection changed.
|
|
1590
1671
|
*/
|
|
1672
|
+
declare function SelectionAnnouncer(): null;
|
|
1673
|
+
/** Whether the *operating system* asks for reduced motion. */
|
|
1591
1674
|
declare function usePrefersReducedMotion(): boolean;
|
|
1675
|
+
/**
|
|
1676
|
+
* Whether motion is reduced right now: the user's `animationSpeed`
|
|
1677
|
+
* preference, or — while they have expressed none — the operating system's.
|
|
1678
|
+
*
|
|
1679
|
+
* The distinction matters for a checkbox. Reading only the combined value
|
|
1680
|
+
* leaves a box that is already ticked because of the OS setting and does not
|
|
1681
|
+
* untick when pressed, which is a control that appears broken. Reading the
|
|
1682
|
+
* raw preference (`undefined` for "not set") lets the box start in the state
|
|
1683
|
+
* the OS asked for and still respond to every press.
|
|
1684
|
+
*/
|
|
1685
|
+
declare function useReduceMotion(): boolean;
|
|
1686
|
+
/**
|
|
1687
|
+
* Puts `data-reduce-motion` on the editor's container while motion is
|
|
1688
|
+
* reduced, so `ui.css` can switch off the chrome's transitions.
|
|
1689
|
+
*
|
|
1690
|
+
* An attribute rather than a class because the container belongs to the host:
|
|
1691
|
+
* adding to `className` would fight whatever the app set there.
|
|
1692
|
+
*/
|
|
1693
|
+
declare function ReduceMotionAttribute(): null;
|
|
1592
1694
|
|
|
1593
1695
|
/**
|
|
1594
1696
|
* Transient messages: "copied", "could not import that file".
|
|
@@ -2239,6 +2341,26 @@ declare function TldrawUiGrid({ columns, gap, className, style, children }: TLUi
|
|
|
2239
2341
|
* bottom of a short window, or that drops focus into the void when dismissed.
|
|
2240
2342
|
*/
|
|
2241
2343
|
type Side = "above" | "below";
|
|
2344
|
+
/**
|
|
2345
|
+
* How a layer learns about the layers opened from inside it.
|
|
2346
|
+
*
|
|
2347
|
+
* Every floating layer is portalled to the same place, so a submenu is a
|
|
2348
|
+
* *sibling* of the menu that opened it, not a descendant. A dismiss check
|
|
2349
|
+
* written as "did the press land inside me?" therefore answers no for a press
|
|
2350
|
+
* on the submenu's own rows — and closes the whole menu on pointer-down,
|
|
2351
|
+
* before the click that would have chosen the row ever happens. Every submenu
|
|
2352
|
+
* item in the chrome was unreachable for exactly this reason.
|
|
2353
|
+
*
|
|
2354
|
+
* A layer registers its element with the layer it was opened from (and, up
|
|
2355
|
+
* the chain, with that layer's own parent), so "inside me" can mean "inside
|
|
2356
|
+
* me or anything I opened".
|
|
2357
|
+
*/
|
|
2358
|
+
interface TLUiLayerNesting {
|
|
2359
|
+
/** Register a nested layer's element. Returns the un-register. */
|
|
2360
|
+
register(node: HTMLElement): () => void;
|
|
2361
|
+
/** Whether `target` is inside a layer opened from this one. */
|
|
2362
|
+
containsNested(target: Node): boolean;
|
|
2363
|
+
}
|
|
2242
2364
|
/** Position an element beside `anchor` once it has been measured. */
|
|
2243
2365
|
declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, open: boolean, prefer: Side): [RefObject<HTMLDivElement | null>, Placement | null];
|
|
2244
2366
|
/**
|
|
@@ -2247,7 +2369,9 @@ declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, o
|
|
|
2247
2369
|
* Listens in the capture phase so it wins against a canvas handler that would
|
|
2248
2370
|
* otherwise start a gesture on the same press.
|
|
2249
2371
|
*/
|
|
2250
|
-
declare function useDismissable(open: boolean, layerRef: RefObject<HTMLElement | null>, anchorRef: RefObject<HTMLElement | null>, onClose: () => void
|
|
2372
|
+
declare function useDismissable(open: boolean, layerRef: RefObject<HTMLElement | null>, anchorRef: RefObject<HTMLElement | null>, onClose: () => void,
|
|
2373
|
+
/** Also treat these as "inside": the layers this one opened. */
|
|
2374
|
+
containsNested?: (target: Node) => boolean): void;
|
|
2251
2375
|
/**
|
|
2252
2376
|
* Roving focus inside a menu: Up/Down move, Home/End jump, and focus lands on
|
|
2253
2377
|
* the first item when the menu opens.
|
|
@@ -2291,6 +2415,12 @@ interface TLUiPopoverProps {
|
|
|
2291
2415
|
/** The pair's root. Owns the open state unless the caller controls it. */
|
|
2292
2416
|
declare function TldrawUiPopover({ id, open: controlled, onOpenChange, side, children }: TLUiPopoverProps): react.JSX.Element;
|
|
2293
2417
|
interface TLUiPopoverTriggerProps {
|
|
2418
|
+
/**
|
|
2419
|
+
* Accessible name for the trigger. A trigger whose only content is an icon
|
|
2420
|
+
* has no text to be named by, so without this it reaches a screen reader as
|
|
2421
|
+
* an unnamed button.
|
|
2422
|
+
*/
|
|
2423
|
+
label?: string;
|
|
2294
2424
|
className?: string;
|
|
2295
2425
|
children?: ReactNode;
|
|
2296
2426
|
}
|
|
@@ -2301,7 +2431,7 @@ interface TLUiPopoverTriggerProps {
|
|
|
2301
2431
|
* whatever it likes inside without the trigger having to guess which prop on
|
|
2302
2432
|
* an unknown element is the click handler.
|
|
2303
2433
|
*/
|
|
2304
|
-
declare function TldrawUiPopoverTrigger({ className, children }: TLUiPopoverTriggerProps): react.JSX.Element;
|
|
2434
|
+
declare function TldrawUiPopoverTrigger({ label, className, children }: TLUiPopoverTriggerProps): react.JSX.Element;
|
|
2305
2435
|
interface TLUiPopoverContentProps {
|
|
2306
2436
|
/** Accessible name for the panel. */
|
|
2307
2437
|
label?: string;
|
|
@@ -2484,6 +2614,8 @@ interface TLUiToolbarButtonProps {
|
|
|
2484
2614
|
disabled?: boolean;
|
|
2485
2615
|
title?: string;
|
|
2486
2616
|
"aria-label"?: string;
|
|
2617
|
+
/** The tool the button selects, published as `data-tool` for tests and apps. */
|
|
2618
|
+
"data-tool"?: string;
|
|
2487
2619
|
className?: string;
|
|
2488
2620
|
ref?: Ref<HTMLButtonElement>;
|
|
2489
2621
|
onClick?(): void;
|
|
@@ -2750,8 +2882,13 @@ declare function CopyAsMenuGroup(): react.JSX.Element;
|
|
|
2750
2882
|
declare function ExportAsMenuGroup(): react.JSX.Element;
|
|
2751
2883
|
/** Export the whole document as a `.mocanvas` file. */
|
|
2752
2884
|
declare function ExportFileContentSubMenu(): react.JSX.Element;
|
|
2753
|
-
/**
|
|
2754
|
-
|
|
2885
|
+
/**
|
|
2886
|
+
* Print the drawing — the selection if there is one, otherwise the page.
|
|
2887
|
+
*
|
|
2888
|
+
* Disabled on an empty page, because there is nothing to put on the paper and
|
|
2889
|
+
* a print dialog showing a blank sheet is worse than a greyed-out row.
|
|
2890
|
+
*/
|
|
2891
|
+
declare const PrintItem: () => react.JSX.Element;
|
|
2755
2892
|
/** Copy-as and export-as, as one group. */
|
|
2756
2893
|
declare function ConversionsMenuGroup(): react.JSX.Element;
|
|
2757
2894
|
/** Delete the selection. */
|
|
@@ -2849,11 +2986,12 @@ declare function ToggleKeyboardShortcutsItem(): react.JSX.Element;
|
|
|
2849
2986
|
/** Export with a transparent background. */
|
|
2850
2987
|
declare function ToggleTransparentBgMenuItem(): react.JSX.Element;
|
|
2851
2988
|
/**
|
|
2852
|
-
* Turn off animation.
|
|
2989
|
+
* Turn off animation: the chrome's transitions and the camera's easing.
|
|
2853
2990
|
*
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
2991
|
+
* Starts ticked for a user whose operating system asks for reduced motion —
|
|
2992
|
+
* they should not have to ask twice — but the tick tracks the editor's own
|
|
2993
|
+
* preference from the first press onwards, so the box always answers a click.
|
|
2994
|
+
* See {@link useReduceMotion}.
|
|
2857
2995
|
*/
|
|
2858
2996
|
declare function ToggleReduceMotionItem(): react.JSX.Element;
|
|
2859
2997
|
/**
|
|
@@ -2864,16 +3002,46 @@ declare function ToggleReduceMotionItem(): react.JSX.Element;
|
|
|
2864
3002
|
* closest thing the option set has to the same effect.
|
|
2865
3003
|
*/
|
|
2866
3004
|
declare const ToggleInvertZoomItem: () => react.JSX.Element;
|
|
2867
|
-
/**
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
3005
|
+
/**
|
|
3006
|
+
* Announce more than the minimum to a screen reader.
|
|
3007
|
+
*
|
|
3008
|
+
* SEMANTICS-ASSUMED: the name specifies no behaviour, so this settles on the
|
|
3009
|
+
* one an editor can honour — how much the selection announcer says. Off, it
|
|
3010
|
+
* names the selection; on, it also reads back position and size, which a
|
|
3011
|
+
* keyboard user otherwise cannot get at. Read it with
|
|
3012
|
+
* `editor.user.getIsEnhancedA11yMode()`; `useSelectedShapesAnnouncer` is what
|
|
3013
|
+
* consumes it today.
|
|
3014
|
+
*
|
|
3015
|
+
* `useEnhancedA11yMode` is deliberately NOT exported alongside it. An earlier
|
|
3016
|
+
* version of this file had one backed by a module-level boolean — so each
|
|
3017
|
+
* caller got its own copy of the state, and nothing read any of them. The
|
|
3018
|
+
* preference is the single source of truth, and tldraw's reference documents
|
|
3019
|
+
* only the menu item.
|
|
3020
|
+
*/
|
|
3021
|
+
declare const ToggleEnhancedA11yModeItem: () => react.JSX.Element;
|
|
2871
3022
|
/** Every preference toggle, as one group. */
|
|
2872
3023
|
declare function PreferencesGroup(): react.JSX.Element;
|
|
2873
|
-
/**
|
|
3024
|
+
/**
|
|
3025
|
+
* Light, dark, or follow the system.
|
|
3026
|
+
*
|
|
3027
|
+
* Writes through {@link Editor.setColorMode} as well as to the user's
|
|
3028
|
+
* preferences. The theme manager is what the canvas and the CSS custom
|
|
3029
|
+
* properties actually paint from; writing only the preference left the tick
|
|
3030
|
+
* moving and the screen unchanged, which is what made this menu look dead.
|
|
3031
|
+
*/
|
|
2874
3032
|
declare const ColorSchemeMenu: () => react.JSX.Element;
|
|
2875
|
-
/**
|
|
2876
|
-
|
|
3033
|
+
/**
|
|
3034
|
+
* Pick the UI locale — when there is more than one to pick from.
|
|
3035
|
+
*
|
|
3036
|
+
* mocanvas ships no message catalogues: its own labels are English display
|
|
3037
|
+
* text, and `overrides.translations` is where an app's dictionaries come
|
|
3038
|
+
* from. So the list is the host's locales, not the twenty-five entries of
|
|
3039
|
+
* {@link LANGUAGES} — offering a language for which no strings exist is a
|
|
3040
|
+
* promise the library cannot keep, and a user who picks one and sees nothing
|
|
3041
|
+
* change learns that the menu lies. With no dictionaries, or only one, this
|
|
3042
|
+
* renders nothing at all.
|
|
3043
|
+
*/
|
|
3044
|
+
declare const LanguageMenu: () => react.JSX.Element | null;
|
|
2877
3045
|
/**
|
|
2878
3046
|
* Which pointer devices draw.
|
|
2879
3047
|
*
|
|
@@ -3456,14 +3624,24 @@ interface ExportAsOptions extends CopyAsOptions {
|
|
|
3456
3624
|
declare function copyAs(editor: Editor, format?: ExportFormat | "json", ids?: readonly ShapeId[], opts?: CopyAsOptions): Promise<void>;
|
|
3457
3625
|
/** Render the shapes and hand the file to the browser's downloader. */
|
|
3458
3626
|
declare function exportAs(editor: Editor, format?: ExportFormat, ids?: readonly ShapeId[], opts?: ExportAsOptions): Promise<void>;
|
|
3627
|
+
/** Whether there is anything on the current page to print. */
|
|
3628
|
+
declare function canPrint(editor: Editor): boolean;
|
|
3459
3629
|
/**
|
|
3460
|
-
* Print the
|
|
3630
|
+
* Print the drawing: the selection if there is one, otherwise the page.
|
|
3631
|
+
*
|
|
3632
|
+
* Not `window.print()`. The editor is a component on somebody's page, and the
|
|
3633
|
+
* host window's print view is that whole page — headers, navigation, the
|
|
3634
|
+
* article the canvas is embedded in, and a canvas element that a print
|
|
3635
|
+
* stylesheet cannot usefully lay out. What the user asked to print is the
|
|
3636
|
+
* drawing, so the drawing is what is rendered: the same SVG the exporter
|
|
3637
|
+
* produces, alone in a hidden same-origin frame that is printed and then
|
|
3638
|
+
* thrown away.
|
|
3461
3639
|
*
|
|
3462
|
-
*
|
|
3463
|
-
*
|
|
3464
|
-
*
|
|
3640
|
+
* Returns `false` when there was nothing to print or no DOM to print it in;
|
|
3641
|
+
* the menu item disables itself on the same condition, so this is the
|
|
3642
|
+
* belt-and-braces case rather than the normal one.
|
|
3465
3643
|
*/
|
|
3466
|
-
declare function printSelection(editor: Editor):
|
|
3644
|
+
declare function printSelection(editor: Editor, ids?: readonly ShapeId[]): boolean;
|
|
3467
3645
|
|
|
3468
3646
|
/**
|
|
3469
3647
|
* The small hooks the chrome reaches for that do not belong to any one panel.
|
|
@@ -3566,6 +3744,14 @@ type TLUiMenuPanelChildren = ReactNode;
|
|
|
3566
3744
|
* A menu rather than a tab bar: a document with twenty pages has to stay
|
|
3567
3745
|
* usable, and a row of twenty tabs does not. The current page's name doubles
|
|
3568
3746
|
* as the trigger, so the panel costs one button's worth of chrome.
|
|
3747
|
+
*
|
|
3748
|
+
* ## Why the per-page actions are behind their own trigger
|
|
3749
|
+
* They used to be three rows printed beside every page name, which made a
|
|
3750
|
+
* five-page document a twenty-row menu in which nothing said which "Delete"
|
|
3751
|
+
* belonged to which page. One trigger per row, opening a menu that names the
|
|
3752
|
+
* page it acts on, is the same three actions without the ambiguity — and it
|
|
3753
|
+
* leaves the row itself as what it should be: the thing you click to switch
|
|
3754
|
+
* page.
|
|
3569
3755
|
*/
|
|
3570
3756
|
interface PageItemInputProps {
|
|
3571
3757
|
id: PageId;
|
|
@@ -3587,10 +3773,20 @@ interface PageItemSubmenuProps {
|
|
|
3587
3773
|
index: number;
|
|
3588
3774
|
/** How many pages there are, so the last one cannot be deleted. */
|
|
3589
3775
|
total: number;
|
|
3776
|
+
/** The page's name, so the menu can say which page it acts on. */
|
|
3777
|
+
name?: string;
|
|
3590
3778
|
onRename?(): void;
|
|
3591
3779
|
}
|
|
3592
|
-
/**
|
|
3593
|
-
|
|
3780
|
+
/**
|
|
3781
|
+
* The per-page actions: rename, duplicate, delete.
|
|
3782
|
+
*
|
|
3783
|
+
* Its open state is controlled here rather than left to the submenu, because
|
|
3784
|
+
* "Rename" has to close *this* menu and leave the page list open behind it —
|
|
3785
|
+
* the rename field it reveals lives in that list. An item that closed the
|
|
3786
|
+
* whole menu would put the field out of sight, which is the bug this shape
|
|
3787
|
+
* exists to prevent.
|
|
3788
|
+
*/
|
|
3789
|
+
declare function PageItemSubmenu({ id, total, name, onRename }: PageItemSubmenuProps): react.JSX.Element;
|
|
3594
3790
|
/**
|
|
3595
3791
|
* The page menu.
|
|
3596
3792
|
*
|
|
@@ -3650,11 +3846,42 @@ declare function OfflineIndicator(): react.JSX.Element | null;
|
|
|
3650
3846
|
/**
|
|
3651
3847
|
* The keyboard shortcuts dialog.
|
|
3652
3848
|
*
|
|
3653
|
-
* Built from the
|
|
3654
|
-
*
|
|
3655
|
-
*
|
|
3849
|
+
* Built from the three things that actually install bindings — the
|
|
3850
|
+
* {@link KEYBOARD_SHORTCUTS} table that `useKeyboardShortcuts` dispatches
|
|
3851
|
+
* through, the UI tool list that `useToolShortcuts` binds, and the UI action
|
|
3852
|
+
* list that `useActionShortcuts` binds — rather than from a list written out
|
|
3853
|
+
* by hand beside them. A sheet assembled from
|
|
3854
|
+
* anything else can drift from the editor it describes, and a shortcut sheet
|
|
3855
|
+
* that is wrong is worse than none: the user tries the key, nothing happens,
|
|
3856
|
+
* and they stop trusting the rest of the page.
|
|
3857
|
+
*
|
|
3858
|
+
* It is also why the tool rows come from the *list* and not from the tool's
|
|
3859
|
+
* declared `kbd`: an app that rebinds a key through `overrides.tools` gets a
|
|
3860
|
+
* correct sheet, and one whose binding lost a fight for the same key does not
|
|
3861
|
+
* see a row claiming otherwise.
|
|
3862
|
+
*/
|
|
3863
|
+
/** One row: a label and the key that reaches it. */
|
|
3864
|
+
interface ShortcutRow {
|
|
3865
|
+
id: string;
|
|
3866
|
+
label: string;
|
|
3867
|
+
kbd: string;
|
|
3868
|
+
}
|
|
3869
|
+
/** The tools that really answer to a key right now, in tool-list order. */
|
|
3870
|
+
declare function useBoundToolShortcuts(): ShortcutRow[];
|
|
3871
|
+
/**
|
|
3872
|
+
* The actions that really answer to a key right now, in action-list order.
|
|
3873
|
+
*
|
|
3874
|
+
* `actionKeyMap` drops anything {@link KEYBOARD_SHORTCUTS} already owns, so an
|
|
3875
|
+
* action that shares a binding with the table is listed once, by the table,
|
|
3876
|
+
* under the table's label — which is the one that runs.
|
|
3656
3877
|
*/
|
|
3657
|
-
|
|
3878
|
+
declare function useBoundActionShortcuts(): ShortcutRow[];
|
|
3879
|
+
/** The table's rows, in the order the sections are shown. */
|
|
3880
|
+
declare function groupKeyboardShortcuts(shortcuts?: readonly TLKeyboardShortcut[]): {
|
|
3881
|
+
group: TLKeyboardShortcutGroup;
|
|
3882
|
+
rows: ShortcutRow[];
|
|
3883
|
+
}[];
|
|
3884
|
+
/** Every shortcut the editor is listening for, grouped. */
|
|
3658
3885
|
declare function DefaultKeyboardShortcutsDialogContent(): react.JSX.Element;
|
|
3659
3886
|
/**
|
|
3660
3887
|
* The dialog frame. Replace the contents by passing `children`; replace the
|
|
@@ -4110,6 +4337,16 @@ interface ToggleToolLockedButtonProps {
|
|
|
4110
4337
|
* nothing.
|
|
4111
4338
|
*/
|
|
4112
4339
|
declare const ToggleToolLockedButton: ({ className }: ToggleToolLockedButtonProps) => react.JSX.Element | null;
|
|
4340
|
+
/**
|
|
4341
|
+
* The default set of toolbar buttons, in order.
|
|
4342
|
+
*
|
|
4343
|
+
* An array rather than markup, because {@link OverflowingToolbar} splits its
|
|
4344
|
+
* children one by one: handed `<DefaultToolbarContent />` it would see a
|
|
4345
|
+
* single opaque child and could only move the whole bar into the popover at
|
|
4346
|
+
* once. `Children.toArray` flattens a nested array, so spreading this list
|
|
4347
|
+
* into the bar gives it the per-button children it measures against.
|
|
4348
|
+
*/
|
|
4349
|
+
declare const DEFAULT_TOOLBAR_ITEMS: readonly ReactNode[];
|
|
4113
4350
|
/**
|
|
4114
4351
|
* The default set of toolbar buttons, in order.
|
|
4115
4352
|
*
|
|
@@ -4126,9 +4363,16 @@ interface OverflowingToolbarProps {
|
|
|
4126
4363
|
/**
|
|
4127
4364
|
* A toolbar that moves whatever will not fit into a "more" popover.
|
|
4128
4365
|
*
|
|
4129
|
-
* The split is measured, not guessed
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4366
|
+
* The split is measured, not guessed, so the same component works in a 320px
|
|
4367
|
+
* phone frame and in a 1600px desktop one without the caller configuring
|
|
4368
|
+
* anything.
|
|
4369
|
+
*
|
|
4370
|
+
* ## Why the *container* is measured, not the bar
|
|
4371
|
+
* The plate is `width: max-content`, so its own width is a consequence of how
|
|
4372
|
+
* many children it is currently showing. Deriving the split from that is a
|
|
4373
|
+
* feedback loop: dropping a button narrows the bar, which drops another. The
|
|
4374
|
+
* room available to it — the container, less what the CSS reserves for the
|
|
4375
|
+
* docks on either side — is independent of the decision, so the split settles.
|
|
4132
4376
|
*
|
|
4133
4377
|
* A child that renders nothing still takes a slot, so a caller mapping over a
|
|
4134
4378
|
* fixed list gets a split that does not jump around as tools appear.
|
|
@@ -9900,4 +10144,4 @@ declare function getPointsFromDrawSegment(segment: TLDrawShapeSegment, scaleX: n
|
|
|
9900
10144
|
/** Every point of a stroke, in order, scaled to the shape's current size. */
|
|
9901
10145
|
declare function getPointsFromDrawSegments(segments: TLDrawShapeSegment[], scaleX?: number, scaleY?: number): Vec[];
|
|
9902
10146
|
|
|
9903
|
-
export { type A11yPriority, type A11yProviderProps, ARROW_KINDS, ARROW_LABEL_PADDING, ARROW_TERMINAL_GAP_STROKES, type ASPECT_RATIO_OPTION, ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AVG_CHAR_WIDTH, AccessibilityMenu, type ActionsProviderProps, type AlertSeverity, AlignMenuItems, type ArcBody, ArrangeMenuSubmenu, type ArrowBinding, ArrowBindingHintOverlayUtil, type ArrowBindingHintOverlayUtilDisplayValues, type ArrowBindingHintOverlayUtilOptions, type ArrowBindingProps, ArrowBindingUtil, type ArrowBindings, type ArrowBody, ArrowDownToolbarItem, ArrowHintOverlayUtil, type ArrowHintOverlayUtilDisplayValues, type ArrowHintOverlayUtilOptions, type ArrowKind, ArrowLeftToolbarItem, ArrowRightToolbarItem, type ArrowShape, type ArrowShapeOptions, type ArrowShapeProps, ArrowTool as ArrowShapeTool, ArrowShapeUtil, type ArrowShapeUtilDisplayValues, type ArrowTargetHandle, type ArrowTargetState, type ArrowTerminal, type ArrowTerminals, ArrowTool, ArrowToolbarItem, ArrowUpToolbarItem, type ArrowheadKind, type AspectRatioOption, AssetToolbarItem, type AssetUtilClass, type AssetUtilOptions, BOOKMARK_BANNER_FILL, BOOKMARK_BANNER_HEIGHT, BOOKMARK_FAVICON_SIZE, BOOKMARK_FILL, BOOKMARK_GAP, BOOKMARK_HEIGHT, BOOKMARK_META_COLOR, BOOKMARK_META_FONT_SIZE, BOOKMARK_META_HEIGHT, BOOKMARK_MIN_BODY_HEIGHT, BOOKMARK_PADDING, BOOKMARK_RADIUS, BOOKMARK_STROKE, BOOKMARK_STROKE_WIDTH, BOOKMARK_TEXT_COLOR, BOOKMARK_TEXT_FONT_SIZE, BOOKMARK_TITLE_COLOR, BOOKMARK_TITLE_FONT_SIZE, BOOKMARK_TITLE_HEIGHT, BOOKMARK_UNFURL_FAILED, BOOKMARK_WIDTH, BaseBoxShapeTool, type BasePathBuilderOpts, BookmarkAssetUtil, type BookmarkCard, type BookmarkLayout, type BookmarkRect, type BookmarkShape, type BookmarkShapeOptions, type BookmarkShapeProps, BookmarkShapeUtil, type BookmarkShapeUtilDisplayValues, type BoxWidthHeight, BreakPointProvider, type BreakPointProviderProps, BrushOverlayUtil, type BrushOverlayUtilDisplayValues, type BrushOverlayUtilOptions, type CameraLike, CenteredTopPanelContainer, type CenteredTopPanelContainerProps, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorOverlayUtil, CollaboratorHintOverlayUtil, type CollaboratorOverlayUtilOptions, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, type CopyAsOptions, CopyMenuItem, type CreateBookmarkResult, type CropBoxOptions, type CubicSegment, CursorChatItem, type CustomDebugFlags, type CustomEmbedDefinition, CutMenuItem, DEFAULT_ARROW_BINDING_HINT_OVERLAY_OPTIONS, DEFAULT_ARROW_HINT_OVERLAY_OPTIONS, DEFAULT_BRUSH_OVERLAY_OPTIONS, DEFAULT_COLLABORATOR_OVERLAY_OPTIONS, DEFAULT_ELBOW_ARROW_OPTIONS, DEFAULT_EMBED_DEFINITIONS, DEFAULT_GEO_TYPE_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DEFAULT_SCRIBBLE_OVERLAY_OPTIONS, DEFAULT_SELECTION_FOREGROUND_OVERLAY_OPTIONS, DEFAULT_SHAPE_HANDLE_OVERLAY_OPTIONS, DEFAULT_SNAP_INDICATOR_OVERLAY_OPTIONS, DEFAULT_SUPPORTED_IMAGE_TYPES, DEFAULT_SUPPORTED_VIDEO_TYPES, type DashedPathBuilderOpts, type DebugFlag, type DebugFlagDef, DebugFlagDefaults, DebugFlags, type DebugFlagsProps, DebugStats, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDebugPanel, DefaultDialogs, type DefaultEmbedConfig, type DefaultEmbedDefinitionType, type DefaultExternalContentOptions, DefaultFollowingIndicator, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, type DefaultImageToolbarContentProps, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, type DefaultPeopleMenuContentProps, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, type DefaultPeopleMenuProps, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, type DefaultRichTextToolbarContentProps, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, type DefaultToolbarProps, DefaultToolbarWithOverflow, DefaultUi, type DefaultUiProps, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, type DefaultVideoToolbarContentProps, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, type DrawPathBuilderDOpts, type DrawPathBuilderOpts, type DrawPoint, type DrawSegment, type DrawShape, type DrawShapeOptions, type DrawShapeProps, DrawTool as DrawShapeTool, DrawShapeUtil, type DrawShapeUtilDisplayValues, DrawTool, DrawToolbarItem, DuplicateMenuItem, ELBOW_ARROW_SIDES, ELBOW_CORNER_STROKES, EMBED_HEIGHT, EMBED_PLACEHOLDER_FILL, EMBED_PLACEHOLDER_FONT_SIZE, EMBED_PLACEHOLDER_PADDING, EMBED_PLACEHOLDER_STROKE, EMBED_PLACEHOLDER_TEXT, EMBED_RADIUS, EMBED_SANDBOX, EMBED_SHAPE_PERMISSION_NAMES, EMBED_WIDTH, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, type EditableTextHandle, type ElbowArrowBox, type ElbowArrowBoxEdges, type ElbowArrowBoxes, type ElbowArrowEdge, type ElbowArrowInfo, type ElbowArrowInfoWithoutRoute, type ElbowArrowMidpointHandle, type ElbowArrowOptions, type ElbowArrowRange, type ElbowArrowRoute, type ElbowArrowSide, type ElbowArrowTargetBox, type ElbowAxis, type ElbowBody, type ElbowRoute, type ElbowRouteOptions, type ElbowTerminalAxes, EllipseToolbarItem, type EmbedConfig, type EmbedDefinition, type EmbedInfo, type EmbedMatch, type EmbedSettings, type EmbedShape, type EmbedShapeOptions, type EmbedShapePermissionName, type EmbedShapeProps, EmbedShapeUtil, type EmbedShapeUtilDisplayValues, EraserTool, EraserToolbarItem, type EventsProviderProps, ExampleDialog, type ExampleDialogProps, ExportAsMenuGroup, type ExportAsOptions, ExportFileContentSubMenu, type ExportFormat, type ExportToBlobOptions, type ExternalContentOptions, type ExternalUrlContentOptions, type ExternalUrlToasts, ExtrasGroup, FALLBACK_THEME_COLORS, FRAME_FILL, FRAME_NAME_COLOR, FRAME_NAME_FONT_SIZE, FRAME_NAME_GAP, FRAME_NAME_HEIGHT, FRAME_NAME_OFFSET, FRAME_STROKE, FRAME_STROKE_WIDTH, FeatureFlags, type FeatureFlagsProps, FitFrameToContentMenuItem, FloatingLayer, type FloatingLayerProps, type FrameShape, type FrameShapeOptions, type FrameShapeProps, FrameTool as FrameShapeTool, FrameShapeUtil, type FrameShapeUtilDisplayValues, FrameTool, FrameToolbarItem, GEO_BOX, GEO_DEFAULT_SIZE, GEO_ICON_PATHS, GEO_LABEL_PADDING, type GeoFlip, type GeoPathOptions, type GeoShape, type GeoShapeOptions, type GeoShapeProps, GeoTool as GeoShapeTool, GeoShapeUtil, type GeoShapeUtilDisplayValues, type GeoSnapType, GeoTool, GeoToolbarItem, type GeoTypeDefinition, type GoogleMapsEmbedConfig, GroupMenuItem, GroupOrUngroupMenuItem, type GroupShape, type GroupShapeProps, GroupShapeUtil, HEXAGON_FLAT_SIDE_SPAN, HIGHLIGHT_OPACITY, HIGHLIGHT_STROKE_SIZES, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, type HighlightShape, type HighlightShapeOptions, type HighlightShapeProps, HighlightShapeTool, HighlightShapeUtil, type HighlightShapeUtilDisplayValues, HighlightToolbarItem, ICONS, ICON_GRID, ICON_NAMES, IMAGE_PLACEHOLDER_FILL, IMAGE_PLACEHOLDER_STROKE, Icon, type IconName, type IconProps, ImageAssetUtil, type ImageCrop, type ImageDimensions, type ImageShape, type ImageShapeOptions, type ImageShapeProps, ImageShapeUtil, type ImageShapeUtilDisplayValues, type ImageSize, type ImageSizeLoader, InputModeMenu, KeyboardShiftEnterTweakExtension, KeyboardShortcutsDialogContents, KeyboardShortcutsMenuItem, LANGUAGES, LINE_HEIGHT, type LabelMeasureOptions, LanguageMenu, LaserTool, LaserToolbarItem, type LinePoint, type LineShape, type LineShapeOptions, type LineShapeProps, LineTool as LineShapeTool, LineShapeUtil, type LineShapeUtilDisplayValues, LineTool, LineToolbarItem, type LoadMocanvasFileResult, LockGroup, MAX_TEXT_TEXTURE_PX, MOCANVAS_CLIPBOARD_TYPE, MOD_KEY, MORE_GEO_KINDS, MiscMenuGroup, MobileStylePanel, Mocanvas, type MocanvasProps, MocanvasUiMenuItem, type MocanvasUiMenuItemProps, MoveToPageMenu, NOTE_GRADIENT_TOP_SCALE, NOTE_PADDING, NOTE_SHADOW_BLUR, NOTE_SHADOW_COLOR, NOTE_SHADOW_OFFSET_Y, NOTE_SHADOW_OPACITY, NOTE_SHADOW_SPREAD, NOTE_SIZE, type NonePathBuilderOpts, type NoteShape, type NoteShapeOptions, type NoteShapeProps, NoteTool as NoteShapeTool, NoteShapeUtil, type NoteShapeUtilDisplayValues, NoteTool, NoteToolbarItem, OfflineIndicator, type OnDragFromToolbarToCreateShapesOpts, OvalToolbarItem, OverflowingToolbar, type OverflowingToolbarProps, type OverlayBox, PORTRAIT_BREAKPOINT, PRIMARY_GEO_KINDS, PageItemInput, type PageItemInputProps, PageItemSubmenu, type PageItemSubmenuProps, type ParseTldrawJsonFileResult, PasteMenuItem, PathBuilder, type PathBuilderCommand, type PathBuilderCommandOpts, PathBuilderGeometry2d, type PathBuilderLineOpts, type PathBuilderOpts, type PathBuilderToDOpts, type PathDashTerminal, type Placement, PlainTextArea, PlainTextLabel, type PlainTextLabelProps, Popover, type PopoverProps, PreferencesGroup, PrintItem, RICH_TEXT_BLOCK_CSS, RICH_TEXT_MARKS, RICH_TEXT_NODES, RTL_LANGUAGES, RectangleToolbarItem, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, type ResolvedArrowProps, type ResolvedGeoProps, type ResolvedNoteProps, type ResolvedTextProps, ResponsiveStylePanel, RhombusToolbarItem, type RichText, RichTextArea, type RichTextAreaProps, type RichTextBlock, type RichTextEditorFactory, type RichTextEditorHandle, type RichTextEditorMountOptions, type RichTextExtension, type RichTextFontState, type RichTextHtmlOptions, RichTextLabel, type RichTextLabelProps, type RichTextMark, type RichTextMarkExtension, type RichTextNode, type RichTextNodeExtension, type RichTextRun, type RichTextRunStyle, RichTextSVG, type RichTextSVGProps, type RichTextSource, RotateCWMenuItem, STAR_INNER_RATIO, SVG_DARK_BACKGROUND, SVG_EXPORT_DEFAULT_PADDING, SVG_LIGHT_BACKGROUND, ScribbleOverlayUtil, type ScribbleOverlayUtilDisplayValues, type ScribbleOverlayUtilOptions, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionForegroundOverlayUtil, type SelectionForegroundOverlayUtilDisplayValues, type SelectionForegroundOverlayUtilOptions, ShapeHandleOverlayUtil, type ShapeHandleOverlayUtilDisplayValues, type ShapeHandleOverlayUtilOptions, ShapeIndicatorOverlayUtil, type ShapeOptionsWithDisplayValues, type ShapeSvgRenderer, type Side, SnapIndicatorOverlayUtil, type SnapIndicatorOverlayUtilDisplayValues, type SnapIndicatorOverlayUtilOptions, type SolidPathBuilderOpts, StackMenuItems, StarToolbarItem, type StraightBody, type StrokeOptions, type StrokePoint, type StrokeTerminalOptions, StylePanel, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, type StylePanelButtonPickerProps, StylePanelColorPicker, type StylePanelContext, StylePanelContextProvider, type StylePanelContextProviderProps, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, type StylePanelDoubleDropdownPickerProps, StylePanelDropdownPicker, StylePanelDropdownPickerInline, type StylePanelDropdownPickerProps, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, type StylePanelSectionProps, type StylePanelSections, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, type StylePanelSubheadingProps, StylePanelTextAlignPicker, type StyleValuesForUi, type SvgExportContext, type SvgExportOptions, type SvgExportResult, type SvgTextBox, type SvgTextOptions, type SvgTransform, TEXT_SHAPE_MIN_WIDTH, type TLArcArrowInfo, type TLArcInfo, type TLArrowBindingHintOverlay, type TLArrowHintOverlay, type TLArrowInfo, type TLArrowPoint, type TLBrushOverlay, type TLCollaboratorBrushOverlay, type TLCollaboratorCursorOverlay, type TLCollaboratorHintOverlay, type TLCollaboratorScribbleOverlay, type TLCollaboratorShapeIndicatorOverlay, type TLCopyType, TLDRAW_FILE_EXTENSION, type TLDefaultExternalContentHandlerOpts, type TLDefaultFont, type TLDefaultFonts, type TLElbowArrowInfo, type TLEmbedResult, type TLEmbedShapePermissions, type TLExternalContentProps, type TLGroupShapeProps, type TLHighlightShape, type TLHighlightShapeProps, type TLLanguage, type TLLineShapePoint, type TLOnMountHandler, type TLScribbleOverlay, type TLSelectionForegroundOverlay, type TLShapeHandleOverlay, type TLShapeIndicatorOverlay, type TLSnapIndicatorOverlay, type TLStraightArrowInfo, type TLTypeFace, type TLUiA11y, type TLUiA11yContextType, type TLUiActionsMenuProps, type TLUiAssetUrlOverrides, type TLUiBreakpoint, type TLUiButtonCheckProps, type TLUiButtonIconProps, type TLUiButtonLabelProps, type TLUiButtonProps, type TLUiButtonType, type TLUiClipboardEvents, type TLUiComponents, type TLUiComponentsProviderProps, type TLUiComponentsResolved, type TLUiContextMenuProps, type TLUiContextProviderProps, type TLUiContextualToolbarProps, type TLUiDebugMenuProps, type TLUiDefaultHelpers, type TLUiDialog, type TLUiDialogBodyProps, type TLUiDialogFooterProps, type TLUiDialogHeaderProps, type TLUiDialogProps, type TLUiDialogTitleProps, type TLUiDialogsContextType, type TLUiDialogsProviderProps, type TLUiDropdownMenuCheckboxItemProps, type TLUiDropdownMenuContentProps, type TLUiDropdownMenuGroupProps, type TLUiDropdownMenuItemProps, type TLUiDropdownMenuRootProps, type TLUiDropdownMenuSubContentProps, type TLUiDropdownMenuSubProps, type TLUiDropdownMenuSubTriggerProps, type TLUiDropdownMenuTriggerProps, type TLUiEventContextType, type TLUiEventData, type TLUiEventHandler, type TLUiEventMap, type TLUiGridProps, type TLUiHelpMenuProps, type TLUiHelperButtonsProps, type TLUiIconJsx, type TLUiIconProps, type TLUiIconType, type TLUiImageToolbarProps, type TLUiInputProps, type TLUiKbdProps, type TLUiKeyboardShortcutsDialogProps, type TLUiLayoutProps, type TLUiMainMenuProps, type TLUiMenuActionCheckboxItemProps, type TLUiMenuActionItemProps, type TLUiMenuCheckboxItemProps, type TLUiMenuContextProviderProps, type TLUiMenuContextType, type TLUiMenuEditorHook, type TLUiMenuGroupProps, type TLUiMenuItemProps, type TLUiMenuPanelChildren, type TLUiMenuSubmenuProps, type TLUiMenuToolItemProps, type TLUiPageMenuIcon, type TLUiPeopleMenuAvatarProps, type TLUiPeopleMenuFacePileProps, type TLUiPeopleMenuItemProps, type TLUiPopoverContentProps, type TLUiPopoverProps, type TLUiPopoverTriggerProps, type TLUiQuickActionsProps, type TLUiRichTextToolbarProps, type TLUiSelectContentProps, type TLUiSelectItemProps, type TLUiSelectProps, type TLUiSelectTriggerProps, type TLUiSelectValueProps, type TLUiSliderProps, type TLUiStylePanelProps, type TLUiToast, type TLUiToastAction, type TLUiToastsContextType, type TLUiToastsProviderProps, type TLUiToolbarButtonProps, type TLUiToolbarProps, type TLUiToolbarToggleGroupProps, type TLUiToolbarToggleItemProps, type TLUiToolsProviderProps, type TLUiTranslation, type TLUiTranslationContextType, type TLUiTranslationKey, type TLUiTranslationProviderProps, type TLUiVideoToolbarProps, type TLUiZoomMenuProps, type TLZoomBrushOverlay, TOOLBAR_GROUPS, type TextAreaProps, type TextHtmlMeasurement, TextLabel, type TextLabelProps, TextMeasure, type TextMeasureHtmlOptions, type TextMeasureOptions, type TextMeasurement, type TextShape, type TextShapeOptions, type TextShapeProps, type TextShapeSizeInput, TextTool as TextShapeTool, TextShapeUtil, type TextShapeUtilDisplayValues, type TextSizeEstimate, type TextTextureAlign, type TextTextureLine, type TextTextureSpec, TextTool, TextToolbarItem, type ThemeSource, type TipTapStarterKitOptions, type TldrawBaseProps, type TldrawFile, type TldrawFileParseError, TldrawImage, type TldrawImageProps, TldrawUi, TldrawUiA11yProvider, TldrawUiActionsProvider, TldrawUiButton, TldrawUiButtonCheck, TldrawUiButtonIcon, TldrawUiButtonLabel, TldrawUiColumn, TldrawUiComponentsProvider, TldrawUiContextProvider, TldrawUiContextualToolbar, TldrawUiDialogBody, TldrawUiDialogCloseButton, TldrawUiDialogFooter, TldrawUiDialogHeader, TldrawUiDialogTitle, TldrawUiDialogsProvider, TldrawUiDropdownMenuCheckboxItem, TldrawUiDropdownMenuContent, TldrawUiDropdownMenuGroup, TldrawUiDropdownMenuIndicator, TldrawUiDropdownMenuItem, TldrawUiDropdownMenuRoot, TldrawUiDropdownMenuSub, TldrawUiDropdownMenuSubContent, TldrawUiDropdownMenuSubTrigger, TldrawUiDropdownMenuTrigger, TldrawUiEventsProvider, TldrawUiGrid, TldrawUiIcon, TldrawUiInFrontOfTheCanvas, TldrawUiInput, TldrawUiKbd, TldrawUiMenuActionCheckboxItem, TldrawUiMenuActionItem, TldrawUiMenuCheckboxItem, TldrawUiMenuContextProvider, TldrawUiMenuGroup, TldrawUiMenuItem, TldrawUiMenuSubmenu, TldrawUiMenuToolItem, type TldrawUiOrientationContext, TldrawUiOrientationProvider, type TldrawUiOrientationProviderProps, TldrawUiPopover, TldrawUiPopoverContent, TldrawUiPopoverTrigger, type TldrawUiProps, TldrawUiRow, TldrawUiSelect, TldrawUiSelectContent, TldrawUiSelectItem, TldrawUiSelectTrigger, TldrawUiSelectValue, TldrawUiSlider, TldrawUiToastsProvider, TldrawUiToolbar, TldrawUiToolbarButton, TldrawUiToolbarItem, TldrawUiToolbarToggleGroup, TldrawUiToolbarToggleItem, TldrawUiToolsProvider, TldrawUiTooltip, type TldrawUiTooltipProps, TldrawUiTooltipProvider, type TldrawUiTooltipProviderProps, TldrawUiTranslationProvider, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, type ToggleToolLockedButtonProps, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolShortcuts, Toolbar, type ToolbarItem, type ToolbarItemProps, type TransformLike, TrapezoidToolbarItem, TriangleToolbarItem, UiTooltip, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, type UpdateArrowTargetStateOpts, type UseImageOrVideoAssetOptions, VIDEO_HEIGHT, VIDEO_PLACEHOLDER_FILL, VIDEO_PLACEHOLDER_STROKE, VIDEO_PLAY_COLOR, VIDEO_PLAY_SIZE, VIDEO_TIME_EPSILON, VIDEO_WIDTH, VideoAssetUtil, type VideoShape, type VideoShapeOptions, type VideoShapeProps, VideoShapeUtil, type VideoShapeUtilDisplayValues, ViewSubmenu, XBoxToolbarItem, ZoomBar, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, alignToJustify, alignToTextAlign, allDefaultFontFaces, applyPlainTextToRichText, applyTransform, arcToCubicSegments, arrowBindingMigrations, arrowBindingProps, arrowShapeMigrations, arrowShapeProps, arrowShapeVersions, asRichText, bodyToGeometry, bookmarkShapeMigrations, bookmarkShapeProps, boxPath, buildDefaultActionItems, buildDefaultToolItems, canBuildPath, canUploadImageTextures, catmullRomToBezier, centerSelectionAroundPoint, classifyExternalText, clearArrowTargetState, computeGrowY, containBoxSize, copyAs, copyBlobToClipboard, copySelectionToClipboard, createBookmarkFromUrl, createBookmarkShape, createDebugFlag, createDebugValue, createEmbedShape, createEmptyBookmarkShape, createFeatureFlag, createImageAssetFromFile, createImageAssetFromSvgText, createImageShapesForAssets, createShapesForAssets, createTextShapeAt, cutSelectionToClipboard, dashArray, debugFlags, debugStatsOpen, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultComponents, defaultEditorAssetUrls, defaultFonts, defaultGeoTypeDefinitions, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalTldrawContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeSvgRenderer, defaultShapeTools, defaultShapeUtils, defaultTools, downloadBlob, downsizeDimensions, downsizeImage, drawLabelChip, drawShapeMigrations, drawShapeProps, embedDefinitions, embedPermissionsToAllowAttribute, embedShapeMigrations, embedShapePermissionDefaults, embedShapePermissionsToAllow, embedShapeProps, escapeHtml, escapeXml, estimateTextSize, exportAs, exportToBlob, featureFlags, fitFrameToContent, fitImageSize, fitPointsToBox, frameShapeMigrations, frameShapeProps, geoShapeMigrations, geoShapeProps, geoShapeVersions, geometryFallbackSvg, geometryToSvgPaths, getAnchorInShapeSpace, getArrowBindingTargetAtPoint, getArrowBindings, getArrowBody, getArrowDisplayValues, getArrowInfo, getArrowTargetState, getArrowTerminalGap, getArrowTerminalsInArrowSpace, getArrowheadGeometry, getArrowheadInset, getArrowheadLength, getAssetInfo, getBendFromPoint, getBodyLength, getBookmarkAsset, getBookmarkCard, getBookmarkHostname, getBookmarkLayout, getBoundElbowAxes, getBreakpointForWidth, getClipboardTextForShapes, getCloudSegments, getColorStyleItems, getCropBox, getDashId, getDebugFlags, getDefaultTranslationLocale, getDominantAxis, getDrawDisplayValues, getDrawOutlinePoints, getElbowArrowBoxEdges, getElbowArrowBoxes, getElbowArrowInfo, getElbowArrowSideAxis, getElbowArrowSideTowards, getElbowArrowTargetBox, getElbowBody, getElbowMidPointFromPoint, getElbowRoute, getEmbedDefinition, getEmbedDisplayValues, getEmbedInfo, getExportBounds, getExportShapes, getFillRgba, getFontFamily, getFontStyleItems, getFrameDisplayValues, getGeoDecorations, getGeoDisplayValues, getGeoGeometry, getGeoGrowY, getGeoIconBox, getGeoPolygonPoints, getGeoTypeDefinition, getHeartSegments, getHighlightDisplayValues, getHighlightOutlinePoints, getHitShapeOnCanvasPointerDown, getImageCropStyle, getImageDisplayValues, getImageTextureKey, getImageTextureSource, getLabelFontFaces, getLabelOpticalLift, getLineDisplayValues, getLinePoints, getNormalizedAnchor, getNoteBodyGradientCss, getNoteDisplayValues, getNoteFillCssColor, getNoteFillRgba, getNoteFontSize, getNoteGradientTopCssColor, getNoteGradientTopFrom, getNoteGrowY, getNoteShadowCss, getNoteShadowSvgRect, getNoteTextCssColor, getOutlineSegments, getPointOnBody, getPointsFromDrawSegment, getPointsFromDrawSegments, getRichTextEditorFactory, getRichTextExtensions, getStadiumSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getStrokeRgba, getStyleItemsForProp, getStylePanelSections, getSvgPathFromStrokePoints, getSvgString, getSvgTextSize, getTangentOnBody, getTextCssColor, getTextDisplayValues, getTextMeasure, getTextShapeBox, getTextShapeHeight, getTextShapeSize, getTextShapeSizeFor, getTextShapeTextureSpec, getTextTextureKey, getTextTextureScale, getTheme, getThemeColors, getTipTapDefaultExtensions, getVideoDisplayValues, getVideoPlayTriangle, getVideoSource, groupShapeMigrations, groupShapeProps, hairline, handleNativeOrMenuCopy, hasAnyStyleSection, hasGeoFlip, hexToCssRgba, hideAllTooltips, highlightShapeMigrations, highlightShapeProps, horizontalAlignToFlex, horizontalAlignToTextAlign, iconTypes, imageShapeMigrations, imageShapeProps, intersectSegments, isAnimatedImageType, isExcalidrawClipboardContent, isImageFile, isInElbowArrowRange, isRichText, isRtlLanguage, isSvgFile, isVideoAutoplayAllowed, isolate, kbdToKeys, labelFontFamily, labelFontStyle, labelGapOnBody, labelTextAlign, lineSegment, lineShapeMigrations, lineShapeProps, loadImageSizeInBrowser, loadImageTextureSource, loadMocanvasFile, loadTipTapDefaultExtensions, loadTipTapStarterExtensions, looksLikeSvg, looksLikeUrl, matrixAttr, measureGeoLabel, measureLabel, measureRichText, mirrorPointsInBox, mirrorSegmentsInBox, noteShapeMigrations, noteShapeProps, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseTldrawJsonFile, pasteFromClipboard, pathWordsToSvgD, placeNear, pointOnCubic, polylinePath, preloadFont, printSelection, propsOf, putExcalidrawContent, readArray, readArrowProps, readArrowShape, readBoolean, readDrawSegments, readEnum, readFileAsDataUrl, readGeoProps, readImageSize, readNoteProps, readNumber, readPoint, readRecord, readRichText, readString, readStyle, readText, readTextProps, rectPath, registerDefaultExternalContentHandlers, registerDefaultSideEffects, registerRichTextEditorFactory, registerShapeSvgRenderer, registeredToolIds, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, renderTextToCanvas, resolveScribbleColor, rgbaToHex, richTextEquals, richTextToBlocks, richTextToHtml, richTextToText, richTextValidator, roundElbowCorners, safeHref, sanitizeSvg, serializeMocanvasFile, serializeTldrawJson, serializeTldrawJsonBlob, shapeSvgRenderers, shapeToBackgroundSvg, shapeToSvg, shortenBody, smoothPoints, startEditingShapeWithRichText, svgPath, svgResultToMarkup, svgTextToDataUrl, textShapeMigrations, textShapeProps, textTextureAlign, textTextureText, textToSvg, tipTapDefaultExtensions, toDisplayText, toElbowArrowRoute, toRichText, toolKeyMap, traceCross, tracePolyline, traceRoundedRect, traceTaperedStroke, transformPathWords, trimTrailingWhitespace, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActionState, useActionsOverride, useAnchoredPosition, useAnyMenuIsOpen, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDismissable, useEditablePlainText, useEditableRichText, useEnhancedA11yMode, useExportAs, useExternalContent, useHasLockedShapes, useImageOrVideoAsset, useIsDarkMode, useIsGridMode, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useMenuKeyboard, useMsg, useNativeClipboardEvents, usePeerIds, usePeers, usePrefersReducedMotion, usePresence, useReadonly, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useTldrawUiComponents, useTldrawUiMenuContext, useTldrawUiOrientation, useToasts, useToolShortcuts, useToolsOverride, useTooltipSuppression, useTranslation, useUiEvents, useUiListsAreLive, useUnlockedSelectedShapesCount, verticalAlignToAlignItems, verticalAlignToFlex, videoShapeMigrations, videoShapeProps, withCamera, wrapTextLines, wrapTextTextureLines, wrapTextTextureRuns };
|
|
10147
|
+
export { type A11yPriority, type A11yProviderProps, ARROW_KINDS, ARROW_LABEL_PADDING, ARROW_TERMINAL_GAP_STROKES, type ASPECT_RATIO_OPTION, ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AVG_CHAR_WIDTH, AccessibilityMenu, ActionShortcuts, type ActionsProviderProps, type AlertSeverity, AlignMenuItems, type ArcBody, ArrangeMenuSubmenu, type ArrowBinding, ArrowBindingHintOverlayUtil, type ArrowBindingHintOverlayUtilDisplayValues, type ArrowBindingHintOverlayUtilOptions, type ArrowBindingProps, ArrowBindingUtil, type ArrowBindings, type ArrowBody, ArrowDownToolbarItem, ArrowHintOverlayUtil, type ArrowHintOverlayUtilDisplayValues, type ArrowHintOverlayUtilOptions, type ArrowKind, ArrowLeftToolbarItem, ArrowRightToolbarItem, type ArrowShape, type ArrowShapeOptions, type ArrowShapeProps, ArrowTool as ArrowShapeTool, ArrowShapeUtil, type ArrowShapeUtilDisplayValues, type ArrowTargetHandle, type ArrowTargetState, type ArrowTerminal, type ArrowTerminals, ArrowTool, ArrowToolbarItem, ArrowUpToolbarItem, type ArrowheadKind, type AspectRatioOption, AssetToolbarItem, type AssetUtilClass, type AssetUtilOptions, BOOKMARK_BANNER_FILL, BOOKMARK_BANNER_HEIGHT, BOOKMARK_FAVICON_SIZE, BOOKMARK_FILL, BOOKMARK_GAP, BOOKMARK_HEIGHT, BOOKMARK_META_COLOR, BOOKMARK_META_FONT_SIZE, BOOKMARK_META_HEIGHT, BOOKMARK_MIN_BODY_HEIGHT, BOOKMARK_PADDING, BOOKMARK_RADIUS, BOOKMARK_STROKE, BOOKMARK_STROKE_WIDTH, BOOKMARK_TEXT_COLOR, BOOKMARK_TEXT_FONT_SIZE, BOOKMARK_TITLE_COLOR, BOOKMARK_TITLE_FONT_SIZE, BOOKMARK_TITLE_HEIGHT, BOOKMARK_UNFURL_FAILED, BOOKMARK_WIDTH, BaseBoxShapeTool, type BasePathBuilderOpts, BookmarkAssetUtil, type BookmarkCard, type BookmarkLayout, type BookmarkRect, type BookmarkShape, type BookmarkShapeOptions, type BookmarkShapeProps, BookmarkShapeUtil, type BookmarkShapeUtilDisplayValues, type BoxWidthHeight, BreakPointProvider, type BreakPointProviderProps, BrushOverlayUtil, type BrushOverlayUtilDisplayValues, type BrushOverlayUtilOptions, type CameraLike, CenteredTopPanelContainer, type CenteredTopPanelContainerProps, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorOverlayUtil, CollaboratorHintOverlayUtil, type CollaboratorOverlayUtilOptions, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, type CopyAsOptions, CopyMenuItem, type CreateBookmarkResult, type CropBoxOptions, type CubicSegment, CursorChatItem, type CustomDebugFlags, type CustomEmbedDefinition, CutMenuItem, DEFAULT_ARROW_BINDING_HINT_OVERLAY_OPTIONS, DEFAULT_ARROW_HINT_OVERLAY_OPTIONS, DEFAULT_BRUSH_OVERLAY_OPTIONS, DEFAULT_COLLABORATOR_OVERLAY_OPTIONS, DEFAULT_ELBOW_ARROW_OPTIONS, DEFAULT_EMBED_DEFINITIONS, DEFAULT_GEO_TYPE_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DEFAULT_SCRIBBLE_OVERLAY_OPTIONS, DEFAULT_SELECTION_FOREGROUND_OVERLAY_OPTIONS, DEFAULT_SHAPE_HANDLE_OVERLAY_OPTIONS, DEFAULT_SNAP_INDICATOR_OVERLAY_OPTIONS, DEFAULT_SUPPORTED_IMAGE_TYPES, DEFAULT_SUPPORTED_VIDEO_TYPES, DEFAULT_TOOLBAR_ITEMS, type DashedPathBuilderOpts, type DebugFlag, type DebugFlagDef, DebugFlagDefaults, DebugFlags, type DebugFlagsProps, DebugStats, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDebugPanel, DefaultDialogs, type DefaultEmbedConfig, type DefaultEmbedDefinitionType, type DefaultExternalContentOptions, DefaultFollowingIndicator, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, type DefaultImageToolbarContentProps, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, type DefaultPeopleMenuContentProps, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, type DefaultPeopleMenuProps, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, type DefaultRichTextToolbarContentProps, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, type DefaultToolbarProps, DefaultToolbarWithOverflow, DefaultUi, type DefaultUiProps, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, type DefaultVideoToolbarContentProps, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, type DrawPathBuilderDOpts, type DrawPathBuilderOpts, type DrawPoint, type DrawSegment, type DrawShape, type DrawShapeOptions, type DrawShapeProps, DrawTool as DrawShapeTool, DrawShapeUtil, type DrawShapeUtilDisplayValues, DrawTool, DrawToolbarItem, DuplicateMenuItem, ELBOW_ARROW_SIDES, ELBOW_CORNER_STROKES, EMBED_HEIGHT, EMBED_PLACEHOLDER_FILL, EMBED_PLACEHOLDER_FONT_SIZE, EMBED_PLACEHOLDER_PADDING, EMBED_PLACEHOLDER_STROKE, EMBED_PLACEHOLDER_TEXT, EMBED_RADIUS, EMBED_SANDBOX, EMBED_SHAPE_PERMISSION_NAMES, EMBED_WIDTH, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, type EditableTextHandle, type ElbowArrowBox, type ElbowArrowBoxEdges, type ElbowArrowBoxes, type ElbowArrowEdge, type ElbowArrowInfo, type ElbowArrowInfoWithoutRoute, type ElbowArrowMidpointHandle, type ElbowArrowOptions, type ElbowArrowRange, type ElbowArrowRoute, type ElbowArrowSide, type ElbowArrowTargetBox, type ElbowAxis, type ElbowBody, type ElbowRoute, type ElbowRouteOptions, type ElbowTerminalAxes, EllipseToolbarItem, type EmbedConfig, type EmbedDefinition, type EmbedInfo, type EmbedMatch, type EmbedSettings, type EmbedShape, type EmbedShapeOptions, type EmbedShapePermissionName, type EmbedShapeProps, EmbedShapeUtil, type EmbedShapeUtilDisplayValues, EraserTool, EraserToolbarItem, type EventsProviderProps, ExampleDialog, type ExampleDialogProps, ExportAsMenuGroup, type ExportAsOptions, ExportFileContentSubMenu, type ExportFormat, type ExportToBlobOptions, type ExternalContentOptions, type ExternalUrlContentOptions, type ExternalUrlToasts, ExtrasGroup, FALLBACK_THEME_COLORS, FRAME_FILL, FRAME_NAME_COLOR, FRAME_NAME_FONT_SIZE, FRAME_NAME_GAP, FRAME_NAME_HEIGHT, FRAME_NAME_OFFSET, FRAME_STROKE, FRAME_STROKE_WIDTH, FeatureFlags, type FeatureFlagsProps, FitFrameToContentMenuItem, FloatingLayer, type FloatingLayerProps, type FrameShape, type FrameShapeOptions, type FrameShapeProps, FrameTool as FrameShapeTool, FrameShapeUtil, type FrameShapeUtilDisplayValues, FrameTool, FrameToolbarItem, GEO_BOX, GEO_DEFAULT_SIZE, GEO_ICON_PATHS, GEO_LABEL_PADDING, type GeoFlip, type GeoPathOptions, type GeoShape, type GeoShapeOptions, type GeoShapeProps, GeoTool as GeoShapeTool, GeoShapeUtil, type GeoShapeUtilDisplayValues, type GeoSnapType, GeoTool, GeoToolbarItem, type GeoTypeDefinition, type GoogleMapsEmbedConfig, GroupMenuItem, GroupOrUngroupMenuItem, type GroupShape, type GroupShapeProps, GroupShapeUtil, HEXAGON_FLAT_SIDE_SPAN, HIGHLIGHT_OPACITY, HIGHLIGHT_STROKE_SIZES, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, type HighlightShape, type HighlightShapeOptions, type HighlightShapeProps, HighlightShapeTool, HighlightShapeUtil, type HighlightShapeUtilDisplayValues, HighlightToolbarItem, ICONS, ICON_GRID, ICON_NAMES, IMAGE_PLACEHOLDER_FILL, IMAGE_PLACEHOLDER_STROKE, Icon, type IconName, type IconProps, ImageAssetUtil, type ImageCrop, type ImageDimensions, type ImageShape, type ImageShapeOptions, type ImageShapeProps, ImageShapeUtil, type ImageShapeUtilDisplayValues, type ImageSize, type ImageSizeLoader, InputModeMenu, KEYBOARD_SHORTCUTS, KeyboardShiftEnterTweakExtension, KeyboardShortcutsDialogContents, KeyboardShortcutsMenuItem, LANGUAGES, LINE_HEIGHT, type LabelMeasureOptions, LanguageMenu, LaserTool, LaserToolbarItem, type LinePoint, type LineShape, type LineShapeOptions, type LineShapeProps, LineTool as LineShapeTool, LineShapeUtil, type LineShapeUtilDisplayValues, LineTool, LineToolbarItem, type LoadMocanvasFileResult, LockGroup, MAX_TEXT_TEXTURE_PX, MOCANVAS_CLIPBOARD_TYPE, MOD_KEY, MORE_GEO_KINDS, MiscMenuGroup, MobileStylePanel, Mocanvas, type MocanvasProps, MocanvasUiMenuItem, type MocanvasUiMenuItemProps, MoveToPageMenu, NOTE_GRADIENT_TOP_SCALE, NOTE_PADDING, NOTE_SHADOW_BLUR, NOTE_SHADOW_COLOR, NOTE_SHADOW_OFFSET_Y, NOTE_SHADOW_OPACITY, NOTE_SHADOW_SPREAD, NOTE_SIZE, type NonePathBuilderOpts, type NoteShape, type NoteShapeOptions, type NoteShapeProps, NoteTool as NoteShapeTool, NoteShapeUtil, type NoteShapeUtilDisplayValues, NoteTool, NoteToolbarItem, OfflineIndicator, type OnDragFromToolbarToCreateShapesOpts, OvalToolbarItem, OverflowingToolbar, type OverflowingToolbarProps, type OverlayBox, PORTRAIT_BREAKPOINT, PRIMARY_GEO_KINDS, PageItemInput, type PageItemInputProps, PageItemSubmenu, type PageItemSubmenuProps, type ParseTldrawJsonFileResult, PasteMenuItem, PathBuilder, type PathBuilderCommand, type PathBuilderCommandOpts, PathBuilderGeometry2d, type PathBuilderLineOpts, type PathBuilderOpts, type PathBuilderToDOpts, type PathDashTerminal, type Placement, PlainTextArea, PlainTextLabel, type PlainTextLabelProps, Popover, type PopoverProps, PreferencesGroup, PrintItem, RICH_TEXT_BLOCK_CSS, RICH_TEXT_MARKS, RICH_TEXT_NODES, RTL_LANGUAGES, RectangleToolbarItem, ReduceMotionAttribute, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, type ResolvedArrowProps, type ResolvedGeoProps, type ResolvedNoteProps, type ResolvedTextProps, ResponsiveStylePanel, RhombusToolbarItem, type RichText, RichTextArea, type RichTextAreaProps, type RichTextBlock, type RichTextEditorFactory, type RichTextEditorHandle, type RichTextEditorMountOptions, type RichTextExtension, type RichTextFontState, type RichTextHtmlOptions, RichTextLabel, type RichTextLabelProps, type RichTextMark, type RichTextMarkExtension, type RichTextNode, type RichTextNodeExtension, type RichTextRun, type RichTextRunStyle, RichTextSVG, type RichTextSVGProps, type RichTextSource, RotateCWMenuItem, STAR_INNER_RATIO, SVG_DARK_BACKGROUND, SVG_EXPORT_DEFAULT_PADDING, SVG_LIGHT_BACKGROUND, ScribbleOverlayUtil, type ScribbleOverlayUtilDisplayValues, type ScribbleOverlayUtilOptions, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionAnnouncer, SelectionForegroundOverlayUtil, type SelectionForegroundOverlayUtilDisplayValues, type SelectionForegroundOverlayUtilOptions, ShapeHandleOverlayUtil, type ShapeHandleOverlayUtilDisplayValues, type ShapeHandleOverlayUtilOptions, ShapeIndicatorOverlayUtil, type ShapeOptionsWithDisplayValues, type ShapeSvgRenderer, type Side, SnapIndicatorOverlayUtil, type SnapIndicatorOverlayUtilDisplayValues, type SnapIndicatorOverlayUtilOptions, type SolidPathBuilderOpts, StackMenuItems, StarToolbarItem, type StraightBody, type StrokeOptions, type StrokePoint, type StrokeTerminalOptions, StylePanel, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, type StylePanelButtonPickerProps, StylePanelColorPicker, type StylePanelContext, StylePanelContextProvider, type StylePanelContextProviderProps, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, type StylePanelDoubleDropdownPickerProps, StylePanelDropdownPicker, StylePanelDropdownPickerInline, type StylePanelDropdownPickerProps, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, type StylePanelSectionProps, type StylePanelSections, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, type StylePanelSubheadingProps, StylePanelTextAlignPicker, type StyleValuesForUi, type SvgExportContext, type SvgExportOptions, type SvgExportResult, type SvgTextBox, type SvgTextOptions, type SvgTransform, TEXT_SHAPE_MIN_WIDTH, type TLArcArrowInfo, type TLArcInfo, type TLArrowBindingHintOverlay, type TLArrowHintOverlay, type TLArrowInfo, type TLArrowPoint, type TLBrushOverlay, type TLCollaboratorBrushOverlay, type TLCollaboratorCursorOverlay, type TLCollaboratorHintOverlay, type TLCollaboratorScribbleOverlay, type TLCollaboratorShapeIndicatorOverlay, type TLCopyType, TLDRAW_FILE_EXTENSION, type TLDefaultExternalContentHandlerOpts, type TLDefaultFont, type TLDefaultFonts, type TLElbowArrowInfo, type TLEmbedResult, type TLEmbedShapePermissions, type TLExternalContentProps, type TLGroupShapeProps, type TLHighlightShape, type TLHighlightShapeProps, type TLKeyboardShortcut, type TLKeyboardShortcutGroup, type TLLanguage, type TLLineShapePoint, type TLOnMountHandler, type TLScribbleOverlay, type TLSelectionForegroundOverlay, type TLShapeHandleOverlay, type TLShapeIndicatorOverlay, type TLSnapIndicatorOverlay, type TLStraightArrowInfo, type TLTypeFace, type TLUiA11y, type TLUiA11yContextType, type TLUiActionsMenuProps, type TLUiAssetUrlOverrides, type TLUiBreakpoint, type TLUiButtonCheckProps, type TLUiButtonIconProps, type TLUiButtonLabelProps, type TLUiButtonProps, type TLUiButtonType, type TLUiClipboardEvents, type TLUiComponents, type TLUiComponentsProviderProps, type TLUiComponentsResolved, type TLUiContextMenuProps, type TLUiContextProviderProps, type TLUiContextualToolbarProps, type TLUiDebugMenuProps, type TLUiDefaultHelpers, type TLUiDialog, type TLUiDialogBodyProps, type TLUiDialogFooterProps, type TLUiDialogHeaderProps, type TLUiDialogProps, type TLUiDialogTitleProps, type TLUiDialogsContextType, type TLUiDialogsProviderProps, type TLUiDropdownMenuCheckboxItemProps, type TLUiDropdownMenuContentProps, type TLUiDropdownMenuGroupProps, type TLUiDropdownMenuItemProps, type TLUiDropdownMenuRootProps, type TLUiDropdownMenuSubContentProps, type TLUiDropdownMenuSubProps, type TLUiDropdownMenuSubTriggerProps, type TLUiDropdownMenuTriggerProps, type TLUiEventContextType, type TLUiEventData, type TLUiEventHandler, type TLUiEventMap, type TLUiGridProps, type TLUiHelpMenuProps, type TLUiHelperButtonsProps, type TLUiIconJsx, type TLUiIconProps, type TLUiIconType, type TLUiImageToolbarProps, type TLUiInputProps, type TLUiKbdProps, type TLUiKeyboardShortcutsDialogProps, type TLUiLayerNesting, type TLUiLayoutProps, type TLUiMainMenuProps, type TLUiMenuActionCheckboxItemProps, type TLUiMenuActionItemProps, type TLUiMenuCheckboxItemProps, type TLUiMenuContextProviderProps, type TLUiMenuContextType, type TLUiMenuEditorHook, type TLUiMenuGroupProps, type TLUiMenuItemProps, type TLUiMenuPanelChildren, type TLUiMenuSubmenuProps, type TLUiMenuToolItemProps, type TLUiPageMenuIcon, type TLUiPeopleMenuAvatarProps, type TLUiPeopleMenuFacePileProps, type TLUiPeopleMenuItemProps, type TLUiPopoverContentProps, type TLUiPopoverProps, type TLUiPopoverTriggerProps, type TLUiQuickActionsProps, type TLUiRichTextToolbarProps, type TLUiSelectContentProps, type TLUiSelectItemProps, type TLUiSelectProps, type TLUiSelectTriggerProps, type TLUiSelectValueProps, type TLUiSliderProps, type TLUiStylePanelProps, type TLUiToast, type TLUiToastAction, type TLUiToastsContextType, type TLUiToastsProviderProps, type TLUiToolbarButtonProps, type TLUiToolbarProps, type TLUiToolbarToggleGroupProps, type TLUiToolbarToggleItemProps, type TLUiToolsProviderProps, type TLUiTranslation, type TLUiTranslationContextType, type TLUiTranslationKey, type TLUiTranslationProviderProps, type TLUiVideoToolbarProps, type TLUiZoomMenuProps, type TLZoomBrushOverlay, TOOLBAR_GROUPS, type TextAreaProps, type TextHtmlMeasurement, TextLabel, type TextLabelProps, TextMeasure, type TextMeasureHtmlOptions, type TextMeasureOptions, type TextMeasurement, type TextShape, type TextShapeOptions, type TextShapeProps, type TextShapeSizeInput, TextTool as TextShapeTool, TextShapeUtil, type TextShapeUtilDisplayValues, type TextSizeEstimate, type TextTextureAlign, type TextTextureLine, type TextTextureSpec, TextTool, TextToolbarItem, type ThemeSource, type TipTapStarterKitOptions, type TldrawBaseProps, type TldrawFile, type TldrawFileParseError, TldrawImage, type TldrawImageProps, TldrawUi, TldrawUiA11yProvider, TldrawUiActionsProvider, TldrawUiButton, TldrawUiButtonCheck, TldrawUiButtonIcon, TldrawUiButtonLabel, TldrawUiColumn, TldrawUiComponentsProvider, TldrawUiContextProvider, TldrawUiContextualToolbar, TldrawUiDialogBody, TldrawUiDialogCloseButton, TldrawUiDialogFooter, TldrawUiDialogHeader, TldrawUiDialogTitle, TldrawUiDialogsProvider, TldrawUiDropdownMenuCheckboxItem, TldrawUiDropdownMenuContent, TldrawUiDropdownMenuGroup, TldrawUiDropdownMenuIndicator, TldrawUiDropdownMenuItem, TldrawUiDropdownMenuRoot, TldrawUiDropdownMenuSub, TldrawUiDropdownMenuSubContent, TldrawUiDropdownMenuSubTrigger, TldrawUiDropdownMenuTrigger, TldrawUiEventsProvider, TldrawUiGrid, TldrawUiIcon, TldrawUiInFrontOfTheCanvas, TldrawUiInput, TldrawUiKbd, TldrawUiMenuActionCheckboxItem, TldrawUiMenuActionItem, TldrawUiMenuCheckboxItem, TldrawUiMenuContextProvider, TldrawUiMenuGroup, TldrawUiMenuItem, TldrawUiMenuSubmenu, TldrawUiMenuToolItem, type TldrawUiOrientationContext, TldrawUiOrientationProvider, type TldrawUiOrientationProviderProps, TldrawUiPopover, TldrawUiPopoverContent, TldrawUiPopoverTrigger, type TldrawUiProps, TldrawUiRow, TldrawUiSelect, TldrawUiSelectContent, TldrawUiSelectItem, TldrawUiSelectTrigger, TldrawUiSelectValue, TldrawUiSlider, TldrawUiToastsProvider, TldrawUiToolbar, TldrawUiToolbarButton, TldrawUiToolbarItem, TldrawUiToolbarToggleGroup, TldrawUiToolbarToggleItem, TldrawUiToolsProvider, TldrawUiTooltip, type TldrawUiTooltipProps, TldrawUiTooltipProvider, type TldrawUiTooltipProviderProps, TldrawUiTranslationProvider, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, type ToggleToolLockedButtonProps, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolShortcuts, Toolbar, type ToolbarItem, type ToolbarItemProps, type TransformLike, TrapezoidToolbarItem, TriangleToolbarItem, UiTooltip, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, type UpdateArrowTargetStateOpts, type UseImageOrVideoAssetOptions, VIDEO_HEIGHT, VIDEO_PLACEHOLDER_FILL, VIDEO_PLACEHOLDER_STROKE, VIDEO_PLAY_COLOR, VIDEO_PLAY_SIZE, VIDEO_TIME_EPSILON, VIDEO_WIDTH, VideoAssetUtil, type VideoShape, type VideoShapeOptions, type VideoShapeProps, VideoShapeUtil, type VideoShapeUtilDisplayValues, ViewSubmenu, XBoxToolbarItem, ZoomBar, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, actionKeyMap, alignToJustify, alignToTextAlign, allDefaultFontFaces, applyPlainTextToRichText, applyTransform, arcToCubicSegments, arrowBindingMigrations, arrowBindingProps, arrowShapeMigrations, arrowShapeProps, arrowShapeVersions, asRichText, bodyToGeometry, bookmarkShapeMigrations, bookmarkShapeProps, boxPath, buildDefaultActionItems, buildDefaultToolItems, buildShortcutIndex, canBuildPath, canPrint, canUploadImageTextures, catmullRomToBezier, centerSelectionAroundPoint, classifyExternalText, clearArrowTargetState, computeGrowY, containBoxSize, copyAs, copyBlobToClipboard, copySelectionToClipboard, createBookmarkFromUrl, createBookmarkShape, createDebugFlag, createDebugValue, createEmbedShape, createEmptyBookmarkShape, createFeatureFlag, createImageAssetFromFile, createImageAssetFromSvgText, createImageShapesForAssets, createShapesForAssets, createTextShapeAt, cutSelectionToClipboard, dashArray, debugFlags, debugStatsOpen, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultComponents, defaultEditorAssetUrls, defaultFonts, defaultGeoTypeDefinitions, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalTldrawContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeSvgRenderer, defaultShapeTools, defaultShapeUtils, defaultTools, downloadBlob, downsizeDimensions, downsizeImage, drawLabelChip, drawShapeMigrations, drawShapeProps, embedDefinitions, embedPermissionsToAllowAttribute, embedShapeMigrations, embedShapePermissionDefaults, embedShapePermissionsToAllow, embedShapeProps, escapeHtml, escapeXml, estimateTextSize, exportAs, exportToBlob, featureFlags, fitFrameToContent, fitImageSize, fitPointsToBox, frameShapeMigrations, frameShapeProps, geoShapeMigrations, geoShapeProps, geoShapeVersions, geometryFallbackSvg, geometryToSvgPaths, getAnchorInShapeSpace, getArrowBindingTargetAtPoint, getArrowBindings, getArrowBody, getArrowDisplayValues, getArrowInfo, getArrowTargetState, getArrowTerminalGap, getArrowTerminalsInArrowSpace, getArrowheadGeometry, getArrowheadInset, getArrowheadLength, getAssetInfo, getBendFromPoint, getBodyLength, getBookmarkAsset, getBookmarkCard, getBookmarkHostname, getBookmarkLayout, getBoundElbowAxes, getBreakpointForWidth, getClipboardTextForShapes, getCloudSegments, getColorStyleItems, getCropBox, getDashId, getDebugFlags, getDefaultTranslationLocale, getDominantAxis, getDrawDisplayValues, getDrawOutlinePoints, getElbowArrowBoxEdges, getElbowArrowBoxes, getElbowArrowInfo, getElbowArrowSideAxis, getElbowArrowSideTowards, getElbowArrowTargetBox, getElbowBody, getElbowMidPointFromPoint, getElbowRoute, getEmbedDefinition, getEmbedDisplayValues, getEmbedInfo, getExportBounds, getExportShapes, getFillRgba, getFontFamily, getFontStyleItems, getFrameDisplayValues, getGeoDecorations, getGeoDisplayValues, getGeoGeometry, getGeoGrowY, getGeoIconBox, getGeoPolygonPoints, getGeoTypeDefinition, getHeartSegments, getHighlightDisplayValues, getHighlightOutlinePoints, getHitShapeOnCanvasPointerDown, getImageCropStyle, getImageDisplayValues, getImageTextureKey, getImageTextureSource, getLabelFontFaces, getLabelOpticalLift, getLineDisplayValues, getLinePoints, getNormalizedAnchor, getNoteBodyGradientCss, getNoteDisplayValues, getNoteFillCssColor, getNoteFillRgba, getNoteFontSize, getNoteGradientTopCssColor, getNoteGradientTopFrom, getNoteGrowY, getNoteShadowCss, getNoteShadowSvgRect, getNoteTextCssColor, getOutlineSegments, getPointOnBody, getPointsFromDrawSegment, getPointsFromDrawSegments, getRichTextEditorFactory, getRichTextExtensions, getStadiumSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getStrokeRgba, getStyleItemsForProp, getStylePanelSections, getSvgPathFromStrokePoints, getSvgString, getSvgTextSize, getTangentOnBody, getTextCssColor, getTextDisplayValues, getTextMeasure, getTextShapeBox, getTextShapeHeight, getTextShapeSize, getTextShapeSizeFor, getTextShapeTextureSpec, getTextTextureKey, getTextTextureScale, getTheme, getThemeColors, getTipTapDefaultExtensions, getVideoDisplayValues, getVideoPlayTriangle, getVideoSource, groupKeyboardShortcuts, groupShapeMigrations, groupShapeProps, hairline, handleNativeOrMenuCopy, hasAnyStyleSection, hasGeoFlip, hexToCssRgba, hideAllTooltips, highlightShapeMigrations, highlightShapeProps, horizontalAlignToFlex, horizontalAlignToTextAlign, iconTypes, imageShapeMigrations, imageShapeProps, intersectSegments, isAnimatedImageType, isExcalidrawClipboardContent, isImageFile, isInElbowArrowRange, isRichText, isRtlLanguage, isSvgFile, isVideoAutoplayAllowed, isolate, kbdToKeys, labelFontFamily, labelFontStyle, labelGapOnBody, labelTextAlign, lineSegment, lineShapeMigrations, lineShapeProps, loadImageSizeInBrowser, loadImageTextureSource, loadMocanvasFile, loadTipTapDefaultExtensions, loadTipTapStarterExtensions, looksLikeSvg, looksLikeUrl, matrixAttr, measureGeoLabel, measureLabel, measureRichText, mirrorPointsInBox, mirrorSegmentsInBox, normalizeKbd, noteShapeMigrations, noteShapeProps, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseTldrawJsonFile, pasteFromClipboard, pathWordsToSvgD, placeNear, pointOnCubic, polylinePath, preloadFont, printSelection, propsOf, putExcalidrawContent, readArray, readArrowProps, readArrowShape, readBoolean, readDrawSegments, readEnum, readFileAsDataUrl, readGeoProps, readImageSize, readNoteProps, readNumber, readPoint, readRecord, readRichText, readString, readStyle, readText, readTextProps, rectPath, registerDefaultExternalContentHandlers, registerDefaultSideEffects, registerRichTextEditorFactory, registerShapeSvgRenderer, registeredToolIds, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, renderTextToCanvas, resolveScribbleColor, rgbaToHex, richTextEquals, richTextToBlocks, richTextToHtml, richTextToText, richTextValidator, roundElbowCorners, safeHref, sanitizeSvg, serializeMocanvasFile, serializeTldrawJson, serializeTldrawJsonBlob, shapeSvgRenderers, shapeToBackgroundSvg, shapeToSvg, shortenBody, smoothPoints, startEditingShapeWithRichText, svgPath, svgResultToMarkup, svgTextToDataUrl, textShapeMigrations, textShapeProps, textTextureAlign, textTextureText, textToSvg, tipTapDefaultExtensions, toDisplayText, toElbowArrowRoute, toRichText, toolKeyMap, traceCross, tracePolyline, traceRoundedRect, traceTaperedStroke, transformPathWords, trimTrailingWhitespace, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActionShortcuts, useActionState, useActionsOverride, useAnchoredPosition, useAnyMenuIsOpen, useAvailableTranslationLocales, useBoundActionShortcuts, useBoundToolShortcuts, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDismissable, useEditablePlainText, useEditableRichText, useExportAs, useExternalContent, useHasLockedShapes, useImageOrVideoAsset, useIsDarkMode, useIsGridMode, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useMenuKeyboard, useMsg, useNativeClipboardEvents, usePeerIds, usePeers, usePrefersReducedMotion, usePresence, useReadonly, useReduceMotion, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useTldrawUiComponents, useTldrawUiMenuContext, useTldrawUiOrientation, useToasts, useToolShortcuts, useToolsOverride, useTooltipSuppression, useTranslation, useUiEvents, useUiListsAreLive, useUnlockedSelectedShapesCount, verticalAlignToAlignItems, verticalAlignToFlex, videoShapeMigrations, videoShapeProps, withCamera, wrapTextLines, wrapTextTextureLines, wrapTextTextureRuns };
|