@tscircuit/pcb-viewer 1.11.73 → 1.11.74
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 +1 -1
package/dist/index.js
CHANGED
|
@@ -8304,7 +8304,7 @@ import { css } from "@emotion/css";
|
|
|
8304
8304
|
// package.json
|
|
8305
8305
|
var package_default = {
|
|
8306
8306
|
name: "@tscircuit/pcb-viewer",
|
|
8307
|
-
version: "1.11.
|
|
8307
|
+
version: "1.11.73",
|
|
8308
8308
|
main: "dist/index.js",
|
|
8309
8309
|
type: "module",
|
|
8310
8310
|
repository: "tscircuit/pcb-viewer",
|
|
@@ -9818,11 +9818,14 @@ var PCBViewer = ({
|
|
|
9818
9818
|
requestAnimationFrame(animateTransform);
|
|
9819
9819
|
};
|
|
9820
9820
|
useEffect13(() => {
|
|
9821
|
-
if (
|
|
9822
|
-
|
|
9823
|
-
|
|
9821
|
+
if (disableAutoFocus) return;
|
|
9822
|
+
if (!refDimensions?.width) return;
|
|
9823
|
+
if (!(children || soup || circuitJson)) return;
|
|
9824
|
+
if (clickToInteractEnabled && !isInteractionEnabled) return;
|
|
9825
|
+
resetTransform(false);
|
|
9824
9826
|
}, [
|
|
9825
9827
|
children,
|
|
9828
|
+
circuitJson,
|
|
9826
9829
|
refDimensions,
|
|
9827
9830
|
clickToInteractEnabled,
|
|
9828
9831
|
isInteractionEnabled,
|