@tscircuit/props 0.0.240 → 0.0.242

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.
@@ -104,6 +104,11 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
104
104
  key?: any
105
105
  children?: any
106
106
 
107
+ /**
108
+ * Title to display above this group in the schematic view
109
+ */
110
+ schTitle?: string
111
+
107
112
  pcbWidth?: Distance
108
113
  pcbHeight?: Distance
109
114
  schWidth?: Distance
@@ -213,6 +218,7 @@ export type GroupProps = SubcircuitGroupPropsWithBool | NonSubcircuitGroupProps
213
218
  export const baseGroupProps = commonLayoutProps.extend({
214
219
  name: z.string().optional(),
215
220
  children: z.any().optional(),
221
+ schTitle: z.string().optional(),
216
222
  key: z.any().optional(),
217
223
 
218
224
  ...layoutConfig.shape,
@@ -8,6 +8,7 @@ import { z } from "zod"
8
8
  export interface CirclePlatedHoleProps
9
9
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
10
10
  name?: string
11
+ connectsTo?: string | string[]
11
12
  shape: "circle"
12
13
  holeDiameter: number | string
13
14
  outerDiameter: number | string
@@ -17,6 +18,7 @@ export interface CirclePlatedHoleProps
17
18
  export interface OvalPlatedHoleProps
18
19
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
19
20
  name?: string
21
+ connectsTo?: string | string[]
20
22
  shape: "oval"
21
23
  outerWidth: number | string
22
24
  outerHeight: number | string
@@ -33,6 +35,7 @@ export interface OvalPlatedHoleProps
33
35
  export interface PillPlatedHoleProps
34
36
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
35
37
  name?: string
38
+ connectsTo?: string | string[]
36
39
  shape: "pill"
37
40
  outerWidth: number | string
38
41
  outerHeight: number | string
@@ -50,6 +53,7 @@ export interface PillPlatedHoleProps
50
53
  export interface CircularHoleWithRectPlatedProps
51
54
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
52
55
  name?: string
56
+ connectsTo?: string | string[]
53
57
  shape: "circular_hole_with_rect_pad"
54
58
  holeDiameter: number | string
55
59
  rectPadWidth: number | string
@@ -62,6 +66,7 @@ export interface CircularHoleWithRectPlatedProps
62
66
  export interface PillWithRectPadPlatedHoleProps
63
67
  extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
64
68
  name?: string
69
+ connectsTo?: string | string[]
65
70
  shape: "pill_hole_with_rect_pad"
66
71
  holeShape: "pill"
67
72
  padShape: "rect"
@@ -90,6 +95,7 @@ export const platedHoleProps = z
90
95
  .discriminatedUnion("shape", [
91
96
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
92
97
  name: z.string().optional(),
98
+ connectsTo: z.string().or(z.array(z.string())).optional(),
93
99
  shape: z.literal("circle"),
94
100
  holeDiameter: distance,
95
101
  outerDiameter: distance,
@@ -97,6 +103,7 @@ export const platedHoleProps = z
97
103
  }),
98
104
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
99
105
  name: z.string().optional(),
106
+ connectsTo: z.string().or(z.array(z.string())).optional(),
100
107
  shape: z.literal("oval"),
101
108
  outerWidth: distance,
102
109
  outerHeight: distance,
@@ -108,6 +115,7 @@ export const platedHoleProps = z
108
115
  }),
109
116
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
110
117
  name: z.string().optional(),
118
+ connectsTo: z.string().or(z.array(z.string())).optional(),
111
119
  shape: z.literal("pill"),
112
120
  outerWidth: distance,
113
121
  outerHeight: distance,
@@ -119,6 +127,7 @@ export const platedHoleProps = z
119
127
  }),
120
128
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
121
129
  name: z.string().optional(),
130
+ connectsTo: z.string().or(z.array(z.string())).optional(),
122
131
  shape: z.literal("circular_hole_with_rect_pad"),
123
132
  holeDiameter: distance,
124
133
  rectPadWidth: distance,
@@ -129,6 +138,7 @@ export const platedHoleProps = z
129
138
  }),
130
139
  pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
131
140
  name: z.string().optional(),
141
+ connectsTo: z.string().or(z.array(z.string())).optional(),
132
142
  shape: z.literal("pill_hole_with_rect_pad"),
133
143
  holeShape: z.literal("pill"),
134
144
  padShape: z.literal("rect"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.240",
3
+ "version": "0.0.242",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",