|
41 | 41 |
|
42 | 42 | /// The width of the diagram. This can be one of the following: |
43 | 43 | /// - A `length`, defining just the width of the data area, |
44 | | - /// excluding axes, labels, title etc. |
| 44 | + /// excluding axes, labels, title, etc. To set a `length` including |
| 45 | + /// everything, use `0% + length`, see the next option. |
45 | 46 | /// - A `ratio` or `relative` where the ratio part is relative to the width |
46 | | - /// of the parent that the diagram is placed in. This is not allowed if the |
47 | | - /// parent has an unbounded width, e.g., a page with `width: auto`. |
| 47 | + /// of the parent that the diagram is placed in. This includes axes, labels, |
| 48 | + /// title, etc. This is not allowed if the parent has an unbounded width, |
| 49 | + /// e.g., a page with `width: auto`. |
48 | 50 | /// - Or `auto` in which case the width is computed automatically based on |
49 | 51 | /// @diagram.aspect-ratio. |
50 | 52 | /// -> length | relative | auto |
51 | 53 | width: 6cm, |
52 | 54 |
|
53 | 55 | /// The height of the diagram. This can be one of the following: |
54 | 56 | /// - A `length`, defining just the height of the data area, |
55 | | - /// excluding axes, labels, title etc. |
| 57 | + /// excluding axes, labels, title, etc. To set a `length` including |
| 58 | + /// everything, use `0% + length`, see the next option. |
56 | 59 | /// - A `ratio` or `relative` where the ratio part is relative to the height |
57 | | - /// of the parent that the diagram is placed in. This is not allowed if the |
58 | | - /// parent has an unbounded height, e.g., a page with `height: auto`. |
| 60 | + /// of the parent that the diagram is placed in. This includes axes, labels, |
| 61 | + /// title, etc. This is not allowed if the parent has an unbounded height, |
| 62 | + /// e.g., a page with `height: auto`. |
59 | 63 | /// - Or `auto` in which case the height is computed automatically based on |
60 | 64 | /// @diagram.aspect-ratio. |
61 | 65 | /// -> length | relative | auto |
|
0 commit comments