Skip to content

Commit 45e70b3

Browse files
committed
Add documentaiton for marker-"holes"
1 parent a738955 commit 45e70b3

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

wiki/customization/Markers.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,22 @@ example-shape-marker: {
185185
position: { x: 1, y: 64, z: -23 }
186186
label: "Example Shape Marker"
187187
shape: [
188-
{ x: 1, z: -23 }
189-
{ x: 1, z: -24 }
190-
{ x: 1, z: -25 }
191-
{ x: 2, z: -25 }
192-
{ x: 3, z: -25 }
188+
{ x: -10, z: -10 }
189+
{ x: -10, z: 10 }
190+
{ x: 10, z: 10 }
191+
{ x: 10, z: -10 }
193192
]
194193
shape-y: 64
195194
196195
# Optional:
196+
holes: [
197+
[
198+
{ x: 5, z: -5 }
199+
{ x: 5, z: 5 }
200+
{ x: -5, z: 5 }
201+
{ x: -5, z: -5 }
202+
]
203+
]
197204
detail: "This is a <b>shape</b> marker"
198205
#link: "https://google.de/"
199206
new-tab: false
@@ -212,6 +219,7 @@ example-shape-marker: {
212219
- `shape` is an Array of x,z positions (without y) that define the shape. The shape will be drawn between the positions,
213220
in their order, the last position is automatically connected to the first position
214221
- `shape-y` is the y-position of the shape
222+
- `holes` is an optional Array of shapes (like above) that will be subtracted from the main shape, creating one or more "holes" in the shape.
215223
- `detail` is the text that is shown when you click on the shape. This property allows using any html-tags
216224
- `link` is an optional url that is opened when you click on the shape
217225
- `new-tab` defines whether the above link should be opened in a new tab or not
@@ -244,6 +252,14 @@ example-extrude-marker: {
244252
shape-max-y: 72
245253
246254
# Optional:
255+
holes: [
256+
[
257+
{ x: 5, z: -5 }
258+
{ x: 5, z: 5 }
259+
{ x: -5, z: 5 }
260+
{ x: -5, z: -5 }
261+
]
262+
]
247263
detail: "This is a <b>extrude</b> marker"
248264
#link: "https://google.de/"
249265
new-tab: false
@@ -263,6 +279,7 @@ example-extrude-marker: {
263279
in their order, the last position is automatically connected to the first position
264280
- `shape-min-y` is the lower y-position of the shape
265281
- `shape-max-y` is the upper y-position of the shape
282+
- `holes` is an optional Array of shapes (like above) that will be subtracted from the main shape, creating one or more "holes" in the shape.
266283
- `detail` is the text that is shown when you click on the shape. This property allows using any html-tags
267284
- `link` is an optional url that is opened when you click on the shape
268285
- `new-tab` defines whether the above link should be opened in a new tab or not

0 commit comments

Comments
 (0)