@tscircuit/cli 0.1.960 → 0.1.961

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.
package/dist/cli/main.js CHANGED
@@ -74389,7 +74389,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
74389
74389
  import { execSync as execSync2 } from "node:child_process";
74390
74390
  var import_semver2 = __toESM2(require_semver2(), 1);
74391
74391
  // package.json
74392
- var version = "0.1.959";
74392
+ var version = "0.1.960";
74393
74393
  var package_default = {
74394
74394
  name: "@tscircuit/cli",
74395
74395
  main: "dist/cli/main.js",
@@ -74452,7 +74452,7 @@ var package_default = {
74452
74452
  semver: "^7.6.3",
74453
74453
  sharp: "0.32.6",
74454
74454
  tempy: "^3.1.0",
74455
- tscircuit: "^0.0.1332-libonly",
74455
+ tscircuit: "^0.0.1350-libonly",
74456
74456
  tsx: "^4.7.1",
74457
74457
  "typed-ky": "^0.0.4",
74458
74458
  zod: "^3.23.8"
@@ -176147,7 +176147,10 @@ var registerBuild = (program3) => {
176147
176147
  // lib/shared/snapshot-project.ts
176148
176148
  import fs56 from "node:fs";
176149
176149
  import path56 from "node:path";
176150
- import { convertCircuitJsonToGltf as convertCircuitJsonToGltf5 } from "circuit-json-to-gltf";
176150
+ import {
176151
+ convertCircuitJsonToGltf as convertCircuitJsonToGltf5,
176152
+ getBestCameraPosition
176153
+ } from "circuit-json-to-gltf";
176151
176154
  import {
176152
176155
  convertCircuitJsonToPcbSvg as convertCircuitJsonToPcbSvg3,
176153
176156
  convertCircuitJsonToSchematicSvg as convertCircuitJsonToSchematicSvg3
@@ -176258,10 +176261,8 @@ var snapshotProject = async ({
176258
176261
  if (!(glbBuffer instanceof ArrayBuffer)) {
176259
176262
  throw new Error("Expected ArrayBuffer from convertCircuitJsonToGltf with glb format");
176260
176263
  }
176261
- png3d = await renderGLTFToPNGBufferFromGLBBuffer2(glbBuffer, {
176262
- camPos: [10, 10, 10],
176263
- lookAt: [0, 0, 0]
176264
- });
176264
+ const cameraOptions = getBestCameraPosition(circuitJson);
176265
+ png3d = await renderGLTFToPNGBufferFromGLBBuffer2(glbBuffer, cameraOptions);
176265
176266
  } catch (error) {
176266
176267
  const errorMessage = error instanceof Error ? error.message : String(error);
176267
176268
  if (errorMessage.includes("No pcb_board found in circuit JSON")) {
package/dist/lib/index.js CHANGED
@@ -60414,7 +60414,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
60414
60414
  }));
60415
60415
  };
60416
60416
  // package.json
60417
- var version = "0.1.959";
60417
+ var version = "0.1.960";
60418
60418
  var package_default = {
60419
60419
  name: "@tscircuit/cli",
60420
60420
  main: "dist/cli/main.js",
@@ -60477,7 +60477,7 @@ var package_default = {
60477
60477
  semver: "^7.6.3",
60478
60478
  sharp: "0.32.6",
60479
60479
  tempy: "^3.1.0",
60480
- tscircuit: "^0.0.1332-libonly",
60480
+ tscircuit: "^0.0.1350-libonly",
60481
60481
  tsx: "^4.7.1",
60482
60482
  "typed-ky": "^0.0.4",
60483
60483
  zod: "^3.23.8"
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  ".": "./dist/cli/main.js",
6
6
  "./lib": "./dist/lib/index.js"
7
7
  },
8
- "version": "0.1.960",
8
+ "version": "0.1.961",
9
9
  "devDependencies": {
10
10
  "@babel/standalone": "^7.26.9",
11
11
  "@biomejs/biome": "^1.9.4",
@@ -60,7 +60,7 @@
60
60
  "semver": "^7.6.3",
61
61
  "sharp": "0.32.6",
62
62
  "tempy": "^3.1.0",
63
- "tscircuit": "^0.0.1332-libonly",
63
+ "tscircuit": "^0.0.1350-libonly",
64
64
  "tsx": "^4.7.1",
65
65
  "typed-ky": "^0.0.4",
66
66
  "zod": "^3.23.8"