Skip to content

Commit 58900e9

Browse files
committed
Renamed WSI to IIIF as the visualization supports any image served through IIIF standard APIs.
1 parent 2452c8d commit 58900e9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

frontend/src/components/visualizations/WSI/WSI.tsx renamed to frontend/src/components/visualizations/IIIF/IIIF.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import miradorAnnotationPlugin from "mirador-annotations";
66
import LocalStorageAdapter from "mirador-annotations/lib/LocalStorageAdapter";
77
import { VisualizationConfigOut } from "../../../openapi/v2";
88

9-
type WSIProps = {
9+
type IIIFProps = {
1010
visConfigEntry?: VisualizationConfigOut;
1111
};
1212

13-
export default function WSI(props: WSIProps) {
13+
export default function IIIF(props: IIIFProps) {
1414
const { visConfigEntry } = props;
1515

1616
useEffect(() => {

frontend/src/components/visualizations/WSI/manifest.json renamed to frontend/src/components/visualizations/IIIF/manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "wsi-visualization",
2+
"name": "iiif-visualization",
33
"version": "1.0.0",
4-
"description": "A React component for visualizing and annotating Whole Slide Images (WSIs)",
5-
"main": "WSI.tsx",
4+
"description": "A React component for visualizing and annotating images rendered using the IIIF standard.",
5+
"main": "IIIF.tsx",
66
"dependencies": {
77
"clowder2-core": "1.0.0",
88
"react": "^17.0.2",
99
"react-dom": "^17.0.2",
1010
"mirador": "^3.4.3"
1111
},
1212
"visConfig": {
13-
"name": "WSI",
13+
"name": "IIIF",
1414
"mainType": "image",
15-
"mimeTypes": ["application/octet-stream"],
15+
"mimeTypes": ["image/x-iiif"],
1616
"fields": []
1717
}
1818
}

frontend/src/visualization.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ visComponentDefinitions.push({
5252
component: React.createElement(registerComponent(configImage)),
5353
});
5454

55-
const configWholeSlideImage = require("./components/visualizations/WSI/manifest.json");
55+
const configWholeSlideImage = require("./components/visualizations/IIIF/manifest.json");
5656
visComponentDefinitions.push({
5757
name: configWholeSlideImage.name,
5858
mainType: configWholeSlideImage.visConfig.mainType,

0 commit comments

Comments
 (0)