@hirokisakabe/pom 0.1.12 → 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.
- package/README.md +28 -582
- package/dist/calcYogaLayout/calcYogaLayout.js +12 -0
- package/dist/inputSchema.d.ts +268 -2
- package/dist/inputSchema.d.ts.map +1 -1
- package/dist/inputSchema.js +53 -1
- package/dist/renderPptx/renderPptx.d.ts.map +1 -1
- package/dist/renderPptx/renderPptx.js +784 -0
- package/dist/toPositioned/toPositioned.d.ts.map +1 -1
- package/dist/toPositioned/toPositioned.js +45 -0
- package/dist/types.d.ts +399 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +134 -0
- package/package.json +11 -2
- package/dist/parsePptx/convertChart.d.ts +0 -8
- package/dist/parsePptx/convertChart.d.ts.map +0 -1
- package/dist/parsePptx/convertChart.js +0 -78
- package/dist/parsePptx/convertImage.d.ts +0 -8
- package/dist/parsePptx/convertImage.d.ts.map +0 -1
- package/dist/parsePptx/convertImage.js +0 -13
- package/dist/parsePptx/convertShape.d.ts +0 -7
- package/dist/parsePptx/convertShape.d.ts.map +0 -1
- package/dist/parsePptx/convertShape.js +0 -137
- package/dist/parsePptx/convertTable.d.ts +0 -7
- package/dist/parsePptx/convertTable.d.ts.map +0 -1
- package/dist/parsePptx/convertTable.js +0 -46
- package/dist/parsePptx/convertText.d.ts +0 -7
- package/dist/parsePptx/convertText.d.ts.map +0 -1
- package/dist/parsePptx/convertText.js +0 -32
- package/dist/parsePptx/index.d.ts +0 -23
- package/dist/parsePptx/index.d.ts.map +0 -1
- package/dist/parsePptx/index.js +0 -114
- package/dist/parsePptx/parseHtml.d.ts +0 -22
- package/dist/parsePptx/parseHtml.d.ts.map +0 -1
- package/dist/parsePptx/parseHtml.js +0 -53
- package/dist/parsePptx/types.d.ts +0 -15
- package/dist/parsePptx/types.d.ts.map +0 -1
- package/dist/parsePptx/types.js +0 -1
- package/dist/parsePptx/units.d.ts +0 -13
- package/dist/parsePptx/units.d.ts.map +0 -1
- package/dist/parsePptx/units.js +0 -19
package/dist/inputSchema.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
import { z } from "zod";
|
|
20
|
-
import { type AlignItems, type JustifyContent } from "./types";
|
|
20
|
+
import { type AlignItems, type JustifyContent, type TreeDataItem } from "./types";
|
|
21
21
|
export declare const inputBaseNodeSchema: z.ZodObject<{
|
|
22
22
|
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
23
23
|
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
@@ -500,11 +500,277 @@ export declare const inputChartNodeSchema: z.ZodObject<{
|
|
|
500
500
|
filled: "filled";
|
|
501
501
|
}>>;
|
|
502
502
|
}, z.core.$strip>;
|
|
503
|
+
export declare const inputTimelineNodeSchema: z.ZodObject<{
|
|
504
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
505
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
506
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
511
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
}, z.core.$strip>]>>;
|
|
516
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
517
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
color: z.ZodOptional<z.ZodString>;
|
|
519
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
solid: "solid";
|
|
522
|
+
dash: "dash";
|
|
523
|
+
dashDot: "dashDot";
|
|
524
|
+
lgDash: "lgDash";
|
|
525
|
+
lgDashDot: "lgDashDot";
|
|
526
|
+
lgDashDotDot: "lgDashDotDot";
|
|
527
|
+
sysDash: "sysDash";
|
|
528
|
+
sysDot: "sysDot";
|
|
529
|
+
}>>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
531
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
type: z.ZodLiteral<"timeline">;
|
|
533
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
horizontal: "horizontal";
|
|
535
|
+
vertical: "vertical";
|
|
536
|
+
}>>;
|
|
537
|
+
items: z.ZodArray<z.ZodObject<{
|
|
538
|
+
date: z.ZodString;
|
|
539
|
+
title: z.ZodString;
|
|
540
|
+
description: z.ZodOptional<z.ZodString>;
|
|
541
|
+
color: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
export declare const inputMatrixNodeSchema: z.ZodObject<{
|
|
545
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
546
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
547
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
552
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
}, z.core.$strip>]>>;
|
|
557
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
558
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
color: z.ZodOptional<z.ZodString>;
|
|
560
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
561
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
562
|
+
solid: "solid";
|
|
563
|
+
dash: "dash";
|
|
564
|
+
dashDot: "dashDot";
|
|
565
|
+
lgDash: "lgDash";
|
|
566
|
+
lgDashDot: "lgDashDot";
|
|
567
|
+
lgDashDotDot: "lgDashDotDot";
|
|
568
|
+
sysDash: "sysDash";
|
|
569
|
+
sysDot: "sysDot";
|
|
570
|
+
}>>;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
type: z.ZodLiteral<"matrix">;
|
|
574
|
+
axes: z.ZodObject<{
|
|
575
|
+
x: z.ZodString;
|
|
576
|
+
y: z.ZodString;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
quadrants: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
topLeft: z.ZodString;
|
|
580
|
+
topRight: z.ZodString;
|
|
581
|
+
bottomLeft: z.ZodString;
|
|
582
|
+
bottomRight: z.ZodString;
|
|
583
|
+
}, z.core.$strip>>;
|
|
584
|
+
items: z.ZodArray<z.ZodObject<{
|
|
585
|
+
label: z.ZodString;
|
|
586
|
+
x: z.ZodNumber;
|
|
587
|
+
y: z.ZodNumber;
|
|
588
|
+
color: z.ZodOptional<z.ZodString>;
|
|
589
|
+
}, z.core.$strip>>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
export declare const inputTreeDataItemSchema: z.ZodType<TreeDataItem>;
|
|
592
|
+
export declare const inputTreeNodeSchema: z.ZodObject<{
|
|
593
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
594
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
595
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
600
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
}, z.core.$strip>]>>;
|
|
605
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
606
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
607
|
+
color: z.ZodOptional<z.ZodString>;
|
|
608
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
609
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
610
|
+
solid: "solid";
|
|
611
|
+
dash: "dash";
|
|
612
|
+
dashDot: "dashDot";
|
|
613
|
+
lgDash: "lgDash";
|
|
614
|
+
lgDashDot: "lgDashDot";
|
|
615
|
+
lgDashDotDot: "lgDashDotDot";
|
|
616
|
+
sysDash: "sysDash";
|
|
617
|
+
sysDot: "sysDot";
|
|
618
|
+
}>>;
|
|
619
|
+
}, z.core.$strip>>;
|
|
620
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
type: z.ZodLiteral<"tree">;
|
|
622
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
623
|
+
horizontal: "horizontal";
|
|
624
|
+
vertical: "vertical";
|
|
625
|
+
}>>;
|
|
626
|
+
nodeShape: z.ZodOptional<z.ZodEnum<{
|
|
627
|
+
ellipse: "ellipse";
|
|
628
|
+
rect: "rect";
|
|
629
|
+
roundRect: "roundRect";
|
|
630
|
+
}>>;
|
|
631
|
+
data: z.ZodType<TreeDataItem, unknown, z.core.$ZodTypeInternals<TreeDataItem, unknown>>;
|
|
632
|
+
connectorStyle: z.ZodOptional<z.ZodObject<{
|
|
633
|
+
color: z.ZodOptional<z.ZodString>;
|
|
634
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
nodeWidth: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
nodeHeight: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
levelGap: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
siblingGap: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
}, z.core.$strip>;
|
|
641
|
+
export declare const inputFlowNodeSchema: z.ZodObject<{
|
|
642
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
643
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
644
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
645
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
646
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
649
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
650
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
652
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
653
|
+
}, z.core.$strip>]>>;
|
|
654
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
655
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
color: z.ZodOptional<z.ZodString>;
|
|
657
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
658
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
659
|
+
solid: "solid";
|
|
660
|
+
dash: "dash";
|
|
661
|
+
dashDot: "dashDot";
|
|
662
|
+
lgDash: "lgDash";
|
|
663
|
+
lgDashDot: "lgDashDot";
|
|
664
|
+
lgDashDotDot: "lgDashDotDot";
|
|
665
|
+
sysDash: "sysDash";
|
|
666
|
+
sysDot: "sysDot";
|
|
667
|
+
}>>;
|
|
668
|
+
}, z.core.$strip>>;
|
|
669
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
type: z.ZodLiteral<"flow">;
|
|
671
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
672
|
+
horizontal: "horizontal";
|
|
673
|
+
vertical: "vertical";
|
|
674
|
+
}>>;
|
|
675
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
676
|
+
id: z.ZodString;
|
|
677
|
+
shape: z.ZodEnum<{
|
|
678
|
+
flowChartConnector: "flowChartConnector";
|
|
679
|
+
flowChartDecision: "flowChartDecision";
|
|
680
|
+
flowChartDelay: "flowChartDelay";
|
|
681
|
+
flowChartDocument: "flowChartDocument";
|
|
682
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
683
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
684
|
+
flowChartManualInput: "flowChartManualInput";
|
|
685
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
686
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
687
|
+
flowChartPreparation: "flowChartPreparation";
|
|
688
|
+
flowChartProcess: "flowChartProcess";
|
|
689
|
+
flowChartTerminator: "flowChartTerminator";
|
|
690
|
+
}>;
|
|
691
|
+
text: z.ZodString;
|
|
692
|
+
color: z.ZodOptional<z.ZodString>;
|
|
693
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
694
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
695
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
696
|
+
}, z.core.$strip>>;
|
|
697
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
698
|
+
from: z.ZodString;
|
|
699
|
+
to: z.ZodString;
|
|
700
|
+
label: z.ZodOptional<z.ZodString>;
|
|
701
|
+
color: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, z.core.$strip>>;
|
|
703
|
+
connectorStyle: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
color: z.ZodOptional<z.ZodString>;
|
|
705
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
706
|
+
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
707
|
+
diamond: "diamond";
|
|
708
|
+
triangle: "triangle";
|
|
709
|
+
none: "none";
|
|
710
|
+
arrow: "arrow";
|
|
711
|
+
oval: "oval";
|
|
712
|
+
stealth: "stealth";
|
|
713
|
+
}>>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
nodeWidth: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
nodeHeight: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
nodeGap: z.ZodOptional<z.ZodNumber>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
export declare const inputProcessArrowNodeSchema: z.ZodObject<{
|
|
720
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
721
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
722
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
723
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
724
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
727
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
730
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
731
|
+
}, z.core.$strip>]>>;
|
|
732
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
733
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
734
|
+
color: z.ZodOptional<z.ZodString>;
|
|
735
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
736
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
737
|
+
solid: "solid";
|
|
738
|
+
dash: "dash";
|
|
739
|
+
dashDot: "dashDot";
|
|
740
|
+
lgDash: "lgDash";
|
|
741
|
+
lgDashDot: "lgDashDot";
|
|
742
|
+
lgDashDotDot: "lgDashDotDot";
|
|
743
|
+
sysDash: "sysDash";
|
|
744
|
+
sysDot: "sysDot";
|
|
745
|
+
}>>;
|
|
746
|
+
}, z.core.$strip>>;
|
|
747
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
748
|
+
type: z.ZodLiteral<"processArrow">;
|
|
749
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
750
|
+
horizontal: "horizontal";
|
|
751
|
+
vertical: "vertical";
|
|
752
|
+
}>>;
|
|
753
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
754
|
+
label: z.ZodString;
|
|
755
|
+
color: z.ZodOptional<z.ZodString>;
|
|
756
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>>;
|
|
758
|
+
itemWidth: z.ZodOptional<z.ZodNumber>;
|
|
759
|
+
itemHeight: z.ZodOptional<z.ZodNumber>;
|
|
760
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
761
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
}, z.core.$strip>;
|
|
503
764
|
export type InputTextNode = z.infer<typeof inputTextNodeSchema>;
|
|
504
765
|
export type InputImageNode = z.infer<typeof inputImageNodeSchema>;
|
|
505
766
|
export type InputTableNode = z.infer<typeof inputTableNodeSchema>;
|
|
506
767
|
export type InputShapeNode = z.infer<typeof inputShapeNodeSchema>;
|
|
507
768
|
export type InputChartNode = z.infer<typeof inputChartNodeSchema>;
|
|
769
|
+
export type InputTimelineNode = z.infer<typeof inputTimelineNodeSchema>;
|
|
770
|
+
export type InputMatrixNode = z.infer<typeof inputMatrixNodeSchema>;
|
|
771
|
+
export type InputTreeNode = z.infer<typeof inputTreeNodeSchema>;
|
|
772
|
+
export type InputFlowNode = z.infer<typeof inputFlowNodeSchema>;
|
|
773
|
+
export type InputProcessArrowNode = z.infer<typeof inputProcessArrowNodeSchema>;
|
|
508
774
|
export type InputBoxNode = InputBaseNode & {
|
|
509
775
|
type: "box";
|
|
510
776
|
children: InputPOMNode;
|
|
@@ -523,7 +789,7 @@ export type InputHStackNode = InputBaseNode & {
|
|
|
523
789
|
alignItems?: AlignItems;
|
|
524
790
|
justifyContent?: JustifyContent;
|
|
525
791
|
};
|
|
526
|
-
export type InputPOMNode = InputTextNode | InputImageNode | InputTableNode | InputBoxNode | InputVStackNode | InputHStackNode | InputShapeNode | InputChartNode;
|
|
792
|
+
export type InputPOMNode = InputTextNode | InputImageNode | InputTableNode | InputBoxNode | InputVStackNode | InputHStackNode | InputShapeNode | InputChartNode | InputTimelineNode | InputMatrixNode | InputTreeNode | InputFlowNode | InputProcessArrowNode;
|
|
527
793
|
export declare const inputBoxNodeSchema: z.ZodType<InputBoxNode>;
|
|
528
794
|
export declare const inputVStackNodeSchema: z.ZodType<InputVStackNode>;
|
|
529
795
|
export declare const inputHStackNodeSchema: z.ZodType<InputHStackNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputSchema.d.ts","sourceRoot":"","sources":["../src/inputSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"inputSchema.d.ts","sourceRoot":"","sources":["../src/inputSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EA8BL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW9B,CAAC;AAEH,KAAK,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;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;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAgB3B,CAAC;AAG7B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAaxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC"}
|
package/dist/inputSchema.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
import { z } from "zod";
|
|
20
|
-
import { lengthSchema, paddingSchema, borderStyleSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, pageNumberPositionSchema, chartTypeSchema, chartDataSchema, bulletOptionsSchema, radarStyleSchema, } from "./types";
|
|
20
|
+
import { lengthSchema, paddingSchema, borderStyleSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, pageNumberPositionSchema, chartTypeSchema, chartDataSchema, bulletOptionsSchema, radarStyleSchema, timelineDirectionSchema, timelineItemSchema, matrixAxisSchema, matrixQuadrantsSchema, matrixItemSchema, treeLayoutSchema, treeNodeShapeSchema, treeConnectorStyleSchema, flowDirectionSchema, flowNodeItemSchema, flowConnectionSchema, flowConnectorStyleSchema, processArrowDirectionSchema, processArrowStepSchema, } from "./types";
|
|
21
21
|
// ===== Base Node Schema =====
|
|
22
22
|
export const inputBaseNodeSchema = z.object({
|
|
23
23
|
w: lengthSchema.optional(),
|
|
@@ -75,6 +75,53 @@ export const inputChartNodeSchema = inputBaseNodeSchema.extend({
|
|
|
75
75
|
// radar専用オプション
|
|
76
76
|
radarStyle: radarStyleSchema.optional(),
|
|
77
77
|
});
|
|
78
|
+
export const inputTimelineNodeSchema = inputBaseNodeSchema.extend({
|
|
79
|
+
type: z.literal("timeline"),
|
|
80
|
+
direction: timelineDirectionSchema.optional(),
|
|
81
|
+
items: z.array(timelineItemSchema),
|
|
82
|
+
});
|
|
83
|
+
export const inputMatrixNodeSchema = inputBaseNodeSchema.extend({
|
|
84
|
+
type: z.literal("matrix"),
|
|
85
|
+
axes: matrixAxisSchema,
|
|
86
|
+
quadrants: matrixQuadrantsSchema.optional(),
|
|
87
|
+
items: z.array(matrixItemSchema),
|
|
88
|
+
});
|
|
89
|
+
export const inputTreeDataItemSchema = z.lazy(() => z.object({
|
|
90
|
+
label: z.string(),
|
|
91
|
+
color: z.string().optional(),
|
|
92
|
+
children: z.array(inputTreeDataItemSchema).optional(),
|
|
93
|
+
}));
|
|
94
|
+
export const inputTreeNodeSchema = inputBaseNodeSchema.extend({
|
|
95
|
+
type: z.literal("tree"),
|
|
96
|
+
layout: treeLayoutSchema.optional(),
|
|
97
|
+
nodeShape: treeNodeShapeSchema.optional(),
|
|
98
|
+
data: inputTreeDataItemSchema,
|
|
99
|
+
connectorStyle: treeConnectorStyleSchema.optional(),
|
|
100
|
+
nodeWidth: z.number().optional(),
|
|
101
|
+
nodeHeight: z.number().optional(),
|
|
102
|
+
levelGap: z.number().optional(),
|
|
103
|
+
siblingGap: z.number().optional(),
|
|
104
|
+
});
|
|
105
|
+
export const inputFlowNodeSchema = inputBaseNodeSchema.extend({
|
|
106
|
+
type: z.literal("flow"),
|
|
107
|
+
direction: flowDirectionSchema.optional(),
|
|
108
|
+
nodes: z.array(flowNodeItemSchema),
|
|
109
|
+
connections: z.array(flowConnectionSchema),
|
|
110
|
+
connectorStyle: flowConnectorStyleSchema.optional(),
|
|
111
|
+
nodeWidth: z.number().optional(),
|
|
112
|
+
nodeHeight: z.number().optional(),
|
|
113
|
+
nodeGap: z.number().optional(),
|
|
114
|
+
});
|
|
115
|
+
export const inputProcessArrowNodeSchema = inputBaseNodeSchema.extend({
|
|
116
|
+
type: z.literal("processArrow"),
|
|
117
|
+
direction: processArrowDirectionSchema.optional(),
|
|
118
|
+
steps: z.array(processArrowStepSchema),
|
|
119
|
+
itemWidth: z.number().optional(),
|
|
120
|
+
itemHeight: z.number().optional(),
|
|
121
|
+
gap: z.number().optional(),
|
|
122
|
+
fontPx: z.number().optional(),
|
|
123
|
+
bold: z.boolean().optional(),
|
|
124
|
+
});
|
|
78
125
|
// ===== Recursive Node Schemas =====
|
|
79
126
|
const inputBoxNodeSchemaBase = inputBaseNodeSchema.extend({
|
|
80
127
|
type: z.literal("box"),
|
|
@@ -124,6 +171,11 @@ export const inputPomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
|
|
|
124
171
|
inputHStackNodeSchemaBase,
|
|
125
172
|
inputShapeNodeSchema,
|
|
126
173
|
inputChartNodeSchema,
|
|
174
|
+
inputTimelineNodeSchema,
|
|
175
|
+
inputMatrixNodeSchema,
|
|
176
|
+
inputTreeNodeSchema,
|
|
177
|
+
inputFlowNodeSchema,
|
|
178
|
+
inputProcessArrowNodeSchema,
|
|
127
179
|
]));
|
|
128
180
|
// ===== Master Slide Options Schema =====
|
|
129
181
|
export const inputMasterSlideOptionsSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderPptx.d.ts","sourceRoot":"","sources":["../../src/renderPptx/renderPptx.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"renderPptx.d.ts","sourceRoot":"","sources":["../../src/renderPptx/renderPptx.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,UAAU,CAAC;AAKlB,KAAK,OAAO,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,iBA0nCnE"}
|