ReferenceAnnotationResizeStartCallback
Type Alias AnnotationResizeStartCallback
Type Alias
Type Signature
type AnnotationResizeStartCallback = (
event: AnnotationsResizeEvent,
) =>
| {
maintainAspectRatio?: boolean;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
}
| undefined
event: AnnotationsResizeEvent,
) =>
| {
maintainAspectRatio?: boolean;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
}
| undefined
Type Declaration
Parameters
The event containing information regarding the resizing of the annotation
Returns
{ … } | undefined
The configuration of the resize behavior or undefined for default behavior.
- {
maintainAspectRatio?: boolean;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
}- OptionalmaintainAspectRatio?: boolean
Set to
trueto keep aspect ratio while resizing. - OptionalmaxHeight?: number
Maximum height of the annotation while resizing.
- OptionalmaxWidth?: number
Maximum width of the annotation while resizing.
- OptionalminHeight?: number
Minimum height of the annotation while resizing.
- OptionalminWidth?: number
Minimum width of the annotation while resizing.
- undefined
This callback is called whenever an annotation is about to be resized. You can use it to control resize behavior.