UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.45 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import has from"../../../../core/has.js";import{NestedMap as e}from"../../../../core/NestedMap.js";import{RenderState as i}from"../../../support/RenderState.js";var o;function s(s=!has("disable-feature:high-quality-idle"),t=null){const n=new e;return s?(n.set(i.IDLE,o.Antialiasing,"low"!==t),n.set(i.IDLE,o.HighResolutionAtmosphere,"low"!==t),n.set(i.IDLE,o.HighQualityTransparency,!0),n.set(i.IDLE,o.SSAO,!0),n.set(i.IDLE,o.WaterReflection,!0),n.set(i.IDLE,o.PhysicalPixelRendering,!0)):(n.set(i.ANIMATING,o.HighResolutionShadows,!0),n.set(i.ANIMATING,o.HighResolutionViewshed,!0),n.set(i.INTERACTING,o.HighResolutionShadows,!0),n.set(i.INTERACTING,o.HighResolutionViewshed,!0)),n.set(i.IDLE,o.HighResolutionShadows,!0),n.set(i.IDLE,o.HighResolutionViewshed,!0),n.set(i.IDLE,o.HighResolutionVoxel,!0),n}!function(e){e[e.Antialiasing=0]="Antialiasing",e[e.HighQualityTransparency=1]="HighQualityTransparency",e[e.HighResolutionVoxel=2]="HighResolutionVoxel",e[e.HighResolutionAtmosphere=3]="HighResolutionAtmosphere",e[e.SSAO=4]="SSAO",e[e.WaterReflection=5]="WaterReflection",e[e.HighResolutionShadows=6]="HighResolutionShadows",e[e.HighResolutionViewshed=7]="HighResolutionViewshed",e[e.PhysicalPixelRendering=8]="PhysicalPixelRendering"}(o||(o={}));export{o as RenderFeature,s as setupFeatureDefaults};