MCPcopy Create free account
hub / github.com/acking-you/static_flow / addSectionSlide

Function addSectionSlide

docs/create-pptx.js:66–85  ·  view source on GitHub ↗
(actLabel, title, subtitle)

Source from the content-addressed store, hash-verified

64
65// Helper: section divider slide
66function addSectionSlide(actLabel, title, subtitle) {
67 let s = pres.addSlide();
68 s.background = { color: C.bgCard };
69 s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.cyan } });
70 s.addText(actLabel, {
71 x: 0.8, y: 1.5, w: 8.4, h: 0.5, fontSize: 14, fontFace: FONT_H,
72 color: C.cyan, align: "left", margin: 0, charSpacing: 4,
73 });
74 s.addText(title, {
75 x: 0.8, y: 2.1, w: 8.4, h: 1.2, fontSize: 36, fontFace: FONT_H,
76 color: C.white, bold: true, align: "left", margin: 0,
77 });
78 if (subtitle) {
79 s.addText(subtitle, {
80 x: 0.8, y: 3.4, w: 8.4, h: 0.6, fontSize: 16, fontFace: FONT_B,
81 color: C.textSecondary, align: "left", margin: 0,
82 });
83 }
84 return s;
85}
86
87// Helper: content slide with title
88function addContentSlide(title) {

Callers 1

create-pptx.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected