geonodes-web-render 0.3.15 → 0.3.17
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/embed.css +1 -1
- package/dist/embed.js +838 -814
- package/dist/types/gn/components/GeometryNodesFlow.d.ts +13 -3
- package/package.json +1 -1
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the canvas captures the mouse wheel:
|
|
3
|
+
* - `'always'` — standalone app: wheel always zooms (and pans with middle drag,
|
|
4
|
+
* box-selects with left drag).
|
|
5
|
+
* - `'hybrid'` — embedded: the wheel scrolls the host page until the user clicks
|
|
6
|
+
* the canvas to "engage"; then it zooms like the standalone app until the
|
|
7
|
+
* pointer leaves. Ctrl+wheel / trackpad-pinch zoom even while resting.
|
|
8
|
+
* - `'none'` — wheel always scrolls the page; pan via middle-drag only.
|
|
9
|
+
*/
|
|
10
|
+
export type InteractionMode = 'always' | 'hybrid' | 'none';
|
|
1
11
|
export declare function GeometryNodesFlow(props: {
|
|
2
12
|
jsonText: string;
|
|
3
13
|
/** When false, hide the panel header ("Geometry Nodes Graph" and node count). Default true. */
|
|
@@ -7,7 +17,7 @@ export declare function GeometryNodesFlow(props: {
|
|
|
7
17
|
/** Called when the user copies a magic string via the right-click menu. When
|
|
8
18
|
* provided, the canvas skips its own toast so the host can show one instead. */
|
|
9
19
|
onCopiedMagicString?: () => void;
|
|
10
|
-
/**
|
|
11
|
-
* so the wheel scrolls the host page
|
|
12
|
-
|
|
20
|
+
/** How the wheel is captured. Default `'always'` (standalone). Use `'hybrid'`
|
|
21
|
+
* in an embed so the wheel scrolls the host page until the canvas is clicked. */
|
|
22
|
+
interaction?: InteractionMode;
|
|
13
23
|
}): import("react").JSX.Element;
|
package/package.json
CHANGED