mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-08 01:39:22 +08:00
refactor(editor): rename model.doc to store (#12172)
This commit is contained in:
@@ -23,9 +23,9 @@ export class ImageResizeManager {
|
||||
}
|
||||
|
||||
const dragModel = getModelByElement(this._activeComponent);
|
||||
dragModel?.doc.captureSync();
|
||||
dragModel?.store.captureSync();
|
||||
const { width, height } = this._imageContainer.getBoundingClientRect();
|
||||
dragModel?.doc.updateBlock(dragModel, {
|
||||
dragModel?.store.updateBlock(dragModel, {
|
||||
width: width / this._zoom,
|
||||
height: height / this._zoom,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user