@hirokisakabe/pom 1.2.0 → 1.3.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.
@@ -35,6 +35,10 @@ async function prefetchAllImageSizes(node) {
35
35
  function collectImageSources(node) {
36
36
  const sources = [];
37
37
  function traverse(n) {
38
+ // backgroundImage の src を収集(全ノード共通)
39
+ if (n.backgroundImage) {
40
+ sources.push(n.backgroundImage.src);
41
+ }
38
42
  if (n.type === "image") {
39
43
  sources.push(n.src);
40
44
  }
@@ -17,7 +17,7 @@
17
17
  * ```
18
18
  */
19
19
  import { z } from "zod";
20
- import { type AlignItems, type JustifyContent, type TreeDataItem } from "./types.ts";
20
+ import { type AlignItems, type JustifyContent, type TreeDataItem, type ShadowStyle } from "./types.ts";
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]>>;
@@ -32,6 +32,13 @@ export declare const inputBaseNodeSchema: z.ZodObject<{
32
32
  left: z.ZodOptional<z.ZodNumber>;
33
33
  }, z.core.$strip>]>>;
34
34
  backgroundColor: z.ZodOptional<z.ZodString>;
35
+ backgroundImage: z.ZodOptional<z.ZodObject<{
36
+ src: z.ZodString;
37
+ sizing: z.ZodOptional<z.ZodEnum<{
38
+ cover: "cover";
39
+ contain: "contain";
40
+ }>>;
41
+ }, z.core.$strip>>;
35
42
  border: z.ZodOptional<z.ZodObject<{
36
43
  color: z.ZodOptional<z.ZodString>;
37
44
  width: z.ZodOptional<z.ZodNumber>;
@@ -47,6 +54,7 @@ export declare const inputBaseNodeSchema: z.ZodObject<{
47
54
  }>>;
48
55
  }, z.core.$strip>>;
49
56
  borderRadius: z.ZodOptional<z.ZodNumber>;
57
+ opacity: z.ZodOptional<z.ZodNumber>;
50
58
  }, z.core.$strip>;
51
59
  type InputBaseNode = z.infer<typeof inputBaseNodeSchema>;
52
60
  export declare const inputTextNodeSchema: z.ZodObject<{
@@ -63,6 +71,13 @@ export declare const inputTextNodeSchema: z.ZodObject<{
63
71
  left: z.ZodOptional<z.ZodNumber>;
64
72
  }, z.core.$strip>]>>;
65
73
  backgroundColor: z.ZodOptional<z.ZodString>;
74
+ backgroundImage: z.ZodOptional<z.ZodObject<{
75
+ src: z.ZodString;
76
+ sizing: z.ZodOptional<z.ZodEnum<{
77
+ cover: "cover";
78
+ contain: "contain";
79
+ }>>;
80
+ }, z.core.$strip>>;
66
81
  border: z.ZodOptional<z.ZodObject<{
67
82
  color: z.ZodOptional<z.ZodString>;
68
83
  width: z.ZodOptional<z.ZodNumber>;
@@ -78,6 +93,7 @@ export declare const inputTextNodeSchema: z.ZodObject<{
78
93
  }>>;
79
94
  }, z.core.$strip>>;
80
95
  borderRadius: z.ZodOptional<z.ZodNumber>;
96
+ opacity: z.ZodOptional<z.ZodNumber>;
81
97
  type: z.ZodLiteral<"text">;
82
98
  text: z.ZodString;
83
99
  fontPx: z.ZodOptional<z.ZodNumber>;
@@ -142,8 +158,8 @@ export declare const inputTextNodeSchema: z.ZodObject<{
142
158
  }, z.core.$strip>;
143
159
  export declare const inputImageSizingSchema: z.ZodObject<{
144
160
  type: z.ZodEnum<{
145
- contain: "contain";
146
161
  cover: "cover";
162
+ contain: "contain";
147
163
  crop: "crop";
148
164
  }>;
149
165
  w: z.ZodOptional<z.ZodNumber>;
@@ -165,6 +181,13 @@ export declare const inputImageNodeSchema: z.ZodObject<{
165
181
  left: z.ZodOptional<z.ZodNumber>;
166
182
  }, z.core.$strip>]>>;
167
183
  backgroundColor: z.ZodOptional<z.ZodString>;
184
+ backgroundImage: z.ZodOptional<z.ZodObject<{
185
+ src: z.ZodString;
186
+ sizing: z.ZodOptional<z.ZodEnum<{
187
+ cover: "cover";
188
+ contain: "contain";
189
+ }>>;
190
+ }, z.core.$strip>>;
168
191
  border: z.ZodOptional<z.ZodObject<{
169
192
  color: z.ZodOptional<z.ZodString>;
170
193
  width: z.ZodOptional<z.ZodNumber>;
@@ -180,12 +203,13 @@ export declare const inputImageNodeSchema: z.ZodObject<{
180
203
  }>>;
181
204
  }, z.core.$strip>>;
182
205
  borderRadius: z.ZodOptional<z.ZodNumber>;
206
+ opacity: z.ZodOptional<z.ZodNumber>;
183
207
  type: z.ZodLiteral<"image">;
184
208
  src: z.ZodString;
185
209
  sizing: z.ZodOptional<z.ZodObject<{
186
210
  type: z.ZodEnum<{
187
- contain: "contain";
188
211
  cover: "cover";
212
+ contain: "contain";
189
213
  crop: "crop";
190
214
  }>;
191
215
  w: z.ZodOptional<z.ZodNumber>;
@@ -193,6 +217,17 @@ export declare const inputImageNodeSchema: z.ZodObject<{
193
217
  x: z.ZodOptional<z.ZodNumber>;
194
218
  y: z.ZodOptional<z.ZodNumber>;
195
219
  }, z.core.$strip>>;
220
+ shadow: z.ZodOptional<z.ZodObject<{
221
+ type: z.ZodOptional<z.ZodEnum<{
222
+ outer: "outer";
223
+ inner: "inner";
224
+ }>>;
225
+ opacity: z.ZodOptional<z.ZodNumber>;
226
+ blur: z.ZodOptional<z.ZodNumber>;
227
+ angle: z.ZodOptional<z.ZodNumber>;
228
+ offset: z.ZodOptional<z.ZodNumber>;
229
+ color: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strip>>;
196
231
  }, z.core.$strip>;
197
232
  export declare const inputTableNodeSchema: z.ZodObject<{
198
233
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -208,6 +243,13 @@ export declare const inputTableNodeSchema: z.ZodObject<{
208
243
  left: z.ZodOptional<z.ZodNumber>;
209
244
  }, z.core.$strip>]>>;
210
245
  backgroundColor: z.ZodOptional<z.ZodString>;
246
+ backgroundImage: z.ZodOptional<z.ZodObject<{
247
+ src: z.ZodString;
248
+ sizing: z.ZodOptional<z.ZodEnum<{
249
+ cover: "cover";
250
+ contain: "contain";
251
+ }>>;
252
+ }, z.core.$strip>>;
211
253
  border: z.ZodOptional<z.ZodObject<{
212
254
  color: z.ZodOptional<z.ZodString>;
213
255
  width: z.ZodOptional<z.ZodNumber>;
@@ -223,6 +265,7 @@ export declare const inputTableNodeSchema: z.ZodObject<{
223
265
  }>>;
224
266
  }, z.core.$strip>>;
225
267
  borderRadius: z.ZodOptional<z.ZodNumber>;
268
+ opacity: z.ZodOptional<z.ZodNumber>;
226
269
  type: z.ZodLiteral<"table">;
227
270
  columns: z.ZodArray<z.ZodObject<{
228
271
  width: z.ZodOptional<z.ZodNumber>;
@@ -281,6 +324,13 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
281
324
  left: z.ZodOptional<z.ZodNumber>;
282
325
  }, z.core.$strip>]>>;
283
326
  backgroundColor: z.ZodOptional<z.ZodString>;
327
+ backgroundImage: z.ZodOptional<z.ZodObject<{
328
+ src: z.ZodString;
329
+ sizing: z.ZodOptional<z.ZodEnum<{
330
+ cover: "cover";
331
+ contain: "contain";
332
+ }>>;
333
+ }, z.core.$strip>>;
284
334
  border: z.ZodOptional<z.ZodObject<{
285
335
  color: z.ZodOptional<z.ZodString>;
286
336
  width: z.ZodOptional<z.ZodNumber>;
@@ -296,6 +346,7 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
296
346
  }>>;
297
347
  }, z.core.$strip>>;
298
348
  borderRadius: z.ZodOptional<z.ZodNumber>;
349
+ opacity: z.ZodOptional<z.ZodNumber>;
299
350
  type: z.ZodLiteral<"shape">;
300
351
  shapeType: z.ZodEnum<{
301
352
  accentBorderCallout1: "accentBorderCallout1";
@@ -553,6 +604,13 @@ export declare const inputChartNodeSchema: z.ZodObject<{
553
604
  left: z.ZodOptional<z.ZodNumber>;
554
605
  }, z.core.$strip>]>>;
555
606
  backgroundColor: z.ZodOptional<z.ZodString>;
607
+ backgroundImage: z.ZodOptional<z.ZodObject<{
608
+ src: z.ZodString;
609
+ sizing: z.ZodOptional<z.ZodEnum<{
610
+ cover: "cover";
611
+ contain: "contain";
612
+ }>>;
613
+ }, z.core.$strip>>;
556
614
  border: z.ZodOptional<z.ZodObject<{
557
615
  color: z.ZodOptional<z.ZodString>;
558
616
  width: z.ZodOptional<z.ZodNumber>;
@@ -568,6 +626,7 @@ export declare const inputChartNodeSchema: z.ZodObject<{
568
626
  }>>;
569
627
  }, z.core.$strip>>;
570
628
  borderRadius: z.ZodOptional<z.ZodNumber>;
629
+ opacity: z.ZodOptional<z.ZodNumber>;
571
630
  type: z.ZodLiteral<"chart">;
572
631
  chartType: z.ZodEnum<{
573
632
  line: "line";
@@ -606,6 +665,13 @@ export declare const inputTimelineNodeSchema: z.ZodObject<{
606
665
  left: z.ZodOptional<z.ZodNumber>;
607
666
  }, z.core.$strip>]>>;
608
667
  backgroundColor: z.ZodOptional<z.ZodString>;
668
+ backgroundImage: z.ZodOptional<z.ZodObject<{
669
+ src: z.ZodString;
670
+ sizing: z.ZodOptional<z.ZodEnum<{
671
+ cover: "cover";
672
+ contain: "contain";
673
+ }>>;
674
+ }, z.core.$strip>>;
609
675
  border: z.ZodOptional<z.ZodObject<{
610
676
  color: z.ZodOptional<z.ZodString>;
611
677
  width: z.ZodOptional<z.ZodNumber>;
@@ -621,6 +687,7 @@ export declare const inputTimelineNodeSchema: z.ZodObject<{
621
687
  }>>;
622
688
  }, z.core.$strip>>;
623
689
  borderRadius: z.ZodOptional<z.ZodNumber>;
690
+ opacity: z.ZodOptional<z.ZodNumber>;
624
691
  type: z.ZodLiteral<"timeline">;
625
692
  direction: z.ZodOptional<z.ZodEnum<{
626
693
  horizontal: "horizontal";
@@ -647,6 +714,13 @@ export declare const inputMatrixNodeSchema: z.ZodObject<{
647
714
  left: z.ZodOptional<z.ZodNumber>;
648
715
  }, z.core.$strip>]>>;
649
716
  backgroundColor: z.ZodOptional<z.ZodString>;
717
+ backgroundImage: z.ZodOptional<z.ZodObject<{
718
+ src: z.ZodString;
719
+ sizing: z.ZodOptional<z.ZodEnum<{
720
+ cover: "cover";
721
+ contain: "contain";
722
+ }>>;
723
+ }, z.core.$strip>>;
650
724
  border: z.ZodOptional<z.ZodObject<{
651
725
  color: z.ZodOptional<z.ZodString>;
652
726
  width: z.ZodOptional<z.ZodNumber>;
@@ -662,6 +736,7 @@ export declare const inputMatrixNodeSchema: z.ZodObject<{
662
736
  }>>;
663
737
  }, z.core.$strip>>;
664
738
  borderRadius: z.ZodOptional<z.ZodNumber>;
739
+ opacity: z.ZodOptional<z.ZodNumber>;
665
740
  type: z.ZodLiteral<"matrix">;
666
741
  axes: z.ZodObject<{
667
742
  x: z.ZodString;
@@ -695,6 +770,13 @@ export declare const inputTreeNodeSchema: z.ZodObject<{
695
770
  left: z.ZodOptional<z.ZodNumber>;
696
771
  }, z.core.$strip>]>>;
697
772
  backgroundColor: z.ZodOptional<z.ZodString>;
773
+ backgroundImage: z.ZodOptional<z.ZodObject<{
774
+ src: z.ZodString;
775
+ sizing: z.ZodOptional<z.ZodEnum<{
776
+ cover: "cover";
777
+ contain: "contain";
778
+ }>>;
779
+ }, z.core.$strip>>;
698
780
  border: z.ZodOptional<z.ZodObject<{
699
781
  color: z.ZodOptional<z.ZodString>;
700
782
  width: z.ZodOptional<z.ZodNumber>;
@@ -710,6 +792,7 @@ export declare const inputTreeNodeSchema: z.ZodObject<{
710
792
  }>>;
711
793
  }, z.core.$strip>>;
712
794
  borderRadius: z.ZodOptional<z.ZodNumber>;
795
+ opacity: z.ZodOptional<z.ZodNumber>;
713
796
  type: z.ZodLiteral<"tree">;
714
797
  layout: z.ZodOptional<z.ZodEnum<{
715
798
  horizontal: "horizontal";
@@ -744,6 +827,13 @@ export declare const inputFlowNodeSchema: z.ZodObject<{
744
827
  left: z.ZodOptional<z.ZodNumber>;
745
828
  }, z.core.$strip>]>>;
746
829
  backgroundColor: z.ZodOptional<z.ZodString>;
830
+ backgroundImage: z.ZodOptional<z.ZodObject<{
831
+ src: z.ZodString;
832
+ sizing: z.ZodOptional<z.ZodEnum<{
833
+ cover: "cover";
834
+ contain: "contain";
835
+ }>>;
836
+ }, z.core.$strip>>;
747
837
  border: z.ZodOptional<z.ZodObject<{
748
838
  color: z.ZodOptional<z.ZodString>;
749
839
  width: z.ZodOptional<z.ZodNumber>;
@@ -759,6 +849,7 @@ export declare const inputFlowNodeSchema: z.ZodObject<{
759
849
  }>>;
760
850
  }, z.core.$strip>>;
761
851
  borderRadius: z.ZodOptional<z.ZodNumber>;
852
+ opacity: z.ZodOptional<z.ZodNumber>;
762
853
  type: z.ZodLiteral<"flow">;
763
854
  direction: z.ZodOptional<z.ZodEnum<{
764
855
  horizontal: "horizontal";
@@ -822,6 +913,13 @@ export declare const inputProcessArrowNodeSchema: z.ZodObject<{
822
913
  left: z.ZodOptional<z.ZodNumber>;
823
914
  }, z.core.$strip>]>>;
824
915
  backgroundColor: z.ZodOptional<z.ZodString>;
916
+ backgroundImage: z.ZodOptional<z.ZodObject<{
917
+ src: z.ZodString;
918
+ sizing: z.ZodOptional<z.ZodEnum<{
919
+ cover: "cover";
920
+ contain: "contain";
921
+ }>>;
922
+ }, z.core.$strip>>;
825
923
  border: z.ZodOptional<z.ZodObject<{
826
924
  color: z.ZodOptional<z.ZodString>;
827
925
  width: z.ZodOptional<z.ZodNumber>;
@@ -837,6 +935,7 @@ export declare const inputProcessArrowNodeSchema: z.ZodObject<{
837
935
  }>>;
838
936
  }, z.core.$strip>>;
839
937
  borderRadius: z.ZodOptional<z.ZodNumber>;
938
+ opacity: z.ZodOptional<z.ZodNumber>;
840
939
  type: z.ZodLiteral<"processArrow">;
841
940
  direction: z.ZodOptional<z.ZodEnum<{
842
941
  horizontal: "horizontal";
@@ -890,6 +989,13 @@ export declare const inputLineNodeSchema: z.ZodObject<{
890
989
  left: z.ZodOptional<z.ZodNumber>;
891
990
  }, z.core.$strip>]>>;
892
991
  backgroundColor: z.ZodOptional<z.ZodString>;
992
+ backgroundImage: z.ZodOptional<z.ZodObject<{
993
+ src: z.ZodString;
994
+ sizing: z.ZodOptional<z.ZodEnum<{
995
+ cover: "cover";
996
+ contain: "contain";
997
+ }>>;
998
+ }, z.core.$strip>>;
893
999
  border: z.ZodOptional<z.ZodObject<{
894
1000
  color: z.ZodOptional<z.ZodString>;
895
1001
  width: z.ZodOptional<z.ZodNumber>;
@@ -905,6 +1011,7 @@ export declare const inputLineNodeSchema: z.ZodObject<{
905
1011
  }>>;
906
1012
  }, z.core.$strip>>;
907
1013
  borderRadius: z.ZodOptional<z.ZodNumber>;
1014
+ opacity: z.ZodOptional<z.ZodNumber>;
908
1015
  type: z.ZodLiteral<"line">;
909
1016
  x1: z.ZodNumber;
910
1017
  y1: z.ZodNumber;
@@ -957,6 +1064,7 @@ export type InputLineNode = z.infer<typeof inputLineNodeSchema>;
957
1064
  export type InputBoxNode = InputBaseNode & {
958
1065
  type: "box";
959
1066
  children: InputPOMNode;
1067
+ shadow?: ShadowStyle;
960
1068
  };
961
1069
  export type InputVStackNode = InputBaseNode & {
962
1070
  type: "vstack";
@@ -1204,6 +1312,8 @@ export declare const inputSlideMasterBackgroundSchema: z.ZodUnion<readonly [z.Zo
1204
1312
  path: z.ZodString;
1205
1313
  }, z.core.$strip>, z.ZodObject<{
1206
1314
  data: z.ZodString;
1315
+ }, z.core.$strip>, z.ZodObject<{
1316
+ image: z.ZodString;
1207
1317
  }, z.core.$strip>]>;
1208
1318
  export declare const inputSlideMasterMarginSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1209
1319
  top: z.ZodOptional<z.ZodNumber>;
@@ -1238,6 +1348,8 @@ export declare const inputSlideMasterOptionsSchema: z.ZodObject<{
1238
1348
  path: z.ZodString;
1239
1349
  }, z.core.$strip>, z.ZodObject<{
1240
1350
  data: z.ZodString;
1351
+ }, z.core.$strip>, z.ZodObject<{
1352
+ image: z.ZodString;
1241
1353
  }, z.core.$strip>]>>;
1242
1354
  margin: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1243
1355
  top: z.ZodOptional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AEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAOtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAKlC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;iBAQxC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;mBAK3C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;mBAQvC,CAAC;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC"}
@@ -17,7 +17,7 @@
17
17
  * ```
18
18
  */
19
19
  import { z } from "zod";
20
- import { lengthSchema, paddingSchema, borderStyleSchema, borderDashSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, chartTypeSchema, chartDataSchema, bulletOptionsSchema, radarStyleSchema, timelineDirectionSchema, timelineItemSchema, matrixAxisSchema, matrixQuadrantsSchema, matrixItemSchema, treeLayoutSchema, treeNodeShapeSchema, treeConnectorStyleSchema, flowDirectionSchema, flowNodeItemSchema, flowConnectionSchema, flowConnectorStyleSchema, processArrowDirectionSchema, processArrowStepSchema, lineArrowSchema, underlineSchema, } from "./types.js";
20
+ import { lengthSchema, paddingSchema, borderStyleSchema, borderDashSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, chartTypeSchema, chartDataSchema, bulletOptionsSchema, radarStyleSchema, timelineDirectionSchema, timelineItemSchema, matrixAxisSchema, matrixQuadrantsSchema, matrixItemSchema, treeLayoutSchema, treeNodeShapeSchema, treeConnectorStyleSchema, flowDirectionSchema, flowNodeItemSchema, flowConnectionSchema, flowConnectorStyleSchema, processArrowDirectionSchema, processArrowStepSchema, lineArrowSchema, underlineSchema, backgroundImageSchema, } from "./types.js";
21
21
  // ===== Base Node Schema =====
22
22
  export const inputBaseNodeSchema = z.object({
23
23
  w: lengthSchema.optional(),
@@ -28,8 +28,10 @@ export const inputBaseNodeSchema = z.object({
28
28
  maxH: z.number().optional(),
29
29
  padding: paddingSchema.optional(),
30
30
  backgroundColor: z.string().optional(),
31
+ backgroundImage: backgroundImageSchema.optional(),
31
32
  border: borderStyleSchema.optional(),
32
33
  borderRadius: z.number().optional(),
34
+ opacity: z.number().min(0).max(1).optional(),
33
35
  });
34
36
  // ===== Node Schemas =====
35
37
  export const inputTextNodeSchema = inputBaseNodeSchema.extend({
@@ -58,6 +60,7 @@ export const inputImageNodeSchema = inputBaseNodeSchema.extend({
58
60
  type: z.literal("image"),
59
61
  src: z.string(),
60
62
  sizing: inputImageSizingSchema.optional(),
63
+ shadow: shadowStyleSchema.optional(),
61
64
  });
62
65
  export const inputTableNodeSchema = inputBaseNodeSchema.extend({
63
66
  type: z.literal("table"),
@@ -159,6 +162,7 @@ export const inputLineNodeSchema = inputBaseNodeSchema.extend({
159
162
  const inputBoxNodeSchemaBase = inputBaseNodeSchema.extend({
160
163
  type: z.literal("box"),
161
164
  children: z.lazy(() => inputPomNodeSchema),
165
+ shadow: shadowStyleSchema.optional(),
162
166
  });
163
167
  const inputVStackNodeSchemaBase = inputBaseNodeSchema.extend({
164
168
  type: z.literal("vstack"),
@@ -283,6 +287,7 @@ export const inputSlideMasterBackgroundSchema = z.union([
283
287
  z.object({ color: z.string() }),
284
288
  z.object({ path: z.string() }),
285
289
  z.object({ data: z.string() }),
290
+ z.object({ image: z.string() }),
286
291
  ]);
287
292
  export const inputSlideMasterMarginSchema = z.union([
288
293
  z.number(),
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,GAAG,EAAE,aAAa,GACjB,IAAI,CAyBN"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,GAAG,EAAE,aAAa,GACjB,IAAI,CAmCN"}
@@ -5,6 +5,16 @@ export function renderImageNode(node, ctx) {
5
5
  y: pxToIn(node.y),
6
6
  w: pxToIn(node.w),
7
7
  h: pxToIn(node.h),
8
+ shadow: node.shadow
9
+ ? {
10
+ type: node.shadow.type,
11
+ opacity: node.shadow.opacity,
12
+ blur: node.shadow.blur,
13
+ angle: node.shadow.angle,
14
+ offset: node.shadow.offset,
15
+ color: node.shadow.color,
16
+ }
17
+ : undefined,
8
18
  };
9
19
  if (node.sizing) {
10
20
  imageOptions.sizing = {
@@ -1 +1 @@
1
- {"version":3,"file":"renderPptx.d.ts","sourceRoot":"","sources":["../../src/renderPptx/renderPptx.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AAmBrB,KAAK,OAAO,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACxC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAmJvD;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,cAAc,EAAE,EACvB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,kBAAkB,+BAgJ5B"}
1
+ {"version":3,"file":"renderPptx.d.ts","sourceRoot":"","sources":["../../src/renderPptx/renderPptx.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AAoBrB,KAAK,OAAO,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACxC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAqJvD;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,cAAc,EAAE,EACvB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,kBAAkB,+BAqK5B"}
@@ -7,6 +7,7 @@ const pptxModule = require("pptxgenjs");
7
7
  const PptxGenJS = pptxModule.default ?? pptxModule;
8
8
  import { pxToIn, pxToPt } from "./units.js";
9
9
  import { convertUnderline, convertStrike } from "./textOptions.js";
10
+ import { getImageData } from "../calcYogaLayout/measureImage.js";
10
11
  import { renderBackgroundAndBorder } from "./utils/backgroundBorder.js";
11
12
  import { renderTextNode, renderImageNode, renderTableNode, renderShapeNode, renderChartNode, renderTimelineNode, renderMatrixNode, renderTreeNode, renderFlowNode, renderProcessArrowNode, renderLineNode, } from "./nodes/index.js";
12
13
  export { createTextOptions, convertUnderline, convertStrike, } from "./textOptions.js";
@@ -110,6 +111,9 @@ function defineSlideMasterFromOptions(pptx, master) {
110
111
  else if ("data" in master.background) {
111
112
  masterProps.background = { data: master.background.data };
112
113
  }
114
+ else if ("image" in master.background) {
115
+ masterProps.background = { path: master.background.image };
116
+ }
113
117
  }
114
118
  // margin の変換 (px -> inches)
115
119
  if (master.margin !== undefined) {
@@ -169,10 +173,25 @@ export function renderPptx(pages, slidePx, master) {
169
173
  // ルートノードの backgroundColor はスライドの background プロパティとして適用
170
174
  // これにより、マスタースライドのオブジェクトを覆い隠さない
171
175
  // line ノードは backgroundColor を持たないためスキップ
176
+ // ただし opacity が指定されている場合は slide.background では透過を表現できないため、
177
+ // renderBackgroundAndBorder で描画する
172
178
  const rootBackgroundColor = data.type !== "line" ? data.backgroundColor : undefined;
173
- if (rootBackgroundColor) {
179
+ const rootHasOpacity = data.type !== "line" && "opacity" in data && data.opacity !== undefined;
180
+ if (rootBackgroundColor && !rootHasOpacity) {
174
181
  slide.background = { color: rootBackgroundColor };
175
182
  }
183
+ // ルートノードの backgroundImage はスライドの background プロパティとして適用
184
+ // backgroundColor と backgroundImage の両方がある場合、backgroundImage が優先
185
+ const rootBackgroundImage = data.type !== "line" ? data.backgroundImage : undefined;
186
+ if (rootBackgroundImage) {
187
+ const cachedData = getImageData(rootBackgroundImage.src);
188
+ if (cachedData) {
189
+ slide.background = { data: cachedData };
190
+ }
191
+ else {
192
+ slide.background = { path: rootBackgroundImage.src };
193
+ }
194
+ }
176
195
  /**
177
196
  * node をスライドにレンダリングする
178
197
  * @param isRoot ルートノードかどうか(ルートノードの background は slide.background で処理済み)
@@ -180,9 +199,11 @@ export function renderPptx(pages, slidePx, master) {
180
199
  function renderNode(node, isRoot = false) {
181
200
  // line ノードは backgroundColor/border を持たないため、background/border の描画をスキップ
182
201
  if (node.type !== "line") {
183
- // ルートノードの backgroundColor は既に slide.background に適用済みなのでスキップ
184
- if (isRoot && rootBackgroundColor) {
185
- // border のみ描画(backgroundColor はスキップ)
202
+ // ルートノードの backgroundColor/backgroundImage は既に slide.background に適用済みなのでスキップ
203
+ // ただし opacity がある場合は slide.background では透過を表現できないため通常描画
204
+ if (isRoot &&
205
+ (rootBackgroundImage || (rootBackgroundColor && !rootHasOpacity))) {
206
+ // border のみ描画(backgroundColor/backgroundImage はスキップ)
186
207
  const { border, borderRadius } = node;
187
208
  const hasBorder = Boolean(border &&
188
209
  (border.color !== undefined ||
@@ -1,8 +1,10 @@
1
1
  import type { PositionedNode } from "../../types.ts";
2
2
  import type { RenderContext } from "../types.ts";
3
3
  /**
4
- * ノードの背景色とボーダーを描画する
4
+ * ノードの背景色・背景画像・ボーダー・影を描画する
5
5
  * 全ノードタイプで最初に呼び出される共通処理
6
+ *
7
+ * 描画順序: 背景色 → 背景画像 → ボーダー
6
8
  */
7
9
  export declare function renderBackgroundAndBorder(node: PositionedNode, ctx: RenderContext): void;
8
10
  //# sourceMappingURL=backgroundBorder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"backgroundBorder.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/utils/backgroundBorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,cAAc,EACpB,GAAG,EAAE,aAAa,GACjB,IAAI,CA+CN"}
1
+ {"version":3,"file":"backgroundBorder.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/utils/backgroundBorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAcjD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,cAAc,EACpB,GAAG,EAAE,aAAa,GACjB,IAAI,CAyHN"}
@@ -1,28 +1,34 @@
1
+ import { getImageData } from "../../calcYogaLayout/measureImage.js";
1
2
  import { pxToIn, pxToPt } from "../units.js";
3
+ function convertShadow(shadow) {
4
+ return {
5
+ type: shadow.type,
6
+ opacity: shadow.opacity,
7
+ blur: shadow.blur,
8
+ angle: shadow.angle,
9
+ offset: shadow.offset,
10
+ color: shadow.color,
11
+ };
12
+ }
2
13
  /**
3
- * ノードの背景色とボーダーを描画する
14
+ * ノードの背景色・背景画像・ボーダー・影を描画する
4
15
  * 全ノードタイプで最初に呼び出される共通処理
16
+ *
17
+ * 描画順序: 背景色 → 背景画像 → ボーダー
5
18
  */
6
19
  export function renderBackgroundAndBorder(node, ctx) {
7
- const { backgroundColor, border, borderRadius } = node;
20
+ const { backgroundColor, backgroundImage, border, borderRadius } = node;
21
+ const shadow = "shadow" in node ? node.shadow : undefined;
8
22
  const hasBackground = Boolean(backgroundColor);
23
+ const hasBackgroundImage = Boolean(backgroundImage);
9
24
  const hasBorder = Boolean(border &&
10
25
  (border.color !== undefined ||
11
26
  border.width !== undefined ||
12
27
  border.dashType !== undefined));
13
- if (!hasBackground && !hasBorder) {
28
+ const hasShadow = Boolean(shadow);
29
+ if (!hasBackground && !hasBackgroundImage && !hasBorder && !hasShadow) {
14
30
  return;
15
31
  }
16
- const fill = hasBackground
17
- ? { color: backgroundColor }
18
- : { type: "none" };
19
- const line = hasBorder
20
- ? {
21
- color: border?.color ?? "000000",
22
- width: border?.width !== undefined ? pxToPt(border.width) : undefined,
23
- dashType: border?.dashType,
24
- }
25
- : { type: "none" };
26
32
  // borderRadius がある場合は roundRect を使用し、rectRadius を計算
27
33
  const shapeType = borderRadius
28
34
  ? ctx.pptx.ShapeType.roundRect
@@ -31,14 +37,88 @@ export function renderBackgroundAndBorder(node, ctx) {
31
37
  const rectRadius = borderRadius
32
38
  ? Math.min((borderRadius / Math.min(node.w, node.h)) * 2, 1)
33
39
  : undefined;
34
- const shapeOptions = {
35
- x: pxToIn(node.x),
36
- y: pxToIn(node.y),
37
- w: pxToIn(node.w),
38
- h: pxToIn(node.h),
39
- fill,
40
- line,
41
- rectRadius,
42
- };
43
- ctx.slide.addShape(shapeType, shapeOptions);
40
+ // backgroundImage がない場合は従来通り1回の addShape で処理
41
+ if (!hasBackgroundImage) {
42
+ const fill = hasBackground
43
+ ? {
44
+ color: backgroundColor,
45
+ transparency: node.opacity !== undefined ? (1 - node.opacity) * 100 : undefined,
46
+ }
47
+ : { type: "none" };
48
+ const line = hasBorder
49
+ ? {
50
+ color: border?.color ?? "000000",
51
+ width: border?.width !== undefined ? pxToPt(border.width) : undefined,
52
+ dashType: border?.dashType,
53
+ }
54
+ : { type: "none" };
55
+ ctx.slide.addShape(shapeType, {
56
+ x: pxToIn(node.x),
57
+ y: pxToIn(node.y),
58
+ w: pxToIn(node.w),
59
+ h: pxToIn(node.h),
60
+ fill,
61
+ line,
62
+ rectRadius,
63
+ shadow: shadow ? convertShadow(shadow) : undefined,
64
+ });
65
+ return;
66
+ }
67
+ // backgroundImage がある場合は分割描画: 背景色 → 背景画像 → ボーダー
68
+ // 1. 背景色
69
+ if (hasBackground) {
70
+ ctx.slide.addShape(shapeType, {
71
+ x: pxToIn(node.x),
72
+ y: pxToIn(node.y),
73
+ w: pxToIn(node.w),
74
+ h: pxToIn(node.h),
75
+ fill: {
76
+ color: backgroundColor,
77
+ transparency: node.opacity !== undefined ? (1 - node.opacity) * 100 : undefined,
78
+ },
79
+ line: { type: "none" },
80
+ rectRadius,
81
+ });
82
+ }
83
+ // 2. 背景画像
84
+ if (backgroundImage) {
85
+ const sizing = backgroundImage.sizing ?? "cover";
86
+ const imageOptions = {
87
+ x: pxToIn(node.x),
88
+ y: pxToIn(node.y),
89
+ w: pxToIn(node.w),
90
+ h: pxToIn(node.h),
91
+ sizing: {
92
+ type: sizing,
93
+ w: pxToIn(node.w),
94
+ h: pxToIn(node.h),
95
+ },
96
+ };
97
+ const cachedData = getImageData(backgroundImage.src);
98
+ if (cachedData) {
99
+ ctx.slide.addImage({ ...imageOptions, data: cachedData });
100
+ }
101
+ else {
102
+ ctx.slide.addImage({ ...imageOptions, path: backgroundImage.src });
103
+ }
104
+ }
105
+ // 3. ボーダー
106
+ if (hasBorder || hasShadow) {
107
+ ctx.slide.addShape(shapeType, {
108
+ x: pxToIn(node.x),
109
+ y: pxToIn(node.y),
110
+ w: pxToIn(node.w),
111
+ h: pxToIn(node.h),
112
+ fill: { type: "none" },
113
+ line: hasBorder
114
+ ? {
115
+ color: border?.color ?? "000000",
116
+ width: border?.width !== undefined ? pxToPt(border.width) : undefined,
117
+ dashType: border?.dashType,
118
+ }
119
+ : { type: "none" },
120
+ rectRadius,
121
+ shadow: shadow ? convertShadow(shadow) : undefined,
122
+ });
123
+ }
44
124
  }
package/dist/types.d.ts CHANGED
@@ -339,6 +339,19 @@ export type FlexDirection = z.infer<typeof flexDirectionSchema>;
339
339
  export type ShapeType = z.infer<typeof shapeTypeSchema>;
340
340
  export type UnderlineStyle = z.infer<typeof underlineStyleSchema>;
341
341
  export type Underline = z.infer<typeof underlineSchema>;
342
+ export declare const backgroundImageSizingSchema: z.ZodEnum<{
343
+ cover: "cover";
344
+ contain: "contain";
345
+ }>;
346
+ export declare const backgroundImageSchema: z.ZodObject<{
347
+ src: z.ZodString;
348
+ sizing: z.ZodOptional<z.ZodEnum<{
349
+ cover: "cover";
350
+ contain: "contain";
351
+ }>>;
352
+ }, z.core.$strip>;
353
+ export type BackgroundImageSizing = z.infer<typeof backgroundImageSizingSchema>;
354
+ export type BackgroundImage = z.infer<typeof backgroundImageSchema>;
342
355
  declare const basePOMNodeSchema: z.ZodObject<{
343
356
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
344
357
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -354,6 +367,13 @@ declare const basePOMNodeSchema: z.ZodObject<{
354
367
  left: z.ZodOptional<z.ZodNumber>;
355
368
  }, z.core.$strip>]>>;
356
369
  backgroundColor: z.ZodOptional<z.ZodString>;
370
+ backgroundImage: z.ZodOptional<z.ZodObject<{
371
+ src: z.ZodString;
372
+ sizing: z.ZodOptional<z.ZodEnum<{
373
+ cover: "cover";
374
+ contain: "contain";
375
+ }>>;
376
+ }, z.core.$strip>>;
357
377
  border: z.ZodOptional<z.ZodObject<{
358
378
  color: z.ZodOptional<z.ZodString>;
359
379
  width: z.ZodOptional<z.ZodNumber>;
@@ -369,6 +389,7 @@ declare const basePOMNodeSchema: z.ZodObject<{
369
389
  }>>;
370
390
  }, z.core.$strip>>;
371
391
  borderRadius: z.ZodOptional<z.ZodNumber>;
392
+ opacity: z.ZodOptional<z.ZodNumber>;
372
393
  }, z.core.$strip>;
373
394
  type BasePOMNode = z.infer<typeof basePOMNodeSchema>;
374
395
  export declare const textNodeSchema: z.ZodObject<{
@@ -386,6 +407,13 @@ export declare const textNodeSchema: z.ZodObject<{
386
407
  left: z.ZodOptional<z.ZodNumber>;
387
408
  }, z.core.$strip>]>>;
388
409
  backgroundColor: z.ZodOptional<z.ZodString>;
410
+ backgroundImage: z.ZodOptional<z.ZodObject<{
411
+ src: z.ZodString;
412
+ sizing: z.ZodOptional<z.ZodEnum<{
413
+ cover: "cover";
414
+ contain: "contain";
415
+ }>>;
416
+ }, z.core.$strip>>;
389
417
  border: z.ZodOptional<z.ZodObject<{
390
418
  color: z.ZodOptional<z.ZodString>;
391
419
  width: z.ZodOptional<z.ZodNumber>;
@@ -401,6 +429,7 @@ export declare const textNodeSchema: z.ZodObject<{
401
429
  }>>;
402
430
  }, z.core.$strip>>;
403
431
  borderRadius: z.ZodOptional<z.ZodNumber>;
432
+ opacity: z.ZodOptional<z.ZodNumber>;
404
433
  type: z.ZodLiteral<"text">;
405
434
  text: z.ZodString;
406
435
  fontPx: z.ZodOptional<z.ZodNumber>;
@@ -465,8 +494,8 @@ export declare const textNodeSchema: z.ZodObject<{
465
494
  }, z.core.$strip>;
466
495
  export declare const imageSizingSchema: z.ZodObject<{
467
496
  type: z.ZodEnum<{
468
- contain: "contain";
469
497
  cover: "cover";
498
+ contain: "contain";
470
499
  crop: "crop";
471
500
  }>;
472
501
  w: z.ZodOptional<z.ZodNumber>;
@@ -489,6 +518,13 @@ export declare const imageNodeSchema: z.ZodObject<{
489
518
  left: z.ZodOptional<z.ZodNumber>;
490
519
  }, z.core.$strip>]>>;
491
520
  backgroundColor: z.ZodOptional<z.ZodString>;
521
+ backgroundImage: z.ZodOptional<z.ZodObject<{
522
+ src: z.ZodString;
523
+ sizing: z.ZodOptional<z.ZodEnum<{
524
+ cover: "cover";
525
+ contain: "contain";
526
+ }>>;
527
+ }, z.core.$strip>>;
492
528
  border: z.ZodOptional<z.ZodObject<{
493
529
  color: z.ZodOptional<z.ZodString>;
494
530
  width: z.ZodOptional<z.ZodNumber>;
@@ -504,12 +540,13 @@ export declare const imageNodeSchema: z.ZodObject<{
504
540
  }>>;
505
541
  }, z.core.$strip>>;
506
542
  borderRadius: z.ZodOptional<z.ZodNumber>;
543
+ opacity: z.ZodOptional<z.ZodNumber>;
507
544
  type: z.ZodLiteral<"image">;
508
545
  src: z.ZodString;
509
546
  sizing: z.ZodOptional<z.ZodObject<{
510
547
  type: z.ZodEnum<{
511
- contain: "contain";
512
548
  cover: "cover";
549
+ contain: "contain";
513
550
  crop: "crop";
514
551
  }>;
515
552
  w: z.ZodOptional<z.ZodNumber>;
@@ -517,6 +554,17 @@ export declare const imageNodeSchema: z.ZodObject<{
517
554
  x: z.ZodOptional<z.ZodNumber>;
518
555
  y: z.ZodOptional<z.ZodNumber>;
519
556
  }, z.core.$strip>>;
557
+ shadow: z.ZodOptional<z.ZodObject<{
558
+ type: z.ZodOptional<z.ZodEnum<{
559
+ outer: "outer";
560
+ inner: "inner";
561
+ }>>;
562
+ opacity: z.ZodOptional<z.ZodNumber>;
563
+ blur: z.ZodOptional<z.ZodNumber>;
564
+ angle: z.ZodOptional<z.ZodNumber>;
565
+ offset: z.ZodOptional<z.ZodNumber>;
566
+ color: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>>;
520
568
  }, z.core.$strip>;
521
569
  export declare const tableCellSchema: z.ZodObject<{
522
570
  text: z.ZodString;
@@ -609,6 +657,13 @@ export declare const tableNodeSchema: z.ZodObject<{
609
657
  left: z.ZodOptional<z.ZodNumber>;
610
658
  }, z.core.$strip>]>>;
611
659
  backgroundColor: z.ZodOptional<z.ZodString>;
660
+ backgroundImage: z.ZodOptional<z.ZodObject<{
661
+ src: z.ZodString;
662
+ sizing: z.ZodOptional<z.ZodEnum<{
663
+ cover: "cover";
664
+ contain: "contain";
665
+ }>>;
666
+ }, z.core.$strip>>;
612
667
  border: z.ZodOptional<z.ZodObject<{
613
668
  color: z.ZodOptional<z.ZodString>;
614
669
  width: z.ZodOptional<z.ZodNumber>;
@@ -624,6 +679,7 @@ export declare const tableNodeSchema: z.ZodObject<{
624
679
  }>>;
625
680
  }, z.core.$strip>>;
626
681
  borderRadius: z.ZodOptional<z.ZodNumber>;
682
+ opacity: z.ZodOptional<z.ZodNumber>;
627
683
  type: z.ZodLiteral<"table">;
628
684
  columns: z.ZodArray<z.ZodObject<{
629
685
  width: z.ZodOptional<z.ZodNumber>;
@@ -683,6 +739,13 @@ export declare const shapeNodeSchema: z.ZodObject<{
683
739
  left: z.ZodOptional<z.ZodNumber>;
684
740
  }, z.core.$strip>]>>;
685
741
  backgroundColor: z.ZodOptional<z.ZodString>;
742
+ backgroundImage: z.ZodOptional<z.ZodObject<{
743
+ src: z.ZodString;
744
+ sizing: z.ZodOptional<z.ZodEnum<{
745
+ cover: "cover";
746
+ contain: "contain";
747
+ }>>;
748
+ }, z.core.$strip>>;
686
749
  border: z.ZodOptional<z.ZodObject<{
687
750
  color: z.ZodOptional<z.ZodString>;
688
751
  width: z.ZodOptional<z.ZodNumber>;
@@ -698,6 +761,7 @@ export declare const shapeNodeSchema: z.ZodObject<{
698
761
  }>>;
699
762
  }, z.core.$strip>>;
700
763
  borderRadius: z.ZodOptional<z.ZodNumber>;
764
+ opacity: z.ZodOptional<z.ZodNumber>;
701
765
  type: z.ZodLiteral<"shape">;
702
766
  shapeType: z.ZodEnum<{
703
767
  accentBorderCallout1: "accentBorderCallout1";
@@ -974,6 +1038,13 @@ export declare const chartNodeSchema: z.ZodObject<{
974
1038
  left: z.ZodOptional<z.ZodNumber>;
975
1039
  }, z.core.$strip>]>>;
976
1040
  backgroundColor: z.ZodOptional<z.ZodString>;
1041
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1042
+ src: z.ZodString;
1043
+ sizing: z.ZodOptional<z.ZodEnum<{
1044
+ cover: "cover";
1045
+ contain: "contain";
1046
+ }>>;
1047
+ }, z.core.$strip>>;
977
1048
  border: z.ZodOptional<z.ZodObject<{
978
1049
  color: z.ZodOptional<z.ZodString>;
979
1050
  width: z.ZodOptional<z.ZodNumber>;
@@ -989,6 +1060,7 @@ export declare const chartNodeSchema: z.ZodObject<{
989
1060
  }>>;
990
1061
  }, z.core.$strip>>;
991
1062
  borderRadius: z.ZodOptional<z.ZodNumber>;
1063
+ opacity: z.ZodOptional<z.ZodNumber>;
992
1064
  type: z.ZodLiteral<"chart">;
993
1065
  chartType: z.ZodEnum<{
994
1066
  line: "line";
@@ -1050,6 +1122,13 @@ export declare const timelineNodeSchema: z.ZodObject<{
1050
1122
  left: z.ZodOptional<z.ZodNumber>;
1051
1123
  }, z.core.$strip>]>>;
1052
1124
  backgroundColor: z.ZodOptional<z.ZodString>;
1125
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1126
+ src: z.ZodString;
1127
+ sizing: z.ZodOptional<z.ZodEnum<{
1128
+ cover: "cover";
1129
+ contain: "contain";
1130
+ }>>;
1131
+ }, z.core.$strip>>;
1053
1132
  border: z.ZodOptional<z.ZodObject<{
1054
1133
  color: z.ZodOptional<z.ZodString>;
1055
1134
  width: z.ZodOptional<z.ZodNumber>;
@@ -1065,6 +1144,7 @@ export declare const timelineNodeSchema: z.ZodObject<{
1065
1144
  }>>;
1066
1145
  }, z.core.$strip>>;
1067
1146
  borderRadius: z.ZodOptional<z.ZodNumber>;
1147
+ opacity: z.ZodOptional<z.ZodNumber>;
1068
1148
  type: z.ZodLiteral<"timeline">;
1069
1149
  direction: z.ZodOptional<z.ZodEnum<{
1070
1150
  horizontal: "horizontal";
@@ -1111,6 +1191,13 @@ export declare const matrixNodeSchema: z.ZodObject<{
1111
1191
  left: z.ZodOptional<z.ZodNumber>;
1112
1192
  }, z.core.$strip>]>>;
1113
1193
  backgroundColor: z.ZodOptional<z.ZodString>;
1194
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1195
+ src: z.ZodString;
1196
+ sizing: z.ZodOptional<z.ZodEnum<{
1197
+ cover: "cover";
1198
+ contain: "contain";
1199
+ }>>;
1200
+ }, z.core.$strip>>;
1114
1201
  border: z.ZodOptional<z.ZodObject<{
1115
1202
  color: z.ZodOptional<z.ZodString>;
1116
1203
  width: z.ZodOptional<z.ZodNumber>;
@@ -1126,6 +1213,7 @@ export declare const matrixNodeSchema: z.ZodObject<{
1126
1213
  }>>;
1127
1214
  }, z.core.$strip>>;
1128
1215
  borderRadius: z.ZodOptional<z.ZodNumber>;
1216
+ opacity: z.ZodOptional<z.ZodNumber>;
1129
1217
  type: z.ZodLiteral<"matrix">;
1130
1218
  axes: z.ZodObject<{
1131
1219
  x: z.ZodString;
@@ -1182,6 +1270,13 @@ export declare const treeNodeSchema: z.ZodObject<{
1182
1270
  left: z.ZodOptional<z.ZodNumber>;
1183
1271
  }, z.core.$strip>]>>;
1184
1272
  backgroundColor: z.ZodOptional<z.ZodString>;
1273
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1274
+ src: z.ZodString;
1275
+ sizing: z.ZodOptional<z.ZodEnum<{
1276
+ cover: "cover";
1277
+ contain: "contain";
1278
+ }>>;
1279
+ }, z.core.$strip>>;
1185
1280
  border: z.ZodOptional<z.ZodObject<{
1186
1281
  color: z.ZodOptional<z.ZodString>;
1187
1282
  width: z.ZodOptional<z.ZodNumber>;
@@ -1197,6 +1292,7 @@ export declare const treeNodeSchema: z.ZodObject<{
1197
1292
  }>>;
1198
1293
  }, z.core.$strip>>;
1199
1294
  borderRadius: z.ZodOptional<z.ZodNumber>;
1295
+ opacity: z.ZodOptional<z.ZodNumber>;
1200
1296
  type: z.ZodLiteral<"tree">;
1201
1297
  layout: z.ZodOptional<z.ZodEnum<{
1202
1298
  horizontal: "horizontal";
@@ -1245,6 +1341,13 @@ export declare const processArrowNodeSchema: z.ZodObject<{
1245
1341
  left: z.ZodOptional<z.ZodNumber>;
1246
1342
  }, z.core.$strip>]>>;
1247
1343
  backgroundColor: z.ZodOptional<z.ZodString>;
1344
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1345
+ src: z.ZodString;
1346
+ sizing: z.ZodOptional<z.ZodEnum<{
1347
+ cover: "cover";
1348
+ contain: "contain";
1349
+ }>>;
1350
+ }, z.core.$strip>>;
1248
1351
  border: z.ZodOptional<z.ZodObject<{
1249
1352
  color: z.ZodOptional<z.ZodString>;
1250
1353
  width: z.ZodOptional<z.ZodNumber>;
@@ -1260,6 +1363,7 @@ export declare const processArrowNodeSchema: z.ZodObject<{
1260
1363
  }>>;
1261
1364
  }, z.core.$strip>>;
1262
1365
  borderRadius: z.ZodOptional<z.ZodNumber>;
1366
+ opacity: z.ZodOptional<z.ZodNumber>;
1263
1367
  type: z.ZodLiteral<"processArrow">;
1264
1368
  direction: z.ZodOptional<z.ZodEnum<{
1265
1369
  horizontal: "horizontal";
@@ -1375,6 +1479,13 @@ export declare const flowNodeSchema: z.ZodObject<{
1375
1479
  left: z.ZodOptional<z.ZodNumber>;
1376
1480
  }, z.core.$strip>]>>;
1377
1481
  backgroundColor: z.ZodOptional<z.ZodString>;
1482
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1483
+ src: z.ZodString;
1484
+ sizing: z.ZodOptional<z.ZodEnum<{
1485
+ cover: "cover";
1486
+ contain: "contain";
1487
+ }>>;
1488
+ }, z.core.$strip>>;
1378
1489
  border: z.ZodOptional<z.ZodObject<{
1379
1490
  color: z.ZodOptional<z.ZodString>;
1380
1491
  width: z.ZodOptional<z.ZodNumber>;
@@ -1390,6 +1501,7 @@ export declare const flowNodeSchema: z.ZodObject<{
1390
1501
  }>>;
1391
1502
  }, z.core.$strip>>;
1392
1503
  borderRadius: z.ZodOptional<z.ZodNumber>;
1504
+ opacity: z.ZodOptional<z.ZodNumber>;
1393
1505
  type: z.ZodLiteral<"flow">;
1394
1506
  direction: z.ZodOptional<z.ZodEnum<{
1395
1507
  horizontal: "horizontal";
@@ -1488,6 +1600,13 @@ export declare const lineNodeSchema: z.ZodObject<{
1488
1600
  left: z.ZodOptional<z.ZodNumber>;
1489
1601
  }, z.core.$strip>]>>;
1490
1602
  backgroundColor: z.ZodOptional<z.ZodString>;
1603
+ backgroundImage: z.ZodOptional<z.ZodObject<{
1604
+ src: z.ZodString;
1605
+ sizing: z.ZodOptional<z.ZodEnum<{
1606
+ cover: "cover";
1607
+ contain: "contain";
1608
+ }>>;
1609
+ }, z.core.$strip>>;
1491
1610
  border: z.ZodOptional<z.ZodObject<{
1492
1611
  color: z.ZodOptional<z.ZodString>;
1493
1612
  width: z.ZodOptional<z.ZodNumber>;
@@ -1503,6 +1622,7 @@ export declare const lineNodeSchema: z.ZodObject<{
1503
1622
  }>>;
1504
1623
  }, z.core.$strip>>;
1505
1624
  borderRadius: z.ZodOptional<z.ZodNumber>;
1625
+ opacity: z.ZodOptional<z.ZodNumber>;
1506
1626
  type: z.ZodLiteral<"line">;
1507
1627
  x1: z.ZodNumber;
1508
1628
  y1: z.ZodNumber;
@@ -1548,6 +1668,7 @@ export type LineNode = z.infer<typeof lineNodeSchema>;
1548
1668
  export type BoxNode = BasePOMNode & {
1549
1669
  type: "box";
1550
1670
  children: POMNode;
1671
+ shadow?: ShadowStyle;
1551
1672
  };
1552
1673
  export type VStackNode = BasePOMNode & {
1553
1674
  type: "vstack";
@@ -1800,6 +1921,8 @@ export declare const slideMasterBackgroundSchema: z.ZodUnion<readonly [z.ZodObje
1800
1921
  path: z.ZodString;
1801
1922
  }, z.core.$strip>, z.ZodObject<{
1802
1923
  data: z.ZodString;
1924
+ }, z.core.$strip>, z.ZodObject<{
1925
+ image: z.ZodString;
1803
1926
  }, z.core.$strip>]>;
1804
1927
  export declare const slideMasterMarginSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1805
1928
  top: z.ZodOptional<z.ZodNumber>;
@@ -1815,6 +1938,8 @@ export declare const slideMasterOptionsSchema: z.ZodObject<{
1815
1938
  path: z.ZodString;
1816
1939
  }, z.core.$strip>, z.ZodObject<{
1817
1940
  data: z.ZodString;
1941
+ }, z.core.$strip>, z.ZodObject<{
1942
+ image: z.ZodString;
1818
1943
  }, z.core.$strip>]>>;
1819
1944
  margin: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1820
1945
  top: z.ZodOptional<z.ZodNumber>;
@@ -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,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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BAK7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAQnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;mBAKtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;mBAQlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
package/dist/types.js CHANGED
@@ -279,6 +279,12 @@ export const shapeTypeSchema = z.enum([
279
279
  "wedgeRectCallout",
280
280
  "wedgeRoundRectCallout",
281
281
  ]);
282
+ // ===== Background Image =====
283
+ export const backgroundImageSizingSchema = z.enum(["cover", "contain"]);
284
+ export const backgroundImageSchema = z.object({
285
+ src: z.string(),
286
+ sizing: backgroundImageSizingSchema.optional(),
287
+ });
282
288
  // ===== Base Node =====
283
289
  const basePOMNodeSchema = z.object({
284
290
  yogaNode: z.custom().optional(),
@@ -290,8 +296,10 @@ const basePOMNodeSchema = z.object({
290
296
  maxH: z.number().optional(),
291
297
  padding: paddingSchema.optional(),
292
298
  backgroundColor: z.string().optional(),
299
+ backgroundImage: backgroundImageSchema.optional(),
293
300
  border: borderStyleSchema.optional(),
294
301
  borderRadius: z.number().optional(),
302
+ opacity: z.number().min(0).max(1).optional(),
295
303
  });
296
304
  // ===== Non-recursive Node Types =====
297
305
  export const textNodeSchema = basePOMNodeSchema.extend({
@@ -320,6 +328,7 @@ export const imageNodeSchema = basePOMNodeSchema.extend({
320
328
  type: z.literal("image"),
321
329
  src: z.string(),
322
330
  sizing: imageSizingSchema.optional(),
331
+ shadow: shadowStyleSchema.optional(),
323
332
  });
324
333
  export const tableCellSchema = z.object({
325
334
  text: z.string(),
@@ -544,6 +553,7 @@ export const lineNodeSchema = basePOMNodeSchema.extend({
544
553
  const boxNodeSchemaBase = basePOMNodeSchema.extend({
545
554
  type: z.literal("box"),
546
555
  children: z.lazy(() => pomNodeSchema),
556
+ shadow: shadowStyleSchema.optional(),
547
557
  });
548
558
  const vStackNodeSchemaBase = basePOMNodeSchema.extend({
549
559
  type: z.literal("vstack"),
@@ -689,6 +699,7 @@ export const slideMasterBackgroundSchema = z.union([
689
699
  z.object({ color: z.string() }),
690
700
  z.object({ path: z.string() }),
691
701
  z.object({ data: z.string() }),
702
+ z.object({ image: z.string() }),
692
703
  ]);
693
704
  export const slideMasterMarginSchema = z.union([
694
705
  z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirokisakabe/pom",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "PowerPoint Object Model - A declarative TypeScript library for creating PowerPoint presentations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",