-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Schematic capacitor & resistor symbol fix #119
Conversation
0d4a39a
to
8729f95
Compare
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
@seveibar Can you review this please? this part of the What this PR does is, that the prop name of symbol_name is matched with the schematic-symbol list and then getting added into the circuit-json. If this is okay, then will similarly update for other normal-components which are failing in tests. I hope I am making sense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to take a closer look in ~1 hr, saw something a but weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to take a closer look in ~1 hr, saw something a but weird
Ok sorry for the many reviews, the tests are correctly throwing, every symbol has an orientation attached to it e.g. |
@@ -189,7 +189,7 @@ export class NormalComponent< | |||
const { schematicSymbolName } = this.config | |||
if (!schematicSymbolName) return | |||
// TODO switch between horizontal and vertical based on schRotation | |||
const symbol_name = `${this.config.schematicSymbolName}_horz` | |||
const symbol_name = `${this.config.schematicSymbolName}` | |||
|
|||
const symbol = (symbols as any)[symbol_name] as SchSymbol | undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the errors in this file are basically just saying you need to go refactor every component that defined the symbol without orientation, which is fine.
660be90
to
d0625c5
Compare
No description provided.