@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toPositioned.d.ts","sourceRoot":"","sources":["../../src/toPositioned/toPositioned.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAGxD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,OAAO,SAAI,EACX,OAAO,SAAI,GACV,cAAc,
|
|
1
|
+
{"version":3,"file":"toPositioned.d.ts","sourceRoot":"","sources":["../../src/toPositioned/toPositioned.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAGxD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,OAAO,SAAI,EACX,OAAO,SAAI,GACV,cAAc,CAyIhB"}
|
|
@@ -61,6 +61,51 @@ export function toPositioned(pom, parentX = 0, parentY = 0) {
|
|
|
61
61
|
h: layout.height,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
case "timeline": {
|
|
65
|
+
return {
|
|
66
|
+
...pom,
|
|
67
|
+
x: absoluteX,
|
|
68
|
+
y: absoluteY,
|
|
69
|
+
w: layout.width,
|
|
70
|
+
h: layout.height,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
case "matrix": {
|
|
74
|
+
return {
|
|
75
|
+
...pom,
|
|
76
|
+
x: absoluteX,
|
|
77
|
+
y: absoluteY,
|
|
78
|
+
w: layout.width,
|
|
79
|
+
h: layout.height,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
case "tree": {
|
|
83
|
+
return {
|
|
84
|
+
...pom,
|
|
85
|
+
x: absoluteX,
|
|
86
|
+
y: absoluteY,
|
|
87
|
+
w: layout.width,
|
|
88
|
+
h: layout.height,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
case "flow": {
|
|
92
|
+
return {
|
|
93
|
+
...pom,
|
|
94
|
+
x: absoluteX,
|
|
95
|
+
y: absoluteY,
|
|
96
|
+
w: layout.width,
|
|
97
|
+
h: layout.height,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
case "processArrow": {
|
|
101
|
+
return {
|
|
102
|
+
...pom,
|
|
103
|
+
x: absoluteX,
|
|
104
|
+
y: absoluteY,
|
|
105
|
+
w: layout.width,
|
|
106
|
+
h: layout.height,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
64
109
|
case "box": {
|
|
65
110
|
return {
|
|
66
111
|
...pom,
|
package/dist/types.d.ts
CHANGED
|
@@ -848,6 +848,403 @@ export type ChartType = z.infer<typeof chartTypeSchema>;
|
|
|
848
848
|
export type ChartData = z.infer<typeof chartDataSchema>;
|
|
849
849
|
export type ChartNode = z.infer<typeof chartNodeSchema>;
|
|
850
850
|
export type RadarStyle = z.infer<typeof radarStyleSchema>;
|
|
851
|
+
export declare const timelineDirectionSchema: z.ZodEnum<{
|
|
852
|
+
horizontal: "horizontal";
|
|
853
|
+
vertical: "vertical";
|
|
854
|
+
}>;
|
|
855
|
+
export declare const timelineItemSchema: z.ZodObject<{
|
|
856
|
+
date: z.ZodString;
|
|
857
|
+
title: z.ZodString;
|
|
858
|
+
description: z.ZodOptional<z.ZodString>;
|
|
859
|
+
color: z.ZodOptional<z.ZodString>;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
export declare const timelineNodeSchema: z.ZodObject<{
|
|
862
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
863
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
864
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
865
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
866
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
867
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
868
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
870
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
871
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
872
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
}, z.core.$strip>]>>;
|
|
875
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
876
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
color: z.ZodOptional<z.ZodString>;
|
|
878
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
880
|
+
solid: "solid";
|
|
881
|
+
dash: "dash";
|
|
882
|
+
dashDot: "dashDot";
|
|
883
|
+
lgDash: "lgDash";
|
|
884
|
+
lgDashDot: "lgDashDot";
|
|
885
|
+
lgDashDotDot: "lgDashDotDot";
|
|
886
|
+
sysDash: "sysDash";
|
|
887
|
+
sysDot: "sysDot";
|
|
888
|
+
}>>;
|
|
889
|
+
}, z.core.$strip>>;
|
|
890
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
891
|
+
type: z.ZodLiteral<"timeline">;
|
|
892
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
893
|
+
horizontal: "horizontal";
|
|
894
|
+
vertical: "vertical";
|
|
895
|
+
}>>;
|
|
896
|
+
items: z.ZodArray<z.ZodObject<{
|
|
897
|
+
date: z.ZodString;
|
|
898
|
+
title: z.ZodString;
|
|
899
|
+
description: z.ZodOptional<z.ZodString>;
|
|
900
|
+
color: z.ZodOptional<z.ZodString>;
|
|
901
|
+
}, z.core.$strip>>;
|
|
902
|
+
}, z.core.$strip>;
|
|
903
|
+
export type TimelineDirection = z.infer<typeof timelineDirectionSchema>;
|
|
904
|
+
export type TimelineItem = z.infer<typeof timelineItemSchema>;
|
|
905
|
+
export type TimelineNode = z.infer<typeof timelineNodeSchema>;
|
|
906
|
+
export declare const matrixAxisSchema: z.ZodObject<{
|
|
907
|
+
x: z.ZodString;
|
|
908
|
+
y: z.ZodString;
|
|
909
|
+
}, z.core.$strip>;
|
|
910
|
+
export declare const matrixQuadrantsSchema: z.ZodObject<{
|
|
911
|
+
topLeft: z.ZodString;
|
|
912
|
+
topRight: z.ZodString;
|
|
913
|
+
bottomLeft: z.ZodString;
|
|
914
|
+
bottomRight: z.ZodString;
|
|
915
|
+
}, z.core.$strip>;
|
|
916
|
+
export declare const matrixItemSchema: z.ZodObject<{
|
|
917
|
+
label: z.ZodString;
|
|
918
|
+
x: z.ZodNumber;
|
|
919
|
+
y: z.ZodNumber;
|
|
920
|
+
color: z.ZodOptional<z.ZodString>;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
export declare const matrixNodeSchema: z.ZodObject<{
|
|
923
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
924
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
925
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
926
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
927
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
928
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
929
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
931
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
932
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
933
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
934
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
935
|
+
}, z.core.$strip>]>>;
|
|
936
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
937
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
938
|
+
color: z.ZodOptional<z.ZodString>;
|
|
939
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
940
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
941
|
+
solid: "solid";
|
|
942
|
+
dash: "dash";
|
|
943
|
+
dashDot: "dashDot";
|
|
944
|
+
lgDash: "lgDash";
|
|
945
|
+
lgDashDot: "lgDashDot";
|
|
946
|
+
lgDashDotDot: "lgDashDotDot";
|
|
947
|
+
sysDash: "sysDash";
|
|
948
|
+
sysDot: "sysDot";
|
|
949
|
+
}>>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
952
|
+
type: z.ZodLiteral<"matrix">;
|
|
953
|
+
axes: z.ZodObject<{
|
|
954
|
+
x: z.ZodString;
|
|
955
|
+
y: z.ZodString;
|
|
956
|
+
}, z.core.$strip>;
|
|
957
|
+
quadrants: z.ZodOptional<z.ZodObject<{
|
|
958
|
+
topLeft: z.ZodString;
|
|
959
|
+
topRight: z.ZodString;
|
|
960
|
+
bottomLeft: z.ZodString;
|
|
961
|
+
bottomRight: z.ZodString;
|
|
962
|
+
}, z.core.$strip>>;
|
|
963
|
+
items: z.ZodArray<z.ZodObject<{
|
|
964
|
+
label: z.ZodString;
|
|
965
|
+
x: z.ZodNumber;
|
|
966
|
+
y: z.ZodNumber;
|
|
967
|
+
color: z.ZodOptional<z.ZodString>;
|
|
968
|
+
}, z.core.$strip>>;
|
|
969
|
+
}, z.core.$strip>;
|
|
970
|
+
export type MatrixAxis = z.infer<typeof matrixAxisSchema>;
|
|
971
|
+
export type MatrixQuadrants = z.infer<typeof matrixQuadrantsSchema>;
|
|
972
|
+
export type MatrixItem = z.infer<typeof matrixItemSchema>;
|
|
973
|
+
export type MatrixNode = z.infer<typeof matrixNodeSchema>;
|
|
974
|
+
export declare const treeLayoutSchema: z.ZodEnum<{
|
|
975
|
+
horizontal: "horizontal";
|
|
976
|
+
vertical: "vertical";
|
|
977
|
+
}>;
|
|
978
|
+
export declare const treeNodeShapeSchema: z.ZodEnum<{
|
|
979
|
+
ellipse: "ellipse";
|
|
980
|
+
rect: "rect";
|
|
981
|
+
roundRect: "roundRect";
|
|
982
|
+
}>;
|
|
983
|
+
export declare const treeConnectorStyleSchema: z.ZodObject<{
|
|
984
|
+
color: z.ZodOptional<z.ZodString>;
|
|
985
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
986
|
+
}, z.core.$strip>;
|
|
987
|
+
export type TreeDataItem = {
|
|
988
|
+
label: string;
|
|
989
|
+
color?: string;
|
|
990
|
+
children?: TreeDataItem[];
|
|
991
|
+
};
|
|
992
|
+
export declare const treeDataItemSchema: z.ZodType<TreeDataItem>;
|
|
993
|
+
export declare const treeNodeSchema: z.ZodObject<{
|
|
994
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
995
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
996
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
997
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
998
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1002
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
1003
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
1004
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
1005
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
1006
|
+
}, z.core.$strip>]>>;
|
|
1007
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
1009
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
1012
|
+
solid: "solid";
|
|
1013
|
+
dash: "dash";
|
|
1014
|
+
dashDot: "dashDot";
|
|
1015
|
+
lgDash: "lgDash";
|
|
1016
|
+
lgDashDot: "lgDashDot";
|
|
1017
|
+
lgDashDotDot: "lgDashDotDot";
|
|
1018
|
+
sysDash: "sysDash";
|
|
1019
|
+
sysDot: "sysDot";
|
|
1020
|
+
}>>;
|
|
1021
|
+
}, z.core.$strip>>;
|
|
1022
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
+
type: z.ZodLiteral<"tree">;
|
|
1024
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
1025
|
+
horizontal: "horizontal";
|
|
1026
|
+
vertical: "vertical";
|
|
1027
|
+
}>>;
|
|
1028
|
+
nodeShape: z.ZodOptional<z.ZodEnum<{
|
|
1029
|
+
ellipse: "ellipse";
|
|
1030
|
+
rect: "rect";
|
|
1031
|
+
roundRect: "roundRect";
|
|
1032
|
+
}>>;
|
|
1033
|
+
data: z.ZodType<TreeDataItem, unknown, z.core.$ZodTypeInternals<TreeDataItem, unknown>>;
|
|
1034
|
+
connectorStyle: z.ZodOptional<z.ZodObject<{
|
|
1035
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1037
|
+
}, z.core.$strip>>;
|
|
1038
|
+
nodeWidth: z.ZodOptional<z.ZodNumber>;
|
|
1039
|
+
nodeHeight: z.ZodOptional<z.ZodNumber>;
|
|
1040
|
+
levelGap: z.ZodOptional<z.ZodNumber>;
|
|
1041
|
+
siblingGap: z.ZodOptional<z.ZodNumber>;
|
|
1042
|
+
}, z.core.$strip>;
|
|
1043
|
+
export type TreeLayout = z.infer<typeof treeLayoutSchema>;
|
|
1044
|
+
export type TreeNodeShape = z.infer<typeof treeNodeShapeSchema>;
|
|
1045
|
+
export type TreeConnectorStyle = z.infer<typeof treeConnectorStyleSchema>;
|
|
1046
|
+
export type TreeNode = z.infer<typeof treeNodeSchema>;
|
|
1047
|
+
export declare const processArrowDirectionSchema: z.ZodEnum<{
|
|
1048
|
+
horizontal: "horizontal";
|
|
1049
|
+
vertical: "vertical";
|
|
1050
|
+
}>;
|
|
1051
|
+
export declare const processArrowStepSchema: z.ZodObject<{
|
|
1052
|
+
label: z.ZodString;
|
|
1053
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
}, z.core.$strip>;
|
|
1056
|
+
export declare const processArrowNodeSchema: z.ZodObject<{
|
|
1057
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
1058
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
1059
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
1060
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
1061
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
1062
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
1063
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1065
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
1066
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
1068
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
+
}, z.core.$strip>]>>;
|
|
1070
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1074
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
solid: "solid";
|
|
1076
|
+
dash: "dash";
|
|
1077
|
+
dashDot: "dashDot";
|
|
1078
|
+
lgDash: "lgDash";
|
|
1079
|
+
lgDashDot: "lgDashDot";
|
|
1080
|
+
lgDashDotDot: "lgDashDotDot";
|
|
1081
|
+
sysDash: "sysDash";
|
|
1082
|
+
sysDot: "sysDot";
|
|
1083
|
+
}>>;
|
|
1084
|
+
}, z.core.$strip>>;
|
|
1085
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
1086
|
+
type: z.ZodLiteral<"processArrow">;
|
|
1087
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1088
|
+
horizontal: "horizontal";
|
|
1089
|
+
vertical: "vertical";
|
|
1090
|
+
}>>;
|
|
1091
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1092
|
+
label: z.ZodString;
|
|
1093
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1095
|
+
}, z.core.$strip>>;
|
|
1096
|
+
itemWidth: z.ZodOptional<z.ZodNumber>;
|
|
1097
|
+
itemHeight: z.ZodOptional<z.ZodNumber>;
|
|
1098
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
1099
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1101
|
+
}, z.core.$strip>;
|
|
1102
|
+
export type ProcessArrowDirection = z.infer<typeof processArrowDirectionSchema>;
|
|
1103
|
+
export type ProcessArrowStep = z.infer<typeof processArrowStepSchema>;
|
|
1104
|
+
export type ProcessArrowNode = z.infer<typeof processArrowNodeSchema>;
|
|
1105
|
+
export declare const flowDirectionSchema: z.ZodEnum<{
|
|
1106
|
+
horizontal: "horizontal";
|
|
1107
|
+
vertical: "vertical";
|
|
1108
|
+
}>;
|
|
1109
|
+
export declare const flowNodeShapeSchema: z.ZodEnum<{
|
|
1110
|
+
flowChartConnector: "flowChartConnector";
|
|
1111
|
+
flowChartDecision: "flowChartDecision";
|
|
1112
|
+
flowChartDelay: "flowChartDelay";
|
|
1113
|
+
flowChartDocument: "flowChartDocument";
|
|
1114
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
1115
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
1116
|
+
flowChartManualInput: "flowChartManualInput";
|
|
1117
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
1118
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
1119
|
+
flowChartPreparation: "flowChartPreparation";
|
|
1120
|
+
flowChartProcess: "flowChartProcess";
|
|
1121
|
+
flowChartTerminator: "flowChartTerminator";
|
|
1122
|
+
}>;
|
|
1123
|
+
export declare const flowNodeItemSchema: z.ZodObject<{
|
|
1124
|
+
id: z.ZodString;
|
|
1125
|
+
shape: z.ZodEnum<{
|
|
1126
|
+
flowChartConnector: "flowChartConnector";
|
|
1127
|
+
flowChartDecision: "flowChartDecision";
|
|
1128
|
+
flowChartDelay: "flowChartDelay";
|
|
1129
|
+
flowChartDocument: "flowChartDocument";
|
|
1130
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
1131
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
1132
|
+
flowChartManualInput: "flowChartManualInput";
|
|
1133
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
1134
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
1135
|
+
flowChartPreparation: "flowChartPreparation";
|
|
1136
|
+
flowChartProcess: "flowChartProcess";
|
|
1137
|
+
flowChartTerminator: "flowChartTerminator";
|
|
1138
|
+
}>;
|
|
1139
|
+
text: z.ZodString;
|
|
1140
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1142
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1143
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1144
|
+
}, z.core.$strip>;
|
|
1145
|
+
export declare const flowConnectionSchema: z.ZodObject<{
|
|
1146
|
+
from: z.ZodString;
|
|
1147
|
+
to: z.ZodString;
|
|
1148
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
}, z.core.$strip>;
|
|
1151
|
+
export declare const flowConnectorStyleSchema: z.ZodObject<{
|
|
1152
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
+
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
1155
|
+
diamond: "diamond";
|
|
1156
|
+
triangle: "triangle";
|
|
1157
|
+
none: "none";
|
|
1158
|
+
arrow: "arrow";
|
|
1159
|
+
oval: "oval";
|
|
1160
|
+
stealth: "stealth";
|
|
1161
|
+
}>>;
|
|
1162
|
+
}, z.core.$strip>;
|
|
1163
|
+
export declare const flowNodeSchema: z.ZodObject<{
|
|
1164
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
1165
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
1166
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
1167
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
1171
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1172
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
1173
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
1174
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
1175
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
1176
|
+
}, z.core.$strip>]>>;
|
|
1177
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
1179
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1181
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
1182
|
+
solid: "solid";
|
|
1183
|
+
dash: "dash";
|
|
1184
|
+
dashDot: "dashDot";
|
|
1185
|
+
lgDash: "lgDash";
|
|
1186
|
+
lgDashDot: "lgDashDot";
|
|
1187
|
+
lgDashDotDot: "lgDashDotDot";
|
|
1188
|
+
sysDash: "sysDash";
|
|
1189
|
+
sysDot: "sysDot";
|
|
1190
|
+
}>>;
|
|
1191
|
+
}, z.core.$strip>>;
|
|
1192
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
1193
|
+
type: z.ZodLiteral<"flow">;
|
|
1194
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1195
|
+
horizontal: "horizontal";
|
|
1196
|
+
vertical: "vertical";
|
|
1197
|
+
}>>;
|
|
1198
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1199
|
+
id: z.ZodString;
|
|
1200
|
+
shape: z.ZodEnum<{
|
|
1201
|
+
flowChartConnector: "flowChartConnector";
|
|
1202
|
+
flowChartDecision: "flowChartDecision";
|
|
1203
|
+
flowChartDelay: "flowChartDelay";
|
|
1204
|
+
flowChartDocument: "flowChartDocument";
|
|
1205
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
1206
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
1207
|
+
flowChartManualInput: "flowChartManualInput";
|
|
1208
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
1209
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
1210
|
+
flowChartPreparation: "flowChartPreparation";
|
|
1211
|
+
flowChartProcess: "flowChartProcess";
|
|
1212
|
+
flowChartTerminator: "flowChartTerminator";
|
|
1213
|
+
}>;
|
|
1214
|
+
text: z.ZodString;
|
|
1215
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1217
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1218
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1219
|
+
}, z.core.$strip>>;
|
|
1220
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
1221
|
+
from: z.ZodString;
|
|
1222
|
+
to: z.ZodString;
|
|
1223
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
}, z.core.$strip>>;
|
|
1226
|
+
connectorStyle: z.ZodOptional<z.ZodObject<{
|
|
1227
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1229
|
+
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
+
diamond: "diamond";
|
|
1231
|
+
triangle: "triangle";
|
|
1232
|
+
none: "none";
|
|
1233
|
+
arrow: "arrow";
|
|
1234
|
+
oval: "oval";
|
|
1235
|
+
stealth: "stealth";
|
|
1236
|
+
}>>;
|
|
1237
|
+
}, z.core.$strip>>;
|
|
1238
|
+
nodeWidth: z.ZodOptional<z.ZodNumber>;
|
|
1239
|
+
nodeHeight: z.ZodOptional<z.ZodNumber>;
|
|
1240
|
+
nodeGap: z.ZodOptional<z.ZodNumber>;
|
|
1241
|
+
}, z.core.$strip>;
|
|
1242
|
+
export type FlowDirection = z.infer<typeof flowDirectionSchema>;
|
|
1243
|
+
export type FlowNodeShape = z.infer<typeof flowNodeShapeSchema>;
|
|
1244
|
+
export type FlowNodeItem = z.infer<typeof flowNodeItemSchema>;
|
|
1245
|
+
export type FlowConnection = z.infer<typeof flowConnectionSchema>;
|
|
1246
|
+
export type FlowConnectorStyle = z.infer<typeof flowConnectorStyleSchema>;
|
|
1247
|
+
export type FlowNode = z.infer<typeof flowNodeSchema>;
|
|
851
1248
|
export type BoxNode = BasePOMNode & {
|
|
852
1249
|
type: "box";
|
|
853
1250
|
children: POMNode;
|
|
@@ -866,7 +1263,7 @@ export type HStackNode = BasePOMNode & {
|
|
|
866
1263
|
alignItems?: AlignItems;
|
|
867
1264
|
justifyContent?: JustifyContent;
|
|
868
1265
|
};
|
|
869
|
-
export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode;
|
|
1266
|
+
export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode;
|
|
870
1267
|
export declare const boxNodeSchema: z.ZodType<BoxNode>;
|
|
871
1268
|
export declare const vStackNodeSchema: z.ZodType<VStackNode>;
|
|
872
1269
|
export declare const hStackNodeSchema: z.ZodType<HStackNode>;
|
|
@@ -886,7 +1283,7 @@ export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & Position
|
|
|
886
1283
|
children: PositionedNode[];
|
|
887
1284
|
}) | (HStackNode & PositionedBase & {
|
|
888
1285
|
children: PositionedNode[];
|
|
889
|
-
}) | (ShapeNode & PositionedBase) | (ChartNode & PositionedBase);
|
|
1286
|
+
}) | (ShapeNode & PositionedBase) | (ChartNode & PositionedBase) | (TimelineNode & PositionedBase) | (MatrixNode & PositionedBase) | (TreeNode & PositionedBase) | (FlowNode & PositionedBase) | (ProcessArrowNode & PositionedBase);
|
|
890
1287
|
export declare const positionedNodeSchema: z.ZodType<PositionedNode>;
|
|
891
1288
|
export declare const pageNumberPositionSchema: z.ZodEnum<{
|
|
892
1289
|
right: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AAC,GAC3B,CAAC,SAAS,GAAG,cAAc,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACrD,CAAC,SAAS,GAAG,cAAc,CAAC,GAC5B,CAAC,OAAO,GAAG,cAAc,GAAG;IAAE,QAAQ,EAAE,cAAc,CAAA;CAAE,CAAC,GACzD,CAAC,UAAU,GAAG,cAAc,GAAG;IAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,GAC9D,CAAC,UAAU,GAAG,cAAc,GAAG;IAAE,QAAQ,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,GAC9D,CAAC,SAAS,GAAG,cAAc,CAAC,GAC5B,CAAC,SAAS,GAAG,cAAc,CAAC,GAC5B,CAAC,YAAY,GAAG,cAAc,CAAC,GAC/B,CAAC,UAAU,GAAG,cAAc,CAAC,GAC7B,CAAC,QAAQ,GAAG,cAAc,CAAC,GAC3B,CAAC,QAAQ,GAAG,cAAc,CAAC,GAC3B,CAAC,gBAAgB,GAAG,cAAc,CAAC,CAAC;AAExC,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAwB7B,CAAC;AAG/B,eAAO,MAAM,wBAAwB;;;;EAAsC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;iBAanC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -343,6 +343,130 @@ export const chartNodeSchema = basePOMNodeSchema.extend({
|
|
|
343
343
|
// radar専用オプション
|
|
344
344
|
radarStyle: radarStyleSchema.optional(),
|
|
345
345
|
});
|
|
346
|
+
// ===== Timeline Node =====
|
|
347
|
+
export const timelineDirectionSchema = z.enum(["horizontal", "vertical"]);
|
|
348
|
+
export const timelineItemSchema = z.object({
|
|
349
|
+
date: z.string(),
|
|
350
|
+
title: z.string(),
|
|
351
|
+
description: z.string().optional(),
|
|
352
|
+
color: z.string().optional(),
|
|
353
|
+
});
|
|
354
|
+
export const timelineNodeSchema = basePOMNodeSchema.extend({
|
|
355
|
+
type: z.literal("timeline"),
|
|
356
|
+
direction: timelineDirectionSchema.optional(),
|
|
357
|
+
items: z.array(timelineItemSchema),
|
|
358
|
+
});
|
|
359
|
+
// ===== Matrix Node =====
|
|
360
|
+
export const matrixAxisSchema = z.object({
|
|
361
|
+
x: z.string(),
|
|
362
|
+
y: z.string(),
|
|
363
|
+
});
|
|
364
|
+
export const matrixQuadrantsSchema = z.object({
|
|
365
|
+
topLeft: z.string(),
|
|
366
|
+
topRight: z.string(),
|
|
367
|
+
bottomLeft: z.string(),
|
|
368
|
+
bottomRight: z.string(),
|
|
369
|
+
});
|
|
370
|
+
export const matrixItemSchema = z.object({
|
|
371
|
+
label: z.string(),
|
|
372
|
+
x: z.number().min(0).max(1),
|
|
373
|
+
y: z.number().min(0).max(1),
|
|
374
|
+
color: z.string().optional(),
|
|
375
|
+
});
|
|
376
|
+
export const matrixNodeSchema = basePOMNodeSchema.extend({
|
|
377
|
+
type: z.literal("matrix"),
|
|
378
|
+
axes: matrixAxisSchema,
|
|
379
|
+
quadrants: matrixQuadrantsSchema.optional(),
|
|
380
|
+
items: z.array(matrixItemSchema),
|
|
381
|
+
});
|
|
382
|
+
// ===== Tree Node =====
|
|
383
|
+
export const treeLayoutSchema = z.enum(["vertical", "horizontal"]);
|
|
384
|
+
export const treeNodeShapeSchema = z.enum(["rect", "roundRect", "ellipse"]);
|
|
385
|
+
export const treeConnectorStyleSchema = z.object({
|
|
386
|
+
color: z.string().optional(),
|
|
387
|
+
width: z.number().optional(),
|
|
388
|
+
});
|
|
389
|
+
export const treeDataItemSchema = z.lazy(() => z.object({
|
|
390
|
+
label: z.string(),
|
|
391
|
+
color: z.string().optional(),
|
|
392
|
+
children: z.array(treeDataItemSchema).optional(),
|
|
393
|
+
}));
|
|
394
|
+
export const treeNodeSchema = basePOMNodeSchema.extend({
|
|
395
|
+
type: z.literal("tree"),
|
|
396
|
+
layout: treeLayoutSchema.optional(),
|
|
397
|
+
nodeShape: treeNodeShapeSchema.optional(),
|
|
398
|
+
data: treeDataItemSchema,
|
|
399
|
+
connectorStyle: treeConnectorStyleSchema.optional(),
|
|
400
|
+
nodeWidth: z.number().optional(),
|
|
401
|
+
nodeHeight: z.number().optional(),
|
|
402
|
+
levelGap: z.number().optional(),
|
|
403
|
+
siblingGap: z.number().optional(),
|
|
404
|
+
});
|
|
405
|
+
// ===== ProcessArrow Node =====
|
|
406
|
+
export const processArrowDirectionSchema = z.enum(["horizontal", "vertical"]);
|
|
407
|
+
export const processArrowStepSchema = z.object({
|
|
408
|
+
label: z.string(),
|
|
409
|
+
color: z.string().optional(),
|
|
410
|
+
textColor: z.string().optional(),
|
|
411
|
+
});
|
|
412
|
+
export const processArrowNodeSchema = basePOMNodeSchema.extend({
|
|
413
|
+
type: z.literal("processArrow"),
|
|
414
|
+
direction: processArrowDirectionSchema.optional(),
|
|
415
|
+
steps: z.array(processArrowStepSchema),
|
|
416
|
+
itemWidth: z.number().optional(),
|
|
417
|
+
itemHeight: z.number().optional(),
|
|
418
|
+
gap: z.number().optional(),
|
|
419
|
+
fontPx: z.number().optional(),
|
|
420
|
+
bold: z.boolean().optional(),
|
|
421
|
+
});
|
|
422
|
+
// ===== Flow Node =====
|
|
423
|
+
export const flowDirectionSchema = z.enum(["horizontal", "vertical"]);
|
|
424
|
+
export const flowNodeShapeSchema = z.enum([
|
|
425
|
+
"flowChartTerminator",
|
|
426
|
+
"flowChartProcess",
|
|
427
|
+
"flowChartDecision",
|
|
428
|
+
"flowChartInputOutput",
|
|
429
|
+
"flowChartDocument",
|
|
430
|
+
"flowChartPredefinedProcess",
|
|
431
|
+
"flowChartConnector",
|
|
432
|
+
"flowChartPreparation",
|
|
433
|
+
"flowChartManualInput",
|
|
434
|
+
"flowChartManualOperation",
|
|
435
|
+
"flowChartDelay",
|
|
436
|
+
"flowChartMagneticDisk",
|
|
437
|
+
]);
|
|
438
|
+
export const flowNodeItemSchema = z.object({
|
|
439
|
+
id: z.string(),
|
|
440
|
+
shape: flowNodeShapeSchema,
|
|
441
|
+
text: z.string(),
|
|
442
|
+
color: z.string().optional(),
|
|
443
|
+
textColor: z.string().optional(),
|
|
444
|
+
width: z.number().optional(),
|
|
445
|
+
height: z.number().optional(),
|
|
446
|
+
});
|
|
447
|
+
export const flowConnectionSchema = z.object({
|
|
448
|
+
from: z.string(),
|
|
449
|
+
to: z.string(),
|
|
450
|
+
label: z.string().optional(),
|
|
451
|
+
color: z.string().optional(),
|
|
452
|
+
});
|
|
453
|
+
export const flowConnectorStyleSchema = z.object({
|
|
454
|
+
color: z.string().optional(),
|
|
455
|
+
width: z.number().optional(),
|
|
456
|
+
arrowType: z
|
|
457
|
+
.enum(["none", "arrow", "diamond", "oval", "stealth", "triangle"])
|
|
458
|
+
.optional(),
|
|
459
|
+
});
|
|
460
|
+
export const flowNodeSchema = basePOMNodeSchema.extend({
|
|
461
|
+
type: z.literal("flow"),
|
|
462
|
+
direction: flowDirectionSchema.optional(),
|
|
463
|
+
nodes: z.array(flowNodeItemSchema),
|
|
464
|
+
connections: z.array(flowConnectionSchema),
|
|
465
|
+
connectorStyle: flowConnectorStyleSchema.optional(),
|
|
466
|
+
nodeWidth: z.number().optional(),
|
|
467
|
+
nodeHeight: z.number().optional(),
|
|
468
|
+
nodeGap: z.number().optional(),
|
|
469
|
+
});
|
|
346
470
|
// Define schemas using passthrough to maintain type safety
|
|
347
471
|
const boxNodeSchemaBase = basePOMNodeSchema.extend({
|
|
348
472
|
type: z.literal("box"),
|
|
@@ -375,6 +499,11 @@ export const pomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
|
|
|
375
499
|
hStackNodeSchemaBase,
|
|
376
500
|
shapeNodeSchema,
|
|
377
501
|
chartNodeSchema,
|
|
502
|
+
timelineNodeSchema,
|
|
503
|
+
matrixNodeSchema,
|
|
504
|
+
treeNodeSchema,
|
|
505
|
+
flowNodeSchema,
|
|
506
|
+
processArrowNodeSchema,
|
|
378
507
|
]));
|
|
379
508
|
// ===== Positioned Node Types =====
|
|
380
509
|
const positionedBaseSchema = z.object({
|
|
@@ -400,6 +529,11 @@ export const positionedNodeSchema = z.lazy(() => z.union([
|
|
|
400
529
|
}),
|
|
401
530
|
shapeNodeSchema.merge(positionedBaseSchema),
|
|
402
531
|
chartNodeSchema.merge(positionedBaseSchema),
|
|
532
|
+
timelineNodeSchema.merge(positionedBaseSchema),
|
|
533
|
+
matrixNodeSchema.merge(positionedBaseSchema),
|
|
534
|
+
treeNodeSchema.merge(positionedBaseSchema),
|
|
535
|
+
flowNodeSchema.merge(positionedBaseSchema),
|
|
536
|
+
processArrowNodeSchema.merge(positionedBaseSchema),
|
|
403
537
|
]));
|
|
404
538
|
// ===== Master Slide Options =====
|
|
405
539
|
export const pageNumberPositionSchema = z.enum(["left", "center", "right"]);
|