kicadts 0.0.21 → 0.0.22
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.d.ts +8 -0
- package/dist/index.js +28 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5116,6 +5116,8 @@ interface KicadPcbConstructorParams {
|
|
|
5116
5116
|
segments?: Segment[];
|
|
5117
5117
|
graphicLines?: GrLine[];
|
|
5118
5118
|
graphicTexts?: GrText[];
|
|
5119
|
+
graphicPolys?: GrPoly[];
|
|
5120
|
+
graphicRects?: GrRect[];
|
|
5119
5121
|
vias?: Via[];
|
|
5120
5122
|
zones?: Zone[];
|
|
5121
5123
|
otherChildren?: SxClass[];
|
|
@@ -5138,6 +5140,8 @@ declare class KicadPcb extends SxClass {
|
|
|
5138
5140
|
private _segments;
|
|
5139
5141
|
private _grLines;
|
|
5140
5142
|
private _grTexts;
|
|
5143
|
+
private _grPolys;
|
|
5144
|
+
private _grRects;
|
|
5141
5145
|
private _vias;
|
|
5142
5146
|
private _zones;
|
|
5143
5147
|
private _otherChildren;
|
|
@@ -5174,6 +5178,10 @@ declare class KicadPcb extends SxClass {
|
|
|
5174
5178
|
set graphicLines(value: GrLine[]);
|
|
5175
5179
|
get graphicTexts(): GrText[];
|
|
5176
5180
|
set graphicTexts(value: GrText[]);
|
|
5181
|
+
get graphicPolys(): GrPoly[];
|
|
5182
|
+
set graphicPolys(value: GrPoly[]);
|
|
5183
|
+
get graphicRects(): GrRect[];
|
|
5184
|
+
set graphicRects(value: GrRect[]);
|
|
5177
5185
|
get vias(): Via[];
|
|
5178
5186
|
set vias(value: Via[]);
|
|
5179
5187
|
get zones(): Zone[];
|
package/dist/index.js
CHANGED
|
@@ -16092,6 +16092,8 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
16092
16092
|
_segments = [];
|
|
16093
16093
|
_grLines = [];
|
|
16094
16094
|
_grTexts = [];
|
|
16095
|
+
_grPolys = [];
|
|
16096
|
+
_grRects = [];
|
|
16095
16097
|
_vias = [];
|
|
16096
16098
|
_zones = [];
|
|
16097
16099
|
_otherChildren = [];
|
|
@@ -16115,6 +16117,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
16115
16117
|
this.graphicLines = params.graphicLines;
|
|
16116
16118
|
if (params.graphicTexts !== void 0)
|
|
16117
16119
|
this.graphicTexts = params.graphicTexts;
|
|
16120
|
+
if (params.graphicPolys !== void 0)
|
|
16121
|
+
this.graphicPolys = params.graphicPolys;
|
|
16122
|
+
if (params.graphicRects !== void 0)
|
|
16123
|
+
this.graphicRects = params.graphicRects;
|
|
16118
16124
|
if (params.vias !== void 0) this.vias = params.vias;
|
|
16119
16125
|
if (params.zones !== void 0) this.zones = params.zones;
|
|
16120
16126
|
if (params.otherChildren !== void 0)
|
|
@@ -16201,6 +16207,14 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
16201
16207
|
this._grTexts.push(child);
|
|
16202
16208
|
return;
|
|
16203
16209
|
}
|
|
16210
|
+
if (child instanceof GrPoly) {
|
|
16211
|
+
this._grPolys.push(child);
|
|
16212
|
+
return;
|
|
16213
|
+
}
|
|
16214
|
+
if (child instanceof GrRect) {
|
|
16215
|
+
this._grRects.push(child);
|
|
16216
|
+
return;
|
|
16217
|
+
}
|
|
16204
16218
|
if (child instanceof Via) {
|
|
16205
16219
|
this._vias.push(child);
|
|
16206
16220
|
return;
|
|
@@ -16301,6 +16315,18 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
16301
16315
|
set graphicTexts(value) {
|
|
16302
16316
|
this._grTexts = [...value];
|
|
16303
16317
|
}
|
|
16318
|
+
get graphicPolys() {
|
|
16319
|
+
return [...this._grPolys];
|
|
16320
|
+
}
|
|
16321
|
+
set graphicPolys(value) {
|
|
16322
|
+
this._grPolys = [...value];
|
|
16323
|
+
}
|
|
16324
|
+
get graphicRects() {
|
|
16325
|
+
return [...this._grRects];
|
|
16326
|
+
}
|
|
16327
|
+
set graphicRects(value) {
|
|
16328
|
+
this._grRects = [...value];
|
|
16329
|
+
}
|
|
16304
16330
|
get vias() {
|
|
16305
16331
|
return [...this._vias];
|
|
16306
16332
|
}
|
|
@@ -16336,6 +16362,8 @@ var KicadPcb = class _KicadPcb extends SxClass {
|
|
|
16336
16362
|
children.push(...this._segments);
|
|
16337
16363
|
children.push(...this._grLines);
|
|
16338
16364
|
children.push(...this._grTexts);
|
|
16365
|
+
children.push(...this._grPolys);
|
|
16366
|
+
children.push(...this._grRects);
|
|
16339
16367
|
children.push(...this._vias);
|
|
16340
16368
|
children.push(...this._zones);
|
|
16341
16369
|
children.push(...this._otherChildren);
|