compareSymb MethodStatic
Compares two gradient symbologies. Used for ordering Gradient.Symb objects.
compareSymb(lhs: Gradient.Symb, rhs: Gradient.Symb): number
@returns 0 if lhs is equivalent to rhs, a negative number if lhs compares less than rhs, or a positive number if lhs compares greater than rhs.
| Parameter | Type | Description |
|---|---|---|
| lhs | Gradient.Symb | First gradient to compare |
| rhs | Gradient.Symb | Second gradient to compare |
Returns - number
0 if lhs is equivalent to rhs, a negative number if lhs compares less than rhs, or a positive number if lhs compares greater than rhs.
Defined in
- core/common/src/Gradient.ts Line 182
Last Updated: 03 November, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.