Noodle Help Site

new People(myParent) → {People}

Org chart and other People tools
Parameters:
Name Type Description
myParent Noodle
Returns:
Type
People

Methods

filter(tree, map)

Parameters:
Name Type Description
tree Array
map Array

getDiv() → {HTMLDivElement}

Returns:
Type
HTMLDivElement

getZoom(d) → {Number|String}

Parameters:
Name Type Description
d HTMLElement
Returns:
A Number or "NaN"
Type
Number | String

init()

initHelper(x, t, a)

this.init callback function
Parameters:
Name Type Description
x Document | Null
t String
a Array

line(fromh, toh, color, color2)

Parameters:
Name Type Description
fromh String | Number an id handle
toh String | Number an id handle
color String Color value
color2 String Color value

lineHelper(ctx, color, width, left, cw, ch)

Parameters:
Name Type Description
ctx RenderingContext drawing context of canvas
color String Color value
width Number
left Boolean
cw String canvas width in pixels
ch String canvas height in pixels

lineHelper2(ctx, color, width, cw, ch)

Parameters:
Name Type Description
ctx RenderingContext drawing context of canvas
color String Color value
width Number
cw String canvas width in pixels
ch String canvas height in pixels

on_resize()

Parameters:
Name Type Description
s String

searchH(tree, s) → {Boolean}

Parameters:
Name Type Description
tree Array
s String
Returns:
Type
Boolean

setHeight(d, w)

Parameters:
Name Type Description
d HTMLDivElement
w Window

showDonut(w, tree, d)

Parameters:
Name Type Description
w *
tree *
d *

showMyLines(w, tree, color, color2)

Parameters:
Name Type Description
w Window
tree Array
color String Color value
color2 String Color value

showMyOrg(w, tree, d, depth)

Parameters:
Name Type Description
w Window
tree Array
d HTMLDivElement
depth Number

showOrg(w, tree, d)

Parameters:
Name Type Description
w *
tree *
d *

showSquare(w, tree, d)

Parameters:
Name Type Description
w *
tree *
d *

zoom(i)

Parameters:
Name Type Description
i Number One of 0, 1, 2, 3

zoomFit(d, w) → {Number}

Parameters:
Name Type Description
d HTMLElement
w Window
Returns:
Type
Number