type
UploadImageEdit
Public authoring and runtime contracts live in core. These aliases keep the root package as the ergonomic application-facing entry point.
Properties
| Property | Type | Description |
|---|---|---|
FocalX | float64 | Horizontal focal coordinate from 0 through 100. |
FocalY | float64 | Vertical focal coordinate from 0 through 100. |
CropX | float64 | Crop rectangle horizontal origin as a source-image percentage. |
CropY | float64 | Crop rectangle vertical origin as a source-image percentage. |
CropWidth | float64 | Crop width; zero with CropHeight clears the crop. |
CropHeight | float64 | Crop height; a positive rectangle must remain within the source. |
How it works
Coordinates are percentages of the oriented source image, not a generated rendition.