@hirokisakabe/pom 5.2.1 → 5.4.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 +1 -0
- package/dist/icons/iconData.d.ts.map +1 -1
- package/dist/icons/iconData.js +7708 -43
- package/dist/parseXml/coercionRules.d.ts.map +1 -1
- package/dist/parseXml/coercionRules.js +2 -0
- package/dist/parseXml/inputSchema.d.ts +25 -18
- package/dist/parseXml/inputSchema.d.ts.map +1 -1
- package/dist/parseXml/inputSchema.js +3 -1
- package/dist/parseXml/parseXml.d.ts.map +1 -1
- package/dist/parseXml/parseXml.js +8 -5
- package/dist/registry/definitions/icon.d.ts.map +1 -1
- package/dist/registry/definitions/icon.js +26 -4
- package/dist/renderPptx/nodes/icon.d.ts.map +1 -1
- package/dist/renderPptx/nodes/icon.js +22 -4
- package/dist/types.d.ts +55 -34
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -0
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coercionRules.d.ts","sourceRoot":"","sources":["../../src/parseXml/coercionRules.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAAE,CAAC;AAI5D,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAyD1C;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,YAAY,EAAE,GACtB,OAAO,CAuCT;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAarD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAY1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQpE;AA6HD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"coercionRules.d.ts","sourceRoot":"","sources":["../../src/parseXml/coercionRules.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CAAE,CAAC;AAI5D,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAyD1C;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,YAAY,EAAE,GACtB,OAAO,CAuCT;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAarD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,CAY1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQpE;AA6HD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAkJ1E,CAAC;AAGF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CA6E7B,CAAC"}
|
|
@@ -431,9 +431,9 @@ export declare const inputImageNodeSchema: z.ZodObject<{
|
|
|
431
431
|
src: z.ZodString;
|
|
432
432
|
sizing: z.ZodOptional<z.ZodObject<{
|
|
433
433
|
type: z.ZodEnum<{
|
|
434
|
+
crop: "crop";
|
|
434
435
|
cover: "cover";
|
|
435
436
|
contain: "contain";
|
|
436
|
-
crop: "crop";
|
|
437
437
|
}>;
|
|
438
438
|
w: z.ZodOptional<z.ZodNumber>;
|
|
439
439
|
h: z.ZodOptional<z.ZodNumber>;
|
|
@@ -517,6 +517,13 @@ export declare const inputIconNodeSchema: z.ZodObject<{
|
|
|
517
517
|
}>;
|
|
518
518
|
size: z.ZodOptional<z.ZodNumber>;
|
|
519
519
|
color: z.ZodOptional<z.ZodString>;
|
|
520
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
"circle-filled": "circle-filled";
|
|
522
|
+
"circle-outlined": "circle-outlined";
|
|
523
|
+
"square-filled": "square-filled";
|
|
524
|
+
"square-outlined": "square-outlined";
|
|
525
|
+
}>>;
|
|
526
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
520
527
|
}, z.core.$strip>;
|
|
521
528
|
export declare const inputTableNodeSchema: z.ZodObject<{
|
|
522
529
|
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
@@ -685,7 +692,20 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
685
692
|
type: z.ZodLiteral<"shape">;
|
|
686
693
|
shapeType: z.ZodEnum<{
|
|
687
694
|
cloud: "cloud";
|
|
695
|
+
diamond: "diamond";
|
|
696
|
+
donut: "donut";
|
|
697
|
+
ellipse: "ellipse";
|
|
698
|
+
frame: "frame";
|
|
699
|
+
funnel: "funnel";
|
|
688
700
|
heart: "heart";
|
|
701
|
+
hexagon: "hexagon";
|
|
702
|
+
moon: "moon";
|
|
703
|
+
octagon: "octagon";
|
|
704
|
+
pentagon: "pentagon";
|
|
705
|
+
plus: "plus";
|
|
706
|
+
ribbon: "ribbon";
|
|
707
|
+
sun: "sun";
|
|
708
|
+
triangle: "triangle";
|
|
689
709
|
accentBorderCallout1: "accentBorderCallout1";
|
|
690
710
|
accentBorderCallout2: "accentBorderCallout2";
|
|
691
711
|
accentBorderCallout3: "accentBorderCallout3";
|
|
@@ -734,13 +754,10 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
734
754
|
curvedUpArrow: "curvedUpArrow";
|
|
735
755
|
decagon: "decagon";
|
|
736
756
|
diagStripe: "diagStripe";
|
|
737
|
-
diamond: "diamond";
|
|
738
757
|
dodecagon: "dodecagon";
|
|
739
|
-
donut: "donut";
|
|
740
758
|
doubleWave: "doubleWave";
|
|
741
759
|
downArrow: "downArrow";
|
|
742
760
|
downArrowCallout: "downArrowCallout";
|
|
743
|
-
ellipse: "ellipse";
|
|
744
761
|
ellipseRibbon: "ellipseRibbon";
|
|
745
762
|
ellipseRibbon2: "ellipseRibbon2";
|
|
746
763
|
flowChartAlternateProcess: "flowChartAlternateProcess";
|
|
@@ -773,13 +790,10 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
773
790
|
flowChartSummingJunction: "flowChartSummingJunction";
|
|
774
791
|
flowChartTerminator: "flowChartTerminator";
|
|
775
792
|
folderCorner: "folderCorner";
|
|
776
|
-
frame: "frame";
|
|
777
|
-
funnel: "funnel";
|
|
778
793
|
gear6: "gear6";
|
|
779
794
|
gear9: "gear9";
|
|
780
795
|
halfFrame: "halfFrame";
|
|
781
796
|
heptagon: "heptagon";
|
|
782
|
-
hexagon: "hexagon";
|
|
783
797
|
homePlate: "homePlate";
|
|
784
798
|
horizontalScroll: "horizontalScroll";
|
|
785
799
|
irregularSeal1: "irregularSeal1";
|
|
@@ -804,22 +818,17 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
804
818
|
mathMultiply: "mathMultiply";
|
|
805
819
|
mathNotEqual: "mathNotEqual";
|
|
806
820
|
mathPlus: "mathPlus";
|
|
807
|
-
moon: "moon";
|
|
808
821
|
noSmoking: "noSmoking";
|
|
809
822
|
nonIsoscelesTrapezoid: "nonIsoscelesTrapezoid";
|
|
810
823
|
notchedRightArrow: "notchedRightArrow";
|
|
811
|
-
octagon: "octagon";
|
|
812
824
|
parallelogram: "parallelogram";
|
|
813
|
-
pentagon: "pentagon";
|
|
814
825
|
pie: "pie";
|
|
815
826
|
pieWedge: "pieWedge";
|
|
816
827
|
plaque: "plaque";
|
|
817
828
|
plaqueTabs: "plaqueTabs";
|
|
818
|
-
plus: "plus";
|
|
819
829
|
quadArrow: "quadArrow";
|
|
820
830
|
quadArrowCallout: "quadArrowCallout";
|
|
821
831
|
rect: "rect";
|
|
822
|
-
ribbon: "ribbon";
|
|
823
832
|
ribbon2: "ribbon2";
|
|
824
833
|
rightArrow: "rightArrow";
|
|
825
834
|
rightArrowCallout: "rightArrowCallout";
|
|
@@ -847,11 +856,9 @@ export declare const inputShapeNodeSchema: z.ZodObject<{
|
|
|
847
856
|
star7: "star7";
|
|
848
857
|
star8: "star8";
|
|
849
858
|
stripedRightArrow: "stripedRightArrow";
|
|
850
|
-
sun: "sun";
|
|
851
859
|
swooshArrow: "swooshArrow";
|
|
852
860
|
teardrop: "teardrop";
|
|
853
861
|
trapezoid: "trapezoid";
|
|
854
|
-
triangle: "triangle";
|
|
855
862
|
upArrow: "upArrow";
|
|
856
863
|
upArrowCallout: "upArrowCallout";
|
|
857
864
|
upDownArrow: "upDownArrow";
|
|
@@ -988,12 +995,12 @@ export declare const inputChartNodeSchema: z.ZodObject<{
|
|
|
988
995
|
}>>;
|
|
989
996
|
type: z.ZodLiteral<"chart">;
|
|
990
997
|
chartType: z.ZodEnum<{
|
|
998
|
+
radar: "radar";
|
|
991
999
|
line: "line";
|
|
992
1000
|
pie: "pie";
|
|
993
1001
|
bar: "bar";
|
|
994
1002
|
area: "area";
|
|
995
1003
|
doughnut: "doughnut";
|
|
996
|
-
radar: "radar";
|
|
997
1004
|
}>;
|
|
998
1005
|
data: z.ZodArray<z.ZodObject<{
|
|
999
1006
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1333,9 +1340,9 @@ export declare const inputFlowNodeSchema: z.ZodObject<{
|
|
|
1333
1340
|
color: z.ZodOptional<z.ZodString>;
|
|
1334
1341
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1335
1342
|
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
1336
|
-
none: "none";
|
|
1337
1343
|
diamond: "diamond";
|
|
1338
1344
|
triangle: "triangle";
|
|
1345
|
+
none: "none";
|
|
1339
1346
|
arrow: "arrow";
|
|
1340
1347
|
oval: "oval";
|
|
1341
1348
|
stealth: "stealth";
|
|
@@ -1593,9 +1600,9 @@ export declare const inputLineNodeSchema: z.ZodObject<{
|
|
|
1593
1600
|
}>>;
|
|
1594
1601
|
beginArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1595
1602
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1596
|
-
none: "none";
|
|
1597
1603
|
diamond: "diamond";
|
|
1598
1604
|
triangle: "triangle";
|
|
1605
|
+
none: "none";
|
|
1599
1606
|
arrow: "arrow";
|
|
1600
1607
|
oval: "oval";
|
|
1601
1608
|
stealth: "stealth";
|
|
@@ -1603,9 +1610,9 @@ export declare const inputLineNodeSchema: z.ZodObject<{
|
|
|
1603
1610
|
}, z.core.$strip>]>>;
|
|
1604
1611
|
endArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
1605
1612
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1606
|
-
none: "none";
|
|
1607
1613
|
diamond: "diamond";
|
|
1608
1614
|
triangle: "triangle";
|
|
1615
|
+
none: "none";
|
|
1609
1616
|
arrow: "arrow";
|
|
1610
1617
|
oval: "oval";
|
|
1611
1618
|
stealth: "stealth";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputSchema.d.ts","sourceRoot":"","sources":["../../src/parseXml/inputSchema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAuCL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"inputSchema.d.ts","sourceRoot":"","sources":["../../src/parseXml/inputSchema.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Used by `parseXml` to validate parsed XML input.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
import { lengthSchema, paddingSchema, borderStyleSchema, borderDashSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, chartTypeSchema, chartDataSchema, liNodeSchema, radarStyleSchema, bulletNumberTypeSchema, timelineDirectionSchema, timelineItemSchema, matrixAxisSchema, matrixQuadrantsSchema, matrixItemSchema, treeLayoutSchema, treeNodeShapeSchema, treeConnectorStyleSchema, flowDirectionSchema, flowNodeItemSchema, flowConnectionSchema, flowConnectorStyleSchema, processArrowDirectionSchema, processArrowStepSchema, pyramidDirectionSchema, pyramidLevelSchema, lineArrowSchema, underlineSchema, backgroundImageSchema, iconNameSchema, iconColorSchema, alignSelfSchema, positionTypeSchema, flexWrapSchema, } from "../types.js";
|
|
8
|
+
import { lengthSchema, paddingSchema, borderStyleSchema, borderDashSchema, fillStyleSchema, shadowStyleSchema, alignItemsSchema, justifyContentSchema, shapeTypeSchema, tableColumnSchema, tableRowSchema, chartTypeSchema, chartDataSchema, liNodeSchema, radarStyleSchema, bulletNumberTypeSchema, timelineDirectionSchema, timelineItemSchema, matrixAxisSchema, matrixQuadrantsSchema, matrixItemSchema, treeLayoutSchema, treeNodeShapeSchema, treeConnectorStyleSchema, flowDirectionSchema, flowNodeItemSchema, flowConnectionSchema, flowConnectorStyleSchema, processArrowDirectionSchema, processArrowStepSchema, pyramidDirectionSchema, pyramidLevelSchema, lineArrowSchema, underlineSchema, backgroundImageSchema, iconNameSchema, iconColorSchema, iconVariantSchema, alignSelfSchema, positionTypeSchema, flexWrapSchema, } from "../types.js";
|
|
9
9
|
// ===== Base Node Schema =====
|
|
10
10
|
const inputBaseNodeSchema = z.object({
|
|
11
11
|
w: lengthSchema.optional(),
|
|
@@ -93,6 +93,8 @@ export const inputIconNodeSchema = inputBaseNodeSchema.extend({
|
|
|
93
93
|
name: iconNameSchema,
|
|
94
94
|
size: z.number().positive().max(1024).optional(),
|
|
95
95
|
color: iconColorSchema,
|
|
96
|
+
variant: iconVariantSchema,
|
|
97
|
+
bgColor: iconColorSchema,
|
|
96
98
|
});
|
|
97
99
|
export const inputTableNodeSchema = inputBaseNodeSchema.extend({
|
|
98
100
|
type: z.literal("table"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseXml.d.ts","sourceRoot":"","sources":["../../src/parseXml/parseXml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA6B3C,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAgB,MAAM,EAAE,MAAM,EAAE,CAAC;gBACrB,MAAM,EAAE,MAAM,EAAE;CAM7B;
|
|
1
|
+
{"version":3,"file":"parseXml.d.ts","sourceRoot":"","sources":["../../src/parseXml/parseXml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA6B3C,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAgB,MAAM,EAAE,MAAM,EAAE,CAAC;gBACrB,MAAM,EAAE,MAAM,EAAE;CAM7B;AAm6BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,EAAE,CAiCrD"}
|
|
@@ -704,11 +704,14 @@ function convertPomNode(nodeType, tagName, attrs, childElements, textContent, er
|
|
|
704
704
|
if (!CONTAINER_TYPES.has(nodeType)) {
|
|
705
705
|
validateLeafNode(nodeType, result, errors);
|
|
706
706
|
}
|
|
707
|
-
// Normalize icon color: add # prefix if missing
|
|
708
|
-
if (nodeType === "icon"
|
|
709
|
-
typeof result.color === "string" &&
|
|
710
|
-
|
|
711
|
-
|
|
707
|
+
// Normalize icon color / bgColor: add # prefix if missing
|
|
708
|
+
if (nodeType === "icon") {
|
|
709
|
+
if (typeof result.color === "string" && !result.color.startsWith("#")) {
|
|
710
|
+
result.color = `#${result.color}`;
|
|
711
|
+
}
|
|
712
|
+
if (typeof result.bgColor === "string" && !result.bgColor.startsWith("#")) {
|
|
713
|
+
result.bgColor = `#${result.bgColor}`;
|
|
714
|
+
}
|
|
712
715
|
}
|
|
713
716
|
return result;
|
|
714
717
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/registry/definitions/icon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/registry/definitions/icon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,eAAO,MAAM,WAAW,EAAE,cAwDzB,CAAC"}
|
|
@@ -6,14 +6,18 @@ export const iconNodeDef = {
|
|
|
6
6
|
category: "leaf",
|
|
7
7
|
applyYogaStyle(node, yn) {
|
|
8
8
|
const n = node;
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const iconSize = n.size ?? 24;
|
|
10
|
+
// variant 指定時はアイコンサイズ + パディング分を全体サイズとする
|
|
11
|
+
const totalSize = n.variant ? Math.ceil(iconSize * 1.75) : iconSize;
|
|
12
|
+
yn.setMeasureFunc(() => ({ width: totalSize, height: totalSize }));
|
|
11
13
|
},
|
|
12
14
|
toPositioned(pom, absoluteX, absoluteY, layout, ctx) {
|
|
13
15
|
const n = pom;
|
|
14
|
-
const
|
|
16
|
+
const iconSize = n.size ?? 24;
|
|
17
|
+
const rasterSize = Math.max(Math.ceil(n.variant ? iconSize : layout.width), Math.ceil(n.variant ? iconSize : layout.height), iconSize);
|
|
15
18
|
const iconImageData = rasterizeIcon(n.name, rasterSize, n.color ?? "#000000", ctx.iconRasterCache);
|
|
16
|
-
|
|
19
|
+
// variant 指定時はアイコンを中央に配置
|
|
20
|
+
const positioned = {
|
|
17
21
|
...omitYogaNode(n),
|
|
18
22
|
x: absoluteX,
|
|
19
23
|
y: absoluteY,
|
|
@@ -21,6 +25,24 @@ export const iconNodeDef = {
|
|
|
21
25
|
h: layout.height,
|
|
22
26
|
iconImageData,
|
|
23
27
|
};
|
|
28
|
+
if (n.variant) {
|
|
29
|
+
const totalSize = Math.ceil(iconSize * 1.75);
|
|
30
|
+
// 背景図形は totalSize の正方形として、layout 領域の中央に配置
|
|
31
|
+
const bgOffsetX = (layout.width - totalSize) / 2;
|
|
32
|
+
const bgOffsetY = (layout.height - totalSize) / 2;
|
|
33
|
+
positioned.bgX = absoluteX + bgOffsetX;
|
|
34
|
+
positioned.bgY = absoluteY + bgOffsetY;
|
|
35
|
+
positioned.bgW = totalSize;
|
|
36
|
+
positioned.bgH = totalSize;
|
|
37
|
+
// アイコンは背景図形の中央に配置
|
|
38
|
+
const iconOffsetX = (layout.width - iconSize) / 2;
|
|
39
|
+
const iconOffsetY = (layout.height - iconSize) / 2;
|
|
40
|
+
positioned.iconX = absoluteX + iconOffsetX;
|
|
41
|
+
positioned.iconY = absoluteY + iconOffsetY;
|
|
42
|
+
positioned.iconW = iconSize;
|
|
43
|
+
positioned.iconH = iconSize;
|
|
44
|
+
}
|
|
45
|
+
return positioned;
|
|
24
46
|
},
|
|
25
47
|
render(node, ctx) {
|
|
26
48
|
renderIconNode(node, ctx);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpE,wBAAgB,cAAc,CAC5B,IAAI,EAAE,kBAAkB,EACxB,GAAG,EAAE,aAAa,GACjB,IAAI,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/renderPptx/nodes/icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,KAAK,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpE,wBAAgB,cAAc,CAC5B,IAAI,EAAE,kBAAkB,EACxB,GAAG,EAAE,aAAa,GACjB,IAAI,CA6BN"}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { pxToIn } from "../units.js";
|
|
2
2
|
export function renderIconNode(node, ctx) {
|
|
3
|
+
// variant 指定時は背景図形を描画
|
|
4
|
+
if (node.variant) {
|
|
5
|
+
const isCircle = node.variant.startsWith("circle");
|
|
6
|
+
const isFilled = node.variant.endsWith("-filled");
|
|
7
|
+
const bgColor = node.bgColor ?? "#E0E0E0";
|
|
8
|
+
const colorValue = bgColor.replace(/^#/, "");
|
|
9
|
+
const shapeType = isCircle ? "ellipse" : "roundRect";
|
|
10
|
+
const shapeOptions = {
|
|
11
|
+
x: pxToIn(node.bgX ?? node.x),
|
|
12
|
+
y: pxToIn(node.bgY ?? node.y),
|
|
13
|
+
w: pxToIn(node.bgW ?? node.w),
|
|
14
|
+
h: pxToIn(node.bgH ?? node.h),
|
|
15
|
+
fill: isFilled ? { color: colorValue } : { type: "none" },
|
|
16
|
+
line: isFilled ? undefined : { color: colorValue, width: 1.5 },
|
|
17
|
+
rectRadius: isCircle ? undefined : 0.1,
|
|
18
|
+
};
|
|
19
|
+
ctx.slide.addShape(shapeType, shapeOptions);
|
|
20
|
+
}
|
|
3
21
|
ctx.slide.addImage({
|
|
4
22
|
data: node.iconImageData,
|
|
5
|
-
x: pxToIn(node.x),
|
|
6
|
-
y: pxToIn(node.y),
|
|
7
|
-
w: pxToIn(node.w),
|
|
8
|
-
h: pxToIn(node.h),
|
|
23
|
+
x: pxToIn(node.iconX ?? node.x),
|
|
24
|
+
y: pxToIn(node.iconY ?? node.y),
|
|
25
|
+
w: pxToIn(node.iconW ?? node.w),
|
|
26
|
+
h: pxToIn(node.iconH ?? node.h),
|
|
9
27
|
});
|
|
10
28
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -133,7 +133,20 @@ export declare const justifyContentSchema: z.ZodEnum<{
|
|
|
133
133
|
}>;
|
|
134
134
|
export declare const shapeTypeSchema: z.ZodEnum<{
|
|
135
135
|
cloud: "cloud";
|
|
136
|
+
diamond: "diamond";
|
|
137
|
+
donut: "donut";
|
|
138
|
+
ellipse: "ellipse";
|
|
139
|
+
frame: "frame";
|
|
140
|
+
funnel: "funnel";
|
|
136
141
|
heart: "heart";
|
|
142
|
+
hexagon: "hexagon";
|
|
143
|
+
moon: "moon";
|
|
144
|
+
octagon: "octagon";
|
|
145
|
+
pentagon: "pentagon";
|
|
146
|
+
plus: "plus";
|
|
147
|
+
ribbon: "ribbon";
|
|
148
|
+
sun: "sun";
|
|
149
|
+
triangle: "triangle";
|
|
137
150
|
accentBorderCallout1: "accentBorderCallout1";
|
|
138
151
|
accentBorderCallout2: "accentBorderCallout2";
|
|
139
152
|
accentBorderCallout3: "accentBorderCallout3";
|
|
@@ -182,13 +195,10 @@ export declare const shapeTypeSchema: z.ZodEnum<{
|
|
|
182
195
|
curvedUpArrow: "curvedUpArrow";
|
|
183
196
|
decagon: "decagon";
|
|
184
197
|
diagStripe: "diagStripe";
|
|
185
|
-
diamond: "diamond";
|
|
186
198
|
dodecagon: "dodecagon";
|
|
187
|
-
donut: "donut";
|
|
188
199
|
doubleWave: "doubleWave";
|
|
189
200
|
downArrow: "downArrow";
|
|
190
201
|
downArrowCallout: "downArrowCallout";
|
|
191
|
-
ellipse: "ellipse";
|
|
192
202
|
ellipseRibbon: "ellipseRibbon";
|
|
193
203
|
ellipseRibbon2: "ellipseRibbon2";
|
|
194
204
|
flowChartAlternateProcess: "flowChartAlternateProcess";
|
|
@@ -221,13 +231,10 @@ export declare const shapeTypeSchema: z.ZodEnum<{
|
|
|
221
231
|
flowChartSummingJunction: "flowChartSummingJunction";
|
|
222
232
|
flowChartTerminator: "flowChartTerminator";
|
|
223
233
|
folderCorner: "folderCorner";
|
|
224
|
-
frame: "frame";
|
|
225
|
-
funnel: "funnel";
|
|
226
234
|
gear6: "gear6";
|
|
227
235
|
gear9: "gear9";
|
|
228
236
|
halfFrame: "halfFrame";
|
|
229
237
|
heptagon: "heptagon";
|
|
230
|
-
hexagon: "hexagon";
|
|
231
238
|
homePlate: "homePlate";
|
|
232
239
|
horizontalScroll: "horizontalScroll";
|
|
233
240
|
irregularSeal1: "irregularSeal1";
|
|
@@ -252,22 +259,17 @@ export declare const shapeTypeSchema: z.ZodEnum<{
|
|
|
252
259
|
mathMultiply: "mathMultiply";
|
|
253
260
|
mathNotEqual: "mathNotEqual";
|
|
254
261
|
mathPlus: "mathPlus";
|
|
255
|
-
moon: "moon";
|
|
256
262
|
noSmoking: "noSmoking";
|
|
257
263
|
nonIsoscelesTrapezoid: "nonIsoscelesTrapezoid";
|
|
258
264
|
notchedRightArrow: "notchedRightArrow";
|
|
259
|
-
octagon: "octagon";
|
|
260
265
|
parallelogram: "parallelogram";
|
|
261
|
-
pentagon: "pentagon";
|
|
262
266
|
pie: "pie";
|
|
263
267
|
pieWedge: "pieWedge";
|
|
264
268
|
plaque: "plaque";
|
|
265
269
|
plaqueTabs: "plaqueTabs";
|
|
266
|
-
plus: "plus";
|
|
267
270
|
quadArrow: "quadArrow";
|
|
268
271
|
quadArrowCallout: "quadArrowCallout";
|
|
269
272
|
rect: "rect";
|
|
270
|
-
ribbon: "ribbon";
|
|
271
273
|
ribbon2: "ribbon2";
|
|
272
274
|
rightArrow: "rightArrow";
|
|
273
275
|
rightArrowCallout: "rightArrowCallout";
|
|
@@ -295,11 +297,9 @@ export declare const shapeTypeSchema: z.ZodEnum<{
|
|
|
295
297
|
star7: "star7";
|
|
296
298
|
star8: "star8";
|
|
297
299
|
stripedRightArrow: "stripedRightArrow";
|
|
298
|
-
sun: "sun";
|
|
299
300
|
swooshArrow: "swooshArrow";
|
|
300
301
|
teardrop: "teardrop";
|
|
301
302
|
trapezoid: "trapezoid";
|
|
302
|
-
triangle: "triangle";
|
|
303
303
|
upArrow: "upArrow";
|
|
304
304
|
upArrowCallout: "upArrowCallout";
|
|
305
305
|
upDownArrow: "upDownArrow";
|
|
@@ -845,9 +845,9 @@ declare const imageNodeSchema: z.ZodObject<{
|
|
|
845
845
|
src: z.ZodString;
|
|
846
846
|
sizing: z.ZodOptional<z.ZodObject<{
|
|
847
847
|
type: z.ZodEnum<{
|
|
848
|
+
crop: "crop";
|
|
848
849
|
cover: "cover";
|
|
849
850
|
contain: "contain";
|
|
850
|
-
crop: "crop";
|
|
851
851
|
}>;
|
|
852
852
|
w: z.ZodOptional<z.ZodNumber>;
|
|
853
853
|
h: z.ZodOptional<z.ZodNumber>;
|
|
@@ -870,6 +870,12 @@ export declare const iconNameSchema: z.ZodEnum<{
|
|
|
870
870
|
[x: string]: string;
|
|
871
871
|
}>;
|
|
872
872
|
export declare const iconColorSchema: z.ZodOptional<z.ZodString>;
|
|
873
|
+
export declare const iconVariantSchema: z.ZodOptional<z.ZodEnum<{
|
|
874
|
+
"circle-filled": "circle-filled";
|
|
875
|
+
"circle-outlined": "circle-outlined";
|
|
876
|
+
"square-filled": "square-filled";
|
|
877
|
+
"square-outlined": "square-outlined";
|
|
878
|
+
}>>;
|
|
873
879
|
declare const iconNodeSchema: z.ZodObject<{
|
|
874
880
|
yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
|
|
875
881
|
w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
|
|
@@ -936,6 +942,13 @@ declare const iconNodeSchema: z.ZodObject<{
|
|
|
936
942
|
}>;
|
|
937
943
|
size: z.ZodOptional<z.ZodNumber>;
|
|
938
944
|
color: z.ZodOptional<z.ZodString>;
|
|
945
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
946
|
+
"circle-filled": "circle-filled";
|
|
947
|
+
"circle-outlined": "circle-outlined";
|
|
948
|
+
"square-filled": "square-filled";
|
|
949
|
+
"square-outlined": "square-outlined";
|
|
950
|
+
}>>;
|
|
951
|
+
bgColor: z.ZodOptional<z.ZodString>;
|
|
939
952
|
}, z.core.$strip>;
|
|
940
953
|
export type IconNode = z.infer<typeof iconNodeSchema> & {
|
|
941
954
|
yogaNode?: YogaNode;
|
|
@@ -1152,7 +1165,20 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1152
1165
|
type: z.ZodLiteral<"shape">;
|
|
1153
1166
|
shapeType: z.ZodEnum<{
|
|
1154
1167
|
cloud: "cloud";
|
|
1168
|
+
diamond: "diamond";
|
|
1169
|
+
donut: "donut";
|
|
1170
|
+
ellipse: "ellipse";
|
|
1171
|
+
frame: "frame";
|
|
1172
|
+
funnel: "funnel";
|
|
1155
1173
|
heart: "heart";
|
|
1174
|
+
hexagon: "hexagon";
|
|
1175
|
+
moon: "moon";
|
|
1176
|
+
octagon: "octagon";
|
|
1177
|
+
pentagon: "pentagon";
|
|
1178
|
+
plus: "plus";
|
|
1179
|
+
ribbon: "ribbon";
|
|
1180
|
+
sun: "sun";
|
|
1181
|
+
triangle: "triangle";
|
|
1156
1182
|
accentBorderCallout1: "accentBorderCallout1";
|
|
1157
1183
|
accentBorderCallout2: "accentBorderCallout2";
|
|
1158
1184
|
accentBorderCallout3: "accentBorderCallout3";
|
|
@@ -1201,13 +1227,10 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1201
1227
|
curvedUpArrow: "curvedUpArrow";
|
|
1202
1228
|
decagon: "decagon";
|
|
1203
1229
|
diagStripe: "diagStripe";
|
|
1204
|
-
diamond: "diamond";
|
|
1205
1230
|
dodecagon: "dodecagon";
|
|
1206
|
-
donut: "donut";
|
|
1207
1231
|
doubleWave: "doubleWave";
|
|
1208
1232
|
downArrow: "downArrow";
|
|
1209
1233
|
downArrowCallout: "downArrowCallout";
|
|
1210
|
-
ellipse: "ellipse";
|
|
1211
1234
|
ellipseRibbon: "ellipseRibbon";
|
|
1212
1235
|
ellipseRibbon2: "ellipseRibbon2";
|
|
1213
1236
|
flowChartAlternateProcess: "flowChartAlternateProcess";
|
|
@@ -1240,13 +1263,10 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1240
1263
|
flowChartSummingJunction: "flowChartSummingJunction";
|
|
1241
1264
|
flowChartTerminator: "flowChartTerminator";
|
|
1242
1265
|
folderCorner: "folderCorner";
|
|
1243
|
-
frame: "frame";
|
|
1244
|
-
funnel: "funnel";
|
|
1245
1266
|
gear6: "gear6";
|
|
1246
1267
|
gear9: "gear9";
|
|
1247
1268
|
halfFrame: "halfFrame";
|
|
1248
1269
|
heptagon: "heptagon";
|
|
1249
|
-
hexagon: "hexagon";
|
|
1250
1270
|
homePlate: "homePlate";
|
|
1251
1271
|
horizontalScroll: "horizontalScroll";
|
|
1252
1272
|
irregularSeal1: "irregularSeal1";
|
|
@@ -1271,22 +1291,17 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1271
1291
|
mathMultiply: "mathMultiply";
|
|
1272
1292
|
mathNotEqual: "mathNotEqual";
|
|
1273
1293
|
mathPlus: "mathPlus";
|
|
1274
|
-
moon: "moon";
|
|
1275
1294
|
noSmoking: "noSmoking";
|
|
1276
1295
|
nonIsoscelesTrapezoid: "nonIsoscelesTrapezoid";
|
|
1277
1296
|
notchedRightArrow: "notchedRightArrow";
|
|
1278
|
-
octagon: "octagon";
|
|
1279
1297
|
parallelogram: "parallelogram";
|
|
1280
|
-
pentagon: "pentagon";
|
|
1281
1298
|
pie: "pie";
|
|
1282
1299
|
pieWedge: "pieWedge";
|
|
1283
1300
|
plaque: "plaque";
|
|
1284
1301
|
plaqueTabs: "plaqueTabs";
|
|
1285
|
-
plus: "plus";
|
|
1286
1302
|
quadArrow: "quadArrow";
|
|
1287
1303
|
quadArrowCallout: "quadArrowCallout";
|
|
1288
1304
|
rect: "rect";
|
|
1289
|
-
ribbon: "ribbon";
|
|
1290
1305
|
ribbon2: "ribbon2";
|
|
1291
1306
|
rightArrow: "rightArrow";
|
|
1292
1307
|
rightArrowCallout: "rightArrowCallout";
|
|
@@ -1314,11 +1329,9 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1314
1329
|
star7: "star7";
|
|
1315
1330
|
star8: "star8";
|
|
1316
1331
|
stripedRightArrow: "stripedRightArrow";
|
|
1317
|
-
sun: "sun";
|
|
1318
1332
|
swooshArrow: "swooshArrow";
|
|
1319
1333
|
teardrop: "teardrop";
|
|
1320
1334
|
trapezoid: "trapezoid";
|
|
1321
|
-
triangle: "triangle";
|
|
1322
1335
|
upArrow: "upArrow";
|
|
1323
1336
|
upArrowCallout: "upArrowCallout";
|
|
1324
1337
|
upDownArrow: "upDownArrow";
|
|
@@ -1395,12 +1408,12 @@ declare const shapeNodeSchema: z.ZodObject<{
|
|
|
1395
1408
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
1396
1409
|
}, z.core.$strip>;
|
|
1397
1410
|
export declare const chartTypeSchema: z.ZodEnum<{
|
|
1411
|
+
radar: "radar";
|
|
1398
1412
|
line: "line";
|
|
1399
1413
|
pie: "pie";
|
|
1400
1414
|
bar: "bar";
|
|
1401
1415
|
area: "area";
|
|
1402
1416
|
doughnut: "doughnut";
|
|
1403
|
-
radar: "radar";
|
|
1404
1417
|
}>;
|
|
1405
1418
|
export declare const radarStyleSchema: z.ZodEnum<{
|
|
1406
1419
|
standard: "standard";
|
|
@@ -1474,12 +1487,12 @@ declare const chartNodeSchema: z.ZodObject<{
|
|
|
1474
1487
|
}>>;
|
|
1475
1488
|
type: z.ZodLiteral<"chart">;
|
|
1476
1489
|
chartType: z.ZodEnum<{
|
|
1490
|
+
radar: "radar";
|
|
1477
1491
|
line: "line";
|
|
1478
1492
|
pie: "pie";
|
|
1479
1493
|
bar: "bar";
|
|
1480
1494
|
area: "area";
|
|
1481
1495
|
doughnut: "doughnut";
|
|
1482
|
-
radar: "radar";
|
|
1483
1496
|
}>;
|
|
1484
1497
|
data: z.ZodArray<z.ZodObject<{
|
|
1485
1498
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2011,9 +2024,9 @@ export declare const flowConnectorStyleSchema: z.ZodObject<{
|
|
|
2011
2024
|
color: z.ZodOptional<z.ZodString>;
|
|
2012
2025
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2013
2026
|
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
2014
|
-
none: "none";
|
|
2015
2027
|
diamond: "diamond";
|
|
2016
2028
|
triangle: "triangle";
|
|
2029
|
+
none: "none";
|
|
2017
2030
|
arrow: "arrow";
|
|
2018
2031
|
oval: "oval";
|
|
2019
2032
|
stealth: "stealth";
|
|
@@ -2116,9 +2129,9 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2116
2129
|
color: z.ZodOptional<z.ZodString>;
|
|
2117
2130
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2118
2131
|
arrowType: z.ZodOptional<z.ZodEnum<{
|
|
2119
|
-
none: "none";
|
|
2120
2132
|
diamond: "diamond";
|
|
2121
2133
|
triangle: "triangle";
|
|
2134
|
+
none: "none";
|
|
2122
2135
|
arrow: "arrow";
|
|
2123
2136
|
oval: "oval";
|
|
2124
2137
|
stealth: "stealth";
|
|
@@ -2131,9 +2144,9 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2131
2144
|
export type FlowNode = z.infer<typeof flowNodeSchema>;
|
|
2132
2145
|
export declare const lineArrowSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2133
2146
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2134
|
-
none: "none";
|
|
2135
2147
|
diamond: "diamond";
|
|
2136
2148
|
triangle: "triangle";
|
|
2149
|
+
none: "none";
|
|
2137
2150
|
arrow: "arrow";
|
|
2138
2151
|
oval: "oval";
|
|
2139
2152
|
stealth: "stealth";
|
|
@@ -2218,9 +2231,9 @@ declare const lineNodeSchema: z.ZodObject<{
|
|
|
2218
2231
|
}>>;
|
|
2219
2232
|
beginArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2220
2233
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2221
|
-
none: "none";
|
|
2222
2234
|
diamond: "diamond";
|
|
2223
2235
|
triangle: "triangle";
|
|
2236
|
+
none: "none";
|
|
2224
2237
|
arrow: "arrow";
|
|
2225
2238
|
oval: "oval";
|
|
2226
2239
|
stealth: "stealth";
|
|
@@ -2228,9 +2241,9 @@ declare const lineNodeSchema: z.ZodObject<{
|
|
|
2228
2241
|
}, z.core.$strip>]>>;
|
|
2229
2242
|
endArrow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2230
2243
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2231
|
-
none: "none";
|
|
2232
2244
|
diamond: "diamond";
|
|
2233
2245
|
triangle: "triangle";
|
|
2246
|
+
none: "none";
|
|
2234
2247
|
arrow: "arrow";
|
|
2235
2248
|
oval: "oval";
|
|
2236
2249
|
stealth: "stealth";
|
|
@@ -2294,6 +2307,14 @@ export type PositionedNode = (TextNode & PositionedBase) | (UlNode & PositionedB
|
|
|
2294
2307
|
children: PositionedLayerChild[];
|
|
2295
2308
|
}) | (IconNode & PositionedBase & {
|
|
2296
2309
|
iconImageData: string;
|
|
2310
|
+
bgX?: number;
|
|
2311
|
+
bgY?: number;
|
|
2312
|
+
bgW?: number;
|
|
2313
|
+
bgH?: number;
|
|
2314
|
+
iconX?: number;
|
|
2315
|
+
iconY?: number;
|
|
2316
|
+
iconW?: number;
|
|
2317
|
+
iconH?: number;
|
|
2297
2318
|
});
|
|
2298
2319
|
declare const masterTextObjectSchema: z.ZodObject<{
|
|
2299
2320
|
type: z.ZodLiteral<"text">;
|