-
Notifications
You must be signed in to change notification settings - Fork 45
feat: add subcircuit_id and pcb_group_id #539
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
subcircuit_id: string | null = null | ||
pcb_group_id: string | null = null |
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.
I think it's better to derive these on the fly rather than set them.
Generally you only want to store the ids you're creating so that there's only one source of truth
subcircuit_id: string | null = null | |
pcb_group_id: string | null = null |
@@ -44,6 +45,7 @@ export class FabricationNotePath extends PrimitiveComponent< | |||
} | |||
}), | |||
stroke_width: props.strokeWidth ?? 0.1, | |||
subcircuit_id: subcircuit?.subcircuit_id ?? 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.
this is correct!
|
||
export class Group<Props extends z.ZodType<any, any, any> = typeof groupProps> | ||
extends NormalComponent<Props> | ||
implements ISubcircuit | ||
{ | ||
subcircuit_id?: string |
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.
let's bring this back, and also put pcb_group_id
here
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.
this PR is mostly correct, just some minor things to move around!
…imitive or normal components
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
@imrishabh18 ok check out my fixes on this PR |
Uh oh!
There was an error while loading. Please reload this page.