@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.
- package/dist/components/XrayViewer.js +0 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
1
|
+
import XrayViewer from './components/XrayViewer';
|
|
2
|
+
export { XrayViewer };
|