kicadts 0.0.5 → 0.0.7
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/README.md +2 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
`kicadts` is a TypeScript-first toolkit for reading, editing, and generating KiCad S-expression documents. Every KiCad token is modeled as a class, so you can compose schematics, boards, and footprints entirely in TypeScript and emit KiCad-compatible files with deterministic formatting.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/kicadts)
|
|
6
|
+
|
|
5
7
|
## Local Setup
|
|
6
8
|
|
|
7
9
|
This repository uses [Bun](https://bun.sh) for scripts and testing.
|
package/dist/index.js
CHANGED
|
@@ -4135,9 +4135,9 @@ SxClass.register(Property);
|
|
|
4135
4135
|
|
|
4136
4136
|
// lib/sexpr/classes/SheetInstances.ts
|
|
4137
4137
|
var SheetInstances = class _SheetInstances extends SxClass {
|
|
4138
|
-
static token = "
|
|
4139
|
-
static parentToken = "
|
|
4140
|
-
token = "
|
|
4138
|
+
static token = "sheet_instances";
|
|
4139
|
+
static parentToken = "kicad_sch";
|
|
4140
|
+
token = "sheet_instances";
|
|
4141
4141
|
projects = [];
|
|
4142
4142
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
4143
4143
|
const instances = new _SheetInstances();
|
|
@@ -4152,7 +4152,7 @@ var SheetInstances = class _SheetInstances extends SxClass {
|
|
|
4152
4152
|
return [...this.projects];
|
|
4153
4153
|
}
|
|
4154
4154
|
getString() {
|
|
4155
|
-
const lines = ["(
|
|
4155
|
+
const lines = ["(sheet_instances"];
|
|
4156
4156
|
for (const project of this.projects) {
|
|
4157
4157
|
lines.push(project.getStringIndented());
|
|
4158
4158
|
}
|