@mocanvas/mocanvas 4.0.2 → 4.1.1
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/MIGRATION.md +48 -22
- package/README.md +27 -2
- 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 +302 -46
- package/dist/index.js +435 -416
- 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
|
@@ -445,12 +445,25 @@ declare class ZoomBrushOverlayUtil extends BaseBrushOverlayUtil<TLZoomBrushOverl
|
|
|
445
445
|
* the same person on every screen in the room.
|
|
446
446
|
*/
|
|
447
447
|
|
|
448
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* Shared configuration for the collaborator painters.
|
|
450
|
+
*
|
|
451
|
+
* These exist so a subclass that redraws a cursor can read the label's
|
|
452
|
+
* measurements instead of hard-coding them next to a `super.render` it does not
|
|
453
|
+
* control. `zIndex` is not here because it is a static on the util itself —
|
|
454
|
+
* `class Mine extends CollaboratorCursorOverlayUtil { static override zIndex = 1100 }`.
|
|
455
|
+
*/
|
|
449
456
|
interface CollaboratorOverlayUtilOptions {
|
|
450
457
|
/** Opacity applied to everything drawn for an idle collaborator. */
|
|
451
458
|
idleOpacity: number;
|
|
459
|
+
/** Point size of the name and chat chips. */
|
|
460
|
+
fontSize: number;
|
|
461
|
+
/** Widest a name chip may draw before its text is clipped with an ellipsis. */
|
|
462
|
+
nameMaxWidth: number;
|
|
463
|
+
/** The same, for a chat message, which is usually allowed more room. */
|
|
464
|
+
chatMaxWidth: number;
|
|
452
465
|
}
|
|
453
|
-
/** The
|
|
466
|
+
/** The dials every collaborator overlay has. */
|
|
454
467
|
declare const DEFAULT_COLLABORATOR_OVERLAY_OPTIONS: CollaboratorOverlayUtilOptions;
|
|
455
468
|
/**
|
|
456
469
|
* The half every collaborator painter shares: who to draw, and how faded.
|
|
@@ -484,7 +497,7 @@ declare class CollaboratorCursorOverlayUtil extends CollaboratorOverlayUtil {
|
|
|
484
497
|
static options: CollaboratorOverlayUtilOptions;
|
|
485
498
|
isActive(): boolean;
|
|
486
499
|
getOverlays(): TLCollaboratorCursorOverlay[];
|
|
487
|
-
render(ctx: CanvasRenderingContext2D): void;
|
|
500
|
+
render(ctx: CanvasRenderingContext2D, given?: TLCollaboratorCursorOverlay[]): void;
|
|
488
501
|
}
|
|
489
502
|
/** Another person's selection brush, in their colour. */
|
|
490
503
|
declare class CollaboratorBrushOverlayUtil extends CollaboratorOverlayUtil {
|
|
@@ -878,14 +891,6 @@ declare function traceTaperedStroke(ctx: CanvasRenderingContext2D, points: reado
|
|
|
878
891
|
* go with the rest of the guide.
|
|
879
892
|
*/
|
|
880
893
|
declare function traceCross(ctx: CanvasRenderingContext2D, x: number, y: number, arm: number): void;
|
|
881
|
-
/**
|
|
882
|
-
* Draw a short text label on a filled, rounded chip — a collaborator's name,
|
|
883
|
-
* a zoom read-out.
|
|
884
|
-
*
|
|
885
|
-
* Returns the chip's width so a caller can lay several out in a row. Measuring
|
|
886
|
-
* costs a `measureText`, which is why the result is handed back rather than
|
|
887
|
-
* recomputed.
|
|
888
|
-
*/
|
|
889
894
|
declare function drawLabelChip(ctx: CanvasRenderingContext2D, text: string, x: number, y: number, opts: {
|
|
890
895
|
background: string;
|
|
891
896
|
color: string;
|
|
@@ -893,6 +898,13 @@ declare function drawLabelChip(ctx: CanvasRenderingContext2D, text: string, x: n
|
|
|
893
898
|
paddingX: number;
|
|
894
899
|
paddingY: number;
|
|
895
900
|
radius: number;
|
|
901
|
+
/**
|
|
902
|
+
* Widest the whole chip may draw. Text that does not fit is cut and ends
|
|
903
|
+
* with an ellipsis. Omitted means no cap, which is what every caller did
|
|
904
|
+
* before — and is why one long collaborator name could draw a chip across
|
|
905
|
+
* the board it was labelling.
|
|
906
|
+
*/
|
|
907
|
+
maxWidth?: number;
|
|
896
908
|
}): number;
|
|
897
909
|
|
|
898
910
|
/** Side of the drawing grid. */
|
|
@@ -969,6 +981,8 @@ declare const ICONS: {
|
|
|
969
981
|
hand: react.JSX.Element;
|
|
970
982
|
draw: react.JSX.Element;
|
|
971
983
|
eraser: react.JSX.Element;
|
|
984
|
+
highlight: react.JSX.Element;
|
|
985
|
+
laser: react.JSX.Element;
|
|
972
986
|
text: react.JSX.Element;
|
|
973
987
|
note: react.JSX.Element;
|
|
974
988
|
frame: react.JSX.Element;
|
|
@@ -1148,17 +1162,56 @@ declare function Popover({ anchorRef, open, onClose, label, cols, prefer, childr
|
|
|
1148
1162
|
|
|
1149
1163
|
/** Whether the frame-statistics chip is visible. Toggled with ⌥D. */
|
|
1150
1164
|
declare const debugStatsOpen: _mocanvas_state.Atom<boolean, unknown>;
|
|
1165
|
+
/** The sections the shortcuts dialog groups its rows under. */
|
|
1166
|
+
type TLKeyboardShortcutGroup = "Edit" | "View" | "Arrange" | "Canvas";
|
|
1167
|
+
/** One binding this hook installs. */
|
|
1168
|
+
interface TLKeyboardShortcut {
|
|
1169
|
+
/** Stable id; also what the dialog keys its rows on. */
|
|
1170
|
+
id: string;
|
|
1171
|
+
/** Display text for the dialog. */
|
|
1172
|
+
label: string;
|
|
1173
|
+
/** The binding, in the `"mod+shift+z"` notation {@link TldrawUiKbd} renders. */
|
|
1174
|
+
kbd: string;
|
|
1175
|
+
/** Further bindings that do the same thing; not shown. */
|
|
1176
|
+
also?: readonly string[];
|
|
1177
|
+
group: TLKeyboardShortcutGroup;
|
|
1178
|
+
/**
|
|
1179
|
+
* Do the thing. Returning `false` means "not handled after all" — the event
|
|
1180
|
+
* keeps its default, which is what lets ⌘C fall through to the browser's own
|
|
1181
|
+
* copy when there is no selection to take.
|
|
1182
|
+
*/
|
|
1183
|
+
run(editor: Editor, event: KeyboardEvent): void | false;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Every shortcut the editor binds, as data.
|
|
1187
|
+
*
|
|
1188
|
+
* This list *is* the binding: the handler below dispatches through it and the
|
|
1189
|
+
* keyboard-shortcuts dialog renders from it, so the sheet cannot describe a
|
|
1190
|
+
* key the editor does not answer to, and a key added here appears in the sheet
|
|
1191
|
+
* without anyone remembering to write it down. The previous arrangement — a
|
|
1192
|
+
* switch statement here and a separate list in the dialog — is exactly the
|
|
1193
|
+
* shape that drifts.
|
|
1194
|
+
*
|
|
1195
|
+
* Tool switches are *not* here. They come from the UI tool list, because that
|
|
1196
|
+
* is the list an app's `TLUiOverrides.tools` can rewrite; `useToolShortcuts`
|
|
1197
|
+
* binds them and the dialog reads the same list.
|
|
1198
|
+
*/
|
|
1199
|
+
declare const KEYBOARD_SHORTCUTS: readonly TLKeyboardShortcut[];
|
|
1200
|
+
/** Normalize an authored binding into the same shape {@link bindingString} makes. */
|
|
1201
|
+
declare function normalizeKbd(kbd: string): string;
|
|
1202
|
+
/** Every binding in the table, indexed by its normalized form. */
|
|
1203
|
+
declare function buildShortcutIndex(shortcuts?: readonly TLKeyboardShortcut[]): Map<string, TLKeyboardShortcut>;
|
|
1151
1204
|
interface KeyboardShortcutOptions {
|
|
1152
1205
|
/**
|
|
1153
1206
|
* Bind the plain-key tool switches (`v`, `h`, `n`, …). Leave it on for an
|
|
1154
|
-
* editor with no chrome; turn it OFF whenever
|
|
1207
|
+
* editor with no chrome; turn it OFF whenever the chrome is mounted, because
|
|
1155
1208
|
* the UI tool list binds those keys itself — and it is the list an app's
|
|
1156
1209
|
* `TLUiOverrides.tools` can rewrite, so a binding hard-coded here would
|
|
1157
1210
|
* survive an override that meant to remove it. Defaults to `true`.
|
|
1158
1211
|
*/
|
|
1159
1212
|
tools?: boolean;
|
|
1160
1213
|
}
|
|
1161
|
-
/** Default keyboard shortcuts:
|
|
1214
|
+
/** Default keyboard shortcuts: {@link KEYBOARD_SHORTCUTS}, plus tool switching. */
|
|
1162
1215
|
declare function useKeyboardShortcuts(editor: Editor | null, options?: KeyboardShortcutOptions): void;
|
|
1163
1216
|
|
|
1164
1217
|
interface DefaultToolbarProps {
|
|
@@ -1234,6 +1287,19 @@ declare function useToolShortcuts(): void;
|
|
|
1234
1287
|
/** Component form, so the hook can be mounted from inside the UI provider. */
|
|
1235
1288
|
declare function ToolShortcuts(): null;
|
|
1236
1289
|
|
|
1290
|
+
/**
|
|
1291
|
+
* `{ normalized binding: actionId }` for every action that declares one.
|
|
1292
|
+
*
|
|
1293
|
+
* Bindings already owned by {@link KEYBOARD_SHORTCUTS} are skipped rather than
|
|
1294
|
+
* overridden: those carry behaviour an action item does not (undo coalescing,
|
|
1295
|
+
* clipboard fallbacks), and firing both would run the same operation twice.
|
|
1296
|
+
*/
|
|
1297
|
+
declare function actionKeyMap(actions: TLUiActionsContextType, isReadonly: boolean): Map<string, string>;
|
|
1298
|
+
/** Binds the action list's shortcuts for as long as the calling component is mounted. */
|
|
1299
|
+
declare function useActionShortcuts(): void;
|
|
1300
|
+
/** Component form, so the hook can be mounted from inside the UI provider. */
|
|
1301
|
+
declare function ActionShortcuts(): null;
|
|
1302
|
+
|
|
1237
1303
|
/**
|
|
1238
1304
|
* The analytics seam: one callback the whole UI reports through.
|
|
1239
1305
|
*
|
|
@@ -1395,6 +1461,12 @@ interface TLUiTranslation {
|
|
|
1395
1461
|
label: string;
|
|
1396
1462
|
dir: "ltr" | "rtl";
|
|
1397
1463
|
messages: Readonly<Record<string, string>>;
|
|
1464
|
+
/**
|
|
1465
|
+
* The locales the host supplied a dictionary for, in the order it gave
|
|
1466
|
+
* them. Empty when it supplied none — which is the default, because
|
|
1467
|
+
* mocanvas ships no catalogues of its own.
|
|
1468
|
+
*/
|
|
1469
|
+
locales?: readonly string[];
|
|
1398
1470
|
}
|
|
1399
1471
|
/**
|
|
1400
1472
|
* A UI string id. Open (`string`) rather than a closed union: mocanvas has no
|
|
@@ -1451,6 +1523,17 @@ declare function useMaybeCurrentTranslation(): TLUiTranslation | null;
|
|
|
1451
1523
|
declare function useTranslation(): (id: TLUiTranslationKey) => string;
|
|
1452
1524
|
/** Alias of {@link useTranslation}, spelled as the value it returns. */
|
|
1453
1525
|
declare const useMsg: typeof useTranslation;
|
|
1526
|
+
/**
|
|
1527
|
+
* The languages this editor can actually be shown in.
|
|
1528
|
+
*
|
|
1529
|
+
* mocanvas ships no message catalogues — its default labels are English
|
|
1530
|
+
* display text — so this is the set the *host* supplied through
|
|
1531
|
+
* `overrides.translations`, named where {@link LANGUAGES} knows the name.
|
|
1532
|
+
* With no dictionaries it is empty, and a language menu built from it
|
|
1533
|
+
* correctly offers nothing rather than twenty-five languages that all render
|
|
1534
|
+
* the same English.
|
|
1535
|
+
*/
|
|
1536
|
+
declare function useAvailableTranslationLocales(): readonly TLLanguage[];
|
|
1454
1537
|
/** The writing direction of the current locale; `"ltr"` outside a provider. */
|
|
1455
1538
|
declare function useDirection(): "ltr" | "rtl";
|
|
1456
1539
|
/**
|
|
@@ -1581,14 +1664,45 @@ declare function DefaultA11yAnnouncer(): react.JSX.Element;
|
|
|
1581
1664
|
* Says how many shapes are selected and, for a single shape, what kind it is —
|
|
1582
1665
|
* which is the minimum a keyboard user needs to know that their last keystroke
|
|
1583
1666
|
* did what they meant.
|
|
1667
|
+
*
|
|
1668
|
+
* Under {@link ToggleEnhancedA11yModeItem} it also reads back position and
|
|
1669
|
+
* size. That is deliberately not the default: it is what a person wants when
|
|
1670
|
+
* they are placing something by keyboard, and unbearable when they are only
|
|
1671
|
+
* tabbing through a board.
|
|
1584
1672
|
*/
|
|
1585
1673
|
declare function useSelectedShapesAnnouncer(): void;
|
|
1586
1674
|
/**
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1675
|
+
* Runs {@link useSelectedShapesAnnouncer}. Draws nothing.
|
|
1676
|
+
*
|
|
1677
|
+
* Separate from {@link DefaultA11yAnnouncer} — which is the live region, the
|
|
1678
|
+
* place announcements land — because the two are independently replaceable:
|
|
1679
|
+
* an app that swaps the `A11y` slot for its own region still wants the
|
|
1680
|
+
* editor's selection announcements delivered into it. Before this existed the
|
|
1681
|
+
* regions rendered and nothing ever announced into them, so a screen reader
|
|
1682
|
+
* heard nothing at all when the selection changed.
|
|
1590
1683
|
*/
|
|
1684
|
+
declare function SelectionAnnouncer(): null;
|
|
1685
|
+
/** Whether the *operating system* asks for reduced motion. */
|
|
1591
1686
|
declare function usePrefersReducedMotion(): boolean;
|
|
1687
|
+
/**
|
|
1688
|
+
* Whether motion is reduced right now: the user's `animationSpeed`
|
|
1689
|
+
* preference, or — while they have expressed none — the operating system's.
|
|
1690
|
+
*
|
|
1691
|
+
* The distinction matters for a checkbox. Reading only the combined value
|
|
1692
|
+
* leaves a box that is already ticked because of the OS setting and does not
|
|
1693
|
+
* untick when pressed, which is a control that appears broken. Reading the
|
|
1694
|
+
* raw preference (`undefined` for "not set") lets the box start in the state
|
|
1695
|
+
* the OS asked for and still respond to every press.
|
|
1696
|
+
*/
|
|
1697
|
+
declare function useReduceMotion(): boolean;
|
|
1698
|
+
/**
|
|
1699
|
+
* Puts `data-reduce-motion` on the editor's container while motion is
|
|
1700
|
+
* reduced, so `ui.css` can switch off the chrome's transitions.
|
|
1701
|
+
*
|
|
1702
|
+
* An attribute rather than a class because the container belongs to the host:
|
|
1703
|
+
* adding to `className` would fight whatever the app set there.
|
|
1704
|
+
*/
|
|
1705
|
+
declare function ReduceMotionAttribute(): null;
|
|
1592
1706
|
|
|
1593
1707
|
/**
|
|
1594
1708
|
* Transient messages: "copied", "could not import that file".
|
|
@@ -2239,6 +2353,26 @@ declare function TldrawUiGrid({ columns, gap, className, style, children }: TLUi
|
|
|
2239
2353
|
* bottom of a short window, or that drops focus into the void when dismissed.
|
|
2240
2354
|
*/
|
|
2241
2355
|
type Side = "above" | "below";
|
|
2356
|
+
/**
|
|
2357
|
+
* How a layer learns about the layers opened from inside it.
|
|
2358
|
+
*
|
|
2359
|
+
* Every floating layer is portalled to the same place, so a submenu is a
|
|
2360
|
+
* *sibling* of the menu that opened it, not a descendant. A dismiss check
|
|
2361
|
+
* written as "did the press land inside me?" therefore answers no for a press
|
|
2362
|
+
* on the submenu's own rows — and closes the whole menu on pointer-down,
|
|
2363
|
+
* before the click that would have chosen the row ever happens. Every submenu
|
|
2364
|
+
* item in the chrome was unreachable for exactly this reason.
|
|
2365
|
+
*
|
|
2366
|
+
* A layer registers its element with the layer it was opened from (and, up
|
|
2367
|
+
* the chain, with that layer's own parent), so "inside me" can mean "inside
|
|
2368
|
+
* me or anything I opened".
|
|
2369
|
+
*/
|
|
2370
|
+
interface TLUiLayerNesting {
|
|
2371
|
+
/** Register a nested layer's element. Returns the un-register. */
|
|
2372
|
+
register(node: HTMLElement): () => void;
|
|
2373
|
+
/** Whether `target` is inside a layer opened from this one. */
|
|
2374
|
+
containsNested(target: Node): boolean;
|
|
2375
|
+
}
|
|
2242
2376
|
/** Position an element beside `anchor` once it has been measured. */
|
|
2243
2377
|
declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, open: boolean, prefer: Side): [RefObject<HTMLDivElement | null>, Placement | null];
|
|
2244
2378
|
/**
|
|
@@ -2247,7 +2381,9 @@ declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, o
|
|
|
2247
2381
|
* Listens in the capture phase so it wins against a canvas handler that would
|
|
2248
2382
|
* otherwise start a gesture on the same press.
|
|
2249
2383
|
*/
|
|
2250
|
-
declare function useDismissable(open: boolean, layerRef: RefObject<HTMLElement | null>, anchorRef: RefObject<HTMLElement | null>, onClose: () => void
|
|
2384
|
+
declare function useDismissable(open: boolean, layerRef: RefObject<HTMLElement | null>, anchorRef: RefObject<HTMLElement | null>, onClose: () => void,
|
|
2385
|
+
/** Also treat these as "inside": the layers this one opened. */
|
|
2386
|
+
containsNested?: (target: Node) => boolean): void;
|
|
2251
2387
|
/**
|
|
2252
2388
|
* Roving focus inside a menu: Up/Down move, Home/End jump, and focus lands on
|
|
2253
2389
|
* the first item when the menu opens.
|
|
@@ -2291,6 +2427,12 @@ interface TLUiPopoverProps {
|
|
|
2291
2427
|
/** The pair's root. Owns the open state unless the caller controls it. */
|
|
2292
2428
|
declare function TldrawUiPopover({ id, open: controlled, onOpenChange, side, children }: TLUiPopoverProps): react.JSX.Element;
|
|
2293
2429
|
interface TLUiPopoverTriggerProps {
|
|
2430
|
+
/**
|
|
2431
|
+
* Accessible name for the trigger. A trigger whose only content is an icon
|
|
2432
|
+
* has no text to be named by, so without this it reaches a screen reader as
|
|
2433
|
+
* an unnamed button.
|
|
2434
|
+
*/
|
|
2435
|
+
label?: string;
|
|
2294
2436
|
className?: string;
|
|
2295
2437
|
children?: ReactNode;
|
|
2296
2438
|
}
|
|
@@ -2301,7 +2443,7 @@ interface TLUiPopoverTriggerProps {
|
|
|
2301
2443
|
* whatever it likes inside without the trigger having to guess which prop on
|
|
2302
2444
|
* an unknown element is the click handler.
|
|
2303
2445
|
*/
|
|
2304
|
-
declare function TldrawUiPopoverTrigger({ className, children }: TLUiPopoverTriggerProps): react.JSX.Element;
|
|
2446
|
+
declare function TldrawUiPopoverTrigger({ label, className, children }: TLUiPopoverTriggerProps): react.JSX.Element;
|
|
2305
2447
|
interface TLUiPopoverContentProps {
|
|
2306
2448
|
/** Accessible name for the panel. */
|
|
2307
2449
|
label?: string;
|
|
@@ -2484,6 +2626,8 @@ interface TLUiToolbarButtonProps {
|
|
|
2484
2626
|
disabled?: boolean;
|
|
2485
2627
|
title?: string;
|
|
2486
2628
|
"aria-label"?: string;
|
|
2629
|
+
/** The tool the button selects, published as `data-tool` for tests and apps. */
|
|
2630
|
+
"data-tool"?: string;
|
|
2487
2631
|
className?: string;
|
|
2488
2632
|
ref?: Ref<HTMLButtonElement>;
|
|
2489
2633
|
onClick?(): void;
|
|
@@ -2750,8 +2894,13 @@ declare function CopyAsMenuGroup(): react.JSX.Element;
|
|
|
2750
2894
|
declare function ExportAsMenuGroup(): react.JSX.Element;
|
|
2751
2895
|
/** Export the whole document as a `.mocanvas` file. */
|
|
2752
2896
|
declare function ExportFileContentSubMenu(): react.JSX.Element;
|
|
2753
|
-
/**
|
|
2754
|
-
|
|
2897
|
+
/**
|
|
2898
|
+
* Print the drawing — the selection if there is one, otherwise the page.
|
|
2899
|
+
*
|
|
2900
|
+
* Disabled on an empty page, because there is nothing to put on the paper and
|
|
2901
|
+
* a print dialog showing a blank sheet is worse than a greyed-out row.
|
|
2902
|
+
*/
|
|
2903
|
+
declare const PrintItem: () => react.JSX.Element;
|
|
2755
2904
|
/** Copy-as and export-as, as one group. */
|
|
2756
2905
|
declare function ConversionsMenuGroup(): react.JSX.Element;
|
|
2757
2906
|
/** Delete the selection. */
|
|
@@ -2849,11 +2998,12 @@ declare function ToggleKeyboardShortcutsItem(): react.JSX.Element;
|
|
|
2849
2998
|
/** Export with a transparent background. */
|
|
2850
2999
|
declare function ToggleTransparentBgMenuItem(): react.JSX.Element;
|
|
2851
3000
|
/**
|
|
2852
|
-
* Turn off animation.
|
|
3001
|
+
* Turn off animation: the chrome's transitions and the camera's easing.
|
|
2853
3002
|
*
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
3003
|
+
* Starts ticked for a user whose operating system asks for reduced motion —
|
|
3004
|
+
* they should not have to ask twice — but the tick tracks the editor's own
|
|
3005
|
+
* preference from the first press onwards, so the box always answers a click.
|
|
3006
|
+
* See {@link useReduceMotion}.
|
|
2857
3007
|
*/
|
|
2858
3008
|
declare function ToggleReduceMotionItem(): react.JSX.Element;
|
|
2859
3009
|
/**
|
|
@@ -2864,16 +3014,46 @@ declare function ToggleReduceMotionItem(): react.JSX.Element;
|
|
|
2864
3014
|
* closest thing the option set has to the same effect.
|
|
2865
3015
|
*/
|
|
2866
3016
|
declare const ToggleInvertZoomItem: () => react.JSX.Element;
|
|
2867
|
-
/**
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
3017
|
+
/**
|
|
3018
|
+
* Announce more than the minimum to a screen reader.
|
|
3019
|
+
*
|
|
3020
|
+
* SEMANTICS-ASSUMED: the name specifies no behaviour, so this settles on the
|
|
3021
|
+
* one an editor can honour — how much the selection announcer says. Off, it
|
|
3022
|
+
* names the selection; on, it also reads back position and size, which a
|
|
3023
|
+
* keyboard user otherwise cannot get at. Read it with
|
|
3024
|
+
* `editor.user.getIsEnhancedA11yMode()`; `useSelectedShapesAnnouncer` is what
|
|
3025
|
+
* consumes it today.
|
|
3026
|
+
*
|
|
3027
|
+
* `useEnhancedA11yMode` is deliberately NOT exported alongside it. An earlier
|
|
3028
|
+
* version of this file had one backed by a module-level boolean — so each
|
|
3029
|
+
* caller got its own copy of the state, and nothing read any of them. The
|
|
3030
|
+
* preference is the single source of truth, and tldraw's reference documents
|
|
3031
|
+
* only the menu item.
|
|
3032
|
+
*/
|
|
3033
|
+
declare const ToggleEnhancedA11yModeItem: () => react.JSX.Element;
|
|
2871
3034
|
/** Every preference toggle, as one group. */
|
|
2872
3035
|
declare function PreferencesGroup(): react.JSX.Element;
|
|
2873
|
-
/**
|
|
3036
|
+
/**
|
|
3037
|
+
* Light, dark, or follow the system.
|
|
3038
|
+
*
|
|
3039
|
+
* Writes through {@link Editor.setColorMode} as well as to the user's
|
|
3040
|
+
* preferences. The theme manager is what the canvas and the CSS custom
|
|
3041
|
+
* properties actually paint from; writing only the preference left the tick
|
|
3042
|
+
* moving and the screen unchanged, which is what made this menu look dead.
|
|
3043
|
+
*/
|
|
2874
3044
|
declare const ColorSchemeMenu: () => react.JSX.Element;
|
|
2875
|
-
/**
|
|
2876
|
-
|
|
3045
|
+
/**
|
|
3046
|
+
* Pick the UI locale — when there is more than one to pick from.
|
|
3047
|
+
*
|
|
3048
|
+
* mocanvas ships no message catalogues: its own labels are English display
|
|
3049
|
+
* text, and `overrides.translations` is where an app's dictionaries come
|
|
3050
|
+
* from. So the list is the host's locales, not the twenty-five entries of
|
|
3051
|
+
* {@link LANGUAGES} — offering a language for which no strings exist is a
|
|
3052
|
+
* promise the library cannot keep, and a user who picks one and sees nothing
|
|
3053
|
+
* change learns that the menu lies. With no dictionaries, or only one, this
|
|
3054
|
+
* renders nothing at all.
|
|
3055
|
+
*/
|
|
3056
|
+
declare const LanguageMenu: () => react.JSX.Element | null;
|
|
2877
3057
|
/**
|
|
2878
3058
|
* Which pointer devices draw.
|
|
2879
3059
|
*
|
|
@@ -3456,14 +3636,24 @@ interface ExportAsOptions extends CopyAsOptions {
|
|
|
3456
3636
|
declare function copyAs(editor: Editor, format?: ExportFormat | "json", ids?: readonly ShapeId[], opts?: CopyAsOptions): Promise<void>;
|
|
3457
3637
|
/** Render the shapes and hand the file to the browser's downloader. */
|
|
3458
3638
|
declare function exportAs(editor: Editor, format?: ExportFormat, ids?: readonly ShapeId[], opts?: ExportAsOptions): Promise<void>;
|
|
3639
|
+
/** Whether there is anything on the current page to print. */
|
|
3640
|
+
declare function canPrint(editor: Editor): boolean;
|
|
3459
3641
|
/**
|
|
3460
|
-
* Print the
|
|
3642
|
+
* Print the drawing: the selection if there is one, otherwise the page.
|
|
3643
|
+
*
|
|
3644
|
+
* Not `window.print()`. The editor is a component on somebody's page, and the
|
|
3645
|
+
* host window's print view is that whole page — headers, navigation, the
|
|
3646
|
+
* article the canvas is embedded in, and a canvas element that a print
|
|
3647
|
+
* stylesheet cannot usefully lay out. What the user asked to print is the
|
|
3648
|
+
* drawing, so the drawing is what is rendered: the same SVG the exporter
|
|
3649
|
+
* produces, alone in a hidden same-origin frame that is printed and then
|
|
3650
|
+
* thrown away.
|
|
3461
3651
|
*
|
|
3462
|
-
*
|
|
3463
|
-
*
|
|
3464
|
-
*
|
|
3652
|
+
* Returns `false` when there was nothing to print or no DOM to print it in;
|
|
3653
|
+
* the menu item disables itself on the same condition, so this is the
|
|
3654
|
+
* belt-and-braces case rather than the normal one.
|
|
3465
3655
|
*/
|
|
3466
|
-
declare function printSelection(editor: Editor):
|
|
3656
|
+
declare function printSelection(editor: Editor, ids?: readonly ShapeId[]): boolean;
|
|
3467
3657
|
|
|
3468
3658
|
/**
|
|
3469
3659
|
* The small hooks the chrome reaches for that do not belong to any one panel.
|
|
@@ -3566,6 +3756,14 @@ type TLUiMenuPanelChildren = ReactNode;
|
|
|
3566
3756
|
* A menu rather than a tab bar: a document with twenty pages has to stay
|
|
3567
3757
|
* usable, and a row of twenty tabs does not. The current page's name doubles
|
|
3568
3758
|
* as the trigger, so the panel costs one button's worth of chrome.
|
|
3759
|
+
*
|
|
3760
|
+
* ## Why the per-page actions are behind their own trigger
|
|
3761
|
+
* They used to be three rows printed beside every page name, which made a
|
|
3762
|
+
* five-page document a twenty-row menu in which nothing said which "Delete"
|
|
3763
|
+
* belonged to which page. One trigger per row, opening a menu that names the
|
|
3764
|
+
* page it acts on, is the same three actions without the ambiguity — and it
|
|
3765
|
+
* leaves the row itself as what it should be: the thing you click to switch
|
|
3766
|
+
* page.
|
|
3569
3767
|
*/
|
|
3570
3768
|
interface PageItemInputProps {
|
|
3571
3769
|
id: PageId;
|
|
@@ -3587,10 +3785,20 @@ interface PageItemSubmenuProps {
|
|
|
3587
3785
|
index: number;
|
|
3588
3786
|
/** How many pages there are, so the last one cannot be deleted. */
|
|
3589
3787
|
total: number;
|
|
3788
|
+
/** The page's name, so the menu can say which page it acts on. */
|
|
3789
|
+
name?: string;
|
|
3590
3790
|
onRename?(): void;
|
|
3591
3791
|
}
|
|
3592
|
-
/**
|
|
3593
|
-
|
|
3792
|
+
/**
|
|
3793
|
+
* The per-page actions: rename, duplicate, delete.
|
|
3794
|
+
*
|
|
3795
|
+
* Its open state is controlled here rather than left to the submenu, because
|
|
3796
|
+
* "Rename" has to close *this* menu and leave the page list open behind it —
|
|
3797
|
+
* the rename field it reveals lives in that list. An item that closed the
|
|
3798
|
+
* whole menu would put the field out of sight, which is the bug this shape
|
|
3799
|
+
* exists to prevent.
|
|
3800
|
+
*/
|
|
3801
|
+
declare function PageItemSubmenu({ id, total, name, onRename }: PageItemSubmenuProps): react.JSX.Element;
|
|
3594
3802
|
/**
|
|
3595
3803
|
* The page menu.
|
|
3596
3804
|
*
|
|
@@ -3650,11 +3858,42 @@ declare function OfflineIndicator(): react.JSX.Element | null;
|
|
|
3650
3858
|
/**
|
|
3651
3859
|
* The keyboard shortcuts dialog.
|
|
3652
3860
|
*
|
|
3653
|
-
* Built from the
|
|
3654
|
-
*
|
|
3655
|
-
*
|
|
3861
|
+
* Built from the three things that actually install bindings — the
|
|
3862
|
+
* {@link KEYBOARD_SHORTCUTS} table that `useKeyboardShortcuts` dispatches
|
|
3863
|
+
* through, the UI tool list that `useToolShortcuts` binds, and the UI action
|
|
3864
|
+
* list that `useActionShortcuts` binds — rather than from a list written out
|
|
3865
|
+
* by hand beside them. A sheet assembled from
|
|
3866
|
+
* anything else can drift from the editor it describes, and a shortcut sheet
|
|
3867
|
+
* that is wrong is worse than none: the user tries the key, nothing happens,
|
|
3868
|
+
* and they stop trusting the rest of the page.
|
|
3869
|
+
*
|
|
3870
|
+
* It is also why the tool rows come from the *list* and not from the tool's
|
|
3871
|
+
* declared `kbd`: an app that rebinds a key through `overrides.tools` gets a
|
|
3872
|
+
* correct sheet, and one whose binding lost a fight for the same key does not
|
|
3873
|
+
* see a row claiming otherwise.
|
|
3874
|
+
*/
|
|
3875
|
+
/** One row: a label and the key that reaches it. */
|
|
3876
|
+
interface ShortcutRow {
|
|
3877
|
+
id: string;
|
|
3878
|
+
label: string;
|
|
3879
|
+
kbd: string;
|
|
3880
|
+
}
|
|
3881
|
+
/** The tools that really answer to a key right now, in tool-list order. */
|
|
3882
|
+
declare function useBoundToolShortcuts(): ShortcutRow[];
|
|
3883
|
+
/**
|
|
3884
|
+
* The actions that really answer to a key right now, in action-list order.
|
|
3885
|
+
*
|
|
3886
|
+
* `actionKeyMap` drops anything {@link KEYBOARD_SHORTCUTS} already owns, so an
|
|
3887
|
+
* action that shares a binding with the table is listed once, by the table,
|
|
3888
|
+
* under the table's label — which is the one that runs.
|
|
3656
3889
|
*/
|
|
3657
|
-
|
|
3890
|
+
declare function useBoundActionShortcuts(): ShortcutRow[];
|
|
3891
|
+
/** The table's rows, in the order the sections are shown. */
|
|
3892
|
+
declare function groupKeyboardShortcuts(shortcuts?: readonly TLKeyboardShortcut[]): {
|
|
3893
|
+
group: TLKeyboardShortcutGroup;
|
|
3894
|
+
rows: ShortcutRow[];
|
|
3895
|
+
}[];
|
|
3896
|
+
/** Every shortcut the editor is listening for, grouped. */
|
|
3658
3897
|
declare function DefaultKeyboardShortcutsDialogContent(): react.JSX.Element;
|
|
3659
3898
|
/**
|
|
3660
3899
|
* The dialog frame. Replace the contents by passing `children`; replace the
|
|
@@ -4110,6 +4349,16 @@ interface ToggleToolLockedButtonProps {
|
|
|
4110
4349
|
* nothing.
|
|
4111
4350
|
*/
|
|
4112
4351
|
declare const ToggleToolLockedButton: ({ className }: ToggleToolLockedButtonProps) => react.JSX.Element | null;
|
|
4352
|
+
/**
|
|
4353
|
+
* The default set of toolbar buttons, in order.
|
|
4354
|
+
*
|
|
4355
|
+
* An array rather than markup, because {@link OverflowingToolbar} splits its
|
|
4356
|
+
* children one by one: handed `<DefaultToolbarContent />` it would see a
|
|
4357
|
+
* single opaque child and could only move the whole bar into the popover at
|
|
4358
|
+
* once. `Children.toArray` flattens a nested array, so spreading this list
|
|
4359
|
+
* into the bar gives it the per-button children it measures against.
|
|
4360
|
+
*/
|
|
4361
|
+
declare const DEFAULT_TOOLBAR_ITEMS: readonly ReactNode[];
|
|
4113
4362
|
/**
|
|
4114
4363
|
* The default set of toolbar buttons, in order.
|
|
4115
4364
|
*
|
|
@@ -4126,9 +4375,16 @@ interface OverflowingToolbarProps {
|
|
|
4126
4375
|
/**
|
|
4127
4376
|
* A toolbar that moves whatever will not fit into a "more" popover.
|
|
4128
4377
|
*
|
|
4129
|
-
* The split is measured, not guessed
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4378
|
+
* The split is measured, not guessed, so the same component works in a 320px
|
|
4379
|
+
* phone frame and in a 1600px desktop one without the caller configuring
|
|
4380
|
+
* anything.
|
|
4381
|
+
*
|
|
4382
|
+
* ## Why the *container* is measured, not the bar
|
|
4383
|
+
* The plate is `width: max-content`, so its own width is a consequence of how
|
|
4384
|
+
* many children it is currently showing. Deriving the split from that is a
|
|
4385
|
+
* feedback loop: dropping a button narrows the bar, which drops another. The
|
|
4386
|
+
* room available to it — the container, less what the CSS reserves for the
|
|
4387
|
+
* docks on either side — is independent of the decision, so the split settles.
|
|
4132
4388
|
*
|
|
4133
4389
|
* A child that renders nothing still takes a slot, so a caller mapping over a
|
|
4134
4390
|
* fixed list gets a split that does not jump around as tools appear.
|
|
@@ -9900,4 +10156,4 @@ declare function getPointsFromDrawSegment(segment: TLDrawShapeSegment, scaleX: n
|
|
|
9900
10156
|
/** Every point of a stroke, in order, scaled to the shape's current size. */
|
|
9901
10157
|
declare function getPointsFromDrawSegments(segments: TLDrawShapeSegment[], scaleX?: number, scaleY?: number): Vec[];
|
|
9902
10158
|
|
|
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 };
|
|
10159
|
+
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 };
|