@maplibre/native-ffi
    Preparing search index...

    Interface StyleImageOptions

    Options for runtime style images.

    See mln_style_image_options in the C API reference.

    interface StyleImageOptions {
        content?: ImageContent;
        pixelRatio?: number;
        sdf?: boolean;
        stretchX?: readonly ImageStretch[];
        stretchY?: readonly ImageStretch[];
        textFitHeight?: StyleImageTextFit;
        textFitWidth?: StyleImageTextFit;
    }
    Index
    content?: ImageContent

    Content box used when icon-text-fit applies.

    pixelRatio?: number

    Sprite pixel ratio. Defaults to 1.

    sdf?: boolean

    Whether the image is a signed distance field icon. Defaults to false.

    stretchX?: readonly ImageStretch[]

    Horizontally stretchable intervals. Borrowed for the call and copied before return. May be null only when stretch_x_count is 0.

    stretchY?: readonly ImageStretch[]

    Vertically stretchable intervals. Borrowed for the call and copied before return. May be null only when stretch_y_count is 0.

    textFitHeight?: StyleImageTextFit

    One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.

    textFitWidth?: StyleImageTextFit

    One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.