@tscircuit/pcb-viewer 1.11.431 → 1.11.433
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 +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -13190,7 +13190,7 @@ var PCB_VIEWER_COLOR_MAP2 = {
|
|
|
13190
13190
|
}
|
|
13191
13191
|
};
|
|
13192
13192
|
function isFabricationNote(element) {
|
|
13193
|
-
return element.type.
|
|
13193
|
+
return element.type.startsWith("pcb_fabrication_note_");
|
|
13194
13194
|
}
|
|
13195
13195
|
function drawFabricationNoteElementsForLayer({
|
|
13196
13196
|
canvas,
|
|
@@ -13203,7 +13203,9 @@ function drawFabricationNoteElementsForLayer({
|
|
|
13203
13203
|
colorOverrides: PCB_VIEWER_COLOR_MAP2
|
|
13204
13204
|
});
|
|
13205
13205
|
drawer.realToCanvasMat = realToCanvasMat;
|
|
13206
|
-
const fabricationElements = elements.filter(
|
|
13206
|
+
const fabricationElements = elements.filter(
|
|
13207
|
+
(element) => isFabricationNote(element) && "layer" in element && (layers.length === 0 || element.layer === "top" && layers.includes("top_fabrication_note") || element.layer === "bottom" && layers.includes("bottom_fabrication_note"))
|
|
13208
|
+
);
|
|
13207
13209
|
drawer.drawElements(fabricationElements, { layers });
|
|
13208
13210
|
}
|
|
13209
13211
|
|
|
@@ -18918,7 +18920,7 @@ import {
|
|
|
18918
18920
|
// package.json
|
|
18919
18921
|
var package_default = {
|
|
18920
18922
|
name: "@tscircuit/pcb-viewer",
|
|
18921
|
-
version: "1.11.
|
|
18923
|
+
version: "1.11.432",
|
|
18922
18924
|
main: "dist/index.js",
|
|
18923
18925
|
type: "module",
|
|
18924
18926
|
repository: {
|
|
@@ -18962,6 +18964,7 @@ var package_default = {
|
|
|
18962
18964
|
"@types/react": "19",
|
|
18963
18965
|
"@types/react-dom": "~19.1.0",
|
|
18964
18966
|
"@webgpu/types": "^0.1.72",
|
|
18967
|
+
"bun-match-svg": "0.0.9",
|
|
18965
18968
|
"circuit-json-to-connectivity-map": "^0.0.35",
|
|
18966
18969
|
esbuild: "^0.25.2",
|
|
18967
18970
|
"format-si-unit": "^0.0.12",
|
|
@@ -18990,7 +18993,7 @@ var package_default = {
|
|
|
18990
18993
|
"@tscircuit/math-utils": "^0.0.36",
|
|
18991
18994
|
"@vitejs/plugin-react": "^5.0.2",
|
|
18992
18995
|
"circuit-json": "^0.0.518",
|
|
18993
|
-
"circuit-to-canvas": "0.0.
|
|
18996
|
+
"circuit-to-canvas": "0.0.138",
|
|
18994
18997
|
color: "^4.2.3",
|
|
18995
18998
|
"react-supergrid": "^1.0.10",
|
|
18996
18999
|
"react-toastify": "^10.0.5",
|