@reportman/engine 0.0.0-stage → 0.1.0-alpha.1
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/LICENSE +373 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/data/columns.d.ts +50 -0
- package/dist/data/columns.d.ts.map +1 -0
- package/dist/data/columns.js +385 -0
- package/dist/data/columns.js.map +1 -0
- package/dist/data/databaseinfo.d.ts +41 -0
- package/dist/data/databaseinfo.d.ts.map +1 -0
- package/dist/data/databaseinfo.js +145 -0
- package/dist/data/databaseinfo.js.map +1 -0
- package/dist/data/datainfo.d.ts +82 -0
- package/dist/data/datainfo.d.ts.map +1 -0
- package/dist/data/datainfo.js +449 -0
- package/dist/data/datainfo.js.map +1 -0
- package/dist/data/errors.d.ts +8 -0
- package/dist/data/errors.d.ts.map +1 -0
- package/dist/data/errors.js +14 -0
- package/dist/data/errors.js.map +1 -0
- package/dist/data/host.d.ts +132 -0
- package/dist/data/host.d.ts.map +1 -0
- package/dist/data/host.js +108 -0
- package/dist/data/host.js.map +1 -0
- package/dist/data/op.d.ts +21 -0
- package/dist/data/op.d.ts.map +1 -0
- package/dist/data/op.js +97 -0
- package/dist/data/op.js.map +1 -0
- package/dist/data/reportdataset.d.ts +116 -0
- package/dist/data/reportdataset.d.ts.map +1 -0
- package/dist/data/reportdataset.js +396 -0
- package/dist/data/reportdataset.js.map +1 -0
- package/dist/data/transfer.d.ts +46 -0
- package/dist/data/transfer.d.ts.map +1 -0
- package/dist/data/transfer.js +100 -0
- package/dist/data/transfer.js.map +1 -0
- package/dist/data/union.d.ts +88 -0
- package/dist/data/union.d.ts.map +1 -0
- package/dist/data/union.js +733 -0
- package/dist/data/union.js.map +1 -0
- package/dist/eval/chinesetables.d.ts +5 -0
- package/dist/eval/chinesetables.d.ts.map +1 -0
- package/dist/eval/chinesetables.js +8 -0
- package/dist/eval/chinesetables.js.map +1 -0
- package/dist/eval/evaluator.d.ts +100 -0
- package/dist/eval/evaluator.d.ts.map +1 -0
- package/dist/eval/evaluator.js +667 -0
- package/dist/eval/evaluator.js.map +1 -0
- package/dist/eval/exception.d.ts +9 -0
- package/dist/eval/exception.d.ts.map +1 -0
- package/dist/eval/exception.js +15 -0
- package/dist/eval/exception.js.map +1 -0
- package/dist/eval/fields.d.ts +60 -0
- package/dist/eval/fields.d.ts.map +1 -0
- package/dist/eval/fields.js +104 -0
- package/dist/eval/fields.js.map +1 -0
- package/dist/eval/functions.d.ts +27 -0
- package/dist/eval/functions.d.ts.map +1 -0
- package/dist/eval/functions.js +810 -0
- package/dist/eval/functions.js.map +1 -0
- package/dist/eval/identifiers.d.ts +100 -0
- package/dist/eval/identifiers.d.ts.map +1 -0
- package/dist/eval/identifiers.js +195 -0
- package/dist/eval/identifiers.js.map +1 -0
- package/dist/eval/parser.d.ts +47 -0
- package/dist/eval/parser.d.ts.map +1 -0
- package/dist/eval/parser.js +336 -0
- package/dist/eval/parser.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/params/param.d.ts +92 -0
- package/dist/params/param.d.ts.map +1 -0
- package/dist/params/param.js +358 -0
- package/dist/params/param.js.map +1 -0
- package/dist/params/parameters.d.ts +87 -0
- package/dist/params/parameters.d.ts.map +1 -0
- package/dist/params/parameters.js +499 -0
- package/dist/params/parameters.js.map +1 -0
- package/dist/report/barcode/barcodeitem.d.ts +76 -0
- package/dist/report/barcode/barcodeitem.d.ts.map +1 -0
- package/dist/report/barcode/barcodeitem.js +864 -0
- package/dist/report/barcode/barcodeitem.js.map +1 -0
- package/dist/report/barcode/code128.d.ts +18 -0
- package/dist/report/barcode/code128.d.ts.map +1 -0
- package/dist/report/barcode/code128.js +187 -0
- package/dist/report/barcode/code128.js.map +1 -0
- package/dist/report/barcode/netutil.d.ts +30 -0
- package/dist/report/barcode/netutil.d.ts.map +1 -0
- package/dist/report/barcode/netutil.js +65 -0
- package/dist/report/barcode/netutil.js.map +1 -0
- package/dist/report/barcode/pdf417.d.ts +17 -0
- package/dist/report/barcode/pdf417.d.ts.map +1 -0
- package/dist/report/barcode/pdf417.js +782 -0
- package/dist/report/barcode/pdf417.js.map +1 -0
- package/dist/report/barcode/pdf417tables.d.ts +11 -0
- package/dist/report/barcode/pdf417tables.d.ts.map +1 -0
- package/dist/report/barcode/pdf417tables.js +880 -0
- package/dist/report/barcode/pdf417tables.js.map +1 -0
- package/dist/report/barcode/qrcode.d.ts +14 -0
- package/dist/report/barcode/qrcode.d.ts.map +1 -0
- package/dist/report/barcode/qrcode.js +214 -0
- package/dist/report/barcode/qrcode.js.map +1 -0
- package/dist/report/barcode/zxingwidth.d.ts +4 -0
- package/dist/report/barcode/zxingwidth.d.ts.map +1 -0
- package/dist/report/barcode/zxingwidth.js +247 -0
- package/dist/report/barcode/zxingwidth.js.map +1 -0
- package/dist/report/chart/chartidens.d.ts +70 -0
- package/dist/report/chart/chartidens.d.ts.map +1 -0
- package/dist/report/chart/chartidens.js +162 -0
- package/dist/report/chart/chartidens.js.map +1 -0
- package/dist/report/chart/chartitem.d.ts +110 -0
- package/dist/report/chart/chartitem.d.ts.map +1 -0
- package/dist/report/chart/chartitem.js +403 -0
- package/dist/report/chart/chartitem.js.map +1 -0
- package/dist/report/chart/series.d.ts +65 -0
- package/dist/report/chart/series.d.ts.map +1 -0
- package/dist/report/chart/series.js +74 -0
- package/dist/report/chart/series.js.map +1 -0
- package/dist/report/chart/vectorchart.d.ts +18 -0
- package/dist/report/chart/vectorchart.d.ts.map +1 -0
- package/dist/report/chart/vectorchart.js +356 -0
- package/dist/report/chart/vectorchart.js.map +1 -0
- package/dist/report/convert.d.ts +4 -0
- package/dist/report/convert.d.ts.map +1 -0
- package/dist/report/convert.js +162 -0
- package/dist/report/convert.js.map +1 -0
- package/dist/report/errors.d.ts +13 -0
- package/dist/report/errors.d.ts.map +1 -0
- package/dist/report/errors.js +20 -0
- package/dist/report/errors.js.map +1 -0
- package/dist/report/identifiers.d.ts +91 -0
- package/dist/report/identifiers.d.ts.map +1 -0
- package/dist/report/identifiers.js +404 -0
- package/dist/report/identifiers.js.map +1 -0
- package/dist/report/imageitem.d.ts +66 -0
- package/dist/report/imageitem.d.ts.map +1 -0
- package/dist/report/imageitem.js +190 -0
- package/dist/report/imageitem.js.map +1 -0
- package/dist/report/items.d.ts +219 -0
- package/dist/report/items.d.ts.map +1 -0
- package/dist/report/items.js +1015 -0
- package/dist/report/items.js.map +1 -0
- package/dist/report/report.d.ts +221 -0
- package/dist/report/report.d.ts.map +1 -0
- package/dist/report/report.js +1968 -0
- package/dist/report/report.js.map +1 -0
- package/dist/report/run.d.ts +87 -0
- package/dist/report/run.d.ts.map +1 -0
- package/dist/report/run.js +121 -0
- package/dist/report/run.js.map +1 -0
- package/dist/report/section.d.ts +86 -0
- package/dist/report/section.d.ts.map +1 -0
- package/dist/report/section.js +325 -0
- package/dist/report/section.js.map +1 -0
- package/dist/report/subreport.d.ts +49 -0
- package/dist/report/subreport.d.ts.map +1 -0
- package/dist/report/subreport.js +220 -0
- package/dist/report/subreport.js.map +1 -0
- package/dist/util/base64.d.ts +9 -0
- package/dist/util/base64.d.ts.map +1 -0
- package/dist/util/base64.js +60 -0
- package/dist/util/base64.js.map +1 -0
- package/dist/util/chars.d.ts +45 -0
- package/dist/util/chars.d.ts.map +1 -0
- package/dist/util/chars.js +194 -0
- package/dist/util/chars.js.map +1 -0
- package/dist/util/compositeformat.d.ts +3 -0
- package/dist/util/compositeformat.d.ts.map +1 -0
- package/dist/util/compositeformat.js +99 -0
- package/dist/util/compositeformat.js.map +1 -0
- package/dist/util/culture.d.ts +84 -0
- package/dist/util/culture.d.ts.map +1 -0
- package/dist/util/culture.js +59 -0
- package/dist/util/culture.js.map +1 -0
- package/dist/util/cultures.generated.d.ts +3 -0
- package/dist/util/cultures.generated.d.ts.map +1 -0
- package/dist/util/cultures.generated.js +1043 -0
- package/dist/util/cultures.generated.js.map +1 -0
- package/dist/util/dateformat.d.ts +21 -0
- package/dist/util/dateformat.d.ts.map +1 -0
- package/dist/util/dateformat.js +439 -0
- package/dist/util/dateformat.js.map +1 -0
- package/dist/util/dateparse.d.ts +12 -0
- package/dist/util/dateparse.d.ts.map +1 -0
- package/dist/util/dateparse.js +1212 -0
- package/dist/util/dateparse.js.map +1 -0
- package/dist/util/datetime.d.ts +70 -0
- package/dist/util/datetime.d.ts.map +1 -0
- package/dist/util/datetime.js +265 -0
- package/dist/util/datetime.js.map +1 -0
- package/dist/util/decimal.d.ts +54 -0
- package/dist/util/decimal.d.ts.map +1 -0
- package/dist/util/decimal.js +365 -0
- package/dist/util/decimal.js.map +1 -0
- package/dist/util/delphitext.d.ts +40 -0
- package/dist/util/delphitext.d.ts.map +1 -0
- package/dist/util/delphitext.js +408 -0
- package/dist/util/delphitext.js.map +1 -0
- package/dist/util/doubleutil.d.ts +30 -0
- package/dist/util/doubleutil.d.ts.map +1 -0
- package/dist/util/doubleutil.js +651 -0
- package/dist/util/doubleutil.js.map +1 -0
- package/dist/util/inflate.d.ts +7 -0
- package/dist/util/inflate.d.ts.map +1 -0
- package/dist/util/inflate.js +256 -0
- package/dist/util/inflate.js.map +1 -0
- package/dist/util/netexception.d.ts +59 -0
- package/dist/util/netexception.d.ts.map +1 -0
- package/dist/util/netexception.js +94 -0
- package/dist/util/netexception.js.map +1 -0
- package/dist/util/numberformat.d.ts +14 -0
- package/dist/util/numberformat.d.ts.map +1 -0
- package/dist/util/numberformat.js +828 -0
- package/dist/util/numberformat.js.map +1 -0
- package/dist/util/numberparse.d.ts +49 -0
- package/dist/util/numberparse.d.ts.map +1 -0
- package/dist/util/numberparse.js +568 -0
- package/dist/util/numberparse.js.map +1 -0
- package/dist/util/reportmanres.en.generated.d.ts +2 -0
- package/dist/util/reportmanres.en.generated.d.ts.map +1 -0
- package/dist/util/reportmanres.en.generated.js +2082 -0
- package/dist/util/reportmanres.en.generated.js.map +1 -0
- package/dist/util/reportmanres.es.generated.d.ts +2 -0
- package/dist/util/reportmanres.es.generated.d.ts.map +1 -0
- package/dist/util/reportmanres.es.generated.js +2082 -0
- package/dist/util/reportmanres.es.generated.js.map +1 -0
- package/dist/util/translator.d.ts +29 -0
- package/dist/util/translator.d.ts.map +1 -0
- package/dist/util/translator.js +79 -0
- package/dist/util/translator.js.map +1 -0
- package/dist/variant/coercion.d.ts +9 -0
- package/dist/variant/coercion.d.ts.map +1 -0
- package/dist/variant/coercion.js +298 -0
- package/dist/variant/coercion.js.map +1 -0
- package/dist/variant/context.d.ts +25 -0
- package/dist/variant/context.d.ts.map +1 -0
- package/dist/variant/context.js +22 -0
- package/dist/variant/context.js.map +1 -0
- package/dist/variant/variant.d.ts +193 -0
- package/dist/variant/variant.d.ts.map +1 -0
- package/dist/variant/variant.js +1229 -0
- package/dist/variant/variant.js.map +1 -0
- package/package.json +35 -4
- package/README.md +0 -3
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// The modules of a linear barcode as the C# engine takes them from ZXing.Net for a device that draws
|
|
2
|
+
// the barcode by itself (BarcodeItem.EmitNativeBarcode: MultiFormatWriter with no margin, the width
|
|
3
|
+
// of the symbol), or null where the writer refuses the text and the item draws its bars. Only the
|
|
4
|
+
// width and the refusals of each writer of ZXing are reproduced (EAN13Writer, EAN8Writer,
|
|
5
|
+
// Code39Writer, Code93Writer, ITFWriter, CodaBarWriter, Code128Writer), not their bars:
|
|
6
|
+
// @zxing/library has no writer for them. Checked against ZXing.Net with golden-cs zxing-width.
|
|
7
|
+
import { MetaBarcodeSymbology } from '@reportman/metafile';
|
|
8
|
+
/** The modules of the symbol, or null when ZXing refuses the text. */
|
|
9
|
+
export function zxingLinearModules(symbology, text) {
|
|
10
|
+
// OneDimensionalCodeWriter: an empty text is refused
|
|
11
|
+
if (text.length === 0)
|
|
12
|
+
return null;
|
|
13
|
+
switch (symbology) {
|
|
14
|
+
case MetaBarcodeSymbology.EAN13:
|
|
15
|
+
return upcEan(text, 12) ? 95 : null;
|
|
16
|
+
case MetaBarcodeSymbology.EAN8:
|
|
17
|
+
return upcEan(text, 7) ? 67 : null;
|
|
18
|
+
case MetaBarcodeSymbology.ITF:
|
|
19
|
+
return text.length % 2 === 0 && text.length <= 80 && allDigits(text) ? 9 + 9 * text.length : null;
|
|
20
|
+
case MetaBarcodeSymbology.Code39:
|
|
21
|
+
return code39(text);
|
|
22
|
+
case MetaBarcodeSymbology.Code93:
|
|
23
|
+
return code93(text);
|
|
24
|
+
case MetaBarcodeSymbology.Codabar:
|
|
25
|
+
return codabar(text);
|
|
26
|
+
case MetaBarcodeSymbology.Code128:
|
|
27
|
+
return code128(text);
|
|
28
|
+
default:
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const isDigit = (c) => c >= 48 && c <= 57;
|
|
33
|
+
function allDigits(text) {
|
|
34
|
+
for (let i = 0; i < text.length; i++)
|
|
35
|
+
if (!isDigit(text.charCodeAt(i)))
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* EAN13Writer and EAN8Writer: the digits without their check digit (it is added), or with a check
|
|
41
|
+
* digit that must be right (UPCEANReader.checkStandardUPCEANChecksum); digits only.
|
|
42
|
+
*/
|
|
43
|
+
function upcEan(text, dataLength) {
|
|
44
|
+
if (!allDigits(text))
|
|
45
|
+
return false;
|
|
46
|
+
if (text.length === dataLength)
|
|
47
|
+
return true;
|
|
48
|
+
if (text.length !== dataLength + 1)
|
|
49
|
+
return false;
|
|
50
|
+
// The standard UPC/EAN checksum: from the right, odd positions three times
|
|
51
|
+
let sum = 0;
|
|
52
|
+
for (let i = dataLength - 1; i >= 0; i -= 2)
|
|
53
|
+
sum += text.charCodeAt(i) - 48;
|
|
54
|
+
sum *= 3;
|
|
55
|
+
for (let i = dataLength - 2; i >= 0; i -= 2)
|
|
56
|
+
sum += text.charCodeAt(i) - 48;
|
|
57
|
+
return (1000 - sum) % 10 === text.charCodeAt(dataLength) - 48;
|
|
58
|
+
}
|
|
59
|
+
const CODE39_ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%';
|
|
60
|
+
/**
|
|
61
|
+
* Code39Writer: 80 characters at most; a character outside the alphabet makes the whole text full
|
|
62
|
+
* ASCII (tryToConvertToExtendedMode: two characters each, but for the digits, the capitals, the
|
|
63
|
+
* space, '-' and '.'), 80 at most again; then 13 modules a character plus the guards.
|
|
64
|
+
*/
|
|
65
|
+
function code39(text) {
|
|
66
|
+
let length = text.length;
|
|
67
|
+
if (length > 80)
|
|
68
|
+
return null;
|
|
69
|
+
for (let i = 0; i < text.length; i++) {
|
|
70
|
+
if (CODE39_ALPHABET.indexOf(text.charAt(i)) < 0) {
|
|
71
|
+
length = 0;
|
|
72
|
+
for (let j = 0; j < text.length; j++) {
|
|
73
|
+
const c = text.charCodeAt(j);
|
|
74
|
+
if (c > 127)
|
|
75
|
+
return null;
|
|
76
|
+
length += isDigit(c) || (c >= 65 && c <= 90) || c === 32 || c === 45 || c === 46 ? 1 : 2;
|
|
77
|
+
}
|
|
78
|
+
if (length > 80)
|
|
79
|
+
return null;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return 24 + 1 + 13 * length;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Code93Writer: the text in full ASCII first (convertToExtended: two characters each, but for the
|
|
87
|
+
* digits, the capitals, the space and - . $ / + %), 80 at most; then 9 modules a character, two
|
|
88
|
+
* check characters, the guards and the termination bar.
|
|
89
|
+
*/
|
|
90
|
+
function code93(text) {
|
|
91
|
+
let length = 0;
|
|
92
|
+
for (let i = 0; i < text.length; i++) {
|
|
93
|
+
const c = text.charCodeAt(i);
|
|
94
|
+
if (c > 127)
|
|
95
|
+
return null;
|
|
96
|
+
const one = c === 32 || c === 36 || c === 37 || c === 43 || (c >= 45 && c <= 57) || (c >= 65 && c <= 90);
|
|
97
|
+
length += one ? 1 : 2;
|
|
98
|
+
}
|
|
99
|
+
if (length > 80)
|
|
100
|
+
return null;
|
|
101
|
+
return (length + 2 + 2) * 9 + 1;
|
|
102
|
+
}
|
|
103
|
+
const CODABAR_START_END = 'ABCD';
|
|
104
|
+
const CODABAR_ALT_START_END = 'TN*E';
|
|
105
|
+
const CODABAR_TEN = '/:+.';
|
|
106
|
+
/**
|
|
107
|
+
* CodaBarWriter: the guards A B C D (or T N * E) at both ends, or none and A is added at both ends
|
|
108
|
+
* (also to a text of one character); the characters between them are digits and - $ (9 modules)
|
|
109
|
+
* or / : + . (10); each guard 10 modules and a gap between characters.
|
|
110
|
+
*/
|
|
111
|
+
function codabar(text) {
|
|
112
|
+
let contents = text;
|
|
113
|
+
if (contents.length < 2)
|
|
114
|
+
contents = 'A' + contents + 'A';
|
|
115
|
+
else {
|
|
116
|
+
const first = contents.charAt(0).toUpperCase();
|
|
117
|
+
const last = contents.charAt(contents.length - 1).toUpperCase();
|
|
118
|
+
const startsNormal = CODABAR_START_END.includes(first);
|
|
119
|
+
const endsNormal = CODABAR_START_END.includes(last);
|
|
120
|
+
const startsAlt = CODABAR_ALT_START_END.includes(first);
|
|
121
|
+
const endsAlt = CODABAR_ALT_START_END.includes(last);
|
|
122
|
+
if (startsNormal) {
|
|
123
|
+
if (!endsNormal)
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
else if (startsAlt) {
|
|
127
|
+
if (!endsAlt)
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
if (endsNormal || endsAlt)
|
|
132
|
+
return null;
|
|
133
|
+
contents = 'A' + contents + 'A';
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
let width = 20;
|
|
137
|
+
for (let i = 1; i < contents.length - 1; i++) {
|
|
138
|
+
const ch = contents.charAt(i);
|
|
139
|
+
// Char.IsDigit of .NET: any decimal digit of Unicode
|
|
140
|
+
if (/^\p{Nd}$/u.test(ch) || ch === '-' || ch === '$')
|
|
141
|
+
width += 9;
|
|
142
|
+
else if (CODABAR_TEN.includes(ch))
|
|
143
|
+
width += 10;
|
|
144
|
+
else
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
return width + contents.length - 1;
|
|
148
|
+
}
|
|
149
|
+
const FNC_1 = 0xf1;
|
|
150
|
+
const FNC_2 = 0xf2;
|
|
151
|
+
const FNC_3 = 0xf3;
|
|
152
|
+
const FNC_4 = 0xf4;
|
|
153
|
+
const CODE_A = 101;
|
|
154
|
+
const CODE_B = 100;
|
|
155
|
+
const CODE_C = 99;
|
|
156
|
+
var CType;
|
|
157
|
+
(function (CType) {
|
|
158
|
+
CType[CType["Uncodable"] = 0] = "Uncodable";
|
|
159
|
+
CType[CType["OneDigit"] = 1] = "OneDigit";
|
|
160
|
+
CType[CType["TwoDigits"] = 2] = "TwoDigits";
|
|
161
|
+
CType[CType["Fnc1"] = 3] = "Fnc1";
|
|
162
|
+
})(CType || (CType = {}));
|
|
163
|
+
function findCType(value, start) {
|
|
164
|
+
const last = value.length;
|
|
165
|
+
if (start >= last)
|
|
166
|
+
return CType.Uncodable;
|
|
167
|
+
let c = value.charCodeAt(start);
|
|
168
|
+
if (c === FNC_1)
|
|
169
|
+
return CType.Fnc1;
|
|
170
|
+
if (!isDigit(c))
|
|
171
|
+
return CType.Uncodable;
|
|
172
|
+
if (start + 1 >= last)
|
|
173
|
+
return CType.OneDigit;
|
|
174
|
+
c = value.charCodeAt(start + 1);
|
|
175
|
+
if (!isDigit(c))
|
|
176
|
+
return CType.OneDigit;
|
|
177
|
+
return CType.TwoDigits;
|
|
178
|
+
}
|
|
179
|
+
/** Code128Writer.chooseCode: the code set for the character at start (the code sets of ZXing). */
|
|
180
|
+
function chooseCode(value, start, oldCode) {
|
|
181
|
+
let lookahead = findCType(value, start);
|
|
182
|
+
if (lookahead === CType.OneDigit)
|
|
183
|
+
return oldCode === CODE_A ? CODE_A : CODE_B;
|
|
184
|
+
if (lookahead === CType.Uncodable) {
|
|
185
|
+
if (start < value.length) {
|
|
186
|
+
const c = value.charCodeAt(start);
|
|
187
|
+
if (c < 32 || (oldCode === CODE_A && (c < 96 || (c >= FNC_1 && c <= FNC_4))))
|
|
188
|
+
return CODE_A;
|
|
189
|
+
}
|
|
190
|
+
return CODE_B;
|
|
191
|
+
}
|
|
192
|
+
if (oldCode === CODE_A && lookahead === CType.Fnc1)
|
|
193
|
+
return CODE_A;
|
|
194
|
+
if (oldCode === CODE_C)
|
|
195
|
+
return CODE_C;
|
|
196
|
+
if (oldCode === CODE_B) {
|
|
197
|
+
if (lookahead === CType.Fnc1)
|
|
198
|
+
return CODE_B;
|
|
199
|
+
// Two digits: what follows decides
|
|
200
|
+
lookahead = findCType(value, start + 2);
|
|
201
|
+
if (lookahead === CType.Uncodable || lookahead === CType.OneDigit)
|
|
202
|
+
return CODE_B;
|
|
203
|
+
if (lookahead === CType.Fnc1)
|
|
204
|
+
return findCType(value, start + 3) === CType.TwoDigits ? CODE_C : CODE_B;
|
|
205
|
+
// Four digits at least: an even run switches now, an odd one later
|
|
206
|
+
let index = start + 4;
|
|
207
|
+
while ((lookahead = findCType(value, index)) === CType.TwoDigits)
|
|
208
|
+
index += 2;
|
|
209
|
+
return lookahead === CType.OneDigit ? CODE_B : CODE_C;
|
|
210
|
+
}
|
|
211
|
+
// The first code set
|
|
212
|
+
if (lookahead === CType.Fnc1)
|
|
213
|
+
lookahead = findCType(value, start + 1);
|
|
214
|
+
return lookahead === CType.TwoDigits ? CODE_C : CODE_B;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Code128Writer: ASCII or the escapes of FNC1 to FNC4 (U+00F1 to U+00F4), of any length (ZXing.Net
|
|
218
|
+
* has not the limit of 80 characters of ZXing); the code sets chosen as ZXing chooses them; 11
|
|
219
|
+
* modules a symbol (the start, the code changes, the characters, the check symbol) and 13 the stop.
|
|
220
|
+
*/
|
|
221
|
+
function code128(text) {
|
|
222
|
+
const length = text.length;
|
|
223
|
+
for (let i = 0; i < length; i++) {
|
|
224
|
+
const c = text.charCodeAt(i);
|
|
225
|
+
if (c > 127 && (c < FNC_1 || c > FNC_4))
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
let symbols = 0;
|
|
229
|
+
let codeSet = 0;
|
|
230
|
+
let position = 0;
|
|
231
|
+
while (position < length) {
|
|
232
|
+
const newCodeSet = chooseCode(text, position, codeSet);
|
|
233
|
+
if (newCodeSet === codeSet) {
|
|
234
|
+
const c = text.charCodeAt(position);
|
|
235
|
+
// Two digits a symbol in code C (an FNC1 is one symbol in any set)
|
|
236
|
+
if (codeSet === CODE_C && c !== FNC_1 && c !== FNC_2 && c !== FNC_3 && c !== FNC_4)
|
|
237
|
+
position++;
|
|
238
|
+
position++;
|
|
239
|
+
}
|
|
240
|
+
else
|
|
241
|
+
codeSet = newCodeSet;
|
|
242
|
+
symbols++;
|
|
243
|
+
}
|
|
244
|
+
// The check symbol, then the stop
|
|
245
|
+
return 11 * (symbols + 1) + 13;
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=zxingwidth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zxingwidth.js","sourceRoot":"","sources":["../../../src/report/barcode/zxingwidth.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,oGAAoG;AACpG,kGAAkG;AAClG,0FAA0F;AAC1F,wFAAwF;AACxF,+FAA+F;AAE/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,sEAAsE;AACtE,MAAM,UAAU,kBAAkB,CAAC,SAA+B,EAAE,IAAY;IAC9E,qDAAqD;IACrD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,oBAAoB,CAAC,KAAK;YAC7B,OAAO,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,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,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;IACvD,CAAC;IACD,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,OAAO,QAAQ,GAAG,MAAM,EAAE,CAAC;QACzB,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACvD,IAAI,UAAU,KAAK,OAAO,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACpC,mEAAmE;YACnE,IAAI,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,KAAK;gBAAE,QAAQ,EAAE,CAAC;YAC/F,QAAQ,EAAE,CAAC;QACb,CAAC;;YAAM,OAAO,GAAG,UAAU,CAAC;QAC5B,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,kCAAkC;IAClC,OAAO,EAAE,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IdenFunction } from '../../eval/identifiers.js';
|
|
2
|
+
import { Variant } from '../../variant/variant.js';
|
|
3
|
+
import type { ReportRuntime } from '../report.js';
|
|
4
|
+
/** BaseReport.GraphicClear. */
|
|
5
|
+
export declare function graphicClear(report: ReportRuntime, graphicident: string): boolean;
|
|
6
|
+
/** BaseReport.GraphicNew. */
|
|
7
|
+
export declare function graphicNew(report: ReportRuntime, graphicident: string, newvalue: number, change: boolean, valuecaption: string, seriecaption: string): boolean;
|
|
8
|
+
/** BaseReport.GraphicNewXY. */
|
|
9
|
+
export declare function graphicNewXY(report: ReportRuntime, graphicident: string, xvalue: number, newvalue: number, change: boolean, valuecaption: string, seriecaption: string): boolean;
|
|
10
|
+
/** BaseReport.GraphicNewFunction. */
|
|
11
|
+
export declare function graphicNewFunction(report: ReportRuntime, graphicident: string, functionName: string, functionParams: string, seriecaption: string): boolean;
|
|
12
|
+
/** BaseReport.GraphicBounds. */
|
|
13
|
+
export declare function graphicBounds(report: ReportRuntime, graphicident: string, autol: boolean, autoh: boolean, lvalue: number, hvalue: number, logaritmic: boolean, logBase: number, inverted: boolean): boolean;
|
|
14
|
+
/** BaseReport.GraphicColor. */
|
|
15
|
+
export declare function graphicColor(report: ReportRuntime, graphicident: string, newcolor: number): boolean;
|
|
16
|
+
/** BaseReport.GraphicSerieColor. */
|
|
17
|
+
export declare function graphicSerieColor(report: ReportRuntime, graphicident: string, newcolor: number): boolean;
|
|
18
|
+
/** IdenFunctionReport of a chart function. */
|
|
19
|
+
declare abstract class IdenGraphicFunction extends IdenFunction {
|
|
20
|
+
readonly report: ReportRuntime;
|
|
21
|
+
private readonly checks;
|
|
22
|
+
constructor(report: ReportRuntime, name: string, checks: string, model: string);
|
|
23
|
+
protected get ctx(): import("../../index.js").VariantContext;
|
|
24
|
+
/** The type checks, in order: the first one that fails is error 438 of the translator. */
|
|
25
|
+
protected checkParams(): void;
|
|
26
|
+
protected str(i: number): string;
|
|
27
|
+
/** Params[i].AsDouble. */
|
|
28
|
+
protected dbl(i: number): number;
|
|
29
|
+
/** (bool)Params[i]. */
|
|
30
|
+
protected bool(i: number): boolean;
|
|
31
|
+
/** Params[i].AsInteger. */
|
|
32
|
+
protected int(i: number): number;
|
|
33
|
+
}
|
|
34
|
+
/** GRAPHICCLEAR(gr): the chart has no series. */
|
|
35
|
+
export declare class IdenGraphicClear extends IdenGraphicFunction {
|
|
36
|
+
constructor(report: ReportRuntime);
|
|
37
|
+
protected getValue(): Variant;
|
|
38
|
+
}
|
|
39
|
+
/** GRAPHICNEW(gr, value, changeserie, valuecaption, seriecaption): a value in the chart. */
|
|
40
|
+
export declare class IdenGraphicNew extends IdenGraphicFunction {
|
|
41
|
+
constructor(report: ReportRuntime);
|
|
42
|
+
protected getValue(): Variant;
|
|
43
|
+
}
|
|
44
|
+
/** GRAPHICBOUNDS(gr, autol, autoh, low, high, log, logbase, inverted): the value axis. */
|
|
45
|
+
export declare class IdenGraphicBounds extends IdenGraphicFunction {
|
|
46
|
+
constructor(report: ReportRuntime);
|
|
47
|
+
protected getValue(): Variant;
|
|
48
|
+
}
|
|
49
|
+
/** GRAPHICNEWXY(gr, x, y, changeserie, valuecaption, seriecaption): an X and Y value in the chart. */
|
|
50
|
+
export declare class IdenGraphicNewXY extends IdenGraphicFunction {
|
|
51
|
+
constructor(report: ReportRuntime);
|
|
52
|
+
protected getValue(): Variant;
|
|
53
|
+
}
|
|
54
|
+
/** GRAPHICNEWFUNCTION(gr, function, params, seriecaption): a function series. */
|
|
55
|
+
export declare class IdenGraphicNewFunction extends IdenGraphicFunction {
|
|
56
|
+
constructor(report: ReportRuntime);
|
|
57
|
+
protected getValue(): Variant;
|
|
58
|
+
}
|
|
59
|
+
/** GRAPHICCOLOR(gr, color): the colour of the last value. */
|
|
60
|
+
export declare class IdenGraphicColor extends IdenGraphicFunction {
|
|
61
|
+
constructor(report: ReportRuntime);
|
|
62
|
+
protected getValue(): Variant;
|
|
63
|
+
}
|
|
64
|
+
/** GRAPHICSERIECOLOR(gr, color): the colour of the current series. */
|
|
65
|
+
export declare class IdenGraphicSerieColor extends IdenGraphicFunction {
|
|
66
|
+
constructor(report: ReportRuntime);
|
|
67
|
+
protected getValue(): Variant;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=chartidens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartidens.d.ts","sourceRoot":"","sources":["../../../src/report/chart/chartidens.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EA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,IAAI,OAAO;CAI9B;AAED,6DAA6D;AAC7D,qBAAa,gBAAiB,SAAQ,mBAAmB;gBAC3C,MAAM,EAAE,aAAa;IAIjC,SAAS,CAAC,QAAQ,IAAI,OAAO;CAI9B;AAED,sEAAsE;AACtE,qBAAa,qBAAsB,SAAQ,mBAAmB;gBAChD,MAAM,EAAE,aAAa;IAIjC,SAAS,CAAC,QAAQ,IAAI,OAAO;CAI9B"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// Ports of the chart functions of Reportman.Reporting.BaseReport (IdenGraphicClear,
|
|
2
|
+
// IdenGraphicNew, IdenGraphicNewXY, IdenGraphicNewFunction, IdenGraphicBounds, IdenGraphicColor,
|
|
3
|
+
// IdenGraphicSerieColor) and of the BaseReport methods they call (GraphicClear, GraphicNew...):
|
|
4
|
+
// the first parameter names the identifier of a chart item, found with the report's evaluator.
|
|
5
|
+
import { IdenFunction } from '../../eval/identifiers.js';
|
|
6
|
+
import { NamedException, NetException } from '../../util/netexception.js';
|
|
7
|
+
import { Variant } from '../../variant/variant.js';
|
|
8
|
+
import { IdenChart } from './chartitem.js';
|
|
9
|
+
/** The chart variable an identifier names, or the error of the C# engine (a System.Exception). */
|
|
10
|
+
function chartOf(report, graphicident, verb) {
|
|
11
|
+
const niden = report.evaluator.searchIdentifier(graphicident);
|
|
12
|
+
if (!(niden instanceof IdenChart))
|
|
13
|
+
throw new NetException('Exception', 'Identifier: ' + graphicident + ' is not a grafic, calling ' + verb);
|
|
14
|
+
return niden;
|
|
15
|
+
}
|
|
16
|
+
/** BaseReport.GraphicClear. */
|
|
17
|
+
export function graphicClear(report, graphicident) {
|
|
18
|
+
chartOf(report, graphicident, 'GraphicClear').clear();
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
/** BaseReport.GraphicNew. */
|
|
22
|
+
export function graphicNew(report, graphicident, newvalue, change, valuecaption, seriecaption) {
|
|
23
|
+
chartOf(report, graphicident, 'GraphicNew').newValue(newvalue, change, valuecaption, seriecaption);
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
/** BaseReport.GraphicNewXY. */
|
|
27
|
+
export function graphicNewXY(report, graphicident, xvalue, newvalue, change, valuecaption, seriecaption) {
|
|
28
|
+
chartOf(report, graphicident, 'GraphicNew').newValueXY(xvalue, newvalue, change, valuecaption, seriecaption);
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
/** BaseReport.GraphicNewFunction. */
|
|
32
|
+
export function graphicNewFunction(report, graphicident, functionName, functionParams, seriecaption) {
|
|
33
|
+
chartOf(report, graphicident, 'GraphicNew').newFunction(functionName, functionParams, seriecaption);
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
/** BaseReport.GraphicBounds. */
|
|
37
|
+
export function graphicBounds(report, graphicident, autol, autoh, lvalue, hvalue, logaritmic, logBase, inverted) {
|
|
38
|
+
chartOf(report, graphicident, 'GraphicNew').graphicBounds(autol, autoh, lvalue, hvalue, logaritmic, logBase, inverted);
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
/** BaseReport.GraphicColor. */
|
|
42
|
+
export function graphicColor(report, graphicident, newcolor) {
|
|
43
|
+
chartOf(report, graphicident, 'GraphicColor').graphicColor(newcolor);
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
/** BaseReport.GraphicSerieColor. */
|
|
47
|
+
export function graphicSerieColor(report, graphicident, newcolor) {
|
|
48
|
+
chartOf(report, graphicident, 'GraphicSerieColor').graphicSerieColor(newcolor);
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
/** IdenFunctionReport of a chart function. */
|
|
52
|
+
class IdenGraphicFunction extends IdenFunction {
|
|
53
|
+
report;
|
|
54
|
+
checks;
|
|
55
|
+
// C# parity: BaseReport creates its identifiers before InitEvaluator, with a null evaluator.
|
|
56
|
+
constructor(report, name, checks, model) {
|
|
57
|
+
super(null);
|
|
58
|
+
this.report = report;
|
|
59
|
+
this.checks = checks.split('');
|
|
60
|
+
this.setParamCount(this.checks.length);
|
|
61
|
+
this.name = name;
|
|
62
|
+
this.fModel = model;
|
|
63
|
+
}
|
|
64
|
+
get ctx() {
|
|
65
|
+
return this.report.evaluator.context;
|
|
66
|
+
}
|
|
67
|
+
/** The type checks, in order: the first one that fails is error 438 of the translator. */
|
|
68
|
+
checkParams() {
|
|
69
|
+
this.checks.forEach((c, i) => {
|
|
70
|
+
const p = this.params[i];
|
|
71
|
+
const ok = c === 's' ? p.isString() : c === 'n' ? p.isNumber() : c === 'b' ? p.isBoolean() : p.isInteger();
|
|
72
|
+
if (!ok)
|
|
73
|
+
throw new NamedException(this.report.translator.translateStr(438), this.name);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
str(i) {
|
|
77
|
+
return this.params[i].toString(this.ctx);
|
|
78
|
+
}
|
|
79
|
+
/** Params[i].AsDouble. */
|
|
80
|
+
dbl(i) {
|
|
81
|
+
return this.params[i].toDouble(this.ctx);
|
|
82
|
+
}
|
|
83
|
+
/** (bool)Params[i]. */
|
|
84
|
+
bool(i) {
|
|
85
|
+
return this.params[i].toBool(this.ctx);
|
|
86
|
+
}
|
|
87
|
+
/** Params[i].AsInteger. */
|
|
88
|
+
int(i) {
|
|
89
|
+
return this.params[i].toInt(this.ctx);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** GRAPHICCLEAR(gr): the chart has no series. */
|
|
93
|
+
export class IdenGraphicClear extends IdenGraphicFunction {
|
|
94
|
+
constructor(report) {
|
|
95
|
+
super(report, 'GRAPHICCLEAR', 's', 'function GraphicClear(gr:string):Boolean');
|
|
96
|
+
}
|
|
97
|
+
getValue() {
|
|
98
|
+
this.checkParams();
|
|
99
|
+
return Variant.fromBoolean(graphicClear(this.report, this.str(0)));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/** GRAPHICNEW(gr, value, changeserie, valuecaption, seriecaption): a value in the chart. */
|
|
103
|
+
export class IdenGraphicNew extends IdenGraphicFunction {
|
|
104
|
+
constructor(report) {
|
|
105
|
+
super(report, 'GRAPHICNEW', 'snbss', 'function GraphicClear(gr:string;newvalue:double;changeserie:boolean;valuecaption:string;seriecaption:string):Boolean');
|
|
106
|
+
}
|
|
107
|
+
getValue() {
|
|
108
|
+
this.checkParams();
|
|
109
|
+
return Variant.fromBoolean(graphicNew(this.report, this.str(0), this.dbl(1), this.bool(2), this.str(3), this.str(4)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** GRAPHICBOUNDS(gr, autol, autoh, low, high, log, logbase, inverted): the value axis. */
|
|
113
|
+
export class IdenGraphicBounds extends IdenGraphicFunction {
|
|
114
|
+
constructor(report) {
|
|
115
|
+
super(report, 'GRAPHICBOUNDS', 'sbbnnbnb', 'function (Gr:string; autol,autoh:boolean; low,high:double;log:boolean; logbase:double; inverted:boolean):Boolean');
|
|
116
|
+
}
|
|
117
|
+
getValue() {
|
|
118
|
+
this.checkParams();
|
|
119
|
+
return Variant.fromBoolean(graphicBounds(this.report, this.str(0), this.bool(1), this.bool(2), this.dbl(3), this.dbl(4), this.bool(5), this.dbl(6), this.bool(7)));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/** GRAPHICNEWXY(gr, x, y, changeserie, valuecaption, seriecaption): an X and Y value in the chart. */
|
|
123
|
+
export class IdenGraphicNewXY extends IdenGraphicFunction {
|
|
124
|
+
constructor(report) {
|
|
125
|
+
super(report, 'GRAPHICNEWXY', 'snnbss', 'function GraphicClear(gr:string;xvalue,yvalue:double;changeserie:boolean;valuecaption:string;seriecaption:string):Boolean');
|
|
126
|
+
}
|
|
127
|
+
getValue() {
|
|
128
|
+
this.checkParams();
|
|
129
|
+
return Variant.fromBoolean(graphicNewXY(this.report, this.str(0), this.dbl(1), this.dbl(2), this.bool(3), this.str(4), this.str(5)));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** GRAPHICNEWFUNCTION(gr, function, params, seriecaption): a function series. */
|
|
133
|
+
export class IdenGraphicNewFunction extends IdenGraphicFunction {
|
|
134
|
+
constructor(report) {
|
|
135
|
+
super(report, 'GRAPHICNEWFUNCTION', 'ssss', 'function GraphicnewFunction(gr:string;functionName.string;functionParams:string;seriecaption:string):Boolean');
|
|
136
|
+
}
|
|
137
|
+
getValue() {
|
|
138
|
+
this.checkParams();
|
|
139
|
+
return Variant.fromBoolean(graphicNewFunction(this.report, this.str(0), this.str(1), this.str(2), this.str(3)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/** GRAPHICCOLOR(gr, color): the colour of the last value. */
|
|
143
|
+
export class IdenGraphicColor extends IdenGraphicFunction {
|
|
144
|
+
constructor(report) {
|
|
145
|
+
super(report, 'GRAPHICCOLOR', 'si', 'function GraphicColor(gr:string;Color:integer):Boolean');
|
|
146
|
+
}
|
|
147
|
+
getValue() {
|
|
148
|
+
this.checkParams();
|
|
149
|
+
return Variant.fromBoolean(graphicColor(this.report, this.str(0), this.int(1)));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/** GRAPHICSERIECOLOR(gr, color): the colour of the current series. */
|
|
153
|
+
export class IdenGraphicSerieColor extends IdenGraphicFunction {
|
|
154
|
+
constructor(report) {
|
|
155
|
+
super(report, 'GRAPHICSERIECOLOR', 'si', 'function GraphicSerieColor(gr:string;Color:integer):Boolean');
|
|
156
|
+
}
|
|
157
|
+
getValue() {
|
|
158
|
+
this.checkParams();
|
|
159
|
+
return Variant.fromBoolean(graphicSerieColor(this.report, this.str(0), this.int(1)));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=chartidens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartidens.js","sourceRoot":"","sources":["../../../src/report/chart/chartidens.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,iGAAiG;AACjG,gGAAgG;AAChG,+FAA+F;AAE/F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,E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AAC,CAAC,CAAC,CAAC;IACvF,CAAC;CACF"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ChartItem as ChartModel } from '@reportman/lib';
|
|
2
|
+
import { AutoRangeAxis, BarType, ChartDriver, ChartType } from '@reportman/lib';
|
|
3
|
+
import type { MetaFile, Point, PrintOut } from '@reportman/metafile';
|
|
4
|
+
import { IdenVariable } from '../../eval/identifiers.js';
|
|
5
|
+
import { Variant } from '../../variant/variant.js';
|
|
6
|
+
import { PrintItemText, SubReportEvent, type PartialRef } from '../items.js';
|
|
7
|
+
import type { ReportRuntime } from '../report.js';
|
|
8
|
+
import { Series } from './series.js';
|
|
9
|
+
/**
|
|
10
|
+
* VariableGraph: the variable of a chart item's identifier. It is a plain variable for the
|
|
11
|
+
* expressions (Null until something is assigned to it) that the GRAPHIC* functions recognise.
|
|
12
|
+
*/
|
|
13
|
+
export declare class IdenChart extends IdenVariable {
|
|
14
|
+
readonly report: ReportRuntime;
|
|
15
|
+
newChart: ChartItem;
|
|
16
|
+
constructor(report: ReportRuntime, chart: ChartItem);
|
|
17
|
+
clear(): void;
|
|
18
|
+
newValue(newvalue: number, seriechange: boolean, valuecaption: string | null, seriecaption: string): void;
|
|
19
|
+
newValueXY(newvalueX: number, newvalue: number, seriechange: boolean, valuecaption: string | null, seriecaption: string): void;
|
|
20
|
+
newFunction(functionName: string, functionParams: string, serieCaption: string): void;
|
|
21
|
+
graphicBounds(autol: boolean, autoh: boolean, lvalue: number, hvalue: number, logaritmic: boolean, logBase: number, inverted: boolean): void;
|
|
22
|
+
graphicColor(newcolor: number): void;
|
|
23
|
+
graphicSerieColor(newcolor: number): void;
|
|
24
|
+
}
|
|
25
|
+
/** ChartItem: a chart built from expression driven series while the subreport runs. */
|
|
26
|
+
export declare class ChartItem extends PrintItemText {
|
|
27
|
+
/**
|
|
28
|
+
* The palette of the C# item (SeriesColors). C# parity: nothing reads it; the vector chart has
|
|
29
|
+
* a palette of its own.
|
|
30
|
+
*/
|
|
31
|
+
static readonly SERIES_COLORS: readonly number[];
|
|
32
|
+
/** The accumulated series (FSeries). */
|
|
33
|
+
readonly series: Series;
|
|
34
|
+
readonly idenChart: IdenChart;
|
|
35
|
+
private fClearValue;
|
|
36
|
+
private fSerieValue;
|
|
37
|
+
changeSerieExpression: string;
|
|
38
|
+
clearExpression: string;
|
|
39
|
+
getValueCondition: string;
|
|
40
|
+
valueExpression: string;
|
|
41
|
+
valueXExpression: string;
|
|
42
|
+
captionExpression: string;
|
|
43
|
+
serieCaption: string;
|
|
44
|
+
colorExpression: string;
|
|
45
|
+
serieColorExpression: string;
|
|
46
|
+
changeSerieBool: boolean;
|
|
47
|
+
chartStyle: ChartType;
|
|
48
|
+
identifier: string;
|
|
49
|
+
clearExpressionBool: boolean;
|
|
50
|
+
driver: ChartDriver;
|
|
51
|
+
view3d: boolean;
|
|
52
|
+
view3dWalls: boolean;
|
|
53
|
+
perspective: number;
|
|
54
|
+
elevation: number;
|
|
55
|
+
rotation: number;
|
|
56
|
+
zoom: number;
|
|
57
|
+
horzOffset: number;
|
|
58
|
+
vertOffset: number;
|
|
59
|
+
tilt: number;
|
|
60
|
+
orthogonal: boolean;
|
|
61
|
+
multiBar: BarType;
|
|
62
|
+
resolution: number;
|
|
63
|
+
showLegend: boolean;
|
|
64
|
+
showHint: boolean;
|
|
65
|
+
markStyle: number;
|
|
66
|
+
horzFontSize: number;
|
|
67
|
+
vertFontSize: number;
|
|
68
|
+
horzFontRotation: number;
|
|
69
|
+
vertFontRotation: number;
|
|
70
|
+
autoRange: AutoRangeAxis;
|
|
71
|
+
axisYInitial: number;
|
|
72
|
+
axisYFinal: number;
|
|
73
|
+
/** The colours of the series saved with the report: only preserved, they do not change the chart. */
|
|
74
|
+
seriesColorsText: string;
|
|
75
|
+
constructor(report: ReportRuntime, model: ChartModel);
|
|
76
|
+
private get ctx();
|
|
77
|
+
/** Clear: no series, and the value axis bounds of the item again. */
|
|
78
|
+
clear(): void;
|
|
79
|
+
/** The series start empty with the report; every record adds a value when the condition holds. */
|
|
80
|
+
subReportChanged(newstate: SubReportEvent, newgroup: string): void;
|
|
81
|
+
private getNewValue;
|
|
82
|
+
private evaluateText;
|
|
83
|
+
/** EvaluateClearExpression: the series are cleared when the clear expression triggers. */
|
|
84
|
+
evaluateClearExpression(): void;
|
|
85
|
+
/** EvaluateChangeSerieExpression: a new series starts when the expression says so. */
|
|
86
|
+
evaluateChangeSerieExpression(): boolean;
|
|
87
|
+
/** EvaluateSerieCaption: the caption of a new series ("" without an expression). */
|
|
88
|
+
evaluateSerieCaption(): Variant;
|
|
89
|
+
/** CheckValueCondition: a value is collected only when the condition holds. */
|
|
90
|
+
checkValueCondition(): boolean;
|
|
91
|
+
/** GetSeries: the current series; the first one takes the appearance of the item. */
|
|
92
|
+
private getSeries;
|
|
93
|
+
/** NewValue: a value in the current series, or in a new one. */
|
|
94
|
+
newValue(newvalue: number, seriechange: boolean, valuecaption: string | null, seriecaption: string): void;
|
|
95
|
+
/** GraphicBounds: the range and scale of the value axis. */
|
|
96
|
+
graphicBounds(autol: boolean, autoh: boolean, lvalue: number, hvalue: number, logaritmic: boolean, logBase: number, inverted: boolean): void;
|
|
97
|
+
/** NewFunction: a series computed from the others (only when there is a series already). */
|
|
98
|
+
newFunction(functionName: string, functionParams: string, serieCaption: string): void;
|
|
99
|
+
/** NewValueXY: an X (a number, a date, or none) and Y value, in the current series or a new one. */
|
|
100
|
+
newValueXY(newvalueX: Variant | number | null, newvalue: number, seriechange: boolean, valuecaption: string | null, seriecaption: string): void;
|
|
101
|
+
/** GraphicColor: the colour of the last value of the current series. */
|
|
102
|
+
graphicColor(newcolor: number): void;
|
|
103
|
+
/** GraphicSerieColor: the colour of the current series. */
|
|
104
|
+
graphicSerieColor(newcolor: number): void;
|
|
105
|
+
/** DoPrint: the series drawn by the charting driver of the report, else by the device. */
|
|
106
|
+
protected doPrint(adriver: PrintOut, aposx: number, aposy: number, newwidth: number, newheight: number, metafile: MetaFile, maxExtent: Point, partialPrint: PartialRef): void;
|
|
107
|
+
/** PrintOut.DrawChart: the device's own chart support, else the vector chart (VectorChart.Draw). */
|
|
108
|
+
private drawChart;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=chartitem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartitem.d.ts","sourceRoot":"","sources":["../../../src/report/chart/chartitem.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,MAAM,EAAc,MAAM,aAAa,CAAC;AAGjD;;;GAGG;AACH,qBAAa,SAAU,SAAQ,YAAY;IACzC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;gBAIR,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS;IAMnD,KAAK,IAAI,IAAI;IAIb,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAIzG,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,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