Class: RecordTranslator

RecordTranslator

Methods

toPhysical(row, column){Object|Array}

Translate visual coordinates into physical. Can be passed as separate 2 arguments (row, column) or as an object in first
argument with row and column keys.

Parameters:
Name Type Description
row Number | Object

Visual coordinates or row index.

column Number optional

Visual column index.

Returns: {Object|Array} Returns an object with physical records or an array if coordinates passed as separate arguments.

toPhysicalColumn(column){Number}

Translate visual column index into physical.

Parameters:
Name Type Description
column Number

Visual column index.

Returns: {Number} Returns physical column index.

toPhysicalRow(row){Number}

Translate visual row index into physical.

Parameters:
Name Type Description
row Number

Visual row index.

Returns: {Number} Returns physical row index.

toVisual(row, column){Object|Array}

Translate physical coordinates into visual. Can be passed as separate 2 arguments (row, column) or as an object in first
argument with row and column keys.

Parameters:
Name Type Description
row Number | Object

Physical coordinates or row index.

column Number optional

Physical column index.

Returns: {Object|Array} Returns an object with visual records or an array if coordinates passed as separate arguments.

toVisualColumn(column){Number}

Translate physical column index into visual.

Parameters:
Name Type Description
column Number

Physical column index.

Returns: {Number} Returns visual column index.

toVisualRow(row){Number}

Translate physical row index into visual.

Parameters:
Name Type Description
row Number

Physical row index.

Returns: {Number} Returns visual row index.