@hirokisakabe/pom 0.1.11 → 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 -580
- package/dist/calcYogaLayout/calcYogaLayout.js +12 -0
- package/dist/inputSchema.d.ts +274 -2
- package/dist/inputSchema.d.ts.map +1 -1
- package/dist/inputSchema.js +54 -1
- package/dist/renderPptx/renderPptx.d.ts.map +1 -1
- package/dist/renderPptx/renderPptx.js +795 -2
- package/dist/toPositioned/toPositioned.d.ts.map +1 -1
- package/dist/toPositioned/toPositioned.js +45 -0
- package/dist/types.d.ts +405 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +135 -0
- package/package.json +11 -2
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]>>;
|
|
@@ -46,6 +46,7 @@ export declare const inputBaseNodeSchema: z.ZodObject<{
|
|
|
46
46
|
sysDot: "sysDot";
|
|
47
47
|
}>>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
49
50
|
}, z.core.$strip>;
|
|
50
51
|
type InputBaseNode = z.infer<typeof inputBaseNodeSchema>;
|
|
51
52
|
export declare const inputTextNodeSchema: z.ZodObject<{
|
|
@@ -76,6 +77,7 @@ export declare const inputTextNodeSchema: z.ZodObject<{
|
|
|
76
77
|
sysDot: "sysDot";
|
|
77
78
|
}>>;
|
|
78
79
|
}, z.core.$strip>>;
|
|
80
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
79
81
|
type: z.ZodLiteral<"text">;
|
|
80
82
|
text: z.ZodString;
|
|
81
83
|
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
@@ -143,6 +145,7 @@ export declare const inputImageNodeSchema: z.ZodObject<{
|
|
|
143
145
|
sysDot: "sysDot";
|
|
144
146
|
}>>;
|
|
145
147
|
}, z.core.$strip>>;
|
|
148
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
146
149
|
type: z.ZodLiteral<"image">;
|
|
147
150
|
src: z.ZodString;
|
|
148
151
|
}, z.core.$strip>;
|
|
@@ -174,6 +177,7 @@ export declare const inputTableNodeSchema: z.ZodObject<{
|
|
|
174
177
|
sysDot: "sysDot";
|
|
175
178
|
}>>;
|
|
176
179
|
}, z.core.$strip>>;
|
|
180
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
177
181
|
type: z.ZodLiteral<"table">;
|
|
178
182
|
columns: z.ZodArray<z.ZodObject<{
|
|
179
183
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -223,6 +227,7 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
223
227
|
sysDot: "sysDot";
|
|
224
228
|
}>>;
|
|
225
229
|
}, z.core.$strip>>;
|
|
230
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
226
231
|
type: z.ZodLiteral<"shape">;
|
|
227
232
|
shapeType: z.ZodEnum<{
|
|
228
233
|
accentBorderCallout1: "accentBorderCallout1";
|
|
@@ -470,6 +475,7 @@ export declare const inputChartNodeSchema: z.ZodObject<{
|
|
|
470
475
|
sysDot: "sysDot";
|
|
471
476
|
}>>;
|
|
472
477
|
}, z.core.$strip>>;
|
|
478
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
473
479
|
type: z.ZodLiteral<"chart">;
|
|
474
480
|
chartType: z.ZodEnum<{
|
|
475
481
|
line: "line";
|
|
@@ -494,11 +500,277 @@ export declare const inputChartNodeSchema: z.ZodObject<{
|
|
|
494
500
|
filled: "filled";
|
|
495
501
|
}>>;
|
|
496
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>;
|
|
497
764
|
export type InputTextNode = z.infer<typeof inputTextNodeSchema>;
|
|
498
765
|
export type InputImageNode = z.infer<typeof inputImageNodeSchema>;
|
|
499
766
|
export type InputTableNode = z.infer<typeof inputTableNodeSchema>;
|
|
500
767
|
export type InputShapeNode = z.infer<typeof inputShapeNodeSchema>;
|
|
501
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>;
|
|
502
774
|
export type InputBoxNode = InputBaseNode & {
|
|
503
775
|
type: "box";
|
|
504
776
|
children: InputPOMNode;
|
|
@@ -517,7 +789,7 @@ export type InputHStackNode = InputBaseNode & {
|
|
|
517
789
|
alignItems?: AlignItems;
|
|
518
790
|
justifyContent?: JustifyContent;
|
|
519
791
|
};
|
|
520
|
-
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;
|
|
521
793
|
export declare const inputBoxNodeSchema: z.ZodType<InputBoxNode>;
|
|
522
794
|
export declare const inputVStackNodeSchema: z.ZodType<InputVStackNode>;
|
|
523
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,MA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,EAAE,YAAY,EAAE,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,cAAc,GACd,cAAc,GACd,YAAY,GACZ,eAAe,GACf,eAAe,GACf,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,aAAa,GACb,qBAAqB,CAAC;AAwB1B,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CACJ,CAAC;AACpD,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CACJ,CAAC;AAC1D,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CACJ,CAAC;AAE1D;;;;;;;;;;;;;;;;;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(),
|
|
@@ -29,6 +29,7 @@ export const inputBaseNodeSchema = z.object({
|
|
|
29
29
|
padding: paddingSchema.optional(),
|
|
30
30
|
backgroundColor: z.string().optional(),
|
|
31
31
|
border: borderStyleSchema.optional(),
|
|
32
|
+
borderRadius: z.number().optional(),
|
|
32
33
|
});
|
|
33
34
|
// ===== Node Schemas =====
|
|
34
35
|
export const inputTextNodeSchema = inputBaseNodeSchema.extend({
|
|
@@ -74,6 +75,53 @@ export const inputChartNodeSchema = inputBaseNodeSchema.extend({
|
|
|
74
75
|
// radar専用オプション
|
|
75
76
|
radarStyle: radarStyleSchema.optional(),
|
|
76
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
|
+
});
|
|
77
125
|
// ===== Recursive Node Schemas =====
|
|
78
126
|
const inputBoxNodeSchemaBase = inputBaseNodeSchema.extend({
|
|
79
127
|
type: z.literal("box"),
|
|
@@ -123,6 +171,11 @@ export const inputPomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
|
|
|
123
171
|
inputHStackNodeSchemaBase,
|
|
124
172
|
inputShapeNodeSchema,
|
|
125
173
|
inputChartNodeSchema,
|
|
174
|
+
inputTimelineNodeSchema,
|
|
175
|
+
inputMatrixNodeSchema,
|
|
176
|
+
inputTreeNodeSchema,
|
|
177
|
+
inputFlowNodeSchema,
|
|
178
|
+
inputProcessArrowNodeSchema,
|
|
126
179
|
]));
|
|
127
180
|
// ===== Master Slide Options Schema =====
|
|
128
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"}
|