@tbib-image-viewer/react 0.1.6 → 0.2.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/dist/index.d.mts +11 -23
- package/dist/index.d.ts +11 -23
- package/dist/index.js +578 -972
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +549 -939
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GalleryItem, InteractionMode, SlideAnnotations, AnnotationStroke, DrawTool, NormalizedPoint, TransformState } from '@tbib-image-viewer/core';
|
|
2
2
|
export { AnnotationStroke, DrawTool, ExportOptions, GalleryItem, InteractionMode, SlideAnnotations, TransformState } from '@tbib-image-viewer/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
export { LaserCursorLayer, LaserCursorLayerProps } from '@tbib-ink/react/laser';
|
|
5
6
|
|
|
6
7
|
interface ImageViewerProps {
|
|
7
8
|
/** Source image URL */
|
|
@@ -86,7 +87,15 @@ interface ImageToolbarProps {
|
|
|
86
87
|
onToggleFullscreen?: () => void;
|
|
87
88
|
currentIndex?: number;
|
|
88
89
|
totalImages?: number;
|
|
90
|
+
/** Toolbar theme (matches the viewer theme). Default dark. */
|
|
91
|
+
theme?: "light" | "dark";
|
|
89
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Image viewer toolbar: the shared `@tbib-ink/react` InkToolbar configured
|
|
95
|
+
* with the image tools (pan, pen, highlighter, eraser, laser) and actions
|
|
96
|
+
* (undo/redo/clear, zoom, rotate, download, fullscreen, close). Props are
|
|
97
|
+
* unchanged since 0.1.
|
|
98
|
+
*/
|
|
90
99
|
declare const ImageToolbar: React__default.FC<ImageToolbarProps>;
|
|
91
100
|
|
|
92
101
|
interface AnnotationCanvasProps {
|
|
@@ -104,27 +113,6 @@ interface AnnotationCanvasProps {
|
|
|
104
113
|
}
|
|
105
114
|
declare const AnnotationCanvas: React__default.FC<AnnotationCanvasProps>;
|
|
106
115
|
|
|
107
|
-
interface LaserCursorLayerProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
108
|
-
color?: string;
|
|
109
|
-
secondaryColor?: string;
|
|
110
|
-
trailLength?: number;
|
|
111
|
-
trailWidth?: number;
|
|
112
|
-
trailTaper?: number;
|
|
113
|
-
followSpeed?: number;
|
|
114
|
-
glowIntensity?: number;
|
|
115
|
-
glowSpread?: number;
|
|
116
|
-
hotspot?: number;
|
|
117
|
-
brightness?: number;
|
|
118
|
-
opacity?: number;
|
|
119
|
-
pulseSpeed?: number;
|
|
120
|
-
noiseStrength?: number;
|
|
121
|
-
idleFade?: boolean;
|
|
122
|
-
idleTimeout?: number;
|
|
123
|
-
fadeDuration?: number;
|
|
124
|
-
enabled?: boolean;
|
|
125
|
-
}
|
|
126
|
-
declare const LaserCursorLayer: React__default.FC<LaserCursorLayerProps>;
|
|
127
|
-
|
|
128
116
|
interface ColorPickerProps {
|
|
129
117
|
color: string;
|
|
130
118
|
onChange: (color: string) => void;
|
|
@@ -176,4 +164,4 @@ declare function useSwipeGesture({ onSwipeLeft, onSwipeRight, enabled }: SwipeHa
|
|
|
176
164
|
onTouchEnd: (e: React.TouchEvent) => void;
|
|
177
165
|
};
|
|
178
166
|
|
|
179
|
-
export { AnnotationCanvas, type AnnotationCanvasProps, ColorPicker, type ColorPickerProps, DownloadMenu, type DownloadMenuProps, ImageGalleryLightbox, type ImageGalleryLightboxProps, ImageToolbar, type ImageToolbarProps, ImageViewer, type ImageViewerProps,
|
|
167
|
+
export { AnnotationCanvas, type AnnotationCanvasProps, ColorPicker, type ColorPickerProps, DownloadMenu, type DownloadMenuProps, ImageGalleryLightbox, type ImageGalleryLightboxProps, ImageToolbar, type ImageToolbarProps, ImageViewer, type ImageViewerProps, StrokeWidthPicker, type StrokeWidthPickerProps, type SwipeHandlers, ThumbnailStrip, type ThumbnailStripProps, useImageTransform, useSwipeGesture };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GalleryItem, InteractionMode, SlideAnnotations, AnnotationStroke, DrawTool, NormalizedPoint, TransformState } from '@tbib-image-viewer/core';
|
|
2
2
|
export { AnnotationStroke, DrawTool, ExportOptions, GalleryItem, InteractionMode, SlideAnnotations, TransformState } from '@tbib-image-viewer/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
export { LaserCursorLayer, LaserCursorLayerProps } from '@tbib-ink/react/laser';
|
|
5
6
|
|
|
6
7
|
interface ImageViewerProps {
|
|
7
8
|
/** Source image URL */
|
|
@@ -86,7 +87,15 @@ interface ImageToolbarProps {
|
|
|
86
87
|
onToggleFullscreen?: () => void;
|
|
87
88
|
currentIndex?: number;
|
|
88
89
|
totalImages?: number;
|
|
90
|
+
/** Toolbar theme (matches the viewer theme). Default dark. */
|
|
91
|
+
theme?: "light" | "dark";
|
|
89
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Image viewer toolbar: the shared `@tbib-ink/react` InkToolbar configured
|
|
95
|
+
* with the image tools (pan, pen, highlighter, eraser, laser) and actions
|
|
96
|
+
* (undo/redo/clear, zoom, rotate, download, fullscreen, close). Props are
|
|
97
|
+
* unchanged since 0.1.
|
|
98
|
+
*/
|
|
90
99
|
declare const ImageToolbar: React__default.FC<ImageToolbarProps>;
|
|
91
100
|
|
|
92
101
|
interface AnnotationCanvasProps {
|
|
@@ -104,27 +113,6 @@ interface AnnotationCanvasProps {
|
|
|
104
113
|
}
|
|
105
114
|
declare const AnnotationCanvas: React__default.FC<AnnotationCanvasProps>;
|
|
106
115
|
|
|
107
|
-
interface LaserCursorLayerProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
108
|
-
color?: string;
|
|
109
|
-
secondaryColor?: string;
|
|
110
|
-
trailLength?: number;
|
|
111
|
-
trailWidth?: number;
|
|
112
|
-
trailTaper?: number;
|
|
113
|
-
followSpeed?: number;
|
|
114
|
-
glowIntensity?: number;
|
|
115
|
-
glowSpread?: number;
|
|
116
|
-
hotspot?: number;
|
|
117
|
-
brightness?: number;
|
|
118
|
-
opacity?: number;
|
|
119
|
-
pulseSpeed?: number;
|
|
120
|
-
noiseStrength?: number;
|
|
121
|
-
idleFade?: boolean;
|
|
122
|
-
idleTimeout?: number;
|
|
123
|
-
fadeDuration?: number;
|
|
124
|
-
enabled?: boolean;
|
|
125
|
-
}
|
|
126
|
-
declare const LaserCursorLayer: React__default.FC<LaserCursorLayerProps>;
|
|
127
|
-
|
|
128
116
|
interface ColorPickerProps {
|
|
129
117
|
color: string;
|
|
130
118
|
onChange: (color: string) => void;
|
|
@@ -176,4 +164,4 @@ declare function useSwipeGesture({ onSwipeLeft, onSwipeRight, enabled }: SwipeHa
|
|
|
176
164
|
onTouchEnd: (e: React.TouchEvent) => void;
|
|
177
165
|
};
|
|
178
166
|
|
|
179
|
-
export { AnnotationCanvas, type AnnotationCanvasProps, ColorPicker, type ColorPickerProps, DownloadMenu, type DownloadMenuProps, ImageGalleryLightbox, type ImageGalleryLightboxProps, ImageToolbar, type ImageToolbarProps, ImageViewer, type ImageViewerProps,
|
|
167
|
+
export { AnnotationCanvas, type AnnotationCanvasProps, ColorPicker, type ColorPickerProps, DownloadMenu, type DownloadMenuProps, ImageGalleryLightbox, type ImageGalleryLightboxProps, ImageToolbar, type ImageToolbarProps, ImageViewer, type ImageViewerProps, StrokeWidthPicker, type StrokeWidthPickerProps, type SwipeHandlers, ThumbnailStrip, type ThumbnailStripProps, useImageTransform, useSwipeGesture };
|