import { Drawing } from './Drawing' ; import { ActionSerialized } from './ActionSerialized' ; import { Action } from './Action' ; description export class ActionClear extends Action { description get xMax ( ) : number { return 0 ; } serializeData ( ) { return { type : "clear" , pause : this . pause , userid : this . userid } ; } async redo ( ) { Drawing . clear ( ) ; document . getElementById ( "svg" ) . innerHTML = "" ; document . getElementById ( "magnets" ) . innerHTML = "" ; } createOverviewImage ( ) { return "url(img/icons/supererase.svg)" ; } }