Open PartyTonight opened 10 years ago
@property def pin_labels(self): L = [] for p in self.pins: p = BoundPin(p, self) if p.pin.name: L.append(text(p.pin.name, p.x, p.y, 0.03)) return s2d.rotate(reduce(operator.add, L),self.rot) if L else None
This rotates the labels but they are not in the correct position
Hi Matt,
We are trying to figure out how to rotare the pin_labels, we tryed modifying the pin_labels property but there is something we are missing.
class Component(object): ''' Generic PCB component. ''' def init(self, x, y, rot=0, name=''): ''' Constructs a Component object x X position y Y position rotation angle (degrees) name String ''' self.x = x self.y = y self.rot = rot