Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ImageManipulation

Index

Constructors

constructor

Properties

Private activeCropVariantTrigger

activeCropVariantTrigger: JQuery

Private aspectRatioTrigger

aspectRatioTrigger: JQuery

Private coverAreaSelector

coverAreaSelector: string = '.t3js-cropper-cover-area'

Private cropBox

cropBox: JQuery

Private cropImageContainerSelector

cropImageContainerSelector: string = '#t3js-crop-image-container'

Private cropImageSelector

cropImageSelector: string = '#t3js-crop-image'

Private cropInfo

cropInfo: JQuery

Private cropInfoSelector

cropInfoSelector: string = '.t3js-cropper-info-crop'

Private cropVariantTriggers

cropVariantTriggers: JQuery

Private cropper

cropper: Cropper

Private currentCropVariant

currentCropVariant: CropVariant

Private currentModal

currentModal: JQuery

Private data

data: any

Private defaultFocusArea

defaultFocusArea: Area = ...

Private defaultOpts

defaultOpts: Options = ...

Private dismissButton

dismissButton: JQuery

Private focusArea

focusArea: any

Private focusAreaSelector

focusAreaSelector: string = '#t3js-cropper-focus-area'

Private imageOriginalSizeFactor

imageOriginalSizeFactor: number

Private initialized

initialized: boolean = false

Private previewButton

previewButton: JQuery

Private resetButton

resetButton: JQuery

Private saveButton

saveButton: JQuery

Private trigger

trigger: JQuery

Methods

Private checkFocusAndCoverAreasCollision

  • checkFocusAndCoverAreasCollision(focusArea: Area, coverAreas: Area[]): boolean

Private convertAbsoluteToRelativeCropArea

  • convertAbsoluteToRelativeCropArea(cropArea: Area, imageData: ImageData): Area

Private convertRelativeToAbsoluteCropArea

  • convertRelativeToAbsoluteCropArea(cropArea: Area, imageData: ImageData): Area

Private cropBuiltHandler

  • cropBuiltHandler(): void

Private cropEndHandler

  • cropEndHandler(): void

Private cropMoveHandler

Private cropStartHandler

  • cropStartHandler(): void

Private destroy

  • destroy(): void

Private init

  • init(): void

Private initCoverAreas

  • initCoverAreas(container: JQuery, coverAreas: Area[]): void

Private initFocusArea

  • initFocusArea(container: JQuery): void

Private initializeCropperModal

  • initializeCropperModal(): void

initializeTrigger

  • initializeTrigger(): void

Private openPreview

  • openPreview(data: object): void

Private save

  • save(data: {}): void

Private scaleAndMoveFocusArea

  • scaleAndMoveFocusArea(focusArea: Area): void

Private setAspectRatio

  • setAspectRatio(ratio: Ratio): void

Private setCropArea

  • setCropArea(cropArea: Area): void

Private setPreviewImages

  • setPreviewImages(data: {}): void

Private show

  • show(): void

Private update

Private updateCropVariantData

  • updateCropVariantData(currentCropVariant: CropVariant): void

Private updatePreviewThumbnail

  • updatePreviewThumbnail(cropVariant: CropVariant, cropVariantTrigger: JQuery): void

Static isEmptyArea

  • isEmptyArea(area: Area): boolean

Static Private serializeCropVariants

  • serializeCropVariants(cropVariants: object): string

Static toCssPercent

  • toCssPercent(num: number): string

Static wait

  • wait(fn: () => void, ms: number): void

Generated using TypeDoc