Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
282 lines (282 loc) · 9.04 KB
/
Copy pathpackage.json
File metadata and controls
282 lines (282 loc) · 9.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"name": "array-scope",
"displayName": "ArrayScope Scientific Image Viewer",
"description": "User-friendly scientific image viewer and analyzer for NPY and TIFF files.",
"version": "0.4.0",
"publisher": "AmidStars",
"icon": "images/icon.png",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mdw771/ArrayScope.git"
},
"homepage": "https://github.com/mdw771/ArrayScope#readme",
"bugs": {
"url": "https://github.com/mdw771/ArrayScope/issues"
},
"engines": {
"vscode": "^1.100.0"
},
"categories": [
"Visualization",
"Other"
],
"keywords": [
"scientific",
"image",
"numpy",
"npy",
"tiff"
],
"extensionKind": [
"workspace"
],
"main": "./dist/extension.js",
"activationEvents": [
"onCustomEditor:scientificImageViewer.viewer"
],
"files": [
"dist",
"images",
"README.md",
"CHANGELOG.md",
"LICENSE",
"THIRD_PARTY_NOTICES.md"
],
"scripts": {
"clean": "rm -rf dist coverage *.vsix",
"build": "node esbuild.mjs",
"build:integration": "tsc -p tsconfig.integration.json",
"watch": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:integration": "npm run build && npm run build:integration && node dist/test/runTest.js",
"test:watch": "vitest",
"package": "npm run clean && npm run typecheck && npm test && npm run build && vsce package --no-dependencies --allow-missing-repository"
},
"contributes": {
"customEditors": [
{
"viewType": "scientificImageViewer.viewer",
"displayName": "ArrayScope Scientific Image Viewer",
"selector": [
{
"filenamePattern": "*.npy"
},
{
"filenamePattern": "*.tif"
},
{
"filenamePattern": "*.tiff"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "scientificImageViewer.tool.rectangle",
"title": "ArrayScope Scientific Image Viewer: Rectangle Selection"
},
{
"command": "scientificImageViewer.tool.ellipse",
"title": "ArrayScope Scientific Image Viewer: Ellipse Selection"
},
{
"command": "scientificImageViewer.tool.line",
"title": "ArrayScope Scientific Image Viewer: Line Selection"
},
{
"command": "scientificImageViewer.tool.polygon",
"title": "ArrayScope Scientific Image Viewer: Polygon Selection"
},
{
"command": "scientificImageViewer.tool.sampler",
"title": "ArrayScope Scientific Image Viewer: Sampler"
},
{
"command": "scientificImageViewer.computeStatistics",
"title": "ArrayScope Scientific Image Viewer: Calculate Statistics"
},
{
"command": "scientificImageViewer.plotLineProfile",
"title": "ArrayScope Scientific Image Viewer: Plot Line Profile"
},
{
"command": "scientificImageViewer.tool.magnifier",
"title": "ArrayScope Scientific Image Viewer: Magnifier"
},
{
"command": "scientificImageViewer.tool.pan",
"title": "ArrayScope Scientific Image Viewer: Pan"
},
{
"command": "scientificImageViewer.autoContrast",
"title": "ArrayScope Scientific Image Viewer: Auto Contrast"
},
{
"command": "scientificImageViewer.clearSelection",
"title": "ArrayScope Scientific Image Viewer: Clear Selection"
},
{
"command": "scientificImageViewer.fitToWindow",
"title": "ArrayScope Scientific Image Viewer: Fit to Window"
},
{
"command": "scientificImageViewer.actualPixels",
"title": "ArrayScope Scientific Image Viewer: Actual Pixels"
},
{
"command": "scientificImageViewer.zoomIn",
"title": "ArrayScope Scientific Image Viewer: Zoom In"
},
{
"command": "scientificImageViewer.zoomOut",
"title": "ArrayScope Scientific Image Viewer: Zoom Out"
},
{
"command": "scientificImageViewer.nextSlice",
"title": "ArrayScope Scientific Image Viewer: Next Slice"
},
{
"command": "scientificImageViewer.previousSlice",
"title": "ArrayScope Scientific Image Viewer: Previous Slice"
}
],
"keybindings": [
{
"command": "scientificImageViewer.tool.rectangle",
"key": "r",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.ellipse",
"key": "e",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.line",
"key": "l",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.polygon",
"key": "p",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.sampler",
"key": "i",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.computeStatistics",
"key": "ctrl+t",
"mac": "cmd+t",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.plotLineProfile",
"key": "ctrl+k",
"mac": "cmd+k",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.magnifier",
"key": "z",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.zoomOut",
"key": "-",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.zoomIn",
"key": "=",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.tool.pan",
"key": "h",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.clearSelection",
"key": "ctrl+alt+backspace",
"mac": "cmd+alt+backspace",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.fitToWindow",
"key": "f",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.actualPixels",
"key": "1",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.nextSlice",
"key": "]",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
},
{
"command": "scientificImageViewer.previousSlice",
"key": "[",
"when": "activeCustomEditorId == scientificImageViewer.viewer && !inputFocus && !terminalFocus"
}
],
"configuration": {
"title": "ArrayScope Scientific Image Viewer",
"properties": {
"scientificImageViewer.localCacheMB": {
"type": "number",
"default": 256,
"minimum": 32,
"description": "Maximum numeric tile cache size in each local webview, in MiB."
},
"scientificImageViewer.remoteCacheMB": {
"type": "number",
"default": 512,
"minimum": 32,
"description": "Maximum decoded tile cache size on the extension host, in MiB."
},
"scientificImageViewer.tileSize": {
"type": "number",
"default": 256,
"enum": [
128,
256,
512
],
"description": "Tile edge length in pixels."
},
"scientificImageViewer.automaticHistogramPixelLimit": {
"type": "integer",
"default": 1000000,
"minimum": 0,
"description": "Maximum number of pixels in the current slice or selection for automatic histogram calculation. Larger scopes require clicking Recalculate."
}
}
}
},
"dependencies": {
"geotiff": "^3.0.5",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"zustand": "^5.0.14"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/vscode": "^1.100.0",
"@vscode/test-electron": "^3.0.0",
"@vscode/vsce": "^3.9.2",
"esbuild": "^0.28.1",
"typescript": "^5.8.0",
"vitest": "^4.1.10"
}
}