API Docs for:
Show:

utils.nf.scroll-area-action-context Class

Action context event object for an nf-scroll-area scroll event.

Methods

normalizeScale

(
  • scale
  • val
)
Number

Ensures the output of a scale function is something palatable by SVG.

Parameters:

  • scale d3.scale

    the scale to use to get the value

  • val Any

    the value to transform with the scale

Returns:

Number:

the output of the scale function, but if NaN, it will return 0.

Properties

data

Unknown

The optional data to send with the action

Default: null

originalEvent

Event

The original scroll event object

Default: null

outerHeight

Number

The outer height of the element

Default: 0

outerWidth

Number

The outer width of the element

Default: 0

scrollHeight

Number

The scroll height of the element.

Default: 0

scrollLeft

Number

The scroll left in pixels.

Default: 0

scrollLeftMax

Number

The calculated maximum value for scrollTop in pixels.

scrollLeftPercentage

Number

The calculated percentage, in decimals, of content scrolled.

scrollTop

Number

The scroll top in pixels.

Default: 0

scrollTopMax

Number

The calculated maximum value for scrollTop in pixels.

scrollTopPercentage

Number

The calculated percentage, in decimals, of content scrolled.

scrollWidth

Number

The scroll width of the element.

Default: 0

source

Ember.Component

The component that fired the event

Default: null