Skip to content

Function: sceneLightingAttributes() ​

ts
function sceneLightingAttributes(defaults): object;

Experimental

Plotly's lighting and lightposition trace attributes with the defaults of defaults (a trace type of SCENE_LIGHTING_DEFAULTS or custom defaults). Spread into a trace schema.

Parameters ​

ParameterType
defaults| SceneLightingTrace | SceneLightingDefaults

Returns ​

object

NameType
lightingObjectNode<Record<string, any>>
lightpositionObjectNode<{ x: Attr<number, { description: `${string} of the light, in clip space (moves with the view; ±1 is the edge of the view, 1e5 far away).`; dflt: number; editType: "calc"; max: 100000; min: -100000; }>; y: Attr<number, { description: `${string} of the light, in clip space (moves with the view; ±1 is the edge of the view, 1e5 far away).`; dflt: number; editType: "calc"; max: 100000; min: -100000; }>; z: Attr<number, { description: `${string} of the light, in clip space (moves with the view; ±1 is the edge of the view, 1e5 far away).`; dflt: number; editType: "calc"; max: 100000; min: -100000; }>; }>

Released under the MIT License.