Skip to content
New issue

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

[Feature Request] add name:'.....' to objects #724

Closed
Offbeatmammal opened this issue May 1, 2020 · 1 comment
Closed

[Feature Request] add name:'.....' to objects #724

Offbeatmammal opened this issue May 1, 2020 · 1 comment

Comments

@Offbeatmammal
Copy link

Offbeatmammal commented May 1, 2020

when creating an object the name always defaults to "object n" and allocates n sequentially.

it would be a handy option to be able to override the default name with eg:

slide.addShape(
  pptx.ShapeType.hexagon,
  {shape_name:'myHex01', x:0.33, y: 4.51, w: 1.6, h: 1.4, rotate: 270, fill:{ type:'solid', color:'DE1D16' }}
)
@gitbrent gitbrent added this to the 3.3.0 milestone May 24, 2020
@gitbrent
Copy link
Owner

gitbrent commented Jun 28, 2020

Feature added:

Screen Shot 2020-06-28 at 12 46 13

slide.addShape(
  pptx.shapes.RIGHT_TRIANGLE,
  { x: 0.4, y: 4.3, w: 6.0, h: 3.0, shapeName:'First Right Triangle' }
);

Screen Shot 2020-06-28 at 12 44 16

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

No branches or pull requests

2 participants