WebIDLpedia

CanvasState interface mixin

Definition

HTML Standard defines CanvasState



interface mixin CanvasState {
  // state
  undefined save(); // push state on state stack
  undefined restore(); // pop state stack and restore state
  undefined reset(); // reset the rendering context to its default state
  boolean isContextLost(); // return whether context is lost
};

Referring IDL interfaces/dictionaries