@tscircuit/props 0.0.111 → 0.0.113
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 +386 -6
- package/dist/index.js +97 -66
- package/dist/index.js.map +1 -1
- package/lib/manual-edits/index.ts +3 -1
- package/lib/manual-edits/manual-edit-events/edit_pcb_component_location_event.ts +37 -0
- package/lib/manual-edits/manual-edit-events/edit_schematic_component_location_event.ts +31 -0
- package/lib/manual-edits/manual-edit-events/index.ts +2 -1
- package/lib/manual-edits/manual_edit_event.ts +15 -6
- package/lib/manual-edits/manual_edit_file.ts +3 -1
- package/lib/manual-edits/manual_pcb_placement.ts +24 -0
- package/lib/manual-edits/manual_schematic_placement.ts +30 -0
- package/package.json +1 -1
- package/lib/manual-edits/manual-edit-events/edit_component_location_event.ts +0 -29
- package/lib/manual-edits/manual_pcb_position.ts +0 -15
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod"
|
|
2
|
-
import { point } from "circuit-json"
|
|
3
|
-
|
|
4
|
-
export const manual_pcb_placement = z.object({
|
|
5
|
-
selector: z.string(),
|
|
6
|
-
relative_to: z
|
|
7
|
-
.string()
|
|
8
|
-
.optional()
|
|
9
|
-
.default("group_center")
|
|
10
|
-
.describe("Can be a selector or 'group_center'"),
|
|
11
|
-
center: point,
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
export type ManualPcbPosition = z.infer<typeof manual_pcb_placement>
|
|
15
|
-
export type ManualPcbPositionInput = z.input<typeof manual_pcb_placement>
|