Documentation
    Preparing search index...

    Abstract base class for all drawing modes. Each mode handles touch events and optionally draws an in-progress overlay.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    defaultHeight: number
    defaultWidth: number

    Default size for placed image in dp

    imageSource: ImageSource

    Set the image source before activating this mode, or override onTouchEnd to prompt the user

    imageSrc: string
    name: "image"

    Methods

    • Called when this mode becomes active

      Returns void

    • Called when this mode becomes inactive

      Returns void

    • Draw any in-progress overlay for this mode. Called during the DrawingCanvas onDraw pass after all layers.

      Parameters

      Returns void

    • Returns void

    • Called when the touch is cancelled

      Parameters

      Returns void

    • Called as the touch moves

      Parameters

      Returns void

    • Called when a touch begins

      Parameters

      Returns void