@tscircuit/pcb-viewer 1.11.265 → 1.11.267
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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -8168,7 +8168,12 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8168
8168
|
layer: element.layer === "bottom" ? "bottom_fabrication" : "top_fabrication",
|
|
8169
8169
|
size: element.font_size,
|
|
8170
8170
|
align: element.anchor_alignment ?? "center",
|
|
8171
|
-
text: element.text
|
|
8171
|
+
text: element.text,
|
|
8172
|
+
color: element.color,
|
|
8173
|
+
_element: element,
|
|
8174
|
+
_parent_pcb_component,
|
|
8175
|
+
_parent_source_component,
|
|
8176
|
+
_source_port
|
|
8172
8177
|
}
|
|
8173
8178
|
];
|
|
8174
8179
|
}
|
|
@@ -9250,7 +9255,8 @@ var convertTextToLines = (text) => {
|
|
|
9250
9255
|
y2: text.y + y_baseline_offset + centerline_span_y * norm_y2,
|
|
9251
9256
|
width: strokeWidth,
|
|
9252
9257
|
layer: text.layer,
|
|
9253
|
-
unit: text.unit
|
|
9258
|
+
unit: text.unit,
|
|
9259
|
+
color: text.color
|
|
9254
9260
|
});
|
|
9255
9261
|
}
|
|
9256
9262
|
current_x_origin_for_char_box += target_width_char + space_between_chars;
|
|
@@ -12847,7 +12853,7 @@ import { css as css3 } from "@emotion/css";
|
|
|
12847
12853
|
// package.json
|
|
12848
12854
|
var package_default = {
|
|
12849
12855
|
name: "@tscircuit/pcb-viewer",
|
|
12850
|
-
version: "1.11.
|
|
12856
|
+
version: "1.11.265",
|
|
12851
12857
|
main: "dist/index.js",
|
|
12852
12858
|
type: "module",
|
|
12853
12859
|
repository: "tscircuit/pcb-viewer",
|
|
@@ -12899,7 +12905,7 @@ var package_default = {
|
|
|
12899
12905
|
"@emotion/css": "^11.11.2",
|
|
12900
12906
|
"@tscircuit/alphabet": "^0.0.3",
|
|
12901
12907
|
"@vitejs/plugin-react": "^5.0.2",
|
|
12902
|
-
"circuit-json": "^0.0.
|
|
12908
|
+
"circuit-json": "^0.0.321",
|
|
12903
12909
|
"circuit-to-svg": "^0.0.271",
|
|
12904
12910
|
color: "^4.2.3",
|
|
12905
12911
|
"react-supergrid": "^1.0.10",
|