@abi-software/scaffoldvuer 1.21.1-beta.2 → 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 (45) hide show
  1. package/README.md +31 -12
  2. package/dist/index.html +9 -6
  3. package/dist/scaffoldvuer.js +14095 -13154
  4. package/dist/scaffoldvuer.umd.cjs +48 -48
  5. package/dist/style.css +1 -1
  6. package/eslint.config.js +37 -9
  7. package/package.json +10 -3
  8. package/public/index.html +9 -6
  9. package/src/App.vue +312 -279
  10. package/src/ScaffoldVuer-wc.js +4 -4
  11. package/src/app/DropZone.vue +11 -27
  12. package/src/app/ModelsInformation.js +22 -19
  13. package/src/app/ModelsTable.vue +42 -65
  14. package/src/app/TextureDemos.js +38 -64
  15. package/src/assets/_variables.scss +12 -10
  16. package/src/components/GlyphsControls.vue +3 -23
  17. package/src/components/LinesControls.vue +27 -66
  18. package/src/components/OpacityControls.vue +22 -26
  19. package/src/components/PointsControls.vue +20 -71
  20. package/src/components/PrimitiveControls.vue +35 -49
  21. package/src/components/ScaffoldOverlay.vue +63 -63
  22. package/src/components/ScaffoldTooltip.vue +36 -49
  23. package/src/components/ScaffoldTreeControls.vue +81 -129
  24. package/src/components/ScaffoldVuer.vue +509 -498
  25. package/src/components/TextureSlidesControls.vue +22 -64
  26. package/src/components/TransformationControls.vue +15 -42
  27. package/src/components/index.js +2 -2
  28. package/src/main.js +16 -18
  29. package/src/scripts/Annotation.js +3 -3
  30. package/src/scripts/BaseModule.js +26 -30
  31. package/src/scripts/EventNotifier.js +30 -36
  32. package/src/scripts/GraphicsHighlight.js +43 -50
  33. package/src/scripts/LocalFilesHelper.js +27 -26
  34. package/src/scripts/MappedNerves.js +2139 -697
  35. package/src/scripts/MappedOrgans.js +24 -25
  36. package/src/scripts/OrgansRenderer.js +445 -425
  37. package/src/scripts/RendererModule.js +133 -122
  38. package/src/scripts/Search.js +135 -151
  39. package/src/scripts/Utilities.js +129 -127
  40. package/src/scripts/WebGL.js +57 -91
  41. package/src/scripts/niftiHelper.js +3 -3
  42. package/src/store/index.js +7 -7
  43. package/vite.config.js +51 -50
  44. package/vite.static-build.js +7 -7
  45. package/vuese-generator.js +48 -56
package/eslint.config.js CHANGED
@@ -1,23 +1,51 @@
1
- import js from "@eslint/js";
2
- import vue from "eslint-plugin-vue";
3
- import globals from "globals";
1
+ import js from '@eslint/js';
2
+ import { includeIgnoreFile } from 'eslint/config';
3
+ import prettier from 'eslint-plugin-prettier';
4
+ import prettierConfig from 'eslint-config-prettier';
5
+ import vue from 'eslint-plugin-vue';
6
+ import globals from 'globals';
7
+ import { fileURLToPath } from 'node:url';
8
+
9
+ const gitignorePath = fileURLToPath(new URL('.gitignore', import.meta.url));
4
10
 
5
11
  export default [
12
+ includeIgnoreFile(gitignorePath, { gitignoreResolution: true }),
6
13
  {
7
- ignores: ["dist/**", "docs/.vitepress/**", "docs/components/**"],
14
+ ignores: ['dist/**', 'docs/.vitepress/**', 'docs/components/**'],
8
15
  },
9
16
  js.configs.recommended,
10
- ...vue.configs["flat/essential"],
17
+ ...vue.configs['flat/essential'],
18
+ prettierConfig,
11
19
  {
12
- files: ["**/*.{js,vue}"],
20
+ files: ['**/*.{js,vue}'],
21
+ plugins: {
22
+ prettier,
23
+ },
13
24
  languageOptions: {
14
- ecmaVersion: "latest",
15
- sourceType: "module",
25
+ ecmaVersion: 'latest',
26
+ sourceType: 'module',
16
27
  globals: {
17
28
  ...globals.node,
18
29
  ...globals.browser,
19
30
  },
20
31
  },
21
- rules: {},
32
+ rules: {
33
+ 'prettier/prettier': [
34
+ 'error',
35
+ {
36
+ singleQuote: true,
37
+ trailingComma: 'all',
38
+ },
39
+ ],
40
+ 'arrow-body-style': 'off',
41
+ 'prefer-arrow-callback': 'off',
42
+ 'no-unused-vars': [
43
+ 'error',
44
+ {
45
+ argsIgnorePattern: '^_',
46
+ caughtErrorsIgnorePattern: '^_',
47
+ },
48
+ ],
49
+ },
22
50
  },
23
51
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "1.21.1-beta.2",
3
+ "version": "2.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "engines": {
6
6
  "node": "^24.20.0"
@@ -14,11 +14,14 @@
14
14
  "build-bundle": "vite build",
15
15
  "build-static": "vite build -c vite.static-build.js",
16
16
  "lint": "eslint .",
17
+ "format": "prettier --write .",
18
+ "format:check": "prettier --check .",
17
19
  "vuese-gen": "node vuese-generator.js",
18
20
  "vuese-watch": "node vuese-generator.js watch",
19
21
  "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
20
22
  "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md",
21
23
  "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
24
+ "release:major": "npm version major; npm publish",
22
25
  "release:minor": "npm version minor; npm publish",
23
26
  "release:patch": "npm version patch; npm publish",
24
27
  "docs:dev": "vitepress dev docs",
@@ -45,7 +48,7 @@
45
48
  "*.js"
46
49
  ],
47
50
  "dependencies": {
48
- "@abi-software/map-utilities": "1.11.0",
51
+ "@abi-software/map-utilities": "1.12.0",
49
52
  "@abi-software/sparc-annotation": "^0.3.2",
50
53
  "@abi-software/svg-sprite": "1.4.0",
51
54
  "@element-plus/icons-vue": "^2.3.2",
@@ -56,7 +59,7 @@
56
59
  "simple-dropzone": "^0.8.3",
57
60
  "vue": "^3.5.41",
58
61
  "vue-router": "^5.2.0",
59
- "zincjs": "^2.4.1-beta.1"
62
+ "zincjs": "^3.0.0"
60
63
  },
61
64
  "devDependencies": {
62
65
  "@babel/eslint-parser": "^8.0.1",
@@ -68,9 +71,13 @@
68
71
  "chokidar": "^5.0.0",
69
72
  "concurrently": "^9.2.4",
70
73
  "eslint": "^10.9.1",
74
+ "eslint-config-prettier": "^10.1.8",
75
+ "eslint-plugin-prettier": "^5.5.6",
71
76
  "eslint-plugin-vue": "^10.10.0",
72
77
  "globals": "^17.11.0",
78
+ "prettier": "3.9.6",
73
79
  "sass": "^1.103.1",
80
+ "unplugin-auto-import": "^21.1.0",
74
81
  "unplugin-vue-components": "^32.1.0",
75
82
  "vite": "^8.2.1",
76
83
  "vite-plugin-node-polyfills": "^0.28.0",
package/public/index.html CHANGED
@@ -1,15 +1,18 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
8
  <title>scaffoldvuer</title>
9
9
  </head>
10
10
  <body>
11
11
  <noscript>
12
- <strong>We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
12
+ <strong>
13
+ We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable
14
+ it to continue.
15
+ </strong>
13
16
  </noscript>
14
17
  <div id="app"></div>
15
18
  <!-- built files will be auto injected -->