@hirokisakabe/pom 0.3.0 → 1.1.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/dist/types.d.ts CHANGED
@@ -1245,6 +1245,106 @@ export type FlowNodeItem = z.infer<typeof flowNodeItemSchema>;
1245
1245
  export type FlowConnection = z.infer<typeof flowConnectionSchema>;
1246
1246
  export type FlowConnectorStyle = z.infer<typeof flowConnectorStyleSchema>;
1247
1247
  export type FlowNode = z.infer<typeof flowNodeSchema>;
1248
+ export declare const lineArrowTypeSchema: z.ZodEnum<{
1249
+ diamond: "diamond";
1250
+ triangle: "triangle";
1251
+ none: "none";
1252
+ arrow: "arrow";
1253
+ oval: "oval";
1254
+ stealth: "stealth";
1255
+ }>;
1256
+ export declare const lineArrowOptionsSchema: z.ZodObject<{
1257
+ type: z.ZodOptional<z.ZodEnum<{
1258
+ diamond: "diamond";
1259
+ triangle: "triangle";
1260
+ none: "none";
1261
+ arrow: "arrow";
1262
+ oval: "oval";
1263
+ stealth: "stealth";
1264
+ }>>;
1265
+ }, z.core.$strip>;
1266
+ export declare const lineArrowSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1267
+ type: z.ZodOptional<z.ZodEnum<{
1268
+ diamond: "diamond";
1269
+ triangle: "triangle";
1270
+ none: "none";
1271
+ arrow: "arrow";
1272
+ oval: "oval";
1273
+ stealth: "stealth";
1274
+ }>>;
1275
+ }, z.core.$strip>]>;
1276
+ export declare const lineNodeSchema: z.ZodObject<{
1277
+ yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
1278
+ w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
1279
+ h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
1280
+ minW: z.ZodOptional<z.ZodNumber>;
1281
+ maxW: z.ZodOptional<z.ZodNumber>;
1282
+ minH: z.ZodOptional<z.ZodNumber>;
1283
+ maxH: z.ZodOptional<z.ZodNumber>;
1284
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1285
+ top: z.ZodOptional<z.ZodNumber>;
1286
+ right: z.ZodOptional<z.ZodNumber>;
1287
+ bottom: z.ZodOptional<z.ZodNumber>;
1288
+ left: z.ZodOptional<z.ZodNumber>;
1289
+ }, z.core.$strip>]>>;
1290
+ backgroundColor: z.ZodOptional<z.ZodString>;
1291
+ border: z.ZodOptional<z.ZodObject<{
1292
+ color: z.ZodOptional<z.ZodString>;
1293
+ width: z.ZodOptional<z.ZodNumber>;
1294
+ dashType: z.ZodOptional<z.ZodEnum<{
1295
+ solid: "solid";
1296
+ dash: "dash";
1297
+ dashDot: "dashDot";
1298
+ lgDash: "lgDash";
1299
+ lgDashDot: "lgDashDot";
1300
+ lgDashDotDot: "lgDashDotDot";
1301
+ sysDash: "sysDash";
1302
+ sysDot: "sysDot";
1303
+ }>>;
1304
+ }, z.core.$strip>>;
1305
+ borderRadius: z.ZodOptional<z.ZodNumber>;
1306
+ type: z.ZodLiteral<"line">;
1307
+ x1: z.ZodNumber;
1308
+ y1: z.ZodNumber;
1309
+ x2: z.ZodNumber;
1310
+ y2: z.ZodNumber;
1311
+ color: z.ZodOptional<z.ZodString>;
1312
+ lineWidth: z.ZodOptional<z.ZodNumber>;
1313
+ dashType: z.ZodOptional<z.ZodEnum<{
1314
+ solid: "solid";
1315
+ dash: "dash";
1316
+ dashDot: "dashDot";
1317
+ lgDash: "lgDash";
1318
+ lgDashDot: "lgDashDot";
1319
+ lgDashDotDot: "lgDashDotDot";
1320
+ sysDash: "sysDash";
1321
+ sysDot: "sysDot";
1322
+ }>>;
1323
+ beginArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1324
+ type: z.ZodOptional<z.ZodEnum<{
1325
+ diamond: "diamond";
1326
+ triangle: "triangle";
1327
+ none: "none";
1328
+ arrow: "arrow";
1329
+ oval: "oval";
1330
+ stealth: "stealth";
1331
+ }>>;
1332
+ }, z.core.$strip>]>>;
1333
+ endArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1334
+ type: z.ZodOptional<z.ZodEnum<{
1335
+ diamond: "diamond";
1336
+ triangle: "triangle";
1337
+ none: "none";
1338
+ arrow: "arrow";
1339
+ oval: "oval";
1340
+ stealth: "stealth";
1341
+ }>>;
1342
+ }, z.core.$strip>]>>;
1343
+ }, z.core.$strip>;
1344
+ export type LineArrowType = z.infer<typeof lineArrowTypeSchema>;
1345
+ export type LineArrowOptions = z.infer<typeof lineArrowOptionsSchema>;
1346
+ export type LineArrow = z.infer<typeof lineArrowSchema>;
1347
+ export type LineNode = z.infer<typeof lineNodeSchema>;
1248
1348
  export type BoxNode = BasePOMNode & {
1249
1349
  type: "box";
1250
1350
  children: POMNode;
@@ -1263,10 +1363,19 @@ export type HStackNode = BasePOMNode & {
1263
1363
  alignItems?: AlignItems;
1264
1364
  justifyContent?: JustifyContent;
1265
1365
  };
1266
- export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode;
1366
+ export type LayerChild = POMNode & {
1367
+ x: number;
1368
+ y: number;
1369
+ };
1370
+ export type LayerNode = BasePOMNode & {
1371
+ type: "layer";
1372
+ children: LayerChild[];
1373
+ };
1374
+ export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode | LineNode | LayerNode;
1267
1375
  export declare const boxNodeSchema: z.ZodType<BoxNode>;
1268
1376
  export declare const vStackNodeSchema: z.ZodType<VStackNode>;
1269
1377
  export declare const hStackNodeSchema: z.ZodType<HStackNode>;
1378
+ export declare const layerNodeSchema: z.ZodType<LayerNode>;
1270
1379
  export declare const pomNodeSchema: z.ZodType<POMNode>;
1271
1380
  declare const positionedBaseSchema: z.ZodObject<{
1272
1381
  x: z.ZodNumber;
@@ -1275,6 +1384,10 @@ declare const positionedBaseSchema: z.ZodObject<{
1275
1384
  h: z.ZodNumber;
1276
1385
  }, z.core.$strip>;
1277
1386
  type PositionedBase = z.infer<typeof positionedBaseSchema>;
1387
+ export type PositionedLayerChild = PositionedNode & {
1388
+ x: number;
1389
+ y: number;
1390
+ };
1278
1391
  export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & PositionedBase & {
1279
1392
  imageData?: string;
1280
1393
  }) | (TableNode & PositionedBase) | (BoxNode & PositionedBase & {
@@ -1283,28 +1396,272 @@ export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & Position
1283
1396
  children: PositionedNode[];
1284
1397
  }) | (HStackNode & PositionedBase & {
1285
1398
  children: PositionedNode[];
1286
- }) | (ShapeNode & PositionedBase) | (ChartNode & PositionedBase) | (TimelineNode & PositionedBase) | (MatrixNode & PositionedBase) | (TreeNode & PositionedBase) | (FlowNode & PositionedBase) | (ProcessArrowNode & PositionedBase);
1399
+ }) | (ShapeNode & PositionedBase) | (ChartNode & PositionedBase) | (TimelineNode & PositionedBase) | (MatrixNode & PositionedBase) | (TreeNode & PositionedBase) | (FlowNode & PositionedBase) | (ProcessArrowNode & PositionedBase) | (LineNode & PositionedBase) | (LayerNode & PositionedBase & {
1400
+ children: PositionedLayerChild[];
1401
+ });
1287
1402
  export declare const positionedNodeSchema: z.ZodType<PositionedNode>;
1288
- export declare const pageNumberPositionSchema: z.ZodEnum<{
1289
- right: "right";
1290
- left: "left";
1291
- center: "center";
1292
- }>;
1293
- export declare const masterSlideOptionsSchema: z.ZodObject<{
1294
- header: z.ZodOptional<z.ZodLazy<z.ZodType<POMNode, unknown, z.core.$ZodTypeInternals<POMNode, unknown>>>>;
1295
- footer: z.ZodOptional<z.ZodLazy<z.ZodType<POMNode, unknown, z.core.$ZodTypeInternals<POMNode, unknown>>>>;
1296
- pageNumber: z.ZodOptional<z.ZodObject<{
1297
- position: z.ZodEnum<{
1403
+ export declare const masterTextObjectSchema: z.ZodObject<{
1404
+ type: z.ZodLiteral<"text">;
1405
+ text: z.ZodString;
1406
+ x: z.ZodNumber;
1407
+ y: z.ZodNumber;
1408
+ w: z.ZodNumber;
1409
+ h: z.ZodNumber;
1410
+ fontPx: z.ZodOptional<z.ZodNumber>;
1411
+ fontFamily: z.ZodOptional<z.ZodString>;
1412
+ color: z.ZodOptional<z.ZodString>;
1413
+ bold: z.ZodOptional<z.ZodBoolean>;
1414
+ alignText: z.ZodOptional<z.ZodEnum<{
1415
+ right: "right";
1416
+ left: "left";
1417
+ center: "center";
1418
+ }>>;
1419
+ }, z.core.$strip>;
1420
+ export declare const masterImageObjectSchema: z.ZodObject<{
1421
+ type: z.ZodLiteral<"image">;
1422
+ src: z.ZodString;
1423
+ x: z.ZodNumber;
1424
+ y: z.ZodNumber;
1425
+ w: z.ZodNumber;
1426
+ h: z.ZodNumber;
1427
+ }, z.core.$strip>;
1428
+ export declare const masterRectObjectSchema: z.ZodObject<{
1429
+ type: z.ZodLiteral<"rect">;
1430
+ x: z.ZodNumber;
1431
+ y: z.ZodNumber;
1432
+ w: z.ZodNumber;
1433
+ h: z.ZodNumber;
1434
+ fill: z.ZodOptional<z.ZodObject<{
1435
+ color: z.ZodOptional<z.ZodString>;
1436
+ transparency: z.ZodOptional<z.ZodNumber>;
1437
+ }, z.core.$strip>>;
1438
+ border: z.ZodOptional<z.ZodObject<{
1439
+ color: z.ZodOptional<z.ZodString>;
1440
+ width: z.ZodOptional<z.ZodNumber>;
1441
+ dashType: z.ZodOptional<z.ZodEnum<{
1442
+ solid: "solid";
1443
+ dash: "dash";
1444
+ dashDot: "dashDot";
1445
+ lgDash: "lgDash";
1446
+ lgDashDot: "lgDashDot";
1447
+ lgDashDotDot: "lgDashDotDot";
1448
+ sysDash: "sysDash";
1449
+ sysDot: "sysDot";
1450
+ }>>;
1451
+ }, z.core.$strip>>;
1452
+ }, z.core.$strip>;
1453
+ export declare const masterLineObjectSchema: z.ZodObject<{
1454
+ type: z.ZodLiteral<"line">;
1455
+ x: z.ZodNumber;
1456
+ y: z.ZodNumber;
1457
+ w: z.ZodNumber;
1458
+ h: z.ZodNumber;
1459
+ line: z.ZodOptional<z.ZodObject<{
1460
+ color: z.ZodOptional<z.ZodString>;
1461
+ width: z.ZodOptional<z.ZodNumber>;
1462
+ dashType: z.ZodOptional<z.ZodEnum<{
1463
+ solid: "solid";
1464
+ dash: "dash";
1465
+ dashDot: "dashDot";
1466
+ lgDash: "lgDash";
1467
+ lgDashDot: "lgDashDot";
1468
+ lgDashDotDot: "lgDashDotDot";
1469
+ sysDash: "sysDash";
1470
+ sysDot: "sysDot";
1471
+ }>>;
1472
+ }, z.core.$strip>>;
1473
+ }, z.core.$strip>;
1474
+ export declare const masterObjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1475
+ type: z.ZodLiteral<"text">;
1476
+ text: z.ZodString;
1477
+ x: z.ZodNumber;
1478
+ y: z.ZodNumber;
1479
+ w: z.ZodNumber;
1480
+ h: z.ZodNumber;
1481
+ fontPx: z.ZodOptional<z.ZodNumber>;
1482
+ fontFamily: z.ZodOptional<z.ZodString>;
1483
+ color: z.ZodOptional<z.ZodString>;
1484
+ bold: z.ZodOptional<z.ZodBoolean>;
1485
+ alignText: z.ZodOptional<z.ZodEnum<{
1486
+ right: "right";
1487
+ left: "left";
1488
+ center: "center";
1489
+ }>>;
1490
+ }, z.core.$strip>, z.ZodObject<{
1491
+ type: z.ZodLiteral<"image">;
1492
+ src: z.ZodString;
1493
+ x: z.ZodNumber;
1494
+ y: z.ZodNumber;
1495
+ w: z.ZodNumber;
1496
+ h: z.ZodNumber;
1497
+ }, z.core.$strip>, z.ZodObject<{
1498
+ type: z.ZodLiteral<"rect">;
1499
+ x: z.ZodNumber;
1500
+ y: z.ZodNumber;
1501
+ w: z.ZodNumber;
1502
+ h: z.ZodNumber;
1503
+ fill: z.ZodOptional<z.ZodObject<{
1504
+ color: z.ZodOptional<z.ZodString>;
1505
+ transparency: z.ZodOptional<z.ZodNumber>;
1506
+ }, z.core.$strip>>;
1507
+ border: z.ZodOptional<z.ZodObject<{
1508
+ color: z.ZodOptional<z.ZodString>;
1509
+ width: z.ZodOptional<z.ZodNumber>;
1510
+ dashType: z.ZodOptional<z.ZodEnum<{
1511
+ solid: "solid";
1512
+ dash: "dash";
1513
+ dashDot: "dashDot";
1514
+ lgDash: "lgDash";
1515
+ lgDashDot: "lgDashDot";
1516
+ lgDashDotDot: "lgDashDotDot";
1517
+ sysDash: "sysDash";
1518
+ sysDot: "sysDot";
1519
+ }>>;
1520
+ }, z.core.$strip>>;
1521
+ }, z.core.$strip>, z.ZodObject<{
1522
+ type: z.ZodLiteral<"line">;
1523
+ x: z.ZodNumber;
1524
+ y: z.ZodNumber;
1525
+ w: z.ZodNumber;
1526
+ h: z.ZodNumber;
1527
+ line: z.ZodOptional<z.ZodObject<{
1528
+ color: z.ZodOptional<z.ZodString>;
1529
+ width: z.ZodOptional<z.ZodNumber>;
1530
+ dashType: z.ZodOptional<z.ZodEnum<{
1531
+ solid: "solid";
1532
+ dash: "dash";
1533
+ dashDot: "dashDot";
1534
+ lgDash: "lgDash";
1535
+ lgDashDot: "lgDashDot";
1536
+ lgDashDotDot: "lgDashDotDot";
1537
+ sysDash: "sysDash";
1538
+ sysDot: "sysDot";
1539
+ }>>;
1540
+ }, z.core.$strip>>;
1541
+ }, z.core.$strip>], "type">;
1542
+ export declare const slideNumberOptionsSchema: z.ZodObject<{
1543
+ x: z.ZodNumber;
1544
+ y: z.ZodNumber;
1545
+ w: z.ZodOptional<z.ZodNumber>;
1546
+ h: z.ZodOptional<z.ZodNumber>;
1547
+ fontPx: z.ZodOptional<z.ZodNumber>;
1548
+ fontFamily: z.ZodOptional<z.ZodString>;
1549
+ color: z.ZodOptional<z.ZodString>;
1550
+ }, z.core.$strip>;
1551
+ export declare const slideMasterBackgroundSchema: z.ZodUnion<readonly [z.ZodObject<{
1552
+ color: z.ZodString;
1553
+ }, z.core.$strip>, z.ZodObject<{
1554
+ path: z.ZodString;
1555
+ }, z.core.$strip>, z.ZodObject<{
1556
+ data: z.ZodString;
1557
+ }, z.core.$strip>]>;
1558
+ export declare const slideMasterMarginSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1559
+ top: z.ZodOptional<z.ZodNumber>;
1560
+ right: z.ZodOptional<z.ZodNumber>;
1561
+ bottom: z.ZodOptional<z.ZodNumber>;
1562
+ left: z.ZodOptional<z.ZodNumber>;
1563
+ }, z.core.$strip>]>;
1564
+ export declare const slideMasterOptionsSchema: z.ZodObject<{
1565
+ title: z.ZodOptional<z.ZodString>;
1566
+ background: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1567
+ color: z.ZodString;
1568
+ }, z.core.$strip>, z.ZodObject<{
1569
+ path: z.ZodString;
1570
+ }, z.core.$strip>, z.ZodObject<{
1571
+ data: z.ZodString;
1572
+ }, z.core.$strip>]>>;
1573
+ margin: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1574
+ top: z.ZodOptional<z.ZodNumber>;
1575
+ right: z.ZodOptional<z.ZodNumber>;
1576
+ bottom: z.ZodOptional<z.ZodNumber>;
1577
+ left: z.ZodOptional<z.ZodNumber>;
1578
+ }, z.core.$strip>]>>;
1579
+ objects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1580
+ type: z.ZodLiteral<"text">;
1581
+ text: z.ZodString;
1582
+ x: z.ZodNumber;
1583
+ y: z.ZodNumber;
1584
+ w: z.ZodNumber;
1585
+ h: z.ZodNumber;
1586
+ fontPx: z.ZodOptional<z.ZodNumber>;
1587
+ fontFamily: z.ZodOptional<z.ZodString>;
1588
+ color: z.ZodOptional<z.ZodString>;
1589
+ bold: z.ZodOptional<z.ZodBoolean>;
1590
+ alignText: z.ZodOptional<z.ZodEnum<{
1298
1591
  right: "right";
1299
1592
  left: "left";
1300
1593
  center: "center";
1301
- }>;
1302
- }, z.core.$strip>>;
1303
- date: z.ZodOptional<z.ZodObject<{
1304
- value: z.ZodString;
1594
+ }>>;
1595
+ }, z.core.$strip>, z.ZodObject<{
1596
+ type: z.ZodLiteral<"image">;
1597
+ src: z.ZodString;
1598
+ x: z.ZodNumber;
1599
+ y: z.ZodNumber;
1600
+ w: z.ZodNumber;
1601
+ h: z.ZodNumber;
1602
+ }, z.core.$strip>, z.ZodObject<{
1603
+ type: z.ZodLiteral<"rect">;
1604
+ x: z.ZodNumber;
1605
+ y: z.ZodNumber;
1606
+ w: z.ZodNumber;
1607
+ h: z.ZodNumber;
1608
+ fill: z.ZodOptional<z.ZodObject<{
1609
+ color: z.ZodOptional<z.ZodString>;
1610
+ transparency: z.ZodOptional<z.ZodNumber>;
1611
+ }, z.core.$strip>>;
1612
+ border: z.ZodOptional<z.ZodObject<{
1613
+ color: z.ZodOptional<z.ZodString>;
1614
+ width: z.ZodOptional<z.ZodNumber>;
1615
+ dashType: z.ZodOptional<z.ZodEnum<{
1616
+ solid: "solid";
1617
+ dash: "dash";
1618
+ dashDot: "dashDot";
1619
+ lgDash: "lgDash";
1620
+ lgDashDot: "lgDashDot";
1621
+ lgDashDotDot: "lgDashDotDot";
1622
+ sysDash: "sysDash";
1623
+ sysDot: "sysDot";
1624
+ }>>;
1625
+ }, z.core.$strip>>;
1626
+ }, z.core.$strip>, z.ZodObject<{
1627
+ type: z.ZodLiteral<"line">;
1628
+ x: z.ZodNumber;
1629
+ y: z.ZodNumber;
1630
+ w: z.ZodNumber;
1631
+ h: z.ZodNumber;
1632
+ line: z.ZodOptional<z.ZodObject<{
1633
+ color: z.ZodOptional<z.ZodString>;
1634
+ width: z.ZodOptional<z.ZodNumber>;
1635
+ dashType: z.ZodOptional<z.ZodEnum<{
1636
+ solid: "solid";
1637
+ dash: "dash";
1638
+ dashDot: "dashDot";
1639
+ lgDash: "lgDash";
1640
+ lgDashDot: "lgDashDot";
1641
+ lgDashDotDot: "lgDashDotDot";
1642
+ sysDash: "sysDash";
1643
+ sysDot: "sysDot";
1644
+ }>>;
1645
+ }, z.core.$strip>>;
1646
+ }, z.core.$strip>], "type">>>;
1647
+ slideNumber: z.ZodOptional<z.ZodObject<{
1648
+ x: z.ZodNumber;
1649
+ y: z.ZodNumber;
1650
+ w: z.ZodOptional<z.ZodNumber>;
1651
+ h: z.ZodOptional<z.ZodNumber>;
1652
+ fontPx: z.ZodOptional<z.ZodNumber>;
1653
+ fontFamily: z.ZodOptional<z.ZodString>;
1654
+ color: z.ZodOptional<z.ZodString>;
1305
1655
  }, z.core.$strip>>;
1306
1656
  }, z.core.$strip>;
1307
- export type PageNumberPosition = z.infer<typeof pageNumberPositionSchema>;
1308
- export type MasterSlideOptions = z.infer<typeof masterSlideOptionsSchema>;
1657
+ export type MasterTextObject = z.infer<typeof masterTextObjectSchema>;
1658
+ export type MasterImageObject = z.infer<typeof masterImageObjectSchema>;
1659
+ export type MasterRectObject = z.infer<typeof masterRectObjectSchema>;
1660
+ export type MasterLineObject = z.infer<typeof masterLineObjectSchema>;
1661
+ export type MasterObject = z.infer<typeof masterObjectSchema>;
1662
+ export type SlideNumberOptions = z.infer<typeof slideNumberOptionsSchema>;
1663
+ export type SlideMasterBackground = z.infer<typeof slideMasterBackgroundSchema>;
1664
+ export type SlideMasterMargin = z.infer<typeof slideMasterMarginSchema>;
1665
+ export type SlideMasterOptions = z.infer<typeof slideMasterOptionsSchema>;
1309
1666
  export {};
1310
1667
  //# sourceMappingURL=types.d.ts.map
@@ -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,e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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
@@ -467,6 +467,31 @@ export const flowNodeSchema = basePOMNodeSchema.extend({
467
467
  nodeHeight: z.number().optional(),
468
468
  nodeGap: z.number().optional(),
469
469
  });
470
+ // ===== Line Node =====
471
+ export const lineArrowTypeSchema = z.enum([
472
+ "none",
473
+ "arrow",
474
+ "triangle",
475
+ "diamond",
476
+ "oval",
477
+ "stealth",
478
+ ]);
479
+ export const lineArrowOptionsSchema = z.object({
480
+ type: lineArrowTypeSchema.optional(),
481
+ });
482
+ export const lineArrowSchema = z.union([z.boolean(), lineArrowOptionsSchema]);
483
+ export const lineNodeSchema = basePOMNodeSchema.extend({
484
+ type: z.literal("line"),
485
+ x1: z.number(),
486
+ y1: z.number(),
487
+ x2: z.number(),
488
+ y2: z.number(),
489
+ color: z.string().optional(),
490
+ lineWidth: z.number().optional(),
491
+ dashType: borderDashSchema.optional(),
492
+ beginArrow: lineArrowSchema.optional(),
493
+ endArrow: lineArrowSchema.optional(),
494
+ });
470
495
  // Define schemas using passthrough to maintain type safety
471
496
  const boxNodeSchemaBase = basePOMNodeSchema.extend({
472
497
  type: z.literal("box"),
@@ -486,10 +511,19 @@ const hStackNodeSchemaBase = basePOMNodeSchema.extend({
486
511
  alignItems: alignItemsSchema.optional(),
487
512
  justifyContent: justifyContentSchema.optional(),
488
513
  });
514
+ const layerChildSchemaBase = z.lazy(() => pomNodeSchema.and(z.object({
515
+ x: z.number(),
516
+ y: z.number(),
517
+ })));
518
+ const layerNodeSchemaBase = basePOMNodeSchema.extend({
519
+ type: z.literal("layer"),
520
+ children: z.array(layerChildSchemaBase),
521
+ });
489
522
  // Export with proper type annotations using z.ZodType
490
523
  export const boxNodeSchema = boxNodeSchemaBase;
491
524
  export const vStackNodeSchema = vStackNodeSchemaBase;
492
525
  export const hStackNodeSchema = hStackNodeSchemaBase;
526
+ export const layerNodeSchema = layerNodeSchemaBase;
493
527
  export const pomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
494
528
  textNodeSchema,
495
529
  imageNodeSchema,
@@ -504,6 +538,8 @@ export const pomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
504
538
  treeNodeSchema,
505
539
  flowNodeSchema,
506
540
  processArrowNodeSchema,
541
+ lineNodeSchema,
542
+ layerNodeSchemaBase,
507
543
  ]));
508
544
  // ===== Positioned Node Types =====
509
545
  const positionedBaseSchema = z.object({
@@ -512,6 +548,10 @@ const positionedBaseSchema = z.object({
512
548
  w: z.number(),
513
549
  h: z.number(),
514
550
  });
551
+ const positionedLayerChildSchema = z.lazy(() => positionedNodeSchema.and(z.object({
552
+ x: z.number(),
553
+ y: z.number(),
554
+ })));
515
555
  export const positionedNodeSchema = z.lazy(() => z.union([
516
556
  textNodeSchema.merge(positionedBaseSchema),
517
557
  imageNodeSchema.merge(positionedBaseSchema).extend({
@@ -534,20 +574,83 @@ export const positionedNodeSchema = z.lazy(() => z.union([
534
574
  treeNodeSchema.merge(positionedBaseSchema),
535
575
  flowNodeSchema.merge(positionedBaseSchema),
536
576
  processArrowNodeSchema.merge(positionedBaseSchema),
577
+ lineNodeSchema.merge(positionedBaseSchema),
578
+ layerNodeSchemaBase.merge(positionedBaseSchema).extend({
579
+ children: z.array(positionedLayerChildSchema),
580
+ }),
537
581
  ]));
538
- // ===== Master Slide Options =====
539
- export const pageNumberPositionSchema = z.enum(["left", "center", "right"]);
540
- export const masterSlideOptionsSchema = z.object({
541
- header: z.lazy(() => pomNodeSchema).optional(),
542
- footer: z.lazy(() => pomNodeSchema).optional(),
543
- pageNumber: z
544
- .object({
545
- position: pageNumberPositionSchema,
546
- })
547
- .optional(),
548
- date: z
549
- .object({
550
- value: z.string(),
551
- })
552
- .optional(),
582
+ // ===== Slide Master Options =====
583
+ export const masterTextObjectSchema = z.object({
584
+ type: z.literal("text"),
585
+ text: z.string(),
586
+ x: z.number(),
587
+ y: z.number(),
588
+ w: z.number(),
589
+ h: z.number(),
590
+ fontPx: z.number().optional(),
591
+ fontFamily: z.string().optional(),
592
+ color: z.string().optional(),
593
+ bold: z.boolean().optional(),
594
+ alignText: z.enum(["left", "center", "right"]).optional(),
595
+ });
596
+ export const masterImageObjectSchema = z.object({
597
+ type: z.literal("image"),
598
+ src: z.string(),
599
+ x: z.number(),
600
+ y: z.number(),
601
+ w: z.number(),
602
+ h: z.number(),
603
+ });
604
+ export const masterRectObjectSchema = z.object({
605
+ type: z.literal("rect"),
606
+ x: z.number(),
607
+ y: z.number(),
608
+ w: z.number(),
609
+ h: z.number(),
610
+ fill: fillStyleSchema.optional(),
611
+ border: borderStyleSchema.optional(),
612
+ });
613
+ export const masterLineObjectSchema = z.object({
614
+ type: z.literal("line"),
615
+ x: z.number(),
616
+ y: z.number(),
617
+ w: z.number(),
618
+ h: z.number(),
619
+ line: borderStyleSchema.optional(),
620
+ });
621
+ export const masterObjectSchema = z.discriminatedUnion("type", [
622
+ masterTextObjectSchema,
623
+ masterImageObjectSchema,
624
+ masterRectObjectSchema,
625
+ masterLineObjectSchema,
626
+ ]);
627
+ export const slideNumberOptionsSchema = z.object({
628
+ x: z.number(),
629
+ y: z.number(),
630
+ w: z.number().optional(),
631
+ h: z.number().optional(),
632
+ fontPx: z.number().optional(),
633
+ fontFamily: z.string().optional(),
634
+ color: z.string().optional(),
635
+ });
636
+ export const slideMasterBackgroundSchema = z.union([
637
+ z.object({ color: z.string() }),
638
+ z.object({ path: z.string() }),
639
+ z.object({ data: z.string() }),
640
+ ]);
641
+ export const slideMasterMarginSchema = z.union([
642
+ z.number(),
643
+ z.object({
644
+ top: z.number().optional(),
645
+ right: z.number().optional(),
646
+ bottom: z.number().optional(),
647
+ left: z.number().optional(),
648
+ }),
649
+ ]);
650
+ export const slideMasterOptionsSchema = z.object({
651
+ title: z.string().optional(),
652
+ background: slideMasterBackgroundSchema.optional(),
653
+ margin: slideMasterMarginSchema.optional(),
654
+ objects: z.array(masterObjectSchema).optional(),
655
+ slideNumber: slideNumberOptionsSchema.optional(),
553
656
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirokisakabe/pom",
3
- "version": "0.3.0",
3
+ "version": "1.1.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",