@dpuse/dpuse-tool-d3 0.0.11 → 0.0.12
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/README.md +6 -5
- package/dist/billboardJs-DHDJ97w1.js +7313 -0
- package/dist/billboardJs-DHDJ97w1.js.map +1 -0
- package/dist/dpuse-tool-d3.es.js +11 -7321
- package/dist/dpuse-tool-d3.es.js.map +1 -1
- package/dist/observablePlot-CNlbR_T4.js.map +1 -1
- package/dist/types/src/{barChart.d.ts → billboardJs.d.ts} +2 -2
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/observablePlot.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/types/tests/{barChart.test.d.ts → billboardJs.test.d.ts} +0 -0
|
@@ -7,9 +7,9 @@ export interface BarChartData {
|
|
|
7
7
|
categories: string[];
|
|
8
8
|
series: BarChartSeries[];
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface BillboardJSHandle {
|
|
11
11
|
chart: Chart;
|
|
12
12
|
destroy: () => void;
|
|
13
13
|
resize: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function renderBillboardJS(data: BarChartData, renderTo: HTMLElement): BillboardJSHandle;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Chart } from 'billboard.js';
|
|
2
2
|
import { PresentationView } from '@dpuse/dpuse-shared/component/presentation';
|
|
3
|
-
import { BarChartData } from './
|
|
3
|
+
import { BarChartData } from './billboardJs';
|
|
4
4
|
import { ObservablePlotChartTypeId } from './observablePlot';
|
|
5
5
|
import { ErdDiagramData, ErdDiagramOptions } from './erdDiagram';
|
|
6
6
|
import { NetworkDiagramData, NetworkDiagramOptions } from './networkDiagram';
|
|
7
7
|
import { SankeyDiagramData, SankeyDiagramOptions } from './sankeyDiagram';
|
|
8
8
|
import { TreeDiagramNode, TreeDiagramOptions } from './treeDiagram';
|
|
9
|
-
export type { BarChartData, BarChartSeries } from './
|
|
9
|
+
export type { BarChartData, BarChartSeries } from './billboardJs';
|
|
10
10
|
export type { ErdDiagramData, ErdDiagramEdge, ErdDiagramNode, ErdDiagramNodeTypeId, ErdDiagramOptions } from './erdDiagram';
|
|
11
11
|
export type { NetworkDiagramData, NetworkDiagramLink, NetworkDiagramNode, NetworkDiagramOptions } from './networkDiagram';
|
|
12
12
|
export type { ObservablePlotChartTypeId } from './observablePlot';
|
|
@@ -24,7 +24,7 @@ export interface D3BarChartView extends PresentationView {
|
|
|
24
24
|
destroy: () => void;
|
|
25
25
|
}
|
|
26
26
|
export declare class D3Tool {
|
|
27
|
-
|
|
27
|
+
renderBillboardJS(data: BarChartData, renderTo: HTMLElement, callback?: () => void): Promise<D3BarChartView>;
|
|
28
28
|
renderObservablePlot(typeId: ObservablePlotChartTypeId, data: BarChartData, renderTo: HTMLElement, callback?: () => void): Promise<D3View>;
|
|
29
29
|
renderErdDiagram(data: ErdDiagramData, renderTo: HTMLElement, options?: ErdDiagramOptions, callback?: () => void): Promise<D3View>;
|
|
30
30
|
renderNetworkDiagram(data: NetworkDiagramData, renderTo: HTMLElement, options?: NetworkDiagramOptions, callback?: () => void): Promise<D3NetworkView>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BarChartData } from './
|
|
2
|
-
export type { BarChartData, BarChartSeries } from './
|
|
1
|
+
import { BarChartData } from './billboardJs';
|
|
2
|
+
export type { BarChartData, BarChartSeries } from './billboardJs';
|
|
3
3
|
export type ObservablePlotChartTypeId = 'bar';
|
|
4
4
|
export interface ObservablePlotHandle {
|
|
5
5
|
resize: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-tool-d3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"private": false,
|
|
5
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",
|
|
File without changes
|