graduatedPointForValue method

Point graduatedPointForValue(
  1. num val, [
  2. Point? result
])

For Panel.Graduated|Graduated Panels: Returns the point that corresponds with a value, in the panel's coordinates.

If the value provided is not within the #graduatedMin and #graduatedMax, it will be constrained to within those values.

If this Panel is not a Graduated Panel, this method returns Point(NaN, NaN). @param {number} val a value between #graduatedMin and #graduatedMax @param {Point=} result an optional Point that is modified and returned @return {Point} @see #graduatedValueForPoint @since 1.7

Implementation

_i3.Point graduatedPointForValue(
  _i2.num val, [
  _i3.Point? result,
]) =>
    _i4.callMethod(
      this,
      'graduatedPointForValue',
      [
        val,
        result ?? _i5.undefined,
      ],
    );