From f738a4eb4c073e9f34ea0e10aed706e1eef222b5 Mon Sep 17 00:00:00 2001 From: arne Date: Wed, 14 Aug 2024 12:42:26 +0200 Subject: [PATCH] Fix header, always make it look sidewards --- src/_includes/filters/header.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_includes/filters/header.js b/src/_includes/filters/header.js index 8fe5021..382c077 100644 --- a/src/_includes/filters/header.js +++ b/src/_includes/filters/header.js @@ -60,7 +60,6 @@ const tenPrint = content => { const radius = width / numTiles / 2 const xs = [...range(numTiles + 1)].map(x => width * (x / numTiles)) const ys = [...range(numTiles + 1)].map(y => width * (y / numTiles)) - const startAngle = random() < 0.5 ? quarterTau : 0 return ["svg.ten-print", {"viewBox": `${-radius} ${-radius} ${width + 2*radius} ${height + 2*radius}`, @@ -69,7 +68,7 @@ const tenPrint = content => { ["style", ".arc { fill: none; stroke: none; }"], // avoid flash of unstyled content // pre-define our args ["defs", - [arc, {"id": "arc-a", "shape": {"cx": 0, "cy": 0, "start": startAngle, "end": startAngle + 3 * quarterTau, radius}}], + [arc, {"id": "arc-a", "shape": {"cx": 0, "cy": 0, "start": 0, "end": 3 * quarterTau, radius}}], ["use", {"href": "#arc-a", "id": "arc-b", "transform": "rotate(90)"}]], // the args with predefined rotations ["g", {"transform": "translate(0.5 0.5)"}, ys.map(y => xs.map(x =>