You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -297,15 +299,17 @@ Map area style in blurred state.
297
299
) }}
298
300
{{ /if }}
299
301
300
-
{{ use: partial-rect-layout(
301
-
prefix = ${prefix}
302
+
{{ use: partial-rect-layout-width-height(
303
+
prefix = ${prefix},
304
+
hostName = ${componentNameReadable},
305
+
hintPreserveAspect = true,
306
+
hintGeoRectLayoutApproaches = true,
307
+
componentNameInLink = ${componentNameInLink}
302
308
) }}
303
309
304
310
#${prefix} layoutCenter(Array) = null
305
311
306
-
`layoutCenter` and `layoutSize` provides layout strategy other than `left/right/top/bottom/width/height`.
307
-
308
-
When using `left/right/top/bottom/width/height`, it is hard to put the map inside a box area with a fixed width-height ratio. In this case, `layoutCenter` attribute can be used to define the center position of map, and `layoutSize` can be used to define the size of map. For example:
312
+
`layoutCenter` and `layoutSize` can specify the rectangular area allocated to ${componentNameReadable}, where `layoutCenter` defines the center position of the area, and `layoutSize` defines the size of the area. For example:
309
313
310
314
```ts
311
315
layoutCenter: ['30%', '30%'],
@@ -317,10 +321,26 @@ layoutSize: 100
317
321
318
322
After setting these two values, `left/right/top/bottom/width/height` becomes invalid.
319
323
324
+
{{ use: partial-geo-rect-layout-approaches-hint(
325
+
hintGeoRectLayoutApproaches = true,
326
+
componentNameInLink = ${componentNameInLink}
327
+
) }}
328
+
329
+
320
330
#${prefix} layoutSize(number|string)
321
331
322
-
Size of map, see `layoutCenter` for more information. Percentage relative to screen width, and absolute pixel values are supported.
332
+
Size of map, see [layoutCenter](${componentNameInLink}.layoutCenter) for more information. Percentage relative to container width/height, and absolute pixel values are supported.
Copy file name to clipboardExpand all lines: en/option/partial/rect-layout.md
+64-4Lines changed: 64 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,21 @@
23
23
24
24
Distance between ${hostNameStr} and the left side of the container.
25
25
26
-
`left` can be a pixel value like `20`; it can also be a percentage value relative to container width like `'20%'`; and it can also be `'left'`, `'center'`, or `'right'`.
26
+
`left` can be a pixel value like `20`; it can also be a percentage value relative to the container width like `'20%'`; and it can also be `'left'`, `'center'`, or `'right'`.
27
27
28
28
If the `left` value is set to be `'left'`, `'center'`, or `'right'`, then the component will be aligned automatically based on position.
@@ -35,10 +46,21 @@ If the `left` value is set to be `'left'`, `'center'`, or `'right'`, then the co
35
46
36
47
Distance between ${hostNameStr} and the top side of the container.
37
48
38
-
`top` can be a pixel value like `20`; it can also be a percentage value relative to container width like `'20%'`; and it can also be `'top'`, `'middle'`, or `'bottom'`.
49
+
`top` can be a pixel value like `20`; it can also be a percentage value relative to the container height like `'20%'`; and it can also be `'top'`, `'middle'`, or `'bottom'`.
39
50
40
51
If the `top` value is set to be `'top'`, `'middle'`, or `'bottom'`, then the component will be aligned automatically based on position.
0 commit comments