@tscircuit/props 0.0.336 → 0.0.338

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.
@@ -19,6 +19,10 @@ import {
19
19
  schematicPinArrangement,
20
20
  type SchematicPinArrangement,
21
21
  } from "lib/common/schematicPinDefinitions"
22
+ import {
23
+ schematicPinStyle,
24
+ type SchematicPinStyle,
25
+ } from "lib/common/schematicPinStyle"
22
26
  import type { Connections } from "lib/utility-types/connections-and-selectors"
23
27
 
24
28
  export const layoutConfig = z.object({
@@ -175,6 +179,16 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
175
179
  */
176
180
  schPinArrangement?: SchematicPinArrangement
177
181
 
182
+ /**
183
+ * Spacing between pins when rendered as a schematic box
184
+ */
185
+ schPinSpacing?: Distance
186
+
187
+ /**
188
+ * Styles to apply to individual pins in the schematic box representation
189
+ */
190
+ schPinStyle?: SchematicPinStyle
191
+
178
192
  pcbWidth?: Distance
179
193
  pcbHeight?: Distance
180
194
  schWidth?: Distance
@@ -409,6 +423,8 @@ export const baseGroupProps = commonLayoutProps.extend({
409
423
  showAsSchematicBox: z.boolean().optional(),
410
424
  connections: z.record(z.string(), connectionTarget.optional()).optional(),
411
425
  schPinArrangement: schematicPinArrangement.optional(),
426
+ schPinSpacing: length.optional(),
427
+ schPinStyle: schematicPinStyle.optional(),
412
428
 
413
429
  ...layoutConfig.shape,
414
430
  grid: layoutConfig.shape.grid.describe("@deprecated use pcbGrid"),
@@ -7,5 +7,6 @@ export const portProps = commonLayoutProps.extend({
7
7
  pinNumber: z.number().optional(),
8
8
  aliases: z.array(z.string()).optional(),
9
9
  direction: direction,
10
+ connectsTo: z.string().or(z.array(z.string())).optional(),
10
11
  })
11
12
  export type PortProps = z.input<typeof portProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.336",
3
+ "version": "0.0.338",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",