@tscircuit/props 0.0.650 → 0.0.652

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
@@ -447,6 +447,10 @@ export interface BoardProps extends Omit<
447
447
  * to false.
448
448
  */
449
449
  automaticPoursEnabled?: boolean;
450
+ /** Whether to stitch copper pours on the same net across layers with vias. Defaults to false. */
451
+ enableViaStitching?: boolean;
452
+ /** Positive center-to-center stitching via spacing in millimeters or a unit string. Omitted uses the solver default. Does not enable stitching by itself. */
453
+ viaStitchPitch?: Distance;
450
454
  /** Whether this board should be omitted from the schematic view */
451
455
  schematicDisabled?: boolean;
452
456
  }
@@ -2417,7 +2421,10 @@ export interface PlatformConfig {
2417
2421
  /**
2418
2422
  * Allows the deprecated sequential_trace and auto_cloud autorouter presets.
2419
2423
  * Defaults to false because these presets are otherwise disabled.
2424
+ * This also applies to the sequential-trace and auto-cloud aliases.
2420
2425
  * Platforms should only enable this temporarily while migrating projects.
2426
+ * For sequential_trace / sequential-trace, use the default autorouter with
2427
+ * <autoroutingphase /> or <fanout /> elements as needed instead.
2421
2428
  */
2422
2429
  allowLegacyAutorouters?: boolean;
2423
2430
 
package/dist/index.d.ts CHANGED
@@ -21285,14 +21285,14 @@ interface AutorouterConfig {
21285
21285
  traceClearance?: Distance;
21286
21286
  availableJumperTypes?: Array<"1206x4" | "0603">;
21287
21287
  allowViaInPad?: boolean;
21288
- groupMode?: "sequential_trace" | "subcircuit" | /** @deprecated Use "sequential_trace" */ "sequential-trace";
21288
+ groupMode?: /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace";
21289
21289
  local?: boolean;
21290
21290
  algorithmFn?: (simpleRouteJson: any) => Promise<any>;
21291
21291
  /** Override the solver used to place implicit breakout points. */
21292
21292
  implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn;
21293
- preset?: "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Use "sequential_trace" */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
21293
+ preset?: /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
21294
21294
  }
21295
- type AutorouterPreset = "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "auto-jumper" | "sequential-trace" | "auto-local" | "auto-cloud";
21295
+ type AutorouterPreset = /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | "auto-local" | "auto-cloud";
21296
21296
  type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
21297
21297
  declare const routingTolerances: z.ZodObject<{
21298
21298
  minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -27934,6 +27934,10 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
27934
27934
  * to false.
27935
27935
  */
27936
27936
  automaticPoursEnabled?: boolean;
27937
+ /** Whether to stitch copper pours on the same net across layers with vias. Defaults to false. */
27938
+ enableViaStitching?: boolean;
27939
+ /** Positive center-to-center stitching via spacing in millimeters or a unit string. Omitted uses the solver default. Does not enable stitching by itself. */
27940
+ viaStitchPitch?: Distance;
27937
27941
  /** Whether this board should be omitted from the schematic view */
27938
27942
  schematicDisabled?: boolean;
27939
27943
  }
@@ -28755,6 +28759,8 @@ declare const boardProps: z.ZodObject<{
28755
28759
  doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
28756
28760
  isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
28757
28761
  automaticPoursEnabled: z.ZodDefault<z.ZodBoolean>;
28762
+ enableViaStitching: z.ZodDefault<z.ZodBoolean>;
28763
+ viaStitchPitch: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
28758
28764
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
28759
28765
  }, "strip", z.ZodTypeAny, {
28760
28766
  layers: 1 | 2 | 4 | 6 | 8 | 10;
@@ -28762,6 +28768,7 @@ declare const boardProps: z.ZodObject<{
28762
28768
  allowBlindAndBuriedVias: boolean;
28763
28769
  doubleSidedAssembly: boolean;
28764
28770
  automaticPoursEnabled: boolean;
28771
+ enableViaStitching: boolean;
28765
28772
  symbol?: SymbolProp | undefined;
28766
28773
  width?: number | undefined;
28767
28774
  height?: number | undefined;
@@ -29099,6 +29106,7 @@ declare const boardProps: z.ZodObject<{
29099
29106
  topSilkscreenColor?: BoardColor | undefined;
29100
29107
  bottomSilkscreenColor?: BoardColor | undefined;
29101
29108
  isViaInPadAllowed?: boolean | undefined;
29109
+ viaStitchPitch?: number | undefined;
29102
29110
  schematicDisabled?: boolean | undefined;
29103
29111
  }, {
29104
29112
  symbol?: SymbolProp | undefined;
@@ -29447,6 +29455,8 @@ declare const boardProps: z.ZodObject<{
29447
29455
  doubleSidedAssembly?: boolean | undefined;
29448
29456
  isViaInPadAllowed?: boolean | undefined;
29449
29457
  automaticPoursEnabled?: boolean | undefined;
29458
+ enableViaStitching?: boolean | undefined;
29459
+ viaStitchPitch?: string | number | undefined;
29450
29460
  schematicDisabled?: boolean | undefined;
29451
29461
  }>;
29452
29462
 
@@ -102759,6 +102769,8 @@ declare const stampboardProps: z.ZodObject<{
102759
102769
  doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
102760
102770
  isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
102761
102771
  automaticPoursEnabled: z.ZodDefault<z.ZodBoolean>;
102772
+ enableViaStitching: z.ZodDefault<z.ZodBoolean>;
102773
+ viaStitchPitch: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
102762
102774
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
102763
102775
  } & {
102764
102776
  leftPinCount: z.ZodOptional<z.ZodNumber>;
@@ -102777,6 +102789,7 @@ declare const stampboardProps: z.ZodObject<{
102777
102789
  allowBlindAndBuriedVias: boolean;
102778
102790
  doubleSidedAssembly: boolean;
102779
102791
  automaticPoursEnabled: boolean;
102792
+ enableViaStitching: boolean;
102780
102793
  symbol?: SymbolProp | undefined;
102781
102794
  width?: number | undefined;
102782
102795
  height?: number | undefined;
@@ -103118,6 +103131,7 @@ declare const stampboardProps: z.ZodObject<{
103118
103131
  topSilkscreenColor?: BoardColor | undefined;
103119
103132
  bottomSilkscreenColor?: BoardColor | undefined;
103120
103133
  isViaInPadAllowed?: boolean | undefined;
103134
+ viaStitchPitch?: number | undefined;
103121
103135
  schematicDisabled?: boolean | undefined;
103122
103136
  leftPins?: string[] | undefined;
103123
103137
  rightPins?: string[] | undefined;
@@ -103476,6 +103490,8 @@ declare const stampboardProps: z.ZodObject<{
103476
103490
  doubleSidedAssembly?: boolean | undefined;
103477
103491
  isViaInPadAllowed?: boolean | undefined;
103478
103492
  automaticPoursEnabled?: boolean | undefined;
103493
+ enableViaStitching?: boolean | undefined;
103494
+ viaStitchPitch?: string | number | undefined;
103479
103495
  schematicDisabled?: boolean | undefined;
103480
103496
  leftPins?: string[] | undefined;
103481
103497
  rightPins?: string[] | undefined;
@@ -228214,7 +228230,10 @@ interface PlatformConfig {
228214
228230
  /**
228215
228231
  * Allows the deprecated sequential_trace and auto_cloud autorouter presets.
228216
228232
  * Defaults to false because these presets are otherwise disabled.
228233
+ * This also applies to the sequential-trace and auto-cloud aliases.
228217
228234
  * Platforms should only enable this temporarily while migrating projects.
228235
+ * For sequential_trace / sequential-trace, use the default autorouter with
228236
+ * <autoroutingphase /> or <fanout /> elements as needed instead.
228218
228237
  */
228219
228238
  allowLegacyAutorouters?: boolean;
228220
228239
  /** A localStorage-compatible cache used by render phases and engines. */
package/dist/index.js CHANGED
@@ -16721,6 +16721,12 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
16721
16721
  automaticPoursEnabled: z44.boolean().default(false).describe(
16722
16722
  "Whether implicit copper pours should be generated automatically. Defaults to false."
16723
16723
  ),
16724
+ enableViaStitching: z44.boolean().default(false).describe(
16725
+ "Whether to stitch copper pours on the same net across layers with vias. Defaults to false."
16726
+ ),
16727
+ viaStitchPitch: distance.pipe(z44.number().positive().finite()).optional().describe(
16728
+ "Positive center-to-center stitching via spacing in millimeters or a unit string, parsed to millimeters. Omitted uses the solver default. Does not enable stitching by itself."
16729
+ ),
16724
16730
  schematicDisabled: z44.boolean().optional()
16725
16731
  });
16726
16732
  expectTypesMatch(true);