Skip to content

Commit 9c7184b

Browse files
committed
fix: make layout parameters optional
Closes #43
1 parent 2508e48 commit 9c7184b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodeplotlib",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "NodeJS frontend-less plotting lib using plotly.js inspired by matplotlib",
55
"main": "dist/lib/index.js",
66
"types": "dist/lib/index.d.ts",

src/models/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from 'plotly.js';
2+
13
export * from './plots-container';
2-
export * from './plot';
3-
export * from 'plotly.js';
4+
export { Layout, Plot, IPlot } from './plot';

src/models/plot.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Layout, PlotData } from 'plotly.js';
1+
import { Layout as FullLayout, PlotData } from 'plotly.js';
22

33
export type Plot = Partial<PlotData>;
4+
export type Layout = Partial<FullLayout>;
45

56
export interface IPlot {
67
data: Plot[];
7-
layout?: Partial<Layout>;
8+
layout?: Layout;
89
}

0 commit comments

Comments
 (0)