resolveVariantCurveExtendParameterToCurveExtendMode MethodStatic
Given a VariantCurveExtendParameter
, isolate the particular CurveExtendMode in effect at an end.
- Return
CurveExtendMode.None
ifparam === false
. - Return
CurveExtendMode.OnCurve
ifparam === 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
- curve/CurveExtendMode.ts Line 37
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.