circuit-json-to-gltf 0.0.50 → 0.0.52

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -14660,11 +14660,8 @@ async function renderBoardLayer(circuitJson, options) {
14660
14660
  matchBoardAspectRatio: true,
14661
14661
  backgroundColor,
14662
14662
  drawPaddingOutsideBoard: false,
14663
+ showSolderMask: true,
14663
14664
  colorOverrides: {
14664
- soldermask: {
14665
- top: "#4CAF50",
14666
- bottom: "#4CAF50"
14667
- },
14668
14665
  copper: {
14669
14666
  top: copperColor,
14670
14667
  bottom: copperColor
@@ -15201,10 +15198,6 @@ async function convertCircuitJsonTo3D(circuitJson, options = {}) {
15201
15198
  if (box.mesh && modelScaleFactor !== 1) {
15202
15199
  box.mesh = scaleMesh(box.mesh, modelScaleFactor);
15203
15200
  }
15204
- if (box.mesh && cad.position && usingObjFormat) {
15205
- const meshBottom = box.mesh.boundingBox.min.y;
15206
- box.center.y -= meshBottom;
15207
- }
15208
15201
  if (!box.mesh) {
15209
15202
  box.color = componentColor;
15210
15203
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "circuit-json-to-gltf",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.50",
5
+ "version": "0.0.52",
6
6
  "scripts": {
7
7
  "test": "bun test tests/",
8
8
  "format": "biome format --write .",
@@ -33,7 +33,7 @@
33
33
  "@vitejs/plugin-react": "^5.0.0",
34
34
  "bun-match-svg": "^0.0.12",
35
35
  "circuit-json": "^0.0.312",
36
- "circuit-to-svg": "^0.0.240",
36
+ "circuit-to-svg": "0.0.283",
37
37
  "graphics-debug": "^0.0.65",
38
38
  "looks-same": "^9.0.1",
39
39
  "poppygl": "^0.0.16",