We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
Thanks for the beautiful control, is there an option to draw a line diagonally.
Regards Anwar
The text was updated successfully, but these errors were encountered:
Hi @vanekar , var pptx = new PptxGenJS(); pptx.setLayout('LAYOUT_WIDE');
var slide = pptx.addNewSlide();
// Misc Shapes slide.addShape(pptx.shapes.LINE, { x:0, y:0, w:13.33, h:7.5, line:'FF0000'});
pptx.save('Demo-Shapes');
and you will get
to get the right x,y,h,w you can adjust the line manually in your pptx document then use 'Size and Position'
Sorry, something went wrong.
I've added "Diagonal Line" to the README and the demo.
You can draw a box as shown above and plot a line between the corners, or draw an actual line and rotate it:
slide.addShape(pptx.shapes.LINE, { x:0, y:0, w:5.0, h:0, line:'FF0000', rotate:45 });
Fixes for addShape and Fix for Issue #75
a4e6fa6
gitbrent
No branches or pull requests
Hello
Thanks for the beautiful control, is there an option to draw a line diagonally.
Regards
Anwar
The text was updated successfully, but these errors were encountered: