Releases: advanced-cropper/vue-advanced-cropper
0.17.0
General
It's the most largest release recently. It changes internals dramatically and introduces the new concept: visible area. It's the abstraction that used to give the developer possibility to work with zoom and image translation in a flexible, determined, simple manner. With this abstraction library gives the possibility to programmatically zoom and translate image.
By and large this release is the big step toward to make the cropper understandable inside, to allow the developer customize its internal behavior. There is still a lot of work to do, but the initial step has taken.
New methods
This release add the following methods:
zoom(factor, center)
move(left, top)
refresh
New props
This release add the following ready to use props:
initStretcher
defaultVisibleArea
defaultBoundaries
sizeRestrictionsAlgorithm
Deprecated
This release deprecated almost all classnames
props in favor of class
, for example handlersClassnames
replaced by handlerClasses
or previewClassname
is replaced by previewClass
.
The restrictions
prop is deprecated in favor of sizeRestrictionsAlgorithm
. It's much longer than current prop, but semantically it's much correctly.
0.16.0
0.15.3
0.15.2
0.15.1
0.15.0
Add the posibility to leave the image boundaries by stencil
It implements the feature described in this issue
Change the processing the minimum width and height restrictions
Now there is no default values for props minHeight
, minWidth
, maxHeight
, maxWidth
. If they is not set setting default values depends at imageRestriction
prop.
Add emitting 'ready' event on image loading
Now ready
event is fired on an image loading
0.14.1
0.14.0
Add the possibility to resize and move background image
In this version appears the possibility to resize background image by pinch gesture and mouse wheel and move by the touch and mouse dragging.
Add the possibility to prevent resizing and moving the default stencils
It affects RectangleStencil
and CircleStencil
and sets by scalable
and movable
props.
0.13.2
0.13.1
Add the delay of setCoordinates
call
The cropper now remember the last transforms that you apply after an image was changed and before one will be loaded and apply them right after an image finally have been loaded (without flickering due the flexible approach).