@graphysdk/react-renderer 1.9.0-beta.1790002020465 → 1.9.0-beta.1790021834668
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 +14 -4
- package/dist/editable.mjs +2334 -2318
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +20 -4
- package/dist/index.mjs +139 -138
- package/dist/use-target-boundary-BOr1R0Tk.cjs +2 -0
- package/dist/{use-target-boundary-CsEXR54z.js → use-target-boundary-SrbUBtYI.js} +2423 -2418
- package/package.json +2 -2
- package/dist/use-target-boundary-Bu9pOSR3.cjs +0 -2
package/dist/editable.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { Rect } from '@graphysdk/viz-engine';
|
|
|
23
23
|
import { ResolvedHeadlineSize } from '@graphysdk/viz-engine';
|
|
24
24
|
import { Scene } from '@graphysdk/viz-engine';
|
|
25
25
|
import { SourceContent } from '@graphysdk/viz-engine';
|
|
26
|
-
import { SourceStyle } from '@graphysdk/viz-engine';
|
|
27
26
|
import { TextContent } from '@graphysdk/viz-engine';
|
|
28
27
|
import { TextMeasurer } from '@graphysdk/viz-engine';
|
|
29
28
|
import { TextStyle } from '@graphysdk/viz-engine';
|
|
@@ -738,6 +737,12 @@ declare interface GraphAnimationProps {
|
|
|
738
737
|
intro?: boolean | Partial<IntroAnimationOptions>;
|
|
739
738
|
/** Whether geoms animate to their new position when the underlying data changes. Defaults on. */
|
|
740
739
|
transitions?: boolean;
|
|
740
|
+
/**
|
|
741
|
+
* Total geom count across all layers above which the graph plays no animation, intro or
|
|
742
|
+
* transitions. A line or area is one geom however many points it draws, so a dense live line
|
|
743
|
+
* stays under the ceiling; turn `transitions` off for it. Defaults to 1500.
|
|
744
|
+
*/
|
|
745
|
+
maxAnimatedGeoms?: number;
|
|
741
746
|
}
|
|
742
747
|
|
|
743
748
|
/** Write access to the graph's spec: applying {@link Command}s and closing the runs they form. */
|
|
@@ -811,7 +816,8 @@ declare interface GraphRendererProps {
|
|
|
811
816
|
onResize?: ResizeObserverOnResize;
|
|
812
817
|
/**
|
|
813
818
|
* Animation settings. A boolean disables/enables animations globally, an object tunes the intro
|
|
814
|
-
* and data transitions separately. A reduced-motion preference disables everything regardless
|
|
819
|
+
* and data transitions separately. A reduced-motion preference disables everything regardless,
|
|
820
|
+
* and so does a chart denser than `maxAnimatedGeoms`.
|
|
815
821
|
*/
|
|
816
822
|
animation?: GraphAnimation;
|
|
817
823
|
showTooltips?: boolean;
|
|
@@ -973,8 +979,6 @@ declare interface IntroAnimationOptions {
|
|
|
973
979
|
stagger: boolean;
|
|
974
980
|
/** The order staggered point geoms enter in. Bars and slices always enter in visual order. */
|
|
975
981
|
staggerOrder: IntroStaggerOrder;
|
|
976
|
-
/** Total geom count across all layers above which the entrance is skipped entirely. */
|
|
977
|
-
maxAnimatedGeoms: number;
|
|
978
982
|
}
|
|
979
983
|
|
|
980
984
|
/** Where the legend sits relative to the chart, and how it names its series. */
|
|
@@ -1273,6 +1277,12 @@ declare interface SlotOverride<Props, Measure> {
|
|
|
1273
1277
|
/** Whether the chart shows its source. The one text part never editable in place on the chart. */
|
|
1274
1278
|
export declare const SourceSection: ({ title, layout, preview }: OverridableSectionProps) => JSX.Element | null;
|
|
1275
1279
|
|
|
1280
|
+
/** The source line's type: the label and the URL. A bare source entry never paints the link. */
|
|
1281
|
+
declare interface SourceStyle {
|
|
1282
|
+
label: TextStyle;
|
|
1283
|
+
link: TextStyle;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1276
1286
|
/**
|
|
1277
1287
|
* Whether the chart shows its subtitle, and what it says.
|
|
1278
1288
|
*
|