Global

Members

<private> ArrayBuffer

UNITS

UNITS Structure: 0: ["None", "U"], 1: ["Time", "sec"], 2: ["Delay", "sec"], 3: ["Frequency", "Hz"], 4: ["Time code format", ""], 5: ["Distance", "m"], 6: ["Speed", "m/s"], 7: ["Acceleration", "m/sec^2"], 8: ["Jerk", "m/sec^3"], 9: ["Doppler", "Hz"], 10: ["Doppler rate", "Hz/sec"], 11: ["Energy", "J"], 12: ["Power", "W"], 13: ["Mass", "g"], 14: ["Volume", "l"], 15: ["Angular power density", "W/ster"], 16: ["Integrated power density", "W/rad"], 17: ["Spatial power density", "W/m^2"], 18: ["Integrated power density", "W/m"], 19: ["Spectral power density", "W/MHz"], 20: ["Amplitude", "U"], 21: ["Real", "U"], 22: ["Imaginary", "U"], 23: ["Phase", "rad"], 24: ["Phase", "deg"], 25: ["Phase", "cycles"], 26: ["10Log", "U"], 27: ["20Log", "U"], 28: ["Magnitude", "U"], 29: ["Unknown", "U"], 30: ["Unknown", "U"], 31: ["General dimensionless", ""], 32: ["Counts", ""], 33: ["Angle", "rad"], 34: ["Angle", "deg"], 35: ["Relative power", "dB"], 36: ["Relative power", "dBm"], 37: ["Relative power", "dBW"], 38: ["Solid angle", "ster"], 40: ["Distance", "ft"], 41: ["Distance", "nmi"], 42: ["Speed", "ft/sec"], 43: ["Speed", "nmi/sec"], 44: ["Speed", "knots=nmi/hr"], 45: ["Acceleration", "ft/sec^2"], 46: ["Acceleration", "nmi/sec^2"], 47: ["Acceleration", "knots/sec"], 48: ["Acceleration", "G"], 49: ["Jerk", "G/sec"], 50: ["Rotation", "rps"], 51: ["Rotation", "rpm"], 52: ["Angular velocity", "rad/sec"], 53: ["Angular velocity", "deg/sec"], 54: ["Angular acceleration", "rad/sec^2"], 55: ["Angular acceleration", "deg/sec^2"], 60: ["Latitude", "deg"], 61: ["Longitude", "deg"], 62: ["Altitude", "ft"], 63: ["Altitude", "m"]

Methods

<private> _menu_callback(Mx, menu, event)

Parameters:
Name Type Description
Mx
menu
event

<private> _menu_dismiss(Mx, menu)

Parameters:
Name Type Description
Mx
menu

<private> _menu_redraw(Mx, menu)

Parameters:
Name Type Description
Mx
menu

<private> _menu_takeaction(Mx, menu)

Parameters:
Name Type Description
Mx
menu

<private> bound(a, b, c)

Parameters:
Name Type Description
a
b
c

<private> clipt(denom, num, o)

Parameters:
Name Type Description
denom
num
o

createCI()

initializes and renders canvas input textbox on the slider

<private> display_warpbox(Mx)

Parameters:
Name Type Description
Mx

<private> draw_line(ctx, x1, y1, x2, y2, style, color, width)

Method which draws a line in a graphics context. In the graphics context provided, draws a line. Mimics XLib's XDrawLines method in at least the basic functionality.

Parameters:
Name Type Description
ctx
x1
y1
x2
y2
style
color
width

<private> draw_poly(ctx, pix, color, width)

Method which draws a polygon in a graphics context. In the graphics context provided, draws a polygon. Mimics XLib's XDrawLines method in at least the basic functionality.

Parameters:
Name Type Description
ctx

The graphics context to draw in

pix

Defined as [{"x": xval, y: "y": yval}, {"x": xval, "y":yval}...]. xval and yval represent their respective coordinate values in the tuples number of points in the structure can be retrieved via pix.length.

color

The color of the rectangle

width

The line width to set.

<private> draw_rectangle(ctx, x, y, width, height, color, lineWidth)

Method which draws a rectangle (hollowed) in a graphics context. In the graphics context provided, draws a hollow rectangle. Mimics XLib's XDrawRectangle method in at least the basic functionality.

Parameters:
Name Type Description
ctx

The graphics context to draw in

x

The x coordinate

y

The y coordinate

width

The width of the rectangle

height

The height of the rectangle

color

The color of the rectangle

lineWidth

The line width to set.

<private> fill_poly(ctx, pix, lineColor, fillColor, lineWidth)

Method which draws a filled polygon in a graphics context. In the graphics context provided draws a polygon, then fills it. Mimics XLib's XFillPolygon method in at least the basic functionality. Some differences between this and Xlib's method are: -no way to specify convex/non-convex -no way to specify CoordModeOrigin -no need to specify the number of points to draw (plots all points in pix)

Parameters:
Name Type Description
ctx

The graphics context to draw in

pix

Defined as [{"x": xval, y: "y": yval}, {"x": xval, "y":yval}...]. xval and yval represent their respective coordinate values in the tuples number of points in the structure can be retrieved via pix.length.

lineColor

The line color of the polygon

fillColor

The fill color of the polygon

lineWidth

The line width to set

<private> fill_rectangle(ctx, x, y, width, height, fillColor, strokeColor, lineWidth)

Method which draws a rectangle (filled) in a graphics context. In the graphics context provided, draws a filled rectangle. Mimics XLib's XFillRectangle method in at least the basic functionality.

Parameters:
Name Type Description
ctx

The graphics context to draw in

x

The x coordinate

y

The y coordinate

width

The width of the rectangle

height

The height of the rectangle

fillColor

The fill color of the rectangle

strokeColor

The line color of the rectangle

lineWidth

The line width to set.

<private> isLeft(p_x, p_y, e_x1, e_y1, e_x2, e_y2)

Test if a point is Left|On|Right of an infinite 2D line.

Parameters:
Name Type Description
p_x

Point's x-coordinate

p_y

Point's y-coordinate

e_x1

Lines's x1-coordinate

e_y1

Lines's y1-coordinate

e_x2

Lines's x2-coordinate

e_y2

Lines's y2-coordinate

<private> lines()

Internal method that draws the individual lines. Will be overwritten in VML fallback mode below.

<private> log10(val)

Parameters:
Name Type Description
val

<private> MX(element)

Defines 2 canvas layers, canvas and wid_canvas

Parameters:
Name Type Description
element

<private> opacity()

Internal method that adjusts the opacity of a single line. Will be overwritten in VML fallback mode below.

<private> pad2(number)

Parameters:
Name Type Description
number

<private> pc2px(perc)

Parameters:
Name Type Description
perc

redraw(x:, y:, value:, max:, min:, position:)

function that redraws/updates the slider

Parameters:
Name Type Description
x:

x-position of top left corner of slider

y:

y-position of top right corner of slider

value:

value that the slider is on

max:

max value of the slider

min:

min value of the slider

position:

position, in decimal, of the thumb on slider

<private> spin()

Adds the spinner to the given target element. If this instance is already spinning, it is automatically removed from its previous target b calling stop() internally.

<private> start_poly(ctx, pix, width)

Helper method which starts drawing a polygon in a graphics context. In the graphics context provided, begins a path at the first point in pix, then draws lines from each point in pix to the next. It also sets the width of the line.

Parameters:
Name Type Description
ctx

The graphics context to draw in

pix

Defined as [{"x": xval, y: "y": yval}, {"x": xval, "y":yval}...]. xval and yval represent their respective coordinate values in the tuples number of points in the structure can be retrieved via pix.length.

width

The line width to set.

<private> stop()

Stops and removes the Spinner.

<private> to_rgb(red, green, blue)

Parameters:
Name Type Description
red
green
blue

<private> trimlabel(lbl, inside)

Parameters:
Name Type Description
lbl
inside

<private> update_winding_number(wn, p_x, p_y, e_x1, e_y1, e_x2, e_y2)

Parameters:
Name Type Description
wn
p_x
p_y
e_x1
e_y1
e_x2
e_y2

<private> WARPBOX()

DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on 2017-09-20T17:27:45-04:00 using the DocStrap template.