Optional
autoWhether the View will automatically create ViewLayers on-demand as ViewObjects are created.
When true
(default), the View will automatically create ViewLayers as needed for each new
SceneObject.layerId encountered, including a "default" ViewLayer for ViewerObjects corresponding to
SceneObjects that have no layerId. This default setting therefore ensures that a ViewObject is created in the View for every
SceneObject that is created.
If you set this false
, however, then the View will only create ViewObjects
for SceneObjects that have
a SceneObject.layerId that matches the ID of some ViewLayer that you
explicitly created earlier with View.createLayer.
Setting this parameter false
enables a View to contain only the ViewObjects that it actually needs to show, i.e. to
represent only SceneObjects that it needs to view. This enables a View to avoid wastefully creating and maintaining
ViewObjects for SceneObjects that it never needs to show.
Default value is true
.
Optional
backgroundRGB clear color for the View's canvas.
Only works when canvas is not transparent.
Default value is [1,1,1]
.
Optional
backgroundSet true to attempt to derive the View's canvas RGB clear color from any AmbientLights defined in the View .
Only works when canvas is not transparent.
Falls back on View.backgroundColor |
Default value is [1,1,1]
.
Optional
cameraParameters for the View's Camera.
Optional
edgesParameters for the View's edge enhancement effect, Edges.
Optional
elementID of an HTMLCanvasElement in the DOM.
Optional
highlightParameters for the appearance of ViewObjects in the View when they are highlighted.
Optional
htmlAn HTMLElement in the DOM.
Overrides ViewParams.elementId
Optional
idOptional ID, genarated automatically by Viewer.createView if omitted.
Optional
layersParameters for the View's ViewLayers.
Optional
lightsParameters for the View's light sources.
Optional
originThe Real-space 3D origin, in Real-space units, at which the View's World-space
coordinate origin [0,0,0]
sits.
Optional
pointsParameters for the View's PointsMaterial.
Optional
premultipliedWhether the View performs alpha composition with premultiplied alpha. Highlighting and selection works best when
this is false
.
Default value is false
.
Optional
renderConfigures which rendering mode the View is in.
Default is QualityRender.
Optional
resolutionParamaters the View's ResolutionScale.
Optional
saoParameters for the View's scalable ambient obscurance effect, SAO, which enhances 3D model visualization by darkening areas with limited ambient light exposure.
Optional
scaleThe number of Real-space units represented by each unit of the View's World-space coordinate system.
For example, if ViewParams.units is MetersUnit, and there are ten meters per World-space coordinate
system unit, then this property would have a value of 10.0
.
Optional
sectionParamaters for the View's SectionPlanes.
Optional
selectedParameters for the appearance of ViewObjects in the View when they are selected.
Optional
transparentConfigures whether the View's canvas is transparent.
Default value is false
.
Optional
unitsThe unit of measurement for the View. Accepted values are constants!MetersUnit, constants!CentimetersUnit, constants!MillimetersUnit, constants!YardsUnit, constants!FeetUnit and constants!InchesUnit.
Optional
xrayParameters for the appearance of ViewObjects in the View when they are X-rayed.
Parameters for a View.