Skip to content

Commit 82bd39e

Browse files
committed
document layer options
1 parent c554b45 commit 82bd39e

File tree

1 file changed

+54
-13
lines changed

1 file changed

+54
-13
lines changed

docs/api-reference/space/custom-ux.md

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,42 @@ interface SpaceRenderOptions {
1717
backgroundColor?: string
1818
grounds?: {
1919
render?: boolean
20+
includeLayers?: string[]
21+
omitLayers?: string[]
2022
}
2123
walls?: {
2224
render?: boolean
2325
alpha?: number
2426
maxHeightCm?: number
2527
showStructuralWalls?: boolean
28+
includeLayers?: string[]
29+
omitLayers?: string[]
30+
}
31+
doors?: {
32+
render?: boolean
33+
includeLayers?: string[]
34+
omitLayers?: string[]
35+
}
36+
windows?: {
37+
render?: boolean
38+
includeLayers?: string[]
39+
omitLayers?: string[]
40+
}
41+
objects?: {
42+
render?: boolean
43+
includeLayers?: string[]
44+
omitLayers?: string[]
45+
}
46+
annotations?: {
47+
render?: boolean
48+
includeLayers?: string[]
49+
omitLayers?: string[]
50+
}
51+
stairs?: {
52+
render?: boolean
53+
includeLayers?: string[]
54+
omitLayers?: string[]
2655
}
27-
doors?: boolean
28-
windows?: boolean
29-
objects?: boolean
30-
annotations?: boolean
3156
compass?: boolean
3257
floorplan?: {
3358
render?: boolean
@@ -38,15 +63,31 @@ interface SpaceRenderOptions {
3863
```
3964

4065
- `backgroundColor` - _optional_ - lets you change the background color used by the viewer. You can pass any valid CSS color string, such as 'pink' or '#81b1b3'. We advise to set the same background color on the container element to keep the load screen consistent. As for the preview image, you can change its background color to match in the editor: go to the 'Services' tab and click 'Create preview image'.
41-
- `grounds.render` - _optional_ - set this value to control whether the grounds are rendered or not. _Default value: true_
42-
- `walls.render` - _optional_ - set this value to control whether the walls are rendered or not. Note that with `render: false`, doors and windows will not be rendered either. You can use `alpha: 0` instead if you want to render doors and windows but not walls. _Default value: true_
43-
- `walls.alpha` - _optional_ - is a number between 0 and 1 setting the opacity of the walls, 0 being transparent and 1 opaque. _Default value: 1_
44-
- `walls.maxHeightCm` - _optional_ - will cap the rendering of walls to the height provided in centimeter, ignoring the actual height of walls.
45-
- `walls.showStructuralWalls` - _optional_ - set this value to control whether the structural walls (if any) are rendered or not. This also removes the controls from the viewer. _Default value: unset (use button control)_
46-
- `doors` - _optional_ - set this value to control whether the doors are rendered or not. _Default value: true_
47-
- `windows` - _optional_ - set this value to control whether the windows are rendered or not. _Default value: true_
48-
- `objects` - _optional_ - set this value to control whether the equipment (furniture, machinery, etc., if any) are rendered or not. _Default value: true_
49-
- `annotations` - _optional_ - set this value to control whether the annotations (if any) are rendered or not. This also removes the show/hide annotations button from the viewer. _Default value: unset (use button control)_
66+
- `grounds` - _optional_
67+
- `render` - _optional_ - set this value to control whether the grounds are rendered or not. _Default value: true_
68+
- `includeLayers` - _optional_ - set this value to chose which layers are to be rendered. Layers are string tags that you can set on each feature in the editor.
69+
- `omitLayers` - _optional_ - set this value to chose which layers are to **not** be rendered.
70+
- `walls` - _optional_
71+
- `render` - _optional_ - set this value to control whether the walls are rendered or not. Note that with `render: false`, doors and windows will not be rendered either. You can use `alpha: 0` instead if you want to render doors and windows but not walls. _Default value: true_
72+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
73+
- `alpha` - _optional_ - is a number between 0 and 1 setting the opacity of the walls, 0 being transparent and 1 opaque. _Default value: 1_
74+
- `maxHeightCm` - _optional_ - will cap the rendering of walls to the height provided in centimeter, ignoring the actual height of walls.
75+
- `showStructuralWalls` - _optional_ - set this value to control whether the structural walls (if any) are rendered or not. This also removes the controls from the viewer. _Default value: unset (use button control)_
76+
- `doors` - _optional_
77+
- `render` - _optional_ - set this value to control whether the doors are rendered or not. _Default value: true_
78+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
79+
- `windows` - _optional_
80+
- `render` - _optional_ - set this value to control whether the windows are rendered or not. _Default value: true_
81+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
82+
- `stairs` - _optional_
83+
- `render` - _optional_ - set this value to control whether the stairs are rendered or not. _Default value: true_
84+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
85+
- `objects` - _optional_
86+
- `render` - _optional_ - set this value to control whether the equipment (furniture, machinery, etc., if any) are rendered or not. _Default value: true_
87+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
88+
- `annotations` - _optional_
89+
- `render` - _optional_ - set this value to control whether the annotations (if any) are rendered or not. This also removes the show/hide annotations button from the viewer. _Default value: unset (use button control)_
90+
- `includeLayers, omitLayers` - _optional_ - same as `grounds` above
5091
- `compass` - _optional_ - set this value to control whether the compass (if any) is rendered or not. This also removes the show/hide compass button from the viewer. _Default value: unset (use button control)_
5192
- `floorplan.render` - _optional_ - set this value to control whether the floor plan image (if any) is rendered or not. Note that for multi-storey spaces, all levels will have their floor plan image rendered. _Default value: false_
5293
- `floorplan.alpha` - _optional_ - is a number between 0 and 1 setting the opacity of the floor plan image, 0 being transparent and 1 opaque. _Default value: 0.5_

0 commit comments

Comments
 (0)