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
| Parameter | Type |
|---|---|
defaults | | SceneLightingTrace | SceneLightingDefaults |
Returns
object
| Name | Type |
|---|---|
lighting | ObjectNode<Record<string, any>> |
lightposition | ObjectNode<{ 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; }>; }> |