circuit-json-to-pnp-csv
Advanced tools
Comparing version
@@ -5,2 +5,3 @@ // src/index.ts | ||
import { su } from "@tscircuit/soup-util"; | ||
var fixedDecimals = 3; | ||
var convertCircuitJsonToPickAndPlaceRows = (circuitJson, opts = {}) => { | ||
@@ -28,4 +29,4 @@ opts.flip_y_axis ??= false; | ||
Designator: row.designator, | ||
"Mid X": row.mid_x, | ||
"Mid Y": row.mid_y, | ||
"Mid X": row.mid_x.toFixed(fixedDecimals), | ||
"Mid Y": row.mid_y.toFixed(fixedDecimals), | ||
Layer: row.layer, | ||
@@ -32,0 +33,0 @@ Rotation: row.rotation |
@@ -5,3 +5,3 @@ { | ||
"main": "dist/index.js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"types": "dist/index.d.ts", | ||
@@ -13,3 +13,4 @@ "type": "module", | ||
"scripts": { | ||
"build": "tsup-node ./src/index.ts --format esm --dts --sourcemap" | ||
"build": "tsup-node ./src/index.ts --format esm --dts --sourcemap", | ||
"format": "biome format --write ." | ||
}, | ||
@@ -16,0 +17,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
7667
3.12%50
2.04%