kicadts 0.0.29 → 0.0.30

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 CHANGED
@@ -5489,6 +5489,10 @@ interface KicadPcbConstructorParams {
5489
5489
  footprints?: Footprint[];
5490
5490
  images?: Image[];
5491
5491
  segments?: Segment[];
5492
+ arcs?: PcbArc[];
5493
+ graphicArcs?: GrArc[];
5494
+ graphicCircles?: GrCircle[];
5495
+ graphicCurves?: GrCurve[];
5492
5496
  graphicLines?: GrLine[];
5493
5497
  graphicTexts?: GrText[];
5494
5498
  graphicPolys?: GrPoly[];
@@ -5515,6 +5519,10 @@ declare class KicadPcb extends SxClass {
5515
5519
  private _footprints;
5516
5520
  private _images;
5517
5521
  private _segments;
5522
+ private _arcs;
5523
+ private _grArcs;
5524
+ private _grCircles;
5525
+ private _grCurves;
5518
5526
  private _grLines;
5519
5527
  private _grTexts;
5520
5528
  private _grPolys;
@@ -5553,6 +5561,14 @@ declare class KicadPcb extends SxClass {
5553
5561
  set images(value: Image[]);
5554
5562
  get segments(): Segment[];
5555
5563
  set segments(value: Segment[]);
5564
+ get arcs(): PcbArc[];
5565
+ set arcs(value: PcbArc[]);
5566
+ get graphicArcs(): GrArc[];
5567
+ set graphicArcs(value: GrArc[]);
5568
+ get graphicCircles(): GrCircle[];
5569
+ set graphicCircles(value: GrCircle[]);
5570
+ get graphicCurves(): GrCurve[];
5571
+ set graphicCurves(value: GrCurve[]);
5556
5572
  get graphicLines(): GrLine[];
5557
5573
  set graphicLines(value: GrLine[]);
5558
5574
  get graphicTexts(): GrText[];
package/dist/index.js CHANGED
@@ -17592,6 +17592,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
17592
17592
  _footprints = [];
17593
17593
  _images = [];
17594
17594
  _segments = [];
17595
+ _arcs = [];
17596
+ _grArcs = [];
17597
+ _grCircles = [];
17598
+ _grCurves = [];
17595
17599
  _grLines = [];
17596
17600
  _grTexts = [];
17597
17601
  _grPolys = [];
@@ -17617,6 +17621,12 @@ var KicadPcb = class _KicadPcb extends SxClass {
17617
17621
  if (params.footprints !== void 0) this.footprints = params.footprints;
17618
17622
  if (params.images !== void 0) this.images = params.images;
17619
17623
  if (params.segments !== void 0) this.segments = params.segments;
17624
+ if (params.arcs !== void 0) this.arcs = params.arcs;
17625
+ if (params.graphicArcs !== void 0) this.graphicArcs = params.graphicArcs;
17626
+ if (params.graphicCircles !== void 0)
17627
+ this.graphicCircles = params.graphicCircles;
17628
+ if (params.graphicCurves !== void 0)
17629
+ this.graphicCurves = params.graphicCurves;
17620
17630
  if (params.graphicLines !== void 0)
17621
17631
  this.graphicLines = params.graphicLines;
17622
17632
  if (params.graphicTexts !== void 0)
@@ -17707,6 +17717,22 @@ var KicadPcb = class _KicadPcb extends SxClass {
17707
17717
  this._segments.push(child);
17708
17718
  return;
17709
17719
  }
17720
+ if (child instanceof PcbArc) {
17721
+ this._arcs.push(child);
17722
+ return;
17723
+ }
17724
+ if (child instanceof GrArc) {
17725
+ this._grArcs.push(child);
17726
+ return;
17727
+ }
17728
+ if (child instanceof GrCircle) {
17729
+ this._grCircles.push(child);
17730
+ return;
17731
+ }
17732
+ if (child instanceof GrCurve) {
17733
+ this._grCurves.push(child);
17734
+ return;
17735
+ }
17710
17736
  if (child instanceof GrLine) {
17711
17737
  this._grLines.push(child);
17712
17738
  return;
@@ -17819,6 +17845,30 @@ var KicadPcb = class _KicadPcb extends SxClass {
17819
17845
  set segments(value) {
17820
17846
  this._segments = [...value];
17821
17847
  }
17848
+ get arcs() {
17849
+ return [...this._arcs];
17850
+ }
17851
+ set arcs(value) {
17852
+ this._arcs = [...value];
17853
+ }
17854
+ get graphicArcs() {
17855
+ return [...this._grArcs];
17856
+ }
17857
+ set graphicArcs(value) {
17858
+ this._grArcs = [...value];
17859
+ }
17860
+ get graphicCircles() {
17861
+ return [...this._grCircles];
17862
+ }
17863
+ set graphicCircles(value) {
17864
+ this._grCircles = [...value];
17865
+ }
17866
+ get graphicCurves() {
17867
+ return [...this._grCurves];
17868
+ }
17869
+ set graphicCurves(value) {
17870
+ this._grCurves = [...value];
17871
+ }
17822
17872
  get graphicLines() {
17823
17873
  return [...this._grLines];
17824
17874
  }
@@ -17888,6 +17938,10 @@ var KicadPcb = class _KicadPcb extends SxClass {
17888
17938
  children.push(...this._footprints);
17889
17939
  children.push(...this._images);
17890
17940
  children.push(...this._segments);
17941
+ children.push(...this._arcs);
17942
+ children.push(...this._grArcs);
17943
+ children.push(...this._grCircles);
17944
+ children.push(...this._grCurves);
17891
17945
  children.push(...this._grLines);
17892
17946
  children.push(...this._grTexts);
17893
17947
  children.push(...this._grPolys);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kicadts",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",