Coder Social home page Coder Social logo

Comments (6)

singerla avatar singerla commented on August 15, 2024 1

Hi! I'm sorry, animations are not yet supported. I'll take a look!

from pptx-automizer.

singerla avatar singerla commented on August 15, 2024 1

Huh, that's complicated...

There is <p:bldLst>and <p:timing> that needs to get in sync with removeElement... The latter is nested deeply and I have no idea how this will look when there are lots of animations on a slide.

What about slide.hideElement? This function does not exist yet, but I could imagine there is only hidden that needs to be update:

<p:sp>
  <p:nvSpPr>
    <p:cNvPr id="11" name="Drum" hidden="1">
      <a:extLst>
        ///

What do yo think? This will be the same effect as ALT+F10 and toggle the eye-symbol right besides a shape.

from pptx-automizer.

singerla avatar singerla commented on August 15, 2024 1

This should do the job:

  pres.addSlide('animations', 1, (slide) => {
    slide.modifyElement('Drum', (shape) => {
      // You need to update the 'hidden' attribute with a callback: 
      shape.getElementsByTagName('p:cNvPr').item(0).setAttribute('hidden', '1');
      // XmlHelper.dump(shape);
    });
  });

Feel free to create a helper & PR from this! 😄

from pptx-automizer.

singerla avatar singerla commented on August 15, 2024 1

I'm happy to help 😄

from pptx-automizer.

ljcsilvert avatar ljcsilvert commented on August 15, 2024

I thought about that but I didn't saw the function in the documentation but yes it would work that would be great :)
Do you think it would be possible to implement the function soon? :)

from pptx-automizer.

ljcsilvert avatar ljcsilvert commented on August 15, 2024

It works really well thank you a lot you're the best 😀
I'll try to do a PR :)

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.