advanced-cropper
Advanced tools
Comparing version 0.6.1 to 0.6.2
import { CropperState, CropperSettings, ImageTransform } from "../types"; | ||
import { ScaleImage } from "../defaults/index"; | ||
import { ScaleImageOptions } from "../defaults/index"; | ||
declare function transformImageAlgorithm(state: CropperState, settings: CropperSettings & { | ||
scaleImage?: ScaleImage; | ||
scaleImage?: ScaleImageOptions; | ||
}, transform: ImageTransform): CropperState; | ||
export { transformImageAlgorithm }; |
import { AreaPositionRestrictions, AreaSizeRestrictions, AspectRatio, CropperSettings, CropperState, DefaultCoordinates, DefaultPosition, DefaultSize, DefaultVisibleArea, ImageRestriction, PositionRestrictions, SizeRestrictions, Size } from "../types"; | ||
import { autoZoom } from "./postProcess/autoZoom/index"; | ||
type StencilSize<Settings = CropperSettings> = Size | ((state: CropperState, props: Settings) => Size); | ||
type ScaleImage = { | ||
type ScaleImageOptions = { | ||
enabled?: boolean; | ||
@@ -18,3 +18,3 @@ adjustStencil?: boolean; | ||
stencilSize?: StencilSize<DefaultSettings>; | ||
scaleImage?: ScaleImage; | ||
scaleImage?: ScaleImageOptions; | ||
imageRestriction?: ImageRestriction; | ||
@@ -35,3 +35,3 @@ aspectRatio?: AspectRatio | ((state: CropperState, setting: CropperSettings) => AspectRatio); | ||
defaultVisibleArea?: DefaultVisibleArea<DefaultSettings>; | ||
scaleImage?: ScaleImage; | ||
scaleImage?: ScaleImageOptions; | ||
stencilSize?: StencilSize<DefaultSettings>; | ||
@@ -95,3 +95,3 @@ imageRestriction?: ImageRestriction; | ||
declare const defaultPostprocess: typeof autoZoom; | ||
export { StencilSize, ScaleImage, ExtendedCropperSettings, withDefaults, defaultSettings, defaultPostprocess }; | ||
export { StencilSize, ScaleImageOptions, ExtendedCropperSettings, withDefaults, defaultSettings, defaultPostprocess }; | ||
export * from "./helpers"; | ||
@@ -98,0 +98,0 @@ export * from "./defaultAreaPositionRestrictions"; |
import { CropperSettings, CropperState, PostprocessAction } from "../../../types"; | ||
import { ScaleImage, StencilSize } from "../../index"; | ||
import { ScaleImageOptions, StencilSize } from "../../index"; | ||
interface AutoZoomCropperSettings extends CropperSettings { | ||
autoZoom?: boolean; | ||
stencilSize?: StencilSize; | ||
scaleImage?: ScaleImage; | ||
scaleImage?: ScaleImageOptions; | ||
} | ||
declare function autoZoom(state: CropperState, settings: AutoZoomCropperSettings, action?: PostprocessAction): CropperState; | ||
export { autoZoom }; |
{ | ||
"name": "advanced-cropper", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "The core of the advanced cropper libraries family", | ||
@@ -5,0 +5,0 @@ "author": "Norserium", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169522