drawing - Annotations API

Drawing Module

The following methods are available for the drawing module.

  • addDrawingArea function

    Adds one drawing area.

  • enterDrawingMode function

    Enters the drawing mode.

  • exitDrawingMode function

    Exits the drawing mode.

  • getAllDrawingAreas function

    Get all of the Drawing Area instances in an array, so they can be manipulated.

  • getDrawingTool function

    Gets the current state of the drawing tool, regardless of whether drawing mode is active.

  • hide function

    Hides all the drawings.

  • isDrawingModeActive function

    Checks the state of the drawing mode.

  • isVisible function

    Checks the visibility of the drawing(s).

  • removeDrawingArea function

    Removes one drawing area based on given id.

  • setDrawingTool function

    Sets the drawing tool to 'pencil' or 'eraser'.

  • show function

    Shows all the drawings.

  • toggleGrid function

    Toggles the display of the background grid for the drawing tool.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.