import { ActionSerialized } from './ActionSerialized' ; import { Drawing } from './Drawing' ; import { Action } from "./Action" ; export class ActionEllipse extends Action { get xMax ( ) : number { return this . cx + this . rx ; } serializeData ( ) { return { type : "ellipse" , pause : this . pause , userid : this . userid , cx : this . cx , cy : this . cy , rx : this . rx , ry : this . ry , color : this . color } ; } constructor ( userid , private cx , private cy , private rx , private ry , private color ) { super ( userid ) ; } createOverviewImage ( ) { return "url(img/icons/26AA.svg)" ; } async redo ( ) { Drawing . drawEllipse ( { cx : this . cx , cy : this . cy , rx : this . rx , ry : this . ry } , this . color ) ; } }