brainsmatics 1.0.53 → 1.0.56

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 (116) hide show
  1. package/dist/App.d.ts +4 -0
  2. package/dist/basedecoder-0503cc54.js +1 -0
  3. package/dist/basedecoder-11034ec6.mjs +89 -0
  4. package/dist/component/2d/config.d.ts +40 -0
  5. package/dist/component/2d/contextmenu/ContextMenuX.d.ts +3 -0
  6. package/dist/component/2d/distribution/index.d.ts +4 -0
  7. package/dist/component/2d/gridviewer/index.d.ts +9 -0
  8. package/dist/component/2d/gridviewer/index1.d.ts +8 -0
  9. package/dist/component/2d/index.d.ts +9 -0
  10. package/dist/component/2d/infodiv/index.d.ts +7 -0
  11. package/dist/component/2d/js/index.d.ts +3 -0
  12. package/dist/component/2d/js/index.js +59517 -0
  13. package/dist/component/2d/modelloder.d.ts +3 -0
  14. package/dist/component/2d/mulifiveiewer/index.d.ts +4 -0
  15. package/dist/component/2d/navigation/index.d.ts +12 -0
  16. package/dist/component/2d/navtree/index.d.ts +13 -0
  17. package/dist/component/2d/tast1/config.d.ts +20 -0
  18. package/dist/component/2d/tast1/index.d.ts +4 -0
  19. package/dist/component/2d/thumbnail/VirtualList.d.ts +14 -0
  20. package/dist/component/2d/thumbnail/index.d.ts +12 -0
  21. package/dist/component/2d/twoviewer/index.d.ts +19 -0
  22. package/dist/component/3d/ai/index.d.ts +7 -0
  23. package/dist/component/3d/aichat/index.d.ts +10 -0
  24. package/dist/component/3d/atlas.d.ts +31 -0
  25. package/dist/component/3d/atlasBottomTabs/index.d.ts +19 -0
  26. package/dist/component/3d/atlasSiderBar/index.d.ts +79 -0
  27. package/dist/component/3d/auxiliary/index.d.ts +111 -0
  28. package/dist/component/3d/bottomTabs/index.d.ts +16 -0
  29. package/dist/component/3d/cardData/index.d.ts +3 -0
  30. package/dist/component/3d/chartViewer/index.d.ts +12 -0
  31. package/dist/component/3d/dataset/index.d.ts +3 -0
  32. package/dist/component/3d/index.d.ts +14 -0
  33. package/dist/component/3d/inputgrey/index.d.ts +3 -0
  34. package/dist/component/3d/lengthViewer/index.d.ts +10 -0
  35. package/dist/component/3d/markdown/index.d.ts +7 -0
  36. package/dist/component/3d/modal2DLoader/index.d.ts +11 -0
  37. package/dist/component/3d/modalLoader/index.d.ts +13 -0
  38. package/dist/component/3d/pipeline/index.d.ts +83 -0
  39. package/dist/component/3d/registration/index.d.ts +4 -0
  40. package/dist/component/3d/sangjiViewer/index.d.ts +6 -0
  41. package/dist/component/3d/section/index.d.ts +53 -0
  42. package/dist/component/3d/showreglions/index.d.ts +7 -0
  43. package/dist/component/3d/sideBar/index.d.ts +73 -0
  44. package/dist/component/3d/stlLoader/index.d.ts +9 -0
  45. package/dist/component/3d/swctree/index.d.ts +3 -0
  46. package/dist/component/3d/tabViewer/index.d.ts +13 -0
  47. package/dist/component/3d/wordMap/index.d.ts +11 -0
  48. package/dist/component/STAM.d.ts +4 -0
  49. package/dist/component/common/Button/index.d.ts +45 -0
  50. package/dist/component/common/Header/index.d.ts +19 -0
  51. package/dist/component/common/index.d.ts +2 -0
  52. package/dist/component/index.d.ts +2 -0
  53. package/dist/component/types/header.d.ts +9 -0
  54. package/dist/component/types/index.d.ts +1 -0
  55. package/dist/component/util/CommonFunctions.d.ts +23 -0
  56. package/dist/component/util/global.d.ts +17 -0
  57. package/dist/component/util/i18n.d.ts +3 -0
  58. package/dist/component/util/index.d.ts +2 -0
  59. package/dist/component/util/swc.d.ts +13 -0
  60. package/dist/deflate-501b2e1b.js +1 -0
  61. package/dist/deflate-9c483211.mjs +12 -0
  62. package/dist/index-003567ac.mjs +177265 -0
  63. package/dist/index-a7e377a7.js +5107 -0
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.js +1 -0
  66. package/dist/index.mjs +52 -0
  67. package/dist/jpeg-335c778f.mjs +515 -0
  68. package/dist/jpeg-f3c7cefc.js +1 -0
  69. package/dist/lerc-ce5b7d8a.js +1 -0
  70. package/dist/lerc-e1ff90a6.mjs +1035 -0
  71. package/dist/lzw-82d7fc69.mjs +84 -0
  72. package/dist/lzw-f00e8c8c.js +1 -0
  73. package/dist/main.d.ts +1 -0
  74. package/dist/packbits-58fd9c05.js +1 -0
  75. package/dist/packbits-8b95f4d7.mjs +24 -0
  76. package/dist/raw-9c0f4034.js +1 -0
  77. package/dist/raw-c0fe1c20.mjs +9 -0
  78. package/dist/stories/3Ddata.stories.d.ts +12 -0
  79. package/dist/stories/3Dlabel.d.ts +4 -0
  80. package/dist/stories/3Dlabelreglions.d.ts +4 -0
  81. package/dist/stories/3Dlable.stories.d.ts +12 -0
  82. package/dist/stories/3Dlablereglions.stories.d.ts +12 -0
  83. package/dist/stories/3Dneurons.d.ts +4 -0
  84. package/dist/stories/3Dneurons.stories.d.ts +12 -0
  85. package/dist/stories/3Dswc.stories.d.ts +12 -0
  86. package/dist/stories/ArlasViewer.stories.d.ts +12 -0
  87. package/dist/stories/AtlasViewer.d.ts +3 -0
  88. package/dist/stories/Button.stories.d.ts +25 -0
  89. package/dist/stories/Distribution.stories.d.ts +11 -0
  90. package/dist/stories/Header.stories.d.ts +32 -0
  91. package/dist/stories/Iputgrey.stories.d.ts +12 -0
  92. package/dist/stories/MulfiViewer.stories.d.ts +11 -0
  93. package/dist/stories/Page.d.ts +3 -0
  94. package/dist/stories/Page.stories.d.ts +15 -0
  95. package/dist/stories/Sangjiviewer.stories.d.ts +14 -0
  96. package/dist/stories/Soma.d.ts +4 -0
  97. package/dist/stories/Soma.stories.d.ts +12 -0
  98. package/dist/stories/Task3D.stories.d.ts +12 -0
  99. package/dist/stories/Thumbnail.stories.d.ts +25 -0
  100. package/dist/stories/Vessel.d.ts +4 -0
  101. package/dist/stories/Vessel.stories.d.ts +12 -0
  102. package/dist/stories/chartviewer.stories.d.ts +20 -0
  103. package/dist/stories/lengthviewer.stories.d.ts +17 -0
  104. package/dist/stories/navtree.stories.d.ts +25 -0
  105. package/dist/stories/registration.stories.d.ts +12 -0
  106. package/dist/stories/task3D.d.ts +4 -0
  107. package/dist/stories/tast1.stories.d.ts +11 -0
  108. package/dist/stories/twoview.stories.d.ts +31 -0
  109. package/dist/style.css +1 -0
  110. package/dist/webimage-affb95d1.mjs +19 -0
  111. package/dist/webimage-bc81928d.js +1 -0
  112. package/package.json +9 -1
  113. package/.storybook/ant-custom-theme.js +0 -12
  114. package/.storybook/main.js +0 -24
  115. package/.storybook/middleware.js +0 -85
  116. package/.storybook/preview.js +0 -19
@@ -0,0 +1,19 @@
1
+ import { B as r } from "./basedecoder-11034ec6.mjs";
2
+ class s extends r {
3
+ constructor() {
4
+ if (super(), typeof createImageBitmap > "u")
5
+ throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");
6
+ if (typeof document > "u" && typeof OffscreenCanvas > "u")
7
+ throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");
8
+ }
9
+ async decode(i, n) {
10
+ const o = new Blob([n]), e = await createImageBitmap(o);
11
+ let t;
12
+ typeof document < "u" ? (t = document.createElement("canvas"), t.width = e.width, t.height = e.height) : t = new OffscreenCanvas(e.width, e.height);
13
+ const a = t.getContext("2d");
14
+ return a.drawImage(e, 0, 0), a.getImageData(0, 0, e.width, e.height).data.buffer;
15
+ }
16
+ }
17
+ export {
18
+ s as default
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./basedecoder-0503cc54.js");class d extends r.BaseDecoder{constructor(){if(super(),typeof createImageBitmap>"u")throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if(typeof document>"u"&&typeof OffscreenCanvas>"u")throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}async decode(c,n){const o=new Blob([n]),e=await createImageBitmap(o);let t;typeof document<"u"?(t=document.createElement("canvas"),t.width=e.width,t.height=e.height):t=new OffscreenCanvas(e.width,e.height);const a=t.getContext("2d");return a.drawImage(e,0,0),a.getImageData(0,0,e.width,e.height).data.buffer}}exports.default=d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainsmatics",
3
- "version": "1.0.53",
3
+ "version": "1.0.56",
4
4
  "description": "brainsmatics",
5
5
  "author": "ygwang",
6
6
  "license": "MIT",
@@ -19,20 +19,27 @@
19
19
  "@babel/preset-react": "7.22.15",
20
20
  "@rollup/plugin-typescript": "11.1.5",
21
21
  "@storybook/addon-console": "^3.0.0",
22
+ "@types/dat.gui": "^0.7.13",
22
23
  "@types/echarts": "^4.9.22",
23
24
  "@types/three": "0.157.2",
24
25
  "antd": "^5.24.6",
25
26
  "cross-env": "7.0.3",
27
+ "dat.gui": "^0.7.9",
26
28
  "dompurify": "^3.2.5",
27
29
  "echarts": "^5.5.1",
28
30
  "geotiff": "^2.1.3",
29
31
  "http-proxy-middleware": "^2.0.6",
30
32
  "i18next": "^24.0.4",
33
+ "leaflet": "1.9.4",
34
+ "leaflet.markercluster": "^1.5.3",
31
35
  "markdown-it": "^14.1.0",
32
36
  "react": "18.x",
33
37
  "react-contexify": "^6.0.0",
38
+ "react-dock": "^0.8.0",
34
39
  "react-dom": "18.x",
35
40
  "react-i18next": "^15.1.3",
41
+ "react-leaflet": "4.2.1",
42
+ "react-leaflet-cluster": "^2.1.0",
36
43
  "react-markdown": "^10.1.0",
37
44
  "react-scroll": "^1.9.0",
38
45
  "react-syntax-highlighter": "^15.6.1",
@@ -66,6 +73,7 @@
66
73
  "@storybook/react": "7.0.6",
67
74
  "@storybook/react-vite": "7.0.6",
68
75
  "@storybook/testing-library": "0.0.14-next.2",
76
+ "@types/leaflet": "^1.9.18",
69
77
  "@types/react": "17.x",
70
78
  "@types/react-dom": "17.x",
71
79
  "@types/react-window": "^1.8.8",
@@ -1,12 +0,0 @@
1
- // ant-default-vars.less
2
- // 支持修改 此 less 下的所有变量
3
- // https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
4
- // lessToJs 为了在其他组件中更好的使用
5
-
6
- module.exports = {
7
- "@font-family": "PingFangSC-Regular, Helvetica, Arial, sans-serif, Microsoft YaHei",
8
- "@primary-color": "#7e5ee7",
9
- "@text-color": "#232f4a",
10
- "@zindex-message": "1000000",
11
- "@zindex-notification": "1000000"
12
- };
@@ -1,24 +0,0 @@
1
- const expressMiddleware = require('./middleware');
2
-
3
- /** @type { import('@storybook/react-vite').StorybookConfig } */
4
- const config = {
5
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
6
- staticDirs: ["../public"],
7
- addons: [
8
- "@storybook/addon-links",
9
- "@storybook/addon-essentials",
10
- "@storybook/addon-interactions",
11
- '@storybook/addon-console',
12
- ],
13
- middleware: (router) => {
14
- expressMiddleware(router);
15
- },
16
- framework: {
17
- name: "@storybook/react-vite",
18
- options: {},
19
- },
20
- docs: {
21
- autodocs: "tag",
22
- },
23
- };
24
- export default config;
@@ -1,85 +0,0 @@
1
- const { createProxyMiddleware } = require("http-proxy-middleware");
2
- console.log("进来了")
3
- module.exports = function expressMiddleware(router) {
4
- router.use(
5
- "/app-api/api",
6
- createProxyMiddleware("/app-api/api",{
7
- target: "http://192.168.50.54:8080",
8
- pathRewrite: {
9
- '^/app-api/api': '', // 将路径中的 /api 重写为空字符串
10
- },
11
- changeOrigin: true
12
- })
13
- );
14
- // 配准服务
15
- router.use(
16
- "/app-api/up-api",
17
- createProxyMiddleware("/app-api/up-api",{
18
- // target: "http://atlas.brainsmatics.org/app-api/up-api/",
19
-
20
- target: "http://192.168.70.115:3000",
21
- pathRewrite: {
22
- '^/app-api/up-api': '', // 将路径中的 /api 重写为空字符串
23
- },
24
- changeOrigin: true
25
- })
26
- );
27
- // 图谱切片 病毒注射
28
- router.use(
29
- "/app-api/c-api",
30
- createProxyMiddleware("/app-api/c-api",{
31
- target: "http://atlas.brainsmatics.org/app-api/c-api",
32
-
33
- // target: "http://mouse.brains-atlas.org",
34
- pathRewrite: {
35
- '^/app-api/c-api': '', // 将路径中的 /api 重写为空字符串
36
- },
37
- changeOrigin: true
38
- })
39
- );
40
- // 数据下载
41
- router.use(
42
- "/app-api/test-api",
43
- createProxyMiddleware("/app-api/test-api",{
44
- target: "http://192.168.70.111:8080",
45
- pathRewrite: {
46
- '^app-api/test-api': '', // 将路径中的 /api 重写为空字符串
47
- },
48
- changeOrigin: true
49
- })
50
- );
51
- // 图谱转换
52
- router.use(
53
- "/app-api/d-api",
54
- createProxyMiddleware("/app-api/d-api",{
55
- target: "http://atlas.brainsmatics.org/app-api/d-api",
56
- pathRewrite: {
57
- '^/app-api/d-api': '', // 将路径中的 /api 重写为空字符串
58
- },
59
- changeOrigin: true
60
- })
61
- );
62
- // 申请key
63
- router.use(
64
- "/app-api/java-api",
65
- createProxyMiddleware("/app-api/java-api",{
66
- target: "http://192.168.70.116:8080/brainsweb-service/",
67
- pathRewrite: {
68
- '^/app-api/java-api': '', // 将路径中的 /api 重写为空字符串
69
- },
70
- changeOrigin: true
71
- })
72
- );
73
- // p2p接口
74
- router.use(
75
- "/app-api/p2p-api",
76
- createProxyMiddleware("/app-api/p2p-api",{
77
- target: "http://192.168.50.93:8088/api",
78
- pathRewrite: {
79
- '^/app-api/p2p-api': '', // 将路径中的 /api 重写为空字符串
80
- },
81
- changeOrigin: true
82
- })
83
- );
84
-
85
- };
@@ -1,19 +0,0 @@
1
- /** @type { import('@storybook/react').Preview } */
2
- import { withConsole } from '@storybook/addon-console';
3
-
4
- const preview = {
5
- parameters: {
6
- actions: { argTypesRegex: "^on[A-Z].*" },
7
- controls: {
8
- matchers: {
9
- color: /(background|color)$/i,
10
- date: /Date$/,
11
- },
12
- },
13
- },
14
- decorators: [
15
- (storyFn, context) => withConsole()(storyFn)(context),
16
- ],
17
- };
18
-
19
- export default preview;