File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1493,7 +1493,7 @@ export class SelectableCanvas<
1493
1493
if ( currentActives . length ) {
1494
1494
this . fire ( 'before:selection:cleared' , {
1495
1495
e,
1496
- deselected : [ activeObject ] ,
1496
+ deselected : [ activeObject ! ] ,
1497
1497
} ) ;
1498
1498
}
1499
1499
this . _discardActiveObject ( e ) ;
Original file line number Diff line number Diff line change 2
2
import { fabric } from '../../HEADER' ;
3
3
import { config } from '../config' ;
4
4
import { iMatrix , VERSION } from '../constants' ;
5
- import type { StaticCanvasEvents } from '../EventTypeDefs' ;
5
+ import type { CanvasEvents , StaticCanvasEvents } from '../EventTypeDefs' ;
6
6
import { Gradient } from '../gradient' ;
7
7
import { createCollectionMixin } from '../mixins/collection.mixin' ;
8
8
import { TSVGReviver } from '../mixins/object.svg_export' ;
@@ -54,7 +54,7 @@ export type TSVGExportOptions = {
54
54
width : number ;
55
55
height : number ;
56
56
} ;
57
- encoding ?: 'UTF-8' ; // test Econding type and see what happens
57
+ encoding ?: 'UTF-8' ; // test Encoding type and see what happens
58
58
width ?: string ;
59
59
height ?: string ;
60
60
reviver ?: TSVGReviver ;
@@ -69,10 +69,10 @@ export type TSVGExportOptions = {
69
69
* @fires object:added
70
70
* @fires object:removed
71
71
*/
72
- // eslint-disable-next-line max-len
72
+ // TODO: fix `EventSpec` inheritance https://github.com/microsoft/TypeScript/issues/26154#issuecomment-1366616260
73
73
export class StaticCanvas <
74
74
EventSpec extends StaticCanvasEvents = StaticCanvasEvents
75
- > extends createCollectionMixin ( CommonMethods < EventSpec > ) {
75
+ > extends createCollectionMixin ( CommonMethods < CanvasEvents > ) {
76
76
/**
77
77
* Background color of canvas instance.
78
78
* @type {(String|TFiller) }
You can’t perform that action at this time.
0 commit comments