Options
All
  • Public
  • Public/Protected
  • All
Menu

ImageEdit plugin handles the following image editing features:

  • Resize image
  • Crop image
  • Rotate image
  • Flip image

Hierarchy

  • ImageEditPlugin

Implements

Index

Constructors

constructor

Properties

Protected editor

editor: IEditor = null

Protected imageEditInfo

imageEditInfo: ImageMetadataFormat = null

Protected isEditing

isEditing: boolean = false

Protected options

options: ImageEditOptions = ...

Protected wrapper

wrapper: HTMLSpanElement = null

Methods

Protected applyFormatWithContentModel

  • applyFormatWithContentModel(editor: IEditor, isCropMode: boolean, shouldSelectImage: boolean, isApiOperation?: boolean): void

canRegenerateImage

  • canRegenerateImage(image: HTMLImageElement): boolean

cleanInfo

  • cleanInfo(): void

cropImage

  • cropImage(): void

dispose

  • dispose(): void
  • The last method that editor will call to a plugin before it is disposed. Plugin can take this chance to clear the reference to editor. After this method is called, plugin should not call to any editor method since it will result in error.

    Returns void

flipImage

  • flipImage(direction: "vertical" | "horizontal"): void

getName

  • getName(): string

initialize

  • initialize(editor: IEditor): void
  • The first method that editor will call to a plugin when editor is initializing. It will pass in the editor instance, plugin should take this chance to save the editor reference so that it can call to any editor method or format API later.

    Parameters

    • editor: IEditor

      The editor object

    Returns void

isOperationAllowed

onPluginEvent

rotateImage

  • rotateImage(angleRad: number): void

startRotateAndResize

  • startRotateAndResize(editor: IEditor, image: HTMLImageElement): void

Generated using TypeDoc