diff --git a/.gitignore b/.gitignore index 1f4010326..353a17950 100644 --- a/.gitignore +++ b/.gitignore @@ -2,13 +2,12 @@ /deploy /bower_components /docs -src/scripts/templates.js +/src/scripts/templates.js node_modules .DS_Store .idea -jsdoc-template/ -src/ -doc/ - +/jsdoc-template/ +/src/ +/doc/ /index.* /images/index.js diff --git a/examples/v0.2/doc/Behavior.html b/examples/v0.2/doc/Behavior.html new file mode 100644 index 000000000..a197fd684 --- /dev/null +++ b/examples/v0.2/doc/Behavior.html @@ -0,0 +1,11540 @@ + + + + + JSDoc: Class: Behavior + + + + + + + + + + + +
+ +

Class: Behavior

+ + + + + + +
+ +
+ +

+ Behavior +

+ + +
+ +
+
+ + + + + +

new Behavior()

+ + + + + +
+

This is the base class for creating behaviors. a behavior can be thought of as a model++. +it contains all code/data that's necessary for easily implementing a virtual data source and it's manipulation/analytics

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

editorTypes :Array.<string>

+ + + + +
+

list of default cell editor names

+
+ + + +
Type:
+
    +
  • + +Array.<string> + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

featureChain :object

+ + + + +
+

controller chain of command

+
+ + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

grid :Hypergrid

+ + + + + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

tableState :object

+ + + + +
+

memento for the user configured visual properties of the table

+
+ + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

_fixedColumnClicked(grid, mouse)

+ + + + + +
+

The fixed column area has been clicked, massage the details and call the real function.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

_fixedRowClicked(grid, mouse)

+ + + + + +
+

The fixed row area has been clicked, massage the details and call the real function.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

_getCellEditorAt(x, y) → {cellEditor}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The horizontal cell coordinate.

y + + +number + + + +

The vertical cell coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The cell editor for the cell at cell coordinates x,y

+
+ + + +
+
+ Type +
+
+ +cellEditor + + +
+
+ + + + + + + + + + +

_setScrollPositionX(x)

+ + + + + +
+

Set the scroll position in horizontal dimension and notify listeners.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the new x value

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

_setScrollPositionY(y)

+ + + + + +
+

Set the scroll position in vertical dimension and notify listeners.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the new y value

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

beColumnStyle(style)

+ + + + + +
+

bind column editor appropriate css values to arg style

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
style + + +HTMLStyleElement + + + +

the style object to enhance

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

buildColumnPicker(div) → {boolean}

+ + + + + +
+

build and open the editor within the container div argument

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
div + + +HTMLDivElement + + + +

the containing div element

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

false prevents editor from opening

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

cellClicked(cell, event)

+ + + + + +
+

A specific cell was clicked; you've been notified.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

point of cell coordinates

event + + +Object + + + +

all event information

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellDoubleClicked(cell, event)

+ + + + + +
+

A specific cell was le double-clicked; you've been notified.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

point of cell coordinates

event + + +Object + + + +

all event information

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellFixedColumnPrePaintNotification(cell)

+ + + + + +
+

this function is a hook and is called just before the painting of a fixed column cell occurs

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +window.fin.rectangular.Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellFixedRowPrePaintNotification(cell)

+ + + + + +
+

this function is a hook and is called just before the painting of a fixed row cell occurs

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +window.fin.rectangular.Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellPropertiesPrePaintNotification(cell)

+ + + + + +
+

this function is a hook and is called just before the painting of a cell occurs

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +window.fin.rectangular.Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellTopLeftPrePaintNotification(cell)

+ + + + + +
+

this function is a hook and is called just before the painting of a top left cell occurs

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +window.fin.rectangular.Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

changed()

+ + + + + +
+

this function is replaced by the grid on initialization and serves as the callback

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearObjectProperties(obj, exportPropsopt)

+ + + + + +
+

utility function to empty an object of its members

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
obj + + +object + + + + + + + + + +

the object to empty

exportProps + + +boolean + + + + + + <optional>
+ + + + + +
    +
  • undefined (omitted) - delete all properties
  • +
  • falsy - delete only the export properties
  • +
  • truthy - delete all properties except the export properties
  • +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearState()

+ + + + + +
+

clear all table state

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

createCellProvider() → {CellProvider}

+ + + + + +
+

You can override this function and substitute your own cell provider.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +CellProvider + + +
+
+ + + + + + + + + + +

endDragColumnNotification()

+ + + + + +
+

a dnd column has just been dropped, we've been notified

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

enhanceDoubleClickEvent(event)

+ + + + + +
+

this function enhance the double click event just before it's broadcast to listeners

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +Object + + + +

event to enhance

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCellProperties(x, y) → {*}

+ + + + + +
+

First checks to see if something was overridden.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The value at x,y for the top left section of the hypergrid.

+
+ + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getCellProvider() → {CellProvider}

+ + + + + +
+

getter for the cell provider

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +CellProvider + + +
+
+ + + + + + + + + + +

getColumnAlignment(x) → {string}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The column index of interest.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The column alignment at column x: 'left', 'center' , or 'right'

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The total number of columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getColumnProperties(columnIndex) → {Object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +index + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The properties for a specific column. These are used if no cell properties are specified.

+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + +

getCursorAt(x, y) → {null}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

the cursor at a specific x,y coordinate

+
+ + + +
+
+ Type +
+
+ +null + + +
+
+ + + + + + + + + + +

getDefaultRowHeight() → {number}

+ + + + + +
+

The value is lazily initialized and comes from the properties mechanism for 'defaultRowHeight', which should be ~20px.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The row height in pixels.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getDefaultState() → {object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Newly created default empty tablestate.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getField(colIndex) → {string}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The field at colIndex.

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getFixedColumnCount() → {integer}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed columns.

+
+ + + +
+
+ Type +
+
+ +integer + + +
+
+ + + + + + + + + + +

getFixedColumnsMaxWidth() → {number}

+ + + + + +
+

This exists to support "floating" columns.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The total width of the fixed columns area.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedColumnsWidth() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The width of the fixed column area in the hypergrid.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedRowCount() → {integer}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed rows.

+
+ + + +
+
+ Type +
+
+ +integer + + +
+
+ + + + + + + + + + +

getFixedRowsHeight() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The height in pixels of the fixed rows area of the hypergrid.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedRowsMaxHeight() → {number}

+ + + + + +
+

This will allow 'floating' fixed rows.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The maximum height of the fixed rows area in the hypergrid.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFooterRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of footer rows, consisting entirely of 0 or more bottom totals rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getGrid(varname) → {Hypergrid}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
varname + + +type + + + +

descripton

+ + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The hypergrid to which this behavior is attached.

+
+ + + +
+
+ Type +
+
+ +Hypergrid + + +
+
+ + + + + + + + + + +

getHeader(colIndex) → {string}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The column heading at `colIndex'.

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getHeaderColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getHeaderRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of header rows. +A portion of the number returned by getFixedRowCount(). +(The remaining fixed rows are the top totals rows.)

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getHiddenColumnDescriptors() → {Array.<string>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

All the currently hidden column header labels.

+
+ + + +
+
+ Type +
+
+ +Array.<string> + + +
+
+ + + + + + + + + + +

getPrivateState() → {object}

+ + + + + +
+

getter for a Memento Object

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getRow(y) → {object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the row index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The object at y index.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of rows in the hypergrid.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRowHeight(rowNum) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowNum + + +number + + + +

row index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The height in pixels of a specific row in the hypergrid.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getValue(x, y) → {*}

+ + + + + +
+

First check to see if something was overridden.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The value at x,y for the top left section of the hypergrid.

+
+ + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+

delegate handling mouse down to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseExit(grid, event)

+ + + + + +
+

delegate handling mouse exit to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

hideColumns(arrayOfIndexes)

+ + + + + +
+

hide columns that are specified by their indexes

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
arrayOfIndexes + + +Array + + + +

an array of column indexes to hide

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

highlightCellOnHover(isColumnHovered, isRowHovered) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
isColumnHovered + + +boolean + + + +

the column is hovered or not

isRowHovered + + +boolean + + + +

the row is hovered or not

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

true if we should highlight on hover

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

initialize(grid)

+ + + + + +
+

this is the callback for the plugin pattern of nested tags

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initializeFeatureChain(grid)

+ + + + + +
+

create the feature chain - this is the chain of responsibility pattern.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isColumnReorderable() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Can re-order columns.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

onContextMenu(grid, event)

+ + + + + +
+

delegate handling tap to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onDoubleClick(grid, event)

+ + + + + +
+

delegate handling double click to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onHoldPulse(grid, event)

+ + + + + +
+

delegate handling hold pulse to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onKeyDown(grid, event)

+ + + + + +
+

delegate handling key down to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onKeyUp(grid, event)

+ + + + + +
+

delegate handling key up to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onMouseDrag(grid, event)

+ + + + + +
+

delegate handling mouse drag to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onMouseMove(grid, event)

+ + + + + +
+

delegate handling mouse move to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onMouseUp(grid, event)

+ + + + + +
+

delegate handling mouse up to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onTap(grid, event)

+ + + + + +
+

delegate handling tap to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onWheelMoved(grid, event)

+ + + + + +
+

delegate handling wheel moved to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

resolveProperty(key) → {*}

+ + + + + +
+

fetch the value for a property key

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +string + + + +

a property name

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The value of the given property.

+
+ + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

setCellProperties(x, y, value)

+ + + + + +
+

update the data at point x, y with value

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

value + + +Object + + + +

the value to use

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setColumnDescriptors(list)

+ + + + + +
+

this is called by the column editor post closing; rebuild the column order indexes

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
list + + +Array + + + +

list of column objects from the column editor

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setCursor(grid)

+ + + + + +
+

delegate setting the cursor up the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFixedColumnCount(n)

+ + + + + +
+

set the number of fixed columns

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
n + + +number + + + +

the integer count of how many columns to be fixed

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFixedRowCount(n) → {number}

+ + + + + +
+

Set the number of fixed rows, which includes (top to bottom order):

+
    +
  1. The header rows
      +
    1. The header labels row (optional)
    2. +
    3. The filter row (optional)
    4. +
    5. The top total rows (0 or more)
    6. +
    +
  2. +
  3. The non-scrolling rows (externally called "the fixed rows")
  4. +
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
n + + +number + + + +

The number of rows.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Sum of the above or 0 if none of the above are in use.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

setGrid(grid)

+ + + + + +
+

setter for the hypergrid

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHeaderColumnCount(The)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
The + + +number + + + +

number of fixed rows.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHeaderRowCount(n)

+ + +

Set the number of header rows.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
n + + +number + + + +

The number of fixed rows to reserve as header rows. +(The remaining fixed rows are the top totals rows.)

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setNextFeature()

+ + + + + +
+

add nextFeature to me If I don't have a next node, otherwise pass it along

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +Feature + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setRenderedColumnCount(count)

+ + + + + +
+

Set the number of columns just rendered, including partially rendered columns.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
count + + +number + + + +

how many columns were just rendered

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setRenderedRowCount(count)

+ + + + + +
+

Set the number of rows just rendered, including partially rendered rows.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
count + + +number + + + +

how many rows were just rendered

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setRowHeight(rowNum, height)

+ + + + + +
+

set the pixel height of a specific row

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowNum + + +number + + + +

the row index of interest

height + + +number + + + +

pixel height

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollPositionX(x)

+ + + + + +
+

Quietly set the horizontal scroll position.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The new position in pixels.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollPositionY(y)

+ + + + + +
+

Quietly set the vertical scroll position.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

The new position in pixels.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setState(memento)

+ + + + + +
+

Restore this table to a previous state. +See the memento pattern.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
memento + + +Object + + + +

an encapsulated representation of table state

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setTotalsValue(x, y, value, areasopt)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
x + + +number + + + + + + + + + + + +

column index

y + + +number + + + + + + + + + + + +

totals row index local to the totals area

value + + + + + + + + + +
areas + + +Array.<string> + + + + + + <optional>
+ + + + + +
+ + ['top', 'bottom'] + +

may include 'top' and/or 'bottom'

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValue(x, y, value)

+ + + + + +
+

update the data at point x, y with value

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

value + + +Object + + + +

the value to use

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The data.

+
+ + + + + + + + + + + + +

shapeChanged()

+ + + + + +
+

this function is replaced by the grid on initialization and serves as the callback

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

swapColumns(src, tar)

+ + + + + +
+

swap src and tar columns

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
src + + +number + + + +

column index

tar + + +number + + + +

column index

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleColumnPicker(grid, event)

+ + + + + +
+

delegate handling double click to the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(x, keys)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The column index.

keys + + +Array.<string> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

updateFromColumnPicker(div)

+ + + + + +
+

the editor is requesting close; deal with the edits

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
div + + +HTMLDivElement + + + +

the containing div element

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

true

+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CellClick.html b/examples/v0.2/doc/CellClick.html new file mode 100644 index 000000000..e5f91d2cf --- /dev/null +++ b/examples/v0.2/doc/CellClick.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: CellClick + + + + + + + + + + + +
+ +

Class: CellClick

+ + + + + + +
+ +
+ +

+ CellClick +

+ + +
+ +
+
+ + + + + +

new CellClick()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleTap(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CellEditing.html b/examples/v0.2/doc/CellEditing.html new file mode 100644 index 000000000..97fceecc7 --- /dev/null +++ b/examples/v0.2/doc/CellEditing.html @@ -0,0 +1,605 @@ + + + + + JSDoc: Class: CellEditing + + + + + + + + + + + +
+ +

Class: CellEditing

+ + + + + + +
+ +
+ +

+ CellEditing +

+ + +
+ +
+
+ + + + + +

new CellEditing()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleDoubleClick(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleHoldPulse(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleHoldPulse(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CellEditor.html b/examples/v0.2/doc/CellEditor.html new file mode 100644 index 000000000..711606ae1 --- /dev/null +++ b/examples/v0.2/doc/CellEditor.html @@ -0,0 +1,2011 @@ + + + + + JSDoc: Class: CellEditor + + + + + + + + + + + +
+ +

Class: CellEditor

+ + + + + + +
+ +
+ +

+ CellEditor +

+ + +
+ +
+
+ + + + + +

new CellEditor()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

checkEditorPositionFlag :boolean

+ + + + +
+

if true, check that the editor is in the right location

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • false
  • +
+ + + + + + + + + +
+ + + + + + + + +

editorPoint :Point

+ + + + +
+

the point that I am editing at right now

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

grid :Hypergrid

+ + + + +
+

my instance of hypergrid

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

initialValue :type

+ + + + +
+

the value before editing

+
+ + + +
Type:
+
    +
  • + +type + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

input :Element

+ + + + +
+

my main input control

+
+ + + +
Type:
+
    +
  • + +Element + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

isEditing :boolean

+ + + + +
+

am I currently editing (i.e., between calls to beginEditAt and either stopEditing or cancelEditing)

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • false
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

_moveEditor()

+ + + + + +
+

move the editor to the current editor point

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

beginEditAt(point)

+ + + + + +
+

begin editing at location point

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
point + + +Point + + + +

the location to start editing at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

checkEditor()

+ + + + + +
+

check that the editor is in the correct location, and is showing/hidden appropriately

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getBehavior() → {Behavior}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid.behavior` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The behavior (model).

+
+ + + +
+
+ Type +
+
+ +Behavior + + +
+
+ + + + + + + + + + +

getEditorPoint() → {Point}

+ + + + + +
+

returns the point at which we are currently editing

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Point + + +
+
+ + + + + + + + + + +

getEditorValue()

+ + + + + +
+

return the current editor's value

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

gridRenderedNotification()

+ + + + + +
+

This function is a callback from the fin-hypergrid. It is called after each paint of the canvas.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

hideEditor()

+ + + + + +
+

hide the editor

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

saveEditorValue()

+ + + + + +
+

save the new value into the behavior(model)

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollValueChangedNotification()

+ + + + + +
+

scroll values have changed, we've been notified

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setCheckEditorPositionFlag()

+ + + + + +
+

turn on checkEditorPositionFlag boolean field

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setEditorPoint(point)

+ + + + + +
+

set the current editor location

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
point + + +Point + + + +

the data location of the current editor

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setEditorValue(value)

+ + + + + +
+

put value into our editor

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
value + + +object + + + +

whatever value we want to edit

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

showEditor()

+ + + + + +
+

display the editor

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

stopEditing()

+ + + + + +
+

stop editing

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

takeFocus()

+ + + + + +
+

request focus

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CellProvider.html b/examples/v0.2/doc/CellProvider.html new file mode 100644 index 000000000..d5da3a5ff --- /dev/null +++ b/examples/v0.2/doc/CellProvider.html @@ -0,0 +1,1963 @@ + + + + + JSDoc: Class: CellProvider + + + + + + + + + + + +
+ +

Class: CellProvider

+ + + + + + +
+ +
+ +

+ CellProvider +

+ + +
+ +
+
+ + + + + +

new CellProvider()

+ + + + + +
+

Instances of features are connected to one another to make a chain of responsibility for handling all the input to the hypergrid.

+

See initialize which is called by the constructor.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

defaultCellPaint(gc)

+ + +

The default cell rendering function for rendering a vanilla cell.

+ + + + +
+

Great care has been taken in crafting this function as it needs to perform extremely fast. Reads on the gc object are expensive but not quite as expensive as writes to it. We do our best to avoid writes, then avoid reads. Clipping bounds are not set here as this is also an expensive operation. Instead, we truncate overflowing text and content by filling a rectangle with background color column by column instead of cell by cell. This column by column fill happens higher up on the stack in a calling function from fin-hypergrid-renderer. Take note we do not do cell by cell border renderering as that is expensive. Instead we render many fewer gridlines after all cells are rendered.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
config.bounds.x + + +number + + + +

the x screen coordinate of my origin

config.bounds.y + + +number + + + +

the y screen coordinate of my origin

config.bounds.width + + +number + + + +

the width I'm allowed to draw within

config.bounds.height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

emptyCellRenderer(gc, x, y, width, height)

+ + + + + +
+

An empty implementation of a cell renderer, see the null object pattern.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
x + + +number + + + +

the x screen coordinate of my origin

y + + +number + + + +

the y screen coordinate of my origin

width + + +number + + + +

the width I'm allowed to draw within

height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCell(config)

+ + + + + +
+

replace this function in on your instance of cellProvider

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +object + + + +

an object with everything you might need for renderering a cell

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

cell

+
+ + + + + + + + + + + + +

getColumnHeaderCell(config)

+ + + + + +
+

replace this function in on your instance of cellProvider

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +object + + + +

an object with everything you might need for renderering a cell

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

cell

+
+ + + + + + + + + + + + +

getRowHeaderCell(config)

+ + + + + +
+

replace this function in on your instance of cellProvider

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +object + + + +

an object with everything you might need for renderering a cell

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

cell

+
+ + + + + + + + + + + + +

initialize()

+ + +

Constructor logic

+ + + + +
+

This method will be called upon instantiation of this class or of any class that extends from this class.

+
+

All initialize() methods in the inheritance chain are called, in turn, each with the same parameters that were passed to the constructor, beginning with that of the most "senior" class through that of the class of the new instance.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintSlider(gc, x, y, width, height)

+ + + + + +
+

Emerson's paint function for a slider button. currently the user cannot interact with it

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
x + + +number + + + +

the x screen coordinate of my origin

y + + +number + + + +

the y screen coordinate of my origin

width + + +number + + + +

the width I'm allowed to draw within

height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintSparkbar(gc, x, y, width, height)

+ + + + + +
+

A simple implementation of a sparkline, because it's a barchart we've changed the name ;).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
x + + +number + + + +

the x screen coordinate of my origin

y + + +number + + + +

the y screen coordinate of my origin

width + + +number + + + +

the width I'm allowed to draw within

height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintSparkline(gc, x, y, width, height)

+ + + + + +
+

A simple implementation of a sparkline. see Edward Tufte sparkline

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
x + + +number + + + +

the x screen coordinate of my origin

y + + +number + + + +

the y screen coordinate of my origin

width + + +number + + + +

the width I'm allowed to draw within

height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

treeCellRenderer(gc, x, y, width, height)

+ + + + + +
+

A simple implementation of a tree cell renderer for use mainly with the qtree.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasGraphicsContext + + + +
x + + +number + + + +

the x screen coordinate of my origin

y + + +number + + + +

the y screen coordinate of my origin

width + + +number + + + +

the width I'm allowed to draw within

height + + +number + + + +

the height I'm allowed to draw within

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CellSelection.html b/examples/v0.2/doc/CellSelection.html new file mode 100644 index 000000000..1bd3f71e6 --- /dev/null +++ b/examples/v0.2/doc/CellSelection.html @@ -0,0 +1,3478 @@ + + + + + JSDoc: Class: CellSelection + + + + + + + + + + + +
+ +

Class: CellSelection

+ + + + + + +
+ +
+ +

+ CellSelection +

+ + +
+ +
+
+ + + + + +

new CellSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

currentDrag :window.fin.rectangular.Point

+ + + + +
+

The pixel location of the mouse pointer during a drag operation.

+
+ + + +
Type:
+
    +
  • + +window.fin.rectangular.Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

lastDragCell :Object

+ + + + +
+

the cell coordinates of the where the mouse pointer is during a drag operation

+
+ + + +
Type:
+
    +
  • + +Object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

sbAutoStart :number

+ + + + +
+

a millisecond value representing the time the current autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

sbLastAuto :number

+ + + + +
+

a millisecond value representing the previous time an autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

checkDragScroll(grid, mouse)

+ + + + + +
+

this checks while were dragging if we go outside the visible bounds, if so, kick off the external autoscroll check function (above)

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

extendSelection(grid, gridCell, keys)

+ + + + + +
+

extend a selection or create one if there isnt yet

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
gridCell + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollAcceleration()

+ + + + + +
+

If we are holding down the same navigation key, accelerate the increment we scroll

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollDuration()

+ + + + + +
+

answer how long we have been auto scrolling

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWN(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWNSHIFT(grid)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleKeyDown(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDrag(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDragCellSelection(grid, mouse, keys)

+ + + + + +
+

Handle a mousedrag selection.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseUp(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUP(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUPSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveShiftSelect(grid, offsetX, offsetY)

+ + + + + +
+

Augment the most recent selection extent by (offsetX,offsetY) and scroll if necessary.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveSingleSelect(grid, offsetX, offsetY)

+ + + + + +
+

Replace the most recent selection with a single cell selection that is moved (offsetX,offsetY) from the previous selection extent.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

pingAutoScroll()

+ + + + + +
+

update the autoscroll start time if we haven't autoscrolled within the last 500ms otherwise update the current autoscroll time

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollDrag(grid)

+ + + + + +
+

this function makes sure that while we are dragging outside of the grid visible bounds, we srcroll accordingly

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setAutoScrollStartTime()

+ + + + + +
+

set the start time to right now when we initiate an auto scroll

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Choice.html b/examples/v0.2/doc/Choice.html new file mode 100644 index 000000000..ca58febe4 --- /dev/null +++ b/examples/v0.2/doc/Choice.html @@ -0,0 +1,603 @@ + + + + + JSDoc: Class: Choice + + + + + + + + + + + +
+ +

Class: Choice

+ + + + + + +
+ +
+ +

+ Choice +

+ + +
+ +
+
+ + + + + +

new Choice()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

items :Array

+ + + + +
+

the list of items to pick from

+
+ + + +
Type:
+
    +
  • + +Array + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

initializeInput(input)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
input + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setItems(items)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
items + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

showEditor()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Color.html b/examples/v0.2/doc/Color.html new file mode 100644 index 000000000..61c573a4b --- /dev/null +++ b/examples/v0.2/doc/Color.html @@ -0,0 +1,225 @@ + + + + + JSDoc: Class: Color + + + + + + + + + + + +
+ +

Class: Color

+ + + + + + +
+ +
+ +

+ Color +

+ + +
+ +
+
+ + + + + +

new Color()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnAutosizing.html b/examples/v0.2/doc/ColumnAutosizing.html new file mode 100644 index 000000000..4370a5277 --- /dev/null +++ b/examples/v0.2/doc/ColumnAutosizing.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: ColumnAutosizing + + + + + + + + + + + +
+ +

Class: ColumnAutosizing

+ + + + + + +
+ +
+ +

+ ColumnAutosizing +

+ + +
+ +
+
+ + + + + +

new ColumnAutosizing()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleDoubleClick(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnMoving.html b/examples/v0.2/doc/ColumnMoving.html new file mode 100644 index 000000000..e7e20de50 --- /dev/null +++ b/examples/v0.2/doc/ColumnMoving.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: ColumnMoving + + + + + + + + + + + +
+ +

Class: ColumnMoving

+ + + + + + +
+ +
+ +

+ ColumnMoving +

+ + +
+ +
+
+ + + + + +

new ColumnMoving()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnPicker.html b/examples/v0.2/doc/ColumnPicker.html new file mode 100644 index 000000000..ee42ca537 --- /dev/null +++ b/examples/v0.2/doc/ColumnPicker.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: ColumnPicker + + + + + + + + + + + +
+ +

Class: ColumnPicker

+ + + + + + +
+ +
+ +

+ ColumnPicker +

+ + +
+ +
+
+ + + + + +

new ColumnPicker()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleKeyUp(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnResizing.html b/examples/v0.2/doc/ColumnResizing.html new file mode 100644 index 000000000..8a72dbcd2 --- /dev/null +++ b/examples/v0.2/doc/ColumnResizing.html @@ -0,0 +1,3526 @@ + + + + + JSDoc: Class: ColumnResizing + + + + + + + + + + + +
+ +

Class: ColumnResizing

+ + + + + + +
+ +
+ +

+ ColumnResizing +

+ + +
+ +
+
+ + + + + +

new ColumnResizing()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

dragIndex :number

+ + + + +
+

the index of the column wall were currently dragging

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + +

dragIndexStartingSize :number

+ + + + +
+

the starting width/height of the row/column we are dragging

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -1
  • +
+ + + + + + + + + +
+ + + + + + + + +

dragStart :number

+ + + + +
+

the pixel location of the where the drag was initiated

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -1
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

checkForAreaResizeCursorChange(grid, event)

+ + + + + +
+

fill this in

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAreaSize(grid, index) → {number}

+ + + + + +
+

return the width/height of the row/column of interest

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getCursorName() → {string}

+ + + + + +
+

return the cursor name

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getFixedAreaCount(grid) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedAreaCount(grid) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getGridCellValue(gridCell) → {number}

+ + + + + +
+

get the grid cell x,y coordinate

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gridCell + + +window.fin.rectangular.Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getMouseValue(event) → {number}

+ + + + + +
+

get the mouse x,y coordinate

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +MouseEvent + + + +

the mouse event to query

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getOtherFixedAreaCount(grid) → {number}

+ + + + + +
+

return the fixed area rows/columns count

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getPreviousAbsoluteSize(grid, index) → {number}

+ + + + + +
+

return the recently rendered area's width/height

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getScrollValue(grid) → {number}

+ + + + + +
+

return the grids x,y scroll value

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getSize(grid, areaIndex)

+ + + + + +
+

get the width/height of a specific row/column

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
areaIndex + + +number + + + +

the row/column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDoubleClick(grid, event)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDrag(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseMove(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseUp(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isEnabled(grid) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isEnabled(grid) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -2
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isFirstFixedOtherArea(grid, event) → {boolean}

+ + + + + +
+

am I over the column/row area

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

overAreaDivider(grid, event) → {number}

+ + + + + +
+

returns the index of which divider I'm over

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

setAreaSize(grid, index, value) → {number}

+ + + + + +
+

set the width/height of the row/column at index

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

value + + +number + + + +

the width/height to set to

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnSelection.html b/examples/v0.2/doc/ColumnSelection.html new file mode 100644 index 000000000..a85321f14 --- /dev/null +++ b/examples/v0.2/doc/ColumnSelection.html @@ -0,0 +1,3490 @@ + + + + + JSDoc: Class: ColumnSelection + + + + + + + + + + + +
+ +

Class: ColumnSelection

+ + + + + + +
+ +
+ +

+ ColumnSelection +

+ + +
+ +
+
+ + + + + +

new ColumnSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

currentDrag :window.fin.rectangular.Point

+ + + + +
+

The pixel location of the mouse pointer during a drag operation.

+
+ + + +
Type:
+
    +
  • + +window.fin.rectangular.Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

lastDragCell :Object

+ + + + +
+

The cell coordinates of the where the mouse pointer is during a drag operation.

+
+ + + +
Type:
+
    +
  • + +Object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

sbAutoStart :number

+ + + + +
+

a millisecond value representing the time the current autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

sbLastAuto :number

+ + + + +
+

a millisecond value representing the previous time an autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

checkDragScroll(grid, mouse)

+ + + + + +
+

this checks while were dragging if we go outside the visible bounds, if so, kick off the external autoscroll check function (above)

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

extendSelection(grid, gridCell, keys)

+ + + + + +
+

extend a selection or create one if there isnt yet

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
gridCell + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollAcceleration()

+ + + + + +
+

If we are holding down the same navigation key, accelerate the increment we scroll

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollDuration()

+ + + + + +
+

answer how long we have been auto scrolling

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWN(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWNSHIFT(grid)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleKeyDown(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+
    +
  • @desc Handle this event down the feature chain of responsibility.
  • +
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDrag(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDragCellSelection(grid, mouse, keys)

+ + + + + +
+

Handle a mousedrag selection

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseUp(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUP(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUPSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveShiftSelect(grid, offsetX, offsetY)

+ + + + + +
+

Augment the most recent selection extent by (offsetX,offsetY) and scroll if necessary.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveSingleSelect(grid, offsetX, offsetY)

+ + + + + +
+

Replace the most recent selection with a single cell selection that is moved (offsetX,offsetY) from the previous selection extent.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

pingAutoScroll()

+ + + + + +
+

update the autoscroll start time if we haven't autoscrolled within the last 500ms otherwise update the current autoscroll time

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollDrag(grid)

+ + + + + +
+

this function makes sure that while we are dragging outside of the grid visible bounds, we srcroll accordingly

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setAutoScrollStartTime()

+ + + + + +
+

set the start time to right now when we initiate an auto scroll

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ColumnSorting.html b/examples/v0.2/doc/ColumnSorting.html new file mode 100644 index 000000000..52ee05ce4 --- /dev/null +++ b/examples/v0.2/doc/ColumnSorting.html @@ -0,0 +1,456 @@ + + + + + JSDoc: Class: ColumnSorting + + + + + + + + + + + +
+ +

Class: ColumnSorting

+ + + + + + +
+ +
+ +

+ ColumnSorting +

+ + +
+ +
+
+ + + + + +

new ColumnSorting()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleDoubleClick(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseMove(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Combo.html b/examples/v0.2/doc/Combo.html new file mode 100644 index 000000000..dae1e03f1 --- /dev/null +++ b/examples/v0.2/doc/Combo.html @@ -0,0 +1,446 @@ + + + + + JSDoc: Class: Combo + + + + + + + + + + + +
+ +

Class: Combo

+ + + + + + +
+ +
+ +

+ Combo +

+ + +
+ +
+
+ + + + + +

new Combo()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

items :Array

+ + + + +
+

the list of items to pick from

+
+ + + +
Type:
+
    +
  • + +Array + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

selectAll()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

takeFocus()

+ + + + + +
+

request focus for my input control

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/CustomFilter.html b/examples/v0.2/doc/CustomFilter.html new file mode 100644 index 000000000..f5d92481f --- /dev/null +++ b/examples/v0.2/doc/CustomFilter.html @@ -0,0 +1,221 @@ + + + + + JSDoc: Class: CustomFilter + + + + + + + + + + + +
+ +

Class: CustomFilter

+ + + + + + +
+ +
+ +

+ CustomFilter +

+ + +
+ +
+
+ + + + + +

new CustomFilter()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

fieldsProvider :fieldsProviderFunc

+ + + + + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/DataModel.html b/examples/v0.2/doc/DataModel.html new file mode 100644 index 000000000..70acef1ab --- /dev/null +++ b/examples/v0.2/doc/DataModel.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: DataModel + + + + + + + + + + + +
+ +

Class: DataModel

+ + + + + + +
+ +
+ +

+ DataModel +

+ + +
+ +
+
+ + + + + +

new DataModel()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Date.html b/examples/v0.2/doc/Date.html new file mode 100644 index 000000000..8e73e8ab0 --- /dev/null +++ b/examples/v0.2/doc/Date.html @@ -0,0 +1,225 @@ + + + + + JSDoc: Class: Date + + + + + + + + + + + +
+ +

Class: Date

+ + + + + + +
+ +
+ +

+ Date +

+ + +
+ +
+
+ + + + + +

new Date()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/DecoratorBase.html b/examples/v0.2/doc/DecoratorBase.html new file mode 100644 index 000000000..33baceb12 --- /dev/null +++ b/examples/v0.2/doc/DecoratorBase.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: DecoratorBase + + + + + + + + + + + +
+ +

Class: DecoratorBase

+ + + + + + +
+ +
+ +

+ DecoratorBase +

+ + +
+ +
+
+ + + + + +

new DecoratorBase()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Default.html b/examples/v0.2/doc/Default.html new file mode 100644 index 000000000..587d26600 --- /dev/null +++ b/examples/v0.2/doc/Default.html @@ -0,0 +1,741 @@ + + + + + JSDoc: Class: Default + + + + + + + + + + + +
+ +

Class: Default

+ + + + + + +
+ +
+ +

+ Default +

+ + +
+ +
+
+ + + + + +

new Default()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

dataUpdates :object

+ + + + + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getValue(x, x) → {object}

+ + + + + +
+

This is the most important behavior function.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the horizontal coordinate

x + + +number + + + +

the vertical coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Data point at the given coordinates.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

setValue(x, y, value)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +
value + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Feature.html b/examples/v0.2/doc/Feature.html new file mode 100644 index 000000000..c87b12be7 --- /dev/null +++ b/examples/v0.2/doc/Feature.html @@ -0,0 +1,3791 @@ + + + + + JSDoc: Class: Feature + + + + + + + + + + + +
+ +

Class: Feature

+ + + + + + +
+ +
+ +

+ Feature +

+ + +
+ +
+
+ + + + + +

new Feature()

+ + + + + +
+

instances of features are connected to one another to make a chain of responsibility for handling all the input to the hypergrid.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

currentHoverCell :Point

+ + + + +
+

the cell location where the cursor is currently

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

cursor :string

+ + + + +
+

the cursor I want to be displayed

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

detached :Feature

+ + + + +
+

a temporary holding field for my next feature when I'm in a disconnected state

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

next :Feature

+ + + + +
+

the next feature to be given a chance to handle incoming events

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

attachChain()

+ + + + + +
+

reattach my child from the detached reference

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

detachChain()

+ + + + + +
+

disconnect my child

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleContextMenu(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDoubleClick(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleHoldPulse(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleKeyDown(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleKeyUp(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDrag(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseEnter(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseExit(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseMove(grid, event)

+ + + + + +
+

handle mouse move down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseUp(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleTap(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleWheelMoved(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initializeOn(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isFirstFixedColumn(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isFirstFixedRow(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isFixedColumn(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isFixedRow(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isTopLeft(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveSingleSelect()

+ + + + + +
+

toggle the column picker

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setCursor(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setNext(nextFeature)

+ + + + + +
+

set my next field, or if it's populated delegate to the feature in my next field

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nextFeature + + +Feature + + + +

this is how we build the chain of responsibility

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Filter.html b/examples/v0.2/doc/Filter.html new file mode 100644 index 000000000..85e2177eb --- /dev/null +++ b/examples/v0.2/doc/Filter.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: Filter + + + + + + + + + + + +
+ +

Class: Filter

+ + + + + + +
+ +
+ +

+ Filter +

+ + +
+ +
+
+ + + + + +

new Filter()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Filters.html b/examples/v0.2/doc/Filters.html new file mode 100644 index 000000000..2308d8e57 --- /dev/null +++ b/examples/v0.2/doc/Filters.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: Filters + + + + + + + + + + + +
+ +

Class: Filters

+ + + + + + +
+ +
+ +

+ Filters +

+ + +
+ +
+
+ + + + + +

new Filters()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Hypergrid.html b/examples/v0.2/doc/Hypergrid.html new file mode 100644 index 000000000..741b8d4f0 --- /dev/null +++ b/examples/v0.2/doc/Hypergrid.html @@ -0,0 +1,18919 @@ + + + + + JSDoc: Class: Hypergrid + + + + + + + + + + + +
+ +

Class: Hypergrid

+ + + + + + +
+ +
+ +

+ Hypergrid +

+ + +
+ +
+
+ + + + + +

new Hypergrid(div, behaviorName, marginopt)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
div + + +string +| + +Element + + + + + + + + + + + +

CSS selector or Element

behaviorName + + +string + + + + + + + + + + + +

name of a behavior constructor from ./behaviors

margin + + +object + + + + + + <optional>
+ + + + + +
+ +

optional canvas margins

margin.top + + +string + + + + + + <optional>
+ + + + + +
+ +
margin.right + + +string + + + + + + <optional>
+ + + + + +
+ + '-200px' + +
margin.bottom + + +string + + + + + + <optional>
+ + + + + +
+ +
margin.left + + +string + + + + + + <optional>
+ + + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

behavior :object

+ + + + +
+

A null object behavior serves as a place holder.

+
+ + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

cellEditor

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cellEditor + + +fin-hypergrid-cell-editor + + + +

The current instance of fin-hypergrid-cell-editor.

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

cellEditors :object

+ + + + +
+

The cache of singleton cellEditors.

+
+ + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

dragExtent :Point

+ + + + +
+

The extent from the mousedown point during a drag operation.

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

hoverCell :Point

+ + + + +
+

The pixel location of the current hovered cell.

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

hScrollValue :number

+ + + + +
+

A float value between 0.0 - 1.0 of the horizontal scroll position.

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

isWebkit

+ + + + +
+

Cached resulan}

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

mouseDown :Point

+ + + + +
+

The pixel location of an initial mousedown click, either for editing a cell or for dragging a selection.

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

rectangular

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rectangular + + +window.fin.rectangular + + + +

Namespace for Point and Rectangle "classes" (constructors).

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

renderOverridesCache :object

+ + + + +
+

is the short term memory of what column I might be dragging around

+
+ + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

sbHScroller

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
sbHScroller + + +fin-vampire-bar + + + +

An instance of fin-vampire-bar.

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

sbPrevHScrollValue :number

+ + + + +
+

The previous value of sbHScrollValue.

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

sbPrevVScrollValue :number

+ + + + +
+

The previous value of sbVScrollVal.

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

sbVScroller

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
sbVScroller + + +fin-vampire-bar + + + +

An instance of fin-vampire-bar.

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

selectionModel

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
selectionModel + + +fin-hypergrid-selection-model + + + +

A fin-hypergrid-selection-model instance.

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

vScrollValue :number

+ + + + +
+

A float value between 0.0 - 1.0 of the vertical scroll position.

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

_activateEditor(event)

+ + + + + +
+

An edit event has occurred. Activate the editor.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The event details.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

activateEditor(x, y) → {CellEditor}

+ + + + + +
+

Activate the editor at the given coordinates.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +x + + + +

The horizontal coordinate.

y + + +y + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

(or objected extended from same) The editor object.

+
+ + + +
+
+ Type +
+
+ +CellEditor + + +
+
+ + + + + + + + + + +

addEventListener(eventName, callback)

+ + +

Add an event listener to me.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
eventName + + +string + + + +

The type of event we are interested in.

callback + + +function + + + +

The event handler.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

addGlobalProperties(properties)

+ + + + + +
+

Ammend properties for all hypergrids in this process.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
properties + + +object + + + +

A simple properties hash.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

addProperties(moreProperties)

+ + + + + +
+

Ammend properties for this hypergrid only.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
moreProperties + + +object + + + +

A simple properties hash.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

autosizeColumn(colIndex)

+ + + + + +
+

Autosize the column at colIndex for best fit.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

The column index to modify at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

beCursor(cursorName)

+ + + + + +
+

Switch the cursor for the grid.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cursorName + + +string + + + +

A well know cursor name.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +

behaviorChanged()

+ + + + + +
+

I've been notified that the behavior has changed.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

behaviorShapeChanged()

+ + + + + +
+

The dimensions of the grid data have changed. You've been notified.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

behaviorStateChanged()

+ + + + + +
+

The dimensions of the grid data have changed. You've been notified.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellClicked(event)

+ + +

A click event occured.

+ + + + +
+

Determine the cell and delegate to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +MouseEvent + + + +

The mouse event to interrogate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

checkClipboardCopy(event)

+ + +

Conditionally copy to clipboard.

+ + + + +
+

If we have focus, copy our current selection data to the system clipboard.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The copy system event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

checkColumnAutosizing()

+ + + + + +
+

The grid has just been rendered, make sure the column widths are optimal.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentColumnSelection()

+ + + + + +
+

Clear the most recent column selection.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentRowSelection()

+ + + + + +
+

Clear the most recent row selection.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentSelection()

+ + + + + +
+

Clear the most recent selection.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMouseDown()

+ + + + + +
+

Empty out the mouse down stack.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearSelections()

+ + + + + +
+

Clear all the selections.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

columnHeaderClicked(event)

+ + +

A fixed column has been clicked.

+ + + + +
+

Delegates to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The event details.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateContextMenu(event)

+ + + + + +
+

Delegate MouseExit to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +Event + + + +

The pertinent event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateDoubleClick(mouseDetails)

+ + + + + +
+

We've been doubleclicked on. Delegate through the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateHoldPulse(mouseDetails)

+ + + + + +
+

Delegate holdpulse through the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateKeyDown(event)

+ + +

Generate a function name and call it on self.

+ + + + +
+

This should also be delegated through Behavior keeping the default implementation here though.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The pertinent event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateKeyUp(event)

+ + +

Generate a function name and call it on self.

+ + + + +
+

This should also be delegated through Behavior keeping the default implementation here though.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The pertinent event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateMouseDown(mouseDetails)

+ + + + + +
+

Delegate mousedown to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateMouseDrag(mouseDetails)

+ + + + + +
+

Delegate mouseDrag to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateMouseExit(event)

+ + + + + +
+

Delegate MouseExit to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +Event + + + +

The pertinent event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateMouseMove(mouseDetails)

+ + + + + +
+

Delegate MouseMove to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateMouseUp(mouseDetails)

+ + + + + +
+

Delegate mouseup to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateTap(mouseDetails)

+ + + + + +
+

Delegate tap to the behavior (model).

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseDetails + + +mouseDetails + + + +

An enriched mouse event from fin-canvas.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

delegateWheelMoved(event)

+ + + + + +
+

Delegate the wheel moved event to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +Event + + + +

The pertinent event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

editAt(cellEditor, coordinates)

+ + +

Open the given cell-editor at the provided model coordinates.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cellEditor + + +string + + + +

The specific cell editor to use.

coordinates + + +Point + + + +

The pixel locaiton of the cell to edit at.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

editorTakeFocus()

+ + + + + +
+

Request focus for our cell editor.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireAfterCellEdit(cell, oldValue, newValue) → {Renderer}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The x,y coordinates.

oldValue + + +Object + + + +

The old value.

newValue + + +Object + + + +

The new value.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

sub-component

+
+ + + +
+
+ Type +
+
+ +Renderer + + +
+
+ + + + + + + + + + +

fireBeforeCellEdit(cell, value)

+ + + + + +
+

Synthesize and fire a fin-before-cell-edit event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The x,y coordinates.

value + + +Object + + + +

The current value.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireScrollEvent(type, oldValue, newValue)

+ + + + + +
+

Synthesize and fire a scroll event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +string + + + +

Should be either fin-scroll-x or fin-scroll-y.

oldValue + + +number + + + +

The old scroll value.

newValue + + +number + + + +

The new scroll value.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticClickEvent(cell, event)

+ + + + + +
+

Synthesize and fire a fin-cell-click event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The pixel location of the cell in which the click event occured.

event + + +MouseEvent + + + +

The system mouse event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticContextMenuEvent(event)

+ + + + + +
+

Synthesize and fire a fin-context-menu event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +keyEvent + + + +

The canvas event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticDoubleClickEvent(cell, event)

+ + + + + +
+

Synthesize and fire a fin-double-click event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The pixel location of the cell in which the click event occured.

event + + +MouseEvent + + + +

The system mouse event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticGridRenderedEvent()

+ + + + + +
+

Synthesize and fire a rendered event.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticKeydownEvent(event)

+ + + + + +
+

Synthesize and fire a fin-keydown event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +keyEvent + + + +

The canvas event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticKeyupEvent(event)

+ + + + + +
+

Synthesize and fire a fin-keyup event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +keyEvent + + + +

The canvas event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticOnCellEnterEvent(cell, event)

+ + + + + +
+

Synthesize and fire a fin-cell-enter event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The pixel location of the cell in which the click event occurred.

event + + +MouseEvent + + + +

The system mouse event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticOnCellExitEvent(cell, event)

+ + + + + +
+

Synthesize and fire a fin-cell-exit event.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The pixel location of the cell in which the click event occured.

event + + +MouseEvent + + + +

The system mouse event.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticRowSelectionChangedEvent()

+ + + + + +
+

Synthesize and fire a fin-row-selection-changed event.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fireSyntheticSetTotalsValue(x, y, value, areasopt)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
x + + +number + + + + + + + + + + + +

column index

y + + +number + + + + + + + + + + + +

totals row index local to the totals area

value + + + + + + + + + +
areas + + +Array.<string> + + + + + + <optional>
+ + + + + +
+ + ['top', 'bottom'] + +

may include 'top' and/or 'bottom'

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getBehavior() → {Behavior}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.behavior` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The behavior (model).

+
+ + + +
+
+ Type +
+
+ +Behavior + + +
+
+ + + + + + + + + + +

getBounds() → {Rectangle}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

My bounds.

+
+ + + +
+
+ Type +
+
+ +Rectangle + + +
+
+ + + + + + + + + + +

getBoundsOfCell(cell) → {Rectangle}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

The pixel location of the mouse.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The pixel based bounds rectangle given a data cell point.

+
+ + + +
+
+ Type +
+
+ +Rectangle + + +
+
+ + + + + + + + + + +

getCanvas() → {Canvas}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Our fin-canvas instance.

+
+ + + +
+
+ Type +
+
+ +Canvas + + +
+
+ + + + + + + + + + +

getCellEditorAt(x, y)

+ + +

Get the cell editor.

+ + + + +
+

Delegates to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +x + + + +

The horizontal coordinate.

y + + +y + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The cell editor at the given coordinates.

+
+ + + + + + + + + + + + +

getCellProvider() → {fin-hypergrid-cell-provider}

+ + + + + +
+

The CellProvider is accessed through Hypergrid because Hypergrid is the mediator and should have ultimate control on where it comes from. The default is to delegate through the behavior object.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +fin-hypergrid-cell-provider + + +
+
+ + + + + + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getColumnWidth(columnIndex) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

The untranslated column index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The width of the given column.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getDataBounds() → {Rectangle}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The pixel coordinates of just the center 'main" data area.

+
+ + + +
+
+ Type +
+
+ +Rectangle + + +
+
+ + + + + + + + + + +

getDragExtent() → {Point}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The extent point of the current drag selection rectangle.

+
+ + + +
+
+ Type +
+
+ +Point + + +
+
+ + + + + + + + + + +

getFixedColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedColumnsWidth() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The total width of all the fixed columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedRowCount()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed rows.

+
+ + + + + + + + + + + + +

getFixedRowsHeight() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The total fixed rows height

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getGridCellFromMousePoint(mouse)

+ + +

Answer which data cell is under a pixel value mouse point.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouse + + +mousePoint + + + +

The mouse point to interrogate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getHiDPI() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Te HiDPI ratio.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getHoverCell() → {Point}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The cell over which the cursor is hovering.

+
+ + + +
+
+ Type +
+
+ +Point + + +
+
+ + + + + + + + + + +

getHScrollValue()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The vertical scroll value.

+
+ + + + + + + + + + + + +

getMouseDown() → {object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The initial mouse position on a mouse down event for cell editing or a drag operation.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getPrivateState() → {object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The state object for remembering our state.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getRenderedData() → {Array.<object>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Objects with the values that were just rendered.

+
+ + + +
+
+ Type +
+
+ +Array.<object> + + +
+
+ + + + + + + + + + +

getRenderedHeight(rowIndex) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

Tthe row index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The height of the given (recently rendered) row.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRenderedWidth(colIndex) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

The column index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The width of the given (recently rendered) column.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRenderer() → {Renderer}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

sub-component

+
+ + + +
+
+ Type +
+
+ +Renderer + + +
+
+ + + + + + + + + + +

getRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRowHeight(rowIndex) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

The untranslated fixed column index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The height of the given row

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getSelectedRow() → {object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

An object that represents the currently selection row.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getSelectionAsTSV() → {string}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Tab separated value string from the selection and our data.

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getSelectionModel() → {SelectionModel}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.selectionModel` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The selection model.

+
+ + + +
+
+ Type +
+
+ +SelectionModel + + +
+
+ + + + + + + + + + +

getUnfilteredRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of unfiltered rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getValue(x, y, value)

+ + +

Get data value at given cell.

+ + + + +
+

Delegates to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The horizontal coordinate.

y + + +number + + + +

The vertical coordinate.

value + + +* + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getVisibleColumns() → {number}

+ + + + + +
+

Note that "viewable columns" includes any partially viewable columns.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of viewable columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleColumnsCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of columns that were just rendered

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleRows() → {number}

+ + + + + +
+

Note that "viewable rows" includes any partially viewable rows.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of viewable rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleRowsCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of rows that were just rendered

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVScrollValue() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The vertical scroll value.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

gridRenderedNotification()

+ + + + + +
+

This function is a callback from the HypergridRenderer sub-component. It is called after each paint of the canvas.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

hasFocus() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

We have focus.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

hasSelections() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

We have any selections.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

initRenderer()

+ + +

Initialize the renderer sub-component.

+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initScrollbars()

+ + + + + +
+

Initialize the scroll bars.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

insureModelColIsVisible(colIndex, offsetX) → {boolean}

+ + +

Scroll in the offsetX direction if column index colIndex is not visible.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

The column index in question.

offsetX + + +number + + + +

The direction and magnitude to scroll if we need to.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Column is visible.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

insureModelRowIsVisible(rowIndex, offsetX) → {boolean}

+ + +

Scroll in the offsetY direction if column index c is not visible.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

The column index in question.

offsetX + + +number + + + +

The direction and magnitude to scroll if we need to.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Row is visible.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isCellSelectedInColumn(row) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
row + + +number + + + +

The row index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given row is selected anywhere in the entire table.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isCellSelectedInRow(col) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
col + + +number + + + +

The column index.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given column is selected anywhere in the entire table.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isColumnHovered(x)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The horizontal cell coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

boolean} The pointer is hovering over the given column.

+
+ + + + + + + + + + + + +

isColumnVisible(columnIndex) → {boolean|boolan}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

The column index in question.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+
    +
  • +
    +

    The given column is fully visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolean + + +
    +
    +
  • + +
  • +
    +

    Visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolan + + +
    +
    +
  • +
+ + + + + + + + +

isDataRowVisible(rowIndex) → {boolean|boolan}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

The row index in question.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+
    +
  • +
    +

    The given row is fully visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolean + + +
    +
    +
  • + +
  • +
    +

    Visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolan + + +
    +
    +
  • +
+ + + + + + + + +

isDataVisible(columnIndex, rowIndex) → {boolean|boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

The column index in question.

rowIndex + + +number + + + +

The row index in question.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+
    +
  • +
    +

    The given cell is fully is visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolean + + +
    +
    +
  • + +
  • +
    +

    Data is visible.

    +
    + + + +
    +
    + Type +
    +
    + +boolean + + +
    +
    +
  • +
+ + + + + + + + +

isDraggingColumn() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The user is currently dragging a column to reorder it.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isEditing() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

We have a currently active cell editor.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isHovered(x, y) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The x cell coordinate.

y + + +number + + + +

The y cell coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The pointer is over the given cell.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isRowHovered(y) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

The vertical cell coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The pointer is hovering over the row y.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isScrollingNow() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The scrollingNow field.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isSelected(x, y) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The horizontal coordinate.

y + + +number + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Given point is selected.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

overColumnDivider(mouseEvent) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseEvent + + +MouseEvent + + + +

The event to interogate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The index of the column divider under the mouse coordinates.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

overRowDivider(mouseEvent) → {number}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mouseEvent + + +MouseEvent + + + +

The event to interogate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The index of the row divider under the mouse coordinates.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

pageDown() → {number}

+ + + + + +
+

Scroll down one full page.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

pageLeft()

+ + + + + +
+

Not yet implemented.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Not yet implemented.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

pageUp() → {number}

+ + + + + +
+

Scroll up one full page.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

paintNow()

+ + + + + +
+

Paint immediately in this microtask.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

pluginsDo(func)

+ + +

Iterate over the plugins invoking the given function with each.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
func + + +function + + + +

The function to invoke on all the plugins.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
To Do:
+
+
    +
  • We need a new plugin mechanism!
  • +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +

popMouseDown()

+ + + + + +
+

Remove the last item from the mouse down stack.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

refreshProperties(properties)

+ + + + + +
+

Utility function to push out properties if we change them.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
properties + + +object + + + +

An object of various key value pairs.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

registerCellEditor(alias, cellEditor)

+ + +

Register a cell editor.

+ + + + +
+

This is typically called from within a cell-editor's installOn method, when it is being initialized as a plugin.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
alias + + +string + + + +

The name/id of the cell editor.

cellEditor + + +fin-hypergrid-cell-editor-base + + + +

see fin-hypergrid-cell-editor-base

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

repaintCell(x, y)

+ + + + + +
+

Repaint the given cell.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +x + + + +

The horizontal coordinate.

y + + +y + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

resized()

+ + + + + +
+

This is called by the fin-canvas when a resize occurs.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

resolveCellEditor(name) → {CellEditor}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + +string + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The cell editor at alias "name" (a sub-component).

+
+ + + +
+
+ Type +
+
+ +CellEditor + + +
+
+ + + + + + + + + + +

resolveProperty(key) → {string}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
key + + +string + + + +

A look-and-feel key.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The value of a lnf property.

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

restartPaintThread()

+ + + + + +
+

Restart the global repainting check flag thread.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

restartResizeThread()

+ + + + + +
+

Restart the global resize check flag thread.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

rowHeaderClicked(event)

+ + +

A fixed row has been clicked.

+ + + + +
+

Delegates to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The event details.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollBy(offsetX, offsetY)

+ + +

Scroll horizontal and vertically by the provided offsets.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetX + + +number + + + +

Scroll in the x direction this much.

offsetY + + +number + + + +

Scroll in the y direction this much.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollHBy(offsetX)

+ + +

Scroll horizontally by the provided offset.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetX + + +number + + + +

Scroll in the x direction this much.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollVBy(offsetY)

+ + +

Scroll vertically by the provided offset.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetY + + +number + + + +

Scroll in the y direction this much.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

select(ox, oy, ex, ex)

+ + +

Select given region.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ox + + +number + + + +

origin x

oy + + +number + + + +

origin y

ex + + +number + + + +

extent x

ex + + +number + + + +

extent y

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectionChanged()

+ + + + + +
+

Synthesize and dispatch a fin-selection-changed event.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setBehavior(The)

+ + +

Set the Behavior (model) object for this grid control.

+ + + + +
+

This can be done dynamically.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
The + + +Behavior + + + +

behavior (model).

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setColumnWidth(columnIndex, columnWidth)

+ + + + + +
+

Set the width of the given column.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

The untranslated column index.

columnWidth + + +number + + + +

The width in pixels.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setDragExtent(point)

+ + +

Sets the extent point of the current drag selection operation.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
point + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFocusable()

+ + + + + +
+

Enable/disable if this component can receive the focus.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +boolean + + + +

canReceiveFocus

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHoverCell(point)

+ + + + + +
+

Set the cell under the cursor.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
point + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHScrollValue(newValue)

+ + + + + +
+

Set the horizontal scroll value.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
newValue + + +number + + + +

The new scroll value.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setRowHeight(rowIndex, rowHeight)

+ + + + + +
+

Set the height of the given row.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

The row index.

rowHeight + + +number + + + +

The width in pixels.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollingNow(isItNow)

+ + +

Set for scrollingNow field.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
isItNow + + +boolean + + + +

The type of event we are interested in.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setState(state)

+ + + + + +
+

Set the state object to return to the given user configuration.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
state + + +object + + + +

A memento object.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +

setTotalsValueNotification(x, y, value, areasopt)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
x + + +number + + + + + + + + + + + +

column index

y + + +number + + + + + + + + + + + +

totals row index local to the totals area

value + + + + + + + + + +
areas + + +Array.<string> + + + + + + <optional>
+ + + + + +
+ + ['top', 'bottom'] + +

may include 'top' and/or 'bottom'

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValue(x, y)

+ + + + + +
+

Set a data value into the behavior (model) at the given point

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

The horizontal coordinate.

y + + +number + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setVScrollbarValues()

+ + + + + +
+

Scroll values have changed, we've been notified.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setVScrollValue(newValue)

+ + + + + +
+

Set the vertical scroll value.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
newValue + + +number + + + +

The new scroll value.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

stopEditing()

+ + +

Shut down the current cell editor.

+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

stopPaintThread()

+ + + + + +
+

Stop the global repainting flag thread.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

stopResizeThread()

+ + + + + +
+

Stop the global resize check flag thread.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

synchronizeScrollingBoundries()

+ + + + + +
+

The data dimensions have changed, or our pixel boundries have changed. +Adjust the scrollbar properties as necessary.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

takeFocus()

+ + + + + +
+

Request input focus.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleHiDPI()

+ + +

Toggle HiDPI support.

+ + + + +
+

HiDPI support is now on by default.

+
+

There used to be a bug in Chrome that caused severe slow down on bit blit of large images, so this HiDPI needed to be optional.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

topLeftClicked(event)

+ + +

The top left area has been clicked on

+ + + + +
+

Delegates to the behavior.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +event + + + +

The event details.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

updateCursor()

+ + + + + +
+

Update the cursor under the hover cell.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

updateRenderedSizes()

+ + + + + +
+

Notify the GridBehavior how many rows and columns we just rendered.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

useHiDPI() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

In HiDPI mode (has an attribute as such).

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/InMemory.html b/examples/v0.2/doc/InMemory.html new file mode 100644 index 000000000..9730931d3 --- /dev/null +++ b/examples/v0.2/doc/InMemory.html @@ -0,0 +1,583 @@ + + + + + JSDoc: Class: InMemory + + + + + + + + + + + +
+ +

Class: InMemory

+ + + + + + +
+ +
+ +

+ InMemory +

+ + +
+ +
+
+ + + + + +

new InMemory()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getValue(x, x) → {object}

+ + + + + +
+

This is the most important behavior function.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

x + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Data point at the given coordinates.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

setValue(x, y, value)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +
value + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/KeyPaging.html b/examples/v0.2/doc/KeyPaging.html new file mode 100644 index 000000000..e2cd89504 --- /dev/null +++ b/examples/v0.2/doc/KeyPaging.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: KeyPaging + + + + + + + + + + + +
+ +

Class: KeyPaging

+ + + + + + +
+ +
+ +

+ KeyPaging +

+ + +
+ +
+
+ + + + + +

new KeyPaging()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleKeyDown(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Null.html b/examples/v0.2/doc/Null.html new file mode 100644 index 000000000..97c1f9a5c --- /dev/null +++ b/examples/v0.2/doc/Null.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Class: Null + + + + + + + + + + + +
+ +

Class: Null

+ + + + + + +
+ +
+ +

+ Null +

+ + +
+ +
+
+ + + + + +

new Null()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/OnHover.html b/examples/v0.2/doc/OnHover.html new file mode 100644 index 000000000..88f013ed7 --- /dev/null +++ b/examples/v0.2/doc/OnHover.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: OnHover + + + + + + + + + + + +
+ +

Class: OnHover

+ + + + + + +
+ +
+ +

+ OnHover +

+ + +
+ +
+
+ + + + + +

new OnHover()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleMouseMove(grid, event)

+ + + + + +
+

Hhandle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Renderer.html b/examples/v0.2/doc/Renderer.html new file mode 100644 index 000000000..087cb77c5 --- /dev/null +++ b/examples/v0.2/doc/Renderer.html @@ -0,0 +1,4650 @@ + + + + + JSDoc: Class: Renderer + + + + + + + + + + + +
+ +

Class: Renderer

+ + + + + + +
+ +
+ +

+ Renderer +

+ + +
+ +
+
+ + + + + +

new Renderer()

+ + + + + +
+

fin-hypergrid-renderer is the canvas enabled top level sub component that handles the renderering of the Grid.

+

It relies on two other external subprojects

+
    +
  1. fin-canvas: a wrapper to provide a simpler interface to the HTML5 canvas component
  2. +
  3. rectangular: a small npm module providing Point and Rectangle objects
  4. +
+

The fin-hypergrid-renderer is in a unique position to provide critical functionality to the fin-hypergrid in a hightly performant manner. +Because it MUST iterate over all the visible cells it can store various bits of information that can be encapsulated as a service for consumption by the fin-hypergrid component.

+

Instances of this object have basically four main functions.

+
    +
  1. render fixed row headers
  2. +
  3. render fixed col headers
  4. +
  5. render main data cells
  6. +
  7. render grid lines
  8. +
+

Same parameters as initialize, which is called by this constructor.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

_getBoundsOfCell(c, r) → {Rectangle}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
c + + +number + + + +

The horizontal coordinate.

r + + +number + + + +

The vertical coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Bounding rect of cell with the given coordinates.

+
+ + + +
+
+ Type +
+
+ +Rectangle + + +
+
+ + + + + + + + + + +

getBehavior() → {Behavior}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid.behavior` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The behavior (model).

+
+ + + +
+
+ Type +
+
+ +Behavior + + +
+
+ + + + + + + + + + +

getBoundsOfCell(cell) → {Rectangle}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Bounding rect of the given cell.

+
+ + + +
+
+ Type +
+
+ +Rectangle + + +
+
+ + + + + + + + + + +

getCanvas() → {fin-canvas}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

my fin-canvas

+
+ + + +
+
+ Type +
+
+ +fin-canvas + + +
+
+ + + + + + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getColumnFromPixelX(pixelX) → {number}

+ + + + + +
+

answer the column index under the coordinate at pixelX

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
pixelX + + +number + + + +

The horizontal coordinate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The column index under the coordinate at pixelX.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFinalVisableColumnBoundary() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The width x coordinate of the last rendered column

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getFixedRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of fixed rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getGrid() → {Hypergrid}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

grid

+
+ + + +
+
+ Type +
+
+ +Hypergrid + + +
+
+ + + + + + + + + + +

getGridCellFromMousePoint(point) → {Point}

+ + + + + +
+

Answer specific data cell coordinates given mouse coordinates in pixels.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
point + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Cell coordinates

+
+ + + +
+
+ Type +
+
+ +Point + + +
+
+ + + + + + + + + + +

getHeaderColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of header columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getHeaderRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of header rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getPageDownRow() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The row to goto for a page down.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getPageUpRow() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The row to goto for a page up.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRenderedHeight() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The rendered row height at index

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRenderedWidth() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The rendered column width at index

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The number of rows.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getScrollLeft() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Current horizontal scroll value.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getScrollTop() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Current vertical scroll value.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleColumns() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Columns we just rendered.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleColumnsCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Numer of columns we just rendered.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getVisibleRows() → {Array.<number>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Rows we just rendered.

+
+ + + +
+
+ Type +
+
+ +Array.<number> + + +
+
+ + + + + + + + + + +

getVisibleRowsCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Answer how many rows we rendered

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

initialize()

+ + +

Constructor logic

+ + + + +
+

This method will be called upon instantiation of this class or of any class that extends from this class.

+
+

All initialize() methods in the inheritance chain are called, in turn, each with the same parameters that were passed to the constructor, beginning with that of the most "senior" class through that of the class of the new instance.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isColumnVisible(colIndex) → {boolean}

+ + +

Determines if a column is visible.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index*

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given column is fully visible.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isDraggingColumn() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

User is currently dragging a column for reordering.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isLastColumnVisible() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The last col was rendered (is visible)

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isRowVisible(rowIndex) → {boolean}

+ + +

Determines visibility of a row.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowIndex + + +number + + + +

the row index

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given row is fully visible.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isSelected(x, y) → {boolean}

+ + +

Determines if a cell is selected.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x cell coordinate

y + + +number + + + +

the y cell coordinate*

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given cell is fully visible.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

overColumnDivider() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The column index whne the mouseEvent coordinates are over a column divider.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

overRowDivider() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The row index when the mouseEvent coordinates are over a row divider.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

paint(gc)

+ + +

Notify the fin-hypergrid everytime we've repainted.

+ + + + +
+

This is the entry point from fin-canvas.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintCell(gc, x, y)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
x + +
y + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintCells(gc)

+ + +

Smart render the grid.

+ + + + +
+

Paint all the cells of a grid, including all "fixed" columns and rows. +We snapshot the context to insure against its pollution. +try...catch surrounds each cell paint in case a cell editor throws an error. +The error message is error-logged to console AND displayed in cell.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

paintGridlines(gc)

+ + + + + +
+

We opted to not paint borders for each cell as that was extremely expensive. Instead we draw gridlines here. Also we record the widths and heights for later.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

renderGrid(gc)

+ + + + + +
+

This is the main forking of the renderering task.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

renderOverride(gc, override)

+ + + + + +
+

copy each overrides specified area to it's target and blank out the source area

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
override + + +OverrideObject + + + +

an object with details contain an area and a target context

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

renderOverrides(gc)

+ + + + + +
+

iterate the renderering overrides and manifest each

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

resolveProperty() → {Object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

a property value at a key, delegates to the grid

+
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/RowResizing.html b/examples/v0.2/doc/RowResizing.html new file mode 100644 index 000000000..f6cb95123 --- /dev/null +++ b/examples/v0.2/doc/RowResizing.html @@ -0,0 +1,1907 @@ + + + + + JSDoc: Class: RowResizing + + + + + + + + + + + +
+ +

Class: RowResizing

+ + + + + + +
+ +
+ +

+ RowResizing +

+ + +
+ +
+
+ + + + + +

new RowResizing()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

dragArea :number

+ + + + +
+

the index of the row/column we are dragging

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -1
  • +
+ + + + + + + + + +
+ + + + + + + + +

dragAreaStartingSize :number

+ + + + +
+

the starting width/height of the row/column we are dragging

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -1
  • +
+ + + + + + + + + +
+ + + + + + + + +

dragStart :number

+ + + + +
+

the pixel location of the where the drag was initiated

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • -1
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

getAreaSize(grid, index) → {number}

+ + + + + +
+

return the width/height of the row/column of interest

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getCursorName() → {string}

+ + + + + +
+

return the cursor name

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getGridCellValue(gridCell) → {number}

+ + + + + +
+

get the grid cell x,y coordinate

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gridCell + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getMouseValue(event) → {number}

+ + + + + +
+

get the mouse x,y coordinate

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +MouseEvent + + + +

the mouse event to query

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getOtherFixedAreaCount(grid) → {number}

+ + + + + +
+

return the fixed area rows/columns count

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getPreviousAbsoluteSize(grid, index) → {number}

+ + + + + +
+

return the recently rendered area's width/height

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getScrollValue(grid) → {number}

+ + + + + +
+

return the grids x,y scroll value

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

isFirstFixedOtherArea(grid, event) → {boolean}

+ + + + + +
+

am I over the column/row area

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

overAreaDivider(grid, event) → {number}

+ + + + + +
+

returns the index of which divider I'm over

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

setAreaSize(grid, index, value) → {number}

+ + + + + +
+

set the width/height of the row/column at index

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
index + + +number + + + +

the row/column index of interest

value + + +number + + + +

the width/height to set to

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/RowSelection.html b/examples/v0.2/doc/RowSelection.html new file mode 100644 index 000000000..0a157ddc1 --- /dev/null +++ b/examples/v0.2/doc/RowSelection.html @@ -0,0 +1,3490 @@ + + + + + JSDoc: Class: RowSelection + + + + + + + + + + + +
+ +

Class: RowSelection

+ + + + + + +
+ +
+ +

+ RowSelection +

+ + +
+ +
+
+ + + + + +

new RowSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

currentDrag :Point

+ + + + +
+

The pixel location of the mouse pointer during a drag operation.

+
+ + + +
Type:
+
    +
  • + +Point + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

lastDragCell :Object

+ + + + +
+

The cell coordinates of the where the mouse pointer is during a drag operation.

+
+ + + +
Type:
+
    +
  • + +Object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • null
  • +
+ + + + + + + + + +
+ + + + + + + + +

sbAutoStart :number

+ + + + +
+

a millisecond value representing the time the current autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

sbLastAuto :number

+ + + + +
+

a millisecond value representing the previous time an autoscroll started

+
+ + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

checkDragScroll(grid, mouse)

+ + + + + +
+

this checks while were dragging if we go outside the visible bounds, if so, kick off the external autoscroll check function (above)

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

extendSelection(grid, gridCell, keys)

+ + + + + +
+

extend a selection or create one if there isnt yet

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
gridCell + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollAcceleration()

+ + + + + +
+

If we are holding down the same navigation key, accelerate the increment we scroll

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAutoScrollDuration()

+ + + + + +
+

answer how long we have been auto scrolling

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWN(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleDOWNSHIFT(grid)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleKeyDown(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleLEFTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDown(grid, event)

+ + + + + +
+
    +
  • @desc Handle this event down the feature chain of responsibility.
  • +
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDrag(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseDragCellSelection(grid, mouse, keys)

+ + + + + +
+

Handle a mousedrag selection

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

the event details

keys + + +Array + + + +

array of the keys that are currently pressed down

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMouseUp(grid, event)

+ + + + + +
+

Handle this event down the feature chain of responsibility.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleRIGHTSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUP(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleUPSHIFT(grid, event)

+ + + + + +
+

handle this event

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveShiftSelect(grid, offsetX, offsetY)

+ + + + + +
+

Augment the most recent selection extent by (offsetX,offsetY) and scroll if necessary.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

moveSingleSelect(grid, offsetX, offsetY)

+ + + + + +
+

Replace the most recent selection with a single cell selection that is moved (offsetX,offsetY) from the previous selection extent.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
offsetX + + +number + + + +

x coordinate to start at

offsetY + + +number + + + +

y coordinate to start at

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

pingAutoScroll()

+ + + + + +
+

update the autoscroll start time if we haven't autoscrolled within the last 500ms otherwise update the current autoscroll time

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

scrollDrag(grid)

+ + + + + +
+

this function makes sure that while we are dragging outside of the grid visible bounds, we srcroll accordingly

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setAutoScrollStartTime()

+ + + + + +
+

set the start time to right now when we initiate an auto scroll

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/SelectionModel.html b/examples/v0.2/doc/SelectionModel.html new file mode 100644 index 000000000..2ddb55921 --- /dev/null +++ b/examples/v0.2/doc/SelectionModel.html @@ -0,0 +1,4732 @@ + + + + + JSDoc: Class: SelectionModel + + + + + + + + + + + +
+ +

Class: SelectionModel

+ + + + + + +
+ +
+ +

+ SelectionModel +

+ + +
+ +
+
+ + + + + +

new SelectionModel()

+ + + + + +
+

We represent selections as a list of rectangles because large areas can be represented and tested against quickly with a minimal amount of memory usage. Also we need to maintain the selection rectangles flattened counter parts so we can test for single dimension contains. This is how we know to highlight the fixed regions on the edges of the grid.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

allRowsSelected :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

columnSelectionModel :RangeSelectionModel

+ + +

The selection rectangles.

+ + + +
+

Created as a new RangeSelectionModel upon instantiation by the constructor.

+
+ + + +
Type:
+
    +
  • + +RangeSelectionModel + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

flattenedX :Array.<Rectangle>

+ + +

The selection rectangles flattened in the horizontal direction (no width).

+ + + +
+

Created as an empty array upon instantiation by the constructor.

+
+ + + +
Type:
+
    +
  • + +Array.<Rectangle> + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

flattenedY :Array.<Rectangle>

+ + +

The selection rectangles flattened in the vertical direction (no height).

+ + + +
+

Created as an empty array upon instantiation by the constructor.

+
+ + + +
Type:
+
    +
  • + +Array.<Rectangle> + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

rowSelectionModel :RangeSelectionModel

+ + +

The selection rectangles.

+ + + +
+

Created as a new RangeSelectionModel upon instantiation by the constructor.

+
+ + + +
Type:
+
    +
  • + +RangeSelectionModel + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

selections :Array.<Rectangle>

+ + +

The selection rectangles.

+ + + +
+

Created as an empty array upon instantiation by the constructor.

+
+ + + +
Type:
+
    +
  • + +Array.<Rectangle> + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

clear()

+ + + + + +
+

empty out all our state

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentColumnSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentRowSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearMostRecentSelection()

+ + + + + +
+

Remove the last selection that was created.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearRowSelection()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

deselectColumn(x1, x2)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x1 + +
x2 + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

deselectRow(y1, y2)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y1 + +
y2 + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFlattenedYs() → {Array}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array + + +
+
+ + + + + + + + + + +

getLastSelection() → {*}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getLastSelectionType() → {*}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getSelectedColumns() → {*|Array.Array.number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* +| + +Array.Array.number + + +
+
+ + + + + + + + + + +

getSelectedRows() → {*}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getSelections() → {*}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

hasColumnSelections() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

hasRowSelections() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

hasSelections() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

There are active selection(s).

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isCellSelected(x, y) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + +
y + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

isCellSelectedInColumn(x)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Selection covers a specific row.

+
+ + + + + + + + + + + + +

isCellSelectedInRow(y) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Selection covers a specific column.

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isColumnOrRowSelected() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isColumnSelected(x) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

isInCurrentSelectionRectangle(x, y) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + +
y + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

isRectangleSelected(ox, oy, ex, ey) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ox + + +number + + + +

origin x coordinate

oy + + +number + + + +

origin y coordinate

ex + + +number + + + +

extent x coordinate

ey + + +number + + + +

extent y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

isRowSelected(y) → {boolean|*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean +| + +* + + +
+
+ + + + + + + + + + +

isSelected(selections, x, y) → {boolean}

+ + +

Selection query function.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
selections + + +Array.<Rectangle> + + + +

Selection rectangles to search through.

x + + +number + + + +
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The given cell is selected (part of an active selection).

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

rectangleContains(rect, x, y) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rect + +
x + +
y + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

select(ox, oy, ex, ey)

+ + + + + +
+

Select the region described by the given coordinates.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ox + + +number + + + +

origin x coordinate

oy + + +number + + + +

origin y coordinate

ex + + +number + + + +

extent x coordinate

ey + + +number + + + +

extent y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectAllRows()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectColumn(x1, x2)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x1 + +
x2 + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectColumnsFromCells(offset)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offset + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectRow(y1, y2)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y1 + +
y2 + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectRowsFromCells(offset)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offset + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setAllRowsSelected() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

setLastSelectionType(type)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSelect(ox, oy, ex, ey)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ox + + +number + + + +

origin x coordinate

oy + + +number + + + +

origin y coordinate

ex + + +number + + + +

extent x coordinate

ey + + +number + + + +

extent y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Simple.html b/examples/v0.2/doc/Simple.html new file mode 100644 index 000000000..24ab3580a --- /dev/null +++ b/examples/v0.2/doc/Simple.html @@ -0,0 +1,1064 @@ + + + + + JSDoc: Class: Simple + + + + + + + + + + + +
+ +

Class: Simple

+ + + + + + +
+ +
+ +

+ Simple +

+ + +
+ +
+
+ + + + + +

new Simple()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

getEditorValue() → {object}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

the current editor's value

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

hideEditor()

+ + + + + +
+

hide the editor

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initialize()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initializeInput()

+ + + + + +
+

the function to override for initialization

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

originOffset()

+ + + + + +
+

how much should I offset my bounds from 0,0

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

selectAll()

+ + + + + +
+

select everything

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setBounds(rectangle)

+ + + + + +
+

set the bounds of my input control

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rectangle + + +rectangle + + + +

the bounds to move to

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setEditorValue()

+ + + + + +
+

save the new value into the behavior(model)

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

showEditor()

+ + + + + +
+

display the editor

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

takeFocus()

+ + +

Request focus for my input control.

+ + + + +
+

See GRID-95 "Scrollbar moves inward" for issue and work-around explanation.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Slider.html b/examples/v0.2/doc/Slider.html new file mode 100644 index 000000000..aac1fc3fc --- /dev/null +++ b/examples/v0.2/doc/Slider.html @@ -0,0 +1,225 @@ + + + + + JSDoc: Class: Slider + + + + + + + + + + + +
+ +

Class: Slider

+ + + + + + +
+ +
+ +

+ Slider +

+ + +
+ +
+
+ + + + + +

new Slider()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Spinner.html b/examples/v0.2/doc/Spinner.html new file mode 100644 index 000000000..4310fe85d --- /dev/null +++ b/examples/v0.2/doc/Spinner.html @@ -0,0 +1,225 @@ + + + + + JSDoc: Class: Spinner + + + + + + + + + + + +
+ +

Class: Spinner

+ + + + + + +
+ +
+ +

+ Spinner +

+ + +
+ +
+
+ + + + + +

new Spinner()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/TableDialog.html b/examples/v0.2/doc/TableDialog.html new file mode 100644 index 000000000..988e90391 --- /dev/null +++ b/examples/v0.2/doc/TableDialog.html @@ -0,0 +1,159 @@ + + + + + JSDoc: Class: TableDialog + + + + + + + + + + + +
+ +

Class: TableDialog

+ + + + + + +
+ +
+ +

+ TableDialog +

+ + +
+ +
+
+ + + + + +

new TableDialog()

+ + + + + +
+

Instances of features are connected to one another to make a chain of responsibility for handling all the input to the hypergrid.

+

See initialize which is called by the constructor.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/Textfield.html b/examples/v0.2/doc/Textfield.html new file mode 100644 index 000000000..76d11be47 --- /dev/null +++ b/examples/v0.2/doc/Textfield.html @@ -0,0 +1,292 @@ + + + + + JSDoc: Class: Textfield + + + + + + + + + + + +
+ +

Class: Textfield

+ + + + + + +
+ +
+ +

+ Textfield +

+ + +
+ +
+
+ + + + + +

new Textfield()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

alias :string

+ + + + +
+

my lookup alias

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/ThumbwheelScrolling.html b/examples/v0.2/doc/ThumbwheelScrolling.html new file mode 100644 index 000000000..97cc2e9d7 --- /dev/null +++ b/examples/v0.2/doc/ThumbwheelScrolling.html @@ -0,0 +1,307 @@ + + + + + JSDoc: Class: ThumbwheelScrolling + + + + + + + + + + + +
+ +

Class: ThumbwheelScrolling

+ + + + + + +
+ +
+ +

+ ThumbwheelScrolling +

+ + +
+ +
+
+ + + + + +

new ThumbwheelScrolling()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

handleWheelMoved(grid, event)

+ + + + + +
+

handle this event down the feature chain of responsibility

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/behaviors.JSON.html b/examples/v0.2/doc/behaviors.JSON.html new file mode 100644 index 000000000..fe24c3cf7 --- /dev/null +++ b/examples/v0.2/doc/behaviors.JSON.html @@ -0,0 +1,1556 @@ + + + + + JSDoc: Class: JSON + + + + + + + + + + + +
+ +

Class: JSON

+ + + + + + +
+ +
+ +

+ JSON +

+ + +
+ +
+
+ + + + + +

new JSON()

+ + + + + +
+
+

Same parameters as initialize, which is called by this constructor.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

enhanceDoubleClickEvent(event)

+ + + + + +
+

Enhance the double-click event just before it's broadcast to listeners.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
event + + +Point + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getBottomTotals() → {Array.<Array>}

+ + +

Get the bottom totals.

+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Array> + + +
+
+ + + + + + + + + + +

getFields() → {Array.<string>}

+ + + + + +
+

Get the field names.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<string> + + +
+
+ + + + + + + + + + +

getHeaders()

+ + + + + +
+
    +
  • @returns {string[]} The header labels.
  • +
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getTopTotals() → {Array.<Array>}

+ + +

Get the top totals.

+ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Array> + + +
+
+ + + + + + + + + + +

initialize(grid, dataRows)

+ + +

Constructor logic, called afterBehavior.initialize().

+ + + + +
+

This method will be called upon instantiation of this class or of any class that extends from this class.

+
+

All initialize() methods in the inheritance chain are called, in turn, each with the same parameters that were passed to the constructor, beginning with that of the most "senior" class through that of the class of the new instance.

+
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + +

the hypergrid

dataRows + + +Array.<object> + + + +

array of uniform data objects

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setBottomTotals(totalRows)

+ + +

Set the bottom totals.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
totalRows + + +Array.<Array> + + + +

array of rows (arrays) of totals

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setColumns(columnDefinitions)

+ + + + + +
+

Build the fields and headers from the supplied column definitions.

+
myJsonBehavior.setColumns([
+    { title: 'Stock Name', field: 'short_description' },
+    { title: 'Status', field: 'trading_phase' },
+    { title: 'Reference Price', field: 'reference_price' }
+]);
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnDefinitions + + +Array + + + +

an array of objects with fields 'title', and 'field'

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setData(objects)

+ + + + + +
+

Set the data field.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
objects + + +Array.<object> + + + +

An array of uniform objects, each being a row in the grid.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFields(fieldNames)

+ + + + + +
+

Set the fields array.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fieldNames + + +Array.<string> + + + +

The field names.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHeaders(headerLabels)

+ + + + + +
+

Set the header labels.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
headerLabels + + +Array.<string> + + + +

The header labels.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setTopTotals(totalRows)

+ + +

Set the top totals.

+ + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
totalRows + + +Array.<Array> + + + +

array of rows (arrays) of totals

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/behaviors.Local.html b/examples/v0.2/doc/behaviors.Local.html new file mode 100644 index 000000000..ea0f2396a --- /dev/null +++ b/examples/v0.2/doc/behaviors.Local.html @@ -0,0 +1,282 @@ + + + + + JSDoc: Class: Local + + + + + + + + + + + +
+ +

Class: Local

+ + + + + + +
+ +
+ +

+ Local +

+ + +
+ +
+
+ + + + + +

new Local()

+ + + + + +
+
+

Same parameters as initialize, which is called by this constructor.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+ +
+ +

+ Local +

+ + +
+ +
+
+ + + + + +

new Local()

+ + + + + +
+
+

Same parameters as initialize, which is called by this constructor.

+
+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/dataModels.JSON.html b/examples/v0.2/doc/dataModels.JSON.html new file mode 100644 index 000000000..966b16440 --- /dev/null +++ b/examples/v0.2/doc/dataModels.JSON.html @@ -0,0 +1,5125 @@ + + + + + JSDoc: Class: JSON + + + + + + + + + + + +
+ +

Class: JSON

+ + + + + + +
+ +
+ +

+ JSON +

+ + +
+ +
+
+ + + + + +

new JSON()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

applyAnalytics()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

applyState()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

buildRow(y) → {object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

cellClicked(cell, event)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + +
event + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getAvailableGroups() → {Array.<object>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<object> + + +
+
+ + + + + + + + + + +

getBottomTotals() → {Array.<Array>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Array> + + +
+
+ + + + + + + + + + +

getCellRenderer(config, x, y, untranslatedX, untranslatedY) → {object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
config + + +object + + + +
x + + +number + + + +
y + + +number + + + +
untranslatedX + + +number + + + +
untranslatedY + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getColumnProperties(colIndex) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getComputedRow(y) → {object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getFields() → {Array.<string>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<string> + + +
+
+ + + + + + + + + + +

getFilter(colIndex) → {string}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The text to filter on for this column.

+
+ + + +
+
+ Type +
+
+ +string + + +
+
+ + + + + + + + + + +

getGroups() → {Array.<object>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<object> + + +
+
+ + + + + + + + + + +

getHeaderRowValue(x, y) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +

negative values refer to bottom totals rows

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getHeaders() → {Array.<string>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<string> + + +
+
+ + + + + + + + + + +

getHiddenColumns() → {Array.<object>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<object> + + +
+
+ + + + + + + + + + +

getRow(y) → {object}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getRowCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + +

getSortImageForColumn(index, returnAsString) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
index + +
returnAsString + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getTopTotals() → {Array.<Array>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<Array> + + +
+
+ + + + + + + + + + +

getValue(x, y) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getValueByField(fieldName, y) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fieldName + + +string + + + +
y + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

getVisibleColumns() → {Array.<object>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +Array.<object> + + +
+
+ + + + + + + + + + +

hasAggregates() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

hasGroups() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

hasHierarchyColumn() → {boolean}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + + +

incrementSortState(colIndex, keys)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
keys + + +Array.<string> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

quietlySetAggregates(aggregations)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
aggregations + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

reset()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setAggregates(aggregations)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
aggregations + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setBottomTotals(totalRows)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
totalRows + + +Array.<Array> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setData(dataRows)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dataRows + + +Array.<object> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFields(fields)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fields + + +Array.<string> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setFilter(colIndex, value)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
value + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setGlobalFilter(string)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
string + + +sring + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setGroups(groups)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
groups + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setHeaderRowValue(x, y, value) → {*}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +
value + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + + + +
+
+ Type +
+
+ +* + + +
+
+ + + + + + + + + + +

setHeaders(headers)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
headers + + +Array.<string> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setTopTotals(totalRows)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
totalRows + + +Array.<Array> + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValue(x, y, value)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +
y + + +number + + + +
value + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(colIndex, keys)

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
keys + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.eot new file mode 100644 index 000000000..5d20d9163 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.svg new file mode 100644 index 000000000..3ed7be4bc --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.woff new file mode 100644 index 000000000..1205787b0 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Bold-webfont.woff differ diff --git a/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.eot new file mode 100644 index 000000000..1f639a15f Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.svg new file mode 100644 index 000000000..6a2607b9d --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.woff new file mode 100644 index 000000000..ed760c062 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-BoldItalic-webfont.woff differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.eot new file mode 100644 index 000000000..0c8a0ae06 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.svg new file mode 100644 index 000000000..e1075dcc2 --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.woff new file mode 100644 index 000000000..ff652e643 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Italic-webfont.woff differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Light-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.eot new file mode 100644 index 000000000..14868406a Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Light-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.svg new file mode 100644 index 000000000..11a472ca8 --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-Light-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.woff new file mode 100644 index 000000000..e78607481 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Light-webfont.woff differ diff --git a/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.eot new file mode 100644 index 000000000..8f445929f Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.svg new file mode 100644 index 000000000..431d7e354 --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.svg @@ -0,0 +1,1835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.woff new file mode 100644 index 000000000..43e8b9e6c Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-LightItalic-webfont.woff differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.eot b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.eot new file mode 100644 index 000000000..6bbc3cf58 Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.eot differ diff --git a/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.svg b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.svg new file mode 100644 index 000000000..25a395234 --- /dev/null +++ b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.woff b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.woff new file mode 100644 index 000000000..e231183dc Binary files /dev/null and b/examples/v0.2/doc/fonts/OpenSans-Regular-webfont.woff differ diff --git a/examples/v0.2/doc/global.html b/examples/v0.2/doc/global.html new file mode 100644 index 000000000..df44f96de --- /dev/null +++ b/examples/v0.2/doc/global.html @@ -0,0 +1,1255 @@ + + + + + JSDoc: Global + + + + + + + + + + + +
+ +

Global

+ + + + + + +
+ +
+ +

+ +

+ + +
+ +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

addDeepProperties(destination, source) → {object}

+ + +

Update deep properties with new values.

+ + + + +
+

This function is a recursive property setter which updates a deep property in a destination object with the value of a congruent property in a source object.

+
+

Terminology: A deep property is a "terminal node" (primitive value) nested at some depth (i.e., depth > 1) inside a complex object (an object containing nested objects). A congruent property is a property in another object with the same name and at the same level of nesting.

+
+

This function is simple and elegant. I recommend you study the code, which nonetheless implies all of the following:

+
    +
  • If the deep property is not found in destination, it will be created.
  • +
  • If the deep property is found in destination and is a primitive type, it will be modified (overwritten with the value from source).
  • +
  • If the deep property is found in destination but is not a primitive type (i.e., is a nested object), it will also be overwritten with the (primitive) value from source.
  • +
  • If the nested object the deep property inhabits in source is not found in destination, it will be created.
  • +
  • If the nested object the deep property inhabits in source is found in destination but is not in fact an object (i.e., it is a primitive value), it will be overwritten with a reference to that object.
  • +
  • If the primitive value is undefined, the destination property is deleted.
  • +
  • source may contain multiple properties to update.
  • +
+

That one rule is simply this: If both the source and the destination properties are objects, then recurse; else overwrite the destination property with the source property.

+
+

Caveat: This is not equivalent to a deep extend function. While both a deep extend and this function will recurse over a complex object, they are fundamentally different: A deep extend clones the nested objects as it finds them; this function merely updates them (or creates them where they don't exist).

+
+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
destination + + +object + + + +

An object to update with new or modified property values

source + + +object + + + +

A congruent object continaly (only) the new or modified property values.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Always returns destination.

+
+ + + +
+
+ Type +
+
+ +object + + +
+
+ + + + + + + + + + +

getBehavior()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid.behavior` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getComplexFilter(colIndex) → {undefined|rowFilterFunction}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

row filtering function

+
+ + + +
+
+ Type +
+
+ +undefined +| + +rowFilterFunction + + +
+
+ + + + + + + + + + +

getGrid()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getGrid()

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
Deprecated:
  • Use `.grid` property instead.
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

renderCellError(gc, message, x, y, width, height)

+ + +

Writes error message into cell.

+ + + + +
+

This funciton is guaranteed to be called as follows:

+
gc.save();
+gc.beginPath();
+gc.rect(x, y, width, height);
+gc.clip();
+renderCellError(gc, message, x, y, width, height);
+gc.restore();

Before doing anything else, this function should clear the cell by setting gc.fillStyle and calling gc.fill().

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gc + + +CanvasRenderingContext2D + + + +
message + + +string + + + +
x + + +number + + + +
y + + +number + + + +
width + + +number + + + +
height + + +number + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +

Type Definitions

+ + + +

CanvasRenderingContext2D

+ + + + + + +
Type:
+
    +
  • + +object + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + + + + +

fieldsProviderFunc() → {Array.<fieldOption>}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

see jsdoc typedef in filter-tree/js/FillerLeaf.js

+
+ + + +
+
+ Type +
+
+ +Array.<fieldOption> + + +
+
+ + + + + + + + + + +

rowFilterFunction(data) → {boolean}

+ + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +function +| + +* + + + +

Data to test (or function to call to get data to test) to see if it qualifies for the result set.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

Row qualifies for the result set (passes through filter).

+
+ + + +
+
+ Type +
+
+ +boolean + + +
+
+ + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/index.html b/examples/v0.2/doc/index.html new file mode 100644 index 000000000..45f2a38c2 --- /dev/null +++ b/examples/v0.2/doc/index.html @@ -0,0 +1,64 @@ + + + + + JSDoc: Home + + + + + + + + + + + +
+ +

Home

+ + + + + + + + +

+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_default.html b/examples/v0.2/doc/module-behaviors_default.html new file mode 100644 index 000000000..d1283a84f --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_default.html @@ -0,0 +1,252 @@ + + + + + JSDoc: Module: behaviors\default + + + + + + + + + + + +
+ +

Module: behaviors\default

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +

This is the simplest example of a behavior.

+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

getFixedColumnCount() → {number}

+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
Returns:
+ + +
+

The total number of fixed columns.

+
+ + + +
+
+ Type +
+
+ +number + + +
+
+ + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_gol.html b/examples/v0.2/doc/module-behaviors_gol.html new file mode 100644 index 000000000..e318482ec --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_gol.html @@ -0,0 +1,3041 @@ + + + + + JSDoc: Module: behaviors\gol + + + + + + + + + + + +
+ +

Module: behaviors\gol

+ + + + + + +
+ +
+ + + +
+ +
+
+ + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

buffer

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
buffer + + +Array + + + +

double buffer the data

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

columns

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columns + + +number + + + +

the number of columns

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

data

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Array + + + +

the matrix of data

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

rows

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rows + + +number + + + +

the number of rows

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +

running

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
running + + +boolean + + + +

flag if were running or not

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + +

applyPatternAt(array, c, r, pattern, dir)

+ + + + + +
+

apply the gol well known template at x,y

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
array + + +Array + + + +

an array2D gamegrid to modifiy

c + + +number + + + +

column coordinate

r + + +number + + + +

row coordinate

pattern + + +Array + + + +

a 2d matrix of a well known gol template

dir + + +number + + + +

direction to rotate the pattern

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

computeLifeAt()

+ + + + + +
+

apply the gol rules at a specific point

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

createCellProvider()

+ + + + + +
+

you can override this function and substitute your own cell provider

+

returns: fin-hypergrid-cell-provider

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnCount()

+ + + + + +
+

return the total number of columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnWidth(x)

+ + + + + +
+

return the column width at index x

+

returns: integer

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnCount()

+ + + + + +
+

return the number of fixed columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnValue(x, y)

+ + + + + +
+

return the value at x,y for the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowCount()

+ + + + + +
+

return the count of fixed rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowValue(x, y)

+ + + + + +
+

return the data value at point x,y

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getNeighborCount(x, y)

+ + + + + +
+

return the total weight around point x,y

+

returns: float

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getNextState()

+ + + + + +
+

provide the label for the toggle state

+

returns: string

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowCount()

+ + + + + +
+

return the number of rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowHeight(rowNum)

+ + + + + +
+

get height in pixels of a specific row

+

returns: integer

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rowNum + + +number + + + +

row index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getValue(x, y)

+ + + + + +
+

return the data value at coordinates x,y. this is the main "model" function that allows for virtualization

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initializeData(array2D)

+ + + + + +
+

initialize a gamegrid with empty data

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
array2D + + +Array + + + +

a 2d matrix gamegrid

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

onTap(grid, event)

+ + + + + +
+

toggle the value at position specified by the mouse point

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
event + + +Object + + + +

the event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

populate()

+ + + + + +
+

fill the gamegrid with random valued well known gol templates

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ready()

+ + + + + +
+

polymer lifecycle event

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

resetPetriDish()

+ + + + + +
+

reset the gamegrid

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValue(x, y)

+ + + + + +
+

set the data value at coordinates x,y

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

startLife()

+ + + + + +
+

start gol

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleRunning()

+ + + + + +
+

turn gol on/off

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_in-memory.html b/examples/v0.2/doc/module-behaviors_in-memory.html new file mode 100644 index 000000000..28d3b01f2 --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_in-memory.html @@ -0,0 +1,2952 @@ + + + + + JSDoc: Module: behaviors\in-memory + + + + + + + + + + + +
+ +

Module: behaviors\in-memory

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +

This is a very rough in memory data source example. fin-hypergrid-behavior-in-memory is a more traditional gridmodel where all data and its analytics, sorting, aggregation happen in the same local process.

+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

compare(array, first, last)

+ + + + + +
+

this is a compare function used by Emersons pivot sort algorithm

+

returns: integer

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
array + + +Array + + + +

descripton

first + + +number + + + +

pivot start

last + + +number + + + +

pivot end

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

createCellProvider()

+ + + + + +
+

you can override this function and substitute your own cell provider

+

returns: fin-hypergrid-cell-provider

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

createSort(type, col)

+ + + + + +
+

create a sort object per column we consider sortable

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +number + + + +

sort type, 0/1 - up/down

col + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fixedRowClicked(grid, mouse)

+ + + + + +
+

fixed row has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCellEditorAt(x, y)

+ + + + + +
+

return the cell editor for cell at x,y

+

returns: fin-hypergrid-cell-editor-base

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnCount()

+ + + + + +
+

return the total number of columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getDefaultState()

+ + + + + +
+

create a default empty tablestate

+

returns: Object

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnCount()

+ + + + + +
+

return the number of fixed columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowValue(colIndex)

+ + + + + +
+

return the column heading at colIndex

+

returns: string

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowCount()

+ + + + + +
+

return the number of rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getValue(x, y)

+ + + + + +
+

return the data value at coordinates x,y. this is the main "model" function that allows for virtualization

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

indexOf(col, row)

+ + + + + +
+

decode row,col into a straight index value; int vector indirection layer so sorting doesn't actually move items around

+

returns: integer

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
col + + +number + + + +

x coordinate

row + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initialize()

+ + + + + +
+

initialize with random data

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initOrder()

+ + + + + +
+

initialize the row sort indirection layer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

orderOf(y)

+ + + + + +
+

return the indirect sorted index of the data I'm looking for

+

returns: integer

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the natural y index

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

permute()

+ + + + + +
+

randomize a variable amount of data on a timeout

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

quicksort(array, first, last, depth)

+ + + + + +
+

emersons stable quicksort algorithm, hacked up by me

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
array + + +Array + + + +

array of items to sort

first + + +type + + + +

index to start at

last + + +type + + + +

index to end at

depth + + +type + + + +

recursion depth

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ready()

+ + + + + +
+

polymer lifecycle event

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

reorder()

+ + + + + +
+

apply the quicksort to our data

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setRandomValue()

+ + + + + +
+

randomize the value at coordinate col, row

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValue(x, y)

+ + + + + +
+

set the data value at coordinates x,y

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setValues(c)

+ + + + + +
+

set random values drivien by a config object c

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
c + + +Object + + + +

a config object

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

swap(array, x, y)

+ + + + + +
+

swap values in array at locations x, y

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
array + + +Array + + + +

array of values

x + + +number + + + +

integer index

y + + +number + + + +

integer index

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(colIndex)

+ + + + + +
+

toggle the sort at colIndex to it's next state

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_q.html b/examples/v0.2/doc/module-behaviors_q.html new file mode 100644 index 000000000..a3da57b18 --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_q.html @@ -0,0 +1,2114 @@ + + + + + JSDoc: Module: behaviors\q + + + + + + + + + + + +
+ +

Module: behaviors\q

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +

fin-hypergrid-behavior-q is a datasource based on an external Q data source. +
See kx.com +
Two example scripts are provided in the root of this project, bigtable.q and sorttable.q +
bigtable.q simulates an unsortable 100MM row table, and sorttable.q provides a true randomly generated 1MM row table sortable on any column. +
Run either of these scripts with this behavior.

+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

attributeChanged(attrName, oldVal, newVal)

+ + + + + +
+

polymer callback

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
attrName + + +string + + + +

the attribute name

oldVal + + +string + + + +

the old value

newVal + + +string + + + +

the new value

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearData()

+ + + + + +
+

empty out our page of local data, this function is used when we lose connectivity. this function is primarily used as a visual queue so the user doesn't see stale data

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

connect()

+ + + + + +
+

connect to q at newUrl

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

connectTo(newUrl)

+ + + + + +
+

connect to q at newUrl

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
newUrl + + +string + + + +

the url of the q server

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCanSort()

+ + + + + +
+

returns true if we support sorting

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnAlignment(x)

+ + + + + +
+

return the column alignment at column x

+

returns: string ['left','center','right']

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnCount()

+ + + + + +
+

return the total number of columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnCount()

+ + + + + +
+

return the number of fixed columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnValue(x, y)

+ + + + + +
+

return the value at x,y for the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowValue(x, y)

+ + + + + +
+

return the data value at point x,y in the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getHeader(colIndex)

+ + + + + +
+

return the column heading at colIndex

+

returns: string

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowCount()

+ + + + + +
+

return the number of rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getValue(x, y)

+ + + + + +
+

return the data value at coordinates x,y. this is the main "model" function that allows for virtualization

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isConnected()

+ + + + + +
+

return true if we are connected to q

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ready()

+ + + + + +
+

polymer lifecycle event

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

reconnect()

+ + + + + +
+

try reconnecting

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollPositionY(y)

+ + + + + +
+

quietly set the scroll position in the horizontal dimension

+

returns: type

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the position in pixels

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(columnIndex)

+ + + + + +
+

toggle the sort at columnIndex to it's next state

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_qtree.html b/examples/v0.2/doc/module-behaviors_qtree.html new file mode 100644 index 000000000..0320e30b9 --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_qtree.html @@ -0,0 +1,5214 @@ + + + + + JSDoc: Module: behaviors\qtree + + + + + + + + + + + +
+ +

Module: behaviors\qtree

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +

fin-hypergrid-behavior-qtree is a datasource based on an external Q data source with tree-centric analytic capilities +
See kx.com +
See steve apters hypertree project

+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

_toggleSort(colId)

+ + + + + +
+

build our local q message with sorting details and fire it off to Q

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colId + + +string + + + +

the column of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

beColumnStyle(style)

+ + + + + +
+

bind column editor appropriate css values to arg style

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
style + + +HTMLStyleElement + + + +

the style object to enhance

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

buttonBarIconClick(buttonLabel)

+ + + + + +
+

button bar icon has been clicked

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
buttonLabel + + +string + + + +

button action alias to send to hypertree process

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

cellDoubleClicked(cell, event)

+ + + + + +
+

a specific cell was double clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
cell + + +Point + + + +

point of cell coordinates

event + + +Object + + + +

all event information

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

clearData()

+ + + + + +
+

empty out our page of local data, this function is used when we lose connectivity. this function is primarily used as a visual queue so the user doesn't see stale data

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

closeEditor(div)

+ + + + + +
+

the editor is requesting close return true or false, and deal with the edits

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
div + + +HTMLDivElement + + + +

the containing div element

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

connect()

+ + + + + +
+

connect to q at newUrl

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

connectTo(newUrl)

+ + + + + +
+

connect to q at newUrl

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
newUrl + + +string + + + +

the url of the q server

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

controlCellClick(grid, mouse)

+ + + + + +
+

control cell has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

createCellProvider()

+ + + + + +
+

you can override this function and substitute your own cell provider

+

returns: fin-hypergrid-cell-provider

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

endDragColumnNotification()

+ + + + + +
+

a dnd column has just been dropped, we've been notified

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fixedColumnClicked(grid, mouse)

+ + + + + +
+

fixed column has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

fixedRowClicked(grid, mouse)

+ + + + + +
+

fixed row has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCanSort()

+ + + + + +
+

returns true if we support sorting

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCellEditorAt(x, y)

+ + + + + +
+

return the cell editor for coordinate x,y

+

returns: fin-hypergrid-cell-editor-base

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getClickIndicator(colId)

+ + + + + +
+

return the click indicator image for a colId

+

returns: HTMLImageElement

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colId + + +string + + + +

the column id of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnAlignment(x)

+ + + + + +
+

return the column alignment at column x

+

returns: string ['left','center','right']

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnCount()

+ + + + + +
+

return the total number of columns. Virtual column scrolling is not necessary with this GridBehavior because we only hold a small amount of vertical data in memory and most tables in Q are timeseries financial data meaning the are very tall and skinny. We know all the columns from the first page from Q.

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnId(x)

+ + + + + +
+

return the columnId/label/fixedRowValue at x

+

returns: string

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the view translated x index

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnAlignment(x)

+ + + + + +
+

return the alignment at x for the fixed column area

+

returns: string ['left','center','right']

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the fixed column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnCount()

+ + + + + +
+

return the number of fixed columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnValue(x, y)

+ + + + + +
+

return the value at x,y for the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowAlignment(x, y)

+ + + + + +
+

get the view translated alignment at x,y in the fixed row area

+

returns: string ['left','center','right']

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowCount()

+ + + + + +
+

return the count of fixed rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowValue(x, y)

+ + + + + +
+

return the data value at point x,y in the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getNextMessageId(onResponseDo)

+ + + + + +
+

generate a new unique message id

+

returns: string

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
onResponseDo + + +function + + + +

this is the callback to associate with the message id

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowCount()

+ + + + + +
+

return the number of rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getSortIndicator(colId)

+ + + + + +
+

return the sort indicator image for a colId

+

returns: HTMLImageElement

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
colId + + +string + + + +

the column id of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getTopLeftValue(x, y)

+ + + + + +
+

return the value at x,y for the top left section of the hypergrid

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getValue(x, y)

+ + + + + +
+

return the data value at coordinates x,y. this is the main "model" function that allows for virtualization

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

handleMessage(d)

+ + + + + +
+

handle the message d

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
d + + +Object + + + +

a q-centeric well formed message

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

hierarchyCellClicked(grid, mouse)

+ + + + + +
+

fixed column header has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

highlightCellOnHover(isColumnHovered, isRowHovered)

+ + + + + +
+

returns true if we should highlight on hover

+

returns: boolean

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
isColumnHovered + + +boolean + + + +

the column is hovered or not

isRowHovered + + +boolean + + + +

the row is hovered or not

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isCellClickEnabled()

+ + + + + +
+

return true if we can re-order columns

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isColumnReorderable()

+ + + + + +
+

return true if we can re-order columns

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

isConnected()

+ + + + + +
+

return true if we are connected to q

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

openEditor(div)

+ + + + + +
+

build and open the editor within the container div argument, this function should return false if we don't want the editor to open

+

returns: boolean

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
div + + +HTMLDivElement + + + +

the containing div element

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ready()

+ + + + + +
+

the function to override for initialization

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

reconnect()

+ + + + + +
+

try reconnecting

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

sendMessage(message)

+ + + + + +
+

set message to Q

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
message + + +Object + + + +

a Q-centric well formed message

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollPositionY(y)

+ + + + + +
+

quietly set the scroll position in the horizontal dimension

+

returns: type

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the position in pixels

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(columnIndex)

+ + + + + +
+

toggle the sort at columnIndex to it's next state

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

topLeftClicked(grid, mouse)

+ + + + + +
+

the top left area has been clicked, you've been notified

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
grid + + +Hypergrid + + + +
mouse + + +Object + + + +

event details

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-behaviors_web-worker.html b/examples/v0.2/doc/module-behaviors_web-worker.html new file mode 100644 index 000000000..bf82fe79b --- /dev/null +++ b/examples/v0.2/doc/module-behaviors_web-worker.html @@ -0,0 +1,1994 @@ + + + + + JSDoc: Module: behaviors\web-worker + + + + + + + + + + + +
+ +

Module: behaviors\web-worker

+ + + + + + +
+ +
+ + + +
+ +
+
+ + + + + +
+ + + + + + + + + + + + + + +

Methods

+ + + + + + +

clearData()

+ + + + + +
+

empty out our page of local data, this function is used when we lose connectivity. this function is primarily used as a visual queue so the user doesn't see stale data

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getCanSort()

+ + + + + +
+

returns true if we support sorting

+

returns: boolean

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnAlignment(x)

+ + + + + +
+

return the column alignment at column x

+

returns: string ['left','center','right']

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getColumnCount()

+ + + + + +
+

return the total number of columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getDefaultState()

+ + + + + +
+

create a default empty tablestate

+

returns: Object

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFields()

+ + + + + +
+

getter for the field names

+

returns: Array

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnCount()

+ + + + + +
+

return the number of fixed columns

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedColumnValue(x, y)

+ + + + + +
+

return the value at x,y for the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getFixedRowValue(x, y)

+ + + + + +
+

return the data value at point x,y in the fixed row area

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

x coordinate

y + + +number + + + +

y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getHeader(x)

+ + + + + +
+

return a specific header at column index x

+

returns: string

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getRowCount()

+ + + + + +
+

return the number of rows

+

returns: integer

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

getValue(x, y)

+ + + + + +
+

return the data value at coordinates x,y. this is the main "model" function that allows for virtualization

+

returns: Object

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + +

the x coordinate

y + + +number + + + +

the y coordinate

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

initialize()

+ + + + + +
+

initialize myself and the web worker

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

postMessage(message)

+ + + + + +
+

send a message to the web worker

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
message + + +type + + + +

a json object message

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

ready()

+ + + + + +
+

polymer lifecycle event

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setData(jsonData)

+ + + + + +
+

push data to the web worker

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jsonData + + +Array + + + +

the array of object data

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

setScrollPositionY(y)

+ + + + + +
+

quietly set the scroll position in the horizontal dimension

+

returns: type

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
y + + +number + + + +

the position in pixels

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +

toggleSort(columnIndex)

+ + + + + +
+

toggle the sort at columnIndex to it's next state

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
columnIndex + + +number + + + +

the column index of interest

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/module-defaults.html b/examples/v0.2/doc/module-defaults.html new file mode 100644 index 000000000..76554f8a3 --- /dev/null +++ b/examples/v0.2/doc/module-defaults.html @@ -0,0 +1,6626 @@ + + + + + JSDoc: Module: defaults + + + + + + + + + + + +
+ +

Module: defaults

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +

This module lists the properties that can be set on a Hypergrid along with their default values. +Edit this file to override the defaults.

+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +

Members

+ + + +

(static) checkboxOnlyRowSelections :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

(static) format

+ + + + +
+

Name of a formatters for cell text.

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+
    +
  • /src/Formatters.js
  • +
+
+ + + +
+ + + + + + + + +

(static) hoverCellHighlight :hoverColors

+ + + + +
+

On mouse hover, whether to repaint the cell background and how.

+
+ + + +
Type:
+
    +
  • + +hoverColors + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '{ enabled: true, background: rgba(160, 160, 40, 0.30) }'
  • +
+ + + + + + + + + +
+ + + + + + + + +

(static) hoverColumnHighlight :hoverColors

+ + + + +
+

On mouse hover, whether to repaint the column background and how.

+
+ + + +
Type:
+
    +
  • + +hoverColors + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '{ enabled: true, background: rgba(60, 60, 15, 0.15) }'
  • +
+ + + + + + + + + +
+ + + + + + + + +

(static) hoverRowHighlight :hoverColors

+ + + + +
+

On mouse hover, whether to repaint the row background and how.

+
+ + + +
Type:
+
    +
  • + +hoverColors + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '{ enabled: true, background: rgba(100, 100, 25, 0.15) }'
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
+

Display cell font with under-score line drawn over it.

+
+

Implementation of links right now is not automatic; you must attach a 'fin-click' listener to the hypergrid object, etc.

+
+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

(static) renderCellError :function

+ + + + + + +
Type:
+
    +
  • + +function + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • renderCellError
  • +
+ + + + + + + + + +
+ + + + + + + + +

(static) strikeThrough :boolean

+ + + + +
+

Display cell font with strike-through line drawn over it.

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

backgroundColor :string

+ + + + +
+

Background color for data cells.

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(241, 241, 241)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

backgroundColor2 :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(201, 201, 201)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

backgroundSelectionColor :string

+ + + + +
+

Background color for selected cell(s).

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(147, 185, 255, 0.45)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

cellPadding :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 5
  • +
+ + + + + + + + + +
+ + + + + + + + +

cellSelection :boolean

+ + + + +
+

Clicking in a cell "selects" it; it is added to the select region and repainted with "cell selection" colors.

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

color :string

+ + + + +
+

Font color for data cells.

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnAutosizing :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderBackgroundColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(223, 227, 232)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderBackgroundColumnSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(255, 180, 0)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderBackgroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(255, 220, 97, 0.45)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderFont :cssFont

+ + + + + + +
Type:
+
    +
  • + +cssFont + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '12px Tahoma, Geneva, sans-serif'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderForegroundColumnSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderForegroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(80, 80, 80)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnHeaderForegroundSelectionFont :string

+ + + + +
+

Font style for selected columns' headers.

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'bold'
  • +
+ + + + + + + + + +
+ + + + + + + + +

columnSelection :boolean

+ + + + +
+

Clicking in a row header (leftmost column) "selects" the row; the entire row is added to the select region and repainted with "row selection" colors.

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

defaultColumnWidth :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 100
  • +
+ + + + + + + + + +
+ + + + + + + + +

defaultRowHeight :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 15
  • +
+ + + + + + + + + +
+ + + + + + + + +

doubleClickDelay :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 325
  • +
+ + + + + + + + + +
+ + + + + + + + +

editable :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

editOnDoubleClick :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

editOnKeydown :boolean

+ + + + +
+

Grid-level property. +When user presses a printable character key or BACKSPACE or DELETE:

+
    +
  1. Activate cell editor on current cell (i.e., origin of most recent selection).
  2. +
  3. If cell editor is a text editor:
      +
    1. Replace current value with the character the user typed; or
    2. +
    3. Clear it on BACKSPACE, DELETE, or other invalid character (e.g. when user types a letter but the cell editor only accepts digits).
    4. +
    +
  4. +
+
+

In invoked, user has the option to back out by pressing the ESCAPE key.

+
+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

editorActivationKeys :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • ['alt', 'esc']
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterBackgroundColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'white'
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterBackgroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(255, 220, 97)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterCellBorderStyle :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(0,0,0,0.8)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterCellBorderThickness :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0.4
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterFont :cssFont

+ + + + + + +
Type:
+
    +
  • + +cssFont + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '12px Tahoma, Geneva, sans-serif'
  • +
+ + + + + + + + + +
+ + + + + + + + +

filterForegroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

fixedColAlign :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'center'
  • +
+ + + + + + + + + +
+ + + + + + + + +

fixedColumnCount :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

fixedRowAlign :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'center'
  • +
+ + + + + + + + + +
+ + + + + + + + +

fixedRowCount :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

font :cssFont

+ + + + +
+

The font for data cells.

+
+ + + +
Type:
+
    +
  • + +cssFont + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '13px Tahoma, Geneva, sans-serif'
  • +
+ + + + + + + + + +
+ + + + + + + + +

foregroundSelectionColor :string

+ + + + +
+

Font color for selected cell(s).

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(0, 0, 128)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

foregroundSelectionFont :string

+ + + + +
+

Font style for selected cell(s).

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'bold'
  • +
+ + + + + + + + + +
+ + + + + + + + +

getTextHeight :function

+ + + + + + +
Type:
+
    +
  • + +function + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • getTextHeight
  • +
+ + + + + + + + + +
+ + + + + + + + +

getTextWidth :function

+ + + + + + +
Type:
+
    +
  • + +function + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • getTextWidth
  • +
+ + + + + + + + + +
+ + + + + + + + +

gridLinesH :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

gridLinesV :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

headerColumnCount :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

headerTextWrapping :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

hScrollbarClassPrefix :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • ''
  • +
+ + + + + + + + + +
+ + + + + + + + +

lineColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(199, 199 199)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

lineWidth :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0.4
  • +
+ + + + + + + + + +
+ + + + + + + + +

readOnly :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

repaintImmediately :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

repaintIntervalRate :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 60
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderBackgroundColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(223, 227, 232)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderBackgroundRowSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(255, 180, 0)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderBackgroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(255, 220, 97, 0.45)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderFont :cssFont

+ + + + + + +
Type:
+
    +
  • + +cssFont + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '12px Tahoma, Geneva, sans-serif'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderForegroundRowSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderForegroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(80, 80, 80)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowHeaderForegroundSelectionFont :string

+ + + + +
+

Font style for selected rows' headers.

+
+ + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'bold'
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowNumberAutosizing :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowResize :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

rowSelection :boolean

+ + + + +
+

Clicking in a column header (top row) "selects" the column; the entire column is added to the select region and repainted with "column selection" colors.

+
+ + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

scrollbarHoverOff :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'hidden'
  • +
+ + + + + + + + + +
+ + + + + + + + +

scrollbarHoverOver :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'visible'
  • +
+ + + + + + + + + +
+ + + + + + + + +

scrollingEnabled :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

selectionRegionOutlineColor :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'black'
  • +
+ + + + + + + + + +
+ + + + + + + + +

selectionRegionOverlayColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(0, 0, 48, 0.2)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

showFilterRow :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

showHeaderRow :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

showRowNumbers :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

showTreeColumn :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

singleRowSelectionMode :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnBackgroundColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(223, 227, 232)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnBackgroundColumnSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(255, 180, 0)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnBackgroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgba(255, 220, 97, 0.45)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnFont :cssFont

+ + + + + + +
Type:
+
    +
  • + +cssFont + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • '12px Tahoma, Geneva, sans-serif'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnForegroundColumnSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

treeColumnForegroundSelectionColor :cssColor

+ + + + + + +
Type:
+
    +
  • + +cssColor + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 'rgb(25, 25, 25)'
  • +
+ + + + + + + + + +
+ + + + + + + + +

useBitBlit :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `false`
  • +
+ + + + + + + + + +
+ + + + + + + + +

useHiDPI :boolean

+ + + + + + +
Type:
+
    +
  • + +boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • `true`
  • +
+ + + + + + + + + +
+ + + + + + + + +

voffset :number

+ + + + + + +
Type:
+
    +
  • + +number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • 0
  • +
+ + + + + + + + + +
+ + + + + + + + +

vScrollbarClassPrefix :string

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Default Value:
+
    +
  • ''
  • +
+ + + + + + + + + +
+ + + + + + + + + + + + +

Type Definitions

+ + + +

cssColor

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + +

cssFont

+ + + + + + +
Type:
+
    +
  • + +string + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
See:
+
+ +
+ + + +
+ + + + + + + + +

hoverColors

+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
enable + + +boolean + + + + + + <optional>
+ + + +
+ + false + +

false means not hilite on hover

backgroundColor + + +cssColor + + + + + + + + + +

cell, row, or colummn background color. Alpha channel will be respected and if given will be painted over the cells predetermined color.

header.backgroundColor + + +cssColor + + + + + + <optional>
+ + + +
+ + backgroundColor + +

for columns and rows, this is the background color of the column or row "handle" (header rows or columns, respectively). (Not used for cells.)

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ +
+ + + + +
+ +
+ + + + + + + \ No newline at end of file diff --git a/examples/v0.2/doc/scripts/linenumber.js b/examples/v0.2/doc/scripts/linenumber.js new file mode 100644 index 000000000..8d52f7eaf --- /dev/null +++ b/examples/v0.2/doc/scripts/linenumber.js @@ -0,0 +1,25 @@ +/*global document */ +(function() { + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + var lineId; + var lines; + var totalLines; + var anchorHash; + + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; + + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } +})(); diff --git a/examples/v0.2/doc/scripts/prettify/Apache-License-2.0.txt b/examples/v0.2/doc/scripts/prettify/Apache-License-2.0.txt new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/examples/v0.2/doc/scripts/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/examples/v0.2/doc/scripts/prettify/lang-css.js b/examples/v0.2/doc/scripts/prettify/lang-css.js new file mode 100644 index 000000000..041e1f590 --- /dev/null +++ b/examples/v0.2/doc/scripts/prettify/lang-css.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", +/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/examples/v0.2/doc/scripts/prettify/prettify.js b/examples/v0.2/doc/scripts/prettify/prettify.js new file mode 100644 index 000000000..eef5ad7e6 --- /dev/null +++ b/examples/v0.2/doc/scripts/prettify/prettify.js @@ -0,0 +1,28 @@ +var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= +[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), +l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, +q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, +"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), +a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} +for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], +H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ +I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), +["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", +/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), +["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", +hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= +!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}pcode { + color: #0095dd; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.class-description { + font-size: 130%; + line-height: 140%; + margin-bottom: 1em; + margin-top: 1em; +} + +.class-description:empty { + margin: 0; +} + +#main { + float: left; + width: 75%; +} + +article dl:not(.details), +div.description+h5, div.description+h5+ul, +p+h5, p+h5+ul, +h4.name+h5, h4.name+h5+ul { + display: none; /* This hides the "Type" section which seems to be redundant */ +} + +section +{ + display: block; + background-color: #fff; + padding: 12px 24px; + margin-right: 30px; +} + +.variation { + display: none; +} + +.signature-attributes { + font-size: 60%; + color: #aaa; + font-style: italic; + font-weight: lighter; +} + +nav +{ + display: block; + float: left; + margin-top: 28px; + width: 15%; + min-width: 200px; + padding-left: 16px; +} + +nav ul { + font-family: 'Roboto', arial, sans-serif; + font-size: 100%; + line-height: 17px; + padding: 0; + margin: 0; + list-style-type: none; +} + +nav ul a, nav ul a:visited, nav ul a:active { + font-family: monospace; + font-weight: bold; + line-height: 18px; + color: #0095dd; +} + +nav h3 { + margin-top: 12px; +} + +nav li { + margin-top: 6px; +} + +footer { + display: block; + padding: 6px; + margin-top: 12px; + font-style: italic; + font-size: 90%; +} + +p.summary+p { + font-weight: bold +} + +p.summary+p:before { + color: #BBB; + content: "\25BA\A0\A0" /* right-pointing arrow + 2 non-breaking spaces */ +} + +h1, h2, h3, h4 { + font-weight: 200; + margin: 0; +} + +h1 +{ + font-family: 'Roboto', sans-serif; + font-size: 48px; + letter-spacing: -2px; + margin: 12px 24px 20px; +} + +h2, h3 { + font-size: 30px; + font-weight: 700; + margin-bottom: 12px; +} + +header h2, article h3 { + margin-top: 1.5em; + letter-spacing: .15em; + border-bottom: 2px solid black +} + +h4 { + font-size: 18px; + margin-bottom: 12px; + margin-top: 1.5em; + color: #4d4e53; +} + +article > h4 { + padding-top: 1.3em; + border-top: .1em dashed #DDD +} + +h3+h4 { + border-top: 0; + padding-top: 0 +} + +h5, .container-overview .subsection-title +{ + font-size: 120%; + font-weight: bold; + letter-spacing: -0.01em; + margin: 8px 0 3px 0; +} + +h6 +{ + font-size: 100%; + letter-spacing: -0.01em; + margin: 6px 0 3px 0; + font-style: italic; +} + +.ancestors { color: #999; } +.ancestors a +{ + color: #999 !important; + text-decoration: none; +} + +.clear +{ + clear: both; +} + +.important +{ + font-weight: bold; + color: #950B02; +} + +.yes-def { + text-indent: -1000px; +} + +.type-signature { + color: #aaa; +} + +.name, .signature { + font-family: Consolas, Monaco, 'Roboto', monospace; +} + +.details { margin-top: 14px; border-left: 2px solid #DDD; } +.details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; } +.details dd { margin-left: 70px; } +.details ul { margin: 0; } +.details ul { list-style-type: none; } +.details li { margin-left: 30px; padding-top: 6px; } +.details pre.prettyprint { margin: 0 } +.details .object-value { padding-top: 0; } + +.description { + margin-bottom: 1em; + margin-top: 1em; +} + +.code-caption +{ + font-style: italic; + font-size: 107%; + margin: 0; +} + +.prettyprint +{ + border: 1px solid #ddd; + width: 80%; + overflow: auto; +} + +.prettyprint.source { + width: inherit; +} + +.prettyprint code +{ + font-size: 100%; + line-height: 18px; + display: block; + padding: 4px 12px; + margin: 0; + background-color: #fff; + color: #4D4E53; +} + +.prettyprint code span.line +{ + display: inline-block; +} + +.prettyprint.linenums +{ + padding-left: 70px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.prettyprint.linenums ol +{ + padding-left: 0; +} + +.prettyprint.linenums li +{ + border-left: 3px #ddd solid; +} + +.prettyprint.linenums li.selected, +.prettyprint.linenums li.selected * +{ + background-color: lightyellow; +} + +.prettyprint.linenums li * +{ + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + +.params, .props +{ + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.params .name, .props .name, .name code { + color: #5A5A5A; + font-family: monospace; + font-size: 100%; +} + +.params td, .params th, .props td, .props th +{ + border: 1px solid #ddd; + margin: 0px; + text-align: left; + vertical-align: top; + padding: 4px 6px; + display: table-cell; +} + +.params thead tr, .props thead tr +{ + background-color: #ddd; + font-weight: bold; +} + +.params .params thead tr, .props .props thead tr +{ + background-color: #fff; + font-weight: bold; +} + +.params th, .props th { border-right: 1px solid #aaa; } +.params thead .last, .props thead .last { border-right: 1px solid #ddd; } + +.params td.description > p:first-child, +.props td.description > p:first-child +{ + margin-top: 0; + padding-top: 0; +} + +.params td.description > p:last-child, +.props td.description > p:last-child +{ + margin-bottom: 0; + padding-bottom: 0; +} + +.disabled { + color: #454545; +} + +@media only screen and (max-width : 1200px) { + nav + { + width:70%; + padding-bottom: 5%; + } + #main { + width: 85%; + margin-left: 0; + padding-left: 16px; + border-top:black solid 1px; + } +} diff --git a/examples/v0.2/doc/styles/prettify-jsdoc.css b/examples/v0.2/doc/styles/prettify-jsdoc.css new file mode 100644 index 000000000..5a2526e37 --- /dev/null +++ b/examples/v0.2/doc/styles/prettify-jsdoc.css @@ -0,0 +1,111 @@ +/* JSDoc prettify.js theme */ + +/* plain text */ +.pln { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* string content */ +.str { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a keyword */ +.kwd { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a comment */ +.com { + font-weight: normal; + font-style: italic; +} + +/* a type name */ +.typ { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a literal value */ +.lit { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* punctuation */ +.pun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp open bracket */ +.opn { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* lisp close bracket */ +.clo { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a markup tag name */ +.tag { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute name */ +.atn { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a markup attribute value */ +.atv { + color: #006400; + font-weight: normal; + font-style: normal; +} + +/* a declaration */ +.dec { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* a variable name */ +.var { + color: #000000; + font-weight: normal; + font-style: normal; +} + +/* a function name */ +.fun { + color: #000000; + font-weight: bold; + font-style: normal; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} diff --git a/examples/v0.2/doc/styles/prettify-tomorrow.css b/examples/v0.2/doc/styles/prettify-tomorrow.css new file mode 100644 index 000000000..b6f92a78d --- /dev/null +++ b/examples/v0.2/doc/styles/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ }