[Pattern] use 1-axis instead of axis-1
This commit is contained in:
parent
22b53a930c
commit
c064ee9d8f
@ -745,7 +745,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
|||||||
self
|
self
|
||||||
"""
|
"""
|
||||||
for entry in chain(chain_elements(self.shapes, self.refs, self.labels), self.ports.values()):
|
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
|
return self
|
||||||
|
|
||||||
def mirror_elements(self, across_axis: int = 0) -> Self:
|
def mirror_elements(self, across_axis: int = 0) -> Self:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user