kicadts 0.0.11 → 0.0.12
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 +42 -5
- package/dist/index.js +140 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -489,6 +489,11 @@ declare class RenderCachePolygon extends SxClass {
|
|
|
489
489
|
getChildren(): SxClass[];
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
declare class Tstamp extends SxPrimitiveString {
|
|
493
|
+
static token: string;
|
|
494
|
+
token: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
492
497
|
declare class KicadSchGenerator extends SxPrimitiveString {
|
|
493
498
|
static token: string;
|
|
494
499
|
static parentToken: string;
|
|
@@ -2315,6 +2320,7 @@ interface FootprintPadConstructorParams {
|
|
|
2315
2320
|
chamfer?: PadChamfer;
|
|
2316
2321
|
rectDelta?: PadRectDelta;
|
|
2317
2322
|
net?: PadNet;
|
|
2323
|
+
tstamp?: Tstamp | string;
|
|
2318
2324
|
uuid?: Uuid | string;
|
|
2319
2325
|
pinFunction?: string | PadPinFunction;
|
|
2320
2326
|
pinType?: string | PadPinType;
|
|
@@ -2352,6 +2358,7 @@ declare class FootprintPad extends SxClass {
|
|
|
2352
2358
|
private _sxChamfer?;
|
|
2353
2359
|
private _sxRectDelta?;
|
|
2354
2360
|
private _sxNet?;
|
|
2361
|
+
private _sxTstamp?;
|
|
2355
2362
|
private _sxUuid?;
|
|
2356
2363
|
private _sxPinFunction?;
|
|
2357
2364
|
private _sxPinType?;
|
|
@@ -2409,6 +2416,8 @@ declare class FootprintPad extends SxClass {
|
|
|
2409
2416
|
} | undefined);
|
|
2410
2417
|
get net(): PadNet | undefined;
|
|
2411
2418
|
set net(value: PadNet | undefined);
|
|
2419
|
+
get tstamp(): Tstamp | undefined;
|
|
2420
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
2412
2421
|
get uuid(): Uuid | undefined;
|
|
2413
2422
|
set uuid(value: Uuid | string | undefined);
|
|
2414
2423
|
get pinfunction(): string | undefined;
|
|
@@ -2452,6 +2461,7 @@ interface FpTextConstructorParams {
|
|
|
2452
2461
|
hidden?: boolean;
|
|
2453
2462
|
layer?: Layer | string | string[];
|
|
2454
2463
|
effects?: TextEffects;
|
|
2464
|
+
tstamp?: Tstamp | string;
|
|
2455
2465
|
uuid?: Uuid | string;
|
|
2456
2466
|
}
|
|
2457
2467
|
declare class FpText extends SxClass {
|
|
@@ -2464,6 +2474,7 @@ declare class FpText extends SxClass {
|
|
|
2464
2474
|
private _sxHide?;
|
|
2465
2475
|
private _sxLayer?;
|
|
2466
2476
|
private _sxEffects?;
|
|
2477
|
+
private _sxTstamp?;
|
|
2467
2478
|
private _sxUuid?;
|
|
2468
2479
|
constructor(params?: FpTextConstructorParams);
|
|
2469
2480
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FpText;
|
|
@@ -2481,6 +2492,8 @@ declare class FpText extends SxClass {
|
|
|
2481
2492
|
set layer(value: Layer | string | string[] | undefined);
|
|
2482
2493
|
get effects(): TextEffects | undefined;
|
|
2483
2494
|
set effects(value: TextEffects | undefined);
|
|
2495
|
+
get tstamp(): Tstamp | undefined;
|
|
2496
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
2484
2497
|
get uuid(): Uuid | undefined;
|
|
2485
2498
|
set uuid(value: Uuid | string | undefined);
|
|
2486
2499
|
getChildren(): SxClass[];
|
|
@@ -2776,6 +2789,7 @@ interface FpArcConstructorParams {
|
|
|
2776
2789
|
layer?: Layer | string | string[];
|
|
2777
2790
|
width?: number | Width;
|
|
2778
2791
|
stroke?: Stroke;
|
|
2792
|
+
tstamp?: Tstamp | string;
|
|
2779
2793
|
uuid?: string | Uuid;
|
|
2780
2794
|
locked?: boolean;
|
|
2781
2795
|
}
|
|
@@ -2788,6 +2802,7 @@ declare class FpArc extends SxClass {
|
|
|
2788
2802
|
private _sxLayer?;
|
|
2789
2803
|
private _sxWidth?;
|
|
2790
2804
|
private _sxStroke?;
|
|
2805
|
+
private _sxTstamp?;
|
|
2791
2806
|
private _sxUuid?;
|
|
2792
2807
|
private _locked;
|
|
2793
2808
|
constructor(params?: FpArcConstructorParams);
|
|
@@ -2814,6 +2829,8 @@ declare class FpArc extends SxClass {
|
|
|
2814
2829
|
get widthClass(): Width | undefined;
|
|
2815
2830
|
get stroke(): Stroke | undefined;
|
|
2816
2831
|
set stroke(value: Stroke | undefined);
|
|
2832
|
+
get tstamp(): Tstamp | undefined;
|
|
2833
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
2817
2834
|
get uuid(): string | undefined;
|
|
2818
2835
|
set uuid(value: string | Uuid | undefined);
|
|
2819
2836
|
get uuidClass(): Uuid | undefined;
|
|
@@ -2874,6 +2891,7 @@ interface FpPolyConstructorParams {
|
|
|
2874
2891
|
stroke?: Stroke;
|
|
2875
2892
|
fill?: FpPolyFill | boolean;
|
|
2876
2893
|
locked?: boolean;
|
|
2894
|
+
tstamp?: Tstamp | string;
|
|
2877
2895
|
uuid?: Uuid | string;
|
|
2878
2896
|
}
|
|
2879
2897
|
declare class FpPoly extends SxClass {
|
|
@@ -2885,6 +2903,7 @@ declare class FpPoly extends SxClass {
|
|
|
2885
2903
|
private _sxStroke?;
|
|
2886
2904
|
private _sxFill?;
|
|
2887
2905
|
private _sxLocked?;
|
|
2906
|
+
private _sxTstamp?;
|
|
2888
2907
|
private _sxUuid?;
|
|
2889
2908
|
constructor(params?: FpPolyConstructorParams);
|
|
2890
2909
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): FpPoly;
|
|
@@ -2905,6 +2924,8 @@ declare class FpPoly extends SxClass {
|
|
|
2905
2924
|
set fill(value: FpPolyFill | boolean | undefined);
|
|
2906
2925
|
get locked(): boolean;
|
|
2907
2926
|
set locked(value: boolean);
|
|
2927
|
+
get tstamp(): Tstamp | undefined;
|
|
2928
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
2908
2929
|
get uuid(): Uuid | undefined;
|
|
2909
2930
|
set uuid(value: Uuid | string | undefined);
|
|
2910
2931
|
getChildren(): SxClass[];
|
|
@@ -2948,6 +2969,7 @@ interface FpLineConstructorParams {
|
|
|
2948
2969
|
layer?: Layer | string | string[];
|
|
2949
2970
|
width?: number;
|
|
2950
2971
|
stroke?: Stroke;
|
|
2972
|
+
tstamp?: Tstamp | string;
|
|
2951
2973
|
uuid?: Uuid | string;
|
|
2952
2974
|
locked?: boolean;
|
|
2953
2975
|
}
|
|
@@ -2960,6 +2982,7 @@ declare class FpLine extends SxClass {
|
|
|
2960
2982
|
private _sxLayer?;
|
|
2961
2983
|
private _sxWidth?;
|
|
2962
2984
|
private _sxStroke?;
|
|
2985
|
+
private _sxTstamp?;
|
|
2963
2986
|
private _sxUuid?;
|
|
2964
2987
|
private _locked;
|
|
2965
2988
|
constructor(params?: FpLineConstructorParams);
|
|
@@ -2980,6 +3003,8 @@ declare class FpLine extends SxClass {
|
|
|
2980
3003
|
set width(value: number | undefined);
|
|
2981
3004
|
get stroke(): Stroke | undefined;
|
|
2982
3005
|
set stroke(value: Stroke | undefined);
|
|
3006
|
+
get tstamp(): Tstamp | undefined;
|
|
3007
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
2983
3008
|
get uuid(): Uuid | undefined;
|
|
2984
3009
|
set uuid(value: Uuid | string | undefined);
|
|
2985
3010
|
get locked(): boolean;
|
|
@@ -3057,6 +3082,7 @@ interface FootprintConstructorParams {
|
|
|
3057
3082
|
locked?: boolean;
|
|
3058
3083
|
placed?: boolean;
|
|
3059
3084
|
layer?: Layer | string | string[];
|
|
3085
|
+
tstamp?: Tstamp | string;
|
|
3060
3086
|
uuid?: Uuid | string;
|
|
3061
3087
|
at?: AtInput | Xy;
|
|
3062
3088
|
descr?: string | FootprintDescr;
|
|
@@ -3096,6 +3122,7 @@ declare class Footprint extends SxClass {
|
|
|
3096
3122
|
private _sxPlaced?;
|
|
3097
3123
|
private _sxLayer?;
|
|
3098
3124
|
private _sxTedit?;
|
|
3125
|
+
private _sxTstamp?;
|
|
3099
3126
|
private _sxUuid?;
|
|
3100
3127
|
private _sxAt?;
|
|
3101
3128
|
private _sxXy?;
|
|
@@ -3139,6 +3166,8 @@ declare class Footprint extends SxClass {
|
|
|
3139
3166
|
set layer(value: Layer | string | string[] | undefined);
|
|
3140
3167
|
get tedit(): FootprintTedit | undefined;
|
|
3141
3168
|
set tedit(value: FootprintTedit | string | undefined);
|
|
3169
|
+
get tstamp(): Tstamp | undefined;
|
|
3170
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
3142
3171
|
get uuid(): Uuid | undefined;
|
|
3143
3172
|
set uuid(value: Uuid | string | undefined);
|
|
3144
3173
|
get position(): At | Xy | undefined;
|
|
@@ -3214,6 +3243,7 @@ interface GrLineConstructorParams {
|
|
|
3214
3243
|
layer?: Layer | string | Array<string | number>;
|
|
3215
3244
|
width?: Width | number;
|
|
3216
3245
|
stroke?: Stroke;
|
|
3246
|
+
tstamp?: Tstamp | string;
|
|
3217
3247
|
uuid?: Uuid | string;
|
|
3218
3248
|
locked?: boolean;
|
|
3219
3249
|
}
|
|
@@ -3226,6 +3256,7 @@ declare class GrLine extends SxClass {
|
|
|
3226
3256
|
private _sxLayer?;
|
|
3227
3257
|
private _sxWidth?;
|
|
3228
3258
|
private _sxStroke?;
|
|
3259
|
+
private _sxTstamp?;
|
|
3229
3260
|
private _sxUuid?;
|
|
3230
3261
|
private _sxLocked?;
|
|
3231
3262
|
constructor(params?: GrLineConstructorParams);
|
|
@@ -3246,6 +3277,8 @@ declare class GrLine extends SxClass {
|
|
|
3246
3277
|
set widthClass(value: Width | undefined);
|
|
3247
3278
|
get stroke(): Stroke | undefined;
|
|
3248
3279
|
set stroke(value: Stroke | undefined);
|
|
3280
|
+
get tstamp(): Tstamp | undefined;
|
|
3281
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
3249
3282
|
get uuid(): Uuid | undefined;
|
|
3250
3283
|
set uuid(value: Uuid | string | undefined);
|
|
3251
3284
|
get locked(): boolean;
|
|
@@ -3384,6 +3417,7 @@ interface SegmentConstructorParams {
|
|
|
3384
3417
|
id: number;
|
|
3385
3418
|
name?: string;
|
|
3386
3419
|
};
|
|
3420
|
+
tstamp?: Tstamp | string;
|
|
3387
3421
|
uuid?: Uuid | string;
|
|
3388
3422
|
locked?: boolean;
|
|
3389
3423
|
}
|
|
@@ -3395,6 +3429,7 @@ declare class Segment extends SxClass {
|
|
|
3395
3429
|
private _sxWidth?;
|
|
3396
3430
|
private _sxLayer?;
|
|
3397
3431
|
private _sxNet?;
|
|
3432
|
+
private _sxTstamp?;
|
|
3398
3433
|
private _sxUuid?;
|
|
3399
3434
|
private _sxLocked?;
|
|
3400
3435
|
constructor(params?: SegmentConstructorParams);
|
|
@@ -3428,6 +3463,8 @@ declare class Segment extends SxClass {
|
|
|
3428
3463
|
id: number;
|
|
3429
3464
|
name?: string;
|
|
3430
3465
|
} | undefined);
|
|
3466
|
+
get tstamp(): Tstamp | undefined;
|
|
3467
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
3431
3468
|
get uuid(): Uuid | undefined;
|
|
3432
3469
|
set uuid(value: Uuid | string | undefined);
|
|
3433
3470
|
get locked(): boolean;
|
|
@@ -4380,7 +4417,7 @@ interface ViaConstructorParams {
|
|
|
4380
4417
|
layers?: Layers | string[];
|
|
4381
4418
|
net?: ViaNet;
|
|
4382
4419
|
uuid?: Uuid | string;
|
|
4383
|
-
tstamp?: string;
|
|
4420
|
+
tstamp?: Tstamp | string;
|
|
4384
4421
|
teardrops?: PadTeardrops;
|
|
4385
4422
|
}
|
|
4386
4423
|
declare class Via extends SxClass {
|
|
@@ -4397,7 +4434,7 @@ declare class Via extends SxClass {
|
|
|
4397
4434
|
private _sxLayers?;
|
|
4398
4435
|
private _sxNet?;
|
|
4399
4436
|
private _sxUuid?;
|
|
4400
|
-
private
|
|
4437
|
+
private _sxTstamp?;
|
|
4401
4438
|
private _sxTeardrops?;
|
|
4402
4439
|
constructor(params?: ViaConstructorParams);
|
|
4403
4440
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): Via;
|
|
@@ -4428,8 +4465,8 @@ declare class Via extends SxClass {
|
|
|
4428
4465
|
set uuid(value: Uuid | string | undefined);
|
|
4429
4466
|
get teardrops(): PadTeardrops | undefined;
|
|
4430
4467
|
set teardrops(value: PadTeardrops | undefined);
|
|
4431
|
-
get tstamp():
|
|
4432
|
-
set tstamp(value: string | undefined);
|
|
4468
|
+
get tstamp(): Tstamp | undefined;
|
|
4469
|
+
set tstamp(value: Tstamp | string | undefined);
|
|
4433
4470
|
getChildren(): SxClass[];
|
|
4434
4471
|
getString(): string;
|
|
4435
4472
|
}
|
|
@@ -4522,4 +4559,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
4522
4559
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
4523
4560
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
4524
4561
|
|
|
4525
|
-
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontFace, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
4562
|
+
export { At, type AtInput, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Color, Dnp, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrText, type GrTextConstructorParams, type GrTextPosition, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, type ModelVector, NoConnect, type NoConnectConstructorParams, OnBoard, PadChamfer, PadChamferRatio, PadClearance, PadDieLength, PadDrill, PadDrillOffset, PadLayers, type PadLayersInput, PadNet, PadOptions, type PadOptionsAnchorShape, type PadOptionsClearanceType, PadPinFunction, PadPinType, PadPrimitiveGrArc, type PadPrimitiveGrArcConstructorParams, PadPrimitiveGrCircle, type PadPrimitiveGrCircleConstructorParams, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, Paper, PcbGeneral, PcbGeneralLegacyTeardrops, PcbGeneralThickness, PcbGenerator, PcbGeneratorVersion, PcbLayerDefinition, PcbLayers, PcbNet, PcbPlotParams, PcbVersion, PlotParamCreateGerberJobFile, PlotParamCrossoutDnpOnFab, PlotParamDashedLineDashRatio, PlotParamDashedLineGapRatio, PlotParamDisableApertMacros, PlotParamDrillShape, PlotParamDxfImperialUnits, PlotParamDxfPolygonMode, PlotParamDxfUsePcbnewFont, PlotParamExcludeEdgeLayer, PlotParamHideDnpOnFab, PlotParamHpglPenDiameter, PlotParamHpglPenNumber, PlotParamHpglPenOverlay, PlotParamHpglPenSpeed, PlotParamLayerSelection, PlotParamLineWidth, PlotParamMirror, PlotParamMode, PlotParamOutputDirectory, PlotParamOutputFormat, PlotParamPadOnSilk, PlotParamPdfBackFpPropertyPopups, PlotParamPdfFrontFpPropertyPopups, PlotParamPdfMetadata, PlotParamPdfSingleDocument, PlotParamPlotBlackAndWhite, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Property, type PropertyConstructorParams, PropertyHide, PropertyUnlocked, Pts, type RGBAColor, RenderCache, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, type SchematicTextConstructorParams, Segment, type SegmentConstructorParams, SegmentEnd, SegmentLocked, SegmentNet, SegmentStart, Setup, SetupAllowSoldermaskBridgesInFootprints, SetupAuxAxisOrigin, SetupEdgeWidth, SetupGridOrigin, SetupLastTraceWidth, SetupModEdgeWidth, SetupModTextSize, SetupModTextWidth, SetupPadDrill, SetupPadSize, SetupPadToMaskClearance, SetupPadToPasteClearance, SetupPadToPasteClearanceRatio, SetupPadToPasteClearanceValues, SetupPcbTextSize, SetupPcbTextWidth, type SetupProperty, type SetupPropertyValues, SetupSegmentWidth, SetupSolderMaskMinWidth, SetupTenting, SetupTraceClearance, SetupTraceMin, SetupTraceWidth, SetupUviaDrill, SetupUviaMinDrill, SetupUviaMinSize, SetupUviaSize, SetupUviasAllowed, SetupViaDrill, SetupViaMinDrill, SetupViaMinSize, SetupViaSize, SetupVisibleElements, SetupZone45Only, SetupZoneClearance, Sheet, type SheetConstructorParams, SheetFill, SheetInstancePage, SheetInstancePath, SheetInstances, SheetInstancesForSheet, SheetInstancesProject, SheetInstancesRoot, SheetInstancesRootPage, SheetInstancesRootPath, SheetPin, type SheetPinElectricalType, SheetProperty, SheetSize, Stackup, StackupCastellatedPads, StackupCopperFinish, StackupDielectricConstraints, StackupEdgeConnector, StackupEdgePlating, StackupLayer, StackupLayerColor, StackupLayerEpsilonR, StackupLayerLossTangent, StackupLayerMaterial, StackupLayerThickness, StackupLayerType, type StandardPaperSize, Stroke, type StrokeProperty, StrokeType, type StrokeTypeString, SxClass, SymbolArc, SymbolArcEnd, SymbolArcFill, SymbolArcMid, SymbolArcStart, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolUnit, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontFace, TextEffectsFontLineSpacing, type TextEffectsFontProperty, TextEffectsFontSize, TextEffectsFontThickness, TextEffectsJustify, type TextEffectsProperty, TitleBlock, TitleBlockComment, TitleBlockCompany, type TitleBlockConstructorParams, TitleBlockDate, TitleBlockRevision, TitleBlockTitle, Tstamp, Unit, type UnitString, Uuid, Via, type ViaConstructorParams, ViaNet, Width, Wire, type WireConstructorParams, Xy, Zone, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
package/dist/index.js
CHANGED
|
@@ -1741,6 +1741,13 @@ var RenderCachePolygon = class _RenderCachePolygon extends SxClass {
|
|
|
1741
1741
|
};
|
|
1742
1742
|
SxClass.register(RenderCachePolygon);
|
|
1743
1743
|
|
|
1744
|
+
// lib/sexpr/classes/Tstamp.ts
|
|
1745
|
+
var Tstamp = class extends SxPrimitiveString {
|
|
1746
|
+
static token = "tstamp";
|
|
1747
|
+
token = "tstamp";
|
|
1748
|
+
};
|
|
1749
|
+
SxClass.register(Tstamp);
|
|
1750
|
+
|
|
1744
1751
|
// lib/sexpr/classes/KicadSchGenerator.ts
|
|
1745
1752
|
var isSymbolToken = (value) => /^[A-Za-z0-9._-]+$/.test(value);
|
|
1746
1753
|
var KicadSchGenerator = class _KicadSchGenerator extends SxPrimitiveString {
|
|
@@ -7297,6 +7304,7 @@ var SINGLE_TOKENS = /* @__PURE__ */ new Set([
|
|
|
7297
7304
|
"chamfer_ratio",
|
|
7298
7305
|
"chamfer",
|
|
7299
7306
|
"net",
|
|
7307
|
+
"tstamp",
|
|
7300
7308
|
"uuid",
|
|
7301
7309
|
"pinfunction",
|
|
7302
7310
|
"pintype",
|
|
@@ -7344,6 +7352,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7344
7352
|
_sxChamfer;
|
|
7345
7353
|
_sxRectDelta;
|
|
7346
7354
|
_sxNet;
|
|
7355
|
+
_sxTstamp;
|
|
7347
7356
|
_sxUuid;
|
|
7348
7357
|
_sxPinFunction;
|
|
7349
7358
|
_sxPinType;
|
|
@@ -7387,6 +7396,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7387
7396
|
if (p.chamfer !== void 0) this.chamfer = p.chamfer;
|
|
7388
7397
|
if (p.rectDelta !== void 0) this.rectDelta = p.rectDelta;
|
|
7389
7398
|
if (p.net !== void 0) this.net = p.net;
|
|
7399
|
+
if (p.tstamp !== void 0) this.tstamp = p.tstamp;
|
|
7390
7400
|
if (p.uuid !== void 0) this.uuid = p.uuid;
|
|
7391
7401
|
if (p.pinFunction !== void 0) this.pinfunction = p.pinFunction;
|
|
7392
7402
|
if (p.pinType !== void 0) this.pintype = p.pinType;
|
|
@@ -7504,6 +7514,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7504
7514
|
pad._sxChamferRatio = propertyMap.chamfer_ratio;
|
|
7505
7515
|
pad._sxChamfer = propertyMap.chamfer;
|
|
7506
7516
|
pad._sxNet = propertyMap.net;
|
|
7517
|
+
pad._sxTstamp = propertyMap.tstamp;
|
|
7507
7518
|
pad._sxUuid = propertyMap.uuid;
|
|
7508
7519
|
pad._sxPinFunction = propertyMap.pinfunction;
|
|
7509
7520
|
pad._sxPinType = propertyMap.pintype;
|
|
@@ -7654,6 +7665,16 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7654
7665
|
set net(value) {
|
|
7655
7666
|
this._sxNet = value;
|
|
7656
7667
|
}
|
|
7668
|
+
get tstamp() {
|
|
7669
|
+
return this._sxTstamp;
|
|
7670
|
+
}
|
|
7671
|
+
set tstamp(value) {
|
|
7672
|
+
if (value === void 0) {
|
|
7673
|
+
this._sxTstamp = void 0;
|
|
7674
|
+
return;
|
|
7675
|
+
}
|
|
7676
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
7677
|
+
}
|
|
7657
7678
|
get uuid() {
|
|
7658
7679
|
return this._sxUuid;
|
|
7659
7680
|
}
|
|
@@ -7818,6 +7839,7 @@ var FootprintPad = class _FootprintPad extends SxClass {
|
|
|
7818
7839
|
if (this._sxThermalWidth) children.push(this._sxThermalWidth);
|
|
7819
7840
|
if (this._sxThermalGap) children.push(this._sxThermalGap);
|
|
7820
7841
|
if (this._sxThermalBridgeAngle) children.push(this._sxThermalBridgeAngle);
|
|
7842
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
7821
7843
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
7822
7844
|
if (this._sxRemoveUnusedLayers) children.push(this._sxRemoveUnusedLayers);
|
|
7823
7845
|
if (this._sxKeepEndLayers) children.push(this._sxKeepEndLayers);
|
|
@@ -7924,6 +7946,7 @@ var SUPPORTED_SINGLE_TOKENS2 = /* @__PURE__ */ new Set([
|
|
|
7924
7946
|
"xy",
|
|
7925
7947
|
"layer",
|
|
7926
7948
|
"effects",
|
|
7949
|
+
"tstamp",
|
|
7927
7950
|
"uuid",
|
|
7928
7951
|
"unlocked",
|
|
7929
7952
|
"hide"
|
|
@@ -7939,6 +7962,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
7939
7962
|
_sxHide;
|
|
7940
7963
|
_sxLayer;
|
|
7941
7964
|
_sxEffects;
|
|
7965
|
+
_sxTstamp;
|
|
7942
7966
|
_sxUuid;
|
|
7943
7967
|
constructor(params = {}) {
|
|
7944
7968
|
super();
|
|
@@ -7949,6 +7973,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
7949
7973
|
if (params.hidden !== void 0) this.hidden = params.hidden;
|
|
7950
7974
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
7951
7975
|
if (params.effects !== void 0) this.effects = params.effects;
|
|
7976
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
7952
7977
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
7953
7978
|
}
|
|
7954
7979
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -8022,6 +8047,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
8022
8047
|
fpText._sxPosition = atInstance ?? xyInstance;
|
|
8023
8048
|
fpText._sxLayer = propertyMap.layer;
|
|
8024
8049
|
fpText._sxEffects = propertyMap.effects;
|
|
8050
|
+
fpText._sxTstamp = propertyMap.tstamp;
|
|
8025
8051
|
fpText._sxUuid = propertyMap.uuid;
|
|
8026
8052
|
const unlockedEntry = propertyMap.unlocked;
|
|
8027
8053
|
const hideEntry = propertyMap.hide;
|
|
@@ -8104,6 +8130,16 @@ var FpText = class _FpText extends SxClass {
|
|
|
8104
8130
|
set effects(value) {
|
|
8105
8131
|
this._sxEffects = value;
|
|
8106
8132
|
}
|
|
8133
|
+
get tstamp() {
|
|
8134
|
+
return this._sxTstamp;
|
|
8135
|
+
}
|
|
8136
|
+
set tstamp(value) {
|
|
8137
|
+
if (value === void 0) {
|
|
8138
|
+
this._sxTstamp = void 0;
|
|
8139
|
+
return;
|
|
8140
|
+
}
|
|
8141
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
8142
|
+
}
|
|
8107
8143
|
get uuid() {
|
|
8108
8144
|
return this._sxUuid;
|
|
8109
8145
|
}
|
|
@@ -8121,6 +8157,7 @@ var FpText = class _FpText extends SxClass {
|
|
|
8121
8157
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
8122
8158
|
if (this._sxHide) children.push(this._sxHide);
|
|
8123
8159
|
if (this._sxEffects) children.push(this._sxEffects);
|
|
8160
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
8124
8161
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
8125
8162
|
return children;
|
|
8126
8163
|
}
|
|
@@ -9031,6 +9068,7 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9031
9068
|
_sxLayer;
|
|
9032
9069
|
_sxWidth;
|
|
9033
9070
|
_sxStroke;
|
|
9071
|
+
_sxTstamp;
|
|
9034
9072
|
_sxUuid;
|
|
9035
9073
|
_locked = false;
|
|
9036
9074
|
constructor(params = {}) {
|
|
@@ -9041,6 +9079,7 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9041
9079
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
9042
9080
|
if (params.width !== void 0) this.width = params.width;
|
|
9043
9081
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
9082
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
9044
9083
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
9045
9084
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
9046
9085
|
}
|
|
@@ -9056,6 +9095,7 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9056
9095
|
arc._sxLayer = propertyMap.layer;
|
|
9057
9096
|
arc._sxWidth = propertyMap.width;
|
|
9058
9097
|
arc._sxStroke = propertyMap.stroke;
|
|
9098
|
+
arc._sxTstamp = propertyMap.tstamp;
|
|
9059
9099
|
arc._sxUuid = propertyMap.uuid;
|
|
9060
9100
|
for (const primitive of primitiveSexprs) {
|
|
9061
9101
|
if (primitive === "locked") {
|
|
@@ -9144,6 +9184,16 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9144
9184
|
set stroke(value) {
|
|
9145
9185
|
this._sxStroke = value;
|
|
9146
9186
|
}
|
|
9187
|
+
get tstamp() {
|
|
9188
|
+
return this._sxTstamp;
|
|
9189
|
+
}
|
|
9190
|
+
set tstamp(value) {
|
|
9191
|
+
if (value === void 0) {
|
|
9192
|
+
this._sxTstamp = void 0;
|
|
9193
|
+
return;
|
|
9194
|
+
}
|
|
9195
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
9196
|
+
}
|
|
9147
9197
|
get uuid() {
|
|
9148
9198
|
return this._sxUuid?.value;
|
|
9149
9199
|
}
|
|
@@ -9175,6 +9225,7 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9175
9225
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
9176
9226
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
9177
9227
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
9228
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
9178
9229
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
9179
9230
|
return children;
|
|
9180
9231
|
}
|
|
@@ -9190,6 +9241,7 @@ var FpArc = class _FpArc extends SxClass {
|
|
|
9190
9241
|
push(this._sxLayer);
|
|
9191
9242
|
push(this._sxWidth);
|
|
9192
9243
|
push(this._sxStroke);
|
|
9244
|
+
push(this._sxTstamp);
|
|
9193
9245
|
push(this._sxUuid);
|
|
9194
9246
|
if (this._locked) {
|
|
9195
9247
|
lines.push(" locked");
|
|
@@ -9334,6 +9386,7 @@ var SUPPORTED_TOKENS12 = /* @__PURE__ */ new Set([
|
|
|
9334
9386
|
"stroke",
|
|
9335
9387
|
"fill",
|
|
9336
9388
|
"locked",
|
|
9389
|
+
"tstamp",
|
|
9337
9390
|
"uuid"
|
|
9338
9391
|
]);
|
|
9339
9392
|
var FpPoly = class _FpPoly extends SxClass {
|
|
@@ -9345,6 +9398,7 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9345
9398
|
_sxStroke;
|
|
9346
9399
|
_sxFill;
|
|
9347
9400
|
_sxLocked;
|
|
9401
|
+
_sxTstamp;
|
|
9348
9402
|
_sxUuid;
|
|
9349
9403
|
constructor(params = {}) {
|
|
9350
9404
|
super();
|
|
@@ -9354,6 +9408,7 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9354
9408
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
9355
9409
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
9356
9410
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
9411
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
9357
9412
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
9358
9413
|
}
|
|
9359
9414
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -9400,6 +9455,7 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9400
9455
|
fpPoly._sxFill = propertyMap.fill;
|
|
9401
9456
|
const lockedClass = propertyMap.locked;
|
|
9402
9457
|
fpPoly._sxLocked = lockedClass && lockedClass.value ? lockedClass : void 0;
|
|
9458
|
+
fpPoly._sxTstamp = propertyMap.tstamp;
|
|
9403
9459
|
fpPoly._sxUuid = propertyMap.uuid;
|
|
9404
9460
|
for (const primitive of primitiveSexprs) {
|
|
9405
9461
|
if (primitive === "locked") {
|
|
@@ -9439,8 +9495,8 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9439
9495
|
if (!fpPoly._sxLayer) {
|
|
9440
9496
|
throw new Error("fp_poly requires a layer child token");
|
|
9441
9497
|
}
|
|
9442
|
-
if (!fpPoly._sxUuid) {
|
|
9443
|
-
throw new Error("fp_poly requires a uuid child token");
|
|
9498
|
+
if (!fpPoly._sxUuid && !fpPoly._sxTstamp) {
|
|
9499
|
+
throw new Error("fp_poly requires a uuid or tstamp child token");
|
|
9444
9500
|
}
|
|
9445
9501
|
return fpPoly;
|
|
9446
9502
|
}
|
|
@@ -9523,6 +9579,16 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9523
9579
|
set locked(value) {
|
|
9524
9580
|
this._sxLocked = value ? new FpPolyLocked(true) : void 0;
|
|
9525
9581
|
}
|
|
9582
|
+
get tstamp() {
|
|
9583
|
+
return this._sxTstamp;
|
|
9584
|
+
}
|
|
9585
|
+
set tstamp(value) {
|
|
9586
|
+
if (value === void 0) {
|
|
9587
|
+
this._sxTstamp = void 0;
|
|
9588
|
+
return;
|
|
9589
|
+
}
|
|
9590
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
9591
|
+
}
|
|
9526
9592
|
get uuid() {
|
|
9527
9593
|
return this._sxUuid;
|
|
9528
9594
|
}
|
|
@@ -9541,6 +9607,7 @@ var FpPoly = class _FpPoly extends SxClass {
|
|
|
9541
9607
|
if (this._sxStroke) children.push(this._sxStroke);
|
|
9542
9608
|
if (this._sxFill) children.push(this._sxFill);
|
|
9543
9609
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
9610
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
9544
9611
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
9545
9612
|
return children;
|
|
9546
9613
|
}
|
|
@@ -9618,6 +9685,7 @@ var SUPPORTED_SINGLE_TOKENS4 = /* @__PURE__ */ new Set([
|
|
|
9618
9685
|
"layer",
|
|
9619
9686
|
"width",
|
|
9620
9687
|
"stroke",
|
|
9688
|
+
"tstamp",
|
|
9621
9689
|
"uuid"
|
|
9622
9690
|
]);
|
|
9623
9691
|
var FpLine = class _FpLine extends SxClass {
|
|
@@ -9629,6 +9697,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
9629
9697
|
_sxLayer;
|
|
9630
9698
|
_sxWidth;
|
|
9631
9699
|
_sxStroke;
|
|
9700
|
+
_sxTstamp;
|
|
9632
9701
|
_sxUuid;
|
|
9633
9702
|
_locked = false;
|
|
9634
9703
|
constructor(params = {}) {
|
|
@@ -9638,6 +9707,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
9638
9707
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
9639
9708
|
if (params.width !== void 0) this.width = params.width;
|
|
9640
9709
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
9710
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
9641
9711
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
9642
9712
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
9643
9713
|
}
|
|
@@ -9687,6 +9757,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
9687
9757
|
fpLine._sxLayer = arrayPropertyMap.layer?.[0] ?? propertyMap.layer;
|
|
9688
9758
|
fpLine._sxWidth = arrayPropertyMap.width?.[0] ?? propertyMap.width;
|
|
9689
9759
|
fpLine._sxStroke = arrayPropertyMap.stroke?.[0] ?? propertyMap.stroke;
|
|
9760
|
+
fpLine._sxTstamp = arrayPropertyMap.tstamp?.[0] ?? propertyMap.tstamp;
|
|
9690
9761
|
fpLine._sxUuid = arrayPropertyMap.uuid?.[0] ?? propertyMap.uuid;
|
|
9691
9762
|
if (!fpLine._sxStart) {
|
|
9692
9763
|
throw new Error("fp_line requires a start child token");
|
|
@@ -9746,6 +9817,16 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
9746
9817
|
set stroke(value) {
|
|
9747
9818
|
this._sxStroke = value;
|
|
9748
9819
|
}
|
|
9820
|
+
get tstamp() {
|
|
9821
|
+
return this._sxTstamp;
|
|
9822
|
+
}
|
|
9823
|
+
set tstamp(value) {
|
|
9824
|
+
if (value === void 0) {
|
|
9825
|
+
this._sxTstamp = void 0;
|
|
9826
|
+
return;
|
|
9827
|
+
}
|
|
9828
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
9829
|
+
}
|
|
9749
9830
|
get uuid() {
|
|
9750
9831
|
return this._sxUuid;
|
|
9751
9832
|
}
|
|
@@ -9772,6 +9853,7 @@ var FpLine = class _FpLine extends SxClass {
|
|
|
9772
9853
|
children.push(this._sxWidth);
|
|
9773
9854
|
}
|
|
9774
9855
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
9856
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
9775
9857
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
9776
9858
|
if (this._locked) children.push(new FpLineLocked());
|
|
9777
9859
|
return children;
|
|
@@ -10010,6 +10092,7 @@ var SINGLE_TOKENS2 = /* @__PURE__ */ new Set([
|
|
|
10010
10092
|
"locked",
|
|
10011
10093
|
"placed",
|
|
10012
10094
|
"tedit",
|
|
10095
|
+
"tstamp",
|
|
10013
10096
|
"uuid",
|
|
10014
10097
|
"at",
|
|
10015
10098
|
"xy",
|
|
@@ -10053,6 +10136,7 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
10053
10136
|
_sxPlaced;
|
|
10054
10137
|
_sxLayer;
|
|
10055
10138
|
_sxTedit;
|
|
10139
|
+
_sxTstamp;
|
|
10056
10140
|
_sxUuid;
|
|
10057
10141
|
_sxAt;
|
|
10058
10142
|
_sxXy;
|
|
@@ -10090,6 +10174,7 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
10090
10174
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
10091
10175
|
if (params.placed !== void 0) this.placed = params.placed;
|
|
10092
10176
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
10177
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
10093
10178
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
10094
10179
|
if (params.at !== void 0) this.position = params.at;
|
|
10095
10180
|
if (params.descr !== void 0) this.descr = params.descr;
|
|
@@ -10182,6 +10267,7 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
10182
10267
|
}
|
|
10183
10268
|
footprint._sxLayer = propertyMap.layer;
|
|
10184
10269
|
footprint._sxTedit = propertyMap.tedit;
|
|
10270
|
+
footprint._sxTstamp = propertyMap.tstamp;
|
|
10185
10271
|
footprint._sxUuid = propertyMap.uuid;
|
|
10186
10272
|
footprint._sxAt = propertyMap.at;
|
|
10187
10273
|
footprint._sxXy = propertyMap.xy;
|
|
@@ -10294,6 +10380,16 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
10294
10380
|
}
|
|
10295
10381
|
this._sxTedit = value instanceof FootprintTedit ? value : new FootprintTedit(value);
|
|
10296
10382
|
}
|
|
10383
|
+
get tstamp() {
|
|
10384
|
+
return this._sxTstamp;
|
|
10385
|
+
}
|
|
10386
|
+
set tstamp(value) {
|
|
10387
|
+
if (value === void 0) {
|
|
10388
|
+
this._sxTstamp = void 0;
|
|
10389
|
+
return;
|
|
10390
|
+
}
|
|
10391
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
10392
|
+
}
|
|
10297
10393
|
get uuid() {
|
|
10298
10394
|
return this._sxUuid;
|
|
10299
10395
|
}
|
|
@@ -10564,6 +10660,7 @@ var Footprint = class _Footprint extends SxClass {
|
|
|
10564
10660
|
if (this._sxPlaced) children.push(this._sxPlaced);
|
|
10565
10661
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
10566
10662
|
if (this._sxTedit) children.push(this._sxTedit);
|
|
10663
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
10567
10664
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
10568
10665
|
if (this._sxAt) children.push(this._sxAt);
|
|
10569
10666
|
if (this._sxXy) children.push(this._sxXy);
|
|
@@ -10669,6 +10766,7 @@ var SUPPORTED_SINGLE_TOKENS5 = /* @__PURE__ */ new Set([
|
|
|
10669
10766
|
"layer",
|
|
10670
10767
|
"width",
|
|
10671
10768
|
"stroke",
|
|
10769
|
+
"tstamp",
|
|
10672
10770
|
"uuid",
|
|
10673
10771
|
"locked"
|
|
10674
10772
|
]);
|
|
@@ -10681,6 +10779,7 @@ var GrLine = class _GrLine extends SxClass {
|
|
|
10681
10779
|
_sxLayer;
|
|
10682
10780
|
_sxWidth;
|
|
10683
10781
|
_sxStroke;
|
|
10782
|
+
_sxTstamp;
|
|
10684
10783
|
_sxUuid;
|
|
10685
10784
|
_sxLocked;
|
|
10686
10785
|
constructor(params = {}) {
|
|
@@ -10691,6 +10790,7 @@ var GrLine = class _GrLine extends SxClass {
|
|
|
10691
10790
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
10692
10791
|
if (params.width !== void 0) this.width = params.width;
|
|
10693
10792
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
10793
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
10694
10794
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
10695
10795
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
10696
10796
|
}
|
|
@@ -10733,6 +10833,7 @@ var GrLine = class _GrLine extends SxClass {
|
|
|
10733
10833
|
grLine._sxStroke = propertyMap.stroke;
|
|
10734
10834
|
const locked = propertyMap.locked;
|
|
10735
10835
|
grLine._sxLocked = locked && locked.value ? locked : void 0;
|
|
10836
|
+
grLine._sxTstamp = propertyMap.tstamp;
|
|
10736
10837
|
grLine._sxUuid = propertyMap.uuid;
|
|
10737
10838
|
if (!grLine._sxStart) {
|
|
10738
10839
|
throw new Error("gr_line requires a start child token");
|
|
@@ -10810,6 +10911,16 @@ var GrLine = class _GrLine extends SxClass {
|
|
|
10810
10911
|
set stroke(value) {
|
|
10811
10912
|
this._sxStroke = value;
|
|
10812
10913
|
}
|
|
10914
|
+
get tstamp() {
|
|
10915
|
+
return this._sxTstamp;
|
|
10916
|
+
}
|
|
10917
|
+
set tstamp(value) {
|
|
10918
|
+
if (value === void 0) {
|
|
10919
|
+
this._sxTstamp = void 0;
|
|
10920
|
+
return;
|
|
10921
|
+
}
|
|
10922
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
10923
|
+
}
|
|
10813
10924
|
get uuid() {
|
|
10814
10925
|
return this._sxUuid;
|
|
10815
10926
|
}
|
|
@@ -10835,6 +10946,7 @@ var GrLine = class _GrLine extends SxClass {
|
|
|
10835
10946
|
if (this._sxWidth) children.push(this._sxWidth);
|
|
10836
10947
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
10837
10948
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
10949
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
10838
10950
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
10839
10951
|
return children;
|
|
10840
10952
|
}
|
|
@@ -11196,6 +11308,7 @@ var SUPPORTED_SINGLE_TOKENS7 = /* @__PURE__ */ new Set([
|
|
|
11196
11308
|
"width",
|
|
11197
11309
|
"layer",
|
|
11198
11310
|
"net",
|
|
11311
|
+
"tstamp",
|
|
11199
11312
|
"uuid",
|
|
11200
11313
|
"locked"
|
|
11201
11314
|
]);
|
|
@@ -11207,6 +11320,7 @@ var Segment = class _Segment extends SxClass {
|
|
|
11207
11320
|
_sxWidth;
|
|
11208
11321
|
_sxLayer;
|
|
11209
11322
|
_sxNet;
|
|
11323
|
+
_sxTstamp;
|
|
11210
11324
|
_sxUuid;
|
|
11211
11325
|
_sxLocked;
|
|
11212
11326
|
constructor(params = {}) {
|
|
@@ -11216,6 +11330,7 @@ var Segment = class _Segment extends SxClass {
|
|
|
11216
11330
|
if (params.width !== void 0) this.width = params.width;
|
|
11217
11331
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
11218
11332
|
if (params.net !== void 0) this.net = params.net;
|
|
11333
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
11219
11334
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
11220
11335
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
11221
11336
|
}
|
|
@@ -11249,6 +11364,7 @@ var Segment = class _Segment extends SxClass {
|
|
|
11249
11364
|
segment._sxNet = arrayPropertyMap.net?.[0] ?? propertyMap.net;
|
|
11250
11365
|
const locked = arrayPropertyMap.locked?.[0] ?? propertyMap.locked;
|
|
11251
11366
|
segment._sxLocked = locked && locked.value ? locked : void 0;
|
|
11367
|
+
segment._sxTstamp = arrayPropertyMap.tstamp?.[0] ?? propertyMap.tstamp;
|
|
11252
11368
|
segment._sxUuid = arrayPropertyMap.uuid?.[0] ?? propertyMap.uuid;
|
|
11253
11369
|
return segment;
|
|
11254
11370
|
}
|
|
@@ -11315,6 +11431,16 @@ var Segment = class _Segment extends SxClass {
|
|
|
11315
11431
|
}
|
|
11316
11432
|
this._sxNet = new SegmentNet(value.id, value.name);
|
|
11317
11433
|
}
|
|
11434
|
+
get tstamp() {
|
|
11435
|
+
return this._sxTstamp;
|
|
11436
|
+
}
|
|
11437
|
+
set tstamp(value) {
|
|
11438
|
+
if (value === void 0) {
|
|
11439
|
+
this._sxTstamp = void 0;
|
|
11440
|
+
return;
|
|
11441
|
+
}
|
|
11442
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
11443
|
+
}
|
|
11318
11444
|
get uuid() {
|
|
11319
11445
|
return this._sxUuid;
|
|
11320
11446
|
}
|
|
@@ -11339,6 +11465,7 @@ var Segment = class _Segment extends SxClass {
|
|
|
11339
11465
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
11340
11466
|
if (this._sxNet) children.push(this._sxNet);
|
|
11341
11467
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
11468
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
11342
11469
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
11343
11470
|
return children;
|
|
11344
11471
|
}
|
|
@@ -13643,7 +13770,7 @@ var Via = class _Via extends SxClass {
|
|
|
13643
13770
|
_sxLayers;
|
|
13644
13771
|
_sxNet;
|
|
13645
13772
|
_sxUuid;
|
|
13646
|
-
|
|
13773
|
+
_sxTstamp;
|
|
13647
13774
|
_sxTeardrops;
|
|
13648
13775
|
constructor(params = {}) {
|
|
13649
13776
|
super();
|
|
@@ -13781,7 +13908,7 @@ var Via = class _Via extends SxClass {
|
|
|
13781
13908
|
if (value === void 0) {
|
|
13782
13909
|
throw new Error("via tstamp expects a string value");
|
|
13783
13910
|
}
|
|
13784
|
-
this.
|
|
13911
|
+
this._sxTstamp = new Tstamp(value);
|
|
13785
13912
|
return;
|
|
13786
13913
|
}
|
|
13787
13914
|
default:
|
|
@@ -13877,10 +14004,14 @@ var Via = class _Via extends SxClass {
|
|
|
13877
14004
|
this._sxTeardrops = value;
|
|
13878
14005
|
}
|
|
13879
14006
|
get tstamp() {
|
|
13880
|
-
return this.
|
|
14007
|
+
return this._sxTstamp;
|
|
13881
14008
|
}
|
|
13882
14009
|
set tstamp(value) {
|
|
13883
|
-
|
|
14010
|
+
if (value === void 0) {
|
|
14011
|
+
this._sxTstamp = void 0;
|
|
14012
|
+
return;
|
|
14013
|
+
}
|
|
14014
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
13884
14015
|
}
|
|
13885
14016
|
getChildren() {
|
|
13886
14017
|
const children = [];
|
|
@@ -13888,6 +14019,7 @@ var Via = class _Via extends SxClass {
|
|
|
13888
14019
|
if (this._sxLayers) children.push(this._sxLayers);
|
|
13889
14020
|
if (this._sxNet) children.push(this._sxNet);
|
|
13890
14021
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
14022
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
13891
14023
|
if (this._sxTeardrops) children.push(this._sxTeardrops);
|
|
13892
14024
|
return children;
|
|
13893
14025
|
}
|
|
@@ -13906,9 +14038,7 @@ var Via = class _Via extends SxClass {
|
|
|
13906
14038
|
if (this._sxLayers) lines.push(this._sxLayers.getStringIndented());
|
|
13907
14039
|
if (this._sxNet) lines.push(this._sxNet.getStringIndented());
|
|
13908
14040
|
if (this._sxUuid) lines.push(this._sxUuid.getStringIndented());
|
|
13909
|
-
if (this.
|
|
13910
|
-
lines.push(` (tstamp ${quoteSExprString(this._tstamp)})`);
|
|
13911
|
-
}
|
|
14041
|
+
if (this._sxTstamp) lines.push(this._sxTstamp.getStringIndented());
|
|
13912
14042
|
if (this._sxTeardrops) {
|
|
13913
14043
|
lines.push(this._sxTeardrops.getStringIndented());
|
|
13914
14044
|
}
|
|
@@ -14513,6 +14643,7 @@ export {
|
|
|
14513
14643
|
TitleBlockDate,
|
|
14514
14644
|
TitleBlockRevision,
|
|
14515
14645
|
TitleBlockTitle,
|
|
14646
|
+
Tstamp,
|
|
14516
14647
|
Unit,
|
|
14517
14648
|
Uuid,
|
|
14518
14649
|
Via,
|