@tscircuit/core 0.0.537 → 0.0.539
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 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -501,7 +501,7 @@ var preprocessSelector = (selector) => {
|
|
|
501
501
|
`Net name "${netName}" cannot start with a number, try using a prefix like "VBUS1"`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
return selector.replace(/ pin/g, " port").replace(/ subcircuit\./g, " group[isSubcircuit=true]").replace(/([^ ])\>([^ ])/g, "$1 > $2").replace(
|
|
504
|
+
return selector.replace(/ pin(?=[\d.])/g, " port").replace(/ subcircuit\./g, " group[isSubcircuit=true]").replace(/([^ ])\>([^ ])/g, "$1 > $2").replace(
|
|
505
505
|
/(^|[ >])(?!pin\.)(?!port\.)(?!net\.)([A-Z][A-Za-z0-9_-]*)\.([A-Za-z0-9_-]+)/g,
|
|
506
506
|
(_, sep, name, pin) => {
|
|
507
507
|
const pinPart = /^\d+$/.test(pin) ? `pin${pin}` : pin;
|
|
@@ -10478,14 +10478,15 @@ var SchematicText = class extends PrimitiveComponent2 {
|
|
|
10478
10478
|
if (this.root?.schematicDisabled) return;
|
|
10479
10479
|
const { db } = this.root;
|
|
10480
10480
|
const { _parsedProps: props } = this;
|
|
10481
|
+
const globalPos = this._getGlobalSchematicPositionBeforeLayout();
|
|
10481
10482
|
db.schematic_text.insert({
|
|
10482
10483
|
anchor: props.anchor ?? "center",
|
|
10483
10484
|
text: props.text,
|
|
10484
10485
|
font_size: props.fontSize,
|
|
10485
10486
|
color: props.color || "#000000",
|
|
10486
10487
|
position: {
|
|
10487
|
-
x:
|
|
10488
|
-
y:
|
|
10488
|
+
x: globalPos.x,
|
|
10489
|
+
y: globalPos.y
|
|
10489
10490
|
},
|
|
10490
10491
|
rotation: props.schRotation ?? 0
|
|
10491
10492
|
});
|
|
@@ -10697,7 +10698,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10697
10698
|
var package_default = {
|
|
10698
10699
|
name: "@tscircuit/core",
|
|
10699
10700
|
type: "module",
|
|
10700
|
-
version: "0.0.
|
|
10701
|
+
version: "0.0.538",
|
|
10701
10702
|
types: "dist/index.d.ts",
|
|
10702
10703
|
main: "dist/index.js",
|
|
10703
10704
|
module: "dist/index.js",
|