@tscircuit/core 0.0.1208 → 0.0.1210
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 +8 -0
- package/dist/index.js +27 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6530,6 +6530,14 @@ declare class Subpanel extends Group<typeof subpanelProps> {
|
|
|
6530
6530
|
* and should never trigger the regular Group pack/grid/flex layout.
|
|
6531
6531
|
*/
|
|
6532
6532
|
_getPcbLayoutMode(): "none";
|
|
6533
|
+
/**
|
|
6534
|
+
* Subpanels/Panels are PCB panelization containers. Their child boards render
|
|
6535
|
+
* schematics independently, so the container itself should not create a
|
|
6536
|
+
* schematic group, run schematic layout, or invoke schematic trace solving.
|
|
6537
|
+
*/
|
|
6538
|
+
doInitialSchematicComponentRender(): void;
|
|
6539
|
+
doInitialSchematicLayout(): void;
|
|
6540
|
+
doInitialSchematicTraceRender(): void;
|
|
6533
6541
|
add(component: PrimitiveComponent): void;
|
|
6534
6542
|
_cachedGridWidth: number;
|
|
6535
6543
|
_cachedGridHeight: number;
|
package/dist/index.js
CHANGED
|
@@ -17807,7 +17807,20 @@ var Group_doInitialSchematicTraceRender = (group) => {
|
|
|
17807
17807
|
allScks,
|
|
17808
17808
|
userNetIdToSck
|
|
17809
17809
|
} = createSchematicTraceSolverInputProblem(group);
|
|
17810
|
+
if (inputProblem.chips.length === 0) return;
|
|
17810
17811
|
const schematicPortIdsWithPreExistingNetLabels = getSchematicPortIdsWithAssignedNetLabels(group);
|
|
17812
|
+
const hasRouteableSchematicConnections = inputProblem.directConnections.length > 0 || inputProblem.netConnections.length > 0;
|
|
17813
|
+
if (!hasRouteableSchematicConnections) {
|
|
17814
|
+
insertNetLabelsForPortsMissingTrace({
|
|
17815
|
+
group,
|
|
17816
|
+
allSourceAndSchematicPortIdsInScope,
|
|
17817
|
+
schPortIdToSourcePortId,
|
|
17818
|
+
sckToSourceNet,
|
|
17819
|
+
pinIdToSchematicPortId,
|
|
17820
|
+
schematicPortIdsWithPreExistingNetLabels
|
|
17821
|
+
});
|
|
17822
|
+
return;
|
|
17823
|
+
}
|
|
17811
17824
|
if (debug9.enabled) {
|
|
17812
17825
|
group.root?.emit("debug:logOutput", {
|
|
17813
17826
|
type: "debug:logOutput",
|
|
@@ -20378,7 +20391,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
20378
20391
|
var package_default = {
|
|
20379
20392
|
name: "@tscircuit/core",
|
|
20380
20393
|
type: "module",
|
|
20381
|
-
version: "0.0.
|
|
20394
|
+
version: "0.0.1209",
|
|
20382
20395
|
types: "dist/index.d.ts",
|
|
20383
20396
|
main: "dist/index.js",
|
|
20384
20397
|
module: "dist/index.js",
|
|
@@ -20410,7 +20423,7 @@ var package_default = {
|
|
|
20410
20423
|
"@biomejs/biome": "^1.8.3",
|
|
20411
20424
|
"@resvg/resvg-js": "^2.6.2",
|
|
20412
20425
|
"@tscircuit/alphabet": "0.0.25",
|
|
20413
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
20426
|
+
"@tscircuit/capacity-autorouter": "^0.0.484",
|
|
20414
20427
|
"@tscircuit/checks": "0.0.125",
|
|
20415
20428
|
"@tscircuit/circuit-json-util": "^0.0.94",
|
|
20416
20429
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -20426,7 +20439,7 @@ var package_default = {
|
|
|
20426
20439
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
20427
20440
|
"@tscircuit/props": "^0.0.513",
|
|
20428
20441
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
20429
|
-
"@tscircuit/schematic-trace-solver": "^
|
|
20442
|
+
"@tscircuit/schematic-trace-solver": "^0.0.51",
|
|
20430
20443
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
20431
20444
|
"@tscircuit/soup-util": "^0.0.41",
|
|
20432
20445
|
"@types/bun": "^1.2.16",
|
|
@@ -21981,6 +21994,17 @@ var Subpanel = class _Subpanel extends Group6 {
|
|
|
21981
21994
|
_getPcbLayoutMode() {
|
|
21982
21995
|
return "none";
|
|
21983
21996
|
}
|
|
21997
|
+
/**
|
|
21998
|
+
* Subpanels/Panels are PCB panelization containers. Their child boards render
|
|
21999
|
+
* schematics independently, so the container itself should not create a
|
|
22000
|
+
* schematic group, run schematic layout, or invoke schematic trace solving.
|
|
22001
|
+
*/
|
|
22002
|
+
doInitialSchematicComponentRender() {
|
|
22003
|
+
}
|
|
22004
|
+
doInitialSchematicLayout() {
|
|
22005
|
+
}
|
|
22006
|
+
doInitialSchematicTraceRender() {
|
|
22007
|
+
}
|
|
21984
22008
|
add(component) {
|
|
21985
22009
|
if (component.lowercaseComponentName !== "board" && component.lowercaseComponentName !== "subpanel") {
|
|
21986
22010
|
throw new Error(
|
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.1210",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@biomejs/biome": "^1.8.3",
|
|
34
34
|
"@resvg/resvg-js": "^2.6.2",
|
|
35
35
|
"@tscircuit/alphabet": "0.0.25",
|
|
36
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
36
|
+
"@tscircuit/capacity-autorouter": "^0.0.484",
|
|
37
37
|
"@tscircuit/checks": "0.0.125",
|
|
38
38
|
"@tscircuit/circuit-json-util": "^0.0.94",
|
|
39
39
|
"@tscircuit/common": "^0.0.20",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tscircuit/ngspice-spice-engine": "^0.0.8",
|
|
50
50
|
"@tscircuit/props": "^0.0.513",
|
|
51
51
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
52
|
-
"@tscircuit/schematic-trace-solver": "^
|
|
52
|
+
"@tscircuit/schematic-trace-solver": "^0.0.51",
|
|
53
53
|
"@tscircuit/solver-utils": "^0.0.3",
|
|
54
54
|
"@tscircuit/soup-util": "^0.0.41",
|
|
55
55
|
"@types/bun": "^1.2.16",
|