matrixFromCamera
matrixFromCamera(
state,viewportDimensions,graphDimensions,padding,inverse?):Float32Array
Defined in: packages/sigma/src/utils/coordinates.ts:34
Function returning a matrix from the current state of the camera.
Parameters
Section titled “Parameters”viewportDimensions
Section titled “viewportDimensions”height
Section titled “height”number
number
graphDimensions
Section titled “graphDimensions”height
Section titled “height”number
number
padding
Section titled “padding”number
inverse?
Section titled “inverse?”boolean
Returns
Section titled “Returns”Float32Array