From 11cef9e5f638b82a871bf59bb64789db53c0698a Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Thu, 11 Jan 2024 10:39:03 +0100 Subject: [PATCH] docs: microoptimize graph a bit --- docs/design/util/graphics.typ | 5 ++++- flake.nix | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/design/util/graphics.typ b/docs/design/util/graphics.typ index f097b51..03617a1 100644 --- a/docs/design/util/graphics.typ +++ b/docs/design/util/graphics.typ @@ -219,8 +219,11 @@ ) } +// i wonder if layouting could be automatized +// if the graph is guaranteed to be acyclic, +// then we could just lay them out in "columns" #let graph-example = canvas({ - let x = 3 + let x = 2.25 let y = -3 node((-x, -0.75 * y), ty: "const", body: "\"base.png\"", name: "base") node((x, -0.75 * y), ty: "const", body: "\"stencil.png\"", name: "stencil") diff --git a/flake.nix b/flake.nix index ffbb283..d8e5186 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,8 @@ }; packages = with pkgs; [ - just nushell typst + just nushell + typst typst-lsp mold ]; })