gantt-lib 0.72.0 → 0.72.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/dist/index.d.mts CHANGED
@@ -466,7 +466,7 @@ interface ExportToPdfOptions {
466
466
  fileName?: string;
467
467
  /** Human-readable document title rendered above the exported chart */
468
468
  title?: string;
469
- /** PDF page orientation used for the browser print layout */
469
+ /** Optional PDF page orientation hint for the browser print layout */
470
470
  orientation?: 'portrait' | 'landscape';
471
471
  /** Include the task list area in the exported document (default: mirrors current chart config) */
472
472
  includeTaskList?: boolean;
package/dist/index.d.ts CHANGED
@@ -466,7 +466,7 @@ interface ExportToPdfOptions {
466
466
  fileName?: string;
467
467
  /** Human-readable document title rendered above the exported chart */
468
468
  title?: string;
469
- /** PDF page orientation used for the browser print layout */
469
+ /** Optional PDF page orientation hint for the browser print layout */
470
470
  orientation?: 'portrait' | 'landscape';
471
471
  /** Include the task list area in the exported document (default: mirrors current chart config) */
472
472
  includeTaskList?: boolean;
package/dist/index.js CHANGED
@@ -7358,7 +7358,7 @@ function createPrintStyle(targetDocument, orientation) {
7358
7358
  const style = targetDocument.createElement("style");
7359
7359
  style.textContent = `
7360
7360
  @page {
7361
- size: ${orientation};
7361
+ ${orientation ? `size: ${orientation};` : ""}
7362
7362
  margin: 12mm;
7363
7363
  }
7364
7364
 
@@ -7930,7 +7930,7 @@ function GanttChartInner(props, ref) {
7930
7930
  header: options?.header,
7931
7931
  title: options?.title,
7932
7932
  fileName: options?.fileName,
7933
- orientation: options?.orientation ?? "landscape"
7933
+ orientation: options?.orientation
7934
7934
  });
7935
7935
  }, [showTaskList, showChart]);
7936
7936
  (0, import_react13.useImperativeHandle)(