kicadts 0.0.45 → 0.0.46
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 +4 -1
- package/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -262,13 +262,14 @@ declare class TextEffects extends SxClass {
|
|
|
262
262
|
getChildren(): SxClass[];
|
|
263
263
|
getString(): string;
|
|
264
264
|
}
|
|
265
|
-
type TextEffectsFontProperty = TextEffectsFontFace | TextEffectsFontSize | TextEffectsFontThickness | TextEffectsFontLineSpacing | TextEffectsFontBold | TextEffectsFontItalic;
|
|
265
|
+
type TextEffectsFontProperty = TextEffectsFontFace | TextEffectsFontSize | Color | TextEffectsFontThickness | TextEffectsFontLineSpacing | TextEffectsFontBold | TextEffectsFontItalic;
|
|
266
266
|
declare class TextEffectsFont extends SxClass {
|
|
267
267
|
static token: string;
|
|
268
268
|
static parentToken: string;
|
|
269
269
|
token: string;
|
|
270
270
|
_sxFace?: TextEffectsFontFace;
|
|
271
271
|
_sxSize?: TextEffectsFontSize;
|
|
272
|
+
_sxColor?: Color;
|
|
272
273
|
_sxThickness?: TextEffectsFontThickness;
|
|
273
274
|
_sxLineSpacing?: TextEffectsFontLineSpacing;
|
|
274
275
|
_sxBold?: TextEffectsFontBold;
|
|
@@ -283,6 +284,8 @@ declare class TextEffectsFont extends SxClass {
|
|
|
283
284
|
height: number;
|
|
284
285
|
width: number;
|
|
285
286
|
} | undefined);
|
|
287
|
+
get color(): RGBAColor | undefined;
|
|
288
|
+
set color(value: RGBAColor | undefined);
|
|
286
289
|
get thickness(): number | undefined;
|
|
287
290
|
set thickness(value: number | undefined);
|
|
288
291
|
get lineSpacing(): number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -866,6 +866,7 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
|
|
|
866
866
|
token = "font";
|
|
867
867
|
_sxFace;
|
|
868
868
|
_sxSize;
|
|
869
|
+
_sxColor;
|
|
869
870
|
_sxThickness;
|
|
870
871
|
_sxLineSpacing;
|
|
871
872
|
_sxBold;
|
|
@@ -891,6 +892,12 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
|
|
|
891
892
|
}
|
|
892
893
|
this._sxSize = new TextEffectsFontSize(value.height, value.width);
|
|
893
894
|
}
|
|
895
|
+
get color() {
|
|
896
|
+
return this._sxColor?.color;
|
|
897
|
+
}
|
|
898
|
+
set color(value) {
|
|
899
|
+
this._sxColor = value === void 0 ? void 0 : new Color([value.r, value.g, value.b, value.a]);
|
|
900
|
+
}
|
|
894
901
|
get thickness() {
|
|
895
902
|
return this._sxThickness?.value;
|
|
896
903
|
}
|
|
@@ -923,6 +930,7 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
|
|
|
923
930
|
);
|
|
924
931
|
font._sxFace = propertyMap.face;
|
|
925
932
|
font._sxSize = propertyMap.size;
|
|
933
|
+
font._sxColor = propertyMap.color;
|
|
926
934
|
font._sxThickness = propertyMap.thickness;
|
|
927
935
|
font._sxLineSpacing = propertyMap.line_spacing;
|
|
928
936
|
font._sxBold = propertyMap.bold;
|
|
@@ -952,6 +960,7 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
|
|
|
952
960
|
const children = [];
|
|
953
961
|
if (this._sxFace) children.push(this._sxFace);
|
|
954
962
|
if (this._sxSize) children.push(this._sxSize);
|
|
963
|
+
if (this._sxColor) children.push(this._sxColor);
|
|
955
964
|
if (this._sxThickness) children.push(this._sxThickness);
|
|
956
965
|
if (this._sxBold) children.push(this._sxBold);
|
|
957
966
|
if (this._sxItalic) children.push(this._sxItalic);
|
|
@@ -966,6 +975,9 @@ var TextEffectsFont = class _TextEffectsFont extends SxClass {
|
|
|
966
975
|
if (this._sxSize) {
|
|
967
976
|
lines.push(this._sxSize.getStringIndented());
|
|
968
977
|
}
|
|
978
|
+
if (this._sxColor) {
|
|
979
|
+
lines.push(this._sxColor.getStringIndented());
|
|
980
|
+
}
|
|
969
981
|
if (this._sxThickness) {
|
|
970
982
|
lines.push(this._sxThickness.getStringIndented());
|
|
971
983
|
}
|