Nutrient Web SDK
    Preparing search index...

    Type Alias AnnotationResizeStartCallback

    AnnotationResizeStartCallback: (
        event: AnnotationsResizeEvent,
    ) =>
        | {
            maintainAspectRatio?: boolean;
            maxHeight?: number;
            maxWidth?: number;
            minHeight?: number;
            minWidth?: number;
        }
        | undefined

    This callback is called whenever an annotation is about to be resized. You can use it to control resize behavior.

    Type Declaration

      • (
            event: AnnotationsResizeEvent,
        ):
            | {
                maintainAspectRatio?: boolean;
                maxHeight?: number;
                maxWidth?: number;
                minHeight?: number;
                minWidth?: number;
            }
            | undefined
      • Parameters

        Returns
            | {
                maintainAspectRatio?: boolean;
                maxHeight?: number;
                maxWidth?: number;
                minHeight?: number;
                minWidth?: number;
            }
            | 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 true to 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