Skip to content

Commit

Permalink
feat: 关闭缓存
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYan0913 committed Jul 24, 2023
1 parent 763c456 commit dbc7eb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export class App extends BaseService<EventArgs> {
this.canvas = new fabric.Canvas(null, {
backgroundColor: option?.backgroundColor,
});
// 关闭对象缓存,缩放时不会模糊
fabric.Object.prototype.objectCaching = false;
this.setControls(this.option.controls);
this.mouseService = new MouseService(this);
}
Expand Down

0 comments on commit dbc7eb6

Please sign in to comment.