@tldraw/editor 3.8.0-canary.591f26edf8c0 → 3.8.0-canary.59c5a9d76e3a
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/dist-cjs/index.d.ts +7 -2
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +2 -2
- package/dist-cjs/lib/editor/Editor.js.map +1 -1
- package/dist-cjs/lib/hooks/usePassThroughWheelEvents.js +4 -0
- package/dist-cjs/lib/hooks/usePassThroughWheelEvents.js.map +3 -3
- package/dist-cjs/lib/options.js +2 -1
- package/dist-cjs/lib/options.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +7 -2
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +2 -2
- package/dist-esm/lib/editor/Editor.mjs.map +1 -1
- package/dist-esm/lib/hooks/usePassThroughWheelEvents.mjs +4 -0
- package/dist-esm/lib/hooks/usePassThroughWheelEvents.mjs.map +3 -3
- package/dist-esm/lib/options.mjs +2 -1
- package/dist-esm/lib/options.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +2 -2
- package/src/lib/hooks/usePassThroughWheelEvents.ts +7 -0
- package/src/lib/options.ts +5 -0
- package/src/version.ts +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -852,6 +852,7 @@ export declare const defaultTldrawOptions: {
|
|
|
852
852
|
readonly edgeScrollDistance: 8;
|
|
853
853
|
readonly edgeScrollEaseDuration: 200;
|
|
854
854
|
readonly edgeScrollSpeed: 25;
|
|
855
|
+
readonly enableToolbarKeyboardShortcuts: true;
|
|
855
856
|
readonly exportProvider: ExoticComponent< {
|
|
856
857
|
children?: ReactNode;
|
|
857
858
|
}>;
|
|
@@ -1379,8 +1380,8 @@ export declare class Editor extends EventEmitter<TLEventMap> {
|
|
|
1379
1380
|
*
|
|
1380
1381
|
* @example
|
|
1381
1382
|
* ```ts
|
|
1382
|
-
*
|
|
1383
|
-
*
|
|
1383
|
+
* editor.getStateDescendant('select')
|
|
1384
|
+
* editor.getStateDescendant('select.brushing')
|
|
1384
1385
|
* ```
|
|
1385
1386
|
*
|
|
1386
1387
|
* @param path - The descendant's path of state ids, separated by periods.
|
|
@@ -6028,6 +6029,10 @@ export declare interface TldrawOptions {
|
|
|
6028
6029
|
* but you can set it to be user-resizable using scale.
|
|
6029
6030
|
*/
|
|
6030
6031
|
readonly noteShapeResizeMode: 'none' | 'scale';
|
|
6032
|
+
/**
|
|
6033
|
+
* By default, the toolbar items are accessible via number shortcuts according to their order. To disable this, set this option to false.
|
|
6034
|
+
*/
|
|
6035
|
+
readonly enableToolbarKeyboardShortcuts: boolean;
|
|
6031
6036
|
}
|
|
6032
6037
|
|
|
6033
6038
|
/** @public */
|
package/dist-cjs/index.js
CHANGED
|
@@ -1164,8 +1164,8 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
1164
1164
|
*
|
|
1165
1165
|
* @example
|
|
1166
1166
|
* ```ts
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1167
|
+
* editor.getStateDescendant('select')
|
|
1168
|
+
* editor.getStateDescendant('select.brushing')
|
|
1169
1169
|
* ```
|
|
1170
1170
|
*
|
|
1171
1171
|
* @param path - The descendant's path of state ids, separated by periods.
|