Closed samreid closed 5 years ago
I moved this implementation from Circuit Construction Kit Common, and ported CCK to use it. I opened new issues for code that looks like it should use this new implementation. @jonathanolson can you please review?
@samreid Sims that require a symmetrical zig zag don't get drawn properly (see https://github.com/phetsims/capacitor-lab-basics/issues/258#issuecomment-486489352 and https://github.com/phetsims/faradays-law/issues/153#issuecomment-487789685).
I added a flag to determine which drawing pattern to use ( asymmetrical/symmetrical). It seems a bit hackish to have two drawing patterns in the same function, so your input on fixing this bug would be helpful.
The previous commit handles zig-zags for no-vertical orientation using the same API. Assigning to @jonathanolson to review.
Unassigning since @jonathanolson is requested for review, but let me know if I should be reassigned.
Looks good to me!
Thanks @jonathanolson. This issue seems good and ready to close, but note there is still outstanding work to be done in https://github.com/phetsims/faradays-law/issues/153#issuecomment-498742921
I added zig-zag code for the filament for the fuse in Circuit Construction Kit, in https://github.com/phetsims/circuit-construction-kit-common/issues/479 and https://github.com/phetsims/circuit-construction-kit-common/issues/469.
I asked on Slack if the zig-zag code should be moved to common code, general agreement was that it should be moved. We also identified several other places with zig-zagging code:
Here's the full conversation for archival purposes: