@tscircuit/core 0.0.815 → 0.0.817
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 +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9684,6 +9684,12 @@ function convertTreeToInputProblem(tree, db, group) {
|
|
|
9684
9684
|
if (component?._parsedProps?.schRotation !== void 0) {
|
|
9685
9685
|
availableRotations = [0];
|
|
9686
9686
|
}
|
|
9687
|
+
if (component?._parsedProps?.facingDirection) {
|
|
9688
|
+
availableRotations = [0];
|
|
9689
|
+
}
|
|
9690
|
+
if (component?._parsedProps?.schFacingDirection) {
|
|
9691
|
+
availableRotations = [0];
|
|
9692
|
+
}
|
|
9687
9693
|
const marginLeft = component?._parsedProps?.schMarginLeft ?? component?._parsedProps?.schMarginX ?? 0;
|
|
9688
9694
|
const marginRight = component?._parsedProps?.schMarginRight ?? component?._parsedProps?.schMarginX ?? 0;
|
|
9689
9695
|
let marginTop = component?._parsedProps?.schMarginTop ?? component?._parsedProps?.schMarginY ?? 0;
|
|
@@ -14779,6 +14785,7 @@ var FabricationNoteRect = class extends PrimitiveComponent2 {
|
|
|
14779
14785
|
}
|
|
14780
14786
|
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
14781
14787
|
const subcircuit = this.getSubcircuit();
|
|
14788
|
+
const hasStroke = props.hasStroke ?? (props.strokeWidth !== void 0 && props.strokeWidth !== null);
|
|
14782
14789
|
const fabrication_note_rect = db.pcb_fabrication_note_rect.insert({
|
|
14783
14790
|
pcb_component_id,
|
|
14784
14791
|
layer,
|
|
@@ -14791,7 +14798,7 @@ var FabricationNoteRect = class extends PrimitiveComponent2 {
|
|
|
14791
14798
|
height: props.height,
|
|
14792
14799
|
stroke_width: props.strokeWidth ?? 1,
|
|
14793
14800
|
is_filled: props.isFilled ?? false,
|
|
14794
|
-
has_stroke:
|
|
14801
|
+
has_stroke: hasStroke,
|
|
14795
14802
|
is_stroke_dashed: props.isStrokeDashed ?? false,
|
|
14796
14803
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
14797
14804
|
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
@@ -17253,7 +17260,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17253
17260
|
var package_default = {
|
|
17254
17261
|
name: "@tscircuit/core",
|
|
17255
17262
|
type: "module",
|
|
17256
|
-
version: "0.0.
|
|
17263
|
+
version: "0.0.816",
|
|
17257
17264
|
types: "dist/index.d.ts",
|
|
17258
17265
|
main: "dist/index.js",
|
|
17259
17266
|
module: "dist/index.js",
|