Skip to content

add plcc fp#469

Open
Sahil-Gupta584 wants to merge 2 commits intotscircuit:mainfrom
Sahil-Gupta584:add-plcc-fp
Open

add plcc fp#469
Sahil-Gupta584 wants to merge 2 commits intotscircuit:mainfrom
Sahil-Gupta584:add-plcc-fp

Conversation

@Sahil-Gupta584
Copy link

part #2

Comment on lines +1 to +18
import { expect, test } from "bun:test"
import { compareFootprinterVsKicad } from "../fixtures/compareFootprinterVsKicad"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"

test("parity/plcc44", async () => {
const { combinedFootprintElements, booleanDifferenceSvg } =
await compareFootprinterVsKicad(
"plcc44_w16.6_h16.6_p1.27mm",
"Package_LCC.pretty/PLCC-44_16.6x16.6mm_P1.27mm.circuit.json",
)

const svgContent = convertCircuitJsonToPcbSvg(combinedFootprintElements)
expect(svgContent).toMatchSvgSnapshot(import.meta.path, "plcc44_parity")
expect(booleanDifferenceSvg).toMatchSvgSnapshot(
import.meta.path,
"plcc44_parity._boolean_difference",
)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test file name 'plcc_kikac_parity.test.ts' contains a typo ('kikac' instead of 'kicad') and doesn't follow proper kebab-case naming convention. The file name should be consistent with the project naming standards and should be 'plcc-kicad-parity.test.ts' to match kebab-case convention and correct the spelling error.

Spotted by Graphite Agent (based on custom rule: Custom rule)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sahil-Gupta584 your test file name is wrong.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh my bad

Copy link
Member

@techmannih techmannih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref text is overlapping with the pads

pl: length.optional(),
thermalpad: z.union([z.literal(true), dim2d]).optional(),
legsoutside: z.boolean().default(false),
pcdfe: length.optional(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this one?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its Pad Center Distance From Edge, actaully my parity test was failing as you know in pr.

I have introduced this to dyanmically able to change position of pads from center.

Earlier there was only one option of legsoutside?: boolean but this was enough to perfectly place pads to kikad footprint.

I have take care for other taste to not break.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should i Add comments for this ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sahil-Gupta584 if you are using this flags then please describe it with . describe()

Copy link
Member

@techmannih techmannih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pin 1 indicator is wrong

@Sahil-Gupta584
Copy link
Author

Ref text is overlapping with the pads

Do i need to place it to middle of top side?

@techmannih
Copy link
Member

Yes , it should be to big and bot too small, take help from others footprint how's there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants