Skip to content

Commit

Permalink
Change rgb to rgbat
Browse files Browse the repository at this point in the history
  • Loading branch information
hnn0003 committed Jun 12, 2024
1 parent 488fa3d commit 68cab57
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions packages/saved-views-client/src/models/savedViews/DisplayStyles.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -10,7 +10,7 @@ export interface DisplayStyle3dSettingsProps extends DisplayStyleSettingsProps {
ambientOcclusion?: AmbientOcclusionProps;
solarShadows?: SolarShadowSettingsProps;
lights?: LightSettingsProps;
planProjections?: { [modelId: string]: PlanProjectionSettingsProps; };
planProjections?: { [modelId: string]: PlanProjectionSettingsProps };

Check warning on line 13 in packages/saved-views-client/src/models/savedViews/DisplayStyles.ts

View workflow job for this annotation

GitHub Actions / Build and run tests (18)

Expected a semicolon
thematic?: ThematicDisplaySettingsProps;
hiddenLine?: HiddenLineSettingsProps;
}
Expand All @@ -36,8 +36,8 @@ export interface EnvironmentProps {
export interface GroundPlaneProps {
display?: boolean;
elevation?: number;
aboveColor?: RgbColorProps;
belowColor?: RgbColorProps;
aboveColor?: RgbatColorProps;
belowColor?: RgbatColorProps;
}

/**
Expand All @@ -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;
/**
Expand Down Expand Up @@ -95,7 +95,7 @@ export interface SkyCubeProps {

/** JSON representation of SolarShadowSettings. */
export interface SolarShadowSettingsProps {
color?: RgbColorProps;
color?: RgbatColorProps;
}

/**
Expand Down Expand Up @@ -136,7 +136,7 @@ export interface FresnelSettingsProps {
* all surfaces in the scene.
*/
export interface AmbientLightProps {
color?: RgbColorProps;
color?: RgbatColorProps;
intensity?: number;
}

Expand All @@ -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
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -300,8 +299,8 @@ export interface DisplayStyleSubCategoryProps
}

export interface SubCategoryAppearanceProps {
color?: RgbColorProps;
fill?: RgbColorProps;
color?: RgbatColorProps;
fill?: RgbatColorProps;
invisible?: boolean;
weight?: number;
style?: string;
Expand Down Expand Up @@ -373,7 +372,6 @@ export interface SpatialClassifierProps {
isActive?: boolean;
}


/** JSON representation of SpatialClassifierFlags. */
export interface SpatialClassifierFlagsProps {
inside: SpatialClassifierInsideDisplay;
Expand Down Expand Up @@ -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)[];
}
Expand Down Expand Up @@ -502,16 +500,16 @@ export interface DisplayStyleModelAppearanceProps

/** Wire format describing a ClipIntersectionStyle. */
export interface ClipIntersectionStyleProps {
color?: RgbColorProps;
color?: RgbatColorProps;
width?: number;
}

/** Wire format describing a ClipStyle. */
export interface ClipStyleProps {
produceCutGeometry?: boolean;
cutStyle?: CutStyleProps;
insideColor?: RgbColorProps;
outsideColor?: RgbColorProps;
insideColor?: RgbatColorProps;
outsideColor?: RgbatColorProps;
colorizeIntersection?: boolean;
intersectionStyle?: ClipIntersectionStyleProps;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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. */
Expand All @@ -605,7 +603,7 @@ export enum ThematicGradientTransparencyMode {
export interface ThematicGradientSettingsProps {
mode?: ThematicGradientMode;
stepCount?: number;
marginColor?: RgbColorProps;
marginColor?: RgbatColorProps;
colorScheme?: ThematicGradientColorScheme;
customKeys?: KeyColorProps[];
colorMix?: number;
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
}

0 comments on commit 68cab57

Please sign in to comment.