@mxmweb/fviewer 1.0.5 → 1.0.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/StreamPreview.d.ts +3 -1
- package/adopters/GientechStreamReader.d.ts +2 -2
- package/adopters/StaticFileReader.d.ts +2 -2
- package/core/Fviewer.d.ts +2 -2
- package/core/types.d.ts +13 -0
- package/core/utils/fileParser.d.ts +1 -1
- package/index.js +9726 -7351
- package/index.js.map +1 -1
- package/lib_enter.d.ts +3 -2
- package/package.json +1 -1
package/StreamPreview.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { Annotation } from './core/types';
|
|
1
|
+
import { Annotation, MDAnnotation, TableAnnotation } from './core/types';
|
|
2
2
|
export declare const streamAnnotations: Annotation[];
|
|
3
|
+
export declare const streamMDAnnotations: MDAnnotation[];
|
|
4
|
+
export declare const streamTableAnnotations: TableAnnotation[];
|
|
3
5
|
export default function StreamPreview(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AppTheme, Annotation, ToolsConfig } from '../core/types';
|
|
2
|
+
import { AppTheme, Annotation, MDAnnotation, TableAnnotation, ToolsConfig } from '../core/types';
|
|
3
3
|
export interface GientechStreamReaderProps {
|
|
4
4
|
convertedFilePath: string;
|
|
5
5
|
fileName?: string;
|
|
6
6
|
fileType: string;
|
|
7
7
|
initialPage?: number;
|
|
8
8
|
totalPages?: number;
|
|
9
|
-
annotations?: Annotation[];
|
|
9
|
+
annotations?: (Annotation | MDAnnotation | TableAnnotation)[];
|
|
10
10
|
userName?: string;
|
|
11
11
|
userId?: string;
|
|
12
12
|
pageSize?: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AppTheme, Annotation, ToolsConfig } from '../core/types';
|
|
2
|
+
import { AppTheme, Annotation, MDAnnotation, TableAnnotation, ToolsConfig } from '../core/types';
|
|
3
3
|
export interface StaticFileReaderProps {
|
|
4
4
|
fileUrl: string;
|
|
5
5
|
fileType?: string;
|
|
6
6
|
fileName?: string;
|
|
7
7
|
token?: string;
|
|
8
8
|
initialPage?: number;
|
|
9
|
-
annotations?: Annotation[];
|
|
9
|
+
annotations?: (Annotation | MDAnnotation | TableAnnotation)[];
|
|
10
10
|
data?: any;
|
|
11
11
|
eventsEmit?: (name: string, data?: any, innerFn?: any) => void;
|
|
12
12
|
styles?: {
|
package/core/Fviewer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AppTheme, Annotation, ToolsConfig } from './types';
|
|
2
|
+
import { AppTheme, Annotation, MDAnnotation, TableAnnotation, ToolsConfig } from './types';
|
|
3
3
|
export interface CustomizeComponents {
|
|
4
4
|
LoadingComponent?: React.ComponentType<{
|
|
5
5
|
status: string;
|
|
@@ -19,7 +19,7 @@ export interface FviewerData {
|
|
|
19
19
|
}
|
|
20
20
|
export interface FviewerProps {
|
|
21
21
|
data: FviewerData;
|
|
22
|
-
annotationData?: Annotation[];
|
|
22
|
+
annotationData?: (Annotation | MDAnnotation | TableAnnotation)[];
|
|
23
23
|
totalPage?: number;
|
|
24
24
|
currentPage?: number;
|
|
25
25
|
scale?: number;
|
package/core/types.d.ts
CHANGED
|
@@ -36,6 +36,19 @@ export interface Annotation {
|
|
|
36
36
|
content?: string;
|
|
37
37
|
color?: string;
|
|
38
38
|
}
|
|
39
|
+
export interface MDAnnotation {
|
|
40
|
+
id: string;
|
|
41
|
+
start: number;
|
|
42
|
+
end: number;
|
|
43
|
+
content?: string;
|
|
44
|
+
color?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface TableAnnotation {
|
|
47
|
+
id: string;
|
|
48
|
+
offsets: [number, number][];
|
|
49
|
+
content?: string;
|
|
50
|
+
color?: string;
|
|
51
|
+
}
|
|
39
52
|
export interface ToolsConfig {
|
|
40
53
|
annotation?: boolean;
|
|
41
54
|
download?: boolean;
|