API

Function coerceValue

  • Coerce value to target. Home of BJS's typeTransformer, including the critical Vector4/Matrix → Quaternion and numeric↔integer conversions. Invoked by getDataValue at the consumer boundary so block bodies stay type-clean. Returns value unchanged when no conversion is needed/possible.

    Parameters

    Returns FgValue