import { Point } from "./Point" ; import { Coordinate } from "./Coordinate" ; export class Grip extends Point { constructor ( x , y , public cursor , public owner ? ) { super ( x , y ) ; } commit ( keep ) { if ( this . owner ) { this . owner . commit ( keep ) ; } else { super . commit ( keep ) ; } } }