BIM.works SDKs - v3.0.0-b.115
    Preparing search index...

    Formats values with their units as the BIM.works UI shows them

    Index

    Constructors

    Methods

    • The display postfix of a unit ("m²" for SQUARE_METRE); unknown units are returned as they are

      Parameters

      • unit: string

      Returns string

    • A value of any kind (number, string, value with unit, list) as text

      Parameters

      • item: unknown

      Returns string

    • The value with its unit, "[No value]" for null

      Parameters

      • value: string | number | null | undefined
      • Optionalunit: string

      Returns string

    • A feature's value with its unit or symbol (as a BVL label carries it) as text: a yes/no as "true" or "false", a number in a unit with its decimals and postfix, a number without one (or UNITLESS) with two decimals at most, "" for null

      Parameters

      • value: string | number | boolean | null | undefined
      • Optionalunit: string | null
      • Optionalsymbol: string | null

      Returns string