@hpcc-js/wasm-graphviz 1.20.1 → 1.21.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/dist/index.js +10 -10
- package/dist/index.js.map +4 -4
- package/package.json +3 -3
- package/src/graphviz.ts +5 -4
- package/types/graphviz.d.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/wasm-graphviz",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"description": "hpcc-js - WASM Graphviz",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"update-major": "npx -y npm-check-updates -u"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@hpcc-js/esbuild-plugins": "1.8.
|
|
39
|
+
"@hpcc-js/esbuild-plugins": "1.8.3",
|
|
40
40
|
"@hpcc-js/wasm-util": "1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/",
|
|
57
57
|
"license": "Apache-2.0",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "0199646cd7680d07e1619e593dc189c47bc25c1a"
|
|
59
59
|
}
|
package/src/graphviz.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-expect-error importing from a wasm file is resolved via a custom esbuild plugin
|
|
2
2
|
import load, { reset } from "../../../build/packages/graphviz/graphvizlib.wasm";
|
|
3
3
|
import type { MainModule } from "../types/graphvizlib.js";
|
|
4
|
-
import { MainModuleEx } from "@hpcc-js/wasm-util";
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Various graphic and data formats for end user, web, documents and other applications. See [Output Formats](https://graphviz.gitlab.io/docs/outputs/) for more information.
|
|
@@ -91,13 +90,15 @@ let g_graphviz: Promise<Graphviz> | undefined;
|
|
|
91
90
|
* ```
|
|
92
91
|
*
|
|
93
92
|
* ### Online Demos
|
|
94
|
-
* * https://raw.githack.com/hpcc-systems/hpcc-js-wasm/
|
|
93
|
+
* * https://raw.githack.com/hpcc-systems/hpcc-js-wasm/main/index.html
|
|
95
94
|
* * https://observablehq.com/@gordonsmith/graphviz
|
|
96
95
|
*/
|
|
97
|
-
export class Graphviz
|
|
96
|
+
export class Graphviz {
|
|
97
|
+
|
|
98
|
+
private _module: MainModule;
|
|
98
99
|
|
|
99
100
|
private constructor(_module: MainModule) {
|
|
100
|
-
|
|
101
|
+
this._module = _module;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/**
|
package/types/graphviz.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { MainModule } from "../types/graphvizlib.js";
|
|
2
|
-
import { MainModuleEx } from "@hpcc-js/wasm-util";
|
|
3
1
|
/**
|
|
4
2
|
* Various graphic and data formats for end user, web, documents and other applications. See [Output Formats](https://graphviz.gitlab.io/docs/outputs/) for more information.
|
|
5
3
|
*/
|
|
@@ -59,10 +57,11 @@ export interface Options {
|
|
|
59
57
|
* ```
|
|
60
58
|
*
|
|
61
59
|
* ### Online Demos
|
|
62
|
-
* * https://raw.githack.com/hpcc-systems/hpcc-js-wasm/
|
|
60
|
+
* * https://raw.githack.com/hpcc-systems/hpcc-js-wasm/main/index.html
|
|
63
61
|
* * https://observablehq.com/@gordonsmith/graphviz
|
|
64
62
|
*/
|
|
65
|
-
export declare class Graphviz
|
|
63
|
+
export declare class Graphviz {
|
|
64
|
+
private _module;
|
|
66
65
|
private constructor();
|
|
67
66
|
/**
|
|
68
67
|
* Compiles and instantiates the raw wasm.
|