API Docs for: 0.0.1
Show:

nivizNode Class

Defined in: lib/util.js:44
Module: niviz

nivizNode provides a few convenience functions regarding the Node object passed as parameter, i. e. the height/width getters and setters as well as the offset function - an equivalent to jQuery's offset() function.

Constructor

nivizNode

(
  • node
)
NivizNode

Defined in lib/util.js:44

Parameters:

Returns:

NivizNode:

Item Index

Methods

Methods

assert

(
  • condition
  • [message]
)
Boolean static

Defined in lib/util.js:298

Assert that condition holds.

Parameters:

Returns:

Boolean:

The conditions value.

Throws:

Error:

If the condition is false.

extend

(
  • obj
  • source
)
Object static

Defined in lib/util.js:137

Extends an object with 1..n other objects.

Parameters:

  • obj Object

    The object to extend.

  • source Object multiple

    The source objects used to extend the object.

Returns:

Object:

The extended object

inherits

(
  • C
  • P
)
Function static

Defined in lib/util.js:239

Let constructor C inherit from P.

Parameters:

Returns:

Function:

The extended child constructor.

isFunction

(
  • v
)
Boolean static

Defined in lib/util.js:95

Checks if variable is a function

Parameters:

Returns:

Boolean:

true if parameter is a function

log10

(
  • y
)
Number static

Defined in lib/util.js:380

Returns the base 10 logarithm of a number.

Parameters:

Returns:

pick

(
  • obj
  • keys
)
Object static

Defined in lib/util.js:339

Picks the passed-in properties from an object.

Parameters:

Returns:

Object:

A copy of obj containing only the given keys.

round

(
  • value
  • precision
)
Number static

Defined in lib/util.js:362

Rounds the passed in value with the specified precision.

Parameters:

Returns:

Number:

Rounded value

zip

(
  • UNKNOWN
)
static

Defined in lib/util.js:273

Combines two or more arrays.

Parameters: