@tscircuit/props 0.0.540 → 0.0.542

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/README.md CHANGED
@@ -1527,6 +1527,8 @@ export interface SchematicLineProps {
1527
1527
  strokeWidth?: Distance;
1528
1528
  color?: string;
1529
1529
  isDashed?: boolean;
1530
+ dashLength?: Distance;
1531
+ dashGap?: Distance;
1530
1532
  }
1531
1533
  ```
1532
1534
 
@@ -1540,6 +1542,8 @@ export interface SchematicPathProps {
1540
1542
  svgPath?: string;
1541
1543
  strokeWidth?: Distance;
1542
1544
  strokeColor?: string;
1545
+ dashLength?: Distance;
1546
+ dashGap?: Distance;
1543
1547
  isFilled?: boolean;
1544
1548
  fillColor?: string;
1545
1549
  }
@@ -1584,6 +1588,7 @@ export interface SchematicRowProps {
1584
1588
  export interface SchematicSectionProps {
1585
1589
  displayName?: string;
1586
1590
  name: string;
1591
+ sectionTitleFontSize?: number | string;
1587
1592
  }
1588
1593
  ```
1589
1594
 
package/dist/index.d.ts CHANGED
@@ -183037,6 +183037,8 @@ declare const schematicLineProps: z.ZodObject<{
183037
183037
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183038
183038
  color: z.ZodOptional<z.ZodString>;
183039
183039
  isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
183040
+ dashLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183041
+ dashGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183040
183042
  }, "strip", z.ZodTypeAny, {
183041
183043
  isDashed: boolean;
183042
183044
  x1: number;
@@ -183045,6 +183047,8 @@ declare const schematicLineProps: z.ZodObject<{
183045
183047
  y2: number;
183046
183048
  strokeWidth?: number | undefined;
183047
183049
  color?: string | undefined;
183050
+ dashLength?: number | undefined;
183051
+ dashGap?: number | undefined;
183048
183052
  }, {
183049
183053
  x1: string | number;
183050
183054
  y1: string | number;
@@ -183053,6 +183057,8 @@ declare const schematicLineProps: z.ZodObject<{
183053
183057
  strokeWidth?: string | number | undefined;
183054
183058
  color?: string | undefined;
183055
183059
  isDashed?: boolean | undefined;
183060
+ dashLength?: string | number | undefined;
183061
+ dashGap?: string | number | undefined;
183056
183062
  }>;
183057
183063
  interface SchematicLineProps {
183058
183064
  x1: Distance;
@@ -183062,6 +183068,8 @@ interface SchematicLineProps {
183062
183068
  strokeWidth?: Distance;
183063
183069
  color?: string;
183064
183070
  isDashed?: boolean;
183071
+ dashLength?: Distance;
183072
+ dashGap?: Distance;
183065
183073
  }
183066
183074
  type InferredSchematicLineProps = z.input<typeof schematicLineProps>;
183067
183075
 
@@ -183117,6 +183125,8 @@ declare const schematicPathProps: z.ZodObject<{
183117
183125
  svgPath: z.ZodOptional<z.ZodString>;
183118
183126
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183119
183127
  strokeColor: z.ZodOptional<z.ZodString>;
183128
+ dashLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183129
+ dashGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183120
183130
  isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
183121
183131
  fillColor: z.ZodOptional<z.ZodString>;
183122
183132
  }, "strip", z.ZodTypeAny, {
@@ -183127,6 +183137,8 @@ declare const schematicPathProps: z.ZodObject<{
183127
183137
  y: number;
183128
183138
  }[] | undefined;
183129
183139
  fillColor?: string | undefined;
183140
+ dashLength?: number | undefined;
183141
+ dashGap?: number | undefined;
183130
183142
  svgPath?: string | undefined;
183131
183143
  strokeColor?: string | undefined;
183132
183144
  }, {
@@ -183137,6 +183149,8 @@ declare const schematicPathProps: z.ZodObject<{
183137
183149
  }[] | undefined;
183138
183150
  isFilled?: boolean | undefined;
183139
183151
  fillColor?: string | undefined;
183152
+ dashLength?: string | number | undefined;
183153
+ dashGap?: string | number | undefined;
183140
183154
  svgPath?: string | undefined;
183141
183155
  strokeColor?: string | undefined;
183142
183156
  }>;
@@ -183145,6 +183159,8 @@ interface SchematicPathProps {
183145
183159
  svgPath?: string;
183146
183160
  strokeWidth?: Distance;
183147
183161
  strokeColor?: string;
183162
+ dashLength?: Distance;
183163
+ dashGap?: Distance;
183148
183164
  isFilled?: boolean;
183149
183165
  fillColor?: string;
183150
183166
  }
@@ -183242,16 +183258,20 @@ interface SchematicCellProps {
183242
183258
  interface SchematicSectionProps {
183243
183259
  displayName?: string;
183244
183260
  name: string;
183261
+ sectionTitleFontSize?: number | string;
183245
183262
  }
183246
183263
  declare const schematicSectionProps: z.ZodObject<{
183247
183264
  displayName: z.ZodOptional<z.ZodString>;
183248
183265
  name: z.ZodString;
183266
+ sectionTitleFontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
183249
183267
  }, "strip", z.ZodTypeAny, {
183250
183268
  name: string;
183251
183269
  displayName?: string | undefined;
183270
+ sectionTitleFontSize?: number | undefined;
183252
183271
  }, {
183253
183272
  name: string;
183254
183273
  displayName?: string | undefined;
183274
+ sectionTitleFontSize?: string | number | undefined;
183255
183275
  }>;
183256
183276
  type InferredSchematicSectionProps = z.input<typeof schematicSectionProps>;
183257
183277
 
package/dist/index.js CHANGED
@@ -18057,7 +18057,9 @@ var schematicLineProps = z108.object({
18057
18057
  y2: distance33,
18058
18058
  strokeWidth: distance33.optional(),
18059
18059
  color: z108.string().optional(),
18060
- isDashed: z108.boolean().optional().default(false)
18060
+ isDashed: z108.boolean().optional().default(false),
18061
+ dashLength: distance33.optional(),
18062
+ dashGap: distance33.optional()
18061
18063
  });
18062
18064
  expectTypesMatch(true);
18063
18065
 
@@ -18095,6 +18097,8 @@ var schematicPathProps = z111.object({
18095
18097
  svgPath: z111.string().optional(),
18096
18098
  strokeWidth: distance35.optional(),
18097
18099
  strokeColor: z111.string().optional(),
18100
+ dashLength: distance35.optional(),
18101
+ dashGap: distance35.optional(),
18098
18102
  isFilled: z111.boolean().optional().default(false),
18099
18103
  fillColor: z111.string().optional()
18100
18104
  });
@@ -18139,10 +18143,12 @@ var schematicCellProps = z114.object({
18139
18143
  expectTypesMatch(true);
18140
18144
 
18141
18145
  // lib/components/schematic-section.ts
18146
+ import { distance as distance39 } from "circuit-json";
18142
18147
  import { z as z115 } from "zod";
18143
18148
  var schematicSectionProps = z115.object({
18144
18149
  displayName: z115.string().optional(),
18145
- name: z115.string()
18150
+ name: z115.string(),
18151
+ sectionTitleFontSize: distance39.optional()
18146
18152
  });
18147
18153
  expectTypesMatch(
18148
18154
  true
@@ -18200,7 +18206,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
18200
18206
  });
18201
18207
 
18202
18208
  // lib/components/silkscreen-line.ts
18203
- import { distance as distance39 } from "circuit-json";
18209
+ import { distance as distance40 } from "circuit-json";
18204
18210
  var silkscreenLineProps = pcbLayoutProps.omit({
18205
18211
  pcbX: true,
18206
18212
  pcbY: true,
@@ -18208,41 +18214,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
18208
18214
  pcbOffsetY: true,
18209
18215
  pcbRotation: true
18210
18216
  }).extend({
18211
- strokeWidth: distance39,
18212
- x1: distance39,
18213
- y1: distance39,
18214
- x2: distance39,
18215
- y2: distance39
18217
+ strokeWidth: distance40,
18218
+ x1: distance40,
18219
+ y1: distance40,
18220
+ x2: distance40,
18221
+ y2: distance40
18216
18222
  });
18217
18223
 
18218
18224
  // lib/components/silkscreen-rect.ts
18219
- import { distance as distance40 } from "circuit-json";
18225
+ import { distance as distance41 } from "circuit-json";
18220
18226
  import { z as z119 } from "zod";
18221
18227
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18222
18228
  filled: z119.boolean().default(true).optional(),
18223
18229
  stroke: z119.enum(["dashed", "solid", "none"]).optional(),
18224
- strokeWidth: distance40.optional(),
18225
- width: distance40,
18226
- height: distance40,
18227
- cornerRadius: distance40.optional()
18230
+ strokeWidth: distance41.optional(),
18231
+ width: distance41,
18232
+ height: distance41,
18233
+ cornerRadius: distance41.optional()
18228
18234
  });
18229
18235
 
18230
18236
  // lib/components/silkscreen-circle.ts
18231
- import { distance as distance41 } from "circuit-json";
18237
+ import { distance as distance42 } from "circuit-json";
18232
18238
  import { z as z120 } from "zod";
18233
18239
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18234
18240
  isFilled: z120.boolean().optional(),
18235
18241
  isOutline: z120.boolean().optional(),
18236
- strokeWidth: distance41.optional(),
18237
- radius: distance41
18242
+ strokeWidth: distance42.optional(),
18243
+ radius: distance42
18238
18244
  });
18239
18245
 
18240
18246
  // lib/components/trace-hint.ts
18241
- import { distance as distance42, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18247
+ import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
18242
18248
  import { z as z121 } from "zod";
18243
18249
  var routeHintPointProps = z121.object({
18244
- x: distance42,
18245
- y: distance42,
18250
+ x: distance43,
18251
+ y: distance43,
18246
18252
  via: z121.boolean().optional(),
18247
18253
  toLayer: layer_ref12.optional()
18248
18254
  });
@@ -18286,17 +18292,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18286
18292
  expectTypesMatch(true);
18287
18293
 
18288
18294
  // lib/components/pcb-note-rect.ts
18289
- import { distance as distance43 } from "circuit-json";
18295
+ import { distance as distance44 } from "circuit-json";
18290
18296
  import { z as z124 } from "zod";
18291
18297
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18292
- width: distance43,
18293
- height: distance43,
18294
- strokeWidth: distance43.optional(),
18298
+ width: distance44,
18299
+ height: distance44,
18300
+ strokeWidth: distance44.optional(),
18295
18301
  isFilled: z124.boolean().optional(),
18296
18302
  hasStroke: z124.boolean().optional(),
18297
18303
  isStrokeDashed: z124.boolean().optional(),
18298
18304
  color: z124.string().optional(),
18299
- cornerRadius: distance43.optional()
18305
+ cornerRadius: distance44.optional()
18300
18306
  });
18301
18307
  expectTypesMatch(true);
18302
18308
 
@@ -18324,7 +18330,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18324
18330
  expectTypesMatch(true);
18325
18331
 
18326
18332
  // lib/components/pcb-note-line.ts
18327
- import { distance as distance44 } from "circuit-json";
18333
+ import { distance as distance45 } from "circuit-json";
18328
18334
  import { z as z126 } from "zod";
18329
18335
  var pcbNoteLineProps = pcbLayoutProps.omit({
18330
18336
  pcbLeftEdgeX: true,
@@ -18337,18 +18343,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18337
18343
  pcbOffsetY: true,
18338
18344
  pcbRotation: true
18339
18345
  }).extend({
18340
- x1: distance44,
18341
- y1: distance44,
18342
- x2: distance44,
18343
- y2: distance44,
18344
- strokeWidth: distance44.optional(),
18346
+ x1: distance45,
18347
+ y1: distance45,
18348
+ x2: distance45,
18349
+ y2: distance45,
18350
+ strokeWidth: distance45.optional(),
18345
18351
  color: z126.string().optional(),
18346
18352
  isDashed: z126.boolean().optional()
18347
18353
  });
18348
18354
  expectTypesMatch(true);
18349
18355
 
18350
18356
  // lib/components/pcb-note-dimension.ts
18351
- import { distance as distance45, length as length13 } from "circuit-json";
18357
+ import { distance as distance46, length as length13 } from "circuit-json";
18352
18358
  import { z as z127 } from "zod";
18353
18359
  var dimensionTarget2 = z127.union([z127.string(), point]);
18354
18360
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18365,11 +18371,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18365
18371
  from: dimensionTarget2,
18366
18372
  to: dimensionTarget2,
18367
18373
  text: z127.string().optional(),
18368
- offset: distance45.optional(),
18374
+ offset: distance46.optional(),
18369
18375
  font: z127.enum(["tscircuit2024"]).optional(),
18370
18376
  fontSize: length13.optional(),
18371
18377
  color: z127.string().optional(),
18372
- arrowSize: distance45.optional(),
18378
+ arrowSize: distance46.optional(),
18373
18379
  units: z127.enum(["in", "mm"]).optional(),
18374
18380
  outerEdgeToEdge: z127.literal(true).optional(),
18375
18381
  centerToCenter: z127.literal(true).optional(),