@tscircuit/core 0.0.1933 → 0.0.1934

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13856,7 +13856,8 @@ var analyzeSupplierPartOrientation = async ({
13856
13856
  return analysis;
13857
13857
  };
13858
13858
  var NormalComponent_doInitialPartOrientationAnalysis = (component) => {
13859
- if (!component.root?.platform?.enablePartOrientationAnalysis) return;
13859
+ if (!component.root) return;
13860
+ if (component.root.platform?.enablePartOrientationAnalysis === false) return;
13860
13861
  if (component.root.pcbDisabled || component.props.doNotPlace) return;
13861
13862
  if (!component.pcb_component_id) return;
13862
13863
  const { db } = component.root;
@@ -13868,6 +13869,7 @@ var NormalComponent_doInitialPartOrientationAnalysis = (component) => {
13868
13869
  pcb_component_id: component.pcb_component_id
13869
13870
  })
13870
13871
  ];
13872
+ if (pcbElements.length === 0) return;
13871
13873
  const localPin1Location = getExplicitPcbPin1Location(component.resolveFootprint()) ?? analyzePcbPin1Location(
13872
13874
  getUnrotatedLocalPcbElements({
13873
13875
  component,
@@ -63354,7 +63356,7 @@ function Group_getRoutingPhasePlans(group) {
63354
63356
  var package_default = {
63355
63357
  name: "@tscircuit/core",
63356
63358
  type: "module",
63357
- version: "0.0.1932",
63359
+ version: "0.0.1933",
63358
63360
  types: "dist/index.d.ts",
63359
63361
  main: "dist/index.js",
63360
63362
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1933",
4
+ "version": "0.0.1934",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",