@tscircuit/core 0.0.1084 → 0.0.1085
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7826,6 +7826,12 @@ function isValidPinLabel(pin, label) {
|
|
|
7826
7826
|
}
|
|
7827
7827
|
|
|
7828
7828
|
// lib/utils/get-bounds-of-pcb-components.ts
|
|
7829
|
+
var NON_PHYSICAL_PCB_PRIMITIVE_PREFIXES = [
|
|
7830
|
+
"Silkscreen",
|
|
7831
|
+
"PcbNote",
|
|
7832
|
+
"Courtyard",
|
|
7833
|
+
"FabricationNote"
|
|
7834
|
+
];
|
|
7829
7835
|
function getBoundsOfPcbComponents(components) {
|
|
7830
7836
|
let minX = Infinity;
|
|
7831
7837
|
let minY = Infinity;
|
|
@@ -7833,7 +7839,9 @@ function getBoundsOfPcbComponents(components) {
|
|
|
7833
7839
|
let maxY = -Infinity;
|
|
7834
7840
|
let hasValidComponents = false;
|
|
7835
7841
|
for (const child of components) {
|
|
7836
|
-
if (child.isPcbPrimitive && !
|
|
7842
|
+
if (child.isPcbPrimitive && !NON_PHYSICAL_PCB_PRIMITIVE_PREFIXES.some(
|
|
7843
|
+
(prefix) => child.componentName.startsWith(prefix)
|
|
7844
|
+
)) {
|
|
7837
7845
|
const { x, y } = child._getGlobalPcbPositionBeforeLayout();
|
|
7838
7846
|
const { width: width2, height: height2 } = child.getPcbSize();
|
|
7839
7847
|
minX = Math.min(minX, x - width2 / 2);
|
|
@@ -18168,7 +18176,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18168
18176
|
var package_default = {
|
|
18169
18177
|
name: "@tscircuit/core",
|
|
18170
18178
|
type: "module",
|
|
18171
|
-
version: "0.0.
|
|
18179
|
+
version: "0.0.1084",
|
|
18172
18180
|
types: "dist/index.d.ts",
|
|
18173
18181
|
main: "dist/index.js",
|
|
18174
18182
|
module: "dist/index.js",
|