From 011e4a4fb9224c7cbc59acf540d82cfe165b94ba Mon Sep 17 00:00:00 2001 From: TheJanzap <16736682+TheJanzap@users.noreply.github.com> Date: Fri, 26 Jun 2026 10:24:12 +0200 Subject: [PATCH 1/2] docs(coordinate-systems): Coordinate length can be changed by canvas --- docs/basics/coordinate-systems.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/basics/coordinate-systems.mdx b/docs/basics/coordinate-systems.mdx index 83f2444d3..3c46e34b8 100644 --- a/docs/basics/coordinate-systems.mdx +++ b/docs/basics/coordinate-systems.mdx @@ -7,6 +7,8 @@ import Type from "@site/src/components/Type"; A coordinate 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. From e1f90c222f7d48812a5d31ff6856f385537e8a97 Mon Sep 17 00:00:00 2001 From: TheJanzap <16736682+TheJanzap@users.noreply.github.com> Date: Fri, 26 Jun 2026 10:25:07 +0200 Subject: [PATCH 2/2] docs(canvas): Remove deprecated length-as-ratio mention --- docs/basics/canvas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basics/canvas.md b/docs/basics/canvas.md index 1837b1b0d..e36bae91a 100644 --- a/docs/basics/canvas.md +++ b/docs/basics/canvas.md @@ -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.