@tldraw/editor 3.14.0-canary.efa8f9545620 → 3.14.0-canary.f2737654a470
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 +0 -6
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +0 -6
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/editor/managers/TextManager/TextManager.js +2 -2
- package/dist-cjs/lib/editor/managers/TextManager/TextManager.js.map +2 -2
- package/dist-cjs/lib/editor/shapes/ShapeUtil.js.map +1 -1
- package/dist-cjs/lib/editor/types/emit-types.js.map +1 -1
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +0 -6
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +0 -6
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/editor/managers/TextManager/TextManager.mjs +2 -2
- package/dist-esm/lib/editor/managers/TextManager/TextManager.mjs.map +2 -2
- package/dist-esm/lib/editor/shapes/ShapeUtil.mjs.map +1 -1
- 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 +0 -6
- package/src/lib/editor/managers/TextManager/TextManager.ts +2 -3
- package/src/lib/editor/shapes/ShapeUtil.ts +0 -1
- package/src/lib/editor/types/emit-types.ts +0 -4
- package/src/version.ts +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -6002,7 +6002,6 @@ export declare interface TLCropInfo<T extends TLShape> {
|
|
|
6002
6002
|
w: number;
|
|
6003
6003
|
};
|
|
6004
6004
|
initialShape: T;
|
|
6005
|
-
aspectRatioLocked?: boolean;
|
|
6006
6005
|
}
|
|
6007
6006
|
|
|
6008
6007
|
/** @public */
|
|
@@ -6530,10 +6529,6 @@ export declare interface TLEventMap {
|
|
|
6530
6529
|
};
|
|
6531
6530
|
shapeId: TLShapeId;
|
|
6532
6531
|
}];
|
|
6533
|
-
'created-shapes': [TLRecord[]];
|
|
6534
|
-
'edited-shapes': [TLRecord[]];
|
|
6535
|
-
'deleted-shapes': [TLShapeId[]];
|
|
6536
|
-
edit: [];
|
|
6537
6532
|
}
|
|
6538
6533
|
|
|
6539
6534
|
/** @public */
|
|
@@ -6789,7 +6784,6 @@ export declare interface TLMeasureTextOpts {
|
|
|
6789
6784
|
fontWeight: string;
|
|
6790
6785
|
fontFamily: string;
|
|
6791
6786
|
fontSize: number;
|
|
6792
|
-
/** This must be a number, e.g. 1.35, not a pixel value. */
|
|
6793
6787
|
lineHeight: number;
|
|
6794
6788
|
/**
|
|
6795
6789
|
* When maxWidth is a number, the text will be wrapped to that maxWidth. When maxWidth
|
package/dist-cjs/index.js
CHANGED
|
@@ -5866,8 +5866,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
5866
5866
|
...shape.meta
|
|
5867
5867
|
};
|
|
5868
5868
|
});
|
|
5869
|
-
this.emit("created-shapes", shapeRecordsToCreate);
|
|
5870
|
-
this.emit("edit");
|
|
5871
5869
|
this.store.put(shapeRecordsToCreate);
|
|
5872
5870
|
});
|
|
5873
5871
|
return this;
|
|
@@ -6109,8 +6107,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
6109
6107
|
updated = this.getShapeUtil(shape).onBeforeUpdate?.(shape, updated) ?? updated;
|
|
6110
6108
|
updates.push(updated);
|
|
6111
6109
|
}
|
|
6112
|
-
this.emit("edited-shapes", updates);
|
|
6113
|
-
this.emit("edit");
|
|
6114
6110
|
this.store.put(updates);
|
|
6115
6111
|
});
|
|
6116
6112
|
}
|
|
@@ -6132,8 +6128,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
6132
6128
|
allShapeIdsToDelete.add(childId);
|
|
6133
6129
|
});
|
|
6134
6130
|
}
|
|
6135
|
-
this.emit("deleted-shapes", [...allShapeIdsToDelete]);
|
|
6136
|
-
this.emit("edit");
|
|
6137
6131
|
return this.run(() => this.store.remove([...allShapeIdsToDelete]));
|
|
6138
6132
|
}
|
|
6139
6133
|
deleteShape(_id) {
|