import { fabric } from 'fabric' ; import * as uuid from 'uuid' ; export interface FacsimileEffects { trace : { active : boolean ; level : number ; } ; outlines : { active : boolean ; level : number ; } ; drawing : { active : boolean ; width : number ; } ; } export class Facsimile extends fabric . Image { id : string ; tid : string ; constructor ( element , objObjects ) { super ( element , objObjects ) ; this . backgroundColor = 'rgb(255, 255, 255)' ; this . evented = false ; this . lockMovementX = true ; this . lockMovementY = true ; this . lockRotation = true ; this . lockScalingX = true ; this . lockScalingY = true ; this . opacity = 1 ; this . selectable = false ; this . id = uuid ( ) ; this . tid = 'facsimile' ; } }