Class EraserTool

A tool that allows a user to erase parts of an image.

Hierarchy (View Summary)

Constructors

Properties

description: string

Methods

  • Returns the side-length of the tip of this eraser.

    Returns number

  • Returns BaseTool

    a tool that briefly enables the eraser when a physical eraser is used. This tool should be added to the tool list after the primary tools.

  • Called when the tool is removed/when the editor is destroyed. Subclasses that override this method must call super.onDestroy().

    Returns void

  • Returns true iff there are additional pointers down and the tool should remain active to handle the additional events.

    For most purposes, this should return false or nothing.

    Parameters

    Returns void

  • Sets the side-length of this' tip.

    Parameters

    • thickness: number

    Returns void

OpenSource licenses