Cropper
See below to learn more about properties, slots, events, style variables, CSS parts, and methods.
There is no difference between the APIs of the elements, And the only difference is in the names of the events
Properties
area
number
0.75
0.75
area
false
aspectRatio
undefined
undefined
aspect-ratio
false
background
boolean
undefined
undefined
background
false
disabled
boolean
undefined
undefined
disabled
true
guides
boolean
undefined
undefined
guides
false
indicator
boolean
undefined
undefined
indicator
false
mode
'move'
'move'
mode
false
resizer
'both'
'both'
resizer
false
resizerShape
'square'
'square'
resizer-shape
false
responsive
'reset'
'reset'
responsive
false
shape
'rectangle'
'rectangle'
shape
false
src
string
undefined
undefined
src
false
transparent
boolean
undefined
undefined
transparent
false
value
undefined
undefined
value
false
view
'cover'
'cover'
view
false
zoomable
zoomable
false
zoomRatio
number
0.1
0.1
zoom-ratio
false
Slots
There are no Slots.
Events
plus-crop
false
plus-crop-end
false
plus-crop-move
false
plus-crop-start
false
plus-ready
EventEmitter<void>
false
plus-zoom
true
CSS Variables
--plus-cropper-backdrop-color
black
black
--plus-cropper-backdrop-opacity
0.5
0.5
--plus-cropper-guides-color
white
white
--plus-cropper-guides-opacity
0.5
0.5
--plus-cropper-guides-style
dashed
dashed
--plus-cropper-guides-weight
1px
1px
--plus-cropper-indicator-color
white
white
--plus-cropper-indicator-opacity
1
1
--plus-cropper-indicator-size
10px
10px
--plus-cropper-indicator-weight
2px
2px
--plus-cropper-resizer-color
white
white
--plus-cropper-resizer-offset
0px
0px
--plus-cropper-resizer-opacity
1
1
--plus-cropper-resizer-size
5px
5px
--plus-cropper-resizer-weight
1px
1px
--plus-cropper-viewport-color
white
white
--plus-cropper-viewport-opacity
1
1
--plus-cropper-viewport-style
solid
solid
--plus-cropper-viewport-weight
1px
1px
CSS Parts
There are no CSS Parts.
Methods
flipX
void
flipY
void
move
void
moveTo
void
reset
void
rotate
void
rotateTo
void
toCanvas
HTMLCanvasElement
zoom
void
zoomTo
void