Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

advanced-cropper

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advanced-cropper - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

4

algorithms/transformImageAlgorithm.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc