function.validateRenderState
API > validateRenderState
Function: validateRenderState
validateRenderState(
newState
,changes
): readonlyError
[]
Validate render state changes.
Parameters
Parameter | Type | Description |
---|---|---|
newState | RenderState | The new render state to validate. |
changes | RecursivePartial \< RenderState > | The changes that was applied to the baseline state to produce this state. |
Returns
readonly Error
[]
Array of validation errors, if any.
Source
@novorender/core3d/state/validate.ts:14
Remarks
This function performs some basic validation of the state changes, focusing on value ranges and states that would generate run-time exceptions.