PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Bullet Gap Differs from Manually Adding

Open Cyan005 opened this issue 7 years ago • 2 comments

I was browsing around and reviewing all of the documentation I could, but couldn't find any information regarding the following:

When adding a bullet in a table cell, the space between the bullet and text is much larger than the default PowerPoint.

Examples:

Normal Text image

Normal Bullet image

PptxGenJS Bullet image

I can't find any additional information on if there is something coded that can reduce that gap. Any help would be appreciated.

Thank you!

Cyan005 avatar Feb 20 '19 20:02 Cyan005

You can also use the Setter function from #214 so you can control the spacing from your script

adrienco88 avatar Oct 30 '19 12:10 adrienco88

Thanks for the issue @Cyan005

Bullet left margin indent can now be controlled with a new option marginPt

slide.addText("Bullets with marginPt:", { x:7.0, y:3.65, w:'40%', h:0.3, margin:0, color:pptx.colors.ACCENT1 });
slide.addText(
    [
        { text: 'bullet marginPt:10', options: { bullet: { marginPt: 10 } } },
        { text: 'bullet marginPt:30', options: { bullet: { marginPt: 30 } } }
    ],
    { x:7.0, y:3.95, w:5.75, h:0.5, margin:0.1, fontFace:'Arial', fontSize:12 }
);

Screen Shot 2020-05-10 at 16 42 35

gitbrent avatar May 10 '20 21:05 gitbrent