@tscircuit/pcb-viewer 1.11.233 → 1.11.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.
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11198,22 +11198,27 @@ var getTextForHighlightedPrimitive = (prim) => {
|
|
|
11198
11198
|
}
|
|
11199
11199
|
case "pcb_smtpad":
|
|
11200
11200
|
case "pcb_plated_hole": {
|
|
11201
|
-
|
|
11201
|
+
const selectors = [];
|
|
11202
11202
|
const port_hints = Array.from(
|
|
11203
11203
|
new Set(
|
|
11204
11204
|
(element.port_hints ?? []).concat(
|
|
11205
11205
|
_source_port?.port_hints ?? []
|
|
11206
11206
|
)
|
|
11207
11207
|
)
|
|
11208
|
-
).filter((ph) => !/^[0-9]+$/.test(ph)).sort((a, b) => b.localeCompare(a));
|
|
11209
|
-
|
|
11210
|
-
s += `.${_parent_source_component.name}`;
|
|
11211
|
-
if (port_hints.length > 0) s += " > ";
|
|
11212
|
-
}
|
|
11208
|
+
).filter((ph) => !/^[0-9]+$/.test(ph)).filter((ph) => !ph.includes("unnamed_")).sort((a, b) => b.localeCompare(a));
|
|
11209
|
+
const parentName = _parent_source_component && "name" in _parent_source_component && _parent_source_component.name && !_parent_source_component.name.includes("unnamed_") ? _parent_source_component.name : null;
|
|
11213
11210
|
if (port_hints.length > 0) {
|
|
11214
|
-
|
|
11211
|
+
if (parentName) {
|
|
11212
|
+
selectors.push(
|
|
11213
|
+
...port_hints.map((ph) => `${parentName}.${ph}`)
|
|
11214
|
+
);
|
|
11215
|
+
} else {
|
|
11216
|
+
selectors.push(...port_hints);
|
|
11217
|
+
}
|
|
11218
|
+
} else if (parentName) {
|
|
11219
|
+
selectors.push(parentName);
|
|
11215
11220
|
}
|
|
11216
|
-
return
|
|
11221
|
+
return selectors.join(", ");
|
|
11217
11222
|
}
|
|
11218
11223
|
default: {
|
|
11219
11224
|
return "";
|
|
@@ -11904,7 +11909,7 @@ import { css as css3 } from "@emotion/css";
|
|
|
11904
11909
|
// package.json
|
|
11905
11910
|
var package_default = {
|
|
11906
11911
|
name: "@tscircuit/pcb-viewer",
|
|
11907
|
-
version: "1.11.
|
|
11912
|
+
version: "1.11.233",
|
|
11908
11913
|
main: "dist/index.js",
|
|
11909
11914
|
type: "module",
|
|
11910
11915
|
repository: "tscircuit/pcb-viewer",
|