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.
- package/dist/Annotation.d.ts +3 -0
- package/dist/AnnotationLayer/AnnotationLayer.d.ts +26 -0
- package/dist/AnnotationLayer/helpers.d.ts +6 -0
- package/dist/AnnotationLayer/index.d.ts +2 -0
- package/dist/Axis/Axis.d.ts +7 -0
- package/dist/Axis/axisTitle.d.ts +10 -0
- package/dist/Axis/index.d.ts +2 -0
- package/dist/Axis/summaryGraphic.d.ts +17 -0
- package/dist/Brush.d.ts +12 -0
- package/dist/DividedLine.d.ts +16 -0
- package/dist/FacetController.d.ts +12 -0
- package/dist/Frame.d.ts +2 -0
- package/dist/InteractionLayer.d.ts +3 -0
- package/dist/Legend.d.ts +3 -0
- package/dist/Mark/Mark.d.ts +3 -0
- package/dist/Mark/Mark.types.d.ts +10 -0
- package/dist/Mark/constants/markTransition.d.ts +10 -0
- package/dist/Mark/markBehavior/drawing.d.ts +13 -0
- package/dist/MiniMap.d.ts +14 -0
- package/dist/MinimapXYFrame.d.ts +10 -0
- package/dist/NetworkFrame.d.ts +4 -0
- package/dist/OrdinalFrame.d.ts +4 -0
- package/dist/ResponsiveFrame.d.ts +22 -0
- package/dist/ResponsiveMinimapXYFrame.d.ts +6 -0
- package/dist/ResponsiveNetworkFrame.d.ts +6 -0
- package/dist/ResponsiveOrdinalFrame.d.ts +6 -0
- package/dist/ResponsiveXYFrame.d.ts +6 -0
- package/dist/SpanOrDiv.d.ts +10 -0
- package/dist/SparkFrame.d.ts +14 -0
- package/dist/SparkNetworkFrame.d.ts +5 -0
- package/dist/SparkOrdinalFrame.d.ts +5 -0
- package/dist/SparkXYFrame.d.ts +5 -0
- package/dist/TooltipPositioner/index.d.ts +7 -0
- package/dist/VisualizationLayer.d.ts +33 -0
- package/dist/XYFrame.d.ts +4 -0
- package/dist/annotationLayerBehavior/annotationHandling.d.ts +19 -0
- package/dist/annotationLayerBehavior/d3labeler.d.ts +9 -0
- package/dist/annotationRules/baseRules.d.ts +25 -0
- package/dist/annotationRules/networkframeRules.d.ts +48 -0
- package/dist/annotationRules/orframeRules.d.ts +105 -0
- package/dist/annotationRules/xyframeRules.d.ts +117 -0
- package/dist/batchWork.d.ts +6 -0
- package/dist/components/Annotation.d.ts +3 -0
- package/dist/components/AnnotationLayer/AnnotationLayer.d.ts +26 -0
- package/dist/components/Axis/Axis.d.ts +7 -0
- package/dist/components/Axis/axisTitle.d.ts +10 -0
- package/dist/components/Axis/index.d.ts +2 -0
- package/dist/components/Axis/summaryGraphic.d.ts +17 -0
- package/dist/components/Brush.d.ts +12 -0
- package/dist/components/DividedLine.d.ts +16 -0
- package/dist/components/FacetController.d.ts +12 -0
- package/dist/components/Frame.d.ts +2 -0
- package/dist/components/InteractionLayer.d.ts +3 -0
- package/dist/components/Legend.d.ts +3 -0
- package/dist/components/Mark/Mark.d.ts +3 -0
- package/dist/components/Mark/Mark.types.d.ts +10 -0
- package/dist/components/Mark/markBehavior/drawing.d.ts +13 -0
- package/dist/components/MiniMap.d.ts +14 -0
- package/dist/components/MinimapXYFrame.d.ts +10 -0
- package/dist/components/NetworkFrame.d.ts +4 -0
- package/dist/components/OrdinalFrame.d.ts +4 -0
- package/dist/components/ResponsiveFrame.d.ts +22 -0
- package/dist/components/ResponsiveMinimapXYFrame.d.ts +6 -0
- package/dist/components/ResponsiveNetworkFrame.d.ts +6 -0
- package/dist/components/ResponsiveOrdinalFrame.d.ts +6 -0
- package/dist/components/ResponsiveXYFrame.d.ts +6 -0
- package/dist/components/SpanOrDiv.d.ts +10 -0
- package/dist/components/SparkFrame.d.ts +14 -0
- package/dist/components/SparkNetworkFrame.d.ts +5 -0
- package/dist/components/SparkOrdinalFrame.d.ts +5 -0
- package/dist/components/SparkXYFrame.d.ts +5 -0
- package/dist/components/TooltipPositioner/index.d.ts +7 -0
- package/dist/components/VisualizationLayer.d.ts +33 -0
- package/dist/components/XYFrame.d.ts +4 -0
- package/dist/components/annotationLayerBehavior/annotationHandling.d.ts +19 -0
- package/dist/components/annotationLayerBehavior/d3labeler.d.ts +9 -0
- package/dist/components/annotationRules/baseRules.d.ts +25 -0
- package/dist/components/annotationRules/networkframeRules.d.ts +48 -0
- package/dist/components/annotationRules/orframeRules.d.ts +105 -0
- package/dist/components/annotationRules/xyframeRules.d.ts +117 -0
- package/dist/components/batchWork.d.ts +6 -0
- package/dist/components/constants/coordinateNames.d.ts +8 -0
- package/dist/components/constants/frame_props.d.ts +4 -0
- package/dist/components/constants/jsx.d.ts +19 -0
- package/dist/components/data/dataFunctions.d.ts +46 -0
- package/dist/components/data/multiAccessorUtils.d.ts +1 -0
- package/dist/components/data/unflowedFunctions.d.ts +1 -0
- package/dist/components/generic_utilities/functions.d.ts +1 -0
- package/dist/components/index.d.ts +125 -0
- package/dist/components/interactionLayerBehavior/InteractionCanvas.d.ts +20 -0
- package/dist/components/processing/InteractionItems.d.ts +12 -0
- package/dist/components/processing/network.d.ts +114 -0
- package/dist/components/processing/ordinal.d.ts +102 -0
- package/dist/components/processing/xyDrawing.d.ts +135 -0
- package/dist/components/semiotic.d.ts +35 -0
- package/dist/components/store/TooltipStore.d.ts +2 -0
- package/dist/components/store/createStore.d.ts +1 -0
- package/dist/components/svg/SvgHelper.d.ts +37 -0
- package/dist/components/svg/areaDrawing.d.ts +31 -0
- package/dist/components/svg/ckmeans.d.ts +69 -0
- package/dist/components/svg/frameFunctions.d.ts +119 -0
- package/dist/components/svg/lineDrawing.d.ts +99 -0
- package/dist/components/svg/networkDrawing.d.ts +134 -0
- package/dist/components/svg/pieceDrawing.d.ts +13 -0
- package/dist/components/svg/pieceLayouts.d.ts +71 -0
- package/dist/components/svg/summaryLayouts.d.ts +74 -0
- package/dist/components/types/annotationTypes.d.ts +140 -0
- package/dist/components/types/canvasTypes.d.ts +9 -0
- package/dist/components/types/generalTypes.d.ts +236 -0
- package/dist/components/types/interactionTypes.d.ts +74 -0
- package/dist/components/types/legendTypes.d.ts +20 -0
- package/dist/components/types/networkTypes.d.ts +165 -0
- package/dist/components/types/ordinalTypes.d.ts +103 -0
- package/dist/components/types/xyTypes.d.ts +118 -0
- package/dist/components/useBoundingRect.d.ts +2 -0
- package/dist/components/useDerivedStateFromProps.d.ts +1 -0
- package/dist/components/useLegacyUnmountCallback.d.ts +1 -0
- package/dist/components/visualizationLayerBehavior/axis.d.ts +38 -0
- package/dist/components/visualizationLayerBehavior/general.d.ts +84 -0
- package/dist/constants/coordinateNames.d.ts +8 -0
- package/dist/constants/frame_props.d.ts +4 -0
- package/dist/constants/jsx.d.ts +19 -0
- package/dist/data/dataFunctions.d.ts +46 -0
- package/dist/data/multiAccessorUtils.d.ts +1 -0
- package/dist/data/unflowedFunctions.d.ts +1 -0
- package/dist/generic_utilities/functions.d.ts +1 -0
- package/dist/index.d.ts +125 -0
- package/dist/interactionLayerBehavior/InteractionCanvas.d.ts +20 -0
- package/dist/processing/InteractionItems.d.ts +12 -0
- package/dist/processing/network.d.ts +114 -0
- package/dist/processing/ordinal.d.ts +102 -0
- package/dist/processing/xyDrawing.d.ts +135 -0
- package/dist/semiotic.d.ts +35 -0
- package/dist/semiotic.js +10 -7
- package/dist/semiotic.module.js +10 -7
- package/dist/setupTests.d.ts +1 -0
- package/dist/store/TooltipStore.d.ts +2 -0
- package/dist/store/createStore.d.ts +1 -0
- package/dist/svg/SvgHelper.d.ts +37 -0
- package/dist/svg/areaDrawing.d.ts +31 -0
- package/dist/svg/ckmeans.d.ts +69 -0
- package/dist/svg/frameFunctions.d.ts +119 -0
- package/dist/svg/lineDrawing.d.ts +99 -0
- package/dist/svg/networkDrawing.d.ts +134 -0
- package/dist/svg/pieceDrawing.d.ts +13 -0
- package/dist/svg/pieceLayouts.d.ts +71 -0
- package/dist/svg/summaryLayouts.d.ts +74 -0
- package/dist/types/annotationTypes.d.ts +140 -0
- package/dist/types/canvasTypes.d.ts +9 -0
- package/dist/types/generalTypes.d.ts +236 -0
- package/dist/types/interactionTypes.d.ts +74 -0
- package/dist/types/legendTypes.d.ts +20 -0
- package/dist/types/networkTypes.d.ts +165 -0
- package/dist/types/ordinalTypes.d.ts +103 -0
- package/dist/types/xyTypes.d.ts +118 -0
- package/dist/useBoundingRect.d.ts +2 -0
- package/dist/useDerivedStateFromProps.d.ts +1 -0
- package/dist/useLegacyUnmountCallback.d.ts +1 -0
- package/dist/visualizationLayerBehavior/axis.d.ts +38 -0
- package/dist/visualizationLayerBehavior/general.d.ts +84 -0
- package/package.json +6 -5
package/dist/semiotic.module.js
CHANGED
|
@@ -13098,13 +13098,16 @@ const createResponsiveFrame = (ParticularFrame) => {
|
|
|
13098
13098
|
return ResponsiveFrame;
|
|
13099
13099
|
};
|
|
13100
13100
|
|
|
13101
|
-
const ResponsiveNetworkFrame =
|
|
13101
|
+
const ResponsiveNetworkFrame =
|
|
13102
|
+
/*#__PURE__*/ createResponsiveFrame(NetworkFrame);
|
|
13102
13103
|
|
|
13103
|
-
const ResponsiveMinimapXYFrame =
|
|
13104
|
+
const ResponsiveMinimapXYFrame =
|
|
13105
|
+
/*#__PURE__*/ createResponsiveFrame(MinimapXYFrame);
|
|
13104
13106
|
|
|
13105
|
-
const ResponsiveXYFrame = createResponsiveFrame(XYFrame);
|
|
13107
|
+
const ResponsiveXYFrame = /*#__PURE__*/ createResponsiveFrame(XYFrame);
|
|
13106
13108
|
|
|
13107
|
-
const ResponsiveOrdinalFrame =
|
|
13109
|
+
const ResponsiveOrdinalFrame =
|
|
13110
|
+
/*#__PURE__*/ createResponsiveFrame(OrdinalFrame);
|
|
13108
13111
|
|
|
13109
13112
|
const allFrameDefaults = {
|
|
13110
13113
|
margin: 0
|
|
@@ -13155,10 +13158,10 @@ function createSparkFrame(Frame, defaults, frameName) {
|
|
|
13155
13158
|
};
|
|
13156
13159
|
}
|
|
13157
13160
|
|
|
13158
|
-
const SparkXYFrame = createSparkFrame(XYFrame, xyFrameDefaults);
|
|
13161
|
+
const SparkXYFrame = /*#__PURE__*/ createSparkFrame(XYFrame, xyFrameDefaults);
|
|
13159
13162
|
|
|
13160
|
-
const SparkOrdinalFrame = createSparkFrame(OrdinalFrame, ordinalFrameDefaults);
|
|
13163
|
+
const SparkOrdinalFrame = /*#__PURE__*/ createSparkFrame(OrdinalFrame, ordinalFrameDefaults);
|
|
13161
13164
|
|
|
13162
|
-
const SparkNetworkFrame = createSparkFrame(NetworkFrame, networkFrameDefaults);
|
|
13165
|
+
const SparkNetworkFrame = /*#__PURE__*/ createSparkFrame(NetworkFrame, networkFrameDefaults);
|
|
13163
13166
|
|
|
13164
13167
|
export { SemioticAnnotation as Annotation, AnnotationLayer, Axis, Brush, DividedLine, FacetController, InteractionLayer, Legend, SemioticMark as Mark, MiniMap, MinimapXYFrame, NetworkFrame, OrdinalFrame, ResponsiveMinimapXYFrame, ResponsiveNetworkFrame, ResponsiveOrdinalFrame, ResponsiveXYFrame, SparkNetworkFrame, SparkOrdinalFrame, SparkXYFrame, VisualizationLayer, XYFrame, calculateDataExtent, funnelize, heatmapping, hexbinning, nodesEdgesFromHierarchy };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createStore(fn: any): ((selector: any) => any)[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const arcTweener: (oldProps: any, newProps: any) => (t: any) => any;
|
|
2
|
+
export declare const drawAreaConnector: ({ x1, x2, y1, y2, sizeX1, sizeY1, sizeX2, sizeY2 }: {
|
|
3
|
+
x1: any;
|
|
4
|
+
x2: any;
|
|
5
|
+
y1: any;
|
|
6
|
+
y2: any;
|
|
7
|
+
sizeX1: any;
|
|
8
|
+
sizeY1: any;
|
|
9
|
+
sizeX2: any;
|
|
10
|
+
sizeY2: any;
|
|
11
|
+
}) => string;
|
|
12
|
+
export declare const wrap: (text: any, width: any) => void;
|
|
13
|
+
export declare const hexToRgb: (hex: any) => any;
|
|
14
|
+
export declare const groupBarMark: ({ bins, binMax, relativeBuckets, columnWidth, projection, adjustedSize, summaryI, summary, renderValue, summaryStyle, type, baseMarkProps }: {
|
|
15
|
+
bins: any;
|
|
16
|
+
binMax: any;
|
|
17
|
+
relativeBuckets: any;
|
|
18
|
+
columnWidth: any;
|
|
19
|
+
projection: any;
|
|
20
|
+
adjustedSize: any;
|
|
21
|
+
summaryI: any;
|
|
22
|
+
summary: any;
|
|
23
|
+
renderValue: any;
|
|
24
|
+
summaryStyle: any;
|
|
25
|
+
type: any;
|
|
26
|
+
baseMarkProps: any;
|
|
27
|
+
}) => {
|
|
28
|
+
marks: any[];
|
|
29
|
+
points: any[];
|
|
30
|
+
};
|
|
31
|
+
export declare function linearRibbon(): {
|
|
32
|
+
(pathData: any): any;
|
|
33
|
+
x(_value: any): (d: any) => any;
|
|
34
|
+
y(_value: any): (d: any) => any;
|
|
35
|
+
r(_value: any): (d: any) => any;
|
|
36
|
+
interpolate(_value: any): any;
|
|
37
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SummaryLayoutType } from "../types/xyTypes";
|
|
2
|
+
import { ProjectedSummary } from "../types/generalTypes";
|
|
3
|
+
export declare function lineBounding({ summaryType, data, defined }: {
|
|
4
|
+
summaryType: any;
|
|
5
|
+
data: any;
|
|
6
|
+
defined: any;
|
|
7
|
+
}): any[];
|
|
8
|
+
export declare function contouring({ summaryType, data, finalXExtent, finalYExtent }: {
|
|
9
|
+
summaryType: any;
|
|
10
|
+
data: any;
|
|
11
|
+
finalXExtent: any;
|
|
12
|
+
finalYExtent: any;
|
|
13
|
+
}): any[];
|
|
14
|
+
export declare function hexbinning({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent: baseXExtent, finalYExtent: baseYExtent, size, xScaleType, yScaleType, margin, baseMarkProps, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): any[] | {
|
|
15
|
+
type: string;
|
|
16
|
+
processedData: boolean;
|
|
17
|
+
coordinates: any[];
|
|
18
|
+
binMax: any;
|
|
19
|
+
};
|
|
20
|
+
export declare function heatmapping({ preprocess, processedData, summaryType: baseSummaryType, data: baseData, finalXExtent, finalYExtent, size, xScaleType, yScaleType, margin, baseMarkProps, styleFn, classFn, renderFn, chartSize }: SummaryLayoutType): ProjectedSummary | {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
}[];
|
|
24
|
+
export declare function trendlining({ preprocess, summaryType: baseSummaryType, data: baseData, finalXExtent, xScaleType }: SummaryLayoutType): any;
|
|
25
|
+
export declare function shapeBounds(coordinates: any): {
|
|
26
|
+
center: number[];
|
|
27
|
+
top: number[];
|
|
28
|
+
left: number[];
|
|
29
|
+
right: number[];
|
|
30
|
+
bottom: number[];
|
|
31
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ckmeans algorithm from d3-scale-cluster
|
|
3
|
+
*
|
|
4
|
+
* Much of the code that lies within was taken from the simple-statistics library,
|
|
5
|
+
* which offers a javascript implementation of the ckmeans algorithm originally
|
|
6
|
+
* designed by Haizhou Wang and Mingzhou Song
|
|
7
|
+
*
|
|
8
|
+
* https://cran.r-project.org/web/packages/Ckmeans.1d.dp/
|
|
9
|
+
* https://github.com/simple-statistics/simple-statistics
|
|
10
|
+
*
|
|
11
|
+
* The simple-statistics software license is included below
|
|
12
|
+
*
|
|
13
|
+
* --
|
|
14
|
+
*
|
|
15
|
+
* ISC License
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2014, Tom MacWright
|
|
18
|
+
*
|
|
19
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
20
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
21
|
+
* copyright notice and this permission notice appear in all copies.
|
|
22
|
+
*
|
|
23
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
24
|
+
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
25
|
+
* FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
26
|
+
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
27
|
+
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28
|
+
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
|
+
* PERFORMANCE OF THIS SOFTWARE.
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Ckmeans clustering is an improvement on heuristic-based clustering
|
|
33
|
+
* approaches like Jenks. The algorithm was developed in
|
|
34
|
+
* [Haizhou Wang and Mingzhou Song](http://journal.r-project.org/archive/2011-2/RJournal_2011-2_Wang+Song.pdf)
|
|
35
|
+
* as a [dynamic programming](https://en.wikipedia.org/wiki/Dynamic_programming) approach
|
|
36
|
+
* to the problem of clustering numeric data into groups with the least
|
|
37
|
+
* within-group sum-of-squared-deviations.
|
|
38
|
+
*
|
|
39
|
+
* Minimizing the difference within groups - what Wang & Song refer to as
|
|
40
|
+
* `withinss`, or within sum-of-squares, means that groups are optimally
|
|
41
|
+
* homogenous within and the data is split into representative groups.
|
|
42
|
+
* This is very useful for visualization, where you may want to represent
|
|
43
|
+
* a continuous variable in discrete color or style groups. This function
|
|
44
|
+
* can provide groups that emphasize differences between data.
|
|
45
|
+
*
|
|
46
|
+
* Being a dynamic approach, this algorithm is based on two matrices that
|
|
47
|
+
* store incrementally-computed values for squared deviations and backtracking
|
|
48
|
+
* indexes.
|
|
49
|
+
*
|
|
50
|
+
* Unlike the [original implementation](https://cran.r-project.org/web/packages/Ckmeans.1d.dp/index.html),
|
|
51
|
+
* this implementation does not include any code to automatically determine
|
|
52
|
+
* the optimal number of clusters: this information needs to be explicitly
|
|
53
|
+
* provided.
|
|
54
|
+
*
|
|
55
|
+
* ### References
|
|
56
|
+
* _Ckmeans.1d.dp: Optimal k-means Clustering in One Dimension by Dynamic
|
|
57
|
+
* Programming_ Haizhou Wang and Mingzhou Song ISSN 2073-4859
|
|
58
|
+
*
|
|
59
|
+
* from The R Journal Vol. 3/2, December 2011
|
|
60
|
+
* @param {Array<number>} data input data, as an array of number values
|
|
61
|
+
* @param {number} nClusters number of desired classes. This cannot be
|
|
62
|
+
* greater than the number of values in the data array.
|
|
63
|
+
* @returns {Array<Array<number>>} clustered input
|
|
64
|
+
* @example
|
|
65
|
+
* ckmeans([-1, 2, -1, 2, 4, 5, 6, -1, 2, -1], 3);
|
|
66
|
+
* // The input, clustered into groups of similar numbers.
|
|
67
|
+
* //= [[-1, -1, -1, -1], [2, 2, 2], [4, 5, 6]]);
|
|
68
|
+
*/
|
|
69
|
+
export declare function ckmeans(data: any, nClusters: any): any[];
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AxisProps } from "../types/annotationTypes";
|
|
3
|
+
import { MarginType, ProjectionTypes } from "../types/generalTypes";
|
|
4
|
+
import { ScaleLinear } from "d3-scale";
|
|
5
|
+
export declare type TitleType = string | Element | {
|
|
6
|
+
title?: string | Element;
|
|
7
|
+
orient?: string;
|
|
8
|
+
};
|
|
9
|
+
declare type PieceType = {
|
|
10
|
+
type: string;
|
|
11
|
+
innerRadius?: number;
|
|
12
|
+
};
|
|
13
|
+
declare type SummaryType = {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
declare type CalculateMarginTypes = {
|
|
17
|
+
margin?: number | object;
|
|
18
|
+
axes?: Array<AxisProps>;
|
|
19
|
+
title: TitleType;
|
|
20
|
+
oLabel?: any;
|
|
21
|
+
projection?: ProjectionTypes;
|
|
22
|
+
size?: number[];
|
|
23
|
+
};
|
|
24
|
+
declare type AdjustedPositionSizeTypes = {
|
|
25
|
+
size: Array<number>;
|
|
26
|
+
position?: Array<number>;
|
|
27
|
+
margin: MarginType;
|
|
28
|
+
projection?: ProjectionTypes;
|
|
29
|
+
};
|
|
30
|
+
declare type ORFrameConnectionRendererTypes = {
|
|
31
|
+
type: {
|
|
32
|
+
type: Function;
|
|
33
|
+
};
|
|
34
|
+
data: any;
|
|
35
|
+
renderMode: Function;
|
|
36
|
+
eventListenersGenerator: Function;
|
|
37
|
+
styleFn: Function;
|
|
38
|
+
classFn: Function;
|
|
39
|
+
projection: ProjectionTypes;
|
|
40
|
+
canvasRender: Function;
|
|
41
|
+
canvasDrawing: Array<object>;
|
|
42
|
+
baseMarkProps: object;
|
|
43
|
+
pieceType: PieceType;
|
|
44
|
+
};
|
|
45
|
+
declare type ORFrameSummaryRendererTypes = {
|
|
46
|
+
data: Array<object>;
|
|
47
|
+
type: SummaryType;
|
|
48
|
+
renderMode: Function;
|
|
49
|
+
eventListenersGenerator: Function;
|
|
50
|
+
styleFn: Function;
|
|
51
|
+
classFn: Function;
|
|
52
|
+
projection: ProjectionTypes;
|
|
53
|
+
adjustedSize: Array<number>;
|
|
54
|
+
chartSize: number;
|
|
55
|
+
baseMarkProps: object;
|
|
56
|
+
margin: object;
|
|
57
|
+
};
|
|
58
|
+
declare type ORFrameAxisGeneratorTypes = {
|
|
59
|
+
projection: ProjectionTypes;
|
|
60
|
+
axis?: Array<AxisProps>;
|
|
61
|
+
adjustedSize: Array<number>;
|
|
62
|
+
size: Array<number>;
|
|
63
|
+
rScale: ScaleLinear<number, number>;
|
|
64
|
+
rScaleType: ScaleLinear<number, number>;
|
|
65
|
+
pieceType: PieceType;
|
|
66
|
+
rExtent: Array<number>;
|
|
67
|
+
data: Array<object>;
|
|
68
|
+
maxColumnValues?: number;
|
|
69
|
+
xyData: Array<{
|
|
70
|
+
value: number;
|
|
71
|
+
data: object;
|
|
72
|
+
}>;
|
|
73
|
+
margin: MarginType;
|
|
74
|
+
thresholds?: number[];
|
|
75
|
+
};
|
|
76
|
+
export declare const circlePath: (cx: number, cy: number, r: number) => string;
|
|
77
|
+
export declare const drawMarginPath: ({ margin, size, inset }: {
|
|
78
|
+
margin: MarginType;
|
|
79
|
+
size: Array<number>;
|
|
80
|
+
inset: number;
|
|
81
|
+
}) => string;
|
|
82
|
+
export declare const calculateMargin: ({ margin, axes, title: rawTitle, oLabel, projection, size }: CalculateMarginTypes) => MarginType;
|
|
83
|
+
declare type ObjectifyType = {
|
|
84
|
+
type?: string | Function;
|
|
85
|
+
};
|
|
86
|
+
export declare function objectifyType(type?: string | Function | ObjectifyType): ObjectifyType;
|
|
87
|
+
export declare function generateOrdinalFrameEventListeners(customHoverBehavior: Function, customClickBehavior: Function): (d?: object, i?: number) => {
|
|
88
|
+
onMouseEnter?: (e: any) => void;
|
|
89
|
+
onMouseLeave?: (e: any) => void;
|
|
90
|
+
onClick?: (e: any) => void;
|
|
91
|
+
};
|
|
92
|
+
export declare function keyAndObjectifyBarData({ data, renderKey, oAccessor, rAccessor: baseRAccessor, originalRAccessor, originalOAccessor, multiAxis }: {
|
|
93
|
+
data: Array<object | number>;
|
|
94
|
+
renderKey: Function;
|
|
95
|
+
oAccessor: Array<Function>;
|
|
96
|
+
rAccessor: Array<(d: number | object, i?: number) => number>;
|
|
97
|
+
multiAxis?: boolean;
|
|
98
|
+
originalOAccessor: Array<string | Function>;
|
|
99
|
+
originalRAccessor: Array<string | Function>;
|
|
100
|
+
}): {
|
|
101
|
+
allData: Array<object>;
|
|
102
|
+
multiExtents?: Array<Array<number>>;
|
|
103
|
+
};
|
|
104
|
+
export declare function adjustedPositionSize({ size, position, margin, projection }: AdjustedPositionSizeTypes): {
|
|
105
|
+
adjustedPosition: number[];
|
|
106
|
+
adjustedSize: number[];
|
|
107
|
+
};
|
|
108
|
+
export declare function generateFrameTitle({ title: rawTitle, size }: {
|
|
109
|
+
title: TitleType;
|
|
110
|
+
size: Array<number>;
|
|
111
|
+
}): any;
|
|
112
|
+
export declare function orFrameConnectionRenderer({ type, data, renderMode, eventListenersGenerator, styleFn, classFn, projection, canvasRender, canvasDrawing, baseMarkProps, pieceType }: ORFrameConnectionRendererTypes): any[];
|
|
113
|
+
export declare function orFrameSummaryRenderer({ data, type, renderMode, eventListenersGenerator, styleFn, classFn, projection, adjustedSize, chartSize, baseMarkProps, margin }: ORFrameSummaryRendererTypes): any;
|
|
114
|
+
export declare const orFrameAxisGenerator: ({ projection, axis, adjustedSize, size, rScale, rScaleType, pieceType, rExtent, data, maxColumnValues, xyData, margin, thresholds }: ORFrameAxisGeneratorTypes) => {
|
|
115
|
+
axis: JSX.Element[];
|
|
116
|
+
axesTickLines: Object[];
|
|
117
|
+
};
|
|
118
|
+
export declare const canvasEvent: (canvasContext: any, overlayRegions: any, canvasMap: any, e: any) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
119
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ProjectedLine, ProjectedPoint, RawLine, RawSummary } from "../types/generalTypes";
|
|
2
|
+
import { AnnotationType } from "../types/annotationTypes";
|
|
3
|
+
declare type SummaryProjectionTypes = {
|
|
4
|
+
data: Array<RawSummary>;
|
|
5
|
+
summaryDataAccessor: Array<Function>;
|
|
6
|
+
xAccessor: Array<Function>;
|
|
7
|
+
yAccessor: Array<Function>;
|
|
8
|
+
};
|
|
9
|
+
declare type LineProjectionTypes = {
|
|
10
|
+
data: Array<RawLine>;
|
|
11
|
+
lineDataAccessor: Array<Function>;
|
|
12
|
+
xProp: string;
|
|
13
|
+
xPropTop?: string;
|
|
14
|
+
xPropBottom?: string;
|
|
15
|
+
yProp: string;
|
|
16
|
+
yPropTop?: string;
|
|
17
|
+
yPropBottom?: string;
|
|
18
|
+
xAccessor: Array<Function>;
|
|
19
|
+
yAccessor: Array<Function>;
|
|
20
|
+
};
|
|
21
|
+
declare type DifferenceLineProps = {
|
|
22
|
+
data: Array<ProjectedLine>;
|
|
23
|
+
yProp: string;
|
|
24
|
+
yPropTop: string;
|
|
25
|
+
yPropBottom: string;
|
|
26
|
+
};
|
|
27
|
+
declare type StackedAreaTypes = {
|
|
28
|
+
type: string;
|
|
29
|
+
data: Array<ProjectedLine>;
|
|
30
|
+
xProp: string;
|
|
31
|
+
yProp: string;
|
|
32
|
+
yPropMiddle: string;
|
|
33
|
+
sort?: (a: ProjectedLine, b: ProjectedLine) => number;
|
|
34
|
+
yPropTop: string;
|
|
35
|
+
yPropBottom: string;
|
|
36
|
+
};
|
|
37
|
+
declare type CumulativeLineTypes = {
|
|
38
|
+
type: string;
|
|
39
|
+
data: Array<ProjectedLine>;
|
|
40
|
+
yPropMiddle: string;
|
|
41
|
+
yPropTop: string;
|
|
42
|
+
yPropBottom: string;
|
|
43
|
+
y1?: Function;
|
|
44
|
+
};
|
|
45
|
+
declare type LineChartTypes = {
|
|
46
|
+
data: Array<ProjectedLine>;
|
|
47
|
+
y1?: Function;
|
|
48
|
+
x1?: Function;
|
|
49
|
+
yPropTop: string;
|
|
50
|
+
yPropMiddle: string;
|
|
51
|
+
yPropBottom: string;
|
|
52
|
+
xPropTop: string;
|
|
53
|
+
xPropMiddle: string;
|
|
54
|
+
xPropBottom: string;
|
|
55
|
+
};
|
|
56
|
+
declare type RelativeYTypes = {
|
|
57
|
+
point?: ProjectedPoint | AnnotationType;
|
|
58
|
+
projectedYMiddle: string;
|
|
59
|
+
projectedY: string;
|
|
60
|
+
yAccessor: Array<Function>;
|
|
61
|
+
yScale: Function;
|
|
62
|
+
showLinePoints?: boolean | string;
|
|
63
|
+
};
|
|
64
|
+
declare type RelativeXTypes = {
|
|
65
|
+
point?: ProjectedPoint | AnnotationType;
|
|
66
|
+
projectedXMiddle: string;
|
|
67
|
+
projectedX: string;
|
|
68
|
+
xAccessor: Array<Function>;
|
|
69
|
+
xScale: Function;
|
|
70
|
+
};
|
|
71
|
+
export declare const projectSummaryData: ({ data, summaryDataAccessor, xAccessor, yAccessor }: SummaryProjectionTypes) => any[];
|
|
72
|
+
export declare const projectLineData: ({ data, lineDataAccessor, xProp, xPropTop, xPropBottom, yProp, yPropTop, yPropBottom, xAccessor, yAccessor }: LineProjectionTypes) => ProjectedLine[];
|
|
73
|
+
export declare const differenceLine: ({ data, yProp, yPropTop, yPropBottom }: DifferenceLineProps) => ProjectedLine[];
|
|
74
|
+
export declare const stackedArea: ({ type, data, xProp, yProp, yPropMiddle, sort, yPropTop, yPropBottom }: StackedAreaTypes) => ProjectedLine[];
|
|
75
|
+
export declare const lineChart: ({ data, y1, x1, yPropTop, yPropMiddle, yPropBottom, xPropTop, xPropMiddle, xPropBottom }: LineChartTypes) => ProjectedLine[];
|
|
76
|
+
export declare const cumulativeLine: ({ data, y1, yPropTop, yPropMiddle, yPropBottom, type }: CumulativeLineTypes) => ProjectedLine[];
|
|
77
|
+
export declare const bumpChart: ({ type, data, xProp, yProp, yPropMiddle, yPropTop, yPropBottom }: StackedAreaTypes) => ProjectedLine[];
|
|
78
|
+
export declare const dividedLine: (parameters: Function, points: Array<Object>, searchIterations?: number) => {
|
|
79
|
+
key: any;
|
|
80
|
+
points: any[];
|
|
81
|
+
}[];
|
|
82
|
+
export declare function funnelize({ data, steps, key }: {
|
|
83
|
+
data: Array<Object>;
|
|
84
|
+
steps: Array<string>;
|
|
85
|
+
key: string;
|
|
86
|
+
}): any[];
|
|
87
|
+
export declare function relativeY({ point, projectedY, yAccessor, yScale, showLinePoints }: RelativeYTypes): any;
|
|
88
|
+
export declare function relativeX({ point, projectedXMiddle, projectedX, xAccessor, xScale }: RelativeXTypes): any;
|
|
89
|
+
export declare function findPointByID({ point, idAccessor, lines, xScale, projectedX, xAccessor }: {
|
|
90
|
+
point: ProjectedPoint;
|
|
91
|
+
idAccessor: Function;
|
|
92
|
+
lines: {
|
|
93
|
+
data: ProjectedLine[];
|
|
94
|
+
};
|
|
95
|
+
xScale: Function;
|
|
96
|
+
projectedX: string;
|
|
97
|
+
xAccessor: Array<Function>;
|
|
98
|
+
}): ProjectedPoint;
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const radialCurveGenerator: (size: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
3
|
+
d: any;
|
|
4
|
+
i: any;
|
|
5
|
+
styleFn: any;
|
|
6
|
+
renderMode: any;
|
|
7
|
+
key: any;
|
|
8
|
+
className: any;
|
|
9
|
+
baseMarkProps: any;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const circleNodeGenerator: ({ d, i, styleFn, renderMode, key, className, transform, baseMarkProps }: {
|
|
12
|
+
d: any;
|
|
13
|
+
i: any;
|
|
14
|
+
styleFn: any;
|
|
15
|
+
renderMode: any;
|
|
16
|
+
key: any;
|
|
17
|
+
className: any;
|
|
18
|
+
transform: any;
|
|
19
|
+
baseMarkProps: any;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
export declare const matrixEdgeGenerator: (size: any, nodes: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
22
|
+
d: any;
|
|
23
|
+
i: any;
|
|
24
|
+
styleFn: any;
|
|
25
|
+
renderMode: any;
|
|
26
|
+
key: any;
|
|
27
|
+
className: any;
|
|
28
|
+
baseMarkProps: any;
|
|
29
|
+
}) => React.JSX.Element;
|
|
30
|
+
export declare const arcEdgeGenerator: (size: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
31
|
+
d: any;
|
|
32
|
+
i: any;
|
|
33
|
+
styleFn: any;
|
|
34
|
+
renderMode: any;
|
|
35
|
+
key: any;
|
|
36
|
+
className: any;
|
|
37
|
+
baseMarkProps: any;
|
|
38
|
+
}) => React.JSX.Element;
|
|
39
|
+
export declare const sankeyArrowGenerator: (props: any) => React.JSX.Element;
|
|
40
|
+
export declare const chordEdgeGenerator: (size: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
41
|
+
d: any;
|
|
42
|
+
i: any;
|
|
43
|
+
styleFn: any;
|
|
44
|
+
renderMode: any;
|
|
45
|
+
key: any;
|
|
46
|
+
className: any;
|
|
47
|
+
baseMarkProps: any;
|
|
48
|
+
}) => React.JSX.Element;
|
|
49
|
+
export declare const dagreEdgeGenerator: (direction: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
50
|
+
d: any;
|
|
51
|
+
i: any;
|
|
52
|
+
styleFn: any;
|
|
53
|
+
renderMode: any;
|
|
54
|
+
key: any;
|
|
55
|
+
className: any;
|
|
56
|
+
baseMarkProps: any;
|
|
57
|
+
}) => React.JSX.Element;
|
|
58
|
+
export declare const sankeyNodeGenerator: ({ d, i, styleFn, renderMode, key, className, transform, baseMarkProps }: {
|
|
59
|
+
d: any;
|
|
60
|
+
i: any;
|
|
61
|
+
styleFn: any;
|
|
62
|
+
renderMode: any;
|
|
63
|
+
key: any;
|
|
64
|
+
className: any;
|
|
65
|
+
transform: any;
|
|
66
|
+
baseMarkProps: any;
|
|
67
|
+
}) => React.JSX.Element;
|
|
68
|
+
export declare const chordNodeGenerator: (size: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
69
|
+
d: any;
|
|
70
|
+
i: any;
|
|
71
|
+
styleFn: any;
|
|
72
|
+
renderMode: any;
|
|
73
|
+
key: any;
|
|
74
|
+
className: any;
|
|
75
|
+
baseMarkProps: any;
|
|
76
|
+
}) => React.JSX.Element;
|
|
77
|
+
export declare const matrixNodeGenerator: (size: any, nodes: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
78
|
+
d: any;
|
|
79
|
+
i: any;
|
|
80
|
+
styleFn: any;
|
|
81
|
+
renderMode: any;
|
|
82
|
+
key: any;
|
|
83
|
+
className: any;
|
|
84
|
+
baseMarkProps: any;
|
|
85
|
+
}) => React.JSX.Element;
|
|
86
|
+
export declare const radialRectNodeGenerator: (size: any, center: any, type: any) => ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
87
|
+
d: any;
|
|
88
|
+
i: any;
|
|
89
|
+
styleFn: any;
|
|
90
|
+
renderMode: any;
|
|
91
|
+
key: any;
|
|
92
|
+
className: any;
|
|
93
|
+
baseMarkProps: any;
|
|
94
|
+
}) => React.JSX.Element;
|
|
95
|
+
export declare const radialLabelGenerator: (node: any, nodei: any, nodeIDAccessor: any, size: any) => React.JSX.Element;
|
|
96
|
+
export declare const hierarchicalRectNodeGenerator: ({ d, i, styleFn, renderMode, key, className, baseMarkProps }: {
|
|
97
|
+
d: any;
|
|
98
|
+
i: any;
|
|
99
|
+
styleFn: any;
|
|
100
|
+
renderMode: any;
|
|
101
|
+
key: any;
|
|
102
|
+
className: any;
|
|
103
|
+
baseMarkProps: any;
|
|
104
|
+
}) => React.JSX.Element;
|
|
105
|
+
export declare const drawNodes: ({ data, renderKeyFn, customMark, styleFn, classFn, renderMode, canvasDrawing, canvasRenderFn, baseMarkProps, networkSettings }: {
|
|
106
|
+
data: any;
|
|
107
|
+
renderKeyFn: any;
|
|
108
|
+
customMark: any;
|
|
109
|
+
styleFn: any;
|
|
110
|
+
classFn: any;
|
|
111
|
+
renderMode: any;
|
|
112
|
+
canvasDrawing: any;
|
|
113
|
+
canvasRenderFn: any;
|
|
114
|
+
baseMarkProps: any;
|
|
115
|
+
networkSettings: any;
|
|
116
|
+
}) => any[];
|
|
117
|
+
export declare const drawEdges: (settings: any) => any[];
|
|
118
|
+
export declare function topologicalSort(nodesArray: any, edgesArray: any): false | any[];
|
|
119
|
+
export declare const ribbonLink: (d: any) => any;
|
|
120
|
+
export declare const areaLink: (d: any) => string;
|
|
121
|
+
export declare function circularAreaLink(link: any): any;
|
|
122
|
+
export declare const softStack: (edges: any, nodes: any, sourceAccessor: any, targetAccessor: any, nodeIDAccessor: any) => {
|
|
123
|
+
hierarchy: {
|
|
124
|
+
id: string;
|
|
125
|
+
children: any[];
|
|
126
|
+
childMap: Map<any, any>;
|
|
127
|
+
};
|
|
128
|
+
isHierarchical: boolean;
|
|
129
|
+
hasLogicalRoot: boolean;
|
|
130
|
+
} | {
|
|
131
|
+
hierarchy: {};
|
|
132
|
+
isHierarchical: boolean;
|
|
133
|
+
hasLogicalRoot: boolean;
|
|
134
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function pointOnArcAtAngle(center: any, angle: any, distance: any): any[];
|
|
2
|
+
export declare const renderLaidOutPieces: ({ data, shouldRender, canvasRender, canvasDrawing, styleFn, classFn, baseMarkProps, renderKeyFn, ariaLabel, axis }: {
|
|
3
|
+
data: any;
|
|
4
|
+
shouldRender: any;
|
|
5
|
+
canvasRender: any;
|
|
6
|
+
canvasDrawing: any;
|
|
7
|
+
styleFn: any;
|
|
8
|
+
classFn: any;
|
|
9
|
+
baseMarkProps: any;
|
|
10
|
+
renderKeyFn: any;
|
|
11
|
+
ariaLabel: any;
|
|
12
|
+
axis: any;
|
|
13
|
+
}) => any[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare function pointOnArcAtAngle(center: any, angle: any, distance: any): any[];
|
|
2
|
+
export declare function clusterBarLayout({ type, data, renderMode, eventListenersGenerator, styleFn, projection, classFn, adjustedSize, chartSize, margin, baseMarkProps, rScale }: {
|
|
3
|
+
type: any;
|
|
4
|
+
data: any;
|
|
5
|
+
renderMode: any;
|
|
6
|
+
eventListenersGenerator: any;
|
|
7
|
+
styleFn: any;
|
|
8
|
+
projection: any;
|
|
9
|
+
classFn: any;
|
|
10
|
+
adjustedSize: any;
|
|
11
|
+
chartSize: any;
|
|
12
|
+
margin: any;
|
|
13
|
+
baseMarkProps: any;
|
|
14
|
+
rScale: any;
|
|
15
|
+
}): any[];
|
|
16
|
+
export declare function barLayout({ type, data, renderMode, eventListenersGenerator, styleFn, projection, classFn, adjustedSize, chartSize, margin, baseMarkProps, rScale }: {
|
|
17
|
+
type: any;
|
|
18
|
+
data: any;
|
|
19
|
+
renderMode: any;
|
|
20
|
+
eventListenersGenerator: any;
|
|
21
|
+
styleFn: any;
|
|
22
|
+
projection: any;
|
|
23
|
+
classFn: any;
|
|
24
|
+
adjustedSize: any;
|
|
25
|
+
chartSize: any;
|
|
26
|
+
margin: any;
|
|
27
|
+
baseMarkProps: any;
|
|
28
|
+
rScale: any;
|
|
29
|
+
}): any[];
|
|
30
|
+
export declare function timelineLayout({ type, data, renderMode, eventListenersGenerator, styleFn, projection, classFn, adjustedSize, chartSize, margin, baseMarkProps, rScale }: {
|
|
31
|
+
type: any;
|
|
32
|
+
data: any;
|
|
33
|
+
renderMode: any;
|
|
34
|
+
eventListenersGenerator: any;
|
|
35
|
+
styleFn: any;
|
|
36
|
+
projection: any;
|
|
37
|
+
classFn: any;
|
|
38
|
+
adjustedSize: any;
|
|
39
|
+
chartSize: any;
|
|
40
|
+
margin: any;
|
|
41
|
+
baseMarkProps: any;
|
|
42
|
+
rScale: any;
|
|
43
|
+
}): any[];
|
|
44
|
+
export declare function pointLayout({ type, data, renderMode, eventListenersGenerator, styleFn, projection, classFn, adjustedSize, chartSize, margin, baseMarkProps, rScale }: {
|
|
45
|
+
type: any;
|
|
46
|
+
data: any;
|
|
47
|
+
renderMode: any;
|
|
48
|
+
eventListenersGenerator: any;
|
|
49
|
+
styleFn: any;
|
|
50
|
+
projection: any;
|
|
51
|
+
classFn: any;
|
|
52
|
+
adjustedSize: any;
|
|
53
|
+
chartSize: any;
|
|
54
|
+
margin: any;
|
|
55
|
+
baseMarkProps: any;
|
|
56
|
+
rScale: any;
|
|
57
|
+
}): any[];
|
|
58
|
+
export declare function swarmLayout({ type, data, renderMode, eventListenersGenerator, styleFn, projection, classFn, adjustedSize, chartSize, margin, baseMarkProps, rScale }: {
|
|
59
|
+
type: any;
|
|
60
|
+
data: any;
|
|
61
|
+
renderMode: any;
|
|
62
|
+
eventListenersGenerator: any;
|
|
63
|
+
styleFn: any;
|
|
64
|
+
projection: any;
|
|
65
|
+
classFn: any;
|
|
66
|
+
adjustedSize: any;
|
|
67
|
+
chartSize: any;
|
|
68
|
+
margin: any;
|
|
69
|
+
baseMarkProps: any;
|
|
70
|
+
rScale: any;
|
|
71
|
+
}): any[];
|