@tscircuit/pcb-viewer 1.11.72 → 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 +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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",
|
|
@@ -8332,7 +8332,7 @@ var package_default = {
|
|
|
8332
8332
|
"@swc/core": "^1.4.12",
|
|
8333
8333
|
"@tscircuit/core": "0.0.354",
|
|
8334
8334
|
"@tscircuit/eagle-xml-converter": "^1.0.0",
|
|
8335
|
-
"@tscircuit/props": "^0.0.
|
|
8335
|
+
"@tscircuit/props": "^0.0.163",
|
|
8336
8336
|
"@tscircuit/soup-util": "^0.0.41",
|
|
8337
8337
|
"@types/color": "^3.0.6",
|
|
8338
8338
|
"@types/node": "18.7.23",
|
|
@@ -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,
|