@@ -164,6 +164,33 @@ const displayStyleModelAppearanceLegacyMappings: ExtractionFunc<void, void>[] =
164164 extractString ( "modelId" ) ,
165165] ;
166166
167+ export const realityModelDisplayMappings : ExtractionFunc < void , void > [ ] = [
168+ extractObject (
169+ [
170+ extractString ( "sizeMode" ) ,
171+ extractNumber ( "voxelScale" ) ,
172+ extractNumber ( "minPixelsPerVoxel" ) ,
173+ extractNumber ( "maxPixelsPerVoxel" ) ,
174+ extractNumber ( "pixelSize" ) ,
175+ extractString ( "shape" ) ,
176+ extractString ( "edlMode" ) ,
177+ extractNumber ( "edlStrength" ) ,
178+ extractNumber ( "edlRadius" ) ,
179+ extractNumber ( "edlFilter" ) ,
180+ extractNumber ( "edlMixWts1" ) ,
181+ extractNumber ( "edlMixWts2" ) ,
182+ extractNumber ( "edlMixWts4" ) ,
183+ ] ,
184+ "pointCloud" ,
185+ ) ,
186+ extractNumber ( "overrideColorRatio" ) ,
187+ ] ;
188+
189+ const displayStyleRealityModelDisplayMappings : ExtractionFunc < void , void > [ ] = [
190+ ...realityModelDisplayMappings ,
191+ extractString ( "modelId" ) ,
192+ ] ;
193+
167194const contextRealityModelsMappings : ExtractionFunc < void , void > [ ] = [
168195 extractObject (
169196 [
@@ -198,6 +225,7 @@ const contextRealityModelsMappings: ExtractionFunc<void, void>[] = [
198225 ) ,
199226 extractObject ( planarClipMaskMappings , "planarClipMask" ) ,
200227 extractObject ( featureAppearanceMappings , "appearanceOverrides" ) ,
228+ extractObject ( realityModelDisplayMappings , "displaySettings" ) ,
201229] ;
202230
203231const contextRealityModelsLegacyMappings : ExtractionFunc < void , void > [ ] = [
@@ -234,6 +262,7 @@ const contextRealityModelsLegacyMappings: ExtractionFunc<void, void>[] = [
234262 ) ,
235263 extractObject ( planarClipMaskMappings , "planarClipMask" ) ,
236264 extractObject ( featureAppearanceLegacyMappings , "appearanceOverrides" ) ,
265+ extractObject ( realityModelDisplayMappings , "displaySettings" ) ,
237266] ;
238267
239268const commonMapLayerPropsMapping : ExtractionFunc < void , void > [ ] = [
@@ -511,6 +540,7 @@ const displayStylesMapping: ExtractionFunc<void, void>[] = [
511540 "modelOverrides" ,
512541 "modelOvr" ,
513542 ) ,
543+ extractArray ( displayStyleRealityModelDisplayMappings , "realityModelDisplay" ) ,
514544 extractObject ( clipStyleMappings , "clipStyle" ) ,
515545 extractArray (
516546 displayStylePlanarClipMaskMappings ,
@@ -536,6 +566,11 @@ const displayStylesLegacyMapping: ExtractionFunc<void, void>[] = [
536566 extractStringOrArray ( "excludedElements" ) ,
537567 extractObject ( mapImageryLegacyMapping , "mapImagery" ) ,
538568 extractArray ( displayStyleModelAppearanceLegacyMappings , "modelOvr" , "modelOverrides" ) ,
569+ extractArrayElementsConditionally (
570+ ( value ) => value && ! value . invisible ,
571+ displayStyleRealityModelDisplayMappings ,
572+ "realityModelDisplay" ,
573+ ) ,
539574 extractObject ( clipStyleLegacyMappings , "clipStyle" ) ,
540575 extractArray ( displayStylePlanarClipMaskMappings , "planarClipOvr" , "planarClipOverrides" ) ,
541576] ;
0 commit comments