[Pattern] use 1-axis instead of axis-1
This commit is contained in:
parent
c18249c4d5
commit
dca0df940b
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue