@tscircuit/core 0.0.232 → 0.0.234

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 +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2869,9 +2869,10 @@ var NormalComponent = class extends PrimitiveComponent {
2869
2869
  const { _parsedProps: props } = this;
2870
2870
  const symbol_name = this._getSchematicSymbolNameOrThrow();
2871
2871
  const symbol = symbols2[symbol_name];
2872
+ const center = this._getGlobalSchematicPositionBeforeLayout();
2872
2873
  if (symbol) {
2873
2874
  const schematic_component2 = db.schematic_component.insert({
2874
- center: { x: props.schX ?? 0, y: props.schY ?? 0 },
2875
+ center,
2875
2876
  rotation: props.schRotation ?? 0,
2876
2877
  size: symbol.size,
2877
2878
  source_component_id: this.source_component_id,
@@ -5533,6 +5534,7 @@ var SilkscreenText = class extends PrimitiveComponent {
5533
5534
  font_size: props.fontSize ?? 1,
5534
5535
  layer: maybeFlipLayer(props.layer ?? "top"),
5535
5536
  text: props.text ?? "",
5537
+ ccw_rotation: props.pcbRotation,
5536
5538
  pcb_component_id: container.pcb_component_id
5537
5539
  });
5538
5540
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.232",
4
+ "version": "0.0.234",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@tscircuit/props": "^0.0.115",
47
47
  "@tscircuit/schematic-autolayout": "^0.0.6",
48
48
  "@tscircuit/soup-util": "^0.0.41",
49
- "circuit-json": "^0.0.117",
49
+ "circuit-json": "^0.0.119",
50
50
  "circuit-json-to-connectivity-map": "^0.0.17",
51
51
  "format-si-unit": "^0.0.2",
52
52
  "nanoid": "^5.0.7",