Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03e1acc

Browse files
committed
Moved IRenderOptions to render plugin.
1 parent 82d9b6c commit 03e1acc

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-forge-plot",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Plotting API for use with Data-Forge.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

src/plot-api.ts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_CHART_PACKAGE = "@data-forge-plot/apex";
1616
//
1717
// TODO :export let globalChartRenderer: IChartRenderer | null = null;
1818

19-
async function findChartTemplatePath(): Promise<string> {
19+
export async function findChartTemplatePath(): Promise<string> {
2020
const defaultTemplatePath = require.resolve(`${DEFAULT_CHART_PACKAGE}/build/template/template.json`);
2121
const chartTemplatesPath = path.dirname(defaultTemplatePath);
2222
return chartTemplatesPath;
@@ -38,34 +38,6 @@ export async function endPlot(): Promise<void> {
3838
*/
3939
}
4040

41-
/**
42-
* Options for image rendering.
43-
*/
44-
export interface IRenderOptions {
45-
/**
46-
* Open the image in your default image viewer.
47-
*/
48-
openImage?: boolean;
49-
50-
/**
51-
* Path to electron, so that electron can be installed separately to a different location and shared
52-
* between the various packages that need it.
53-
*
54-
* Electron is used to render charts and capture them to images.
55-
*/
56-
electronPath?: string;
57-
58-
/**
59-
* Name of the template used to render the image.
60-
*/
61-
template?: string;
62-
63-
/**
64-
* Set to true to show the chart definition after expansion and also after formatting.
65-
*/
66-
showChartDef?: boolean;
67-
}
68-
6941
/**
7042
* Options for exporting web projects for interactive charts.
7143
*/

0 commit comments

Comments
 (0)