realreport 1.0.3 → 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.
@@ -1,119 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * RealReport v0.1.2
4
- * commit --
5
- HEAD
6
-
7
- * Copyright (C) 2013-2022 WooriTech Inc.
8
- https://real-report.com
9
- * All Rights Reserved.
10
- */
11
-
12
- /**
13
- * ReportViewer base class
14
- */
15
- declare class ReportViewBase {
16
- protected cm: boolean;
17
- constructor();
18
- }
19
-
20
- interface PdfFont {
21
- file: string;
22
- name: string;
23
- content: string;
24
- style?: 'normal' | 'italic';
25
- weight?: 'normal' | 'bold';
26
- }
27
-
28
- declare enum CCITTScheme {
29
- GROUP_3 = "g3",
30
- GROUP_3_2D = "g3-2d",
31
- GROUP_4 = "g4"
32
- }
33
-
34
- interface ITiffOptions {
35
- dpi?: number;
36
- grayscale?: boolean;
37
- encoding?: CCITTScheme;
38
- }
39
-
40
- interface ImageExportOptions {
41
- type?: 'png' | 'jpeg' | 'jpg' | 'gif' | 'tif' | 'tiff';
42
- fileName?: string;
43
- zipName?: string;
44
- tiff?: ITiffOptions;
45
- }
46
-
47
- interface DocExportOptions {
48
- type: 'hwp' | 'docx';
49
- fileName?: string;
50
- }
51
-
52
- /**
53
- * RealReport Viewer
54
- */
55
- declare class ReportViewer extends ReportViewBase {
56
- private _container;
57
- private _reportSource?;
58
- private _dataSet?;
59
- private _report;
60
- private _reportData;
61
- constructor(container: string | HTMLDivElement, reportSource?: any, dataSet?: any, options?: ReportOptions);
62
- get zoom(): number;
63
- set zoom(v: number);
64
- get pageCount(): number;
65
- get page(): number;
66
- set page(v: number);
67
- get reportSource(): any;
68
- set reportSource(v: any);
69
- get dataSet(): any;
70
- set dataSet(v: any);
71
- get reportHtml(): string;
72
- /**
73
- * container에 리포트를 preview로 렌더링 합니다.
74
- */
75
- preview(): void;
76
- getHtml(): string;
77
- first(): void;
78
- prev(): void;
79
- next(): void;
80
- last(): void;
81
- zoomIn(scale?: number): void;
82
- zoomOut(scale?: number): void;
83
- fitToHeight(): void;
84
- fitToPage(): void;
85
- fitToWidth(): void;
86
- /**
87
- * PDF 내보내기 함수
88
- * @param fonts
89
- */
90
- exportPdf(fonts: PdfFont[]): void;
91
- /**
92
- * 이미지 내보내기 함수
93
- * @param imageOptions
94
- */
95
- exportImage(imageOptions?: ImageExportOptions): void;
96
- /**
97
- * 문서 내보내기 함수
98
- * @param documentOptions
99
- */
100
- exportDocument(documentOptions?: DocExportOptions): void;
101
- /** --------------- */
102
- /** PRIVATE METHODS */
103
- /** --------------- */
104
- private _checkPrintContainer;
105
- private _checkReport;
106
- }
107
-
108
- interface ReportData {
109
- type: 'simple' | 'band';
110
- values: Object[] | Object;
111
- }
112
- interface ReportDataCollection {
113
- [name: string]: ReportData;
114
- }
115
- interface ReportOptions {
116
- zoom: number;
117
- }
118
-
119
- export { ReportData, ReportDataCollection, ReportOptions, ReportViewer };