Type alias HtmlAnchorScalingOptions

HtmlAnchorScalingOptions: { maxScale?: number; minScale?: number; referenceScale?: number; scaleWithCameraDistance: boolean }

Type declaration

  • Optional maxScale?: number

    Max limit cap when zooming the camera in to avoid html anchor elements getting too large.

    Default: undefined (no limit)

  • Optional minScale?: number

    Can be used to limit the calculated scale value so that a html anchor element is still readable/clickable if the camera is far zoomed out.

    Default: undefined (no limit)

  • Optional referenceScale?: number

    Basis factor for converting camera distance in Babylon.js units to pixels. Find a suitable value for your project by trial and error, whereas larger values will make the html anchor elements larger as well.

    Default: 1

  • scaleWithCameraDistance: boolean

    true: html element size is relative to camera distance, just like a "normal" 3d object false: html element size remains constant and referenceScale, minScale and maxScale will have no effect

    Default: false

Generated using TypeDoc