File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
.codesandbox/templates/vanilla/src Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as fabric from 'fabric';
22import './styles.css' ;
33
44const el = document . getElementById ( 'canvas' ) ;
5- const canvas = new fabric . Canvas ( el ) ;
5+ const canvas = ( window . canvas = new fabric . Canvas ( el ) ) ;
66
77// edit from here
88canvas . setDimensions ( {
Original file line number Diff line number Diff line change 22
33## [ next]
44
5+ - fix(): tweaks to type getter [ #9022 ] ( https://github.com/fabricjs/fabric.js/pull/9022 )
56- ci() Refactor GHA actions for caching and reuse [ #9029 ] ( https://github.com/fabricjs/fabric.js/pull/9029 )
67- ci(): install dev deps types [ #9039 ] ( https://github.com/fabricjs/fabric.js/pull/9039 )
78
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ import { classRegistry } from '../ClassRegistry';
33
44export function createColorMatrixFilter ( key : string , matrix : number [ ] ) {
55 const newClass = class extends ColorMatrix {
6- get type ( ) {
7- return key ;
8- }
9-
106 static type = key ;
117
128 static defaults = {
Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ export class IText<
205205 static type = 'IText' ;
206206
207207 get type ( ) {
208- return 'i-text' ;
208+ const type = super . type ;
209+ // backward compatibility
210+ return type === 'itext' ? 'i-text' : type ;
209211 }
210212
211213 /**
You can’t perform that action at this time.
0 commit comments