@tscircuit/core 0.0.538 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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: props.schX ?? 0,
10488
- y: props.schY ?? 0
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.537",
10701
+ version: "0.0.538",
10701
10702
  types: "dist/index.d.ts",
10702
10703
  main: "dist/index.js",
10703
10704
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.538",
4
+ "version": "0.0.539",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",