@dpuse/dpuse-tool-d3 0.0.5 → 0.0.7
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.
|
@@ -23,6 +23,7 @@ export interface D3BarChartView extends PresentationView {
|
|
|
23
23
|
}
|
|
24
24
|
export declare class D3Tool {
|
|
25
25
|
renderBarChart(data: BarChartData, renderTo: HTMLElement, callback?: () => void): D3BarChartView;
|
|
26
|
+
renderPlotBarChart(data: BarChartData, renderTo: HTMLElement, callback?: () => void): D3View;
|
|
26
27
|
renderErdDiagram(data: ErdDiagramData, renderTo: HTMLElement, options?: ErdDiagramOptions, callback?: () => void): D3View;
|
|
27
28
|
renderNetworkDiagram(data: NetworkDiagramData, renderTo: HTMLElement, options?: NetworkDiagramOptions, callback?: () => void): D3NetworkView;
|
|
28
29
|
renderSankeyDiagram(data: SankeyDiagramData, renderTo: HTMLElement, options?: SankeyDiagramOptions, callback?: () => void): D3View;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BarChartData } from './barChart';
|
|
2
|
+
export type { BarChartData, BarChartSeries } from './barChart';
|
|
3
|
+
export interface PlotBarChartHandle {
|
|
4
|
+
resize: () => void;
|
|
5
|
+
svg: SVGSVGElement;
|
|
6
|
+
}
|
|
7
|
+
export declare function renderPlotBarChart(data: BarChartData, renderTo: HTMLElement): PlotBarChartHandle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-tool-d3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "A TypeScript wrapper for D3
|
|
5
|
+
"description": "A TypeScript wrapper for D3, Billboard.js, and Observable Plot that implements the Data Positioning chart-rendering interface, providing ERD (dagre), Sankey (d3-sankey), network (d3-force), tree (d3-hierarchy), and bar chart (billboard.js, Observable Plot) renderers.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
8
8
|
"type": "module",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@dagrejs/dagre": "^3.0.0",
|
|
59
59
|
"@dpuse/dpuse-shared": "^0.3.758",
|
|
60
|
+
"@observablehq/plot": "^0.6.17",
|
|
60
61
|
"billboard.js": "^4.0.3",
|
|
61
62
|
"d3-drag": "^3.0.0",
|
|
62
63
|
"d3-force": "^3.0.0",
|
|
@@ -85,6 +86,6 @@
|
|
|
85
86
|
"vite": "^8.2.0",
|
|
86
87
|
"vite-plugin-dts": "^5.0.3",
|
|
87
88
|
"vitest": "^4.1.10",
|
|
88
|
-
"wrangler": "^4.
|
|
89
|
+
"wrangler": "^4.118.0"
|
|
89
90
|
}
|
|
90
91
|
}
|