From c064ee9d8f9e5e0e23a4264c3352c2bbb18df5ae Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 20 Nov 2025 13:05:30 -0800 Subject: [PATCH] [Pattern] use 1-axis instead of axis-1 --- masque/pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/pattern.py b/masque/pattern.py index d870a43..7e0a79e 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -745,7 +745,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable): self """ for entry in chain(chain_elements(self.shapes, self.refs, self.labels), self.ports.values()): - cast('Positionable', entry).offset[across_axis - 1] *= -1 + cast('Positionable', entry).offset[1 - across_axis] *= -1 return self def mirror_elements(self, across_axis: int = 0) -> Self: