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,74 @@
1
+ /// <reference types="react" />
2
+ import { GenericObject } from "../types/generalTypes";
3
+ declare type BoxplotFnType = {
4
+ data: GenericObject[];
5
+ type: GenericObject;
6
+ renderMode: Function;
7
+ eventListenersGenerator: Function;
8
+ styleFn: Function;
9
+ classFn: Function;
10
+ projection: "horizontal" | "vertical" | "radial";
11
+ adjustedSize: number[];
12
+ baseMarkProps: GenericObject;
13
+ };
14
+ export declare function ckBinsRenderFn(props: BoxplotFnType): {
15
+ marks: any;
16
+ xyPoints: any[];
17
+ };
18
+ export declare function boxplotRenderFn({ data, type, renderMode, eventListenersGenerator, styleFn, classFn, projection, adjustedSize, baseMarkProps }: BoxplotFnType): {
19
+ marks: any[];
20
+ xyPoints: any[];
21
+ };
22
+ export declare function contourRenderFn({ data, type, renderMode, eventListenersGenerator, styleFn, classFn, adjustedSize, baseMarkProps }: {
23
+ data: any;
24
+ type: any;
25
+ renderMode: any;
26
+ eventListenersGenerator: any;
27
+ styleFn: any;
28
+ classFn: any;
29
+ adjustedSize: any;
30
+ baseMarkProps: any;
31
+ }): {
32
+ marks: any[];
33
+ xyPoints: any[];
34
+ };
35
+ export declare function bucketizedRenderingFn({ data, type, renderMode, eventListenersGenerator, styleFn, classFn, projection, adjustedSize, chartSize, baseMarkProps }: {
36
+ data: any;
37
+ type: any;
38
+ renderMode: any;
39
+ eventListenersGenerator: any;
40
+ styleFn: any;
41
+ classFn: any;
42
+ projection: any;
43
+ adjustedSize: any;
44
+ chartSize: any;
45
+ baseMarkProps: any;
46
+ }): {
47
+ marks: any[];
48
+ xyPoints: any[];
49
+ thresholds: any[];
50
+ };
51
+ export declare const drawSummaries: ({ data, type, renderMode, eventListenersGenerator, styleFn, classFn, projection, adjustedSize, margin, baseMarkProps }: {
52
+ data: any;
53
+ type: any;
54
+ renderMode: any;
55
+ eventListenersGenerator: any;
56
+ styleFn: any;
57
+ classFn: any;
58
+ projection: any;
59
+ adjustedSize: any;
60
+ margin: any;
61
+ baseMarkProps: any;
62
+ }) => any;
63
+ interface summaryInstruction {
64
+ Mark?: JSX.Element;
65
+ containerProps?: object;
66
+ elements: object[];
67
+ }
68
+ export declare function summaryInstructionsToMarks(data: summaryInstruction[]): JSX.Element[];
69
+ export declare const renderLaidOutSummaries: ({ data, canvasRender, canvasDrawing }: {
70
+ data: any;
71
+ canvasRender: any;
72
+ canvasDrawing: any;
73
+ }) => JSX.Element[];
74
+ export {};
@@ -0,0 +1,140 @@
1
+ import { RawPoint, GenericObject, MarginType, AxisSummaryTypeSettings, OrdinalSummaryTypes } from "./generalTypes";
2
+ import { NodeType } from "./networkTypes";
3
+ import { ScaleLinear } from "d3-scale";
4
+ export declare type AnnotationType = {
5
+ type?: string | Function;
6
+ column?: {
7
+ name: string;
8
+ };
9
+ facetColumn?: string;
10
+ bounds?: RawPoint[];
11
+ x?: number;
12
+ y?: number;
13
+ yTop?: number;
14
+ yBottom?: number;
15
+ yMiddle?: number;
16
+ coordinates?: object[];
17
+ key?: string;
18
+ percent?: number;
19
+ style?: GenericObject | ((arg?: GenericObject, index?: number) => GenericObject);
20
+ ids?: string[];
21
+ edge?: any;
22
+ source?: NodeType;
23
+ target?: NodeType;
24
+ id?: string;
25
+ element?: Element;
26
+ label?: string | Element;
27
+ neighbors?: object[];
28
+ isColumnAnnotation?: boolean;
29
+ };
30
+ export declare type CustomHoverType = boolean | Array<AnnotationType | Function> | object | Function | "all" | "edge" | "node" | "area";
31
+ export declare type AnnotationTypes = "marginalia" | "bump" | false;
32
+ interface AnnotationLayout {
33
+ type: AnnotationTypes;
34
+ orient?: "nearest" | "left" | "right" | "top" | "bottom" | Array<string>;
35
+ characterWidth?: number;
36
+ noteHeight?: Function | number;
37
+ noteWidth?: Function | number;
38
+ lineWidth?: number;
39
+ lineHeight?: number;
40
+ padding?: number;
41
+ iterations?: number;
42
+ pointSizeFunction?: Function;
43
+ labelSizeFunction?: Function;
44
+ marginOffset?: number;
45
+ axisMarginOverride?: {
46
+ top?: number;
47
+ right?: number;
48
+ bottom?: number;
49
+ left?: number;
50
+ };
51
+ }
52
+ export interface AnnotationHandling {
53
+ dataVersion?: string;
54
+ layout: AnnotationLayout;
55
+ }
56
+ export interface AnnotationProps {
57
+ noteData: {
58
+ eventListeners?: object;
59
+ events?: object;
60
+ onDragEnd?: Function;
61
+ onDragStart?: Function;
62
+ onDrag?: Function;
63
+ type: string | Function;
64
+ editMode?: boolean;
65
+ screenCoordinates?: Array<Array<number>>;
66
+ coordinates?: boolean;
67
+ noteHeight?: Function | number;
68
+ noteWidth?: Function | number;
69
+ x: number | number[];
70
+ y: number | number[];
71
+ nx?: number;
72
+ ny?: number;
73
+ dx?: number;
74
+ dy?: number;
75
+ note: {
76
+ label?: string;
77
+ title?: string;
78
+ };
79
+ i?: number;
80
+ fixedPosition?: boolean;
81
+ label?: string;
82
+ };
83
+ }
84
+ declare type GlyphProps = {
85
+ lineHeight: number;
86
+ lineWidth: number;
87
+ value: number;
88
+ };
89
+ declare type AxisPart = {
90
+ value: number;
91
+ };
92
+ export interface AxisProps {
93
+ orient: "left" | "right" | "top" | "bottom";
94
+ label?: {
95
+ position?: {
96
+ anchor?: string;
97
+ location?: string;
98
+ rotation?: string;
99
+ };
100
+ name: string;
101
+ locationDistance: number;
102
+ };
103
+ dynamicLabelPosition?: boolean;
104
+ position?: number[];
105
+ rotate?: number;
106
+ tickFormat?: Function;
107
+ size?: number[];
108
+ width?: number;
109
+ height?: number;
110
+ className?: string;
111
+ padding?: number;
112
+ tickValues?: number[] | Function;
113
+ scale?: ScaleLinear<number, number>;
114
+ ticks?: number;
115
+ footer?: boolean;
116
+ tickSize?: number;
117
+ tickLineGenerator?: ({ xy, orient, i, baseMarkProps, className }: {
118
+ xy?: object;
119
+ orient?: string;
120
+ i?: number;
121
+ baseMarkProps?: object;
122
+ className?: string;
123
+ }) => SVGElement;
124
+ baseline?: boolean | "under";
125
+ jaggedBase?: boolean;
126
+ margin?: MarginType;
127
+ center?: boolean;
128
+ axisParts?: AxisPart[];
129
+ annotationFunction?: (args: any) => void;
130
+ glyphFunction?: (args: GlyphProps) => SVGElement;
131
+ axis?: object;
132
+ extentOverride?: number[];
133
+ key?: string | number;
134
+ axisAnnotationFunction?: (args: object) => void;
135
+ xyPoints?: object[];
136
+ marginalSummaryType?: AxisSummaryTypeSettings | OrdinalSummaryTypes;
137
+ showOutboundTickLines?: boolean;
138
+ }
139
+ export declare type AxisGeneratingFunction = (args: object) => AxisProps;
140
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare type ContextType = {
2
+ getContext: Function;
3
+ width: number;
4
+ height: number;
5
+ style: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ } | null;
@@ -0,0 +1,236 @@
1
+ /// <reference types="react" />
2
+ import { CustomHoverType, AnnotationHandling } from "./annotationTypes";
3
+ import { TitleType } from "../svg/frameFunctions";
4
+ import { Interactivity, AdvancedInteractionSettings } from "./interactionTypes";
5
+ import { LegendProps } from "./legendTypes";
6
+ import { AxisProps } from "./annotationTypes";
7
+ export declare type GenericObject = {
8
+ [key: string]: any;
9
+ };
10
+ export interface MarginType {
11
+ top: number;
12
+ bottom: number;
13
+ left: number;
14
+ right: number;
15
+ }
16
+ export declare type ProjectionTypes = "vertical" | "horizontal" | "radial";
17
+ export declare type ExtentType = number[] | {
18
+ extent?: number[];
19
+ onChange?: Function;
20
+ includeAnnotations?: boolean;
21
+ };
22
+ export interface ProjectedPoint {
23
+ x?: number;
24
+ y?: number;
25
+ xTop?: number;
26
+ xMiddle?: number;
27
+ xBottom?: number;
28
+ yTop?: number;
29
+ yMiddle?: number;
30
+ yBottom?: number;
31
+ parentSummary?: ProjectedSummary;
32
+ parentLine?: ProjectedLine;
33
+ percent?: number;
34
+ data?: object;
35
+ _XYFrameRank?: number;
36
+ style?: Function | object;
37
+ class?: Function | string;
38
+ coordinates?: object[];
39
+ }
40
+ export declare type PieceLayoutType = (args: {
41
+ type: string | {
42
+ type: string;
43
+ };
44
+ data: any;
45
+ renderMode: (d?: GenericObject, i?: number) => string | GenericObject;
46
+ eventListenersGenerator: any;
47
+ styleFn: (d: object) => object;
48
+ projection: string;
49
+ classFn: (d: object) => string;
50
+ adjustedSize: number[];
51
+ chartSize: number[];
52
+ margin: MarginType;
53
+ rScale?: Function;
54
+ baseMarkProps: object;
55
+ }) => GenericObject[];
56
+ export interface ProjectedLine {
57
+ data: ProjectedPoint[];
58
+ key: string | number;
59
+ __lineIndex?: number;
60
+ coordinates: object[];
61
+ }
62
+ export interface ProjectedSummary {
63
+ _baseData: object[];
64
+ _xyfCoordinates: [number | Date, number | Date][];
65
+ coordinates: {
66
+ x: number;
67
+ y: number;
68
+ }[];
69
+ data: object[];
70
+ y: number;
71
+ x: number;
72
+ parentSummary?: GenericObject;
73
+ bounds: object[] | number[];
74
+ customMark?: Function;
75
+ type?: string;
76
+ curve?: Function;
77
+ processedData?: boolean;
78
+ binMax?: number;
79
+ }
80
+ export declare type RoughType = {
81
+ canvas: Function;
82
+ generator: Function;
83
+ };
84
+ export declare type CanvasPostProcessTypes = Function;
85
+ export declare type ExtentSettingsType = {
86
+ extent?: Array<number>;
87
+ onChange?: Function;
88
+ };
89
+ export declare type accessorType<ReturnValue> = string | ((args?: unknown, index?: number) => ReturnValue);
90
+ export interface AccessorFnType {
91
+ <T>(arg: GenericObject): T;
92
+ }
93
+ export declare type BasicLineTypes = "line" | "area" | "summary" | "cumulative" | "cumulative-reverse" | "linepercent" | "stackedarea" | "stackedarea-invert" | "stackedpercent" | "bumparea" | "bumparea-invert" | "bumpline" | "stackedpercent-invert" | "difference";
94
+ export interface LineTypeSettings {
95
+ type: BasicLineTypes | Function;
96
+ simpleLine?: boolean;
97
+ y1?: (d?: ProjectedPoint, index?: number) => number;
98
+ interpolator: string | Function;
99
+ }
100
+ export declare type BasicSummaryTypes = "basic" | "contour" | "hexbin" | "heatmap" | "trendline" | "linebounds";
101
+ export interface SummaryTypeSettings {
102
+ showSlope?: boolean;
103
+ type: BasicSummaryTypes | Function;
104
+ label?: string | Function;
105
+ cellPx?: number;
106
+ xCellPx?: number;
107
+ yCellPx?: number;
108
+ bins?: number;
109
+ xBins?: number;
110
+ yBins?: number;
111
+ binValue?: Function;
112
+ binMax?: number;
113
+ customMark?: Function;
114
+ }
115
+ export interface RawLine {
116
+ coordinates?: object[];
117
+ }
118
+ export interface RawSummary {
119
+ processedData?: object[];
120
+ coordinates?: object[];
121
+ preprocess?: boolean;
122
+ }
123
+ export interface RawPoint {
124
+ }
125
+ export interface CustomAreaMarkProps {
126
+ d: object;
127
+ baseMarkProps: object;
128
+ margin: object;
129
+ styleFn: Function;
130
+ classFn: Function;
131
+ renderFn: Function;
132
+ chartSize: Function;
133
+ adjustedSize: number[];
134
+ }
135
+ export interface ProjectedBin {
136
+ x: number;
137
+ y: number;
138
+ binItems: object[];
139
+ customMark?: (props: CustomAreaMarkProps) => JSX.Element;
140
+ _xyfCoordinates: Array<number[]>;
141
+ value: number;
142
+ percent: number;
143
+ data: object;
144
+ parentSummary: object;
145
+ centroid: boolean;
146
+ }
147
+ export declare type GenericAccessor<GenericValue> = (args?: GenericObject, index?: number) => GenericValue;
148
+ export declare type VizLayerTypes = "pieces" | "summaries" | "connectors" | "edges" | "nodes" | "lines" | "points";
149
+ export declare type RenderPipelineType = {
150
+ [key in VizLayerTypes]?: {
151
+ data?: any;
152
+ ariaLabel?: {
153
+ chart?: string;
154
+ items?: string;
155
+ };
156
+ behavior?: Function;
157
+ styleFn?: Function;
158
+ };
159
+ };
160
+ export declare type OrdinalSummaryTypes = "none" | "histogram" | "heatmap" | "violin" | "joy" | "ridgeline" | "boxplot" | "contour";
161
+ export declare type OrdinalSummaryTypeSettings = {
162
+ type: OrdinalSummaryTypes;
163
+ amplitude?: number;
164
+ eventListenersGenerator?: Function;
165
+ flip?: boolean;
166
+ bins?: number;
167
+ axis?: AxisProps;
168
+ };
169
+ export interface AxisSummaryTypeSettings extends OrdinalSummaryTypeSettings {
170
+ summaryStyle?: object;
171
+ pointStyle?: object;
172
+ renderMode?: object | string;
173
+ summaryClass?: string;
174
+ r?: number;
175
+ showPoints?: boolean;
176
+ filter?: Function;
177
+ }
178
+ export interface GeneralFrameProps {
179
+ useSpans?: boolean;
180
+ title?: string | object;
181
+ margin?: number | {
182
+ top?: number;
183
+ bottom?: number;
184
+ left?: number;
185
+ right?: number;
186
+ } | ((args: object) => number | {
187
+ top?: number;
188
+ left?: number;
189
+ right?: number;
190
+ bottom?: number;
191
+ });
192
+ name?: string;
193
+ dataVersion?: string;
194
+ frameKey?: string;
195
+ size?: number[];
196
+ canvasPostProcess?: CanvasPostProcessTypes;
197
+ additionalDefs?: React.ReactNode;
198
+ className?: string;
199
+ customHoverBehavior?: Function;
200
+ customClickBehavior?: Function;
201
+ customDoubleClickBehavior?: Function;
202
+ hoverAnnotation?: CustomHoverType;
203
+ disableContext?: boolean;
204
+ interaction?: Interactivity;
205
+ svgAnnotationRules?: Function;
206
+ htmlAnnotationRules?: Function;
207
+ tooltipContent?: Function;
208
+ optimizeCustomTooltipPosition?: boolean;
209
+ annotations?: object[];
210
+ baseMarkProps?: object;
211
+ backgroundGraphics?: React.ReactNode | Function;
212
+ foregroundGraphics?: React.ReactNode | Function;
213
+ beforeElements?: React.ReactNode;
214
+ afterElements?: React.ReactNode;
215
+ annotationSettings?: AnnotationHandling;
216
+ renderKey?: string | GenericAccessor<string>;
217
+ legend?: object | boolean;
218
+ matte?: object;
219
+ onUnmount?: Function;
220
+ sketchyRenderingEngine?: RoughType;
221
+ frameRenderOrder?: Array<string>;
222
+ disableCanvasInteraction?: boolean;
223
+ interactionSettings?: AdvancedInteractionSettings;
224
+ disableProgressiveRendering?: boolean;
225
+ }
226
+ export interface GeneralFrameState {
227
+ dataVersion?: string;
228
+ adjustedPosition: number[];
229
+ adjustedSize: number[];
230
+ backgroundGraphics?: React.ReactNode | Function;
231
+ foregroundGraphics?: React.ReactNode | Function;
232
+ title: TitleType;
233
+ margin: MarginType;
234
+ legendSettings?: LegendProps;
235
+ renderNumber: number;
236
+ }
@@ -0,0 +1,74 @@
1
+ /// <reference types="react" />
2
+ import { ScaleLinear } from "d3-scale";
3
+ import { CustomHoverType } from "./annotationTypes";
4
+ import { MarginType } from "./generalTypes";
5
+ export interface AdvancedInteractionSettings {
6
+ voronoiClipping?: boolean | number;
7
+ voronoiFilter?: Function;
8
+ }
9
+ export interface Interactivity {
10
+ start?: Function;
11
+ during?: Function;
12
+ end?: Function;
13
+ brush?: string;
14
+ extent?: Array<number[]> | number[];
15
+ columnsBrush?: boolean;
16
+ projection?: string;
17
+ projectedColumns?: object;
18
+ startEmpty?: boolean;
19
+ }
20
+ export declare type InteractionLayerProps = {
21
+ name?: string;
22
+ interaction?: Interactivity;
23
+ overlay?: Array<object>;
24
+ oColumns?: object;
25
+ xScale: ScaleLinear<number, number>;
26
+ yScale: ScaleLinear<number, number>;
27
+ rScale?: ScaleLinear<number, number>;
28
+ svgSize: Array<number>;
29
+ hoverAnnotation?: CustomHoverType;
30
+ interactionOverflow?: {
31
+ top?: number;
32
+ bottom?: number;
33
+ left?: number;
34
+ right?: number;
35
+ };
36
+ size: Array<number>;
37
+ projectedYMiddle?: string;
38
+ projectedX: string;
39
+ projectedY: string;
40
+ points?: Array<{
41
+ data: any;
42
+ }>;
43
+ position?: number[];
44
+ enabled?: boolean;
45
+ useSpans?: boolean;
46
+ margin: MarginType;
47
+ projection?: string;
48
+ customDoubleClickBehavior?: Function;
49
+ customClickBehavior?: Function;
50
+ customHoverBehavior?: Function;
51
+ canvasRendering?: boolean;
52
+ disableCanvasInteraction: boolean;
53
+ showLinePoints?: string;
54
+ renderPipeline: object;
55
+ advancedSettings?: AdvancedInteractionSettings;
56
+ };
57
+ export declare type VoronoiEntryType = {
58
+ voronoiX: number;
59
+ voronoiY: number;
60
+ coincidentPoints: object[];
61
+ type?: string;
62
+ data?: object[];
63
+ };
64
+ export declare type BaseColumnType = {
65
+ x: number;
66
+ width: number;
67
+ };
68
+ export declare type InteractionLayerState = {
69
+ overlayRegions: Array<React.ReactElement>;
70
+ props: InteractionLayerProps;
71
+ canvasMap: Map<string, number>;
72
+ interactionCanvas: React.ReactNode;
73
+ SpanOrDiv: Function;
74
+ };
@@ -0,0 +1,20 @@
1
+ export declare type SupportedLegendGlyphs = "fill" | "line";
2
+ export declare type ItemType = SupportedLegendGlyphs | Function;
3
+ export interface LegendItem {
4
+ label: string;
5
+ }
6
+ export interface LegendGroup {
7
+ type?: ItemType;
8
+ styleFn: Function;
9
+ items: LegendItem[];
10
+ label: string;
11
+ }
12
+ export interface LegendProps {
13
+ legendGroups?: LegendGroup[];
14
+ customClickBehavior?: Function;
15
+ title?: string;
16
+ width?: number;
17
+ height?: number;
18
+ orientation?: string;
19
+ position?: "left" | "right";
20
+ }