circuit-json-to-kicad 0.0.2 → 0.0.3
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/index.js +6 -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(
|
|
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,7 +760,9 @@ var AddSchematicTracesStage = class extends ConverterStage {
|
|
|
758
760
|
*/
|
|
759
761
|
createJunction(junction) {
|
|
760
762
|
if (!this.ctx.c2kMatSch) {
|
|
761
|
-
throw new Error(
|
|
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,
|
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.
|
|
4
|
+
"version": "0.0.3",
|
|
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
|
|
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 ."
|