Noodle Help Site

Class People


Defined in: <./media/noodle.people.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
People(myParent)
Method Summary
Method Attributes Method Name and Description
 
filter(tree, map)
 
 
 
init()
 
initHelper(x, t, a)
 
line(fromh, toh, color, color2)
 
lineHelper(ctx, color, width, left, cw, ch)
 
lineHelper2(ctx, color, width, cw, ch)
 
 
search(s)
 
searchH(tree, s)
 
setHeight(d, w)
 
showDonut(w, tree, d)
 
showMyLines(w, tree, color, color2)
 
showMyOrg(w, tree, d, depth)
 
showOrg(w, tree, d)
 
showSquare(w, tree, d)
 
zoom(i)
 
zoomFit(d, w)
People(myParent)
Parameters:
{Noodle} myParent
Returns:
{People}
filter(tree, map)
Parameters:
{Array} tree
{Array} map
{HTMLDivElement} getDiv()
Returns:
{HTMLDivElement}
{Number|String} getZoom(d)
Parameters:
{HTMLElement} d
Returns:
{Number|String} A Number or "NaN"
init()
initHelper(x, t, a)
Parameters:
{Document|Null} x
{String} t
{Array} a
line(fromh, toh, color, color2)
Parameters:
{String|Number} fromh
an id handle
{String|Number} toh
an id handle
{String} color
Color value
{String} color2
Color value
lineHelper(ctx, color, width, left, cw, ch)
Parameters:
{RenderingContext} ctx
drawing context of canvas
{String} color
Color value
{Number} width
{Boolean} left
{String} cw
canvas width in pixels
{String} ch
canvas height in pixels
lineHelper2(ctx, color, width, cw, ch)
Parameters:
{RenderingContext} ctx
drawing context of canvas
{String} color
Color value
{Number} width
{String} cw
canvas width in pixels
{String} ch
canvas height in pixels
on_resize()
search(s)
Parameters:
{String} s
{Boolean} searchH(tree, s)
Parameters:
{Array} tree
{String} s
Returns:
{Boolean}
setHeight(d, w)
Parameters:
{HTMLDivElement} d
{Window} w
showDonut(w, tree, d)
Parameters:
w
tree
d
showMyLines(w, tree, color, color2)
Parameters:
{Window} w
{Array} tree
{String} color
Color value
{String} color2
Color value
showMyOrg(w, tree, d, depth)
Parameters:
{Window} w
{Array} tree
{HTMLDivElement} d
{Number} depth
showOrg(w, tree, d)
Parameters:
w
tree
d
showSquare(w, tree, d)
Parameters:
w
tree
d
zoom(i)
Parameters:
{Number} i
One of 0, 1, 2, 3
{Number} zoomFit(d, w)
Parameters:
{HTMLElement} d
{Window} w
Returns:
{Number}