Type Alias TExperimentalDashOptionsExperimental

TExperimentalDashOptions:
    | {
        __EXPERIMENTAL_DASH_GAP?: number;
        __EXPERIMENTAL_DASH_LENGTH?: number;
        __EXPERIMENTAL_DASH_MODE: "length-scaling";
    }
    | {
        __EXPERIMENTAL_DASH_MODE: "width-scaling";
        __EXPERIMENTAL_DASH_SIZE?: number;
        __EXPERIMENTAL_GAP_SIZE?: number;
    }
    | {
        __EXPERIMENTAL_DASH_METERS?: number;
        __EXPERIMENTAL_DASH_MODE: "absolute";
        __EXPERIMENTAL_GAP_METERS?: number;
    }

Dash configuration options for dashed paths. Uses discriminated union - mode determines which properties are valid.

Type declaration

  • {
        __EXPERIMENTAL_DASH_GAP?: number;
        __EXPERIMENTAL_DASH_LENGTH?: number;
        __EXPERIMENTAL_DASH_MODE: "length-scaling";
    }
    • Optional__EXPERIMENTAL_DASH_GAP?: number

      Gap length as fraction of path (0-1).

      0.1
      
    • Optional__EXPERIMENTAL_DASH_LENGTH?: number

      Dash length as fraction of path (0-1).

      0.1
      
    • __EXPERIMENTAL_DASH_MODE: "length-scaling"

      Length-scaling mode: dash/gap as fractions of path length (0-1)

  • {
        __EXPERIMENTAL_DASH_MODE: "width-scaling";
        __EXPERIMENTAL_DASH_SIZE?: number;
        __EXPERIMENTAL_GAP_SIZE?: number;
    }
    • __EXPERIMENTAL_DASH_MODE: "width-scaling"

      Width-scaling mode: dash/gap as multiples of path width (deck.gl style)

    • Optional__EXPERIMENTAL_DASH_SIZE?: number

      Dash size as multiple of path width.

      3.0
      
    • Optional__EXPERIMENTAL_GAP_SIZE?: number

      Gap size as multiple of path width.

      2.0
      
  • {
        __EXPERIMENTAL_DASH_METERS?: number;
        __EXPERIMENTAL_DASH_MODE: "absolute";
        __EXPERIMENTAL_GAP_METERS?: number;
    }
    • Optional__EXPERIMENTAL_DASH_METERS?: number

      Dash length in meters.

      1.0
      
    • __EXPERIMENTAL_DASH_MODE: "absolute"

      Absolute mode: dash/gap in meters (deterministic regardless of path length)

    • Optional__EXPERIMENTAL_GAP_METERS?: number

      Gap length in meters.

      0.5