@tscircuit/eval 0.0.305 → 0.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,8 +7,9 @@ export const getPlatformConfig = (): PlatformConfig => ({
7
7
  partsEngine: jlcPartsEngine,
8
8
  footprintLibraryMap: {
9
9
  kicad: async (footprintName: string) => {
10
- const url = `${KICAD_FOOTPRINT_CACHE_URL}/${footprintName}.circuit.json`
11
- const res = await fetch(url)
10
+ const baseUrl = `${KICAD_FOOTPRINT_CACHE_URL}/${footprintName}`
11
+ const circuitJsonUrl = `${baseUrl}.circuit.json`
12
+ const res = await fetch(circuitJsonUrl)
12
13
  const raw = await res.json()
13
14
  // Filter pcb_silkscreen_text to only keep entries with text === "REF**"
14
15
  // Apply filtering only to elements coming from the kicad_mod_server response
@@ -17,7 +18,11 @@ export const getPlatformConfig = (): PlatformConfig => ({
17
18
  el?.type === "pcb_silkscreen_text" ? el?.text === "REF**" : true,
18
19
  )
19
20
  : raw
20
- return { footprintCircuitJson: filtered }
21
+ const wrlUrl = `${baseUrl}.wrl`
22
+ return {
23
+ footprintCircuitJson: filtered,
24
+ cadModel: { model_wrl_url: wrlUrl },
25
+ }
21
26
  },
22
27
  },
23
28
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/eval",
3
3
  "main": "dist/lib/index.js",
4
- "version": "0.0.305",
4
+ "version": "0.0.306",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "bun run build:lib && bun run build:webworker && bun run build:blob-url && bun run build:runner && bun run build:worker-wrapper",