Coder Social home page Coder Social logo

Comments (5)

singerla avatar singerla commented on August 15, 2024

@MP70: Could you please provide a test case to this branch and probably some example code with your required parameters?

I would like to write some docs on how to create a new modifier. :)

from pptx-automizer.

MP70 avatar MP70 commented on August 15, 2024

Have added a little test. It's only a indicator, there may be a neater way to arrange it, like making the background another type like shape, table etc.

from pptx-automizer.

MP70 avatar MP70 commented on August 15, 2024

Currently manually getting the <p:bg> / <p:bgPr> element, then modify like:

bg
.getElementsByTagName('a:solidFill')[0]
.getElementsByTagName('a:schemeClr')[0]
.setAttribute('val', 'accent6'); // Change 'accent6' to your desired color value

from pptx-automizer.

singerla avatar singerla commented on August 15, 2024

Hi @MP70, please check out modify-master-background-color.test.ts to see a basic example.

from pptx-automizer.

singerla avatar singerla commented on August 15, 2024

@MP70: It would be great if you could also test modify-master-background-image.test.ts with your real world stuff. It turned out that a slightly different approach is required for background images compared to "normal" image elements on a slide.

@creedmangrum: This might be useful for you, too.

I'm happy about feedback on this!

from pptx-automizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.