kicadts 0.0.40 → 0.0.41
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 +16 -1
- package/dist/index.js +52 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4685,6 +4685,7 @@ interface GrRectConstructorParams {
|
|
|
4685
4685
|
width?: number | Width;
|
|
4686
4686
|
stroke?: Stroke;
|
|
4687
4687
|
fill?: boolean | GrRectFill;
|
|
4688
|
+
tstamp?: string | Tstamp;
|
|
4688
4689
|
uuid?: string | Uuid;
|
|
4689
4690
|
locked?: boolean;
|
|
4690
4691
|
}
|
|
@@ -4697,6 +4698,7 @@ declare class GrRect extends SxClass {
|
|
|
4697
4698
|
private _sxWidth?;
|
|
4698
4699
|
private _sxStroke?;
|
|
4699
4700
|
private _sxFill?;
|
|
4701
|
+
private _sxTstamp?;
|
|
4700
4702
|
private _sxUuid?;
|
|
4701
4703
|
private _sxLocked?;
|
|
4702
4704
|
constructor(params?: GrRectConstructorParams);
|
|
@@ -4733,6 +4735,8 @@ declare class GrRect extends SxClass {
|
|
|
4733
4735
|
get uuid(): string | undefined;
|
|
4734
4736
|
set uuid(value: string | Uuid | undefined);
|
|
4735
4737
|
get uuidClass(): Uuid | undefined;
|
|
4738
|
+
get tstamp(): Tstamp | undefined;
|
|
4739
|
+
set tstamp(value: string | Tstamp | undefined);
|
|
4736
4740
|
get locked(): boolean;
|
|
4737
4741
|
set locked(value: boolean);
|
|
4738
4742
|
getChildren(): SxClass[];
|
|
@@ -4992,6 +4996,7 @@ declare class Dimension extends SxClass {
|
|
|
4992
4996
|
private _sxLocked?;
|
|
4993
4997
|
private _sxType?;
|
|
4994
4998
|
private _sxLayer?;
|
|
4999
|
+
private _sxTstamp?;
|
|
4995
5000
|
private _sxUuid?;
|
|
4996
5001
|
private _sxPts?;
|
|
4997
5002
|
private _sxHeight?;
|
|
@@ -5045,6 +5050,7 @@ interface PcbArcConstructorParams {
|
|
|
5045
5050
|
layer?: string | Layer;
|
|
5046
5051
|
net?: number | string;
|
|
5047
5052
|
locked?: boolean;
|
|
5053
|
+
tstamp?: string | Tstamp;
|
|
5048
5054
|
uuid?: string | Uuid;
|
|
5049
5055
|
}
|
|
5050
5056
|
declare class PcbArc extends SxClass {
|
|
@@ -5058,6 +5064,7 @@ declare class PcbArc extends SxClass {
|
|
|
5058
5064
|
private _sxLayer?;
|
|
5059
5065
|
private _net?;
|
|
5060
5066
|
private _locked;
|
|
5067
|
+
private _sxTstamp?;
|
|
5061
5068
|
private _sxUuid?;
|
|
5062
5069
|
constructor(params?: PcbArcConstructorParams);
|
|
5063
5070
|
static fromSexprPrimitives(primitiveSexprs: PrimitiveSExpr[]): PcbArc;
|
|
@@ -5077,6 +5084,8 @@ declare class PcbArc extends SxClass {
|
|
|
5077
5084
|
set locked(value: boolean);
|
|
5078
5085
|
get uuid(): Uuid | undefined;
|
|
5079
5086
|
set uuid(value: string | Uuid | undefined);
|
|
5087
|
+
get tstamp(): Tstamp | undefined;
|
|
5088
|
+
set tstamp(value: string | Tstamp | undefined);
|
|
5080
5089
|
getChildren(): SxClass[];
|
|
5081
5090
|
getString(): string;
|
|
5082
5091
|
}
|
|
@@ -5344,6 +5353,8 @@ declare class PcbPlotParams extends SxClass {
|
|
|
5344
5353
|
set dashed_line_dash_ratio(value: number | undefined);
|
|
5345
5354
|
get dashed_line_gap_ratio(): number | undefined;
|
|
5346
5355
|
set dashed_line_gap_ratio(value: number | undefined);
|
|
5356
|
+
get svguseinch(): string | undefined;
|
|
5357
|
+
set svguseinch(value: string | undefined);
|
|
5347
5358
|
get svgprecision(): number | undefined;
|
|
5348
5359
|
set svgprecision(value: number | undefined);
|
|
5349
5360
|
get linewidth(): number | undefined;
|
|
@@ -5770,6 +5781,10 @@ declare class PlotParamCreateGerberJobFile extends PlotParamProperty<string> {
|
|
|
5770
5781
|
static token: string;
|
|
5771
5782
|
token: string;
|
|
5772
5783
|
}
|
|
5784
|
+
declare class PlotParamSvgUseInch extends PlotParamProperty<string> {
|
|
5785
|
+
static token: string;
|
|
5786
|
+
token: string;
|
|
5787
|
+
}
|
|
5773
5788
|
declare class PlotParamExcludeEdgeLayer extends PlotParamProperty<string> {
|
|
5774
5789
|
static token: string;
|
|
5775
5790
|
token: string;
|
|
@@ -6420,4 +6435,4 @@ declare const parseKicadSch: (sexpr: string) => KicadSch;
|
|
|
6420
6435
|
declare const parseKicadPcb: (sexpr: string) => KicadPcb;
|
|
6421
6436
|
declare const parseKicadMod: (sexpr: string) => Footprint;
|
|
6422
6437
|
|
|
6423
|
-
export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteMarginRatio, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, 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, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, 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, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, 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, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, 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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
|
6438
|
+
export { At, type AtInput, Back, Bus, type BusConstructorParams, BusEntry, type BusEntryConstructorParams, BusEntrySize, Capping, Color, Covering, Dimension, DimensionFormat, DimensionStyle, Dnp, EmbeddedFile, EmbeddedFileChecksum, type EmbeddedFileConstructorParams, EmbeddedFileData, EmbeddedFileName, EmbeddedFileType, EmbeddedFiles, type EmbeddedFilesConstructorParams, EmbeddedFonts, ExcludeFromSim, FieldsAutoplaced, Filling, Footprint, FootprintAttr, FootprintAutoplaceCost180, FootprintAutoplaceCost90, FootprintClearance, type FootprintConstructorParams, FootprintDescr, FootprintDuplicatePadNumbersAreJumpers, FootprintGenerator, FootprintGeneratorVersion, FootprintLocked, FootprintModel, FootprintNetTiePadGroups, FootprintPad, type FootprintPadConstructorParams, FootprintPath, FootprintPlaced, FootprintPoint, FootprintPointSize, FootprintPrivateLayers, FootprintSheetfile, FootprintSheetname, FootprintSolderMaskMargin, FootprintSolderPasteMargin, FootprintSolderPasteMarginRatio, FootprintSolderPasteRatio, FootprintTags, FootprintTedit, FootprintThermalGap, FootprintThermalWidth, FootprintUnit, FootprintUnitName, FootprintUnitPins, FootprintUnits, FootprintVersion, FootprintZoneConnect, FpArc, type FpArcConstructorParams, FpArcEnd, FpArcMid, FpArcStart, FpCircle, FpCircleCenter, type FpCircleConstructorParams, FpCircleEnd, FpCircleFill, FpCircleNet, FpCurve, type FpCurveConstructorParams, FpCurveLocked, FpLine, type FpLineConstructorParams, FpLineEnd, FpLineNet, FpLineStart, FpPoly, type FpPolyConstructorParams, FpPolyFill, FpPolyLocked, FpRect, type FpRectConstructorParams, FpRectEnd, FpRectFill, FpRectNet, FpRectStart, FpText, FpTextBox, FpTextBoxAngle, type FpTextBoxConstructorParams, FpTextBoxEnd, FpTextBoxStart, type FpTextConstructorParams, type FpTextType, Front, Generated, GlobalLabel, type GlobalLabelConstructorParams, type GlobalLabelShape, GrArc, type GrArcConstructorParams, GrArcEnd, GrArcLocked, GrArcMid, type GrArcPoint, GrArcStart, GrCircle, GrCircleCenter, type GrCircleConstructorParams, GrCircleEnd, GrCircleLocked, type GrCirclePoint, GrCurve, type GrCurveConstructorParams, GrLine, GrLineAngle, type GrLineConstructorParams, GrLineEnd, GrLineLocked, type GrLinePoint, GrLineStart, GrPoly, type GrPolyConstructorParams, GrPolyFill, GrPolyNet, GrRect, type GrRectConstructorParams, GrRectEnd, GrRectFill, GrRectLocked, GrRectStart, GrText, type GrTextConstructorParams, GrTextLocked, type GrTextPosition, GrTextRenderCache, GrTextRenderCachePolygon, Group, type GroupConstructorParams, GroupLocked, GroupMembers, Image, type ImageConstructorParams, ImageData, ImageScale, InBom, InPosFiles, Junction, type JunctionConstructorParams, JunctionDiameter, KicadPcb, type KicadPcbConstructorParams, KicadSch, type KicadSchConstructorParams, KicadSchGenerator, KicadSchGeneratorVersion, KicadSchVersion, KicadSymbolLib, type KicadSymbolLibConstructorParams, KicadSymbolLibGenerator, KicadSymbolLibGeneratorVersion, KicadSymbolLibVersion, Label, type LabelConstructorParams, Layer, Layers, LibSymbols, Mirror, 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, PadPrimitiveGrCircleFill, PadPrimitiveGrLine, PadPrimitiveGrPoly, PadPrimitives, PadProperty, PadRectDelta, PadRoundrectRratio, PadSize, type PadSizeInput, PadSolderMaskMargin, PadSolderPasteMargin, PadSolderPasteMarginRatio, PadTeardrops, PadThermalBridgeAngle, PadThermalGap, PadThermalWidth, PadZoneConnect, PadZoneLayerConnections, Paper, PcbArc, type PcbArcConstructorParams, type PcbArcPoint, 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, PlotParamPlotFpText, PlotParamPlotFrameRef, PlotParamPlotInvisible, PlotParamPlotInvisibleText, PlotParamPlotOnAllLayers, PlotParamPlotOnAllLayersSelection, PlotParamPlotOtherText, PlotParamPlotPadNumbers, PlotParamPlotReference, PlotParamPlotValue, PlotParamProperty, PlotParamPsA4Output, PlotParamPsNegative, PlotParamScaleSelection, PlotParamSketchDnpOnFab, PlotParamSketchPadsOnFab, PlotParamSubtractMaskFromSilk, PlotParamSvgPrecision, PlotParamSvgUseInch, PlotParamUseAuxOrigin, PlotParamUseGerberAdvancedAttributes, PlotParamUseGerberAttributes, PlotParamUseGerberExtensions, PlotParamViaOnMask, Plugging, Polyline, type PolylineConstructorParams, Property, type PropertyConstructorParams, PropertyDoNotAutoplace, PropertyHide, PropertyShowName, PropertyUnlocked, Pts, PtsArc, PtsArcEnd, PtsArcMid, PtsArcStart, type RGBAColor, RenderCache, SchematicPolyline, SchematicRectangle, SchematicSymbol, type SchematicSymbolConstructorParams, SchematicText, SchematicTextBox, 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, SymbolBodyStyle, SymbolBodyStyles, SymbolCircle, SymbolCircleCenter, SymbolCircleFill, SymbolCircleRadius, SymbolDuplicatePinNumbersAreJumpers, SymbolFillType, SymbolInstancePath, SymbolInstanceReference, SymbolInstanceUnit, SymbolInstances, SymbolInstancesProject, SymbolLibId, SymbolLibName, SymbolPin, SymbolPinLength, SymbolPinName, SymbolPinNames, SymbolPinNamesHide, SymbolPinNamesOffset, SymbolPinNumber, SymbolPinNumbers, SymbolPinNumbersHide, SymbolPolyline, SymbolPolylineFill, type SymbolPolylineFillLike, SymbolPower, SymbolProperty, SymbolPropertyId, SymbolRectangle, SymbolRectangleEnd, SymbolRectangleFill, SymbolRectangleStart, SymbolText, SymbolTextBox, SymbolUnit, Target, TextBoxFill, TextBoxSize, TextEffects, type TextEffectsConstructorParams, TextEffectsFont, TextEffectsFontBold, TextEffectsFontFace, TextEffectsFontItalic, 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, ZoneAttr, ZoneAttrTeardrop, ZoneAttrTeardropType, ZoneConnectPads, ZoneConnectPadsClearance, type ZoneConstructorParams, ZoneFill, ZoneFillIslandAreaMin, ZoneFillIslandRemovalMode, ZoneFillRadius, ZoneFillSmoothing, ZoneFillThermalBridgeWidth, ZoneFillThermalGap, ZoneFilledAreasThickness, ZoneFilledPolygon, ZoneFilledPolygonIsland, ZoneHatch, ZoneKeepout, ZoneKeepoutCopperpour, ZoneKeepoutFootprints, ZoneKeepoutPads, ZoneKeepoutTracks, ZoneKeepoutVias, ZoneMinThickness, ZoneName, ZoneNet, ZoneNetName, ZonePlacement, ZonePlacementEnabled, ZonePlacementSheetname, ZonePolygon, ZonePriority, parseKicadMod, parseKicadPcb, parseKicadSch, parseKicadSexpr };
|
package/dist/index.js
CHANGED
|
@@ -15111,6 +15111,7 @@ var SUPPORTED_SINGLE_TOKENS10 = /* @__PURE__ */ new Set([
|
|
|
15111
15111
|
"width",
|
|
15112
15112
|
"stroke",
|
|
15113
15113
|
"fill",
|
|
15114
|
+
"tstamp",
|
|
15114
15115
|
"uuid",
|
|
15115
15116
|
"locked"
|
|
15116
15117
|
]);
|
|
@@ -15123,6 +15124,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15123
15124
|
_sxWidth;
|
|
15124
15125
|
_sxStroke;
|
|
15125
15126
|
_sxFill;
|
|
15127
|
+
_sxTstamp;
|
|
15126
15128
|
_sxUuid;
|
|
15127
15129
|
_sxLocked;
|
|
15128
15130
|
constructor(params = {}) {
|
|
@@ -15133,6 +15135,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15133
15135
|
if (params.width !== void 0) this.width = params.width;
|
|
15134
15136
|
if (params.stroke !== void 0) this.stroke = params.stroke;
|
|
15135
15137
|
if (params.fill !== void 0) this.fill = params.fill;
|
|
15138
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
15136
15139
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
15137
15140
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
15138
15141
|
}
|
|
@@ -15173,6 +15176,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15173
15176
|
grRect._sxWidth = propertyMap.width;
|
|
15174
15177
|
grRect._sxStroke = propertyMap.stroke;
|
|
15175
15178
|
grRect._sxFill = propertyMap.fill;
|
|
15179
|
+
grRect._sxTstamp = propertyMap.tstamp;
|
|
15176
15180
|
const locked = propertyMap.locked;
|
|
15177
15181
|
grRect._sxLocked = locked && locked.value ? locked : void 0;
|
|
15178
15182
|
grRect._sxUuid = propertyMap.uuid;
|
|
@@ -15296,6 +15300,16 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15296
15300
|
get uuidClass() {
|
|
15297
15301
|
return this._sxUuid;
|
|
15298
15302
|
}
|
|
15303
|
+
get tstamp() {
|
|
15304
|
+
return this._sxTstamp;
|
|
15305
|
+
}
|
|
15306
|
+
set tstamp(value) {
|
|
15307
|
+
if (value === void 0) {
|
|
15308
|
+
this._sxTstamp = void 0;
|
|
15309
|
+
return;
|
|
15310
|
+
}
|
|
15311
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
15312
|
+
}
|
|
15299
15313
|
get locked() {
|
|
15300
15314
|
return this._sxLocked?.value ?? false;
|
|
15301
15315
|
}
|
|
@@ -15311,6 +15325,7 @@ var GrRect = class _GrRect extends SxClass {
|
|
|
15311
15325
|
if (this._sxFill) children.push(this._sxFill);
|
|
15312
15326
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
15313
15327
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
15328
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
15314
15329
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
15315
15330
|
return children;
|
|
15316
15331
|
}
|
|
@@ -16405,6 +16420,7 @@ var SUPPORTED_TOKENS22 = /* @__PURE__ */ new Set([
|
|
|
16405
16420
|
"locked",
|
|
16406
16421
|
"type",
|
|
16407
16422
|
"layer",
|
|
16423
|
+
"tstamp",
|
|
16408
16424
|
"uuid",
|
|
16409
16425
|
"pts",
|
|
16410
16426
|
"height",
|
|
@@ -16421,6 +16437,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16421
16437
|
_sxLocked;
|
|
16422
16438
|
_sxType;
|
|
16423
16439
|
_sxLayer;
|
|
16440
|
+
_sxTstamp;
|
|
16424
16441
|
_sxUuid;
|
|
16425
16442
|
_sxPts;
|
|
16426
16443
|
_sxHeight;
|
|
@@ -16452,6 +16469,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16452
16469
|
dimension._sxLocked = propertyMap.locked;
|
|
16453
16470
|
dimension._sxType = propertyMap.type;
|
|
16454
16471
|
dimension._sxLayer = propertyMap.layer;
|
|
16472
|
+
dimension._sxTstamp = propertyMap.tstamp;
|
|
16455
16473
|
dimension._sxUuid = propertyMap.uuid;
|
|
16456
16474
|
dimension._sxPts = propertyMap.pts;
|
|
16457
16475
|
dimension._sxHeight = propertyMap.height;
|
|
@@ -16466,8 +16484,8 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16466
16484
|
if (!dimension._sxLayer) {
|
|
16467
16485
|
throw new Error("dimension requires a layer child token");
|
|
16468
16486
|
}
|
|
16469
|
-
if (!dimension._sxUuid) {
|
|
16470
|
-
throw new Error("dimension requires a uuid child token");
|
|
16487
|
+
if (!dimension._sxUuid && !dimension._sxTstamp) {
|
|
16488
|
+
throw new Error("dimension requires a uuid or tstamp child token");
|
|
16471
16489
|
}
|
|
16472
16490
|
if (!dimension._sxPts) {
|
|
16473
16491
|
throw new Error("dimension requires a pts child token");
|
|
@@ -16482,6 +16500,7 @@ var Dimension = class _Dimension extends SxClass {
|
|
|
16482
16500
|
if (this._sxLocked) children.push(this._sxLocked);
|
|
16483
16501
|
if (this._sxType) children.push(this._sxType);
|
|
16484
16502
|
if (this._sxLayer) children.push(this._sxLayer);
|
|
16503
|
+
if (this._sxTstamp) children.push(this._sxTstamp);
|
|
16485
16504
|
if (this._sxUuid) children.push(this._sxUuid);
|
|
16486
16505
|
if (this._sxPts) children.push(this._sxPts);
|
|
16487
16506
|
if (this._sxHeight) children.push(this._sxHeight);
|
|
@@ -16636,6 +16655,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16636
16655
|
_sxLayer;
|
|
16637
16656
|
_net;
|
|
16638
16657
|
_locked = false;
|
|
16658
|
+
_sxTstamp;
|
|
16639
16659
|
_sxUuid;
|
|
16640
16660
|
constructor(params = {}) {
|
|
16641
16661
|
super();
|
|
@@ -16646,6 +16666,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16646
16666
|
if (params.layer !== void 0) this.layer = params.layer;
|
|
16647
16667
|
if (params.net !== void 0) this.net = params.net;
|
|
16648
16668
|
if (params.locked !== void 0) this.locked = params.locked;
|
|
16669
|
+
if (params.tstamp !== void 0) this.tstamp = params.tstamp;
|
|
16649
16670
|
if (params.uuid !== void 0) this.uuid = params.uuid;
|
|
16650
16671
|
}
|
|
16651
16672
|
static fromSexprPrimitives(primitiveSexprs) {
|
|
@@ -16690,6 +16711,10 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16690
16711
|
arc._sxUuid = new Uuid(parseString(args[0], "uuid"));
|
|
16691
16712
|
continue;
|
|
16692
16713
|
}
|
|
16714
|
+
if (token === "tstamp") {
|
|
16715
|
+
arc._sxTstamp = new Tstamp(parseString(args[0], "tstamp"));
|
|
16716
|
+
continue;
|
|
16717
|
+
}
|
|
16693
16718
|
throw new Error(`arc encountered unsupported child token "${token}"`);
|
|
16694
16719
|
}
|
|
16695
16720
|
if (!arc._start || !arc._mid || !arc._end) {
|
|
@@ -16760,6 +16785,16 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16760
16785
|
}
|
|
16761
16786
|
this._sxUuid = value instanceof Uuid ? value : new Uuid(value);
|
|
16762
16787
|
}
|
|
16788
|
+
get tstamp() {
|
|
16789
|
+
return this._sxTstamp;
|
|
16790
|
+
}
|
|
16791
|
+
set tstamp(value) {
|
|
16792
|
+
if (value === void 0) {
|
|
16793
|
+
this._sxTstamp = void 0;
|
|
16794
|
+
return;
|
|
16795
|
+
}
|
|
16796
|
+
this._sxTstamp = value instanceof Tstamp ? value : new Tstamp(value);
|
|
16797
|
+
}
|
|
16763
16798
|
getChildren() {
|
|
16764
16799
|
return [];
|
|
16765
16800
|
}
|
|
@@ -16775,6 +16810,7 @@ var PcbArc = class _PcbArc extends SxClass {
|
|
|
16775
16810
|
const netValue = typeof this._net === "number" ? String(this._net) : quoteSExprString(this._net);
|
|
16776
16811
|
lines.push(` (net ${netValue})`);
|
|
16777
16812
|
}
|
|
16813
|
+
if (this._sxTstamp) lines.push(this._sxTstamp.getStringIndented());
|
|
16778
16814
|
if (this._sxUuid) lines.push(this._sxUuid.getStringIndented());
|
|
16779
16815
|
lines.push(")");
|
|
16780
16816
|
return lines.join("\n");
|
|
@@ -17503,6 +17539,11 @@ var PlotParamCreateGerberJobFile = class extends PlotParamProperty {
|
|
|
17503
17539
|
token = "creategerberjobfile";
|
|
17504
17540
|
};
|
|
17505
17541
|
SxClass.register(PlotParamCreateGerberJobFile);
|
|
17542
|
+
var PlotParamSvgUseInch = class extends PlotParamProperty {
|
|
17543
|
+
static token = "svguseinch";
|
|
17544
|
+
token = "svguseinch";
|
|
17545
|
+
};
|
|
17546
|
+
SxClass.register(PlotParamSvgUseInch);
|
|
17506
17547
|
var PlotParamExcludeEdgeLayer = class extends PlotParamProperty {
|
|
17507
17548
|
static token = "excludeedgelayer";
|
|
17508
17549
|
token = "excludeedgelayer";
|
|
@@ -17664,6 +17705,7 @@ var TOKEN_TO_KEY = {
|
|
|
17664
17705
|
excludeedgelayer: "excludeedgelayer",
|
|
17665
17706
|
dashed_line_dash_ratio: "dashed_line_dash_ratio",
|
|
17666
17707
|
dashed_line_gap_ratio: "dashed_line_gap_ratio",
|
|
17708
|
+
svguseinch: "svguseinch",
|
|
17667
17709
|
svgprecision: "svgprecision",
|
|
17668
17710
|
linewidth: "linewidth",
|
|
17669
17711
|
plotframeref: "plotframeref",
|
|
@@ -17715,6 +17757,7 @@ var PCB_PLOT_PARAM_CHILD_ORDER = [
|
|
|
17715
17757
|
"excludeedgelayer",
|
|
17716
17758
|
"dashed_line_dash_ratio",
|
|
17717
17759
|
"dashed_line_gap_ratio",
|
|
17760
|
+
"svguseinch",
|
|
17718
17761
|
"svgprecision",
|
|
17719
17762
|
"linewidth",
|
|
17720
17763
|
"plotframeref",
|
|
@@ -17905,6 +17948,12 @@ var PcbPlotParams = class _PcbPlotParams extends SxClass {
|
|
|
17905
17948
|
PlotParamDashedLineGapRatio
|
|
17906
17949
|
);
|
|
17907
17950
|
}
|
|
17951
|
+
get svguseinch() {
|
|
17952
|
+
return this._properties.svguseinch?.value;
|
|
17953
|
+
}
|
|
17954
|
+
set svguseinch(value) {
|
|
17955
|
+
this.setStringProperty("svguseinch", value, PlotParamSvgUseInch);
|
|
17956
|
+
}
|
|
17908
17957
|
get svgprecision() {
|
|
17909
17958
|
return this._properties.svgprecision?.value;
|
|
17910
17959
|
}
|
|
@@ -20635,6 +20684,7 @@ export {
|
|
|
20635
20684
|
PlotParamSketchPadsOnFab,
|
|
20636
20685
|
PlotParamSubtractMaskFromSilk,
|
|
20637
20686
|
PlotParamSvgPrecision,
|
|
20687
|
+
PlotParamSvgUseInch,
|
|
20638
20688
|
PlotParamUseAuxOrigin,
|
|
20639
20689
|
PlotParamUseGerberAdvancedAttributes,
|
|
20640
20690
|
PlotParamUseGerberAttributes,
|