CropperCrosshair
The CropperCrosshair interface provides properties and methods for manipulating the layout and presentation of <cropper-crosshair> elements.
Examples
Basic
Custom color
Within CropperCanvas
Within CropperSelection
Properties
Inherits properties from its parent, CropperElement, and implements the following properties:
| Name | Type | Default | Options | Description |
|---|---|---|---|---|
| centered | boolean | false | - | Indicates whether this element is centered. |
| slottable | boolean | false | - | Indicates whether this element is slottable. |
| themeColor | string | "rgba(238, 238, 238, 0.5)" | - | Indicates the color of the crosshair. |
Slots
There are no available slots in this element.
You can enable the default slot by setting the
slottableproperty totrue:html<cropper-crosshair slottable></cropper-crosshair>