@tscircuit/core 0.0.652 → 0.0.653
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.js +1 -43
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10131,41 +10131,6 @@ function applyNetLabelPlacements(args) {
|
|
|
10131
10131
|
|
|
10132
10132
|
// lib/components/primitive-components/Group/Group_doInitialSchematicTraceRender/insertNetLabelsForTracesExcludedFromRouting.ts
|
|
10133
10133
|
import "@tscircuit/schematic-trace-solver";
|
|
10134
|
-
function insertNetLabelsForTracesExcludedFromRouting(args) {
|
|
10135
|
-
const {
|
|
10136
|
-
group,
|
|
10137
|
-
displayLabelTraces,
|
|
10138
|
-
pinIdToSchematicPortId,
|
|
10139
|
-
schematicPortIdsWithPreExistingNetLabels
|
|
10140
|
-
} = args;
|
|
10141
|
-
const { db } = group.root;
|
|
10142
|
-
for (const trace of displayLabelTraces) {
|
|
10143
|
-
const label = trace._parsedProps?.schDisplayLabel;
|
|
10144
|
-
if (!label) continue;
|
|
10145
|
-
try {
|
|
10146
|
-
const res = trace._findConnectedPorts?.();
|
|
10147
|
-
if (!res?.allPortsFound || !res.ports || res.ports.length < 1) continue;
|
|
10148
|
-
const ports = res.ports.slice(0, 2);
|
|
10149
|
-
for (const port of ports) {
|
|
10150
|
-
const anchor_position = port._getGlobalSchematicPositionAfterLayout();
|
|
10151
|
-
const side = getEnteringEdgeFromDirection(port.facingDirection || "right") || "right";
|
|
10152
|
-
const center = computeSchematicNetLabelCenter({
|
|
10153
|
-
anchor_position,
|
|
10154
|
-
anchor_side: side,
|
|
10155
|
-
text: label
|
|
10156
|
-
});
|
|
10157
|
-
db.schematic_net_label.insert({
|
|
10158
|
-
text: label,
|
|
10159
|
-
anchor_position,
|
|
10160
|
-
center,
|
|
10161
|
-
anchor_side: side,
|
|
10162
|
-
...trace.source_trace_id ? { source_trace_id: trace.source_trace_id } : {}
|
|
10163
|
-
});
|
|
10164
|
-
}
|
|
10165
|
-
} catch {
|
|
10166
|
-
}
|
|
10167
|
-
}
|
|
10168
|
-
}
|
|
10169
10134
|
|
|
10170
10135
|
// lib/components/primitive-components/Group/Group_doInitialSchematicTraceRender/insertNetLabelsForPortsMissingTrace.ts
|
|
10171
10136
|
var insertNetLabelsForPortsMissingTrace = ({
|
|
@@ -10306,13 +10271,6 @@ var Group_doInitialSchematicTraceRender = (group) => {
|
|
|
10306
10271
|
pinIdToSchematicPortId,
|
|
10307
10272
|
schematicPortIdsWithPreExistingNetLabels
|
|
10308
10273
|
});
|
|
10309
|
-
insertNetLabelsForTracesExcludedFromRouting({
|
|
10310
|
-
group,
|
|
10311
|
-
solver,
|
|
10312
|
-
displayLabelTraces,
|
|
10313
|
-
pinIdToSchematicPortId,
|
|
10314
|
-
schematicPortIdsWithPreExistingNetLabels
|
|
10315
|
-
});
|
|
10316
10274
|
};
|
|
10317
10275
|
|
|
10318
10276
|
// lib/components/primitive-components/Group/Group.ts
|
|
@@ -13754,7 +13712,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
13754
13712
|
var package_default = {
|
|
13755
13713
|
name: "@tscircuit/core",
|
|
13756
13714
|
type: "module",
|
|
13757
|
-
version: "0.0.
|
|
13715
|
+
version: "0.0.652",
|
|
13758
13716
|
types: "dist/index.d.ts",
|
|
13759
13717
|
main: "dist/index.js",
|
|
13760
13718
|
module: "dist/index.js",
|