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.
- package/dist/App.d.ts +4 -0
- package/dist/basedecoder-0503cc54.js +1 -0
- package/dist/basedecoder-11034ec6.mjs +89 -0
- package/dist/component/2d/config.d.ts +40 -0
- package/dist/component/2d/contextmenu/ContextMenuX.d.ts +3 -0
- package/dist/component/2d/distribution/index.d.ts +4 -0
- package/dist/component/2d/gridviewer/index.d.ts +9 -0
- package/dist/component/2d/gridviewer/index1.d.ts +8 -0
- package/dist/component/2d/index.d.ts +9 -0
- package/dist/component/2d/infodiv/index.d.ts +7 -0
- package/dist/component/2d/js/index.d.ts +3 -0
- package/dist/component/2d/js/index.js +59517 -0
- package/dist/component/2d/modelloder.d.ts +3 -0
- package/dist/component/2d/mulifiveiewer/index.d.ts +4 -0
- package/dist/component/2d/navigation/index.d.ts +12 -0
- package/dist/component/2d/navtree/index.d.ts +13 -0
- package/dist/component/2d/tast1/config.d.ts +20 -0
- package/dist/component/2d/tast1/index.d.ts +4 -0
- package/dist/component/2d/thumbnail/VirtualList.d.ts +14 -0
- package/dist/component/2d/thumbnail/index.d.ts +12 -0
- package/dist/component/2d/twoviewer/index.d.ts +19 -0
- package/dist/component/3d/ai/index.d.ts +7 -0
- package/dist/component/3d/aichat/index.d.ts +10 -0
- package/dist/component/3d/atlas.d.ts +31 -0
- package/dist/component/3d/atlasBottomTabs/index.d.ts +19 -0
- package/dist/component/3d/atlasSiderBar/index.d.ts +79 -0
- package/dist/component/3d/auxiliary/index.d.ts +111 -0
- package/dist/component/3d/bottomTabs/index.d.ts +16 -0
- package/dist/component/3d/cardData/index.d.ts +3 -0
- package/dist/component/3d/chartViewer/index.d.ts +12 -0
- package/dist/component/3d/dataset/index.d.ts +3 -0
- package/dist/component/3d/index.d.ts +14 -0
- package/dist/component/3d/inputgrey/index.d.ts +3 -0
- package/dist/component/3d/lengthViewer/index.d.ts +10 -0
- package/dist/component/3d/markdown/index.d.ts +7 -0
- package/dist/component/3d/modal2DLoader/index.d.ts +11 -0
- package/dist/component/3d/modalLoader/index.d.ts +13 -0
- package/dist/component/3d/pipeline/index.d.ts +83 -0
- package/dist/component/3d/registration/index.d.ts +4 -0
- package/dist/component/3d/sangjiViewer/index.d.ts +6 -0
- package/dist/component/3d/section/index.d.ts +53 -0
- package/dist/component/3d/showreglions/index.d.ts +7 -0
- package/dist/component/3d/sideBar/index.d.ts +73 -0
- package/dist/component/3d/stlLoader/index.d.ts +9 -0
- package/dist/component/3d/swctree/index.d.ts +3 -0
- package/dist/component/3d/tabViewer/index.d.ts +13 -0
- package/dist/component/3d/wordMap/index.d.ts +11 -0
- package/dist/component/STAM.d.ts +4 -0
- package/dist/component/common/Button/index.d.ts +45 -0
- package/dist/component/common/Header/index.d.ts +19 -0
- package/dist/component/common/index.d.ts +2 -0
- package/dist/component/index.d.ts +2 -0
- package/dist/component/types/header.d.ts +9 -0
- package/dist/component/types/index.d.ts +1 -0
- package/dist/component/util/CommonFunctions.d.ts +23 -0
- package/dist/component/util/global.d.ts +17 -0
- package/dist/component/util/i18n.d.ts +3 -0
- package/dist/component/util/index.d.ts +2 -0
- package/dist/component/util/swc.d.ts +13 -0
- package/dist/deflate-501b2e1b.js +1 -0
- package/dist/deflate-9c483211.mjs +12 -0
- package/dist/index-003567ac.mjs +177265 -0
- package/dist/index-a7e377a7.js +5107 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +52 -0
- package/dist/jpeg-335c778f.mjs +515 -0
- package/dist/jpeg-f3c7cefc.js +1 -0
- package/dist/lerc-ce5b7d8a.js +1 -0
- package/dist/lerc-e1ff90a6.mjs +1035 -0
- package/dist/lzw-82d7fc69.mjs +84 -0
- package/dist/lzw-f00e8c8c.js +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/packbits-58fd9c05.js +1 -0
- package/dist/packbits-8b95f4d7.mjs +24 -0
- package/dist/raw-9c0f4034.js +1 -0
- package/dist/raw-c0fe1c20.mjs +9 -0
- package/dist/stories/3Ddata.stories.d.ts +12 -0
- package/dist/stories/3Dlabel.d.ts +4 -0
- package/dist/stories/3Dlabelreglions.d.ts +4 -0
- package/dist/stories/3Dlable.stories.d.ts +12 -0
- package/dist/stories/3Dlablereglions.stories.d.ts +12 -0
- package/dist/stories/3Dneurons.d.ts +4 -0
- package/dist/stories/3Dneurons.stories.d.ts +12 -0
- package/dist/stories/3Dswc.stories.d.ts +12 -0
- package/dist/stories/ArlasViewer.stories.d.ts +12 -0
- package/dist/stories/AtlasViewer.d.ts +3 -0
- package/dist/stories/Button.stories.d.ts +25 -0
- package/dist/stories/Distribution.stories.d.ts +11 -0
- package/dist/stories/Header.stories.d.ts +32 -0
- package/dist/stories/Iputgrey.stories.d.ts +12 -0
- package/dist/stories/MulfiViewer.stories.d.ts +11 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.stories.d.ts +15 -0
- package/dist/stories/Sangjiviewer.stories.d.ts +14 -0
- package/dist/stories/Soma.d.ts +4 -0
- package/dist/stories/Soma.stories.d.ts +12 -0
- package/dist/stories/Task3D.stories.d.ts +12 -0
- package/dist/stories/Thumbnail.stories.d.ts +25 -0
- package/dist/stories/Vessel.d.ts +4 -0
- package/dist/stories/Vessel.stories.d.ts +12 -0
- package/dist/stories/chartviewer.stories.d.ts +20 -0
- package/dist/stories/lengthviewer.stories.d.ts +17 -0
- package/dist/stories/navtree.stories.d.ts +25 -0
- package/dist/stories/registration.stories.d.ts +12 -0
- package/dist/stories/task3D.d.ts +4 -0
- package/dist/stories/tast1.stories.d.ts +11 -0
- package/dist/stories/twoview.stories.d.ts +31 -0
- package/dist/style.css +1 -0
- package/dist/webimage-affb95d1.mjs +19 -0
- package/dist/webimage-bc81928d.js +1 -0
- package/package.json +9 -1
- package/.storybook/ant-custom-theme.js +0 -12
- package/.storybook/main.js +0 -24
- package/.storybook/middleware.js +0 -85
- 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.
|
|
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
|
-
};
|
package/.storybook/main.js
DELETED
|
@@ -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;
|
package/.storybook/middleware.js
DELETED
|
@@ -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
|
-
};
|
package/.storybook/preview.js
DELETED
|
@@ -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;
|