@tscircuit/core 0.0.831 → 0.0.832

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 CHANGED
@@ -2792,6 +2792,7 @@ var SilkscreenText = class extends PrimitiveComponent2 {
2792
2792
  const uniqueLayers = new Set(props.layers);
2793
2793
  if (props.layer) uniqueLayers.add(props.layer);
2794
2794
  const targetLayers = uniqueLayers.size > 0 ? Array.from(uniqueLayers) : ["top"];
2795
+ const fontSize = props.fontSize ?? this.getInheritedProperty("pcbStyle")?.silkscreenFontSize ?? 1;
2795
2796
  for (const layer of targetLayers) {
2796
2797
  db.pcb_silkscreen_text.insert({
2797
2798
  anchor_alignment: props.anchorAlignment,
@@ -2800,7 +2801,7 @@ var SilkscreenText = class extends PrimitiveComponent2 {
2800
2801
  y: position.y
2801
2802
  },
2802
2803
  font: props.font ?? "tscircuit2024",
2803
- font_size: props.fontSize ?? 1,
2804
+ font_size: fontSize,
2804
2805
  layer: maybeFlipLayer(layer),
2805
2806
  text: props.text ?? "",
2806
2807
  ccw_rotation: rotation5,
@@ -2812,7 +2813,7 @@ var SilkscreenText = class extends PrimitiveComponent2 {
2812
2813
  }
2813
2814
  getPcbSize() {
2814
2815
  const { _parsedProps: props } = this;
2815
- const fontSize = props.fontSize ?? 1;
2816
+ const fontSize = props.fontSize ?? this.getInheritedProperty("pcbStyle")?.silkscreenFontSize ?? 1;
2816
2817
  const text = props.text ?? "";
2817
2818
  const textWidth = text.length * fontSize;
2818
2819
  const textHeight = fontSize;
@@ -17483,7 +17484,7 @@ import { identity as identity6 } from "transformation-matrix";
17483
17484
  var package_default = {
17484
17485
  name: "@tscircuit/core",
17485
17486
  type: "module",
17486
- version: "0.0.830",
17487
+ version: "0.0.831",
17487
17488
  types: "dist/index.d.ts",
17488
17489
  main: "dist/index.js",
17489
17490
  module: "dist/index.js",
@@ -17525,7 +17526,7 @@ var package_default = {
17525
17526
  "@tscircuit/math-utils": "^0.0.29",
17526
17527
  "@tscircuit/miniflex": "^0.0.4",
17527
17528
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
17528
- "@tscircuit/props": "0.0.381",
17529
+ "@tscircuit/props": "^0.0.384",
17529
17530
  "@tscircuit/schematic-autolayout": "^0.0.6",
17530
17531
  "@tscircuit/schematic-match-adapt": "^0.0.16",
17531
17532
  "@tscircuit/schematic-trace-solver": "^0.0.41",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.831",
4
+ "version": "0.0.832",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "@tscircuit/math-utils": "^0.0.29",
44
44
  "@tscircuit/miniflex": "^0.0.4",
45
45
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
46
- "@tscircuit/props": "0.0.381",
46
+ "@tscircuit/props": "^0.0.384",
47
47
  "@tscircuit/schematic-autolayout": "^0.0.6",
48
48
  "@tscircuit/schematic-match-adapt": "^0.0.16",
49
49
  "@tscircuit/schematic-trace-solver": "^0.0.41",