katucharts.js 0.2.1
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/LICENSE +106 -0
- package/README.md +1100 -0
- package/dist/__vite-optional-peer-dep_jspdf_katucharts-BDMct_Gn.js +4 -0
- package/dist/accessibility/A11yModule.d.ts +26 -0
- package/dist/axis/Axis.d.ts +140 -0
- package/dist/axis/AxisCoordinator.d.ts +38 -0
- package/dist/bio.d.ts +22 -0
- package/dist/components/Credits.d.ts +38 -0
- package/dist/components/Crosshair.d.ts +15 -0
- package/dist/components/DataLabels.d.ts +7 -0
- package/dist/components/ExportButton.d.ts +27 -0
- package/dist/components/Legend.d.ts +53 -0
- package/dist/components/TitleRenderer.d.ts +19 -0
- package/dist/components/Tooltip.d.ts +61 -0
- package/dist/core/Chart.d.ts +156 -0
- package/dist/core/EventBus.d.ts +14 -0
- package/dist/core/InteractionController.d.ts +62 -0
- package/dist/core/OptionsParser.d.ts +61 -0
- package/dist/core/Registry.d.ts +27 -0
- package/dist/core/SVGRenderer.d.ts +48 -0
- package/dist/core/ScrollablePlotOverlay.d.ts +31 -0
- package/dist/core/StackComputer.d.ts +25 -0
- package/dist/core/StateManager.d.ts +21 -0
- package/dist/core/UpdateScheduler.d.ts +28 -0
- package/dist/core/animationConstants.d.ts +20 -0
- package/dist/core/chartTypes.d.ts +46 -0
- package/dist/core/registerAll.d.ts +4 -0
- package/dist/core/registerBio.d.ts +4 -0
- package/dist/core/registerCore.d.ts +4 -0
- package/dist/core/registerFinance.d.ts +4 -0
- package/dist/core/registerFinancial.d.ts +4 -0
- package/dist/core/registerFlow.d.ts +4 -0
- package/dist/core/registerGeneral.d.ts +4 -0
- package/dist/datatable/DataTable.d.ts +162 -0
- package/dist/datatable/DataTableDefaults.d.ts +7 -0
- package/dist/datatable/api/TableApi.d.ts +35 -0
- package/dist/datatable/columns/ColumnDef.d.ts +16 -0
- package/dist/datatable/columns/ColumnManager.d.ts +31 -0
- package/dist/datatable/data/DataProcessor.d.ts +46 -0
- package/dist/datatable/data/DataSource.d.ts +26 -0
- package/dist/datatable/editing/CellEditor.d.ts +29 -0
- package/dist/datatable/export/TableExport.d.ts +23 -0
- package/dist/datatable/locales/en.d.ts +9 -0
- package/dist/datatable/locales/es.d.ts +6 -0
- package/dist/datatable/locales/index.d.ts +22 -0
- package/dist/datatable/locales/pt-BR.d.ts +6 -0
- package/dist/datatable/locales/resolveLocale.d.ts +16 -0
- package/dist/datatable/locales/zh.d.ts +6 -0
- package/dist/datatable/render/CellRenderer.d.ts +24 -0
- package/dist/datatable/render/HeaderRenderer.d.ts +51 -0
- package/dist/datatable/render/PaginationRenderer.d.ts +26 -0
- package/dist/datatable/render/SearchRenderer.d.ts +21 -0
- package/dist/datatable/render/TableRenderer.d.ts +81 -0
- package/dist/datatable/render/ToolbarRenderer.d.ts +34 -0
- package/dist/datatable/render/icons.d.ts +24 -0
- package/dist/datatable/render/popover.d.ts +15 -0
- package/dist/datatable/selection/SelectionManager.d.ts +29 -0
- package/dist/datatable/themes/TableTheme.d.ts +36 -0
- package/dist/datatable/themes/styleSheet.d.ts +16 -0
- package/dist/datatable.d.ts +19 -0
- package/dist/export/ChartExporter.d.ts +50 -0
- package/dist/export/Export.d.ts +76 -0
- package/dist/finance.d.ts +49 -0
- package/dist/index.d.ts +67 -0
- package/dist/indicators/Indicator.d.ts +23 -0
- package/dist/indicators/expandIndicators.d.ts +18 -0
- package/dist/indicators/moving-averages/DEMA.d.ts +10 -0
- package/dist/indicators/moving-averages/EMA.d.ts +12 -0
- package/dist/indicators/moving-averages/SMA.d.ts +11 -0
- package/dist/indicators/moving-averages/TEMA.d.ts +10 -0
- package/dist/indicators/moving-averages/WMA.d.ts +12 -0
- package/dist/indicators/oscillators/CCI.d.ts +11 -0
- package/dist/indicators/oscillators/MACD.d.ts +20 -0
- package/dist/indicators/oscillators/Momentum.d.ts +10 -0
- package/dist/indicators/oscillators/ROC.d.ts +10 -0
- package/dist/indicators/oscillators/RSI.d.ts +11 -0
- package/dist/indicators/oscillators/Stochastic.d.ts +20 -0
- package/dist/indicators/registry.d.ts +9 -0
- package/dist/indicators/trend/ADX.d.ts +11 -0
- package/dist/indicators/trend/IchimokuCloud.d.ts +14 -0
- package/dist/indicators/trend/PSAR.d.ts +11 -0
- package/dist/indicators/util.d.ts +8 -0
- package/dist/indicators/volatility/ATR.d.ts +11 -0
- package/dist/indicators/volatility/BollingerBands.d.ts +11 -0
- package/dist/indicators/volume/OBV.d.ts +11 -0
- package/dist/indicators/volume/VBP.d.ts +12 -0
- package/dist/indicators/volume/VWAP.d.ts +12 -0
- package/dist/interaction/Drilldown.d.ts +29 -0
- package/dist/interaction/HoverManager.d.ts +47 -0
- package/dist/interaction/Zoom.d.ts +68 -0
- package/dist/katucharts-bio.es.js +5861 -0
- package/dist/katucharts-bio.umd.js +1 -0
- package/dist/katucharts-datatable.es.js +3363 -0
- package/dist/katucharts-datatable.umd.js +296 -0
- package/dist/katucharts-finance.es.js +4364 -0
- package/dist/katucharts-finance.umd.js +1 -0
- package/dist/katucharts-react.es.js +35 -0
- package/dist/katucharts-react.umd.js +1 -0
- package/dist/katucharts.es.js +20531 -0
- package/dist/katucharts.umd.js +9 -0
- package/dist/layout/LayoutEngine.d.ts +44 -0
- package/dist/license/LicenseManager.d.ts +63 -0
- package/dist/options/defaults.d.ts +5 -0
- package/dist/react/KatuChartsReact.d.ts +16 -0
- package/dist/react.d.ts +2 -0
- package/dist/responsive/ResponsiveEngine.d.ts +15 -0
- package/dist/series/BaseSeries.d.ts +186 -0
- package/dist/series/bioinformatics/CircosChart.d.ts +4 -0
- package/dist/series/bioinformatics/ClusteredHeatmapChart.d.ts +22 -0
- package/dist/series/bioinformatics/ForestPlotChart.d.ts +21 -0
- package/dist/series/bioinformatics/KaplanMeierChart.d.ts +22 -0
- package/dist/series/bioinformatics/ManhattanChart.d.ts +34 -0
- package/dist/series/bioinformatics/PCoAChart.d.ts +22 -0
- package/dist/series/bioinformatics/PhyloTreeChart.d.ts +27 -0
- package/dist/series/bioinformatics/SequenceLogoChart.d.ts +21 -0
- package/dist/series/bioinformatics/ViolinChart.d.ts +23 -0
- package/dist/series/bioinformatics/VolcanoChart.d.ts +28 -0
- package/dist/series/bioinformatics/circos/CircosChart.d.ts +20 -0
- package/dist/series/bioinformatics/circos/CircosColorScales.d.ts +6 -0
- package/dist/series/bioinformatics/circos/CircosComparativeChart.d.ts +41 -0
- package/dist/series/bioinformatics/circos/CircosHeatmapChart.d.ts +31 -0
- package/dist/series/bioinformatics/circos/CircosLayoutEngine.d.ts +37 -0
- package/dist/series/bioinformatics/circos/CircosRules.d.ts +6 -0
- package/dist/series/bioinformatics/circos/CircosSpiralChart.d.ts +39 -0
- package/dist/series/bioinformatics/circos/CircosTypes.d.ts +131 -0
- package/dist/series/bioinformatics/circos/tracks/AreaTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/ConnectorTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/GlyphTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/HeatmapTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/HighlightTrackRenderer.d.ts +6 -0
- package/dist/series/bioinformatics/circos/tracks/HistogramTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/LineTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/LinkTrackRenderer.d.ts +8 -0
- package/dist/series/bioinformatics/circos/tracks/LollipopTrackRenderer.d.ts +9 -0
- package/dist/series/bioinformatics/circos/tracks/RibbonTrackRenderer.d.ts +9 -0
- package/dist/series/bioinformatics/circos/tracks/ScatterTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/StackTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/TextTrackRenderer.d.ts +8 -0
- package/dist/series/bioinformatics/circos/tracks/TileTrackRenderer.d.ts +7 -0
- package/dist/series/bioinformatics/circos/tracks/TrackAxesRenderer.d.ts +6 -0
- package/dist/series/bioinformatics/circos/tracks/TrackBackgroundRenderer.d.ts +5 -0
- package/dist/series/cartesian/AreaChart.d.ts +33 -0
- package/dist/series/cartesian/BoxPlotChart.d.ts +24 -0
- package/dist/series/cartesian/BubbleChart.d.ts +34 -0
- package/dist/series/cartesian/ColumnChart.d.ts +37 -0
- package/dist/series/cartesian/LineChart.d.ts +28 -0
- package/dist/series/cartesian/ScatterChart.d.ts +20 -0
- package/dist/series/cartesian/SplineChart.d.ts +9 -0
- package/dist/series/cartesian/WaterfallChart.d.ts +25 -0
- package/dist/series/financial/AreaRangeChart.d.ts +24 -0
- package/dist/series/financial/BaselineChart.d.ts +20 -0
- package/dist/series/financial/CandlestickChart.d.ts +55 -0
- package/dist/series/financial/ColumnRangeChart.d.ts +16 -0
- package/dist/series/financial/FlagsChart.d.ts +34 -0
- package/dist/series/financial/HeikinAshiChart.d.ts +11 -0
- package/dist/series/financial/HollowCandlestickChart.d.ts +17 -0
- package/dist/series/financial/KagiChart.d.ts +23 -0
- package/dist/series/financial/LineBreakChart.d.ts +23 -0
- package/dist/series/financial/PointAndFigureChart.d.ts +24 -0
- package/dist/series/financial/RenkoChart.d.ts +22 -0
- package/dist/series/financial/VBPChart.d.ts +18 -0
- package/dist/series/financial/VolumeChart.d.ts +15 -0
- package/dist/series/flow/DependencyWheelChart.d.ts +23 -0
- package/dist/series/flow/NetworkGraphChart.d.ts +18 -0
- package/dist/series/flow/SankeyChart.d.ts +24 -0
- package/dist/series/gauge/GaugeChart.d.ts +40 -0
- package/dist/series/heatmap/HeatmapChart.d.ts +18 -0
- package/dist/series/hierarchical/SunburstChart.d.ts +44 -0
- package/dist/series/hierarchical/TreegraphChart.d.ts +19 -0
- package/dist/series/hierarchical/TreemapChart.d.ts +20 -0
- package/dist/series/hierarchical/WordcloudChart.d.ts +19 -0
- package/dist/series/index.d.ts +45 -0
- package/dist/series/map/FlowmapChart.d.ts +33 -0
- package/dist/series/map/MapChart.d.ts +53 -0
- package/dist/series/map/MapPointChart.d.ts +26 -0
- package/dist/series/map/mapProjection.d.ts +46 -0
- package/dist/series/pie/PieChart.d.ts +53 -0
- package/dist/series/polar/PolarChart.d.ts +18 -0
- package/dist/series/race/BarRaceChart.d.ts +44 -0
- package/dist/series/timeline/TimelineChart.d.ts +23 -0
- package/dist/series/venn/VennChart.d.ts +28 -0
- package/dist/stock/DataGrouping.d.ts +21 -0
- package/dist/stock/Navigator.d.ts +25 -0
- package/dist/stock/RangeSelector.d.ts +9 -0
- package/dist/stock/StockController.d.ts +47 -0
- package/dist/stockcharts.d.ts +8 -0
- package/dist/streaming/StreamAdapter.d.ts +36 -0
- package/dist/types/datatable-options.d.ts +633 -0
- package/dist/types/options.d.ts +1333 -0
- package/dist/utils/CircularBuffer.d.ts +24 -0
- package/dist/utils/chartText.d.ts +18 -0
- package/dist/utils/color.d.ts +23 -0
- package/dist/utils/decimation.d.ts +19 -0
- package/dist/utils/deepMerge.d.ts +5 -0
- package/dist/utils/dom.d.ts +10 -0
- package/dist/utils/format.d.ts +42 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/math.d.ts +6 -0
- package/dist/utils/throttle.d.ts +2 -0
- package/package.json +95 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixed-capacity ring buffer for bounded data storage.
|
|
3
|
+
* Evicts oldest items when capacity is reached.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CircularBuffer<T> {
|
|
6
|
+
private buffer;
|
|
7
|
+
private head;
|
|
8
|
+
private _size;
|
|
9
|
+
private capacity;
|
|
10
|
+
constructor(capacity: number);
|
|
11
|
+
/**
|
|
12
|
+
* Push an item, returning the evicted item if at capacity.
|
|
13
|
+
*/
|
|
14
|
+
push(item: T): T | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Push multiple items, returning all evicted items.
|
|
17
|
+
*/
|
|
18
|
+
pushMany(items: T[]): T[];
|
|
19
|
+
get size(): number;
|
|
20
|
+
get isFull(): boolean;
|
|
21
|
+
get(index: number): T | undefined;
|
|
22
|
+
toArray(): T[];
|
|
23
|
+
clear(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const DEFAULT_CHART_TEXT_SIZE = "12px";
|
|
2
|
+
export declare const DEFAULT_CHART_TEXT_COLOR = "#000000";
|
|
3
|
+
/**
|
|
4
|
+
* Picks a readable label color for text drawn on top of the given background
|
|
5
|
+
* fill. Dark ink is preferred and kept whenever its contrast against the fill
|
|
6
|
+
* meets the WCAG large-text threshold; only backgrounds dark enough to make
|
|
7
|
+
* dark text illegible (deep reds, near-blacks) are switched to white. An
|
|
8
|
+
* explicit `override` always wins, so caller-configured colors are never
|
|
9
|
+
* second-guessed, and unparseable fills (gradients, urls, transparent) fall
|
|
10
|
+
* back to the standard dark text color.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readableTextColor(background: string | undefined, override?: string): string;
|
|
13
|
+
export declare function parseFontSizePx(fontSize: string | undefined): number;
|
|
14
|
+
/**
|
|
15
|
+
* Measure the rendered width of a text string using canvas 2d measureText.
|
|
16
|
+
* Falls back to `length * fontPx * 0.62` when running in a non-DOM env.
|
|
17
|
+
*/
|
|
18
|
+
export declare function measureTextWidth(text: string, fontPx: number, fontWeight?: string, fontFamily?: string): number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface KatuChartsColor {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
a: number;
|
|
6
|
+
get(prop: 'rgba'): string;
|
|
7
|
+
brighten(amount: number): KatuChartsColor;
|
|
8
|
+
setOpacity(opacity: number): KatuChartsColor;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
11
|
+
export declare function parseColor(input: string | undefined | null): KatuChartsColor;
|
|
12
|
+
export declare const PALETTES: Record<string, string[]>;
|
|
13
|
+
export declare function getPalette(name: string): string[];
|
|
14
|
+
export declare const DEFAULT_COLORS: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Predefined themes — one light and one dark variant per family. The light
|
|
17
|
+
* variant uses the bare family name; the dark variant adds a `-dark` suffix.
|
|
18
|
+
* Each entry is a full options fragment that overrides every color surface, so
|
|
19
|
+
* passing it overwrites the chart's whole color identity.
|
|
20
|
+
*/
|
|
21
|
+
export declare const THEMES: Record<string, any>;
|
|
22
|
+
export declare const THEME_NAMES: string[];
|
|
23
|
+
export declare function getTheme(name: string): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Point decimation algorithms for rendering large datasets efficiently.
|
|
3
|
+
* Original data is never modified — these return reduced copies for rendering only.
|
|
4
|
+
*/
|
|
5
|
+
import type { PointOptions } from '../types/options';
|
|
6
|
+
/**
|
|
7
|
+
* Largest-Triangle-Three-Buckets (LTTB) decimation.
|
|
8
|
+
* Preserves visual shape better than simple sampling by selecting
|
|
9
|
+
* the point in each bucket that forms the largest triangle with
|
|
10
|
+
* the previously selected point and the average of the next bucket.
|
|
11
|
+
* O(n) time complexity.
|
|
12
|
+
*/
|
|
13
|
+
export declare function lttbDecimate(data: PointOptions[], targetPoints: number): PointOptions[];
|
|
14
|
+
/**
|
|
15
|
+
* Min-max decimation: for each bucket, keeps the min and max y-value points.
|
|
16
|
+
* Faster than LTTB but less visually accurate. Good for column/bar charts.
|
|
17
|
+
* O(n) time complexity.
|
|
18
|
+
*/
|
|
19
|
+
export declare function minMaxDecimate(data: PointOptions[], targetPoints: number): PointOptions[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM helper utilities.
|
|
3
|
+
*/
|
|
4
|
+
export declare function resolveContainer(containerOrId: string | HTMLElement): HTMLElement;
|
|
5
|
+
export declare function getElementDimensions(el: HTMLElement, heightAspectRatio?: number): {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function createDiv(className?: string, parent?: HTMLElement): HTMLDivElement;
|
|
10
|
+
export declare function removeElement(el: Element | null): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare function setUseUTC(value: boolean): void;
|
|
2
|
+
export declare function getUseUTC(): boolean;
|
|
3
|
+
export declare function dateFormat(formatStr: string, timestamp: number): string;
|
|
4
|
+
export declare function numberFormat(value: number, decimals?: number, decPoint?: string, thousandsSep?: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Formats a numeric value with SI suffixes (k, M, G, T) when the absolute
|
|
7
|
+
* value is >= 1,000, for standard axis label formatting.
|
|
8
|
+
* Values below 1,000 are shown as-is.
|
|
9
|
+
*/
|
|
10
|
+
export declare function siFormat(value: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Substitutes `{path}` / `{path:format}` placeholders in a template string with
|
|
13
|
+
* values resolved from `context`. When `escapeValues` is true the substituted
|
|
14
|
+
* data values are HTML-escaped while the surrounding template markup is left
|
|
15
|
+
* intact — use this whenever the result is injected as `innerHTML` so that
|
|
16
|
+
* user-supplied data (series/point names, categories) cannot inject markup.
|
|
17
|
+
*/
|
|
18
|
+
export declare function templateFormat(template: string, context: Record<string, any>, escapeValues?: boolean): string;
|
|
19
|
+
/**
|
|
20
|
+
* Escapes HTML-significant characters so untrusted data can be safely placed in
|
|
21
|
+
* an `innerHTML` string.
|
|
22
|
+
*/
|
|
23
|
+
export declare function escapeHtml(value: unknown): string;
|
|
24
|
+
/**
|
|
25
|
+
* Prepares a value for a CSV field. Cells whose text begins with a spreadsheet
|
|
26
|
+
* formula trigger (=, +, -, @, tab, CR) are prefixed with a single quote so
|
|
27
|
+
* Excel/Sheets treat them as text instead of executing them — plain numeric
|
|
28
|
+
* literals are exempt so negative numbers survive. The field is then quoted per
|
|
29
|
+
* RFC 4180 when it contains the delimiter, a double quote, or a line break.
|
|
30
|
+
*/
|
|
31
|
+
export declare function escapeCsvCell(value: unknown, delimiter?: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns `color` when it matches a safe CSS color token (hex, rgb/rgba,
|
|
34
|
+
* hsl/hsla, or a bare keyword), otherwise `fallback`. Prevents attribute
|
|
35
|
+
* injection when a user-supplied color is interpolated into an inline style.
|
|
36
|
+
*/
|
|
37
|
+
export declare function sanitizeColor(color: unknown, fallback?: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Strips HTML tags from a string, suitable for rendering text in SVG context
|
|
40
|
+
* where innerHTML is not available. <br/> tags are replaced with spaces.
|
|
41
|
+
*/
|
|
42
|
+
export declare function stripHtmlTags(text: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { deepMerge, deepClone } from './deepMerge';
|
|
2
|
+
export { resolveContainer, getElementDimensions, createDiv, removeElement } from './dom';
|
|
3
|
+
export { parseColor, DEFAULT_COLORS, type KatuChartsColor } from './color';
|
|
4
|
+
export { dateFormat, numberFormat, templateFormat, stripHtmlTags } from './format';
|
|
5
|
+
export { clamp, pick, isNumber, normalizeAngle, degreesToRadians, radiansToDegrees } from './math';
|
|
6
|
+
export { throttle, debounce } from './throttle';
|
|
7
|
+
export { CircularBuffer } from './CircularBuffer';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
2
|
+
export declare function pick<T>(...values: (T | undefined | null)[]): T;
|
|
3
|
+
export declare function isNumber(value: unknown): value is number;
|
|
4
|
+
export declare function normalizeAngle(angle: number): number;
|
|
5
|
+
export declare function degreesToRadians(degrees: number): number;
|
|
6
|
+
export declare function radiansToDegrees(radians: number): number;
|
package/package.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "katucharts.js",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "D3.js charting library with a simple declarative interface",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/katucharts.umd.js",
|
|
7
|
+
"module": "./dist/katucharts.es.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/katucharts.es.js",
|
|
12
|
+
"require": "./dist/katucharts.umd.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./bio": {
|
|
16
|
+
"import": "./dist/katucharts-bio.es.js",
|
|
17
|
+
"require": "./dist/katucharts-bio.umd.js",
|
|
18
|
+
"types": "./dist/bio.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./finance": {
|
|
21
|
+
"import": "./dist/katucharts-finance.es.js",
|
|
22
|
+
"require": "./dist/katucharts-finance.umd.js",
|
|
23
|
+
"types": "./dist/finance.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./datatable": {
|
|
26
|
+
"import": "./dist/katucharts-datatable.es.js",
|
|
27
|
+
"require": "./dist/katucharts-datatable.umd.js",
|
|
28
|
+
"types": "./dist/datatable.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./react": {
|
|
31
|
+
"import": "./dist/katucharts-react.es.js",
|
|
32
|
+
"require": "./dist/katucharts-react.umd.js",
|
|
33
|
+
"types": "./dist/react.d.ts"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"charts",
|
|
38
|
+
"charting",
|
|
39
|
+
"d3",
|
|
40
|
+
"visualization",
|
|
41
|
+
"svg",
|
|
42
|
+
"graphs",
|
|
43
|
+
"data-visualization"
|
|
44
|
+
],
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"build": "vite build && BUILD_ENTRY=bio vite build && BUILD_ENTRY=finance vite build && BUILD_ENTRY=datatable vite build && BUILD_ENTRY=react vite build && tsc --emitDeclarationOnly",
|
|
51
|
+
"preview": "vite preview"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@noble/curves": "^2.2.0",
|
|
55
|
+
"d3": "^7.9.0",
|
|
56
|
+
"d3-sankey": "^0.12.3",
|
|
57
|
+
"topojson-client": "^3.1.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/d3": "^7.4.3",
|
|
61
|
+
"@types/d3-sankey": "^0.12.5",
|
|
62
|
+
"@types/react": "^18.0.0",
|
|
63
|
+
"@types/topojson-client": "^3.1.5",
|
|
64
|
+
"jsdom": "^24.0.0",
|
|
65
|
+
"typescript": "^5.4.0",
|
|
66
|
+
"vite": "^5.4.0",
|
|
67
|
+
"vitest": "^2.0.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"jspdf": "^2.5.0",
|
|
71
|
+
"react": ">=17.0.0",
|
|
72
|
+
"react-dom": ">=17.0.0"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"jspdf": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"react": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"react-dom": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"author": "katudv",
|
|
86
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
87
|
+
"homepage": "https://github.com/Katu-Data-Visualization/katucharts",
|
|
88
|
+
"repository": {
|
|
89
|
+
"type": "git",
|
|
90
|
+
"url": "git+https://github.com/Katu-Data-Visualization/katucharts.git"
|
|
91
|
+
},
|
|
92
|
+
"bugs": {
|
|
93
|
+
"url": "https://github.com/Katu-Data-Visualization/katucharts/issues"
|
|
94
|
+
}
|
|
95
|
+
}
|