resolveVariantCurveExtendParameterToCurveExtendMode MethodStatic

Given a VariantCurveExtendParameter, isolate the particular CurveExtendMode in effect at an end.

  • Return CurveExtendMode.None if param === false.
  • Return CurveExtendMode.OnCurve if param === true.
  • Return the param if it is a single CurveExtendMode.
  • Return dereferenced array at entry endIndex if the param is an array of CurveExtendMode.

resolveVariantCurveExtendParameterToCurveExtendMode(param: VariantCurveExtendParameter, endIndex: "0" | "1"): CurveExtendMode

Parameter Type Description
param VariantCurveExtendParameter  
endIndex "0" | "1"  

Returns - CurveExtendMode

Defined in

Last Updated: 17 December, 2024