Skip to content

Commit

Permalink
as any to some types
Browse files Browse the repository at this point in the history
the types passed into footprinter function and autorouting-dataset
  • Loading branch information
ShiboSoftwareDev committed Sep 24, 2024
1 parent 931896f commit fd3b17e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Circuit {
)
})

return circuitToSvg.circuitJsonToPcbSvg(this.getCircuitJson())
return circuitToSvg.convertCircuitJsonToPcbSvg(this.getCircuitJson())
}

async preview(
Expand Down
2 changes: 1 addition & 1 deletion lib/components/base-components/NormalComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class NormalComponent<
if (!footprint) return
if (typeof footprint === "string") {
const fpSoup = fp.string(footprint).soup()
const fpComponents = createComponentsFromSoup(fpSoup)
const fpComponents = createComponentsFromSoup(fpSoup as any) // Remove as any when footprinter gets updated
this.addAll(fpComponents)
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/components/base-components/PrimitiveComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export abstract class PrimitiveComponent<
return super.renderError(message)
}
// TODO this needs to be cleaned up at some point!
this.root?.db.pcb_error.insert(message)
this.root?.db.pcb_placement_error.insert(message)
}

getString(): string {
Expand Down
4 changes: 2 additions & 2 deletions lib/components/primitive-components/Trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ export class Trace extends PrimitiveComponent<typeof traceProps> {

// Cache the PCB obstacles, they'll be needed for each segment between
// ports/hints
const [obstacles, errGettingObstacles] = tryNow(() =>
getObstaclesFromSoup(this.root!.db.toArray()),
const [obstacles, errGettingObstacles] = tryNow(
() => getObstaclesFromSoup(this.root!.db.toArray() as any), // Remove as any when autorouting-dataset gets updated
)

if (errGettingObstacles) {
Expand Down

0 comments on commit fd3b17e

Please sign in to comment.