@weng-lab/visualization 1.0.2 → 1.0.4
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/src/components/BarPlot/barplot.d.ts +2 -1
- package/dist/src/components/BarPlot/barplot.d.ts.map +1 -1
- package/dist/src/components/BarPlot/index.d.ts +2 -2
- package/dist/src/components/BarPlot/legend.d.ts.map +1 -1
- package/dist/src/components/BarPlot/types.d.ts +4 -3
- package/dist/src/components/BarPlot/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/visualization.es.js +12128 -11674
- package/dist/visualization.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BarPlotProps } from './types';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const getTextHeight: (text: string, fontSize: number, fontFamily: string) => number;
|
|
3
|
+
declare const BarPlot: <T>({ data, SVGref, topAxisLabel, onBarClicked, TooltipContents, show95thPercentileLine, cutoffNegativeValues, barSize, barSpacing, fill, legendTitle, legendValues }: BarPlotProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default BarPlot;
|
|
4
5
|
//# sourceMappingURL=barplot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barplot.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/barplot.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAW,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"barplot.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/barplot.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAW,YAAY,EAAE,MAAM,SAAS,CAAC;AAOhD,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,EAAE,YAAY,MAAM,KAAG,MAYlF,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,CAAC,EAAG,mKAalB,YAAY,CAAC,CAAC,CAAC,4CA6UjB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/legend.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAG9C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoFzC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -7,7 +7,7 @@ export interface BarData<T> {
|
|
|
7
7
|
*/
|
|
8
8
|
id: string;
|
|
9
9
|
color?: string;
|
|
10
|
-
|
|
10
|
+
lollipopValue?: number;
|
|
11
11
|
metadata?: T;
|
|
12
12
|
}
|
|
13
13
|
export interface BarPlotProps<T> {
|
|
@@ -39,15 +39,16 @@ export interface BarPlotProps<T> {
|
|
|
39
39
|
* will make barSpacing negligible
|
|
40
40
|
*/
|
|
41
41
|
fill?: boolean;
|
|
42
|
-
|
|
42
|
+
legendTitle?: string;
|
|
43
43
|
legendValues?: [number] | [number, number] | [number, number, number] | [number, number, number, number];
|
|
44
44
|
}
|
|
45
45
|
export type LollipopLegendProps = {
|
|
46
46
|
values: number[];
|
|
47
47
|
label: string;
|
|
48
|
-
|
|
48
|
+
getlollipopRadius: (x: number) => number;
|
|
49
49
|
height: number;
|
|
50
50
|
width: number;
|
|
51
51
|
legendValues: number[];
|
|
52
|
+
spaceForCategory: number;
|
|
52
53
|
};
|
|
53
54
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/BarPlot/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC;CACd;AAED,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IACtD;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1G;AAED,MAAM,MAAM,mBAAmB,GAAG;IAC9B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAA"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export { Graph } from './components/Graph';
|
|
|
4
4
|
export type { GraphProps } from './components/Graph';
|
|
5
5
|
export { ViolinPlot } from './components/ViolinPlot';
|
|
6
6
|
export type { Distribution, ViolinPlotProps, ViolinPoint } from './components/ViolinPlot';
|
|
7
|
+
export { BarPlot } from './components/BarPlot';
|
|
8
|
+
export type { BarPlotProps, BarData } from './components/BarPlot';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEhF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEhF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|