Options
All
  • Public
  • Public/Protected
  • All
Menu

Basic image editor for image scale, rotate etc.

Hierarchy

  • InlineImageEditor

Index

Constructors

constructor

Properties

onDragStart

onDragStart: Signal = new Phaser.Signal()

onDragStop

onDragStop: Signal = new Phaser.Signal()

onEditModeStart

onEditModeStart: Signal = new Phaser.Signal()

onEditModeStop

onEditModeStop: Signal = new Phaser.Signal()

onFlipped

onFlipped: Signal = new Phaser.Signal()

onRotateStart

onRotateStart: Signal = new Phaser.Signal()

onRotateStop

onRotateStop: Signal = new Phaser.Signal()

onScaleStart

onScaleStart: Signal = new Phaser.Signal()

onScaleStop

onScaleStop: Signal = new Phaser.Signal()

Accessors

image

  • get image(): DisplayObjectContainer
  • Return the display object that the editor will make changes too

    Returns DisplayObjectContainer

isEditing

  • get isEditing(): boolean
  • Returns true if currently in edit mode

    Returns boolean

Methods

bringToTop

  • bringToTop(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

enableEditing

  • enableEditing(enable: boolean): void
  • Turn edit mode on/off. If edit mode is on the edit controls will display

    Parameters

    • enable: boolean

      sets to edit mode if true

    Returns void

updateEditorBounds

  • updateEditorBounds(): void
  • Update editor's bounding box to reflect any changes to content size

    Returns void

updateEventBindings

  • updateEventBindings(): void
  • Update/reset the event bindings for this editor and image. Mainly needed if image is a group (or sprite with children) and new children are added.

    Returns void