From ebf0fc1ccc4472906a93016e20092ccce259993e Mon Sep 17 00:00:00 2001 From: Nicolai Weitkemper Date: Fri, 7 Aug 2026 22:34:48 +0200 Subject: [PATCH] fix deprecated `plus.circle` symbol --- docs/manual.typ | 8 ++++---- tests/anchors/test.typ | 6 +++--- tests/node/layer/test.typ | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/manual.typ b/docs/manual.typ index e95ed6ea..1826194b 100644 --- a/docs/manual.typ +++ b/docs/manual.typ @@ -368,7 +368,7 @@ Avoid importing everything with `*` as many internal functions are also exported snap: false), // prevent edges snapping to this node edge((0,+1), (1,0), "..|>", corner: left), edge((0,-1), (1,0), "-|>", corner: right), - node((1,0), text(white, $ plus.circle $), inset: 2pt, fill: black), + node((1,0), text(white, $ plus.o $), inset: 2pt, fill: black), edge("-|>"), ) ```), @@ -625,7 +625,7 @@ For example, `` and `(name: "A", anchor: "north")` are equivalent coord #diagram( node-shape: rect, node(circle(stroke: white, text(white, $Delta$)), name: , fill: navy), - node(, circle(fill: white, radius: 6pt, $ plus.circle $)), + node(, circle(fill: white, radius: 6pt, $ plus.o $)), edge((, 25%, ), "l,u", "-O"), edge((, 50%, ), "l,l", "-@"), edge((, 75%, ), "l,d", "-O"), @@ -880,8 +880,8 @@ You add or tweak mark styles by modifying `fletcher.MARKS`, as described in @mar Marks can be flipped by appending `'` to the name. #code-example-row(```typ -#diagram(edge("harpoon'-hook", stroke: 1pt)) -#diagram(edge("hook'-harpoon", stroke: 1pt)) +#diagram(edge("harpoon'-hook", stroke: 1pt)) +#diagram(edge("hook'-harpoon", stroke: 1pt)) ```) If there is a common mark style that you believe should be included with `fletcher` by default, please #link("https://github.com/Jollywatt/typst-fletcher")[open an issue]! diff --git a/tests/anchors/test.typ b/tests/anchors/test.typ index 3a595a47..7e1e05ad 100644 --- a/tests/anchors/test.typ +++ b/tests/anchors/test.typ @@ -71,7 +71,7 @@ Node positions depending on other nodes' anchors node((1,1), [Beta], name: , fill: yellow), node(, $ times.circle $), edge(, "->", auto), - node((rel: (0pt, -20pt), to: ), $ plus.circle $, inset: 0pt, name: ), + node((rel: (0pt, -20pt), to: ), $ plus.o $, inset: 0pt, name: ), node((rel: (10pt, 0pt), to: ), $ f $), edge( , @@ -92,8 +92,8 @@ Diagram requiring two coordinate resolution passes node(enclose: (, ), stroke: yellow, name: , text(yellow)[enclose node\ with anchor]) // node that depends on the anchors of an enclosing node - node(, $ plus.circle $, name: , stroke: teal) + node(, $ plus.o $, name: , stroke: teal) - // edge depending on + // edge depending on edge(, "->", (rel: (2cm,0cm)), stroke: 1pt + teal) }) diff --git a/tests/node/layer/test.typ b/tests/node/layer/test.typ index 66ca8391..d1e4f35c 100644 --- a/tests/node/layer/test.typ +++ b/tests/node/layer/test.typ @@ -12,7 +12,7 @@ node((0,+1), $G(s)$, fill: white), edge((0,+1), (1,0), "-|>", corner: left), edge((0,-1), (1,0), "..|>", corner: right, layer: -2), - node((1,0), text(white, $ plus.circle $), inset: 2pt, fill: black), + node((1,0), text(white, $ plus.o $), inset: 2pt, fill: black), edge("-|>"), node( enclose: ((0,+1), (0,-1)), @@ -21,4 +21,4 @@ inset: 10pt, snap: false, ), -) \ No newline at end of file +)