@abi-software/gallery 1.1.2 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/gallery",
3
- "version": "1.1.2",
3
+ "version": "1.3.0",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -74,39 +74,5 @@ export default {
74
74
  }
75
75
  return url
76
76
  },
77
- getSegmentationThumbnailURL(apiEndpoint, info) {
78
- let endpoint = `${apiEndpoint}/thumbnail/neurolucida`
79
- endpoint = endpoint + `?datasetId=${info.datasetId}`
80
- endpoint = endpoint + `&version=${info.datasetVersion}`
81
- endpoint = endpoint + `&path=files/${info.segmentationFilePath}`
82
- if (info.s3Bucket) {
83
- endpoint = endpoint + `&s3BucketName=${info.s3Bucket}`
84
- }
85
- return endpoint
86
- },
87
- getThumbnailURLFromBiolucida(apiEndpoint, info) {
88
- return `${apiEndpoint}/thumbnail/${info.id}`
89
- },
90
- getImageInfoFromBiolucida(apiEndpoint, items, info) {
91
- const endpoint = `${apiEndpoint}/image/${info.id}`
92
- const params = {}
93
- this.getRequest(endpoint, params, 20000).then(
94
- (response) => {
95
- let item = items.find((x) => x.id === info.id)
96
- const name = response.name
97
- if (name) {
98
- item.title = name
99
- }
100
- },
101
- (reason) => {
102
- if (reason.message.includes('timeout') && reason.message.includes('exceeded') && info.fetchAttempts < 3) {
103
- info.fetchAttempts += 1
104
- this.getImageInfoFromBiolucida(apiEndpoint, items, info)
105
- }
106
-
107
- return Promise.reject('Maximum iterations reached.')
108
- }
109
- )
110
- },
111
77
  },
112
- }
78
+ }