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
|
@@ -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,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,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;
|
package/dist/Brush.d.ts
ADDED
|
@@ -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 {};
|
package/dist/Frame.d.ts
ADDED
package/dist/Legend.d.ts
ADDED
|
@@ -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,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,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,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,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;
|