Skip to content

Commit 2afbb79

Browse files
committed
1 parent 8ea6335 commit 2afbb79

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/canvas/canvas.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ export class SelectableCanvas<
14931493
if (currentActives.length) {
14941494
this.fire('before:selection:cleared', {
14951495
e,
1496-
deselected: [activeObject],
1496+
deselected: [activeObject!],
14971497
});
14981498
}
14991499
this._discardActiveObject(e);

src/canvas/static_canvas.class.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { fabric } from '../../HEADER';
33
import { config } from '../config';
44
import { iMatrix, VERSION } from '../constants';
5-
import type { StaticCanvasEvents } from '../EventTypeDefs';
5+
import type { CanvasEvents, StaticCanvasEvents } from '../EventTypeDefs';
66
import { Gradient } from '../gradient';
77
import { createCollectionMixin } from '../mixins/collection.mixin';
88
import { TSVGReviver } from '../mixins/object.svg_export';
@@ -54,7 +54,7 @@ export type TSVGExportOptions = {
5454
width: number;
5555
height: number;
5656
};
57-
encoding?: 'UTF-8'; // test Econding type and see what happens
57+
encoding?: 'UTF-8'; // test Encoding type and see what happens
5858
width?: string;
5959
height?: string;
6060
reviver?: TSVGReviver;
@@ -69,10 +69,10 @@ export type TSVGExportOptions = {
6969
* @fires object:added
7070
* @fires object:removed
7171
*/
72-
// eslint-disable-next-line max-len
72+
// TODO: fix `EventSpec` inheritance https://github.com/microsoft/TypeScript/issues/26154#issuecomment-1366616260
7373
export class StaticCanvas<
7474
EventSpec extends StaticCanvasEvents = StaticCanvasEvents
75-
> extends createCollectionMixin(CommonMethods<EventSpec>) {
75+
> extends createCollectionMixin(CommonMethods<CanvasEvents>) {
7676
/**
7777
* Background color of canvas instance.
7878
* @type {(String|TFiller)}

0 commit comments

Comments
 (0)