semiotic 2.0.2 → 2.0.3

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.
Files changed (161) hide show
  1. package/dist/Annotation.d.ts +3 -0
  2. package/dist/AnnotationLayer/AnnotationLayer.d.ts +26 -0
  3. package/dist/AnnotationLayer/helpers.d.ts +6 -0
  4. package/dist/AnnotationLayer/index.d.ts +2 -0
  5. package/dist/Axis/Axis.d.ts +7 -0
  6. package/dist/Axis/axisTitle.d.ts +10 -0
  7. package/dist/Axis/index.d.ts +2 -0
  8. package/dist/Axis/summaryGraphic.d.ts +17 -0
  9. package/dist/Brush.d.ts +12 -0
  10. package/dist/DividedLine.d.ts +16 -0
  11. package/dist/FacetController.d.ts +12 -0
  12. package/dist/Frame.d.ts +2 -0
  13. package/dist/InteractionLayer.d.ts +3 -0
  14. package/dist/Legend.d.ts +3 -0
  15. package/dist/Mark/Mark.d.ts +3 -0
  16. package/dist/Mark/Mark.types.d.ts +10 -0
  17. package/dist/Mark/constants/markTransition.d.ts +10 -0
  18. package/dist/Mark/markBehavior/drawing.d.ts +13 -0
  19. package/dist/MiniMap.d.ts +14 -0
  20. package/dist/MinimapXYFrame.d.ts +10 -0
  21. package/dist/NetworkFrame.d.ts +4 -0
  22. package/dist/OrdinalFrame.d.ts +4 -0
  23. package/dist/ResponsiveFrame.d.ts +22 -0
  24. package/dist/ResponsiveMinimapXYFrame.d.ts +6 -0
  25. package/dist/ResponsiveNetworkFrame.d.ts +6 -0
  26. package/dist/ResponsiveOrdinalFrame.d.ts +6 -0
  27. package/dist/ResponsiveXYFrame.d.ts +6 -0
  28. package/dist/SpanOrDiv.d.ts +10 -0
  29. package/dist/SparkFrame.d.ts +14 -0
  30. package/dist/SparkNetworkFrame.d.ts +5 -0
  31. package/dist/SparkOrdinalFrame.d.ts +5 -0
  32. package/dist/SparkXYFrame.d.ts +5 -0
  33. package/dist/TooltipPositioner/index.d.ts +7 -0
  34. package/dist/VisualizationLayer.d.ts +33 -0
  35. package/dist/XYFrame.d.ts +4 -0
  36. package/dist/annotationLayerBehavior/annotationHandling.d.ts +19 -0
  37. package/dist/annotationLayerBehavior/d3labeler.d.ts +9 -0
  38. package/dist/annotationRules/baseRules.d.ts +25 -0
  39. package/dist/annotationRules/networkframeRules.d.ts +48 -0
  40. package/dist/annotationRules/orframeRules.d.ts +105 -0
  41. package/dist/annotationRules/xyframeRules.d.ts +117 -0
  42. package/dist/batchWork.d.ts +6 -0
  43. package/dist/components/Annotation.d.ts +3 -0
  44. package/dist/components/AnnotationLayer/AnnotationLayer.d.ts +26 -0
  45. package/dist/components/Axis/Axis.d.ts +7 -0
  46. package/dist/components/Axis/axisTitle.d.ts +10 -0
  47. package/dist/components/Axis/index.d.ts +2 -0
  48. package/dist/components/Axis/summaryGraphic.d.ts +17 -0
  49. package/dist/components/Brush.d.ts +12 -0
  50. package/dist/components/DividedLine.d.ts +16 -0
  51. package/dist/components/FacetController.d.ts +12 -0
  52. package/dist/components/Frame.d.ts +2 -0
  53. package/dist/components/InteractionLayer.d.ts +3 -0
  54. package/dist/components/Legend.d.ts +3 -0
  55. package/dist/components/Mark/Mark.d.ts +3 -0
  56. package/dist/components/Mark/Mark.types.d.ts +10 -0
  57. package/dist/components/Mark/markBehavior/drawing.d.ts +13 -0
  58. package/dist/components/MiniMap.d.ts +14 -0
  59. package/dist/components/MinimapXYFrame.d.ts +10 -0
  60. package/dist/components/NetworkFrame.d.ts +4 -0
  61. package/dist/components/OrdinalFrame.d.ts +4 -0
  62. package/dist/components/ResponsiveFrame.d.ts +22 -0
  63. package/dist/components/ResponsiveMinimapXYFrame.d.ts +6 -0
  64. package/dist/components/ResponsiveNetworkFrame.d.ts +6 -0
  65. package/dist/components/ResponsiveOrdinalFrame.d.ts +6 -0
  66. package/dist/components/ResponsiveXYFrame.d.ts +6 -0
  67. package/dist/components/SpanOrDiv.d.ts +10 -0
  68. package/dist/components/SparkFrame.d.ts +14 -0
  69. package/dist/components/SparkNetworkFrame.d.ts +5 -0
  70. package/dist/components/SparkOrdinalFrame.d.ts +5 -0
  71. package/dist/components/SparkXYFrame.d.ts +5 -0
  72. package/dist/components/TooltipPositioner/index.d.ts +7 -0
  73. package/dist/components/VisualizationLayer.d.ts +33 -0
  74. package/dist/components/XYFrame.d.ts +4 -0
  75. package/dist/components/annotationLayerBehavior/annotationHandling.d.ts +19 -0
  76. package/dist/components/annotationLayerBehavior/d3labeler.d.ts +9 -0
  77. package/dist/components/annotationRules/baseRules.d.ts +25 -0
  78. package/dist/components/annotationRules/networkframeRules.d.ts +48 -0
  79. package/dist/components/annotationRules/orframeRules.d.ts +105 -0
  80. package/dist/components/annotationRules/xyframeRules.d.ts +117 -0
  81. package/dist/components/batchWork.d.ts +6 -0
  82. package/dist/components/constants/coordinateNames.d.ts +8 -0
  83. package/dist/components/constants/frame_props.d.ts +4 -0
  84. package/dist/components/constants/jsx.d.ts +19 -0
  85. package/dist/components/data/dataFunctions.d.ts +46 -0
  86. package/dist/components/data/multiAccessorUtils.d.ts +1 -0
  87. package/dist/components/data/unflowedFunctions.d.ts +1 -0
  88. package/dist/components/generic_utilities/functions.d.ts +1 -0
  89. package/dist/components/index.d.ts +125 -0
  90. package/dist/components/interactionLayerBehavior/InteractionCanvas.d.ts +20 -0
  91. package/dist/components/processing/InteractionItems.d.ts +12 -0
  92. package/dist/components/processing/network.d.ts +114 -0
  93. package/dist/components/processing/ordinal.d.ts +102 -0
  94. package/dist/components/processing/xyDrawing.d.ts +135 -0
  95. package/dist/components/semiotic.d.ts +35 -0
  96. package/dist/components/store/TooltipStore.d.ts +2 -0
  97. package/dist/components/store/createStore.d.ts +1 -0
  98. package/dist/components/svg/SvgHelper.d.ts +37 -0
  99. package/dist/components/svg/areaDrawing.d.ts +31 -0
  100. package/dist/components/svg/ckmeans.d.ts +69 -0
  101. package/dist/components/svg/frameFunctions.d.ts +119 -0
  102. package/dist/components/svg/lineDrawing.d.ts +99 -0
  103. package/dist/components/svg/networkDrawing.d.ts +134 -0
  104. package/dist/components/svg/pieceDrawing.d.ts +13 -0
  105. package/dist/components/svg/pieceLayouts.d.ts +71 -0
  106. package/dist/components/svg/summaryLayouts.d.ts +74 -0
  107. package/dist/components/types/annotationTypes.d.ts +140 -0
  108. package/dist/components/types/canvasTypes.d.ts +9 -0
  109. package/dist/components/types/generalTypes.d.ts +236 -0
  110. package/dist/components/types/interactionTypes.d.ts +74 -0
  111. package/dist/components/types/legendTypes.d.ts +20 -0
  112. package/dist/components/types/networkTypes.d.ts +165 -0
  113. package/dist/components/types/ordinalTypes.d.ts +103 -0
  114. package/dist/components/types/xyTypes.d.ts +118 -0
  115. package/dist/components/useBoundingRect.d.ts +2 -0
  116. package/dist/components/useDerivedStateFromProps.d.ts +1 -0
  117. package/dist/components/useLegacyUnmountCallback.d.ts +1 -0
  118. package/dist/components/visualizationLayerBehavior/axis.d.ts +38 -0
  119. package/dist/components/visualizationLayerBehavior/general.d.ts +84 -0
  120. package/dist/constants/coordinateNames.d.ts +8 -0
  121. package/dist/constants/frame_props.d.ts +4 -0
  122. package/dist/constants/jsx.d.ts +19 -0
  123. package/dist/data/dataFunctions.d.ts +46 -0
  124. package/dist/data/multiAccessorUtils.d.ts +1 -0
  125. package/dist/data/unflowedFunctions.d.ts +1 -0
  126. package/dist/generic_utilities/functions.d.ts +1 -0
  127. package/dist/index.d.ts +125 -0
  128. package/dist/interactionLayerBehavior/InteractionCanvas.d.ts +20 -0
  129. package/dist/processing/InteractionItems.d.ts +12 -0
  130. package/dist/processing/network.d.ts +114 -0
  131. package/dist/processing/ordinal.d.ts +102 -0
  132. package/dist/processing/xyDrawing.d.ts +135 -0
  133. package/dist/semiotic.d.ts +35 -0
  134. package/dist/semiotic.js +10 -7
  135. package/dist/semiotic.module.js +10 -7
  136. package/dist/setupTests.d.ts +1 -0
  137. package/dist/store/TooltipStore.d.ts +2 -0
  138. package/dist/store/createStore.d.ts +1 -0
  139. package/dist/svg/SvgHelper.d.ts +37 -0
  140. package/dist/svg/areaDrawing.d.ts +31 -0
  141. package/dist/svg/ckmeans.d.ts +69 -0
  142. package/dist/svg/frameFunctions.d.ts +119 -0
  143. package/dist/svg/lineDrawing.d.ts +99 -0
  144. package/dist/svg/networkDrawing.d.ts +134 -0
  145. package/dist/svg/pieceDrawing.d.ts +13 -0
  146. package/dist/svg/pieceLayouts.d.ts +71 -0
  147. package/dist/svg/summaryLayouts.d.ts +74 -0
  148. package/dist/types/annotationTypes.d.ts +140 -0
  149. package/dist/types/canvasTypes.d.ts +9 -0
  150. package/dist/types/generalTypes.d.ts +236 -0
  151. package/dist/types/interactionTypes.d.ts +74 -0
  152. package/dist/types/legendTypes.d.ts +20 -0
  153. package/dist/types/networkTypes.d.ts +165 -0
  154. package/dist/types/ordinalTypes.d.ts +103 -0
  155. package/dist/types/xyTypes.d.ts +118 -0
  156. package/dist/useBoundingRect.d.ts +2 -0
  157. package/dist/useDerivedStateFromProps.d.ts +1 -0
  158. package/dist/useLegacyUnmountCallback.d.ts +1 -0
  159. package/dist/visualizationLayerBehavior/axis.d.ts +38 -0
  160. package/dist/visualizationLayerBehavior/general.d.ts +84 -0
  161. package/package.json +6 -5
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { AnnotationProps } from "./types/annotationTypes";
3
+ export default function SemioticAnnotation(props: AnnotationProps): React.JSX.Element;
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import { AnnotationHandling, AnnotationTypes, AnnotationType } from "./../types/annotationTypes";
3
+ import { LegendProps } from "./../types/legendTypes";
4
+ export interface AnnotationLayerProps {
5
+ useSpans: boolean;
6
+ legendSettings?: LegendProps;
7
+ margin: {
8
+ top?: number;
9
+ left?: number;
10
+ right?: number;
11
+ bottom?: number;
12
+ };
13
+ size: number[];
14
+ axes?: React.ReactNode[];
15
+ annotationHandling?: AnnotationHandling | AnnotationTypes;
16
+ annotations: AnnotationType[];
17
+ pointSizeFunction?: Function;
18
+ labelSizeFunction?: Function;
19
+ svgAnnotationRule: Function;
20
+ htmlAnnotationRule: Function;
21
+ position?: number[];
22
+ }
23
+ export interface UpdatedAnnotationLayerProps extends AnnotationLayerProps {
24
+ voronoiHover: Function;
25
+ }
26
+ export default function AnnotationLayer(props: AnnotationLayerProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export function marginOffsetFn(orient: any, axisSettings: any, marginOffset: any): number;
2
+ export function adjustedAnnotationKeyMapper(d: any): string;
3
+ export function safeStringify(value: any): string;
4
+ export function noteDataWidth(noteData: any, charWidth: number, layoutNoteWidth: any): any;
5
+ export function noteDataHeight(noteData: any, charWidth: number, lineHeight: number, layoutNoteHeight: any): any;
6
+ export function keyFromSVGAnnotations(adjustableAnnotations: any, annotationProcessor: any, size: any): string;
@@ -0,0 +1,2 @@
1
+ export default AnnotationLayer;
2
+ import AnnotationLayer from "./AnnotationLayer";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { AxisProps } from "./../types/annotationTypes";
3
+ declare const marginalPointMapper: (orient: any, width: any, data: any) => any;
4
+ declare function formatValue(value: any, props: any): any;
5
+ declare const boundingBoxMax: (axisNode: any, orient: any) => number;
6
+ export default function Axis(props: AxisProps): React.JSX.Element;
7
+ export { marginalPointMapper, formatValue, boundingBoxMax };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export interface AxisTitleProps {
3
+ className: string;
4
+ translation: Array<number>;
5
+ position: Array<number>;
6
+ rotation: number | string;
7
+ labelName: any;
8
+ anchorMod: string;
9
+ }
10
+ export default function AxisTitle(props: AxisTitleProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import Axis from './Axis';
2
+ export default Axis;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export interface SummaryGraphicProps {
3
+ translation: {
4
+ left: Array<number>;
5
+ right: Array<number>;
6
+ top: Array<number>;
7
+ bottom: Array<number>;
8
+ };
9
+ orient: "left" | "right" | "top" | "bottom";
10
+ decoratedSummaryType: {
11
+ type: string;
12
+ };
13
+ summaryWidth: number;
14
+ renderedSummary: any;
15
+ points?: React.ReactNode;
16
+ }
17
+ export default function SummaryGraphic(props: SummaryGraphicProps): JSX.Element;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ interface BrushProps {
3
+ extent?: number[] | number[][];
4
+ selectedExtent?: number[] | number[][];
5
+ svgBrush: {
6
+ (): () => void;
7
+ move: Function;
8
+ };
9
+ position?: number[];
10
+ }
11
+ export default function Brush(props: BrushProps): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import { ProjectedLine } from "./types/generalTypes";
3
+ interface DividedLineProps {
4
+ parameters: Function;
5
+ className: string;
6
+ customAccessors: {
7
+ x: Function;
8
+ y: Function;
9
+ };
10
+ lineDataAccessor: Function;
11
+ data: ProjectedLine[];
12
+ interpolate?: Function;
13
+ searchIterations?: number;
14
+ }
15
+ export default function DividedLine(props: DividedLineProps): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { OrdinalFrameProps } from "./types/ordinalTypes";
3
+ import { XYFrameProps } from "./types/xyTypes";
4
+ interface FacetControllerProps {
5
+ children: React.ReactElement;
6
+ sharedRExtent: boolean;
7
+ sharedXExtent: boolean;
8
+ sharedYExtent: boolean;
9
+ }
10
+ declare type Props = FacetControllerProps & OrdinalFrameProps & XYFrameProps;
11
+ export default function FacetController(props: Props): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export default function Frame(props: any): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { InteractionLayerProps } from "./types/interactionTypes";
3
+ export default function InteractionLayer(props: InteractionLayerProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { LegendProps } from "./types/legendTypes";
3
+ export default function Legend(props: LegendProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MarkProps } from "./Mark.types";
3
+ export default function SemioticMark({ sketchyGenerator, markType, renderMode, ["aria-label"]: ariaLabel, ...props }: MarkProps): JSX.Element;
@@ -0,0 +1,10 @@
1
+ export interface FillOpacity {
2
+ opacity?: number;
3
+ fillOpacity?: number;
4
+ strokeOpacity?: number;
5
+ }
6
+ export interface StrokeOpacity {
7
+ opacity?: number;
8
+ strokeOpacity?: number;
9
+ }
10
+ export declare type MarkProps = any;
@@ -0,0 +1,10 @@
1
+ export const styleTransitionWhitelist: string[];
2
+ export const redrawSketchyList: string[];
3
+ export const attributeTransitionWhitelist: string[];
4
+ export namespace reactCSSNameStyleHash {
5
+ const strokeWidth: string;
6
+ const fillOpacity: string;
7
+ const strokeOpacity: string;
8
+ const strokeDasharray: string;
9
+ }
10
+ export function differentD(d: any, newD: any): boolean;
@@ -0,0 +1,13 @@
1
+ export declare function pathStr({ x, y, width, height, cx, cy, r }: {
2
+ x?: number;
3
+ y?: number;
4
+ width?: number;
5
+ height?: number;
6
+ cx?: number;
7
+ cy?: number;
8
+ r?: number;
9
+ }): string;
10
+ export declare function circlePath(cx: any, cy: any, r: any): string;
11
+ export declare function rectPath(x: any, y: any, width: any, height: any): string;
12
+ export declare function linePath(x1: any, x2: any, y1: any, y2: any): string;
13
+ export declare function generateSVG(props: any, className: any, markType: any, renderMode: any): any;
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { XYFrameProps } from "./types/xyTypes";
3
+ export interface MinimapProps extends XYFrameProps {
4
+ brushStart: Function;
5
+ brush: Function;
6
+ brushEnd: Function;
7
+ xBrushable: boolean;
8
+ yBrushable: boolean;
9
+ yBrushExtent?: number[];
10
+ xBrushExtent?: number[];
11
+ size: number[];
12
+ }
13
+ declare const MiniMap: (props: MinimapProps) => React.JSX.Element;
14
+ export default MiniMap;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { XYFrameProps } from "./types/xyTypes";
3
+ interface MinimapXYFrameProps extends XYFrameProps {
4
+ renderBefore?: boolean;
5
+ minimap: {
6
+ summaries: object[];
7
+ };
8
+ }
9
+ export default function MinimapXYFrame(props: MinimapXYFrameProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { NetworkFrameProps } from "./types/networkTypes";
3
+ declare const NetworkFrame: React.NamedExoticComponent<NetworkFrameProps>;
4
+ export default NetworkFrame;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { OrdinalFrameProps } from "./types/ordinalTypes";
3
+ declare const OrdinalFrame: React.NamedExoticComponent<OrdinalFrameProps>;
4
+ export default OrdinalFrame;
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { OrdinalFrameProps } from "./types/ordinalTypes";
3
+ import { XYFrameProps } from "./types/xyTypes";
4
+ import { NetworkFrameProps } from "./types/networkTypes";
5
+ export interface ResponsiveFrameProps {
6
+ debounce?: number;
7
+ responsiveWidth?: boolean;
8
+ responsiveHeight?: boolean;
9
+ gridDisplay?: boolean;
10
+ elementResizeEvent?: Function;
11
+ }
12
+ export interface ResponsiveFrameState {
13
+ containerHeight?: number;
14
+ containerWidth?: number;
15
+ }
16
+ declare type ActualFrameProps = OrdinalFrameProps | XYFrameProps | NetworkFrameProps;
17
+ declare const createResponsiveFrame: (ParticularFrame: any) => {
18
+ (props: ResponsiveFrameProps & ActualFrameProps): React.JSX.Element;
19
+ isResizing: number;
20
+ displayName: string;
21
+ };
22
+ export default createResponsiveFrame;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ResponsiveMinimapXYFrame: {
3
+ (props: import("./ResponsiveFrame").ResponsiveFrameProps & (import("./semiotic").OrdinalFrameProps | import("./semiotic").XYFrameProps | import("./semiotic").NetworkFrameProps)): import("react").JSX.Element;
4
+ isResizing: number;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ResponsiveNetworkFrame: {
3
+ (props: import("./ResponsiveFrame").ResponsiveFrameProps & (import("./semiotic").OrdinalFrameProps | import("./semiotic").XYFrameProps | import("./semiotic").NetworkFrameProps)): import("react").JSX.Element;
4
+ isResizing: number;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ResponsiveOrdinalFrame: {
3
+ (props: import("./ResponsiveFrame").ResponsiveFrameProps & (import("./semiotic").OrdinalFrameProps | import("./semiotic").XYFrameProps | import("./semiotic").NetworkFrameProps)): import("react").JSX.Element;
4
+ isResizing: number;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ResponsiveXYFrame: {
3
+ (props: import("./ResponsiveFrame").ResponsiveFrameProps & (import("./semiotic").OrdinalFrameProps | import("./semiotic").XYFrameProps | import("./semiotic").NetworkFrameProps)): import("react").JSX.Element;
4
+ isResizing: number;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ style?: object;
4
+ className?: string;
5
+ children: React.ReactNode | React.ReactNode[];
6
+ span: boolean;
7
+ };
8
+ export default function SpanOrDiv(props: Props): React.JSX.Element;
9
+ export declare const HOCSpanOrDiv: (span: any) => (props: any) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ declare type SparkFrameProps = {
3
+ sparkStyle?: object;
4
+ size?: number | number[];
5
+ };
6
+ export declare const axisDefaults: {
7
+ tickFormat: () => string;
8
+ baseline: boolean;
9
+ };
10
+ export declare const xyFrameDefaults: (props: any) => any;
11
+ export declare const ordinalFrameDefaults: (props: any) => any;
12
+ export declare const networkFrameDefaults: (props: any) => any;
13
+ export default function createSparkFrame(Frame: any, defaults: any, frameName: any): (props: SparkFrameProps) => React.JSX.Element;
14
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const SparkNetworkFrame: (props: {
3
+ sparkStyle?: object;
4
+ size?: number | number[];
5
+ }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const SparkOrdinalFrame: (props: {
3
+ sparkStyle?: object;
4
+ size?: number | number[];
5
+ }) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const SparkXYFrame: (props: {
3
+ sparkStyle?: object;
4
+ size?: number | number[];
5
+ }) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare type Props = {
3
+ tooltipContent: Function;
4
+ tooltipContentArgs?: object;
5
+ };
6
+ export default function TooltipPositioner(props: Props): React.JSX.Element;
7
+ export {};
@@ -0,0 +1,33 @@
1
+ import * as React from "react";
2
+ import { RefObject } from "react";
3
+ import { MarginType, RenderPipelineType, VizLayerTypes, RoughType } from "./types/generalTypes";
4
+ import { ContextType } from "./types/canvasTypes";
5
+ declare type Props = {
6
+ axes?: Array<React.ReactNode>;
7
+ frameKey?: string;
8
+ xScale: Function;
9
+ yScale: Function;
10
+ dataVersion?: string;
11
+ canvasContext?: RefObject<ContextType>;
12
+ width: number;
13
+ height: number;
14
+ margin: MarginType;
15
+ canvasPostProcess?: Function;
16
+ title?: JSX.Element | string;
17
+ ariaTitle?: string;
18
+ matte?: React.ReactNode;
19
+ matteClip?: boolean;
20
+ renderPipeline: RenderPipelineType;
21
+ baseMarkProps?: object;
22
+ projectedCoordinateNames: object;
23
+ position: Array<number>;
24
+ disableContext?: boolean;
25
+ renderOrder: ReadonlyArray<VizLayerTypes>;
26
+ sketchyRenderingEngine?: RoughType;
27
+ axesTickLines?: React.ReactNode;
28
+ frameRenderOrder: Array<string>;
29
+ additionalVizElements: object;
30
+ disableProgressiveRendering?: boolean;
31
+ };
32
+ export default function VisualizationLayer(props: Props): React.JSX.Element;
33
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { XYFrameProps } from "./types/xyTypes";
3
+ declare const XYFrame: React.NamedExoticComponent<XYFrameProps>;
4
+ export default XYFrame;
@@ -0,0 +1,19 @@
1
+ import { AnnotationProps } from "../types/annotationTypes";
2
+ declare type NoteType = {
3
+ props: AnnotationProps;
4
+ };
5
+ declare type AnnotationTypes = "marginalia" | "bump" | false;
6
+ interface Layout {
7
+ type: AnnotationTypes;
8
+ orient?: "nearest" | "left" | "right" | "top" | "bottom" | string[];
9
+ characterWidth?: number;
10
+ lineWidth?: number;
11
+ lineHeight?: number;
12
+ padding?: number;
13
+ iterations?: number;
14
+ pointSizeFunction?: Function;
15
+ labelSizeFunction?: Function;
16
+ marginOffset?: number;
17
+ }
18
+ export declare function bumpAnnotations(adjustableNotes: NoteType[], processor: Layout, size: number[], propsPointSizeFunction?: Function, propsLabelSizeFunction?: Function): NoteType[];
19
+ export {};
@@ -0,0 +1,9 @@
1
+ export default function (): {
2
+ start: (x: any) => void;
3
+ width: (x: any) => void;
4
+ height: (x: any) => void;
5
+ label: (x: any) => void;
6
+ anchor: (x: any) => void;
7
+ alt_energy: (x: any) => void;
8
+ alt_schedule: (x: any) => void;
9
+ };
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ export declare const circleEnclosure: ({ d, i, circle }: {
3
+ d: any;
4
+ i: any;
5
+ circle: any;
6
+ }) => React.JSX.Element;
7
+ export declare const rectangleEnclosure: ({ bboxNodes, d, i }: {
8
+ bboxNodes: any;
9
+ d: any;
10
+ i: any;
11
+ }) => React.JSX.Element;
12
+ export declare const hullEnclosure: ({ points, d, i }: {
13
+ points: any;
14
+ d: any;
15
+ i: any;
16
+ }) => React.JSX.Element;
17
+ export declare const desaturationLayer: ({ style, size, i, key }: {
18
+ style: {
19
+ fill?: string;
20
+ fillOpacity?: number;
21
+ };
22
+ size: number[];
23
+ i?: number;
24
+ key?: string;
25
+ }) => React.JSX.Element;
@@ -0,0 +1,48 @@
1
+ import * as React from "react";
2
+ export declare const htmlFrameHoverRule: ({ d: baseD, i, tooltipContent, optimizeCustomTooltipPosition, useSpans, nodes, edges, nodeIDAccessor }: {
3
+ d: any;
4
+ i: any;
5
+ tooltipContent: any;
6
+ optimizeCustomTooltipPosition: any;
7
+ useSpans: any;
8
+ nodes: any;
9
+ edges: any;
10
+ nodeIDAccessor: any;
11
+ }) => React.JSX.Element;
12
+ export declare const svgNodeRule: ({ d, i, nodeSizeAccessor }: {
13
+ d: any;
14
+ i: any;
15
+ nodeSizeAccessor: any;
16
+ }) => React.JSX.Element;
17
+ export declare const svgReactAnnotationRule: ({ d, i, projectedNodes, nodeIDAccessor }: {
18
+ d: any;
19
+ i: any;
20
+ projectedNodes: any;
21
+ nodeIDAccessor: any;
22
+ }) => React.JSX.Element;
23
+ export declare const svgEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
24
+ d: any;
25
+ i: any;
26
+ projectedNodes: any;
27
+ nodeIDAccessor: any;
28
+ nodeSizeAccessor: any;
29
+ }) => React.JSX.Element;
30
+ export declare const svgRectEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
31
+ d: any;
32
+ i: any;
33
+ projectedNodes: any;
34
+ nodeIDAccessor: any;
35
+ nodeSizeAccessor: any;
36
+ }) => React.JSX.Element;
37
+ export declare const svgHullEncloseRule: ({ d, i, projectedNodes, nodeIDAccessor, nodeSizeAccessor }: {
38
+ d: any;
39
+ i: any;
40
+ projectedNodes: any;
41
+ nodeIDAccessor: any;
42
+ nodeSizeAccessor: any;
43
+ }) => React.JSX.Element;
44
+ export declare const svgHighlightRule: ({ d, i, networkFrameRender }: {
45
+ d: any;
46
+ i: any;
47
+ networkFrameRender: any;
48
+ }) => any;
@@ -0,0 +1,105 @@
1
+ import * as React from "react";
2
+ export declare const getColumnScreenCoordinates: ({ d, projectedColumns, oAccessor, summaryType, type, projection, adjustedPosition, adjustedSize }: {
3
+ d: any;
4
+ projectedColumns: any;
5
+ oAccessor: any;
6
+ summaryType: any;
7
+ type: any;
8
+ projection: any;
9
+ adjustedPosition: any;
10
+ adjustedSize: any;
11
+ }) => {
12
+ coordinates: any[];
13
+ pieces: any;
14
+ column: any;
15
+ };
16
+ export declare const svgHighlightRule: ({ d, pieceIDAccessor, orFrameRender, oAccessor }: {
17
+ d: any;
18
+ pieceIDAccessor: any;
19
+ orFrameRender: any;
20
+ oAccessor: any;
21
+ }) => any[];
22
+ export declare const findIDPiece: (pieceIDAccessor: any, oColumn: any, d: any) => any;
23
+ export declare const screenProject: ({ p, adjustedSize, rScale, oColumn, rAccessor, idPiece, projection, rScaleType }: {
24
+ p: any;
25
+ adjustedSize: any;
26
+ rScale: any;
27
+ oColumn: any;
28
+ rAccessor: any;
29
+ idPiece: any;
30
+ projection: any;
31
+ rScaleType: any;
32
+ }) => any[];
33
+ export declare const svgORRule: ({ d, i, screenCoordinates, projection }: {
34
+ d: any;
35
+ i: any;
36
+ screenCoordinates: any;
37
+ projection: any;
38
+ }) => React.JSX.Element;
39
+ export declare const basicReactAnnotationRule: ({ d, i, screenCoordinates }: {
40
+ d: any;
41
+ i: any;
42
+ screenCoordinates: any;
43
+ }) => React.JSX.Element;
44
+ export declare const svgEncloseRule: ({ d, i, screenCoordinates }: {
45
+ d: any;
46
+ i: any;
47
+ screenCoordinates: any;
48
+ }) => React.JSX.Element;
49
+ export declare const svgRRule: ({ d, i, screenCoordinates, rScale, rAccessor, adjustedSize, adjustedPosition, projection }: {
50
+ d: any;
51
+ i: any;
52
+ screenCoordinates: any;
53
+ rScale: any;
54
+ rAccessor: any;
55
+ adjustedSize: any;
56
+ adjustedPosition: any;
57
+ projection: any;
58
+ }) => React.JSX.Element;
59
+ export declare const svgCategoryRule: ({ projection, d, i, categories, adjustedSize }: {
60
+ projection: any;
61
+ d: any;
62
+ i: any;
63
+ categories: any;
64
+ adjustedSize: any;
65
+ }) => React.JSX.Element;
66
+ export declare const htmlFrameHoverRule: ({ d, i, rAccessor, oAccessor, projection, tooltipContent, optimizeCustomTooltipPosition, useSpans, pieceIDAccessor, projectedColumns, adjustedSize, rScale, type, rScaleType }: {
67
+ d: any;
68
+ i: any;
69
+ rAccessor: any;
70
+ oAccessor: any;
71
+ projection: any;
72
+ tooltipContent: any;
73
+ optimizeCustomTooltipPosition: any;
74
+ useSpans: any;
75
+ pieceIDAccessor: any;
76
+ projectedColumns: any;
77
+ adjustedSize: any;
78
+ rScale: any;
79
+ type: any;
80
+ rScaleType: any;
81
+ }) => React.JSX.Element;
82
+ export declare const htmlColumnHoverRule: ({ d, i, summaryType, oAccessor, type, adjustedPosition, adjustedSize, projection, tooltipContent, optimizeCustomTooltipPosition, useSpans, projectedColumns }: {
83
+ d: any;
84
+ i: any;
85
+ summaryType: any;
86
+ oAccessor: any;
87
+ type: any;
88
+ adjustedPosition: any;
89
+ adjustedSize: any;
90
+ projection: any;
91
+ tooltipContent: any;
92
+ optimizeCustomTooltipPosition: any;
93
+ useSpans: any;
94
+ projectedColumns: any;
95
+ }) => React.JSX.Element;
96
+ export declare const svgRectEncloseRule: ({ d, i, screenCoordinates }: {
97
+ d: any;
98
+ i: any;
99
+ screenCoordinates: any;
100
+ }) => React.JSX.Element;
101
+ export declare const svgOrdinalLine: ({ screenCoordinates, d, voronoiHover }: {
102
+ screenCoordinates: any;
103
+ d: any;
104
+ voronoiHover: any;
105
+ }) => React.JSX.Element;