geonodes-web-render 0.3.15 → 0.3.16

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.
@@ -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 left/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
- /** Zoom the canvas on mouse-wheel. Default true; set false (e.g. in an embed)
11
- * so the wheel scrolls the host page instead of the node tree. */
12
- zoomOnScroll?: boolean;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonodes-web-render",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Browser-based viewer for Blender Geometry Nodes exported via Tree Clipper. Renders node trees as a read-only, Blender-styled graph.",
5
5
  "type": "module",
6
6
  "exports": {