@tscircuit/core 0.0.1909 → 0.0.1910
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 +1 -1
- package/dist/index.js +11 -9
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -530,7 +530,7 @@ declare class IsolatedCircuit {
|
|
|
530
530
|
pcbDisabled: boolean;
|
|
531
531
|
pcbRoutingDisabled: boolean;
|
|
532
532
|
_featureMspSchematicTraceRouting: boolean;
|
|
533
|
-
/**
|
|
533
|
+
/** Allows board-level via stitching; set to false to disable globally. */
|
|
534
534
|
_featurePcbViaStitching: boolean;
|
|
535
535
|
/**
|
|
536
536
|
* The IsolatedCircuit name is usually set by the platform, it's not required but
|
package/dist/index.js
CHANGED
|
@@ -51292,7 +51292,7 @@ var resolveOptions = (options = {}) => {
|
|
|
51292
51292
|
const resolvedOptions = {
|
|
51293
51293
|
sourceNetIds: options.sourceNetIds ? new Set(options.sourceNetIds) : void 0,
|
|
51294
51294
|
layers: options.layers ?? ["top", "bottom"],
|
|
51295
|
-
|
|
51295
|
+
viaStitchPitch: options.viaStitchPitch ?? 1,
|
|
51296
51296
|
viaHoleDiameter: options.viaHoleDiameter ?? 0.3,
|
|
51297
51297
|
viaOuterDiameter: options.viaOuterDiameter ?? 0.6,
|
|
51298
51298
|
pourEdgeClearance: options.pourEdgeClearance ?? 0.2,
|
|
@@ -51302,7 +51302,7 @@ var resolveOptions = (options = {}) => {
|
|
|
51302
51302
|
isTented: options.isTented ?? true
|
|
51303
51303
|
};
|
|
51304
51304
|
for (const [optionName, optionValue] of [
|
|
51305
|
-
["
|
|
51305
|
+
["viaStitchPitch", resolvedOptions.viaStitchPitch],
|
|
51306
51306
|
["viaHoleDiameter", resolvedOptions.viaHoleDiameter],
|
|
51307
51307
|
["viaOuterDiameter", resolvedOptions.viaOuterDiameter],
|
|
51308
51308
|
["minimumViaSeparation", resolvedOptions.minimumViaSeparation]
|
|
@@ -51469,13 +51469,13 @@ var ViaStitchSolver = class extends BaseSolver3 {
|
|
|
51469
51469
|
minimum: overlapBounds.minX + requiredCopperRadius,
|
|
51470
51470
|
maximum: overlapBounds.maxX - requiredCopperRadius,
|
|
51471
51471
|
origin: this.options.gridOrigin.x,
|
|
51472
|
-
pitch: this.options.
|
|
51472
|
+
pitch: this.options.viaStitchPitch
|
|
51473
51473
|
});
|
|
51474
51474
|
const yCoordinates = getGridCoordinates({
|
|
51475
51475
|
minimum: overlapBounds.minY + requiredCopperRadius,
|
|
51476
51476
|
maximum: overlapBounds.maxY - requiredCopperRadius,
|
|
51477
51477
|
origin: this.options.gridOrigin.y,
|
|
51478
|
-
pitch: this.options.
|
|
51478
|
+
pitch: this.options.viaStitchPitch
|
|
51479
51479
|
});
|
|
51480
51480
|
for (const y of yCoordinates) {
|
|
51481
51481
|
for (const x of xCoordinates) {
|
|
@@ -62028,7 +62028,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
62028
62028
|
var package_default = {
|
|
62029
62029
|
name: "@tscircuit/core",
|
|
62030
62030
|
type: "module",
|
|
62031
|
-
version: "0.0.
|
|
62031
|
+
version: "0.0.1909",
|
|
62032
62032
|
types: "dist/index.d.ts",
|
|
62033
62033
|
main: "dist/index.js",
|
|
62034
62034
|
module: "dist/index.js",
|
|
@@ -62086,7 +62086,7 @@ var package_default = {
|
|
|
62086
62086
|
"@tscircuit/schematic-trace-solver": "^0.0.196",
|
|
62087
62087
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
62088
62088
|
"@tscircuit/soup-util": "^0.0.41",
|
|
62089
|
-
"@tscircuit/via-stitch-solver": "github:tscircuit/via-stitch-solver#
|
|
62089
|
+
"@tscircuit/via-stitch-solver": "github:tscircuit/via-stitch-solver#64f2ac7781b795bdc0d74ba411988e60767fa653",
|
|
62090
62090
|
"@tscircuit/winding-breakout-point-solver": "github:tscircuit/winding-breakout-point-solver#202dbe9eb0088633b6fa094120dba6f2f41f8803",
|
|
62091
62091
|
"@types/bun": "^1.2.16",
|
|
62092
62092
|
"@types/debug": "^4.1.12",
|
|
@@ -66650,8 +66650,8 @@ var IsolatedCircuit = class {
|
|
|
66650
66650
|
pcbDisabled = false;
|
|
66651
66651
|
pcbRoutingDisabled = false;
|
|
66652
66652
|
_featureMspSchematicTraceRouting = true;
|
|
66653
|
-
/**
|
|
66654
|
-
_featurePcbViaStitching =
|
|
66653
|
+
/** Allows board-level via stitching; set to false to disable globally. */
|
|
66654
|
+
_featurePcbViaStitching = true;
|
|
66655
66655
|
/**
|
|
66656
66656
|
* The IsolatedCircuit name is usually set by the platform, it's not required but
|
|
66657
66657
|
* if supplied can identify the circuit in certain effects, e.g. it is passed
|
|
@@ -67329,7 +67329,8 @@ var renderViaStitchingForCopperPours = (copperPour) => {
|
|
|
67329
67329
|
options: {
|
|
67330
67330
|
sourceNetIds: [...new Set(sourceNetIds)],
|
|
67331
67331
|
viaHoleDiameter: pcbBoard?.min_via_hole_diameter ?? holeDiameter,
|
|
67332
|
-
viaOuterDiameter: pcbBoard?.min_via_pad_diameter ?? padDiameter
|
|
67332
|
+
viaOuterDiameter: pcbBoard?.min_via_pad_diameter ?? padDiameter,
|
|
67333
|
+
viaStitchPitch: boardComponent?._parsedProps.viaStitchPitch
|
|
67333
67334
|
}
|
|
67334
67335
|
};
|
|
67335
67336
|
const solver = new ViaStitchSolver(solverInput);
|
|
@@ -67353,6 +67354,7 @@ var renderViaStitchingForCopperPours = (copperPour) => {
|
|
|
67353
67354
|
function CopperPour_doInitialPcbViaStitchRender(copperPour) {
|
|
67354
67355
|
if (copperPour.root?.pcbDisabled || !copperPour.root?._featurePcbViaStitching)
|
|
67355
67356
|
return;
|
|
67357
|
+
if (!copperPour._getBoard()?._parsedProps.enableViaStitching) return;
|
|
67356
67358
|
copperPour._queueAsyncEffect("PcbViaStitchRender", async () => {
|
|
67357
67359
|
renderViaStitchingForCopperPours(copperPour);
|
|
67358
67360
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1910",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@tscircuit/schematic-trace-solver": "^0.0.196",
|
|
60
60
|
"@tscircuit/solver-utils": "^0.0.16",
|
|
61
61
|
"@tscircuit/soup-util": "^0.0.41",
|
|
62
|
-
"@tscircuit/via-stitch-solver": "github:tscircuit/via-stitch-solver#
|
|
62
|
+
"@tscircuit/via-stitch-solver": "github:tscircuit/via-stitch-solver#64f2ac7781b795bdc0d74ba411988e60767fa653",
|
|
63
63
|
"@tscircuit/winding-breakout-point-solver": "github:tscircuit/winding-breakout-point-solver#202dbe9eb0088633b6fa094120dba6f2f41f8803",
|
|
64
64
|
"@types/bun": "^1.2.16",
|
|
65
65
|
"@types/debug": "^4.1.12",
|