kicadts 0.0.48 → 0.0.50
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 +67 -0
- package/dist/index.js +39 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5103,6 +5103,60 @@ declare class DimensionFormat extends SxClass {
|
|
|
5103
5103
|
getChildren(): SxClass[];
|
|
5104
5104
|
}
|
|
5105
5105
|
|
|
5106
|
+
declare class DimensionHeight extends SxPrimitiveNumber {
|
|
5107
|
+
static token: string;
|
|
5108
|
+
static parentToken: string;
|
|
5109
|
+
token: string;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
declare class DimensionArrowDirection extends SxPrimitiveString {
|
|
5113
|
+
static token: string;
|
|
5114
|
+
static parentToken: string;
|
|
5115
|
+
token: string;
|
|
5116
|
+
}
|
|
5117
|
+
|
|
5118
|
+
declare class DimensionArrowLength extends SxPrimitiveNumber {
|
|
5119
|
+
static token: string;
|
|
5120
|
+
static parentToken: string;
|
|
5121
|
+
token: string;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5124
|
+
declare class DimensionExtensionHeight extends SxPrimitiveNumber {
|
|
5125
|
+
static token: string;
|
|
5126
|
+
static parentToken: string;
|
|
5127
|
+
token: string;
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
declare class DimensionExtensionOffset extends SxPrimitiveNumber {
|
|
5131
|
+
static token: string;
|
|
5132
|
+
static parentToken: string;
|
|
5133
|
+
token: string;
|
|
5134
|
+
}
|
|
5135
|
+
|
|
5136
|
+
declare class DimensionKeepTextAligned extends SxPrimitiveBoolean {
|
|
5137
|
+
static token: string;
|
|
5138
|
+
static parentToken: string;
|
|
5139
|
+
token: string;
|
|
5140
|
+
}
|
|
5141
|
+
|
|
5142
|
+
declare class DimensionStyleThickness extends SxPrimitiveNumber {
|
|
5143
|
+
static token: string;
|
|
5144
|
+
static parentToken: string;
|
|
5145
|
+
token: string;
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
declare class DimensionTextFrame extends SxPrimitiveNumber {
|
|
5149
|
+
static token: string;
|
|
5150
|
+
static parentToken: string;
|
|
5151
|
+
token: string;
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
declare class DimensionTextPositionMode extends SxPrimitiveNumber {
|
|
5155
|
+
static token: string;
|
|
5156
|
+
static parentToken: string;
|
|
5157
|
+
token: string;
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5106
5160
|
declare class DimensionStyle extends SxClass {
|
|
5107
5161
|
static token: string;
|
|
5108
5162
|
static parentToken: string;
|
|
@@ -5117,6 +5171,14 @@ declare class DimensionStyle extends SxClass {
|
|
|
5117
5171
|
private _sxKeepTextAligned?;
|
|
5118
5172
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): DimensionStyle;
|
|
5119
5173
|
getChildren(): SxClass[];
|
|
5174
|
+
get thickness(): DimensionStyleThickness | undefined;
|
|
5175
|
+
get arrowLength(): DimensionArrowLength | undefined;
|
|
5176
|
+
get textPositionMode(): DimensionTextPositionMode | undefined;
|
|
5177
|
+
get arrowDirection(): DimensionArrowDirection | undefined;
|
|
5178
|
+
get extensionHeight(): DimensionExtensionHeight | undefined;
|
|
5179
|
+
get textFrame(): DimensionTextFrame | undefined;
|
|
5180
|
+
get extensionOffset(): DimensionExtensionOffset | undefined;
|
|
5181
|
+
get keepTextAligned(): DimensionKeepTextAligned | undefined;
|
|
5120
5182
|
}
|
|
5121
5183
|
|
|
5122
5184
|
declare class Dimension extends SxClass {
|
|
@@ -5139,6 +5201,11 @@ declare class Dimension extends SxClass {
|
|
|
5139
5201
|
getChildren(): SxClass[];
|
|
5140
5202
|
get tstamp(): Tstamp | undefined;
|
|
5141
5203
|
get uuid(): Uuid | undefined;
|
|
5204
|
+
get layer(): Layer | undefined;
|
|
5205
|
+
get pts(): Pts | undefined;
|
|
5206
|
+
get height(): DimensionHeight | undefined;
|
|
5207
|
+
get style(): DimensionStyle | undefined;
|
|
5208
|
+
get grText(): GrText | undefined;
|
|
5142
5209
|
}
|
|
5143
5210
|
|
|
5144
5211
|
declare class Target extends SxClass {
|
package/dist/index.js
CHANGED
|
@@ -11199,9 +11199,6 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
11199
11199
|
if (!fpPoly._sxLayer) {
|
|
11200
11200
|
throw new Error("fp_poly requires a layer child token");
|
|
11201
11201
|
}
|
|
11202
|
-
if (!fpPoly._sxUuid && !fpPoly._sxTstamp) {
|
|
11203
|
-
throw new Error("fp_poly requires a uuid or tstamp child token");
|
|
11204
|
-
}
|
|
11205
11202
|
return fpPoly;
|
|
11206
11203
|
}
|
|
11207
11204
|
get points() {
|
|
@@ -16743,6 +16740,30 @@ var DimensionStyle = class _DimensionStyle extends SxClass {
|
|
|
16743
16740
|
if (this._sxKeepTextAligned) children.push(this._sxKeepTextAligned);
|
|
16744
16741
|
return children;
|
|
16745
16742
|
}
|
|
16743
|
+
get thickness() {
|
|
16744
|
+
return this._sxThickness;
|
|
16745
|
+
}
|
|
16746
|
+
get arrowLength() {
|
|
16747
|
+
return this._sxArrowLength;
|
|
16748
|
+
}
|
|
16749
|
+
get textPositionMode() {
|
|
16750
|
+
return this._sxTextPositionMode;
|
|
16751
|
+
}
|
|
16752
|
+
get arrowDirection() {
|
|
16753
|
+
return this._sxArrowDirection;
|
|
16754
|
+
}
|
|
16755
|
+
get extensionHeight() {
|
|
16756
|
+
return this._sxExtensionHeight;
|
|
16757
|
+
}
|
|
16758
|
+
get textFrame() {
|
|
16759
|
+
return this._sxTextFrame;
|
|
16760
|
+
}
|
|
16761
|
+
get extensionOffset() {
|
|
16762
|
+
return this._sxExtensionOffset;
|
|
16763
|
+
}
|
|
16764
|
+
get keepTextAligned() {
|
|
16765
|
+
return this._sxKeepTextAligned;
|
|
16766
|
+
}
|
|
16746
16767
|
};
|
|
16747
16768
|
SxClass.register(DimensionStyle);
|
|
16748
16769
|
|
|
@@ -16856,6 +16877,21 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16856
16877
|
get uuid() {
|
|
16857
16878
|
return this._sxUuid;
|
|
16858
16879
|
}
|
|
16880
|
+
get layer() {
|
|
16881
|
+
return this._sxLayer;
|
|
16882
|
+
}
|
|
16883
|
+
get pts() {
|
|
16884
|
+
return this._sxPts;
|
|
16885
|
+
}
|
|
16886
|
+
get height() {
|
|
16887
|
+
return this._sxHeight;
|
|
16888
|
+
}
|
|
16889
|
+
get style() {
|
|
16890
|
+
return this._sxStyle;
|
|
16891
|
+
}
|
|
16892
|
+
get grText() {
|
|
16893
|
+
return this._sxGrText;
|
|
16894
|
+
}
|
|
16859
16895
|
};
|
|
16860
16896
|
SxClass.register(Dimension);
|
|
16861
16897
|
|