Closed pozitron57 closed 7 months ago
Added in 40311edb6be70cd9ae8886e70627db23edb660f2.
Added in 40311ed.
Thanks! I tested it a bit. As far as I understand, if scale, scalex and scaley are applied together,
only the last option is used. I think it is sane when scale is mixed with scalex and/or scaley,
but .scalex(3).scaley(2)
can work together just fine.
Yeah, one function overwrote the other. f507534cf95f0da1f051a2a87e65d37aee447f7c should fix it so both may be applied at the same time.
Consider the Inductor2 element:![image](https://github.com/cdelker/schemdraw/assets/9392655/97e548a4-fb5a-454b-8b18-c336cd39b206)
I propose to add![image](https://github.com/cdelker/schemdraw/assets/9392655/18a2b22c-41bb-49e5-bf72-1eb7b96c7960)
.scalex()
method to stretch the element in x direction like so:and![image](https://github.com/cdelker/schemdraw/assets/9392655/b2d1a252-9904-48f2-9b75-a78232f34de6)
.scaley()
to stretch in perpendicular direction:Other use cases: sometimes it is useful to show that two capacitors differ in plate area and/or distance between plates;
.scalex
and.scaley
will be handy for that. Perhaps, it will be more semantic to use something like(
A
for area andd
for distance)