@niivue/niivue 0.67.1-dev.0 → 0.67.1-dev.2
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/build/drawing/index.d.ts +1 -1
- package/build/drawing/index.js.map +1 -1
- package/build/index.min.js +1 -1
- package/build/metafile-esm.json +1 -1
- package/build/niivue/index.d.ts +3 -2
- package/build/niivue/index.js +171 -26
- package/build/niivue/index.js.map +1 -1
- package/build/{nvdocument-CcP6istx.d.ts → nvdocument-DrX6RoEG.d.ts} +32 -2
- package/build/utils/index.d.ts +1 -1
- package/dist/index.d.ts +33 -2
- package/dist/index.js +171 -26
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/niivue.umd.js +31 -31
- package/package.json +108 -108
- package/src/index_zarr_viewer.html +255 -68
- package/src/niivue/descriptives.ts +1 -1
- package/src/niivue/index.ts +40 -3
- package/src/nvimage/index.ts +11 -3
- package/src/nvimage/utils.ts +2 -0
- package/src/nvimage/zarr/NVZarrHelper.ts +174 -25
- package/src/index_zarr.html +0 -152
package/package.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@niivue/niivue",
|
|
3
|
+
"version": "0.67.1-dev.2",
|
|
4
|
+
"description": "minimal webgl2 nifti image viewer",
|
|
5
|
+
"types": "./build/niivue/index.d.ts",
|
|
6
|
+
"main": "./build/niivue/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"unpkg": "./dist/index.min.js",
|
|
9
|
+
"module": "./build/niivue/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./build/niivue/index.js",
|
|
13
|
+
"types": "./build/niivue/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./drawing": {
|
|
16
|
+
"import": "./build/drawing/index.js",
|
|
17
|
+
"types": "./build/drawing/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./utils": {
|
|
20
|
+
"import": "./build/utils/index.js",
|
|
21
|
+
"types": "./build/utils/index.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./min": {
|
|
24
|
+
"import": "./build/index.min.js"
|
|
25
|
+
}
|
|
14
26
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"build:umd": "vite build --config vite.config.js --base=./ && vite build --config vite.config_inject.js --base=./",
|
|
30
|
+
"build": "tsup --config tsup.config.ts && npm run build:forTests && npm run build:min && npm run build:umd",
|
|
31
|
+
"build:forTests": "tsup --config tsup.config.tests.ts && npm run build:mindemos",
|
|
32
|
+
"build:min": "node bundle.js",
|
|
33
|
+
"build:mindemos": "node bundleForDemos.js",
|
|
34
|
+
"demo": "npm run build:forTests && rm -rf demos/dist && cp -r dist demos/dist && npx http-server demos/ --cors",
|
|
35
|
+
"demo-win": "npm run build && npx http-server demos/",
|
|
36
|
+
"test": "npm run build:forTests && npm run test:unit && jest --maxWorkers=1",
|
|
37
|
+
"test-win": "npm run build-win && jest",
|
|
38
|
+
"test-playwright": "npx playwright test --grep-invert \"niivue demo file:\"",
|
|
39
|
+
"test-demos": "npx playwright test playwright/e2e/test.demos.spec.ts",
|
|
40
|
+
"docs": "typedoc && rm -rf ../docs/docs/api && cp -r devdocs ../docs/docs/api",
|
|
41
|
+
"test:unit": "vitest --run --coverage",
|
|
42
|
+
"serve-docs": "npx http-server devdocs",
|
|
43
|
+
"pub": "npm run build && npm publish --access public",
|
|
44
|
+
"lint": "eslint . --ext .ts",
|
|
45
|
+
"lint:ts": "tsc --noEmit",
|
|
46
|
+
"lint:fix": "eslint --fix . --ext .ts",
|
|
47
|
+
"lint:debug": "DEBUG=eslint:cli-engine eslint . --ext .ts",
|
|
48
|
+
"pretest-playwright": "npm run build:forTests && node preplaywrighttest.cjs && tsc --incremental -p playwright/e2e/tsconfig.json",
|
|
49
|
+
"pretest-demos": "npm run build:forTests && node preplaywrighttest.cjs && tsc --incremental -p playwright/e2e/tsconfig.json"
|
|
18
50
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
51
|
+
"files": [
|
|
52
|
+
"src",
|
|
53
|
+
"build",
|
|
54
|
+
"dist"
|
|
55
|
+
],
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/niivue/niivue.git"
|
|
22
59
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
60
|
+
"keywords": [
|
|
61
|
+
"niivue",
|
|
62
|
+
"webgl2",
|
|
63
|
+
"nifti",
|
|
64
|
+
"image",
|
|
65
|
+
"viewer"
|
|
66
|
+
],
|
|
67
|
+
"author": "niivue authors",
|
|
68
|
+
"license": "BSD-2-Clause",
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/niivue/niivue/issues"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/niivue/niivue#readme",
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@lukeed/uuid": "^2.0.1",
|
|
75
|
+
"@ungap/structured-clone": "^1.2.0",
|
|
76
|
+
"array-equal": "^1.0.2",
|
|
77
|
+
"fflate": "^0.8.2",
|
|
78
|
+
"gl-matrix": "^3.4.3",
|
|
79
|
+
"nifti-reader-js": "^0.8.0",
|
|
80
|
+
"zarrita": "^0.5.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@playwright/test": "^1.45.2",
|
|
84
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
85
|
+
"@types/array-equal": "^1.0.2",
|
|
86
|
+
"@types/node": "^20.14.11",
|
|
87
|
+
"@types/ungap__structured-clone": "^1.2.0",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
89
|
+
"@typescript-eslint/parser": "^7.16.1",
|
|
90
|
+
"@vitest/coverage-v8": "^3.1.3",
|
|
91
|
+
"esbuild": "^0.25.12",
|
|
92
|
+
"eslint": "^8.57.0",
|
|
93
|
+
"eslint-config-prettier": "^9.1.0",
|
|
94
|
+
"eslint-config-standard": "^17.1.0",
|
|
95
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
96
|
+
"eslint-plugin-tsdoc": "^0.3.0",
|
|
97
|
+
"express": "^4.19.2",
|
|
98
|
+
"happy-dom": "^20.0.11",
|
|
99
|
+
"http-server": "^14.1.1",
|
|
100
|
+
"prettier": "^3.3.3",
|
|
101
|
+
"regenerator-runtime": "^0.14.1",
|
|
102
|
+
"terser": "^5.31.3",
|
|
103
|
+
"tsup": "^8.1.2",
|
|
104
|
+
"typedoc": "^0.28.5",
|
|
105
|
+
"typedoc-docusaurus-theme": "^1.4.0",
|
|
106
|
+
"typedoc-plugin-markdown": "^4.7.0",
|
|
107
|
+
"typescript": "^5.5.3",
|
|
108
|
+
"vite": "^7.2.7",
|
|
109
|
+
"vitest": "^3.1.3"
|
|
110
|
+
},
|
|
111
|
+
"optionalDependencies": {
|
|
112
|
+
"@rollup/rollup-linux-x64-gnu": "^4.18.1"
|
|
25
113
|
}
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"dev": "vite",
|
|
29
|
-
"build:umd": "vite build --config vite.config.js --base=./ && vite build --config vite.config_inject.js --base=./",
|
|
30
|
-
"build": "tsup --config tsup.config.ts && npm run build:forTests && npm run build:min && npm run build:umd",
|
|
31
|
-
"build:forTests": "tsup --config tsup.config.tests.ts && npm run build:mindemos",
|
|
32
|
-
"build:min": "node bundle.js",
|
|
33
|
-
"build:mindemos": "node bundleForDemos.js",
|
|
34
|
-
"demo": "npm run build:forTests && rm -rf demos/dist && cp -r dist demos/dist && npx http-server demos/ --cors",
|
|
35
|
-
"demo-win": "npm run build && npx http-server demos/",
|
|
36
|
-
"test": "npm run build:forTests && npm run test:unit && jest --maxWorkers=1",
|
|
37
|
-
"test-win": "npm run build-win && jest",
|
|
38
|
-
"test-playwright": "npx playwright test --grep-invert \"niivue demo file:\"",
|
|
39
|
-
"test-demos": "npx playwright test playwright/e2e/test.demos.spec.ts",
|
|
40
|
-
"docs": "typedoc && rm -rf ../docs/docs/api && cp -r devdocs ../docs/docs/api",
|
|
41
|
-
"test:unit": "vitest --run --coverage",
|
|
42
|
-
"serve-docs": "npx http-server devdocs",
|
|
43
|
-
"pub": "npm run build && npm publish --access public",
|
|
44
|
-
"lint": "eslint . --ext .ts",
|
|
45
|
-
"lint:ts": "tsc --noEmit",
|
|
46
|
-
"lint:fix": "eslint --fix . --ext .ts",
|
|
47
|
-
"lint:debug": "DEBUG=eslint:cli-engine eslint . --ext .ts",
|
|
48
|
-
"pretest-playwright": "npm run build:forTests && node preplaywrighttest.cjs && tsc --incremental -p playwright/e2e/tsconfig.json",
|
|
49
|
-
"pretest-demos": "npm run build:forTests && node preplaywrighttest.cjs && tsc --incremental -p playwright/e2e/tsconfig.json"
|
|
50
|
-
},
|
|
51
|
-
"files": [
|
|
52
|
-
"src",
|
|
53
|
-
"build",
|
|
54
|
-
"dist"
|
|
55
|
-
],
|
|
56
|
-
"repository": {
|
|
57
|
-
"type": "git",
|
|
58
|
-
"url": "git+https://github.com/niivue/niivue.git"
|
|
59
|
-
},
|
|
60
|
-
"keywords": [
|
|
61
|
-
"niivue",
|
|
62
|
-
"webgl2",
|
|
63
|
-
"nifti",
|
|
64
|
-
"image",
|
|
65
|
-
"viewer"
|
|
66
|
-
],
|
|
67
|
-
"author": "niivue authors",
|
|
68
|
-
"license": "BSD-2-Clause",
|
|
69
|
-
"bugs": {
|
|
70
|
-
"url": "https://github.com/niivue/niivue/issues"
|
|
71
|
-
},
|
|
72
|
-
"homepage": "https://github.com/niivue/niivue#readme",
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"@lukeed/uuid": "^2.0.1",
|
|
75
|
-
"@ungap/structured-clone": "^1.2.0",
|
|
76
|
-
"array-equal": "^1.0.2",
|
|
77
|
-
"fflate": "^0.8.2",
|
|
78
|
-
"gl-matrix": "^3.4.3",
|
|
79
|
-
"nifti-reader-js": "^0.8.0",
|
|
80
|
-
"zarrita": "^0.5.0"
|
|
81
|
-
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@playwright/test": "^1.45.2",
|
|
84
|
-
"@rollup/plugin-commonjs": "^26.0.1",
|
|
85
|
-
"@types/array-equal": "^1.0.2",
|
|
86
|
-
"@types/node": "^20.14.11",
|
|
87
|
-
"@types/ungap__structured-clone": "^1.2.0",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
89
|
-
"@typescript-eslint/parser": "^7.16.1",
|
|
90
|
-
"@vitest/coverage-v8": "^3.1.3",
|
|
91
|
-
"esbuild": "^0.25.12",
|
|
92
|
-
"eslint": "^8.57.0",
|
|
93
|
-
"eslint-config-prettier": "^9.1.0",
|
|
94
|
-
"eslint-config-standard": "^17.1.0",
|
|
95
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
96
|
-
"eslint-plugin-tsdoc": "^0.3.0",
|
|
97
|
-
"express": "^4.19.2",
|
|
98
|
-
"happy-dom": "^20.0.11",
|
|
99
|
-
"http-server": "^14.1.1",
|
|
100
|
-
"prettier": "^3.3.3",
|
|
101
|
-
"regenerator-runtime": "^0.14.1",
|
|
102
|
-
"terser": "^5.31.3",
|
|
103
|
-
"tsup": "^8.1.2",
|
|
104
|
-
"typedoc": "^0.28.5",
|
|
105
|
-
"typedoc-docusaurus-theme": "^1.4.0",
|
|
106
|
-
"typedoc-plugin-markdown": "^4.7.0",
|
|
107
|
-
"typescript": "^5.5.3",
|
|
108
|
-
"vite": "^7.2.7",
|
|
109
|
-
"vitest": "^3.1.3"
|
|
110
|
-
},
|
|
111
|
-
"optionalDependencies": {
|
|
112
|
-
"@rollup/rollup-linux-x64-gnu": "^4.18.1"
|
|
113
|
-
}
|
|
114
114
|
}
|