@deepnoid/canvas 0.1.6 → 0.1.7

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.
@@ -257,8 +257,6 @@ const XrayViewer = ({ image, hasZoom, coordinates, onImageLoadError, onImageLoad
257
257
  height: '100%',
258
258
  left: 0,
259
259
  top: 0,
260
- transition: 'all 500ms',
261
- opacity: isImageLoading || imageError ? 0.5 : 1,
262
260
  } }), !isImageLoading && !imageError && (_jsx(Canvas, { moveX: moveX, moveY: moveY, zoomX: zoomX, zoomY: zoomY, zoom: zoom, dx: dx, dy: dy, dw: dw, dh: dh, coordinates: coordinates })), hasZoom && initZoom !== 0 && !isImageLoading && !imageError && (_jsx(hasZoom.ZoomButton, { onClick: initCanvas, children: `${Math.round((zoom / initZoom) * 100)}%` }))] }) }));
263
261
  };
264
262
  export default XrayViewer;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export { default as XrayViewer } from './components/XrayViewer';
1
+ import XrayViewer from './components/XrayViewer';
2
+ export { XrayViewer };
2
3
  export type { ZoomButtonType } from './components/XrayViewer';
3
4
  export type { Rectangle, Coordinate } from './types/coordinate';
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
- export { default as XrayViewer } from './components/XrayViewer';
1
+ import XrayViewer from './components/XrayViewer';
2
+ export { XrayViewer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/canvas",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",