Max X value of the series
Min X value of the series
Max Y value of the series
Min Y value of the series
Set precision of data packing optimization.
Example usage:
Normal precision
DataPatterns.horizontalProgressive.setPrecision( 'normal' )
High precision
Sometimes needed if data is very dense, yet still detailed.
DataPatterns.horizontalProgressive.setPrecision( 'high' )
Data packing precision.
New DataPattern object.
Unlike other types in Immutable.js, the Record()
function creates a new
Record Factory, which is a function that creates Record instances.
See above for examples of using Record()
.
Note: Record
is a factory function and not a class, and does not use the
new
keyword during construction.
Records allow passing a second parameter to supply a descriptive name that appears when converting a Record to a string or in any error messages. A descriptive name for any record can be accessed by using this method. If one was not provided, the string "Record" is returned.
const { Record } = require('immutable')
const Person = Record({
name: null
}, 'Person')
var me = Person({ name: 'My Name' })
me.toString() // "Person { "name": "My Name" }"
Record.getDescriptiveName(me) // "Person"
True if maybeRecord
is an instance of a Record.
Base class for Progressive DataPattern objects.