@hirokisakabe/pom 0.1.4 → 0.1.6
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 +281 -40
- package/dist/buildPptx.d.ts +3 -1
- package/dist/buildPptx.d.ts.map +1 -1
- package/dist/buildPptx.js +68 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/inputSchema.d.ts +483 -0
- package/dist/inputSchema.d.ts.map +1 -0
- package/dist/inputSchema.js +128 -0
- package/dist/renderPptx/renderPptx.d.ts +2 -4
- package/dist/renderPptx/renderPptx.d.ts.map +1 -1
- package/dist/renderPptx/renderPptx.js +6 -18
- package/dist/renderPptx/textOptions.d.ts +20 -0
- package/dist/renderPptx/textOptions.d.ts.map +1 -0
- package/dist/renderPptx/textOptions.js +20 -0
- package/dist/renderPptx/units.d.ts +4 -0
- package/dist/renderPptx/units.d.ts.map +1 -0
- package/dist/renderPptx/units.js +3 -0
- package/dist/types.d.ts +394 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +202 -1
- package/package.json +10 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PositionedNode } from "../types";
|
|
2
|
+
type TextNode = Extract<PositionedNode, {
|
|
3
|
+
type: "text";
|
|
4
|
+
}>;
|
|
5
|
+
export declare function createTextOptions(node: TextNode): {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
w: number;
|
|
9
|
+
h: number;
|
|
10
|
+
fontSize: number;
|
|
11
|
+
fontFace: string;
|
|
12
|
+
align: "right" | "left" | "center";
|
|
13
|
+
valign: "top";
|
|
14
|
+
margin: number;
|
|
15
|
+
lineSpacingMultiple: number;
|
|
16
|
+
color: string;
|
|
17
|
+
bold: boolean;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=textOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textOptions.d.ts","sourceRoot":"","sources":["../../src/renderPptx/textOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,KAAK,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ;;;;;;;;;;;;;EAmB/C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { pxToIn, pxToPt } from "./units";
|
|
2
|
+
export function createTextOptions(node) {
|
|
3
|
+
const fontSizePx = node.fontPx ?? 24;
|
|
4
|
+
const fontFamily = node.fontFamily ?? "Noto Sans JP";
|
|
5
|
+
const lineSpacingMultiple = node.lineSpacingMultiple ?? 1.3;
|
|
6
|
+
return {
|
|
7
|
+
x: pxToIn(node.x),
|
|
8
|
+
y: pxToIn(node.y),
|
|
9
|
+
w: pxToIn(node.w),
|
|
10
|
+
h: pxToIn(node.h),
|
|
11
|
+
fontSize: pxToPt(fontSizePx),
|
|
12
|
+
fontFace: fontFamily,
|
|
13
|
+
align: node.alignText ?? "left",
|
|
14
|
+
valign: "top",
|
|
15
|
+
margin: 0,
|
|
16
|
+
lineSpacingMultiple,
|
|
17
|
+
color: node.color,
|
|
18
|
+
bold: node.bold,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/renderPptx/units.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,WAAmB,CAAC;AAErD,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,WAA0B,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Node as YogaNode } from "yoga-layout";
|
|
2
|
-
import type PptxGenJS from "pptxgenjs";
|
|
3
2
|
import { z } from "zod";
|
|
4
3
|
export declare const lengthSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>;
|
|
5
4
|
export declare const paddingSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
@@ -65,6 +64,186 @@ export declare const flexDirectionSchema: z.ZodEnum<{
|
|
|
65
64
|
row: "row";
|
|
66
65
|
column: "column";
|
|
67
66
|
}>;
|
|
67
|
+
export declare const shapeTypeSchema: z.ZodEnum<{
|
|
68
|
+
accentBorderCallout1: "accentBorderCallout1";
|
|
69
|
+
accentBorderCallout2: "accentBorderCallout2";
|
|
70
|
+
accentBorderCallout3: "accentBorderCallout3";
|
|
71
|
+
accentCallout1: "accentCallout1";
|
|
72
|
+
accentCallout2: "accentCallout2";
|
|
73
|
+
accentCallout3: "accentCallout3";
|
|
74
|
+
actionButtonBackPrevious: "actionButtonBackPrevious";
|
|
75
|
+
actionButtonBeginning: "actionButtonBeginning";
|
|
76
|
+
actionButtonBlank: "actionButtonBlank";
|
|
77
|
+
actionButtonDocument: "actionButtonDocument";
|
|
78
|
+
actionButtonEnd: "actionButtonEnd";
|
|
79
|
+
actionButtonForwardNext: "actionButtonForwardNext";
|
|
80
|
+
actionButtonHelp: "actionButtonHelp";
|
|
81
|
+
actionButtonHome: "actionButtonHome";
|
|
82
|
+
actionButtonInformation: "actionButtonInformation";
|
|
83
|
+
actionButtonMovie: "actionButtonMovie";
|
|
84
|
+
actionButtonReturn: "actionButtonReturn";
|
|
85
|
+
actionButtonSound: "actionButtonSound";
|
|
86
|
+
arc: "arc";
|
|
87
|
+
bentArrow: "bentArrow";
|
|
88
|
+
bentUpArrow: "bentUpArrow";
|
|
89
|
+
bevel: "bevel";
|
|
90
|
+
blockArc: "blockArc";
|
|
91
|
+
borderCallout1: "borderCallout1";
|
|
92
|
+
borderCallout2: "borderCallout2";
|
|
93
|
+
borderCallout3: "borderCallout3";
|
|
94
|
+
bracePair: "bracePair";
|
|
95
|
+
bracketPair: "bracketPair";
|
|
96
|
+
callout1: "callout1";
|
|
97
|
+
callout2: "callout2";
|
|
98
|
+
callout3: "callout3";
|
|
99
|
+
can: "can";
|
|
100
|
+
chartPlus: "chartPlus";
|
|
101
|
+
chartStar: "chartStar";
|
|
102
|
+
chartX: "chartX";
|
|
103
|
+
chevron: "chevron";
|
|
104
|
+
chord: "chord";
|
|
105
|
+
circularArrow: "circularArrow";
|
|
106
|
+
cloud: "cloud";
|
|
107
|
+
cloudCallout: "cloudCallout";
|
|
108
|
+
corner: "corner";
|
|
109
|
+
cornerTabs: "cornerTabs";
|
|
110
|
+
cube: "cube";
|
|
111
|
+
curvedDownArrow: "curvedDownArrow";
|
|
112
|
+
curvedLeftArrow: "curvedLeftArrow";
|
|
113
|
+
curvedRightArrow: "curvedRightArrow";
|
|
114
|
+
curvedUpArrow: "curvedUpArrow";
|
|
115
|
+
decagon: "decagon";
|
|
116
|
+
diagStripe: "diagStripe";
|
|
117
|
+
diamond: "diamond";
|
|
118
|
+
dodecagon: "dodecagon";
|
|
119
|
+
donut: "donut";
|
|
120
|
+
doubleWave: "doubleWave";
|
|
121
|
+
downArrow: "downArrow";
|
|
122
|
+
downArrowCallout: "downArrowCallout";
|
|
123
|
+
ellipse: "ellipse";
|
|
124
|
+
ellipseRibbon: "ellipseRibbon";
|
|
125
|
+
ellipseRibbon2: "ellipseRibbon2";
|
|
126
|
+
flowChartAlternateProcess: "flowChartAlternateProcess";
|
|
127
|
+
flowChartCollate: "flowChartCollate";
|
|
128
|
+
flowChartConnector: "flowChartConnector";
|
|
129
|
+
flowChartDecision: "flowChartDecision";
|
|
130
|
+
flowChartDelay: "flowChartDelay";
|
|
131
|
+
flowChartDisplay: "flowChartDisplay";
|
|
132
|
+
flowChartDocument: "flowChartDocument";
|
|
133
|
+
flowChartExtract: "flowChartExtract";
|
|
134
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
135
|
+
flowChartInternalStorage: "flowChartInternalStorage";
|
|
136
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
137
|
+
flowChartMagneticDrum: "flowChartMagneticDrum";
|
|
138
|
+
flowChartMagneticTape: "flowChartMagneticTape";
|
|
139
|
+
flowChartManualInput: "flowChartManualInput";
|
|
140
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
141
|
+
flowChartMerge: "flowChartMerge";
|
|
142
|
+
flowChartMultidocument: "flowChartMultidocument";
|
|
143
|
+
flowChartOfflineStorage: "flowChartOfflineStorage";
|
|
144
|
+
flowChartOffpageConnector: "flowChartOffpageConnector";
|
|
145
|
+
flowChartOnlineStorage: "flowChartOnlineStorage";
|
|
146
|
+
flowChartOr: "flowChartOr";
|
|
147
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
148
|
+
flowChartPreparation: "flowChartPreparation";
|
|
149
|
+
flowChartProcess: "flowChartProcess";
|
|
150
|
+
flowChartPunchedCard: "flowChartPunchedCard";
|
|
151
|
+
flowChartPunchedTape: "flowChartPunchedTape";
|
|
152
|
+
flowChartSort: "flowChartSort";
|
|
153
|
+
flowChartSummingJunction: "flowChartSummingJunction";
|
|
154
|
+
flowChartTerminator: "flowChartTerminator";
|
|
155
|
+
folderCorner: "folderCorner";
|
|
156
|
+
frame: "frame";
|
|
157
|
+
funnel: "funnel";
|
|
158
|
+
gear6: "gear6";
|
|
159
|
+
gear9: "gear9";
|
|
160
|
+
halfFrame: "halfFrame";
|
|
161
|
+
heart: "heart";
|
|
162
|
+
heptagon: "heptagon";
|
|
163
|
+
hexagon: "hexagon";
|
|
164
|
+
homePlate: "homePlate";
|
|
165
|
+
horizontalScroll: "horizontalScroll";
|
|
166
|
+
irregularSeal1: "irregularSeal1";
|
|
167
|
+
irregularSeal2: "irregularSeal2";
|
|
168
|
+
leftArrow: "leftArrow";
|
|
169
|
+
leftArrowCallout: "leftArrowCallout";
|
|
170
|
+
leftBrace: "leftBrace";
|
|
171
|
+
leftBracket: "leftBracket";
|
|
172
|
+
leftCircularArrow: "leftCircularArrow";
|
|
173
|
+
leftRightArrow: "leftRightArrow";
|
|
174
|
+
leftRightArrowCallout: "leftRightArrowCallout";
|
|
175
|
+
leftRightCircularArrow: "leftRightCircularArrow";
|
|
176
|
+
leftRightRibbon: "leftRightRibbon";
|
|
177
|
+
leftRightUpArrow: "leftRightUpArrow";
|
|
178
|
+
leftUpArrow: "leftUpArrow";
|
|
179
|
+
lightningBolt: "lightningBolt";
|
|
180
|
+
line: "line";
|
|
181
|
+
lineInv: "lineInv";
|
|
182
|
+
mathDivide: "mathDivide";
|
|
183
|
+
mathEqual: "mathEqual";
|
|
184
|
+
mathMinus: "mathMinus";
|
|
185
|
+
mathMultiply: "mathMultiply";
|
|
186
|
+
mathNotEqual: "mathNotEqual";
|
|
187
|
+
mathPlus: "mathPlus";
|
|
188
|
+
moon: "moon";
|
|
189
|
+
noSmoking: "noSmoking";
|
|
190
|
+
nonIsoscelesTrapezoid: "nonIsoscelesTrapezoid";
|
|
191
|
+
notchedRightArrow: "notchedRightArrow";
|
|
192
|
+
octagon: "octagon";
|
|
193
|
+
parallelogram: "parallelogram";
|
|
194
|
+
pentagon: "pentagon";
|
|
195
|
+
pie: "pie";
|
|
196
|
+
pieWedge: "pieWedge";
|
|
197
|
+
plaque: "plaque";
|
|
198
|
+
plaqueTabs: "plaqueTabs";
|
|
199
|
+
plus: "plus";
|
|
200
|
+
quadArrow: "quadArrow";
|
|
201
|
+
quadArrowCallout: "quadArrowCallout";
|
|
202
|
+
rect: "rect";
|
|
203
|
+
ribbon: "ribbon";
|
|
204
|
+
ribbon2: "ribbon2";
|
|
205
|
+
rightArrow: "rightArrow";
|
|
206
|
+
rightArrowCallout: "rightArrowCallout";
|
|
207
|
+
rightBrace: "rightBrace";
|
|
208
|
+
rightBracket: "rightBracket";
|
|
209
|
+
round1Rect: "round1Rect";
|
|
210
|
+
round2DiagRect: "round2DiagRect";
|
|
211
|
+
round2SameRect: "round2SameRect";
|
|
212
|
+
roundRect: "roundRect";
|
|
213
|
+
rtTriangle: "rtTriangle";
|
|
214
|
+
smileyFace: "smileyFace";
|
|
215
|
+
snip1Rect: "snip1Rect";
|
|
216
|
+
snip2DiagRect: "snip2DiagRect";
|
|
217
|
+
snip2SameRect: "snip2SameRect";
|
|
218
|
+
snipRoundRect: "snipRoundRect";
|
|
219
|
+
squareTabs: "squareTabs";
|
|
220
|
+
star10: "star10";
|
|
221
|
+
star12: "star12";
|
|
222
|
+
star16: "star16";
|
|
223
|
+
star24: "star24";
|
|
224
|
+
star32: "star32";
|
|
225
|
+
star4: "star4";
|
|
226
|
+
star5: "star5";
|
|
227
|
+
star6: "star6";
|
|
228
|
+
star7: "star7";
|
|
229
|
+
star8: "star8";
|
|
230
|
+
stripedRightArrow: "stripedRightArrow";
|
|
231
|
+
sun: "sun";
|
|
232
|
+
swooshArrow: "swooshArrow";
|
|
233
|
+
teardrop: "teardrop";
|
|
234
|
+
trapezoid: "trapezoid";
|
|
235
|
+
triangle: "triangle";
|
|
236
|
+
upArrow: "upArrow";
|
|
237
|
+
upArrowCallout: "upArrowCallout";
|
|
238
|
+
upDownArrow: "upDownArrow";
|
|
239
|
+
upDownArrowCallout: "upDownArrowCallout";
|
|
240
|
+
uturnArrow: "uturnArrow";
|
|
241
|
+
verticalScroll: "verticalScroll";
|
|
242
|
+
wave: "wave";
|
|
243
|
+
wedgeEllipseCallout: "wedgeEllipseCallout";
|
|
244
|
+
wedgeRectCallout: "wedgeRectCallout";
|
|
245
|
+
wedgeRoundRectCallout: "wedgeRoundRectCallout";
|
|
246
|
+
}>;
|
|
68
247
|
export type Length = z.infer<typeof lengthSchema>;
|
|
69
248
|
export type Padding = z.infer<typeof paddingSchema>;
|
|
70
249
|
export type BorderDash = z.infer<typeof borderDashSchema>;
|
|
@@ -74,6 +253,7 @@ export type ShadowStyle = z.infer<typeof shadowStyleSchema>;
|
|
|
74
253
|
export type AlignItems = z.infer<typeof alignItemsSchema>;
|
|
75
254
|
export type JustifyContent = z.infer<typeof justifyContentSchema>;
|
|
76
255
|
export type FlexDirection = z.infer<typeof flexDirectionSchema>;
|
|
256
|
+
export type ShapeType = z.infer<typeof shapeTypeSchema>;
|
|
77
257
|
declare const basePOMNodeSchema: z.ZodObject<{
|
|
78
258
|
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
79
259
|
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
@@ -137,11 +317,15 @@ export declare const textNodeSchema: z.ZodObject<{
|
|
|
137
317
|
type: z.ZodLiteral<"text">;
|
|
138
318
|
text: z.ZodString;
|
|
139
319
|
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
color: z.ZodOptional<z.ZodString>;
|
|
140
321
|
alignText: z.ZodOptional<z.ZodEnum<{
|
|
141
322
|
right: "right";
|
|
142
323
|
left: "left";
|
|
143
324
|
center: "center";
|
|
144
325
|
}>>;
|
|
326
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
327
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
328
|
+
lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
|
|
145
329
|
}, z.core.$strip>;
|
|
146
330
|
export declare const imageNodeSchema: z.ZodObject<{
|
|
147
331
|
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
@@ -285,7 +469,186 @@ export declare const shapeNodeSchema: z.ZodObject<{
|
|
|
285
469
|
}>>;
|
|
286
470
|
}, z.core.$strip>>;
|
|
287
471
|
type: z.ZodLiteral<"shape">;
|
|
288
|
-
shapeType: z.
|
|
472
|
+
shapeType: z.ZodEnum<{
|
|
473
|
+
accentBorderCallout1: "accentBorderCallout1";
|
|
474
|
+
accentBorderCallout2: "accentBorderCallout2";
|
|
475
|
+
accentBorderCallout3: "accentBorderCallout3";
|
|
476
|
+
accentCallout1: "accentCallout1";
|
|
477
|
+
accentCallout2: "accentCallout2";
|
|
478
|
+
accentCallout3: "accentCallout3";
|
|
479
|
+
actionButtonBackPrevious: "actionButtonBackPrevious";
|
|
480
|
+
actionButtonBeginning: "actionButtonBeginning";
|
|
481
|
+
actionButtonBlank: "actionButtonBlank";
|
|
482
|
+
actionButtonDocument: "actionButtonDocument";
|
|
483
|
+
actionButtonEnd: "actionButtonEnd";
|
|
484
|
+
actionButtonForwardNext: "actionButtonForwardNext";
|
|
485
|
+
actionButtonHelp: "actionButtonHelp";
|
|
486
|
+
actionButtonHome: "actionButtonHome";
|
|
487
|
+
actionButtonInformation: "actionButtonInformation";
|
|
488
|
+
actionButtonMovie: "actionButtonMovie";
|
|
489
|
+
actionButtonReturn: "actionButtonReturn";
|
|
490
|
+
actionButtonSound: "actionButtonSound";
|
|
491
|
+
arc: "arc";
|
|
492
|
+
bentArrow: "bentArrow";
|
|
493
|
+
bentUpArrow: "bentUpArrow";
|
|
494
|
+
bevel: "bevel";
|
|
495
|
+
blockArc: "blockArc";
|
|
496
|
+
borderCallout1: "borderCallout1";
|
|
497
|
+
borderCallout2: "borderCallout2";
|
|
498
|
+
borderCallout3: "borderCallout3";
|
|
499
|
+
bracePair: "bracePair";
|
|
500
|
+
bracketPair: "bracketPair";
|
|
501
|
+
callout1: "callout1";
|
|
502
|
+
callout2: "callout2";
|
|
503
|
+
callout3: "callout3";
|
|
504
|
+
can: "can";
|
|
505
|
+
chartPlus: "chartPlus";
|
|
506
|
+
chartStar: "chartStar";
|
|
507
|
+
chartX: "chartX";
|
|
508
|
+
chevron: "chevron";
|
|
509
|
+
chord: "chord";
|
|
510
|
+
circularArrow: "circularArrow";
|
|
511
|
+
cloud: "cloud";
|
|
512
|
+
cloudCallout: "cloudCallout";
|
|
513
|
+
corner: "corner";
|
|
514
|
+
cornerTabs: "cornerTabs";
|
|
515
|
+
cube: "cube";
|
|
516
|
+
curvedDownArrow: "curvedDownArrow";
|
|
517
|
+
curvedLeftArrow: "curvedLeftArrow";
|
|
518
|
+
curvedRightArrow: "curvedRightArrow";
|
|
519
|
+
curvedUpArrow: "curvedUpArrow";
|
|
520
|
+
decagon: "decagon";
|
|
521
|
+
diagStripe: "diagStripe";
|
|
522
|
+
diamond: "diamond";
|
|
523
|
+
dodecagon: "dodecagon";
|
|
524
|
+
donut: "donut";
|
|
525
|
+
doubleWave: "doubleWave";
|
|
526
|
+
downArrow: "downArrow";
|
|
527
|
+
downArrowCallout: "downArrowCallout";
|
|
528
|
+
ellipse: "ellipse";
|
|
529
|
+
ellipseRibbon: "ellipseRibbon";
|
|
530
|
+
ellipseRibbon2: "ellipseRibbon2";
|
|
531
|
+
flowChartAlternateProcess: "flowChartAlternateProcess";
|
|
532
|
+
flowChartCollate: "flowChartCollate";
|
|
533
|
+
flowChartConnector: "flowChartConnector";
|
|
534
|
+
flowChartDecision: "flowChartDecision";
|
|
535
|
+
flowChartDelay: "flowChartDelay";
|
|
536
|
+
flowChartDisplay: "flowChartDisplay";
|
|
537
|
+
flowChartDocument: "flowChartDocument";
|
|
538
|
+
flowChartExtract: "flowChartExtract";
|
|
539
|
+
flowChartInputOutput: "flowChartInputOutput";
|
|
540
|
+
flowChartInternalStorage: "flowChartInternalStorage";
|
|
541
|
+
flowChartMagneticDisk: "flowChartMagneticDisk";
|
|
542
|
+
flowChartMagneticDrum: "flowChartMagneticDrum";
|
|
543
|
+
flowChartMagneticTape: "flowChartMagneticTape";
|
|
544
|
+
flowChartManualInput: "flowChartManualInput";
|
|
545
|
+
flowChartManualOperation: "flowChartManualOperation";
|
|
546
|
+
flowChartMerge: "flowChartMerge";
|
|
547
|
+
flowChartMultidocument: "flowChartMultidocument";
|
|
548
|
+
flowChartOfflineStorage: "flowChartOfflineStorage";
|
|
549
|
+
flowChartOffpageConnector: "flowChartOffpageConnector";
|
|
550
|
+
flowChartOnlineStorage: "flowChartOnlineStorage";
|
|
551
|
+
flowChartOr: "flowChartOr";
|
|
552
|
+
flowChartPredefinedProcess: "flowChartPredefinedProcess";
|
|
553
|
+
flowChartPreparation: "flowChartPreparation";
|
|
554
|
+
flowChartProcess: "flowChartProcess";
|
|
555
|
+
flowChartPunchedCard: "flowChartPunchedCard";
|
|
556
|
+
flowChartPunchedTape: "flowChartPunchedTape";
|
|
557
|
+
flowChartSort: "flowChartSort";
|
|
558
|
+
flowChartSummingJunction: "flowChartSummingJunction";
|
|
559
|
+
flowChartTerminator: "flowChartTerminator";
|
|
560
|
+
folderCorner: "folderCorner";
|
|
561
|
+
frame: "frame";
|
|
562
|
+
funnel: "funnel";
|
|
563
|
+
gear6: "gear6";
|
|
564
|
+
gear9: "gear9";
|
|
565
|
+
halfFrame: "halfFrame";
|
|
566
|
+
heart: "heart";
|
|
567
|
+
heptagon: "heptagon";
|
|
568
|
+
hexagon: "hexagon";
|
|
569
|
+
homePlate: "homePlate";
|
|
570
|
+
horizontalScroll: "horizontalScroll";
|
|
571
|
+
irregularSeal1: "irregularSeal1";
|
|
572
|
+
irregularSeal2: "irregularSeal2";
|
|
573
|
+
leftArrow: "leftArrow";
|
|
574
|
+
leftArrowCallout: "leftArrowCallout";
|
|
575
|
+
leftBrace: "leftBrace";
|
|
576
|
+
leftBracket: "leftBracket";
|
|
577
|
+
leftCircularArrow: "leftCircularArrow";
|
|
578
|
+
leftRightArrow: "leftRightArrow";
|
|
579
|
+
leftRightArrowCallout: "leftRightArrowCallout";
|
|
580
|
+
leftRightCircularArrow: "leftRightCircularArrow";
|
|
581
|
+
leftRightRibbon: "leftRightRibbon";
|
|
582
|
+
leftRightUpArrow: "leftRightUpArrow";
|
|
583
|
+
leftUpArrow: "leftUpArrow";
|
|
584
|
+
lightningBolt: "lightningBolt";
|
|
585
|
+
line: "line";
|
|
586
|
+
lineInv: "lineInv";
|
|
587
|
+
mathDivide: "mathDivide";
|
|
588
|
+
mathEqual: "mathEqual";
|
|
589
|
+
mathMinus: "mathMinus";
|
|
590
|
+
mathMultiply: "mathMultiply";
|
|
591
|
+
mathNotEqual: "mathNotEqual";
|
|
592
|
+
mathPlus: "mathPlus";
|
|
593
|
+
moon: "moon";
|
|
594
|
+
noSmoking: "noSmoking";
|
|
595
|
+
nonIsoscelesTrapezoid: "nonIsoscelesTrapezoid";
|
|
596
|
+
notchedRightArrow: "notchedRightArrow";
|
|
597
|
+
octagon: "octagon";
|
|
598
|
+
parallelogram: "parallelogram";
|
|
599
|
+
pentagon: "pentagon";
|
|
600
|
+
pie: "pie";
|
|
601
|
+
pieWedge: "pieWedge";
|
|
602
|
+
plaque: "plaque";
|
|
603
|
+
plaqueTabs: "plaqueTabs";
|
|
604
|
+
plus: "plus";
|
|
605
|
+
quadArrow: "quadArrow";
|
|
606
|
+
quadArrowCallout: "quadArrowCallout";
|
|
607
|
+
rect: "rect";
|
|
608
|
+
ribbon: "ribbon";
|
|
609
|
+
ribbon2: "ribbon2";
|
|
610
|
+
rightArrow: "rightArrow";
|
|
611
|
+
rightArrowCallout: "rightArrowCallout";
|
|
612
|
+
rightBrace: "rightBrace";
|
|
613
|
+
rightBracket: "rightBracket";
|
|
614
|
+
round1Rect: "round1Rect";
|
|
615
|
+
round2DiagRect: "round2DiagRect";
|
|
616
|
+
round2SameRect: "round2SameRect";
|
|
617
|
+
roundRect: "roundRect";
|
|
618
|
+
rtTriangle: "rtTriangle";
|
|
619
|
+
smileyFace: "smileyFace";
|
|
620
|
+
snip1Rect: "snip1Rect";
|
|
621
|
+
snip2DiagRect: "snip2DiagRect";
|
|
622
|
+
snip2SameRect: "snip2SameRect";
|
|
623
|
+
snipRoundRect: "snipRoundRect";
|
|
624
|
+
squareTabs: "squareTabs";
|
|
625
|
+
star10: "star10";
|
|
626
|
+
star12: "star12";
|
|
627
|
+
star16: "star16";
|
|
628
|
+
star24: "star24";
|
|
629
|
+
star32: "star32";
|
|
630
|
+
star4: "star4";
|
|
631
|
+
star5: "star5";
|
|
632
|
+
star6: "star6";
|
|
633
|
+
star7: "star7";
|
|
634
|
+
star8: "star8";
|
|
635
|
+
stripedRightArrow: "stripedRightArrow";
|
|
636
|
+
sun: "sun";
|
|
637
|
+
swooshArrow: "swooshArrow";
|
|
638
|
+
teardrop: "teardrop";
|
|
639
|
+
trapezoid: "trapezoid";
|
|
640
|
+
triangle: "triangle";
|
|
641
|
+
upArrow: "upArrow";
|
|
642
|
+
upArrowCallout: "upArrowCallout";
|
|
643
|
+
upDownArrow: "upDownArrow";
|
|
644
|
+
upDownArrowCallout: "upDownArrowCallout";
|
|
645
|
+
uturnArrow: "uturnArrow";
|
|
646
|
+
verticalScroll: "verticalScroll";
|
|
647
|
+
wave: "wave";
|
|
648
|
+
wedgeEllipseCallout: "wedgeEllipseCallout";
|
|
649
|
+
wedgeRectCallout: "wedgeRectCallout";
|
|
650
|
+
wedgeRoundRectCallout: "wedgeRoundRectCallout";
|
|
651
|
+
}>;
|
|
289
652
|
text: z.ZodOptional<z.ZodString>;
|
|
290
653
|
fill: z.ZodOptional<z.ZodObject<{
|
|
291
654
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -369,5 +732,34 @@ export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & Position
|
|
|
369
732
|
children: PositionedNode[];
|
|
370
733
|
}) | (ShapeNode & PositionedBase);
|
|
371
734
|
export declare const positionedNodeSchema: z.ZodType<PositionedNode>;
|
|
735
|
+
export declare const pageNumberPositionSchema: z.ZodEnum<{
|
|
736
|
+
right: "right";
|
|
737
|
+
left: "left";
|
|
738
|
+
center: "center";
|
|
739
|
+
}>;
|
|
740
|
+
export declare const dateFormatSchema: z.ZodEnum<{
|
|
741
|
+
"YYYY/MM/DD": "YYYY/MM/DD";
|
|
742
|
+
locale: "locale";
|
|
743
|
+
}>;
|
|
744
|
+
export declare const masterSlideOptionsSchema: z.ZodObject<{
|
|
745
|
+
header: z.ZodOptional<z.ZodLazy<z.ZodType<POMNode, unknown, z.core.$ZodTypeInternals<POMNode, unknown>>>>;
|
|
746
|
+
footer: z.ZodOptional<z.ZodLazy<z.ZodType<POMNode, unknown, z.core.$ZodTypeInternals<POMNode, unknown>>>>;
|
|
747
|
+
pageNumber: z.ZodOptional<z.ZodObject<{
|
|
748
|
+
position: z.ZodEnum<{
|
|
749
|
+
right: "right";
|
|
750
|
+
left: "left";
|
|
751
|
+
center: "center";
|
|
752
|
+
}>;
|
|
753
|
+
}, z.core.$strip>>;
|
|
754
|
+
date: z.ZodOptional<z.ZodObject<{
|
|
755
|
+
format: z.ZodEnum<{
|
|
756
|
+
"YYYY/MM/DD": "YYYY/MM/DD";
|
|
757
|
+
locale: "locale";
|
|
758
|
+
}>;
|
|
759
|
+
}, z.core.$strip>>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
export type PageNumberPosition = z.infer<typeof pageNumberPositionSchema>;
|
|
762
|
+
export type DateFormat = z.infer<typeof dateFormatSchema>;
|
|
763
|
+
export type MasterSlideOptions = z.infer<typeof masterSlideOptionsSchema>;
|
|
372
764
|
export {};
|
|
373
765
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY,sEAIvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;mBAQxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;EAS3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAO5B,CAAC;A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