import { AvailableFilter } from '../enums/available-filter.enum' ; export function applyPropertyPatches ( canvas , context ) { Object . defineProperty ( canvas . prototype , '__skipFilterPatch' , { writable : true , value : false } ) ; Object . defineProperty ( canvas . prototype , '__currentPathMirror' , { writable : true , value : undefined } ) ; Object . defineProperty ( context . prototype , 'filter' , { writable : true , value : AvailableFilter . None } ) ; }