terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.42k stars 410 forks source link

[pptx] split by container #1440

Open bo-ku-ra opened 1 year ago

bo-ku-ra commented 1 year ago

outputed .pptx

image

easy to fine-tune on PowerPoint

alixander commented 1 year ago

@bo-ku-ra sorry don't understand this one. what's the request?

bo-ku-ra commented 1 year ago

@alixander e.g. i want to edit d2 outputed pptx file by 'powerpoint'.

but i can't edit them on the d2's outputed pptx file.

image

alixander commented 1 year ago

ohh i see. this is actually very possible, since we have the bounds of all the objects and can crop each. but i think it's quite niche, will see if more demand for it before building, or leave it as a good first issue for someone

bo-ku-ra commented 1 year ago

when powerpoint is used for work, it must create with our corporate theme (template). if i don't use it for work, an outputed svg is sufficient. the meaning of d2's pptx output feature seems ambiguous. (was pptx-feauture quite niche?)

bo-ku-ra commented 1 year ago

d2 v0.5.1 has the ability to import. so i can easily create pptx files from d2.

layers:{
  1{...@1}
  2{...@2}
  3{...@3}
  4{...@4}
  5{...@5}
  6{...@6}
  7{...@7}
  8{...@8}
  9{...@9}
}