geonodes-web-render 0.3.23 → 0.3.24
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/README.md +5 -1
- package/dist/embed.js +609 -610
- package/dist/types/embed.d.ts +3 -0
- package/dist/types/gn/components/GeometryNodesFlow.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Open `http://localhost:5173/geonodes-web-render/` and pick an example or paste y
|
|
|
61
61
|
import { mountGraphView, unmountGraphView } from 'geonodes-web-render/embed'
|
|
62
62
|
|
|
63
63
|
// payload can be a raw JSON string or a TreeClipper:: base64 encoded string
|
|
64
|
-
mountGraphView(container, payload)
|
|
64
|
+
mountGraphView(container, { payload })
|
|
65
65
|
|
|
66
66
|
// later
|
|
67
67
|
unmountGraphView(container)
|
|
@@ -75,6 +75,10 @@ import { GraphView } from 'geonodes-web-render/embed'
|
|
|
75
75
|
<GraphView payload="TreeClipper::H4sI..." />
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
Set `showCopyButton={false}` (or `{ payload, showCopyButton: false }` for
|
|
79
|
+
`mountGraphView`) to hide the "Copy TreeClipper Magic String" button and disable
|
|
80
|
+
the right-click copy action. Defaults to `true`.
|
|
81
|
+
|
|
78
82
|
> **Preview the embed locally.** The embed view (with the "Copy TreeClipper
|
|
79
83
|
> Magic String" button and toast) isn't reachable from the standalone app, so a
|
|
80
84
|
> dev-only harness page is included. Run `npm run dev` and open
|