Skip to content

Commit 0cc872b

Browse files
author
lunarych
committed
merge
2 parents 564101c + 3ee6cfc commit 0cc872b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

web/apps/labelstudio/src/app/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const queryClient = new QueryClient({
3737
});
3838

3939
const browserHistory = createBrowserHistory({
40-
basename: baseURL.pathname || "/",
40+
basename: "/label-studio",
4141
// callback is an async way to confirm or decline going to another page in the context of routing. It accepts `true` or `false`
4242
getUserConfirmation: (message, callback) => {
4343
// `history.block` doesn't block events, so in the case of listeners,

web/libs/editor/src/components/ImageView/Dragron.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const Dragon = observer(
2929

3030
const tileSize = imageElement.getAttribute("TileSize");
3131
const width = sizeElement.getAttribute("Width");
32-
const height = sizeElement.getAttribute('Height')
32+
const height = sizeElement.getAttribute('Height');
3333
viewer = drawSeaDragon(imageEntity.src, width -0,height-0,tileSize-0);
3434
})
3535

web/libs/editor/src/components/ImageView/setOpenSeaDragon.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export const drawSeaDragon = (src: any, width: any, height: any, tileSize: any)=
4040
prefixUrl: "/static/images/",
4141
showNavigator: true,
4242
showRotationControl: true,
43-
animationTime: 0.5,
43+
animationTime: 2,
44+
imageLoaderLimit: 6,
45+
springStiffness: 3,
4446
blendTime: 0.1,
4547
constrainDuringPan: true,
4648
maxZoomPixelRatio: 2,

web/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = composePlugins(
9494
config.output = {
9595
...config.output,
9696
uniqueName: "labelstudio",
97-
publicPath: isDevelopment && FRONTEND_HOSTNAME ? `${FRONTEND_HOSTNAME}/react-app/` : "auto",
97+
publicPath: isDevelopment && FRONTEND_HOSTNAME ? `${FRONTEND_HOSTNAME}/react-app/` : "/label-studio",
9898
scriptType: "text/javascript",
9999
};
100100

0 commit comments

Comments
 (0)