When creating a new PixelatedPoints3D object, any amount of its default parameters can be overriden, by supplying the values to its constructor:
new PointStyle3D.Pixelated({
size: 4,
fillStyle: new SolidFill({ color: ColorHex('#FFF') }),
})
Optional object containing any amount of parameters of PixelatedPoints3D
Returns a new instance of this Record type with all values set to their default values.
Returns a new instance of this Record type with the value for the specific key set to its default value.
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
Get automatically computed highlight style.
FillStyle object
Get fill style of PixelatedPoints3D.
FillStyle object
Get size of points rendered with this style object.
Size of the rendered points in pixels.
Construct a new PixelatedPoints3D object based on this one, but with modified fill style.
Example usage:
Desired result | Argument |
---|---|
Specified SolidFill | new SolidFill({ color: ColorHex('#F00') }) |
Either a FillStyle object or a function, which will be used to create a new FillStyle based on current value.
New PixelatedPoints3D object
Construct a new PixelatedPoints3D object based on this one, but with different size.
Size of the rendered points in pixels.
New PixelatedPoints3D object
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Shallowly converts this Record to equivalent native JavaScript Object.
Shallowly converts this Record to equivalent JavaScript Object.
Note: Not all methods can be used on a mutable collection or within
withMutations
! Only set
may be used mutatively.
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.
A style class used to specify style of 3D points rendering as pixelated squares.
This rendering style is optimal for rendering large numbers of points that do not require great individual detail.