Comments (6)
Hi! I'm sorry, animations are not yet supported. I'll take a look!
from pptx-automizer.
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.
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.
I'm happy to help 😄
from pptx-automizer.
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.
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)
- Bulleted Lists HOT 4
- Support for charts getting data from embedded excel sheets (rather than 'standard' charts) HOT 7
- 'Could not find file ppt/slides/slide{x}.xml' HOT 7
- Unable to modify empty table HOT 1
- Modfying Text within a table HOT 6
- idea: positioning HOT 4
- setCreationIds (and therefore things like .getInfo) Errors uncleanly on files with no creationIDs set HOT 1
- Pres/Slide Dimensions HOT 5
- "replaceText" not working HOT 6
- [Question] Getting element's text. HOT 3
- [Feat?] make slide masters/layouts editable. HOT 2
- Modify slide backgrounds HOT 5
- Swap element in slide master? HOT 5
- Reorder and delete slide masters? HOT 2
- Not all text replaced: modify.replaceText HOT 2
- Output yields a file as large as my template, however, it should be removing slides, and just a resave yields a fraction of the size. HOT 7
- Copy slide master related background images on autoImportSlideMaster doesn't work HOT 4
- Updating Chart Title and formatCode HOT 4
- Set formatCode for chart datalabels HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pptx-automizer.