fixup! [Mirrorable / Flippable] Bifurcate mirror into flip (relative to line) vs mirror (relative to own offset/origin)

This commit is contained in:
Jan Petykiewicz 2026-02-15 00:49:34 -08:00
commit 2d63e72802
6 changed files with 41 additions and 17 deletions

View file

@ -26,8 +26,9 @@ if TYPE_CHECKING:
@functools.total_ordering
class Ref(
FlippableImpl, PositionableImpl, RotatableImpl, ScalableImpl,
PositionableImpl, RotatableImpl, ScalableImpl, Mirrorable,
PivotableImpl, Copyable, RepeatableImpl, AnnotatableImpl,
FlippableImpl, Flippable,
):
"""
`Ref` provides basic support for nesting Pattern objects within each other.
@ -169,8 +170,6 @@ class Ref(
def mirror(self, axis: int = 0) -> Self:
self.mirror_target(axis)
self.rotation *= -1
if self.repetition is not None:
self.repetition.mirror(axis)
return self
def mirror_target(self, axis: int = 0) -> Self: