@hpcc-js/wasm 1.19.1 → 1.20.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/bin/sfx-wasm.mjs +14 -6
- package/bin/sfx-wasm.mjs.map +1 -1
- package/dist/graphviz.es6.js +3 -0
- package/dist/graphviz.es6.js.map +1 -1
- package/dist/graphviz.js +3 -0
- package/dist/graphviz.js.map +1 -1
- package/dist/graphvizlib.wasm +0 -0
- package/dist/index.es6.js +4 -679
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +3 -679
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.es6.mjs +4 -679
- package/dist/index.node.es6.mjs.map +1 -1
- package/dist/index.node.js +3 -679
- package/dist/index.node.js.map +1 -1
- package/dist/sfx-graphviz.esm.js +890 -0
- package/dist/sfx-graphviz.esm.js.map +1 -0
- package/dist/sfx-graphviz.js +904 -0
- package/dist/sfx-graphviz.js.map +1 -0
- package/dist/sfx-graphviz.min.js +1 -0
- package/dist/sfx-graphviz.min.js.map +1 -0
- package/package.json +13 -3
- package/types/__tests__/browser-tests.d.ts +2 -0
- package/types/__tests__/browser-tests.d.ts.map +1 -0
- package/types/__tests__/index-common.d.ts +5 -0
- package/types/__tests__/index-common.d.ts.map +1 -0
- package/types/__tests__/index-node.d.ts +3 -0
- package/types/__tests__/index-node.d.ts.map +1 -0
- package/types/__tests__/index.d.ts +2 -4
- package/types/__tests__/index.d.ts.map +1 -1
- package/types/__tests__/node-tests.d.ts +2 -0
- package/types/__tests__/node-tests.d.ts.map +1 -0
- package/types/__tests__/worker-browser.d.ts +2 -0
- package/types/__tests__/worker-browser.d.ts.map +1 -0
- package/types/__tests__/worker-node.d.ts +2 -0
- package/types/__tests__/worker-node.d.ts.map +1 -0
- package/types/extract.d.ts.map +1 -1
- package/types/graphviz.d.ts.map +1 -1
- package/types/index-common.d.ts +0 -1
- package/types/index-common.d.ts.map +1 -1
- package/types/sfx-graphviz.d.ts +59 -0
- package/types/sfx-graphviz.d.ts.map +1 -0
- package/dist/extract.es6.js +0 -680
- package/dist/extract.es6.js.map +0 -1
- package/dist/extract.js +0 -690
- package/dist/extract.js.map +0 -1
- package/types/__tests__/worker.d.ts +0 -2
- package/types/__tests__/worker.d.ts.map +0 -1
package/dist/graphviz.js
CHANGED
|
@@ -90,12 +90,14 @@
|
|
|
90
90
|
[...ext.files, ...imagesToFiles(ext.images)].forEach(file => graphviz.createFile(file.path, file.data));
|
|
91
91
|
}
|
|
92
92
|
function graphvizVersion(wasmFolder, wasmBinary) {
|
|
93
|
+
console.warn("Deprecation Warning: 'graphvizVersion' will be refactored into 'Graphviz' in 2.0.0");
|
|
93
94
|
return loadWasm(graphvizlib, "graphvizlib", wasmFolder, wasmBinary).then(module => {
|
|
94
95
|
return module.Graphviz.prototype.version();
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
const graphviz = {
|
|
98
99
|
layout(dotSource, outputFormat = "svg", layoutEngine = "dot", ext) {
|
|
100
|
+
console.warn("Deprecation Warning: 'graphviz' will be replaced with 'Graphviz' in 2.0.0");
|
|
99
101
|
if (!dotSource)
|
|
100
102
|
return Promise.resolve("");
|
|
101
103
|
return loadWasm(graphvizlib, "graphvizlib", ext?.wasmFolder, ext?.wasmBinary).then(module => {
|
|
@@ -146,6 +148,7 @@
|
|
|
146
148
|
this._wasm = _wasm;
|
|
147
149
|
}
|
|
148
150
|
layout(dotSource, outputFormat = "svg", layoutEngine = "dot", ext) {
|
|
151
|
+
console.warn("Deprecation Warning: 'GraphvizSync' will be replaced with 'Graphviz' in 2.0.0");
|
|
149
152
|
if (!dotSource)
|
|
150
153
|
return "";
|
|
151
154
|
const graphViz = new this._wasm.Graphviz(ext?.yInvert ? 1 : 0, ext?.nop ? ext?.nop : 0);
|