@tscircuit/core 0.0.814 → 0.0.816

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 +2 -2
package/dist/index.js CHANGED
@@ -14779,6 +14779,7 @@ var FabricationNoteRect = class extends PrimitiveComponent2 {
14779
14779
  }
14780
14780
  const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
14781
14781
  const subcircuit = this.getSubcircuit();
14782
+ const hasStroke = props.hasStroke ?? (props.strokeWidth !== void 0 && props.strokeWidth !== null);
14782
14783
  const fabrication_note_rect = db.pcb_fabrication_note_rect.insert({
14783
14784
  pcb_component_id,
14784
14785
  layer,
@@ -14791,7 +14792,7 @@ var FabricationNoteRect = class extends PrimitiveComponent2 {
14791
14792
  height: props.height,
14792
14793
  stroke_width: props.strokeWidth ?? 1,
14793
14794
  is_filled: props.isFilled ?? false,
14794
- has_stroke: props.hasStroke ?? false,
14795
+ has_stroke: hasStroke,
14795
14796
  is_stroke_dashed: props.isStrokeDashed ?? false,
14796
14797
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
14797
14798
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
@@ -17253,7 +17254,7 @@ import { identity as identity6 } from "transformation-matrix";
17253
17254
  var package_default = {
17254
17255
  name: "@tscircuit/core",
17255
17256
  type: "module",
17256
- version: "0.0.813",
17257
+ version: "0.0.815",
17257
17258
  types: "dist/index.d.ts",
17258
17259
  main: "dist/index.js",
17259
17260
  module: "dist/index.js",
@@ -17353,7 +17354,7 @@ var package_default = {
17353
17354
  dependencies: {
17354
17355
  "@flatten-js/core": "^1.6.2",
17355
17356
  "@lume/kiwi": "^0.4.3",
17356
- "calculate-packing": "0.0.49",
17357
+ "calculate-packing": "0.0.50",
17357
17358
  "css-select": "5.1.0",
17358
17359
  "format-si-unit": "^0.0.3",
17359
17360
  nanoid: "^5.0.7",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.814",
4
+ "version": "0.0.816",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -101,7 +101,7 @@
101
101
  "dependencies": {
102
102
  "@flatten-js/core": "^1.6.2",
103
103
  "@lume/kiwi": "^0.4.3",
104
- "calculate-packing": "0.0.49",
104
+ "calculate-packing": "0.0.50",
105
105
  "css-select": "5.1.0",
106
106
  "format-si-unit": "^0.0.3",
107
107
  "nanoid": "^5.0.7",