Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

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

state

CameraState

viewportDimensions

height

number

width

number

graphDimensions

height

number

width

number

padding

number

inverse?

boolean

Returns

Float32Array