@hirokisakabe/pom 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -38
- package/dist/buildPptx.js +1 -1
- package/dist/calcYogaLayout/calcYogaLayout.d.ts.map +1 -1
- package/dist/calcYogaLayout/calcYogaLayout.js +95 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{inputSchema.d.ts → parseXml/inputSchema.d.ts} +253 -24
- package/dist/parseXml/inputSchema.d.ts.map +1 -0
- package/dist/{inputSchema.js → parseXml/inputSchema.js} +36 -2
- package/dist/{parseXml.d.ts → parseXml/parseXml.d.ts} +1 -1
- package/dist/parseXml/parseXml.d.ts.map +1 -0
- package/dist/{parseXml.js → parseXml/parseXml.js} +30 -2
- package/dist/renderPptx/nodes/flow.d.ts.map +1 -1
- package/dist/renderPptx/nodes/flow.js +26 -16
- package/dist/renderPptx/nodes/index.d.ts +1 -0
- package/dist/renderPptx/nodes/index.d.ts.map +1 -1
- package/dist/renderPptx/nodes/index.js +1 -0
- package/dist/renderPptx/nodes/list.d.ts +12 -0
- package/dist/renderPptx/nodes/list.d.ts.map +1 -0
- package/dist/renderPptx/nodes/list.js +145 -0
- package/dist/renderPptx/nodes/matrix.d.ts.map +1 -1
- package/dist/renderPptx/nodes/matrix.js +43 -31
- package/dist/renderPptx/nodes/processArrow.d.ts.map +1 -1
- package/dist/renderPptx/nodes/processArrow.js +14 -6
- package/dist/renderPptx/nodes/shape.js +2 -2
- package/dist/renderPptx/nodes/table.d.ts.map +1 -1
- package/dist/renderPptx/nodes/table.js +1 -1
- package/dist/renderPptx/nodes/timeline.d.ts.map +1 -1
- package/dist/renderPptx/nodes/timeline.js +58 -37
- package/dist/renderPptx/nodes/tree.d.ts.map +1 -1
- package/dist/renderPptx/nodes/tree.js +49 -40
- package/dist/renderPptx/renderPptx.d.ts.map +1 -1
- package/dist/renderPptx/renderPptx.js +8 -2
- package/dist/renderPptx/textOptions.d.ts +1 -28
- package/dist/renderPptx/textOptions.d.ts.map +1 -1
- package/dist/renderPptx/textOptions.js +1 -27
- package/dist/renderPptx/utils/backgroundBorder.js +1 -1
- package/dist/renderPptx/utils/scaleToFit.d.ts +8 -0
- package/dist/renderPptx/utils/scaleToFit.d.ts.map +1 -0
- package/dist/renderPptx/utils/scaleToFit.js +19 -0
- package/dist/shared/measureImage.d.ts.map +1 -0
- package/dist/{table/utils.d.ts → shared/tableUtils.d.ts} +1 -1
- package/dist/shared/tableUtils.d.ts.map +1 -0
- package/dist/toPositioned/toPositioned.d.ts.map +1 -1
- package/dist/toPositioned/toPositioned.js +4 -2
- package/dist/types.d.ts +277 -52
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +48 -8
- package/package.json +1 -1
- package/dist/calcYogaLayout/measureImage.d.ts.map +0 -1
- package/dist/inputSchema.d.ts.map +0 -1
- package/dist/parseXml.d.ts.map +0 -1
- package/dist/table/utils.d.ts.map +0 -1
- /package/dist/{calcYogaLayout → shared}/measureImage.d.ts +0 -0
- /package/dist/{calcYogaLayout → shared}/measureImage.js +0 -0
- /package/dist/{table/utils.js → shared/tableUtils.js} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -46,32 +46,24 @@ export declare const shadowStyleSchema: z.ZodObject<{
|
|
|
46
46
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
color: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
export declare const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
romanLcParenR: "romanLcParenR";
|
|
68
|
-
romanLcPeriod: "romanLcPeriod";
|
|
69
|
-
romanUcParenBoth: "romanUcParenBoth";
|
|
70
|
-
romanUcParenR: "romanUcParenR";
|
|
71
|
-
romanUcPeriod: "romanUcPeriod";
|
|
72
|
-
}>>;
|
|
73
|
-
numberStartAt: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
}, z.core.$strip>;
|
|
49
|
+
export declare const bulletNumberTypeSchema: z.ZodEnum<{
|
|
50
|
+
alphaLcParenBoth: "alphaLcParenBoth";
|
|
51
|
+
alphaLcParenR: "alphaLcParenR";
|
|
52
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
53
|
+
alphaUcParenBoth: "alphaUcParenBoth";
|
|
54
|
+
alphaUcParenR: "alphaUcParenR";
|
|
55
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
56
|
+
arabicParenBoth: "arabicParenBoth";
|
|
57
|
+
arabicParenR: "arabicParenR";
|
|
58
|
+
arabicPeriod: "arabicPeriod";
|
|
59
|
+
arabicPlain: "arabicPlain";
|
|
60
|
+
romanLcParenBoth: "romanLcParenBoth";
|
|
61
|
+
romanLcParenR: "romanLcParenR";
|
|
62
|
+
romanLcPeriod: "romanLcPeriod";
|
|
63
|
+
romanUcParenBoth: "romanUcParenBoth";
|
|
64
|
+
romanUcParenR: "romanUcParenR";
|
|
65
|
+
romanUcPeriod: "romanUcPeriod";
|
|
66
|
+
}>;
|
|
75
67
|
export declare const underlineStyleSchema: z.ZodEnum<{
|
|
76
68
|
dash: "dash";
|
|
77
69
|
dashHeavy: "dashHeavy";
|
|
@@ -304,7 +296,6 @@ export declare const shapeTypeSchema: z.ZodEnum<{
|
|
|
304
296
|
wedgeRoundRectCallout: "wedgeRoundRectCallout";
|
|
305
297
|
}>;
|
|
306
298
|
export type ShadowStyle = z.infer<typeof shadowStyleSchema>;
|
|
307
|
-
export type BulletOptions = z.infer<typeof bulletOptionsSchema>;
|
|
308
299
|
export type AlignItems = z.infer<typeof alignItemsSchema>;
|
|
309
300
|
export type JustifyContent = z.infer<typeof justifyContentSchema>;
|
|
310
301
|
export type UnderlineStyle = z.infer<typeof underlineStyleSchema>;
|
|
@@ -429,32 +420,261 @@ declare const textNodeSchema: z.ZodObject<{
|
|
|
429
420
|
highlight: z.ZodOptional<z.ZodString>;
|
|
430
421
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
431
422
|
lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
export declare const liNodeSchema: z.ZodObject<{
|
|
425
|
+
text: z.ZodString;
|
|
426
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
429
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
430
|
+
dash: "dash";
|
|
431
|
+
dashHeavy: "dashHeavy";
|
|
432
|
+
dashLong: "dashLong";
|
|
433
|
+
dashLongHeavy: "dashLongHeavy";
|
|
434
|
+
dbl: "dbl";
|
|
435
|
+
dotDash: "dotDash";
|
|
436
|
+
dotDotDash: "dotDotDash";
|
|
437
|
+
dotted: "dotted";
|
|
438
|
+
dottedHeavy: "dottedHeavy";
|
|
439
|
+
heavy: "heavy";
|
|
440
|
+
none: "none";
|
|
441
|
+
sng: "sng";
|
|
442
|
+
wavy: "wavy";
|
|
443
|
+
wavyDbl: "wavyDbl";
|
|
444
|
+
wavyHeavy: "wavyHeavy";
|
|
436
445
|
}>>;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
446
|
+
color: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, z.core.$strip>]>>;
|
|
448
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
450
|
+
color: z.ZodOptional<z.ZodString>;
|
|
451
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
declare const ulNodeSchema: z.ZodObject<{
|
|
455
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
456
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
457
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
458
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
463
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
}, z.core.$strip>]>>;
|
|
468
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
469
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
src: z.ZodString;
|
|
471
|
+
sizing: z.ZodOptional<z.ZodEnum<{
|
|
472
|
+
cover: "cover";
|
|
473
|
+
contain: "contain";
|
|
474
|
+
}>>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
color: z.ZodOptional<z.ZodString>;
|
|
478
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
solid: "solid";
|
|
481
|
+
dash: "dash";
|
|
482
|
+
dashDot: "dashDot";
|
|
483
|
+
lgDash: "lgDash";
|
|
484
|
+
lgDashDot: "lgDashDot";
|
|
485
|
+
lgDashDotDot: "lgDashDotDot";
|
|
486
|
+
sysDash: "sysDash";
|
|
487
|
+
sysDot: "sysDot";
|
|
455
488
|
}>>;
|
|
456
|
-
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
type: z.ZodLiteral<"ul">;
|
|
493
|
+
items: z.ZodArray<z.ZodObject<{
|
|
494
|
+
text: z.ZodString;
|
|
495
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
496
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
498
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
dash: "dash";
|
|
500
|
+
dashHeavy: "dashHeavy";
|
|
501
|
+
dashLong: "dashLong";
|
|
502
|
+
dashLongHeavy: "dashLongHeavy";
|
|
503
|
+
dbl: "dbl";
|
|
504
|
+
dotDash: "dotDash";
|
|
505
|
+
dotDotDash: "dotDotDash";
|
|
506
|
+
dotted: "dotted";
|
|
507
|
+
dottedHeavy: "dottedHeavy";
|
|
508
|
+
heavy: "heavy";
|
|
509
|
+
none: "none";
|
|
510
|
+
sng: "sng";
|
|
511
|
+
wavy: "wavy";
|
|
512
|
+
wavyDbl: "wavyDbl";
|
|
513
|
+
wavyHeavy: "wavyHeavy";
|
|
514
|
+
}>>;
|
|
515
|
+
color: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>]>>;
|
|
517
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
519
|
+
color: z.ZodOptional<z.ZodString>;
|
|
520
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, z.core.$strip>>;
|
|
523
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
color: z.ZodOptional<z.ZodString>;
|
|
525
|
+
alignText: z.ZodOptional<z.ZodEnum<{
|
|
526
|
+
right: "right";
|
|
527
|
+
left: "left";
|
|
528
|
+
center: "center";
|
|
529
|
+
}>>;
|
|
530
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
531
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
+
underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
533
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
dash: "dash";
|
|
535
|
+
dashHeavy: "dashHeavy";
|
|
536
|
+
dashLong: "dashLong";
|
|
537
|
+
dashLongHeavy: "dashLongHeavy";
|
|
538
|
+
dbl: "dbl";
|
|
539
|
+
dotDash: "dotDash";
|
|
540
|
+
dotDotDash: "dotDotDash";
|
|
541
|
+
dotted: "dotted";
|
|
542
|
+
dottedHeavy: "dottedHeavy";
|
|
543
|
+
heavy: "heavy";
|
|
544
|
+
none: "none";
|
|
545
|
+
sng: "sng";
|
|
546
|
+
wavy: "wavy";
|
|
547
|
+
wavyDbl: "wavyDbl";
|
|
548
|
+
wavyHeavy: "wavyHeavy";
|
|
549
|
+
}>>;
|
|
550
|
+
color: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, z.core.$strip>]>>;
|
|
552
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
553
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
554
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
555
|
+
lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
declare const olNodeSchema: z.ZodObject<{
|
|
558
|
+
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
559
|
+
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
560
|
+
h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
561
|
+
minW: z.ZodOptional<z.ZodNumber>;
|
|
562
|
+
maxW: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
minH: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
maxH: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
566
|
+
top: z.ZodOptional<z.ZodNumber>;
|
|
567
|
+
right: z.ZodOptional<z.ZodNumber>;
|
|
568
|
+
bottom: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
570
|
+
}, z.core.$strip>]>>;
|
|
571
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
572
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
src: z.ZodString;
|
|
574
|
+
sizing: z.ZodOptional<z.ZodEnum<{
|
|
575
|
+
cover: "cover";
|
|
576
|
+
contain: "contain";
|
|
577
|
+
}>>;
|
|
578
|
+
}, z.core.$strip>>;
|
|
579
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
color: z.ZodOptional<z.ZodString>;
|
|
581
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
dashType: z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
solid: "solid";
|
|
584
|
+
dash: "dash";
|
|
585
|
+
dashDot: "dashDot";
|
|
586
|
+
lgDash: "lgDash";
|
|
587
|
+
lgDashDot: "lgDashDot";
|
|
588
|
+
lgDashDotDot: "lgDashDotDot";
|
|
589
|
+
sysDash: "sysDash";
|
|
590
|
+
sysDot: "sysDot";
|
|
591
|
+
}>>;
|
|
592
|
+
}, z.core.$strip>>;
|
|
593
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
594
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
type: z.ZodLiteral<"ol">;
|
|
596
|
+
items: z.ZodArray<z.ZodObject<{
|
|
597
|
+
text: z.ZodString;
|
|
598
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
599
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
600
|
+
underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
601
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
602
|
+
dash: "dash";
|
|
603
|
+
dashHeavy: "dashHeavy";
|
|
604
|
+
dashLong: "dashLong";
|
|
605
|
+
dashLongHeavy: "dashLongHeavy";
|
|
606
|
+
dbl: "dbl";
|
|
607
|
+
dotDash: "dotDash";
|
|
608
|
+
dotDotDash: "dotDotDash";
|
|
609
|
+
dotted: "dotted";
|
|
610
|
+
dottedHeavy: "dottedHeavy";
|
|
611
|
+
heavy: "heavy";
|
|
612
|
+
none: "none";
|
|
613
|
+
sng: "sng";
|
|
614
|
+
wavy: "wavy";
|
|
615
|
+
wavyDbl: "wavyDbl";
|
|
616
|
+
wavyHeavy: "wavyHeavy";
|
|
617
|
+
}>>;
|
|
618
|
+
color: z.ZodOptional<z.ZodString>;
|
|
619
|
+
}, z.core.$strip>]>>;
|
|
620
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
621
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
622
|
+
color: z.ZodOptional<z.ZodString>;
|
|
623
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
624
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
625
|
+
}, z.core.$strip>>;
|
|
626
|
+
fontPx: z.ZodOptional<z.ZodNumber>;
|
|
627
|
+
color: z.ZodOptional<z.ZodString>;
|
|
628
|
+
alignText: z.ZodOptional<z.ZodEnum<{
|
|
629
|
+
right: "right";
|
|
630
|
+
left: "left";
|
|
631
|
+
center: "center";
|
|
632
|
+
}>>;
|
|
633
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
634
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
636
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
637
|
+
dash: "dash";
|
|
638
|
+
dashHeavy: "dashHeavy";
|
|
639
|
+
dashLong: "dashLong";
|
|
640
|
+
dashLongHeavy: "dashLongHeavy";
|
|
641
|
+
dbl: "dbl";
|
|
642
|
+
dotDash: "dotDash";
|
|
643
|
+
dotDotDash: "dotDotDash";
|
|
644
|
+
dotted: "dotted";
|
|
645
|
+
dottedHeavy: "dottedHeavy";
|
|
646
|
+
heavy: "heavy";
|
|
647
|
+
none: "none";
|
|
648
|
+
sng: "sng";
|
|
649
|
+
wavy: "wavy";
|
|
650
|
+
wavyDbl: "wavyDbl";
|
|
651
|
+
wavyHeavy: "wavyHeavy";
|
|
652
|
+
}>>;
|
|
653
|
+
color: z.ZodOptional<z.ZodString>;
|
|
457
654
|
}, z.core.$strip>]>>;
|
|
655
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
highlight: z.ZodOptional<z.ZodString>;
|
|
657
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
658
|
+
lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
|
|
659
|
+
numberType: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
alphaLcParenBoth: "alphaLcParenBoth";
|
|
661
|
+
alphaLcParenR: "alphaLcParenR";
|
|
662
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
663
|
+
alphaUcParenBoth: "alphaUcParenBoth";
|
|
664
|
+
alphaUcParenR: "alphaUcParenR";
|
|
665
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
666
|
+
arabicParenBoth: "arabicParenBoth";
|
|
667
|
+
arabicParenR: "arabicParenR";
|
|
668
|
+
arabicPeriod: "arabicPeriod";
|
|
669
|
+
arabicPlain: "arabicPlain";
|
|
670
|
+
romanLcParenBoth: "romanLcParenBoth";
|
|
671
|
+
romanLcParenR: "romanLcParenR";
|
|
672
|
+
romanLcPeriod: "romanLcPeriod";
|
|
673
|
+
romanUcParenBoth: "romanUcParenBoth";
|
|
674
|
+
romanUcParenR: "romanUcParenR";
|
|
675
|
+
romanUcPeriod: "romanUcPeriod";
|
|
676
|
+
}>>;
|
|
677
|
+
numberStartAt: z.ZodOptional<z.ZodNumber>;
|
|
458
678
|
}, z.core.$strip>;
|
|
459
679
|
declare const imageNodeSchema: z.ZodObject<{
|
|
460
680
|
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
@@ -957,6 +1177,8 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
957
1177
|
}, z.core.$strip>]>>;
|
|
958
1178
|
strike: z.ZodOptional<z.ZodBoolean>;
|
|
959
1179
|
highlight: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
|
|
960
1182
|
}, z.core.$strip>;
|
|
961
1183
|
export declare const chartTypeSchema: z.ZodEnum<{
|
|
962
1184
|
line: "line";
|
|
@@ -1039,6 +1261,9 @@ declare const chartNodeSchema: z.ZodObject<{
|
|
|
1039
1261
|
}>>;
|
|
1040
1262
|
}, z.core.$strip>;
|
|
1041
1263
|
export type TextNode = z.infer<typeof textNodeSchema>;
|
|
1264
|
+
export type LiNode = z.infer<typeof liNodeSchema>;
|
|
1265
|
+
export type UlNode = z.infer<typeof ulNodeSchema>;
|
|
1266
|
+
export type OlNode = z.infer<typeof olNodeSchema>;
|
|
1042
1267
|
export type ImageNode = z.infer<typeof imageNodeSchema>;
|
|
1043
1268
|
export type TableNode = z.infer<typeof tableNodeSchema>;
|
|
1044
1269
|
export type ShapeNode = z.infer<typeof shapeNodeSchema>;
|
|
@@ -1590,7 +1815,7 @@ export type LayerNode = BasePOMNode & {
|
|
|
1590
1815
|
type: "layer";
|
|
1591
1816
|
children: LayerChild[];
|
|
1592
1817
|
};
|
|
1593
|
-
export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode | LineNode | LayerNode;
|
|
1818
|
+
export type POMNode = TextNode | UlNode | OlNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode | LineNode | LayerNode;
|
|
1594
1819
|
declare const positionedBaseSchema: z.ZodObject<{
|
|
1595
1820
|
x: z.ZodNumber;
|
|
1596
1821
|
y: z.ZodNumber;
|
|
@@ -1602,7 +1827,7 @@ export type PositionedLayerChild = PositionedNode & {
|
|
|
1602
1827
|
x: number;
|
|
1603
1828
|
y: number;
|
|
1604
1829
|
};
|
|
1605
|
-
export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & PositionedBase & {
|
|
1830
|
+
export type PositionedNode = (TextNode & PositionedBase) | (UlNode & PositionedBase) | (OlNode & PositionedBase) | (ImageNode & PositionedBase & {
|
|
1606
1831
|
imageData?: string;
|
|
1607
1832
|
}) | (TableNode & PositionedBase) | (BoxNode & PositionedBase & {
|
|
1608
1833
|
children: PositionedNode;
|
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;A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,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
|
@@ -41,7 +41,7 @@ export const shadowStyleSchema = z.object({
|
|
|
41
41
|
offset: z.number().optional(),
|
|
42
42
|
color: z.string().optional(),
|
|
43
43
|
});
|
|
44
|
-
const bulletNumberTypeSchema = z.enum([
|
|
44
|
+
export const bulletNumberTypeSchema = z.enum([
|
|
45
45
|
"alphaLcParenBoth",
|
|
46
46
|
"alphaLcParenR",
|
|
47
47
|
"alphaLcPeriod",
|
|
@@ -59,12 +59,6 @@ const bulletNumberTypeSchema = z.enum([
|
|
|
59
59
|
"romanUcParenR",
|
|
60
60
|
"romanUcPeriod",
|
|
61
61
|
]);
|
|
62
|
-
export const bulletOptionsSchema = z.object({
|
|
63
|
-
type: z.enum(["bullet", "number"]).optional(),
|
|
64
|
-
indent: z.number().optional(),
|
|
65
|
-
numberType: bulletNumberTypeSchema.optional(),
|
|
66
|
-
numberStartAt: z.number().optional(),
|
|
67
|
-
});
|
|
68
62
|
export const underlineStyleSchema = z.enum([
|
|
69
63
|
"dash",
|
|
70
64
|
"dashHeavy",
|
|
@@ -314,7 +308,47 @@ const textNodeSchema = basePOMNodeSchema.extend({
|
|
|
314
308
|
highlight: z.string().optional(),
|
|
315
309
|
fontFamily: z.string().optional(),
|
|
316
310
|
lineSpacingMultiple: z.number().optional(),
|
|
317
|
-
|
|
311
|
+
});
|
|
312
|
+
export const liNodeSchema = z.object({
|
|
313
|
+
text: z.string(),
|
|
314
|
+
bold: z.boolean().optional(),
|
|
315
|
+
italic: z.boolean().optional(),
|
|
316
|
+
underline: underlineSchema.optional(),
|
|
317
|
+
strike: z.boolean().optional(),
|
|
318
|
+
highlight: z.string().optional(),
|
|
319
|
+
color: z.string().optional(),
|
|
320
|
+
fontPx: z.number().optional(),
|
|
321
|
+
fontFamily: z.string().optional(),
|
|
322
|
+
});
|
|
323
|
+
const ulNodeSchema = basePOMNodeSchema.extend({
|
|
324
|
+
type: z.literal("ul"),
|
|
325
|
+
items: z.array(liNodeSchema),
|
|
326
|
+
fontPx: z.number().optional(),
|
|
327
|
+
color: z.string().optional(),
|
|
328
|
+
alignText: z.enum(["left", "center", "right"]).optional(),
|
|
329
|
+
bold: z.boolean().optional(),
|
|
330
|
+
italic: z.boolean().optional(),
|
|
331
|
+
underline: underlineSchema.optional(),
|
|
332
|
+
strike: z.boolean().optional(),
|
|
333
|
+
highlight: z.string().optional(),
|
|
334
|
+
fontFamily: z.string().optional(),
|
|
335
|
+
lineSpacingMultiple: z.number().optional(),
|
|
336
|
+
});
|
|
337
|
+
const olNodeSchema = basePOMNodeSchema.extend({
|
|
338
|
+
type: z.literal("ol"),
|
|
339
|
+
items: z.array(liNodeSchema),
|
|
340
|
+
fontPx: z.number().optional(),
|
|
341
|
+
color: z.string().optional(),
|
|
342
|
+
alignText: z.enum(["left", "center", "right"]).optional(),
|
|
343
|
+
bold: z.boolean().optional(),
|
|
344
|
+
italic: z.boolean().optional(),
|
|
345
|
+
underline: underlineSchema.optional(),
|
|
346
|
+
strike: z.boolean().optional(),
|
|
347
|
+
highlight: z.string().optional(),
|
|
348
|
+
fontFamily: z.string().optional(),
|
|
349
|
+
lineSpacingMultiple: z.number().optional(),
|
|
350
|
+
numberType: bulletNumberTypeSchema.optional(),
|
|
351
|
+
numberStartAt: z.number().optional(),
|
|
318
352
|
});
|
|
319
353
|
const imageSizingSchema = z.object({
|
|
320
354
|
type: z.enum(["contain", "cover", "crop"]),
|
|
@@ -369,6 +403,8 @@ const shapeNodeSchema = basePOMNodeSchema.extend({
|
|
|
369
403
|
underline: underlineSchema.optional(),
|
|
370
404
|
strike: z.boolean().optional(),
|
|
371
405
|
highlight: z.string().optional(),
|
|
406
|
+
fontFamily: z.string().optional(),
|
|
407
|
+
lineSpacingMultiple: z.number().optional(),
|
|
372
408
|
});
|
|
373
409
|
export const chartTypeSchema = z.enum([
|
|
374
410
|
"bar",
|
|
@@ -578,6 +614,8 @@ const layerNodeSchemaBase = basePOMNodeSchema.extend({
|
|
|
578
614
|
});
|
|
579
615
|
const pomNodeSchema = z.lazy(() => z.discriminatedUnion("type", [
|
|
580
616
|
textNodeSchema,
|
|
617
|
+
ulNodeSchema,
|
|
618
|
+
olNodeSchema,
|
|
581
619
|
imageNodeSchema,
|
|
582
620
|
tableNodeSchema,
|
|
583
621
|
boxNodeSchemaBase,
|
|
@@ -606,6 +644,8 @@ const positionedLayerChildSchema = z.lazy(() => positionedNodeSchema.and(z.objec
|
|
|
606
644
|
})));
|
|
607
645
|
const positionedNodeSchema = z.lazy(() => z.union([
|
|
608
646
|
textNodeSchema.merge(positionedBaseSchema),
|
|
647
|
+
ulNodeSchema.merge(positionedBaseSchema),
|
|
648
|
+
olNodeSchema.merge(positionedBaseSchema),
|
|
609
649
|
imageNodeSchema.merge(positionedBaseSchema).extend({
|
|
610
650
|
imageData: z.string().optional(),
|
|
611
651
|
}),
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measureImage.d.ts","sourceRoot":"","sources":["../../src/calcYogaLayout/measureImage.ts"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5D;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CA0DD;AAED;;;;;GAKG;AACH,wBAA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@@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/table/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS;;;EAQrD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,YAGhD;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,EAAE,CAeV"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|