@tldraw/editor 3.10.0-canary.40e471348e38 → 3.10.0-canary.680223470e35
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 +11 -2
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +1 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/hooks/usePeerIds.js.map +1 -1
- package/dist-cjs/lib/hooks/usePresence.js.map +1 -1
- package/dist-cjs/lib/utils/browserCanvasMaxSize.js +5 -0
- package/dist-cjs/lib/utils/browserCanvasMaxSize.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 +11 -2
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/hooks/usePeerIds.mjs.map +1 -1
- package/dist-esm/lib/hooks/usePresence.mjs.map +1 -1
- package/dist-esm/lib/utils/browserCanvasMaxSize.mjs +5 -0
- package/dist-esm/lib/utils/browserCanvasMaxSize.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/editor.css +4 -0
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +1 -1
- package/src/lib/hooks/usePeerIds.ts +1 -1
- package/src/lib/hooks/usePresence.ts +2 -2
- package/src/lib/utils/browserCanvasMaxSize.ts +5 -3
- package/src/version.ts +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -7348,9 +7348,18 @@ export declare function usePassThroughMouseOverEvents(ref: RefObject<HTMLElement
|
|
|
7348
7348
|
/** @public */
|
|
7349
7349
|
export declare function usePassThroughWheelEvents(ref: RefObject<HTMLElement>): void;
|
|
7350
7350
|
|
|
7351
|
-
|
|
7351
|
+
/**
|
|
7352
|
+
* @returns The list of peer UserIDs
|
|
7353
|
+
* @public
|
|
7354
|
+
*/
|
|
7355
|
+
export declare function usePeerIds(): string[];
|
|
7356
|
+
|
|
7357
|
+
/**
|
|
7358
|
+
* @returns The latest presence of the user matching userId
|
|
7359
|
+
* @public
|
|
7360
|
+
*/
|
|
7361
|
+
export declare function usePresence(userId: string): null | TLInstancePresence;
|
|
7352
7362
|
|
|
7353
|
-
/* Excluded from this release type: usePresence */
|
|
7354
7363
|
export { useQuickReactor }
|
|
7355
7364
|
|
|
7356
7365
|
/* Excluded from this release type: USER_COLORS */
|
package/dist-cjs/index.js
CHANGED
|
@@ -4009,7 +4009,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
4009
4009
|
indices = sib ? (0, import_utils.getIndicesAbove)(sib.index, ids.length) : (0, import_utils.getIndices)(ids.length);
|
|
4010
4010
|
}
|
|
4011
4011
|
const invertedParentTransform = parentTransform.clone().invert();
|
|
4012
|
-
const shapesToReparent = (0, import_utils.compact)(ids.map((id) => this.getShape(id)));
|
|
4012
|
+
const shapesToReparent = (0, import_utils.compact)(ids.map((id) => this.getShape(id))).sort(import_utils.sortByIndex);
|
|
4013
4013
|
this.run(
|
|
4014
4014
|
() => {
|
|
4015
4015
|
for (let i = 0; i < shapesToReparent.length; i++) {
|