@graphysdk/react-renderer 1.9.0-beta.1794582331101 → 1.9.0-beta.1794827419339
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/editable.cjs +1 -1
- package/dist/editable.d.ts +5 -6
- package/dist/editable.mjs +309 -310
- package/dist/{history-chords-QvGzISXZ.js → history-chords-33L-x9C3.js} +2652 -2652
- package/dist/history-chords-B1QJChgA.cjs +2 -0
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.mjs +472 -470
- package/package.json +4 -4
- package/dist/history-chords-B_gzoztJ.cjs +0 -2
package/dist/editable.d.ts
CHANGED
|
@@ -690,7 +690,7 @@ declare type DotNotation<T> = T extends object ? {
|
|
|
690
690
|
}[keyof T & string] : never;
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
|
-
* `GraphRenderer` with the editor layer wired in. A host toggles `mode` rather than swapping
|
|
693
|
+
* `GraphRenderer` with the editor layer wired in. A host toggles `GraphProvider`'s `mode` rather than swapping
|
|
694
694
|
* components, so hover, animation, the scene store and the undo history survive the toggle.
|
|
695
695
|
*
|
|
696
696
|
* The editor store is held from here, above the renderer, because the editing surface fills a slot
|
|
@@ -702,12 +702,12 @@ declare type DotNotation<T> = T extends object ? {
|
|
|
702
702
|
*
|
|
703
703
|
* @example
|
|
704
704
|
* ```tsx
|
|
705
|
-
* <GraphProvider spec={input} data={data}>
|
|
706
|
-
* <EditableGraphRenderer
|
|
705
|
+
* <GraphProvider spec={input} data={data} mode={isEditing ? 'annotate' : 'readonly'}>
|
|
706
|
+
* <EditableGraphRenderer />
|
|
707
707
|
* </GraphProvider>
|
|
708
708
|
* ```
|
|
709
709
|
*/
|
|
710
|
-
export declare const EditableGraphRenderer: ({ slots,
|
|
710
|
+
export declare const EditableGraphRenderer: ({ slots, palettePresets, editMenus, ...rest }: EditableGraphRendererProps) => JSX.Element;
|
|
711
711
|
|
|
712
712
|
/** Props for {@link EditableGraphRenderer}: the renderer's own, plus what only the editor reads. */
|
|
713
713
|
export declare interface EditableGraphRendererProps extends GraphRendererProps {
|
|
@@ -2257,7 +2257,7 @@ declare interface GraphHandle {
|
|
|
2257
2257
|
getPointSymbols: (coordType: CoordSystem['type']) => GeomRenderContract['symbols'];
|
|
2258
2258
|
}
|
|
2259
2259
|
|
|
2260
|
-
/** The mode a chart runs in, which `
|
|
2260
|
+
/** The mode a chart runs in, which `GraphProvider` takes as a prop and every row of `MODE_RULES` is keyed by. */
|
|
2261
2261
|
declare type GraphMode = (typeof GRAPH_MODES)[keyof typeof GRAPH_MODES];
|
|
2262
2262
|
|
|
2263
2263
|
/** What a chart writes on its own marks. The grid is chrome behind them, and has its own section. */
|
|
@@ -2286,7 +2286,6 @@ declare interface GraphRendererProps {
|
|
|
2286
2286
|
* and so does a chart denser than `maxAnimatedGeoms`.
|
|
2287
2287
|
*/
|
|
2288
2288
|
animation?: GraphAnimation;
|
|
2289
|
-
mode?: GraphMode;
|
|
2290
2289
|
/** Per-region component overrides. Unspecified regions render their default. */
|
|
2291
2290
|
slots?: GraphSlots;
|
|
2292
2291
|
}
|