@tscircuit/core 0.0.524 → 0.0.525
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 +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9445,9 +9445,12 @@ var NetLabel = class extends PrimitiveComponent2 {
|
|
|
9445
9445
|
const { db } = this.root;
|
|
9446
9446
|
const { _parsedProps: props } = this;
|
|
9447
9447
|
const anchorPos = this._getGlobalSchematicPositionBeforeLayout();
|
|
9448
|
+
const net = this.getSubcircuit().selectOne(
|
|
9449
|
+
`net.${this._getNetName()}`
|
|
9450
|
+
);
|
|
9448
9451
|
const netLabel = db.schematic_net_label.insert({
|
|
9449
9452
|
text: props.net,
|
|
9450
|
-
source_net_id:
|
|
9453
|
+
source_net_id: net.source_net_id,
|
|
9451
9454
|
anchor_position: anchorPos,
|
|
9452
9455
|
// TODO compute the center based on the text size
|
|
9453
9456
|
center: anchorPos,
|
|
@@ -10595,7 +10598,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10595
10598
|
var package_default = {
|
|
10596
10599
|
name: "@tscircuit/core",
|
|
10597
10600
|
type: "module",
|
|
10598
|
-
version: "0.0.
|
|
10601
|
+
version: "0.0.524",
|
|
10599
10602
|
types: "dist/index.d.ts",
|
|
10600
10603
|
main: "dist/index.js",
|
|
10601
10604
|
module: "dist/index.js",
|