@hpcc-js/wasm 1.20.1 → 2.0.0

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.
Files changed (87) hide show
  1. package/README.md +5 -670
  2. package/bin/{dot-wasm.mjs → dot-wasm.js} +8 -17
  3. package/bin/dot-wasm.js.map +1 -0
  4. package/dist/base91.js +2 -0
  5. package/dist/base91.js.map +1 -0
  6. package/dist/base91.umd.js +2 -0
  7. package/dist/base91.umd.js.map +1 -0
  8. package/dist/expat.js +1 -151
  9. package/dist/expat.js.map +1 -1
  10. package/dist/expat.umd.js +2 -0
  11. package/dist/expat.umd.js.map +1 -0
  12. package/dist/graphviz.js +1 -206
  13. package/dist/graphviz.js.map +1 -1
  14. package/dist/graphviz.umd.js +2 -0
  15. package/dist/graphviz.umd.js.map +1 -0
  16. package/dist/zstd.js +1 -175
  17. package/dist/zstd.js.map +1 -1
  18. package/dist/zstd.umd.js +2 -0
  19. package/dist/zstd.umd.js.map +1 -0
  20. package/package.json +71 -74
  21. package/types/__bin__/dot-wasm.d.ts +2 -0
  22. package/types/__bin__/dot-wasm.d.ts.map +1 -0
  23. package/types/__tests__/graphviz.d.ts +1 -1
  24. package/types/__tests__/graphviz.d.ts.map +1 -1
  25. package/types/__tests__/index-browser.d.ts +3 -0
  26. package/types/__tests__/index-browser.d.ts.map +1 -0
  27. package/types/__tests__/index-common.d.ts +4 -4
  28. package/types/__tests__/index-common.d.ts.map +1 -1
  29. package/types/__tests__/index-node.d.ts +2 -2
  30. package/types/__tests__/index-node.d.ts.map +1 -1
  31. package/types/base91.d.ts +37 -2
  32. package/types/base91.d.ts.map +1 -1
  33. package/types/expat.d.ts +58 -3
  34. package/types/expat.d.ts.map +1 -1
  35. package/types/graphviz.d.ts +145 -28
  36. package/types/graphviz.d.ts.map +1 -1
  37. package/types/index.d.ts +9 -1
  38. package/types/index.d.ts.map +1 -1
  39. package/types/wasm-library.d.ts +10 -11
  40. package/types/wasm-library.d.ts.map +1 -1
  41. package/types/zstd.d.ts +48 -3
  42. package/types/zstd.d.ts.map +1 -1
  43. package/bin/dot-wasm.mjs.map +0 -1
  44. package/bin/sfx-wasm.mjs +0 -52
  45. package/bin/sfx-wasm.mjs.map +0 -1
  46. package/dist/base91lib.wasm +0 -0
  47. package/dist/expat.es6.js +0 -139
  48. package/dist/expat.es6.js.map +0 -1
  49. package/dist/expatlib.wasm +0 -0
  50. package/dist/graphviz.es6.js +0 -194
  51. package/dist/graphviz.es6.js.map +0 -1
  52. package/dist/graphvizlib.wasm +0 -0
  53. package/dist/index.es6.js +0 -474
  54. package/dist/index.es6.js.map +0 -1
  55. package/dist/index.js +0 -494
  56. package/dist/index.js.map +0 -1
  57. package/dist/index.min.js +0 -1
  58. package/dist/index.min.js.map +0 -1
  59. package/dist/index.node.es6.mjs +0 -483
  60. package/dist/index.node.es6.mjs.map +0 -1
  61. package/dist/index.node.js +0 -497
  62. package/dist/index.node.js.map +0 -1
  63. package/dist/sfx-graphviz.esm.js +0 -890
  64. package/dist/sfx-graphviz.esm.js.map +0 -1
  65. package/dist/sfx-graphviz.js +0 -904
  66. package/dist/sfx-graphviz.js.map +0 -1
  67. package/dist/sfx-graphviz.min.js +0 -1
  68. package/dist/sfx-graphviz.min.js.map +0 -1
  69. package/dist/zstd.es6.js +0 -166
  70. package/dist/zstd.es6.js.map +0 -1
  71. package/dist/zstdlib.wasm +0 -0
  72. package/types/__bin__/dot-wasm.d.mts +0 -2
  73. package/types/__bin__/dot-wasm.d.mts.map +0 -1
  74. package/types/__bin__/sfx-wasm.d.mts +0 -2
  75. package/types/__bin__/sfx-wasm.d.mts.map +0 -1
  76. package/types/__tests__/index.d.ts +0 -3
  77. package/types/__tests__/index.d.ts.map +0 -1
  78. package/types/fetch-browser.d.ts +0 -2
  79. package/types/fetch-browser.d.ts.map +0 -1
  80. package/types/fetch-node.d.ts +0 -3
  81. package/types/fetch-node.d.ts.map +0 -1
  82. package/types/index-common.d.ts +0 -6
  83. package/types/index-common.d.ts.map +0 -1
  84. package/types/index-node.d.ts +0 -2
  85. package/types/index-node.d.ts.map +0 -1
  86. package/types/sfx-graphviz.d.ts +0 -59
  87. package/types/sfx-graphviz.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/wasm",
3
- "version": "1.20.1",
3
+ "version": "2.0.0",
4
4
  "description": "hpcc-js - WASM Libraries",
5
5
  "keywords": [
6
6
  "graphviz",
@@ -15,48 +15,37 @@
15
15
  "patchwork",
16
16
  "xml"
17
17
  ],
18
+ "type": "module",
18
19
  "exports": {
19
- ".": {
20
- "types": "./types/index.d.ts",
21
- "node": {
22
- "import": "./dist/index.node.es6.mjs",
23
- "require": "./dist/index.node.js"
24
- },
25
- "browser": {
26
- "import": "./dist/index.es6.js",
27
- "default": "./dist/index.js"
28
- },
29
- "expat": {
30
- "import": "./dist/expat.es6.js",
31
- "default": "./dist/expat.js"
32
- },
33
- "extract": {
34
- "import": "./dist/extract.es6.js",
35
- "default": "./dist/extract.js"
36
- },
37
- "graphviz": {
38
- "import": "./dist/graphviz.es6.js",
39
- "default": "./dist/graphviz.js"
40
- },
41
- "sfx-graphviz": {
42
- "import": "./dist/sfx-graphviz.esm.js",
43
- "default": "./dist/sfx-graphviz.js"
44
- },
45
- "zstd": {
46
- "import": "./dist/zstd.es6.js",
47
- "default": "./dist/zstd.js"
48
- },
49
- "default": "./dist/index.js"
20
+ "./base91": {
21
+ "types": "./types/base91.d.ts",
22
+ "import": "./dist/base91.js",
23
+ "default": "./dist/base91.umd.js"
24
+ },
25
+ "./expat": {
26
+ "types": "./types/expat.d.ts",
27
+ "import": "./dist/expat.js",
28
+ "default": "./dist/expat.umd.js"
29
+ },
30
+ "./graphviz": {
31
+ "types": "./types/graphviz.d.ts",
32
+ "import": "./dist/graphviz.js",
33
+ "default": "./dist/graphviz.umd.js"
34
+ },
35
+ "./zstd": {
36
+ "types": "./types/zstd.d.ts",
37
+ "import": "./dist/zstd.js",
38
+ "default": "./dist/zstd.umd.js"
50
39
  }
51
40
  },
52
- "main": "dist/index.node.js",
53
- "module": "dist/index.node.es6.mjs",
54
- "browser": "dist/index.js",
55
- "unpkg": "dist/index.min.js",
56
- "jsdelivr": "dist/index.min.js",
57
- "types": "types/index.d.ts",
41
+ "main": "./dist/graphviz.umd.js",
42
+ "module": "./dist/graphviz.js",
43
+ "browser": "./dist/graphviz.umd.js",
44
+ "unpkg": "./dist/index.umd.min.js",
45
+ "jsdelivr": "./dist/index.umd.min.js",
46
+ "types": "./types/index.d.ts",
58
47
  "bin": {
59
- "dot-wasm": "bin/dot-wasm.mjs"
48
+ "dot-wasm": "./bin/dot-wasm.js"
60
49
  },
61
50
  "files": [
62
51
  "bin/*.*",
@@ -76,37 +65,46 @@
76
65
  "install-vcpkg:win32": "wsl -e ./scripts/cpp-install-vcpkg.sh",
77
66
  "install-build-deps": "run-p install-emsdk install-graphviz install-vcpkg",
78
67
  "uninstall-build-deps": "rimraf ./emsdk ./src-graphviz ./vcpkg ./src-expat ./src-vcpkg",
79
- "clean": "rimraf bin build coverage dist* lib* output-* tmp types *.tsbuildinfo",
68
+ "clean-build": "rimraf bin build coverage dist* lib* output-* tmp types *.tsbuildinfo",
69
+ "clean-docs": "rimraf docs/.vitepress/dist docs/classes docs/interfaces docs/modules docs/.nojekyll docs/README.md",
70
+ "clean": "run-p clean-build clean-docs",
71
+ "copy-res": "cp ./docs/hpccsystems.png ./docs/.vitepress/dist",
80
72
  "compile": "tsc",
81
73
  "compile-watch": "npm run compile -- -w",
82
74
  "compile-cpp": "run-script-os",
83
75
  "compile-cpp:linux": "./scripts/cpp-build.sh",
84
76
  "compile-cpp:win32": "wsl -e ./scripts/cpp-build.sh",
85
77
  "bundle": "rollup -c",
86
- "bundle-watch": "npm run bundle -- -w",
87
- "bundle-sfx": "rollup -c ./rollup-sfx.config.mjs",
88
- "gen-sfx-base91": "node ./bin/sfx-wasm.mjs ./build/cpp/base91/base91lib.wasm > ./lib-es6/base91lib.wasm.js",
89
- "gen-sfx-expat": "node ./bin/sfx-wasm.mjs ./build/cpp/expat/expatlib/expatlib.wasm > ./lib-es6/expatlib.wasm.js",
90
- "gen-sfx-graphviz": "node ./bin/sfx-wasm.mjs ./build/cpp/graphviz/graphvizlib/graphvizlib.wasm > ./lib-es6/graphvizlib.wasm.js",
91
- "gen-sfx-zstd": "node ./bin/sfx-wasm.mjs ./build/cpp/zstd/zstdlib.wasm > ./lib-es6/zstdlib.wasm.js",
92
- "gen-sfx": "run-p gen-sfx-base91 gen-sfx-expat gen-sfx-graphviz gen-sfx-graphviz",
93
- "minimize": "terser dist/index.js -c -m --source-map -o dist/index.min.js && terser dist/sfx-graphviz.js -c -m --source-map -o dist/sfx-graphviz.min.js",
94
- "build": "run-s compile-cpp compile bundle gen-sfx bundle-sfx minimize",
78
+ "bundle-debug": "rollup -c --configDebug",
79
+ "bundle-watch": "npm run bundle-debug -- -w",
80
+ "bundle-sfx": "rollup -c ./rollup-sfx.config.js",
81
+ "gen-sfx-base91": "node ./utils/sfx-wasm.js ./build/cpp/base91/base91lib.wasm > ./lib-esm/base91lib.wasm.js",
82
+ "gen-sfx-expat": "node ./utils/sfx-wasm.js ./build/cpp/expat/expatlib/expatlib.wasm > ./lib-esm/expatlib.wasm.js",
83
+ "gen-sfx-graphviz": "node ./utils/sfx-wasm.js ./build/cpp/graphviz/graphvizlib/graphvizlib.wasm > ./lib-esm/graphvizlib.wasm.js",
84
+ "gen-sfx-zstd": "node ./utils/sfx-wasm.js ./build/cpp/zstd/zstdlib.wasm > ./lib-esm/zstdlib.wasm.js",
85
+ "gen-sfx": "mkdir -p ./lib-esm && run-p gen-sfx-base91 gen-sfx-expat gen-sfx-graphviz gen-sfx-graphviz gen-sfx-zstd",
86
+ "gen-docs": "typedoc",
87
+ "gen-docs-watch": "typedoc --watch",
88
+ "build-docs-vitepress": "vitepress build docs",
89
+ "build-docs": "run-s gen-docs build-docs-vitepress copy-res",
90
+ "build-docs-watch": "vitepress dev docs",
95
91
  "build-docker": "docker build --rm --progress plain -f \"./docker/ubuntu-dev.dockerfile\" -t hpcc-js-wasm-build:latest \".\"",
92
+ "build": "run-s compile-cpp gen-sfx compile bundle",
96
93
  "standard-version": "standard-version",
97
94
  "standard-version-dryrun": "standard-version --dry-run",
98
95
  "git-push": "git push --follow-tags upstream trunk",
99
96
  "watch": "run-p compile-watch bundle-watch",
100
- "dev-start": "ws",
97
+ "serve-docs": "vitepress serve docs",
98
+ "serve": "ws",
101
99
  "lint": "eslint src/**/*.ts",
102
100
  "lint-fix": "npm run lint -- --fix",
103
- "test-cli": "node ./bin/dot-wasm.mjs -v",
104
- "test-cli-help": "node ./bin/dot-wasm.mjs",
105
- "test-bundle": "npx -y esbuild --bundle ./dist/index.js --bundle ./dist/index.es6.js --outdir=tmp",
106
- "test-bundle-node": "npx -y esbuild --bundle --platform=node --bundle ./dist/index.node.js ./dist/index.node.es6.mjs --outdir=tmp",
107
- "test-chrome": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
108
- "test-firefox": "karma start --single-run --browsers Firefox karma.conf.js",
109
- "test-node": "node ./bin/dot-wasm.mjs -v && mocha ./dist-test/index.node.js --reporter spec",
101
+ "test-cli": "node ./bin/dot-wasm.js -v",
102
+ "test-cli-help": "node ./bin/dot-wasm.js",
103
+ "test-bundle": "npx -y esbuild --bundle ./dist/base91.umd.js --bundle ./dist/base91.js --outdir=tmp",
104
+ "test-bundle-node": "npx -y esbuild --bundle --platform=node --bundle ./dist/base91.umd.js ./dist/base91.js --outdir=tmp",
105
+ "test-chrome": "karma start --single-run --browsers ChromeHeadless karma.conf.cjs",
106
+ "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
107
+ "test-node": "node ./bin/dot-wasm.js -v && mocha ./dist-test/index.node.cjs --reporter spec && mocha ./dist-test/index.node.js --reporter spec",
110
108
  "test": "run-s test-bundle test-bundle-node test-chrome test-node",
111
109
  "tag": "run-s standard-version git-push",
112
110
  "purge-jsdelivr": "node ./utils/purge-jsdelivr.js",
@@ -114,42 +112,41 @@
114
112
  "update": "npx npm-check-updates -u -t minor"
115
113
  },
116
114
  "dependencies": {
117
- "yargs": "17.6.0"
115
+ "@rollup/plugin-typescript": "^9.0.2",
116
+ "yargs": "17.6.2"
118
117
  },
119
118
  "devDependencies": {
120
- "@rollup/plugin-alias": "3.1.9",
121
- "@rollup/plugin-commonjs": "22.0.2",
122
- "@rollup/plugin-node-resolve": "13.3.0",
123
- "@rollup/plugin-replace": "4.0.0",
124
- "@rollup/plugin-wasm": "6.0.1",
119
+ "@rollup/plugin-commonjs": "23.0.2",
120
+ "@rollup/plugin-node-resolve": "15.0.1",
121
+ "@rollup/plugin-terser": "0.1.0",
125
122
  "@types/chai": "4.3.3",
126
123
  "@types/emscripten": "1.39.6",
127
- "@types/mocha": "9.1.1",
128
- "@types/yargs": "^17.0.13",
124
+ "@types/mocha": "10.0.0",
125
+ "@types/yargs": "17.0.13",
129
126
  "@typescript-eslint/eslint-plugin": "5.42.0",
130
127
  "@typescript-eslint/parser": "5.42.0",
131
128
  "chai": "4.3.6",
132
- "eslint": "8.26.0",
133
- "fzstd": "^0.0.4",
129
+ "eslint": "8.27.0",
130
+ "fzstd": "0.0.4",
134
131
  "karma": "6.4.1",
135
132
  "karma-chai": "0.1.0",
136
133
  "karma-chrome-launcher": "3.1.1",
137
- "karma-firefox-launcher": "^2.1.2",
134
+ "karma-firefox-launcher": "2.1.2",
138
135
  "karma-mocha": "2.0.1",
139
136
  "karma-spec-reporter": "0.0.34",
140
137
  "local-web-server": "5.2.1",
141
138
  "mocha": "10.1.0",
142
- "node-base91": "^0.3.4",
143
- "node-fetch": "3.2.10",
144
139
  "npm-run-all": "4.1.5",
145
140
  "rimraf": "3.0.2",
146
- "rollup": "2.79.1",
147
- "rollup-plugin-sourcemaps": "^0.6.3",
141
+ "rollup": "3.2.5",
142
+ "rollup-plugin-sourcemaps": "0.6.3",
148
143
  "run-script-os": "1.1.6",
149
144
  "standard-version": "9.5.0",
150
- "terser": "5.15.1",
151
145
  "tslib": "2.4.1",
152
- "typescript": "4.8.4"
146
+ "typedoc": "^0.23.20",
147
+ "typedoc-plugin-markdown": "^3.13.6",
148
+ "typescript": "4.8.4",
149
+ "vitepress": "1.0.0-alpha.27"
153
150
  },
154
151
  "repository": {
155
152
  "type": "git",
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dot-wasm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dot-wasm.d.ts","sourceRoot":"","sources":["../../src/__bin__/dot-wasm.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { Engine, Format } from "../index";
1
+ import { Engine, Format } from "@hpcc-js/wasm/graphviz";
2
2
  export declare const formats: Format[];
3
3
  export declare const engines: Engine[];
4
4
  //# sourceMappingURL=graphviz.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphviz.d.ts","sourceRoot":"","sources":["../../src/__tests__/graphviz.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,MAAM,EAAE,MAAM,EAAyD,MAAM,UAAU,CAAC;AAI7G,eAAO,MAAM,OAAO,EAAE,MAAM,EAA0E,CAAC;AACvG,eAAO,MAAM,OAAO,EAAE,MAAM,EAA4E,CAAC"}
1
+ {"version":3,"file":"graphviz.d.ts","sourceRoot":"","sources":["../../src/__tests__/graphviz.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAY,MAAM,wBAAwB,CAAC;AAIlE,eAAO,MAAM,OAAO,EAAE,MAAM,EAA0E,CAAC;AACvG,eAAO,MAAM,OAAO,EAAE,MAAM,EAA4E,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./index-common.js";
2
+ export * from "./browser-tests.js";
3
+ //# sourceMappingURL=index-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-browser.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- export * from "./base91";
2
- export * from "./expat";
3
- export * from "./graphviz";
4
- export * from "./zstd";
1
+ export * from "./base91.js";
2
+ export * from "./expat.js";
3
+ export * from "./graphviz.js";
4
+ export * from "./zstd.js";
5
5
  //# sourceMappingURL=index-common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-common.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-common.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index-common.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-common.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -1,3 +1,3 @@
1
- export * from "./index-common";
2
- export * from "./node-tests";
1
+ export * from "./index-common.js";
2
+ export * from "./node-tests.js";
3
3
  //# sourceMappingURL=index-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
package/types/base91.d.ts CHANGED
@@ -1,9 +1,44 @@
1
- import { Options, WasmLibrary } from "./wasm-library";
1
+ import { WasmLibrary } from "./wasm-library.js";
2
+ /**
3
+ * Base 91 WASM library, similar to Base 64 but uses more characters resulting in smaller strings.
4
+ *
5
+ * See [Base91](https://base91.sourceforge.net/) for more details.
6
+ *
7
+ * ```ts
8
+ * import { Base91 } from "@hpcc-js/wasm/base91";
9
+ *
10
+ * const base91 = await Base91.load();
11
+ *
12
+ * const encoded_data = await base91.encode(data);
13
+ * const decoded_data = await base91.decode(encoded_data);
14
+ * ```
15
+ */
2
16
  export declare class Base91 extends WasmLibrary {
3
17
  private constructor();
4
- static load(options?: Options): Promise<Base91>;
18
+ /**
19
+ * Compiles and instantiates the raw wasm.
20
+ *
21
+ * ::: info
22
+ * In general WebAssembly compilation is disallowed on the main thread if the buffer size is larger than 4KB, hence forcing `load` to be asynchronous;
23
+ * :::
24
+ *
25
+ * @returns A promise to an instance of the Base91 class.
26
+ */
27
+ static load(): Promise<Base91>;
28
+ /**
29
+ * @returns The Base91 c++ version
30
+ */
5
31
  version(): string;
32
+ /**
33
+ * @param data Data to encode.
34
+ * @returns string containing the Base 91 encoded data
35
+ */
6
36
  encode(data: Uint8Array): string;
37
+ /**
38
+ *
39
+ * @param base91Str encoded string
40
+ * @returns origonal data
41
+ */
7
42
  decode(base91Str: string): Uint8Array;
8
43
  }
9
44
  //# sourceMappingURL=base91.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base91.d.ts","sourceRoot":"","sources":["../src/base91.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMtD,qBAAa,MAAO,SAAQ,WAAW;IAEnC,OAAO;IAIP,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAS/C,OAAO,IAAI,MAAM;IAIjB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAgBhC,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU;CAexC"}
1
+ {"version":3,"file":"base91.d.ts","sourceRoot":"","sources":["../src/base91.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhD;;;;;;;;;;;;;GAaG;AACH,qBAAa,MAAO,SAAQ,WAAW;IAEnC,OAAO;IAIP;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAS9B;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAgBhC;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU;CAexC"}
package/types/expat.d.ts CHANGED
@@ -6,6 +6,63 @@ export interface IParser {
6
6
  endElement(tag: string): void;
7
7
  characterData(content: string): void;
8
8
  }
9
+ /**
10
+ * Expat XML parser WASM library, provides a simplified wrapper around the Expat XML Parser library.
11
+ *
12
+ * See [libexpat.github.io](https://libexpat.github.io/) for c++ details.
13
+ *
14
+ * ```ts
15
+ * import { Expat } from "@hpcc-js/wasm/expat";
16
+ *
17
+ * const expat = await Expat.load();
18
+ *
19
+ * const xml = ` \
20
+ * <root>
21
+ * <child xxx="yyy">content</child>
22
+ * </root>
23
+ * `;
24
+ *
25
+ * const callback = {
26
+ * startElement(tag, attrs) { console.log("start", tag, attrs); },
27
+ * endElement(tag) { console.log("end", tag); },
28
+ * characterData(content) { console.log("characterData", content); }
29
+ * };
30
+ *
31
+ * expat.parse(xml, callback);
32
+ * ```
33
+
34
+ */
35
+ export declare class Expat {
36
+ protected _module: any;
37
+ private constructor();
38
+ /**
39
+ * Compiles and instantiates the raw wasm.
40
+ *
41
+ * ::: info
42
+ * In general WebAssembly compilation is disallowed on the main thread if the buffer size is larger than 4KB, hence forcing `load` to be asynchronous;
43
+ * :::
44
+ *
45
+ * @returns A promise to an instance of the Expat class.
46
+ */
47
+ static load(): Promise<Expat>;
48
+ /**
49
+ *
50
+ * @returns The Expat c++ version
51
+ */
52
+ version(): string;
53
+ /**
54
+ * Parses the XML with suitable callbacks.
55
+ *
56
+ * :::tip
57
+ * The _IParser.characterData_ callback method can get called several times for a single tag element.
58
+ * :::
59
+ *
60
+ * @param xml string containing XML
61
+ * @param callback Callback interface
62
+ * @returns `true`|`false` if the XML parse succeeds.
63
+ */
64
+ parse(xml: string, callback: IParser): boolean;
65
+ }
9
66
  export declare class StackElement {
10
67
  readonly tag: string;
11
68
  readonly attrs: Attributes;
@@ -16,12 +73,10 @@ export declare class StackElement {
16
73
  }
17
74
  export declare class StackParser implements IParser {
18
75
  private _stack;
19
- parse(xml: string, wasmFolder?: string, wasmBinary?: ArrayBuffer): Promise<boolean>;
76
+ parse(xml: string): Promise<boolean>;
20
77
  top(): StackElement;
21
78
  startElement(tag: string, attrs: Attributes): StackElement;
22
79
  endElement(tag: string): StackElement;
23
80
  characterData(content: string): void;
24
81
  }
25
- export declare function expatVersion(wasmFolder?: string, wasmBinary?: ArrayBuffer): Promise<any>;
26
- export declare function parse(xml: string, callback: IParser, wasmFolder?: string, wasmBinary?: ArrayBuffer): Promise<boolean>;
27
82
  //# sourceMappingURL=expat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expat.d.ts","sourceRoot":"","sources":["../src/expat.ts"],"names":[],"mappings":"AAIA,oBAAY,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AACnD,MAAM,WAAW,OAAO;IACpB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACnD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,qBAAa,YAAY;IAOT,QAAQ,CAAC,GAAG,EAAE,MAAM;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU;IAL5D,OAAO,CAAC,QAAQ,CAAM;IACtB,IAAI,OAAO,IAAI,MAAM,CAEpB;gBAEoB,GAAG,EAAE,MAAM,EAAW,KAAK,EAAE,UAAU;IAG5D,aAAa,CAAC,OAAO,EAAE,MAAM;CAGhC;AAED,qB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M;IAIjB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO;CAiBjD;AAED,qBAAa,YAAY;IAOT,QAAQ,CAAC,GAAG,EAAE,MAAM;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU;IAL5D,OAAO,CAAC,QAAQ,CAAM;IACtB,IAAI,OAAO,IAAI,MAAM,CAEpB;gBAEoB,GAAG,EAAE,MAAM,EAAW,KAAK,EAAE,UAAU;IAG5D,aAAa,CAAC,OAAO,EAAE,MAAM;CAGhC;AAED,qBAAa,WAAY,YAAW,OAAO;IACvC,OAAO,CAAC,MAAM,CAAsB;IAE9B,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK1C,GAAG,IAAI,YAAY;IAInB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,YAAY;IAM1D,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY;IAIrC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAGvC"}
@@ -1,6 +1,31 @@
1
+ /**
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.
3
+ */
1
4
  export declare type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext";
5
+ /**
6
+ * Various algorithms for projecting abstract graphs into a space for visualization. See [Layout Engines](https://graphviz.gitlab.io/docs/layouts/) for more details.
7
+ */
2
8
  export declare type Engine = "circo" | "dot" | "fdp" | "sfdp" | "neato" | "osage" | "patchwork" | "twopi";
9
+ /**
10
+ * Example: Passing a web hosted Image to GraphViz:
11
+ * ```ts
12
+ * import { Graphviz } from "@hpcc-js/wasm/graphviz";
13
+ *
14
+ * const graphviz = await Graphviz.load();
15
+ * const svg = graphviz.layout('digraph { a[image="https://.../image.png"]; }', "svg", "dot", {
16
+ * images: [{
17
+ * path: "https://.../image.png",
18
+ * width: "272px",
19
+ * height: "92px"
20
+ * }]
21
+ * });
22
+ * document.getElementById("placeholder").innerHTML = svg;
23
+ * ```
24
+ */
3
25
  export interface Image {
26
+ /**
27
+ * Full URL to image
28
+ */
4
29
  path: string;
5
30
  width: string;
6
31
  height: string;
@@ -9,38 +34,130 @@ export interface File {
9
34
  path: string;
10
35
  data: string;
11
36
  }
12
- export interface Ext {
37
+ export interface Options {
13
38
  images?: Image[];
14
39
  files?: File[];
15
- wasmFolder?: string;
16
- wasmBinary?: ArrayBuffer;
17
40
  yInvert?: boolean;
18
41
  nop?: number;
19
42
  }
20
- export declare function graphvizVersion(wasmFolder?: string, wasmBinary?: ArrayBuffer): Promise<any>;
21
- export declare const graphviz: {
22
- layout(dotSource: string, outputFormat?: Format, layoutEngine?: Engine, ext?: Ext): Promise<string>;
23
- circo(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
24
- dot(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
25
- fdp(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
26
- sfdp(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
27
- neato(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
28
- osage(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
29
- patchwork(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
30
- twopi(dotSource: string, outputFormat?: Format, ext?: Ext): Promise<string>;
31
- };
32
- export declare class GraphvizSync {
33
- private _wasm;
34
- constructor(_wasm: any);
35
- layout(dotSource: string, outputFormat?: Format, layoutEngine?: Engine, ext?: Ext): string;
36
- circo(dotSource: string, outputFormat?: Format, ext?: Ext): string;
37
- dot(dotSource: string, outputFormat?: Format, ext?: Ext): string;
38
- fdp(dotSource: string, outputFormat?: Format, ext?: Ext): string;
39
- sfdp(dotSource: string, outputFormat?: Format, ext?: Ext): string;
40
- neato(dotSource: string, outputFormat?: Format, ext?: Ext): string;
41
- osage(dotSource: string, outputFormat?: Format, ext?: Ext): string;
42
- patchwork(dotSource: string, outputFormat?: Format, ext?: Ext): string;
43
- twopi(dotSource: string, outputFormat?: Format, ext?: Ext): string;
43
+ /**
44
+ * The Graphviz layout algorithms take descriptions of graphs in a simple text language, and make diagrams in useful formats, such as images and SVG for web pages or display in an interactive graph browser.
45
+ *
46
+ * Graphviz has many useful features for concrete diagrams, such as options for colors, fonts, tabular node layouts, line styles, hyperlinks, and custom shapes.
47
+ *
48
+ * See [graphviz.org](https://graphviz.org/) for more details.
49
+ *
50
+ * ```ts
51
+ * import { Graphviz } from "@hpcc-js/wasm/graphviz";
52
+ *
53
+ * const graphviz = await Graphviz.load();
54
+ *
55
+ * const dot = "digraph G { Hello -> World }";
56
+ * const svg = graphviz.dot(dot);
57
+ * ```
58
+ *
59
+ * ### Online Demos
60
+ * * https://raw.githack.com/hpcc-systems/hpcc-js-wasm/trunk/index.html
61
+ * * https://observablehq.com/@gordonsmith/graphviz
62
+ */
63
+ export declare class Graphviz {
64
+ protected _module: any;
65
+ private constructor();
66
+ /**
67
+ * Compiles and instantiates the raw wasm.
68
+ *
69
+ * ::: info
70
+ * In general WebAssembly compilation is disallowed on the main thread if the buffer size is larger than 4KB, hence forcing `load` to be asynchronous;
71
+ * :::
72
+ *
73
+ * @returns A promise to an instance of the Graphviz class.
74
+ */
75
+ static load(): Promise<Graphviz>;
76
+ /**
77
+ * @returns The Graphviz c++ version
78
+ */
79
+ version(): string;
80
+ /**
81
+ * Performs layout for the supplied _dotSource_, see [The DOT Language](https://graphviz.gitlab.io/doc/info/lang.html) for specification.
82
+ *
83
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
84
+ * @param outputFormat The format of the result.
85
+ * @param layoutEngine The type of layout to perform.
86
+ * @param options Advanced Options for images, files, yInvert and nop.
87
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
88
+ */
89
+ layout(dotSource: string, outputFormat?: Format, layoutEngine?: Engine, options?: Options): string;
90
+ /**
91
+ * Convenience function that performs the **circo** layout, is equivalent to `layout(dotSource, outputFormat, "circo");`.
92
+ *
93
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
94
+ * @param outputFormat The format of the result.
95
+ * @param options Advanced Options for images, files, yInvert and nop.
96
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
97
+ */
98
+ circo(dotSource: string, outputFormat?: Format, options?: Options): string;
99
+ /**
100
+ * Convenience function that performs the **dot** layout, is equivalent to `layout(dotSource, outputFormat, "dot");`.
101
+ *
102
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
103
+ * @param outputFormat The format of the result.
104
+ * @param options Advanced Options for images, files, yInvert and nop.
105
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
106
+ */
107
+ dot(dotSource: string, outputFormat?: Format, options?: Options): string;
108
+ /**
109
+ * Convenience function that performs the **fdp** layout, is equivalent to `layout(dotSource, outputFormat, "fdp");`.
110
+ *
111
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
112
+ * @param outputFormat The format of the result.
113
+ * @param options Advanced Options for images, files, yInvert and nop.
114
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
115
+ */
116
+ fdp(dotSource: string, outputFormat?: Format, options?: Options): string;
117
+ /**
118
+ * Convenience function that performs the **sfdp** layout, is equivalent to `layout(dotSource, outputFormat, "sfdp");`.
119
+ *
120
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
121
+ * @param outputFormat The format of the result.
122
+ * @param options Advanced Options for images, files, yInvert and nop.
123
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
124
+ */
125
+ sfdp(dotSource: string, outputFormat?: Format, options?: Options): string;
126
+ /**
127
+ * Convenience function that performs the **neato** layout, is equivalent to `layout(dotSource, outputFormat, "neato");`.
128
+ *
129
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
130
+ * @param outputFormat The format of the result.
131
+ * @param options Advanced Options for images, files, yInvert and nop.
132
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
133
+ */
134
+ neato(dotSource: string, outputFormat?: Format, options?: Options): string;
135
+ /**
136
+ * Convenience function that performs the **osage** layout, is equivalent to `layout(dotSource, outputFormat, "osage");`.
137
+ *
138
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
139
+ * @param outputFormat The format of the result.
140
+ * @param options Advanced Options for images, files, yInvert and nop.
141
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
142
+ */
143
+ osage(dotSource: string, outputFormat?: Format, options?: Options): string;
144
+ /**
145
+ * Convenience function that performs the **patchwork** layout, is equivalent to `layout(dotSource, outputFormat, "patchwork");`.
146
+ *
147
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
148
+ * @param outputFormat The format of the result.
149
+ * @param options Advanced Options for images, files, yInvert and nop.
150
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
151
+ */
152
+ patchwork(dotSource: string, outputFormat?: Format, options?: Options): string;
153
+ /**
154
+ * Convenience function that performs the **twopi** layout, is equivalent to `layout(dotSource, outputFormat, "twopi");`.
155
+ *
156
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
157
+ * @param outputFormat The format of the result.
158
+ * @param options Advanced Options for images, files, yInvert and nop.
159
+ * @returns A string containing the calculated layout in the format specified by `outputFormat`
160
+ */
161
+ twopi(dotSource: string, outputFormat?: Format, options?: Options): string;
44
162
  }
45
- export declare function graphvizSync(wasmFolder?: string, wasmBinary?: ArrayBuffer): Promise<GraphvizSync>;
46
163
  //# sourceMappingURL=graphviz.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphviz.d.ts","sourceRoot":"","sources":["../src/graphviz.ts"],"names":[],"mappings":"AAIA,oBAAY,M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M;IAkBhH;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAIjF;;;;;;;OAOG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAI/E;;;;;;;OAOG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAI/E;;;;;;;OAOG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAIhF;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAIjF;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAIjF;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;IAIrF;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAc,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;CAGpF"}
package/types/index.d.ts CHANGED
@@ -1,2 +1,10 @@
1
- export * from "./index-common";
1
+ export declare namespace Base91 {
2
+ function load(): Promise<typeof import("./base91.js").Base91>;
3
+ }
4
+ export declare namespace Graphviz {
5
+ function load(): Promise<typeof import("./graphviz.js").Graphviz>;
6
+ }
7
+ export declare namespace Zstd {
8
+ function load(): Promise<typeof import("./zstd.js").Zstd>;
9
+ }
2
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yBAAiB,MAAM,CAAC;IACpB,SAAgB,IAAI,iDAEnB;CACJ;AAQD,yBAAiB,QAAQ,CAAC;IACtB,SAAgB,IAAI,qDAEnB;CACJ;AAED,yBAAiB,IAAI,CAAC;IAClB,SAAgB,IAAI,6CAEnB;CACJ"}