Hierarchy

Constructors

Methods

  • Apply a one-click color filter preset. Passing 'none' clears the preset while leaving Adjust sliders intact.

    Parameters

    Returns void

  • Apply any pending slider adjustment now and record it as an undo step (no-op when nothing changed since the last snapshot).

    Returns void

  • Delete the currently selected annotation (callout or other). Returns true if something was deleted.

    Returns boolean

  • Destroy the editor and clean up resources

    Returns void

  • Mirror the base image horizontally. Preserves rotation baseline tracking by resetting cumulativeRotation only when needed.

    Returns void

  • Mirror the base image vertically.

    Returns void

  • Get current zoom level

    Returns number

  • Load an image into the editor

    Parameters

    • source: string | Blob | File

    Returns Promise<void>

  • Redo last undone action

    Returns Promise<void>

  • Reset to original image

    Returns Promise<void>

  • Clear filter + all adjust knobs.

    Parameters

    • save: boolean = true

    Returns void

  • Rotate left (−90°)

    Returns Promise<void>

  • Rotate right (+90°)

    Returns Promise<void>

  • Update a single Adjust knob. Values are clamped to sane ranges: brightness/contrast/saturation ∈ [-1, 1], blur ∈ [0, 1]. Rebuilds the filter stack with a small debounce so dragging is cheap on large photos.

    Type Parameters

    Parameters

    Returns void

  • Adjust the freehand brush opacity (0..1). Applied by re-emitting the current brush color as rgba() to the DrawModule — module internals are not modified.

    Parameters

    • opacity: number

    Returns void

  • Set brush width

    Parameters

    • width: number

    Returns void

  • Set brush/text color

    Parameters

    • color: string

    Returns void

  • Set zoom level

    Parameters

    • level: number

    Returns void

  • Toggle browser fullscreen on the editor container. Silently no-ops if the Fullscreen API is unavailable or the request is denied by the browser (e.g. not user-initiated).

    Returns void

  • Undo last action

    Returns Promise<void>

  • Zoom in

    Parameters

    • factor: number = 1.15

    Returns void

  • Zoom out

    Parameters

    • factor: number = 1.15

    Returns void