@salmonui/export 0.0.0-stage → 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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -2
  3. package/dist/blob.d.ts +6 -0
  4. package/dist/blob.d.ts.map +1 -0
  5. package/dist/blob.js +10 -0
  6. package/dist/blob.js.map +1 -0
  7. package/dist/bytes.d.ts +55 -0
  8. package/dist/bytes.d.ts.map +1 -0
  9. package/dist/bytes.js +167 -0
  10. package/dist/bytes.js.map +1 -0
  11. package/dist/gantt.d.ts +111 -0
  12. package/dist/gantt.d.ts.map +1 -0
  13. package/dist/gantt.js +348 -0
  14. package/dist/gantt.js.map +1 -0
  15. package/dist/graphics.d.ts +58 -0
  16. package/dist/graphics.d.ts.map +1 -0
  17. package/dist/graphics.js +651 -0
  18. package/dist/graphics.js.map +1 -0
  19. package/dist/ics.d.ts +90 -0
  20. package/dist/ics.d.ts.map +1 -0
  21. package/dist/ics.js +528 -0
  22. package/dist/ics.js.map +1 -0
  23. package/dist/image.d.ts +10 -0
  24. package/dist/image.d.ts.map +1 -0
  25. package/dist/image.js +49 -0
  26. package/dist/image.js.map +1 -0
  27. package/dist/pdf-fonts.d.ts +22 -0
  28. package/dist/pdf-fonts.d.ts.map +1 -0
  29. package/dist/pdf-fonts.js +647 -0
  30. package/dist/pdf-fonts.js.map +1 -0
  31. package/dist/pdf-images.d.ts +17 -0
  32. package/dist/pdf-images.d.ts.map +1 -0
  33. package/dist/pdf-images.js +221 -0
  34. package/dist/pdf-images.js.map +1 -0
  35. package/dist/pdf-writer.d.ts +80 -0
  36. package/dist/pdf-writer.d.ts.map +1 -0
  37. package/dist/pdf-writer.js +677 -0
  38. package/dist/pdf-writer.js.map +1 -0
  39. package/dist/pdf.d.ts +14 -0
  40. package/dist/pdf.d.ts.map +1 -0
  41. package/dist/pdf.js +16 -0
  42. package/dist/pdf.js.map +1 -0
  43. package/dist/pivot.d.ts +194 -0
  44. package/dist/pivot.d.ts.map +1 -0
  45. package/dist/pivot.js +451 -0
  46. package/dist/pivot.js.map +1 -0
  47. package/dist/shared.d.ts +26 -0
  48. package/dist/shared.d.ts.map +1 -0
  49. package/dist/shared.js +36 -0
  50. package/dist/shared.js.map +1 -0
  51. package/dist/xlsx-writer.d.ts +61 -0
  52. package/dist/xlsx-writer.d.ts.map +1 -0
  53. package/dist/xlsx-writer.js +759 -0
  54. package/dist/xlsx-writer.js.map +1 -0
  55. package/dist/xlsx.d.ts +15 -0
  56. package/dist/xlsx.d.ts.map +1 -0
  57. package/dist/xlsx.js +18 -0
  58. package/dist/xlsx.js.map +1 -0
  59. package/dist/zip.d.ts +19 -0
  60. package/dist/zip.d.ts.map +1 -0
  61. package/dist/zip.js +106 -0
  62. package/dist/zip.js.map +1 -0
  63. package/package.json +63 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 NuLL
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,45 @@
1
- # Temporary Holding Version
1
+ # @salmonui/export
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Zero-dependency XLSX, PDF, image and iCalendar writers for Salmon UI exports, built on the @salmonui/core export model.
4
+
5
+ ```sh
6
+ npm install @salmonui/export @salmonui/core
7
+ ```
8
+
9
+ No third-party runtime dependencies, no React, no DOM: the writers run in
10
+ browsers and Node. ESM only; there is no root entry, import the format you
11
+ need. Every `@salmonui/*` package of an application must resolve to the same version (they are released together and exact-pinned to each other); `@salmonui/core` warns in development when a second copy loads.
12
+
13
+ ```ts
14
+ import { exportXlsx } from '@salmonui/export/xlsx';
15
+ import { exportPdf } from '@salmonui/export/pdf';
16
+ import { exportICalendar } from '@salmonui/export/ics';
17
+ ```
18
+
19
+ Components never import this package. Pass writer loaders instead, so a
20
+ writer loads only when an export runs:
21
+
22
+ ```tsx
23
+ <DataGrid
24
+ exportWriters={{ excel: () => import('@salmonui/export/xlsx'), pdf: () => import('@salmonui/export/pdf') }}
25
+ /* ... */
26
+ />
27
+ ```
28
+
29
+ Server-side Data Grid exports use `@salmonui/data-grid/engine/export-server`,
30
+ which loads these writers on use.
31
+
32
+ Public entry points:
33
+
34
+ - `@salmonui/export/blob` (`toBlob`)
35
+ - `@salmonui/export/xlsx`
36
+ - `@salmonui/export/pdf`
37
+ - `@salmonui/export/graphics`
38
+ - `@salmonui/export/image`
39
+ - `@salmonui/export/ics`
40
+ - `@salmonui/export/pivot`
41
+ - `@salmonui/export/gantt`
42
+
43
+ ## License
44
+
45
+ MIT
package/dist/blob.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /** Wraps an export file in a platform `Blob`; throws where `Blob` is unavailable. */
2
+ export declare function toBlob(file: {
3
+ readonly data: Uint8Array | string;
4
+ readonly mimeType: string;
5
+ }): unknown;
6
+ //# sourceMappingURL=blob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../src/blob.ts"],"names":[],"mappings":"AAOA,qFAAqF;AACrF,wBAAgB,MAAM,CAAC,IAAI,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAIvG"}
package/dist/blob.js ADDED
@@ -0,0 +1,10 @@
1
+ // Blob helper. The package compiles without the DOM lib, so the
2
+ // platform `Blob` is read structurally from `globalThis`.
3
+ /** Wraps an export file in a platform `Blob`; throws where `Blob` is unavailable. */
4
+ export function toBlob(file) {
5
+ const Blob = globalThis.Blob;
6
+ if (!Blob)
7
+ throw new Error('toBlob: Blob is not available in this runtime.');
8
+ return new Blob([file.data], { type: file.mimeType });
9
+ }
10
+ //# sourceMappingURL=blob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blob.js","sourceRoot":"","sources":["../src/blob.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,0DAA0D;AAM1D,qFAAqF;AACrF,MAAM,UAAU,MAAM,CAAC,IAAuE;IAC5F,MAAM,IAAI,GAAI,UAAkC,CAAC,IAAI,CAAC;IACtD,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IAC7E,OAAO,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,55 @@
1
+ /** @internal */
2
+ export interface ByteChunks {
3
+ readonly chunks: Uint8Array[];
4
+ readonly length: number;
5
+ }
6
+ interface StreamWriterLike {
7
+ write(chunk: Uint8Array): Promise<void>;
8
+ close(): Promise<void>;
9
+ }
10
+ interface StreamReaderLike {
11
+ read(): Promise<{
12
+ done: boolean;
13
+ value?: Uint8Array;
14
+ }>;
15
+ }
16
+ /** @internal */
17
+ export interface CompressionStreamLike {
18
+ readonly writable: {
19
+ getWriter(): StreamWriterLike;
20
+ };
21
+ readonly readable: {
22
+ getReader(): StreamReaderLike;
23
+ };
24
+ }
25
+ /** @internal UTF-8 bytes of a string. */
26
+ export declare function utf8(text: string): Uint8Array;
27
+ /** @internal Bytes of a string whose code units are all below 256 (PDF syntax). */
28
+ export declare function latin1(text: string): Uint8Array;
29
+ /** CRC-32 (IEEE) of `data`, continuing from `crc` (0 to start). */
30
+ export declare function crc32(data: Uint8Array, crc?: number): number;
31
+ /** @internal Concatenates chunks. */
32
+ export declare function concat(chunks: readonly Uint8Array[], length?: number): Uint8Array;
33
+ /** @internal True when the platform offers `CompressionStream` with the format. */
34
+ export declare function canCompress(format: 'deflate' | 'deflate-raw'): boolean;
35
+ /** @internal Incremental compressor over the platform `CompressionStream`. */
36
+ export interface Deflater {
37
+ write(bytes: Uint8Array): Promise<void>;
38
+ /** Flushes and returns the compressed bytes. */
39
+ close(): Promise<ByteChunks>;
40
+ }
41
+ /** @internal A streaming deflater, or null when the platform has none. */
42
+ export declare function createDeflater(format: 'deflate' | 'deflate-raw'): Deflater | null;
43
+ /** @internal Compresses one buffer (zlib `deflate` for PDF streams); null without platform support. */
44
+ export declare function deflate(bytes: Uint8Array, format: 'deflate' | 'deflate-raw'): Promise<Uint8Array | null>;
45
+ /** Awaited between time slices. Default: a macrotask (`setTimeout(0)`). */
46
+ export type YieldFn = () => Promise<void>;
47
+ /** @internal */
48
+ export declare const defaultYield: YieldFn;
49
+ /** @internal Time slicer: `due()` is true once the current slice ran `sliceMs`; `pause()` yields and starts a new slice. */
50
+ export declare function createSlicer(sliceMs: number, yieldFn: YieldFn): {
51
+ due(): boolean;
52
+ pause(): Promise<void>;
53
+ };
54
+ export {};
55
+ //# sourceMappingURL=bytes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../src/bytes.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,KAAK,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;CAC9B;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,IAAI,CAgCjF;AAED,uGAAuG;AACvG,wBAAsB,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAM9G;AAED,2EAA2E;AAC3E,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,YAAY,EAAE,OAG1B,CAAC;AAEF,4HAA4H;AAC5H,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG;IAAE,GAAG,IAAI,OAAO,CAAC;IAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAS1G"}
package/dist/bytes.js ADDED
@@ -0,0 +1,167 @@
1
+ // Byte-level helpers shared by the XLSX and PDF writers: UTF-8 encoding,
2
+ // CRC-32, platform deflate through `CompressionStream` (browsers and Node
3
+ // 22+; no third-party code), and time slicing. The package compiles without
4
+ // the DOM lib, so platform globals are read structurally from `globalThis`.
5
+ const encoder = (() => {
6
+ const Ctor = globalThis.TextEncoder;
7
+ return Ctor ? new Ctor() : null;
8
+ })();
9
+ /** @internal UTF-8 bytes of a string. */
10
+ export function utf8(text) {
11
+ if (encoder)
12
+ return encoder.encode(text);
13
+ const out = [];
14
+ for (let i = 0; i < text.length; i++) {
15
+ let c = text.charCodeAt(i);
16
+ if (c >= 0xd800 && c < 0xdc00 && i + 1 < text.length) {
17
+ const d = text.charCodeAt(i + 1);
18
+ if (d >= 0xdc00 && d < 0xe000) {
19
+ c = 0x10000 + ((c - 0xd800) << 10) + (d - 0xdc00);
20
+ i++;
21
+ }
22
+ }
23
+ if (c < 0x80)
24
+ out.push(c);
25
+ else if (c < 0x800)
26
+ out.push(0xc0 | (c >> 6), 0x80 | (c & 63));
27
+ else if (c < 0x10000)
28
+ out.push(0xe0 | (c >> 12), 0x80 | ((c >> 6) & 63), 0x80 | (c & 63));
29
+ else
30
+ out.push(0xf0 | (c >> 18), 0x80 | ((c >> 12) & 63), 0x80 | ((c >> 6) & 63), 0x80 | (c & 63));
31
+ }
32
+ return Uint8Array.from(out);
33
+ }
34
+ /** @internal Bytes of a string whose code units are all below 256 (PDF syntax). */
35
+ export function latin1(text) {
36
+ const out = new Uint8Array(text.length);
37
+ for (let i = 0; i < text.length; i++)
38
+ out[i] = text.charCodeAt(i) & 255;
39
+ return out;
40
+ }
41
+ const CRC_TABLE = (() => {
42
+ const t = new Int32Array(256 * 8);
43
+ for (let n = 0; n < 256; n++) {
44
+ let c = n;
45
+ for (let k = 0; k < 8; k++)
46
+ c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
47
+ t[n] = c;
48
+ }
49
+ // Slicing-by-8 tables.
50
+ for (let n = 0; n < 256; n++) {
51
+ let c = t[n];
52
+ for (let k = 1; k < 8; k++) {
53
+ c = t[c & 255] ^ (c >>> 8);
54
+ t[k * 256 + n] = c;
55
+ }
56
+ }
57
+ return t;
58
+ })();
59
+ /** CRC-32 (IEEE) of `data`, continuing from `crc` (0 to start). */
60
+ export function crc32(data, crc = 0) {
61
+ const t = CRC_TABLE;
62
+ let c = ~crc;
63
+ let i = 0;
64
+ const n = data.length;
65
+ const end8 = n - (n & 7);
66
+ for (; i < end8; i += 8) {
67
+ c ^= data[i] | (data[i + 1] << 8) | (data[i + 2] << 16) | (data[i + 3] << 24);
68
+ c =
69
+ t[7 * 256 + (c & 255)] ^
70
+ t[6 * 256 + ((c >>> 8) & 255)] ^
71
+ t[5 * 256 + ((c >>> 16) & 255)] ^
72
+ t[4 * 256 + (c >>> 24)] ^
73
+ t[3 * 256 + data[i + 4]] ^
74
+ t[2 * 256 + data[i + 5]] ^
75
+ t[256 + data[i + 6]] ^
76
+ t[data[i + 7]];
77
+ }
78
+ for (; i < n; i++)
79
+ c = t[(c ^ data[i]) & 255] ^ (c >>> 8);
80
+ return ~c >>> 0;
81
+ }
82
+ /** @internal Concatenates chunks. */
83
+ export function concat(chunks, length) {
84
+ const total = length ?? chunks.reduce((n, c) => n + c.length, 0);
85
+ const out = new Uint8Array(total);
86
+ let at = 0;
87
+ for (const c of chunks) {
88
+ out.set(c, at);
89
+ at += c.length;
90
+ }
91
+ return out;
92
+ }
93
+ /** @internal True when the platform offers `CompressionStream` with the format. */
94
+ export function canCompress(format) {
95
+ const Ctor = globalThis.CompressionStream;
96
+ if (!Ctor)
97
+ return false;
98
+ try {
99
+ new Ctor(format);
100
+ return true;
101
+ }
102
+ catch {
103
+ return false;
104
+ }
105
+ }
106
+ /** @internal A streaming deflater, or null when the platform has none. */
107
+ export function createDeflater(format) {
108
+ const Ctor = globalThis.CompressionStream;
109
+ if (!Ctor || !canCompress(format))
110
+ return null;
111
+ const stream = new Ctor(format);
112
+ const writer = stream.writable.getWriter();
113
+ const reader = stream.readable.getReader();
114
+ const chunks = [];
115
+ let length = 0;
116
+ const pump = (async () => {
117
+ for (;;) {
118
+ const { done, value } = await reader.read();
119
+ if (done)
120
+ return;
121
+ if (value) {
122
+ chunks.push(value);
123
+ length += value.length;
124
+ }
125
+ }
126
+ })();
127
+ let pending = Promise.resolve();
128
+ return {
129
+ write(bytes) {
130
+ // Writes are not awaited one by one (that would round-trip per chunk); backpressure is bounded by the caller's batch size.
131
+ pending = writer.write(bytes);
132
+ return pending;
133
+ },
134
+ async close() {
135
+ await pending;
136
+ await writer.close();
137
+ await pump;
138
+ return { chunks, length };
139
+ },
140
+ };
141
+ }
142
+ /** @internal Compresses one buffer (zlib `deflate` for PDF streams); null without platform support. */
143
+ export async function deflate(bytes, format) {
144
+ const d = createDeflater(format);
145
+ if (!d)
146
+ return null;
147
+ await d.write(bytes);
148
+ const out = await d.close();
149
+ return concat(out.chunks, out.length);
150
+ }
151
+ /** @internal */
152
+ export const defaultYield = () => {
153
+ const timer = globalThis.setTimeout;
154
+ return timer ? new Promise((resolve) => void timer(resolve, 0)) : Promise.resolve();
155
+ };
156
+ /** @internal Time slicer: `due()` is true once the current slice ran `sliceMs`; `pause()` yields and starts a new slice. */
157
+ export function createSlicer(sliceMs, yieldFn) {
158
+ let started = Date.now();
159
+ return {
160
+ due: () => Date.now() - started >= sliceMs,
161
+ async pause() {
162
+ await yieldFn();
163
+ started = Date.now();
164
+ },
165
+ };
166
+ }
167
+ //# sourceMappingURL=bytes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bytes.js","sourceRoot":"","sources":["../src/bytes.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AA6B5E,MAAM,OAAO,GAA2B,CAAC,GAAG,EAAE;IAC5C,MAAM,IAAI,GAAI,UAA0D,CAAC,WAAW,CAAC;IACrF,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAClC,CAAC,CAAC,EAAE,CAAC;AAEL,yCAAyC;AACzC,MAAM,UAAU,IAAI,CAAC,IAAY;IAC/B,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACrD,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,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I,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACpB,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACrB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC;IAC5B,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;AACxC,CAAC;AAKD,gBAAgB;AAChB,MAAM,CAAC,MAAM,YAAY,GAAY,GAAG,EAAE;IACxC,MAAM,KAAK,GAAI,UAAuE,CAAC,UAAU,CAAC;IAClG,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;AACtF,CAAC,CAAC;AAEF,4HAA4H;AAC5H,MAAM,UAAU,YAAY,CAAC,OAAe,EAAE,OAAgB;IAC5D,IAAI,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,OAAO;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,IAAI,OAAO;QAC1C,KAAK,CAAC,KAAK;YACT,MAAM,OAAO,EAAE,CAAC;YAChB,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { type PdfPageSize } from './pdf-writer.js';
2
+ import type { PdfFont, PdfFontData } from './pdf-fonts.js';
3
+ export type { PdfFont, PdfFontData, PdfPageSize } from './pdf-writer.js';
4
+ export type GanttPdfBarKind = 'task' | 'parent' | 'milestone' | 'baseline' | 'unscheduled';
5
+ /** One bar of the chart, in px; `row` indexes `GanttPdfModel.rows`, `top` / `height` are inside the row. */
6
+ export interface GanttPdfBar {
7
+ readonly row: number;
8
+ readonly kind: GanttPdfBarKind;
9
+ readonly x: number;
10
+ readonly width: number;
11
+ readonly top: number;
12
+ readonly height: number;
13
+ /** 0..100. */
14
+ readonly progress: number;
15
+ /** `#rrggbb`. */
16
+ readonly color: string;
17
+ readonly progressColor: string;
18
+ /** Outlined with `progressColor`. */
19
+ readonly critical?: boolean;
20
+ /** Split task parts (px from the chart start), joined by a dashed line. */
21
+ readonly segments?: readonly {
22
+ readonly x: number;
23
+ readonly width: number;
24
+ }[];
25
+ /** Drawn after the bar end. */
26
+ readonly label?: string;
27
+ }
28
+ /** The laid-out Gantt chart to print, in CSS px. */
29
+ export interface GanttPdfModel {
30
+ /** Document title (`/Title`). */
31
+ readonly title?: string;
32
+ readonly direction?: 'ltr' | 'rtl';
33
+ /** Grid pane columns, px widths. */
34
+ readonly columns: readonly {
35
+ readonly header: string;
36
+ readonly width: number;
37
+ readonly align?: 'start' | 'center' | 'end';
38
+ }[];
39
+ /** One entry per exported row, top to bottom; `cells` aligned with `columns` (the first cell is indented by `depth`). */
40
+ readonly rows: readonly {
41
+ readonly cells: readonly string[];
42
+ readonly depth: number;
43
+ readonly parent: boolean;
44
+ readonly height: number;
45
+ }[];
46
+ /** Chart width in px. */
47
+ readonly chartWidth: number;
48
+ /** Height of the timeline header (all tiers) and of the grid header row, px. */
49
+ readonly headerHeight: number;
50
+ /** Timeline header tiers, top to bottom; cells in px from the chart start. */
51
+ readonly tiers: readonly {
52
+ readonly cells: readonly {
53
+ readonly x: number;
54
+ readonly width: number;
55
+ readonly text: string;
56
+ }[];
57
+ }[];
58
+ readonly bars: readonly GanttPdfBar[];
59
+ /** Polylines in chart px (y from the top of the first row); the arrow is at the last point, along the last segment. */
60
+ readonly connectors: readonly {
61
+ readonly points: readonly (readonly [number, number])[];
62
+ readonly color: string;
63
+ }[];
64
+ /** Weekend / holiday shading, px. */
65
+ readonly shades: readonly {
66
+ readonly x: number;
67
+ readonly width: number;
68
+ readonly color: string;
69
+ readonly label?: string;
70
+ }[];
71
+ /** Event markers, px. */
72
+ readonly markers: readonly {
73
+ readonly x: number;
74
+ readonly color: string;
75
+ readonly label?: string;
76
+ }[];
77
+ readonly colors: {
78
+ readonly text: string;
79
+ readonly headerText: string;
80
+ readonly headerBackground: string;
81
+ readonly line: string;
82
+ readonly background: string;
83
+ };
84
+ }
85
+ export interface GanttPdfOptions {
86
+ /** Default `Gantt.pdf`. */
87
+ readonly fileName?: string;
88
+ /** A PDF writer page size (case-insensitive), or the size in points. Default `a4`. */
89
+ readonly pageSize?: PdfPageSize | 'A4' | 'A3' | 'Letter' | 'Legal' | readonly [number, number] | {
90
+ readonly width: number;
91
+ readonly height: number;
92
+ };
93
+ /** Default `landscape`. */
94
+ readonly orientation?: 'portrait' | 'landscape';
95
+ /** Scales the grid and the whole chart to the page width (one page per row band). Default false. */
96
+ readonly fitToWidth?: boolean;
97
+ /** Page header text; `{page}` and `{pages}` are replaced. */
98
+ readonly header?: string;
99
+ /** Page footer text; default `{page} / {pages}`. Empty string for none. */
100
+ readonly footer?: string;
101
+ /** TrueType font for all text (the PDF writer's `font`): needed outside WinAnsi and for RTL scripts. */
102
+ readonly font?: PdfFont | PdfFontData;
103
+ }
104
+ export interface GanttPdfFile {
105
+ readonly fileName: string;
106
+ readonly mimeType: 'application/pdf';
107
+ readonly data: Uint8Array;
108
+ }
109
+ /** Writes the Gantt chart as a PDF file. */
110
+ export declare function exportGanttPdf(model: GanttPdfModel, options?: GanttPdfOptions): Promise<GanttPdfFile>;
111
+ //# sourceMappingURL=gantt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt.d.ts","sourceRoot":"","sources":["../src/gantt.ts"],"names":[],"mappings":"AAYA,OAAO,EAAkE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,KAAK,EAAgB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEzE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzE,MAAM,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