with Method
Produce a copy of these ViewFlags with a single boolean property changed.
with(flag: "transparency" | "dimensions" | "patterns" | "weights" | "styles" | "fill" | "textures" | "materials" | "acsTriad" | "grid" | "visibleEdges" | "hiddenEdges" | "shadows" | "clipVolume" | "constructions" | "monochrome" | "backgroundMap" | "ambientOcclusion" | "thematicDisplay" | "wiremesh" | "forceSurfaceDiscard" | "whiteOnWhiteReversal" | "lighting", value: boolean): ViewFlags
see ViewFlags.withRenderMode to change the ViewFlags.renderMode property.
see ViewFlags.copy and ViewFlags.override to change multiple properties.
Returns - ViewFlags
A new ViewFlags with the property changed as specified, or this
if the property already has the specified value.
Defined in
- core/common/src/ViewFlags.ts Line 309
Last Updated: 20 June, 2023