Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bullet Gap Differs from Manually Adding #504

Closed
Cyan005 opened this issue Feb 20, 2019 · 2 comments
Closed

Bullet Gap Differs from Manually Adding #504

Cyan005 opened this issue Feb 20, 2019 · 2 comments
Assignees
Milestone

Comments

@Cyan005
Copy link

Cyan005 commented Feb 20, 2019

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!

@adrienco88
Copy link

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

@gitbrent gitbrent added this to the 3.2.0 milestone May 10, 2020
@gitbrent gitbrent self-assigned this May 10, 2020
@gitbrent
Copy link
Owner

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants