[RenderPather] add wrapped label/ref/polygon/rect functions

This commit is contained in:
Jan Petykiewicz 2025-11-11 20:40:13 -08:00
parent e3c1c46b10
commit 4ce7525263

View File

@ -6,6 +6,7 @@ from collections.abc import Sequence, Mapping, MutableMapping
import copy
import logging
from collections import defaultdict
from functools import wraps
from pprint import pformat
from numpy import pi
@ -524,4 +525,23 @@ class RenderPather(PortList, PatherMixin):
self._dead = True
return self
@wraps(Pattern.label)
def label(self, *args, **kwargs) -> Self:
self.pattern.label(*args, **kwargs)
return self
@wraps(Pattern.ref)
def ref(self, *args, **kwargs) -> Self:
self.pattern.ref(*args, **kwargs)
return self
@wraps(Pattern.polygon)
def polygon(self, *args, **kwargs) -> Self:
self.pattern.polygon(*args, **kwargs)
return self
@wraps(Pattern.rect)
def rect(self, *args, **kwargs) -> Self:
self.pattern.rect(*args, **kwargs)
return self