circuit-json-to-kicad 0.0.2 → 0.0.4

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 +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -730,7 +730,9 @@ var AddSchematicTracesStage = class extends ConverterStage {
730
730
  createWireFromEdge(edge) {
731
731
  const wire = new Wire();
732
732
  if (!this.ctx.c2kMatSch) {
733
- throw new Error("Schematic transformation matrix not initialized in context");
733
+ throw new Error(
734
+ "Schematic transformation matrix not initialized in context"
735
+ );
734
736
  }
735
737
  const from = applyToPoint2(this.ctx.c2kMatSch, {
736
738
  x: edge.from.x,
@@ -758,14 +760,16 @@ var AddSchematicTracesStage = class extends ConverterStage {
758
760
  */
759
761
  createJunction(junction) {
760
762
  if (!this.ctx.c2kMatSch) {
761
- throw new Error("Schematic transformation matrix not initialized in context");
763
+ throw new Error(
764
+ "Schematic transformation matrix not initialized in context"
765
+ );
762
766
  }
763
767
  const { x, y } = applyToPoint2(this.ctx.c2kMatSch, {
764
768
  x: junction.x,
765
769
  y: junction.y
766
770
  });
767
771
  const kicadJunction = new Junction({
768
- at: [x, y, 0],
772
+ at: [x, y],
769
773
  diameter: 0
770
774
  // 0 means use default diameter
771
775
  });
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "circuit-json-to-kicad",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
10
  "build": "tsup-node lib/index.ts --format esm --dts",
11
- "download-demos": "git clone --depth 1 --filter=blob:none --sparse git@gitlab.com:kicad/code/kicad.git kicad-demos && cd kicad-demos && git sparse-checkout set demos",
11
+ "download-demos": "git clone --depth 1 --filter=blob:none --sparse https://gitlab.com/kicad/code/kicad.git kicad-demos && cd kicad-demos && git sparse-checkout set demos",
12
12
  "typecheck": "bunx tsc --noEmit",
13
13
  "format": "biome format --write .",
14
14
  "format:check": "biome format ."