diff --git a/packages/saved-views-client/src/models/savedViews/DisplayStyles.ts b/packages/saved-views-client/src/models/savedViews/DisplayStyles.ts index 93725c71..eb5942d1 100644 --- a/packages/saved-views-client/src/models/savedViews/DisplayStyles.ts +++ b/packages/saved-views-client/src/models/savedViews/DisplayStyles.ts @@ -1,7 +1,7 @@ /*--------------------------------------------------------------------------------------------- -* Copyright (c) Bentley Systems, Incorporated. All rights reserved. -* See LICENSE.md in the project root for license terms and full copyright notice. -*--------------------------------------------------------------------------------------------*/ + * Copyright (c) Bentley Systems, Incorporated. All rights reserved. + * See LICENSE.md in the project root for license terms and full copyright notice. + *--------------------------------------------------------------------------------------------*/ /** JSON representation of settings associated with a DisplayStyle3dProps. */ export interface DisplayStyle3dSettingsProps extends DisplayStyleSettingsProps { @@ -10,7 +10,7 @@ export interface DisplayStyle3dSettingsProps extends DisplayStyleSettingsProps { ambientOcclusion?: AmbientOcclusionProps; solarShadows?: SolarShadowSettingsProps; lights?: LightSettingsProps; - planProjections?: { [modelId: string]: PlanProjectionSettingsProps; }; + planProjections?: { [modelId: string]: PlanProjectionSettingsProps }; thematic?: ThematicDisplaySettingsProps; hiddenLine?: HiddenLineSettingsProps; } @@ -36,8 +36,8 @@ export interface EnvironmentProps { export interface GroundPlaneProps { display?: boolean; elevation?: number; - aboveColor?: RgbColorProps; - belowColor?: RgbColorProps; + aboveColor?: RgbatColorProps; + belowColor?: RgbatColorProps; } /** @@ -61,10 +61,10 @@ export interface GroundPlaneProps { export interface SkyBoxProps { display?: boolean; twoColor?: boolean; - skyColor?: RgbColorProps; - groundColor?: RgbColorProps; - zenithColor?: RgbColorProps; - nadirColor?: RgbColorProps; + skyColor?: RgbatColorProps; + groundColor?: RgbatColorProps; + zenithColor?: RgbatColorProps; + nadirColor?: RgbatColorProps; skyExponent?: number; groundExponent?: number; /** @@ -95,7 +95,7 @@ export interface SkyCubeProps { /** JSON representation of SolarShadowSettings. */ export interface SolarShadowSettingsProps { - color?: RgbColorProps; + color?: RgbatColorProps; } /** @@ -136,7 +136,7 @@ export interface FresnelSettingsProps { * all surfaces in the scene. */ export interface AmbientLightProps { - color?: RgbColorProps; + color?: RgbatColorProps; intensity?: number; } @@ -147,12 +147,11 @@ export interface AmbientLightProps { * sky colors of the SkyBox. */ export interface HemisphereLightsProps { - upperColor?: RgbColorProps; - lowerColor?: RgbColorProps; + upperColor?: RgbatColorProps; + lowerColor?: RgbatColorProps; intensity?: number; } - /** * Wire format for the solar directional light associated with a {@linkcode LightSettingsProps}. The light is colored * white and oriented in any direction in world coordinates. It will cast shadows if it is above the world XY plane and @@ -183,8 +182,8 @@ export interface PlanProjectionSettingsProps { /** JSON representation of the display style settings. */ export interface DisplayStyleSettingsProps { viewflags?: ViewFlagProps; - backgroundColor?: RgbColorProps; - monochromeColor?: RgbColorProps; + backgroundColor?: RgbatColorProps; + monochromeColor?: RgbatColorProps; monochromeMode?: MonochromeMode; renderTimeline?: string; /** @@ -300,8 +299,8 @@ export interface DisplayStyleSubCategoryProps } export interface SubCategoryAppearanceProps { - color?: RgbColorProps; - fill?: RgbColorProps; + color?: RgbatColorProps; + fill?: RgbatColorProps; invisible?: boolean; weight?: number; style?: string; @@ -373,7 +372,6 @@ export interface SpatialClassifierProps { isActive?: boolean; } - /** JSON representation of SpatialClassifierFlags. */ export interface SpatialClassifierFlagsProps { inside: SpatialClassifierInsideDisplay; @@ -432,7 +430,7 @@ export interface RealityDataSourceKey { * generated by 2d projection of model geomety, typically from a model that is generated from two dimensional GIS data. */ export interface MapImageryProps { - backgroundBase?: BaseMapLayerProps | RgbColorProps; + backgroundBase?: BaseMapLayerProps | RgbatColorProps; backgroundLayers?: (ImageMapLayerProps | ModelMapLayerProps)[]; overlayLayers?: (ImageMapLayerProps | ModelMapLayerProps)[]; } @@ -502,7 +500,7 @@ export interface DisplayStyleModelAppearanceProps /** Wire format describing a ClipIntersectionStyle. */ export interface ClipIntersectionStyleProps { - color?: RgbColorProps; + color?: RgbatColorProps; width?: number; } @@ -510,8 +508,8 @@ export interface ClipIntersectionStyleProps { export interface ClipStyleProps { produceCutGeometry?: boolean; cutStyle?: CutStyleProps; - insideColor?: RgbColorProps; - outsideColor?: RgbColorProps; + insideColor?: RgbatColorProps; + outsideColor?: RgbatColorProps; colorizeIntersection?: boolean; intersectionStyle?: ClipIntersectionStyleProps; } @@ -554,7 +552,7 @@ export interface ViewFlagOverrides { /** Properties used to initialize a Feature Appearance. */ export interface FeatureAppearanceProps { - rgb?: RgbColorProps; + rgb?: RgbatColorProps; weight?: number; transparency?: number; linePixels?: LinePixels; @@ -592,7 +590,7 @@ export enum ThematicGradientColorScheme { /** The margin color used at the extremes of the gradient, when outside the applied range. Defaults to a black color with no arguments. */ export interface KeyColorProps { value: number; - color: RgbColorProps; + color: RgbatColorProps; } /** Describes how transparency is computed when applying a thematic gradient to a surface. */ @@ -605,7 +603,7 @@ export enum ThematicGradientTransparencyMode { export interface ThematicGradientSettingsProps { mode?: ThematicGradientMode; stepCount?: number; - marginColor?: RgbColorProps; + marginColor?: RgbatColorProps; colorScheme?: ThematicGradientColorScheme; customKeys?: KeyColorProps[]; colorMix?: number; @@ -655,7 +653,7 @@ export interface HiddenLineStyleProps { * - width is overridden if width != undefined and width != 0 * - pattern is overridden if pattern != undefined and pattern != LinePixels.Invalid */ overrideColor?: boolean; - color?: RgbColorProps; + color?: RgbatColorProps; pattern?: LinePixels; /** If defined, the width of the edges in pixels. * If undefined (or 0), edges are drawn using the element's line width. */ @@ -750,8 +748,10 @@ export enum PlanarClipMaskMode { } /** JSON representation of an RGB color, with each component in the range [0, 255]. */ -export interface RgbColorProps { +export interface RgbatColorProps { red: number; green: number; blue: number; + alpha?: number; + tranparency?: number; }