import { fabric } from 'fabric' ; import * as uuid from 'uuid' ; export class Source extends fabric . Image { id : string ; title : string ; tid : string ; constructor ( element , objObjects ) { super ( element , objObjects ) ; this . evented = false ; this . lockMovementX = true ; this . lockMovementY = true ; this . lockRotation = true ; this . lockScalingX = true ; this . lockScalingY = true ; this . hasBorders = false ; this . hasControls = false ; this . hasRotatingPoint = false ; this . opacity = 1 ; this . selectable = false ; this . id = uuid ( ) ; this . tid = 'source' ; this . title = 'Untitled' ; } }