Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/basics/canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ You can now call the draw functions within the body and they'll produce some gra

The canvas does not have typical `width` and `height` parameters. Instead its size will grow and shrink to fit the drawn graphic.

By default 1 [coordinate](/basics/coordinate-systems) unit is `1cm`, this can be changed by setting the `length` parameter. If a ratio is given, the length will be the size of the canvas' parent's width!
By default 1 [coordinate](/basics/coordinate-systems) unit is `1cm`, this can be changed by setting the `length` parameter.
2 changes: 2 additions & 0 deletions docs/basics/coordinate-systems.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Type from "@site/src/components/Type";

A <Type>coordinate</Type> is a position on the canvas on which the picture is drawn. They take the form of dictionaries and the following subsections define the key-value pairs for each system. Some systems have a more implicit form as an array of values and CeTZ attempts to infer the system based on the element types.

By default 1 coordinate unit is `1cm`, this can be changed by setting the `length` parameter of [`canvas`](/api/internal/canvas).

## XYZ

Defines a point `x` units right, `y` units upward and `z` units away.
Expand Down
Loading