@tscircuit/props 0.0.181 → 0.0.182
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 +141 -1
- package/dist/index.js +320 -299
- package/dist/index.js.map +1 -1
- package/lib/manual-edits/manual-edit-events/edit_pcb_group_location_event.ts +29 -0
- package/lib/manual-edits/manual-edit-events/edit_schematic_group_location_event.ts +30 -0
- package/lib/manual-edits/manual-edit-events/edit_trace_hint_event.ts +0 -1
- package/lib/manual-edits/manual-edit-events/index.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2100,6 +2100,146 @@ interface EditSchematicComponentLocationEvent extends BaseManualEditEvent {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
type EditSchematicComponentLocationEventInput = z.input<typeof edit_schematic_component_location_event>;
|
|
2102
2102
|
|
|
2103
|
+
declare const edit_pcb_group_location_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
2104
|
+
edit_event_id: z.ZodString;
|
|
2105
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
2106
|
+
created_at: z.ZodNumber;
|
|
2107
|
+
}, {
|
|
2108
|
+
edit_event_type: z.ZodLiteral<"edit_pcb_group_location">;
|
|
2109
|
+
pcb_group_id: z.ZodString;
|
|
2110
|
+
original_center: z.ZodObject<{
|
|
2111
|
+
x: z.ZodNumber;
|
|
2112
|
+
y: z.ZodNumber;
|
|
2113
|
+
}, "strip", z.ZodTypeAny, {
|
|
2114
|
+
x: number;
|
|
2115
|
+
y: number;
|
|
2116
|
+
}, {
|
|
2117
|
+
x: number;
|
|
2118
|
+
y: number;
|
|
2119
|
+
}>;
|
|
2120
|
+
new_center: z.ZodObject<{
|
|
2121
|
+
x: z.ZodNumber;
|
|
2122
|
+
y: z.ZodNumber;
|
|
2123
|
+
}, "strip", z.ZodTypeAny, {
|
|
2124
|
+
x: number;
|
|
2125
|
+
y: number;
|
|
2126
|
+
}, {
|
|
2127
|
+
x: number;
|
|
2128
|
+
y: number;
|
|
2129
|
+
}>;
|
|
2130
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2131
|
+
edit_event_id: string;
|
|
2132
|
+
created_at: number;
|
|
2133
|
+
edit_event_type: "edit_pcb_group_location";
|
|
2134
|
+
original_center: {
|
|
2135
|
+
x: number;
|
|
2136
|
+
y: number;
|
|
2137
|
+
};
|
|
2138
|
+
new_center: {
|
|
2139
|
+
x: number;
|
|
2140
|
+
y: number;
|
|
2141
|
+
};
|
|
2142
|
+
pcb_group_id: string;
|
|
2143
|
+
in_progress?: boolean | undefined;
|
|
2144
|
+
}, {
|
|
2145
|
+
edit_event_id: string;
|
|
2146
|
+
created_at: number;
|
|
2147
|
+
edit_event_type: "edit_pcb_group_location";
|
|
2148
|
+
original_center: {
|
|
2149
|
+
x: number;
|
|
2150
|
+
y: number;
|
|
2151
|
+
};
|
|
2152
|
+
new_center: {
|
|
2153
|
+
x: number;
|
|
2154
|
+
y: number;
|
|
2155
|
+
};
|
|
2156
|
+
pcb_group_id: string;
|
|
2157
|
+
in_progress?: boolean | undefined;
|
|
2158
|
+
}>;
|
|
2159
|
+
interface EditPcbGroupLocationEvent extends BaseManualEditEvent {
|
|
2160
|
+
edit_event_type: "edit_pcb_group_location";
|
|
2161
|
+
pcb_group_id: string;
|
|
2162
|
+
original_center: {
|
|
2163
|
+
x: number;
|
|
2164
|
+
y: number;
|
|
2165
|
+
};
|
|
2166
|
+
new_center: {
|
|
2167
|
+
x: number;
|
|
2168
|
+
y: number;
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
type EditPcbGroupLocationEventInput = z.input<typeof edit_pcb_group_location_event>;
|
|
2172
|
+
|
|
2173
|
+
declare const edit_schematic_group_location_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
2174
|
+
edit_event_id: z.ZodString;
|
|
2175
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
2176
|
+
created_at: z.ZodNumber;
|
|
2177
|
+
}, {
|
|
2178
|
+
edit_event_type: z.ZodLiteral<"edit_schematic_group_location">;
|
|
2179
|
+
schematic_group_id: z.ZodString;
|
|
2180
|
+
original_center: z.ZodObject<{
|
|
2181
|
+
x: z.ZodNumber;
|
|
2182
|
+
y: z.ZodNumber;
|
|
2183
|
+
}, "strip", z.ZodTypeAny, {
|
|
2184
|
+
x: number;
|
|
2185
|
+
y: number;
|
|
2186
|
+
}, {
|
|
2187
|
+
x: number;
|
|
2188
|
+
y: number;
|
|
2189
|
+
}>;
|
|
2190
|
+
new_center: z.ZodObject<{
|
|
2191
|
+
x: z.ZodNumber;
|
|
2192
|
+
y: z.ZodNumber;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
x: number;
|
|
2195
|
+
y: number;
|
|
2196
|
+
}, {
|
|
2197
|
+
x: number;
|
|
2198
|
+
y: number;
|
|
2199
|
+
}>;
|
|
2200
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2201
|
+
edit_event_id: string;
|
|
2202
|
+
created_at: number;
|
|
2203
|
+
edit_event_type: "edit_schematic_group_location";
|
|
2204
|
+
original_center: {
|
|
2205
|
+
x: number;
|
|
2206
|
+
y: number;
|
|
2207
|
+
};
|
|
2208
|
+
new_center: {
|
|
2209
|
+
x: number;
|
|
2210
|
+
y: number;
|
|
2211
|
+
};
|
|
2212
|
+
schematic_group_id: string;
|
|
2213
|
+
in_progress?: boolean | undefined;
|
|
2214
|
+
}, {
|
|
2215
|
+
edit_event_id: string;
|
|
2216
|
+
created_at: number;
|
|
2217
|
+
edit_event_type: "edit_schematic_group_location";
|
|
2218
|
+
original_center: {
|
|
2219
|
+
x: number;
|
|
2220
|
+
y: number;
|
|
2221
|
+
};
|
|
2222
|
+
new_center: {
|
|
2223
|
+
x: number;
|
|
2224
|
+
y: number;
|
|
2225
|
+
};
|
|
2226
|
+
schematic_group_id: string;
|
|
2227
|
+
in_progress?: boolean | undefined;
|
|
2228
|
+
}>;
|
|
2229
|
+
interface EditSchematicGroupLocationEvent extends BaseManualEditEvent {
|
|
2230
|
+
edit_event_type: "edit_schematic_group_location";
|
|
2231
|
+
schematic_group_id: string;
|
|
2232
|
+
original_center: {
|
|
2233
|
+
x: number;
|
|
2234
|
+
y: number;
|
|
2235
|
+
};
|
|
2236
|
+
new_center: {
|
|
2237
|
+
x: number;
|
|
2238
|
+
y: number;
|
|
2239
|
+
};
|
|
2240
|
+
}
|
|
2241
|
+
type EditSchematicGroupLocationEventInput = z.input<typeof edit_schematic_group_location_event>;
|
|
2242
|
+
|
|
2103
2243
|
type ManualEditEvent = EditPcbComponentLocationEvent | EditTraceHintEvent | EditSchematicComponentLocationEvent;
|
|
2104
2244
|
declare const manual_edit_event: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
2105
2245
|
edit_event_id: z.ZodString;
|
|
@@ -18601,4 +18741,4 @@ declare const platformConfig: z.ZodObject<{
|
|
|
18601
18741
|
cloudAutorouterUrl?: string | undefined;
|
|
18602
18742
|
}>;
|
|
18603
18743
|
|
|
18604
|
-
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type JumperProps, type LayoutConfig, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetProps, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PillSmtPadProps, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PlatformConfig, type PortHints, type PortProps, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type TransistorProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_schematic_component_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, platedHoleProps, platformConfig, point3, portHints, portProps, portRef, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinArrangement, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, transistorPins, transistorProps, viaProps };
|
|
18744
|
+
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type JumperProps, type LayoutConfig, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetProps, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PillSmtPadProps, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PlatformConfig, type PortHints, type PortProps, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type TransistorProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_pcb_group_location_event, edit_schematic_component_location_event, edit_schematic_group_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, platedHoleProps, platformConfig, point3, portHints, portProps, portRef, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinArrangement, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, transistorPins, transistorProps, viaProps };
|