@tscircuit/core 0.0.585 → 0.0.586
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 +421 -25
- package/dist/index.js +20 -9
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7625,7 +7625,7 @@ function Group_doInitialSchematicLayoutMatchAdapt(group) {
|
|
|
7625
7625
|
if (debug4.enabled) {
|
|
7626
7626
|
global.debugGraphics?.push(
|
|
7627
7627
|
getGraphicsForBpcGraph(bpcGraphBeforeGeneratedNetLabels, {
|
|
7628
|
-
title:
|
|
7628
|
+
title: `floatingBpcGraph-${group.name}`
|
|
7629
7629
|
})
|
|
7630
7630
|
);
|
|
7631
7631
|
}
|
|
@@ -7671,7 +7671,7 @@ function Group_doInitialSchematicLayoutMatchAdapt(group) {
|
|
|
7671
7671
|
if (debug4.enabled) {
|
|
7672
7672
|
global.debugGraphics?.push(
|
|
7673
7673
|
getGraphicsForBpcGraph(laidOutBpcGraph, {
|
|
7674
|
-
title:
|
|
7674
|
+
title: `laidOutBpcGraph-${group.name}`
|
|
7675
7675
|
})
|
|
7676
7676
|
);
|
|
7677
7677
|
}
|
|
@@ -8197,6 +8197,12 @@ var Group = class extends NormalComponent {
|
|
|
8197
8197
|
}
|
|
8198
8198
|
doInitialSourceParentAttachment() {
|
|
8199
8199
|
const { db } = this.root;
|
|
8200
|
+
const parentGroup = this.parent?.getGroup?.();
|
|
8201
|
+
if (parentGroup?.source_group_id) {
|
|
8202
|
+
db.source_group.update(this.source_group_id, {
|
|
8203
|
+
parent_source_group_id: parentGroup.source_group_id
|
|
8204
|
+
});
|
|
8205
|
+
}
|
|
8200
8206
|
if (!this.isSubcircuit) return;
|
|
8201
8207
|
const parent_subcircuit_id = this.parent?.getSubcircuit?.()?.subcircuit_id;
|
|
8202
8208
|
if (!parent_subcircuit_id) return;
|
|
@@ -8658,20 +8664,25 @@ var Group = class extends NormalComponent {
|
|
|
8658
8664
|
}
|
|
8659
8665
|
_getSchematicLayoutMode() {
|
|
8660
8666
|
const props = this._parsedProps;
|
|
8661
|
-
if (props.schLayout?.layoutMode === "none") return "
|
|
8667
|
+
if (props.schLayout?.layoutMode === "none") return "relative";
|
|
8668
|
+
if (props.schLayout?.layoutMode === "relative") return "relative";
|
|
8662
8669
|
if (props.schLayout?.matchAdapt) return "match-adapt";
|
|
8663
8670
|
if (props.schLayout?.flex) return "flex";
|
|
8664
8671
|
if (props.schLayout?.grid) return "grid";
|
|
8665
8672
|
if (props.matchAdapt) return "match-adapt";
|
|
8666
8673
|
if (props.flex) return "flex";
|
|
8667
8674
|
if (props.grid) return "grid";
|
|
8675
|
+
if (props.relative) return "relative";
|
|
8676
|
+
if (props.schRelative) return "relative";
|
|
8668
8677
|
const anyChildHasSchCoords = this.children.some((child) => {
|
|
8669
8678
|
const cProps = child._parsedProps;
|
|
8670
8679
|
return cProps?.schX !== void 0 || cProps?.schY !== void 0;
|
|
8671
8680
|
});
|
|
8681
|
+
const anyChildIsGroup = this.children.some((child) => child.isGroup);
|
|
8672
8682
|
const hasManualEdits = (props.manualEdits?.schematic_placements?.length ?? 0) > 0;
|
|
8673
|
-
if (!anyChildHasSchCoords && !hasManualEdits
|
|
8674
|
-
|
|
8683
|
+
if (!anyChildHasSchCoords && !hasManualEdits && !anyChildIsGroup)
|
|
8684
|
+
return "match-adapt";
|
|
8685
|
+
return "relative";
|
|
8675
8686
|
}
|
|
8676
8687
|
doInitialSchematicLayout() {
|
|
8677
8688
|
const props = this._parsedProps;
|
|
@@ -11159,7 +11170,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
11159
11170
|
var package_default = {
|
|
11160
11171
|
name: "@tscircuit/core",
|
|
11161
11172
|
type: "module",
|
|
11162
|
-
version: "0.0.
|
|
11173
|
+
version: "0.0.585",
|
|
11163
11174
|
types: "dist/index.d.ts",
|
|
11164
11175
|
main: "dist/index.js",
|
|
11165
11176
|
module: "dist/index.js",
|
|
@@ -11185,13 +11196,13 @@ var package_default = {
|
|
|
11185
11196
|
"@tscircuit/capacity-autorouter": "^0.0.100",
|
|
11186
11197
|
"@tscircuit/checks": "^0.0.56",
|
|
11187
11198
|
"@tscircuit/circuit-json-flex": "^0.0.1",
|
|
11188
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
11199
|
+
"@tscircuit/circuit-json-util": "^0.0.54",
|
|
11189
11200
|
"@tscircuit/footprinter": "^0.0.204",
|
|
11190
11201
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
11191
11202
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
11192
11203
|
"@tscircuit/log-soup": "^1.0.2",
|
|
11193
11204
|
"@tscircuit/math-utils": "^0.0.18",
|
|
11194
|
-
"@tscircuit/props": "^0.0.
|
|
11205
|
+
"@tscircuit/props": "^0.0.268",
|
|
11195
11206
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
11196
11207
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
11197
11208
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
@@ -11205,7 +11216,7 @@ var package_default = {
|
|
|
11205
11216
|
"bun-match-svg": "0.0.12",
|
|
11206
11217
|
"calculate-elbow": "^0.0.5",
|
|
11207
11218
|
"chokidar-cli": "^3.0.0",
|
|
11208
|
-
"circuit-json": "^0.0.
|
|
11219
|
+
"circuit-json": "^0.0.221",
|
|
11209
11220
|
"circuit-json-to-bpc": "^0.0.13",
|
|
11210
11221
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
11211
11222
|
"circuit-json-to-simple-3d": "^0.0.2",
|
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.586",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.100",
|
|
28
28
|
"@tscircuit/checks": "^0.0.56",
|
|
29
29
|
"@tscircuit/circuit-json-flex": "^0.0.1",
|
|
30
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
30
|
+
"@tscircuit/circuit-json-util": "^0.0.54",
|
|
31
31
|
"@tscircuit/footprinter": "^0.0.204",
|
|
32
32
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
33
33
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.268",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-corpus": "^0.0.52",
|
|
39
39
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bun-match-svg": "0.0.12",
|
|
48
48
|
"calculate-elbow": "^0.0.5",
|
|
49
49
|
"chokidar-cli": "^3.0.0",
|
|
50
|
-
"circuit-json": "^0.0.
|
|
50
|
+
"circuit-json": "^0.0.221",
|
|
51
51
|
"circuit-json-to-bpc": "^0.0.13",
|
|
52
52
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
53
53
|
"circuit-json-to-simple-3d": "^0.0.2",
|