pptx-vanilla-viewer 3.50.0 → 3.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@ A release listed with no entries carried no Conventional Commit in this package'
|
|
|
7
7
|
scope: scripts/release-plan.mjs releases whenever any published file changes, not only on
|
|
8
8
|
conventional commits.
|
|
9
9
|
|
|
10
|
+
## [3.50.2](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.50.2) - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **pptx:** Stack the vanilla morph overlay runs in the plan's order ([91776a4](https://github.com/ChristopherVR/ooxml/commit/91776a4199f8e4a1ebf1fd8b13c5dd12b8a31ca1))
|
|
15
|
+
|
|
16
|
+
## [3.50.1](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.50.1) - 2026-10-23
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **xlsx:** Close the open code scanning alerts in core ([0f6b643](https://github.com/ChristopherVR/ooxml/commit/0f6b64306e57958a097caaf7085d63479766acb3))
|
|
21
|
+
|
|
22
|
+
### Testing
|
|
23
|
+
|
|
24
|
+
- **pptx:** Copy fixture Buffers by value in the chart save harnesses ([#181](https://github.com/ChristopherVR/ooxml/issues/181)) ([90ce9e4](https://github.com/ChristopherVR/ooxml/commit/90ce9e4704be388ef1ee8723c0b745c3457f07e7))
|
|
25
|
+
|
|
10
26
|
## [3.50.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-vanilla-viewer@3.50.0) - 2026-10-23
|
|
11
27
|
|
|
12
28
|
### Features
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var pptx=require('ooxml-ui/pptx'),dom=require('ooxml-ui/pptx/dom');var L="data-pptx-text-style-override";function
|
|
1
|
+
'use strict';var pptx=require('ooxml-ui/pptx'),dom=require('ooxml-ui/pptx/dom');var L="data-pptx-text-style-override";function q(n,o,a){dom.applyThreeViewTextStyle(n,a?.textStyle);let r=pptx.buildTextStyleOverrideCss(o,a?.textStyle),e=n.querySelector(`:scope > style[${L}]`);if(!r){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(L,""),n.prepend(e)),e.textContent=r;}var v="pptx-vanilla-presentation-keyframes",H="pptx-vanilla-slide-keyframes";function O(n){if(n.getElementById(v))return;let o=n.createElement("style");o.id=v,o.textContent=`${pptx.ANIMATION_KEYFRAMES_CSS}
|
|
2
2
|
${pptx.SLIDE_TRANSITION_KEYFRAMES_CSS}
|
|
3
|
-
${pptx.PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function
|
|
4
|
-
`),s.appendChild(
|
|
3
|
+
${pptx.PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function ie(n,o){let a=n.getElementById(H);if(!o){a?.remove();return}a||(a=n.createElement("style"),a.id=H,(n.head??n.documentElement).appendChild(a)),a.textContent=o;}function re(n,o,a,r){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let i=o.get(t);pptx.applyAnimationOpacity(e,i),e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";let d=a.has(t)||r.has(t);e.style.cursor=d?"pointer":"",e.toggleAttribute(pptx.PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,d),q(e,t,i);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let i=o.get(t);pptx.applyAnimationOpacity(e,i),e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";});}function E(n,o,a,r,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=a.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(r);for(let i of a.fragments)t.appendChild(G(n,o,a,i));return t}function G(n,o,a,r){let e=n.createElement("div");e.dataset.pptxTransitionFragment=r.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=r.clipPath,e.style.transformOrigin=r.transformOrigin,e.style.animationName=a.keyframesName,e.style.animationDuration=`${a.durationMs}ms`,e.style.animationTimingFunction=a.easing,e.style.animationDelay=`${r.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,i]of Object.entries(r.vars))e.style.setProperty(t,i);return e.appendChild(o.cloneNode(true)),e}function u(n,o,a,r,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(a),t.style.willChange="transform, opacity, clip-path, filter",r!=="none"&&(t.style.animation=r),t.appendChild(o),t}function A(n,o){n.style.background="none",n.style.backgroundColor="transparent";let a=new Set(o),r=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!a.has(t))){for(let i=e;i&&i!==n;)r.add(i),i=i.parentElement;for(let i of e.querySelectorAll("[data-element-id]"))r.add(i);}}for(let e of [...n.querySelectorAll("[data-element-id]")])r.has(e)||e.remove();return n}function B(n,o){return o.forEach((a,r)=>{let e=n.querySelector(`[data-element-id="${CSS.escape(a)}"]`);e&&(e.style.zIndex=String(r+1));}),n}var C=2;function b(n,o,a,r){return (r?.overlayLayers??[]).map((e,t)=>{let i=e.side==="outgoing"?o:a,d=e.elements.map(s=>s.id),m=u(n,B(A(i.cloneNode(true),d),d),C+t,"none",e.side==="outgoing"?"outgoing":"lifted");return e.side==="outgoing"?m.dataset.pptxMorphOutgoing="true":m.dataset.pptxMorphLifted="true",m})}function I(n,o,a,r){return r?r.crossfadeGroups.map((e,t)=>{let i=n.createElement("div");i.dataset.pptxMorphCrossfade=e.incoming.id,i.style.cssText=pptx.MORPH_CROSSFADE_GROUP_CSS_TEXT,i.style.zIndex=String(C+r.overlayLayers.length+t);let d=(m,s,l,y,g)=>{let p=u(n,A(m,[s]),y,g??"none",l);return l==="outgoing"?p.dataset.pptxMorphOutgoing="true":p.dataset.pptxMorphLifted="true",p.style.mixBlendMode=pptx.MORPH_CROSSFADE_HALF_BLEND_MODE,p};return i.append(d(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),d(a.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),i}):[]}function Ee(n){let{doc:o,stageWrap:a,outgoing:r,incoming:e,transition:t}=n;O(o);let i=pptx.resolveSlideTransition(t),d=pptx.resolveTransitionDurationMs(t),m=pptx.getFragmentedTransitionDescriptor(t.type,d,t.direction,t.spokes,t.pattern),s=o.createElement("div");s.className="pptxv-transition-overlay",s.dataset.pptxTransitionOverlay="",s.dataset.pptxTransitionOverlay="",s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="30";let l=t.type==="morph"?pptx.buildMorphTransitionPlan(n.outgoingSlide,n.incomingSlide,d,pptx.morphOptionToMode(t.morphOption)):void 0,y=i.outgoingOnTop?2:1,g=l||i.outgoingOnTop?1:2,p=b(o,r,e,l),_=!l&&m?.outgoing?E(o,r,m.outgoing,y,"outgoing"):u(o,r,y,i.outgoing,"outgoing"),f=!l&&m?.incoming?E(o,e,m.incoming,g,"incoming"):u(o,e,g,l?"none":i.incoming,"incoming"),D=I(o,r,e,l);if(l){f.dataset.pptxMorphIncoming="true";let c=o.createElement("style");c.textContent=[pptx.buildMorphScopedCss(l,"data-pptx-morph-incoming","incoming"),pptx.buildMorphScopedCss(l,"data-pptx-morph-outgoing","outgoing"),pptx.buildMorphScopedCss(l,"data-pptx-morph-lifted","lifted")].join(`
|
|
4
|
+
`),s.appendChild(c);}l?s.appendChild(f):s.append(_,f);for(let c of p)s.appendChild(c);for(let c of D)s.appendChild(c);a.appendChild(s);let M=false,x=()=>{M||(M=true,clearTimeout(R),s.remove(),n.onDone());},R=setTimeout(x,Math.max(0,d)+50);return x}exports.a=O;exports.b=ie;exports.c=re;exports.d=Ee;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ANIMATION_KEYFRAMES_CSS,SLIDE_TRANSITION_KEYFRAMES_CSS,PRESENTATION_HIT_TEST_CSS,applyAnimationOpacity,PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,resolveSlideTransition,resolveTransitionDurationMs,getFragmentedTransitionDescriptor,buildMorphTransitionPlan,morphOptionToMode,buildMorphScopedCss,buildTextStyleOverrideCss,MORPH_CROSSFADE_GROUP_CSS_TEXT,MORPH_CROSSFADE_HALF_BLEND_MODE}from'ooxml-ui/pptx';import {applyThreeViewTextStyle}from'ooxml-ui/pptx/dom';var L="data-pptx-text-style-override";function
|
|
1
|
+
import {ANIMATION_KEYFRAMES_CSS,SLIDE_TRANSITION_KEYFRAMES_CSS,PRESENTATION_HIT_TEST_CSS,applyAnimationOpacity,PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,resolveSlideTransition,resolveTransitionDurationMs,getFragmentedTransitionDescriptor,buildMorphTransitionPlan,morphOptionToMode,buildMorphScopedCss,buildTextStyleOverrideCss,MORPH_CROSSFADE_GROUP_CSS_TEXT,MORPH_CROSSFADE_HALF_BLEND_MODE}from'ooxml-ui/pptx';import {applyThreeViewTextStyle}from'ooxml-ui/pptx/dom';var L="data-pptx-text-style-override";function q(n,o,a){applyThreeViewTextStyle(n,a?.textStyle);let r=buildTextStyleOverrideCss(o,a?.textStyle),e=n.querySelector(`:scope > style[${L}]`);if(!r){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(L,""),n.prepend(e)),e.textContent=r;}var v="pptx-vanilla-presentation-keyframes",H="pptx-vanilla-slide-keyframes";function O(n){if(n.getElementById(v))return;let o=n.createElement("style");o.id=v,o.textContent=`${ANIMATION_KEYFRAMES_CSS}
|
|
2
2
|
${SLIDE_TRANSITION_KEYFRAMES_CSS}
|
|
3
|
-
${PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function
|
|
4
|
-
`),s.appendChild(
|
|
3
|
+
${PRESENTATION_HIT_TEST_CSS}`,(n.head??n.documentElement).appendChild(o);}function ie(n,o){let a=n.getElementById(H);if(!o){a?.remove();return}a||(a=n.createElement("style"),a.id=H,(n.head??n.documentElement).appendChild(a)),a.textContent=o;}function re(n,o,a,r){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let i=o.get(t);applyAnimationOpacity(e,i),e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";let d=a.has(t)||r.has(t);e.style.cursor=d?"pointer":"",e.toggleAttribute(PRESENTATION_ANIM_TRIGGER_ATTRIBUTE,d),q(e,t,i);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let i=o.get(t);applyAnimationOpacity(e,i),e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";});}function E(n,o,a,r,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=a.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(r);for(let i of a.fragments)t.appendChild(G(n,o,a,i));return t}function G(n,o,a,r){let e=n.createElement("div");e.dataset.pptxTransitionFragment=r.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=r.clipPath,e.style.transformOrigin=r.transformOrigin,e.style.animationName=a.keyframesName,e.style.animationDuration=`${a.durationMs}ms`,e.style.animationTimingFunction=a.easing,e.style.animationDelay=`${r.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,i]of Object.entries(r.vars))e.style.setProperty(t,i);return e.appendChild(o.cloneNode(true)),e}function u(n,o,a,r,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(a),t.style.willChange="transform, opacity, clip-path, filter",r!=="none"&&(t.style.animation=r),t.appendChild(o),t}function A(n,o){n.style.background="none",n.style.backgroundColor="transparent";let a=new Set(o),r=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!a.has(t))){for(let i=e;i&&i!==n;)r.add(i),i=i.parentElement;for(let i of e.querySelectorAll("[data-element-id]"))r.add(i);}}for(let e of [...n.querySelectorAll("[data-element-id]")])r.has(e)||e.remove();return n}function B(n,o){return o.forEach((a,r)=>{let e=n.querySelector(`[data-element-id="${CSS.escape(a)}"]`);e&&(e.style.zIndex=String(r+1));}),n}var C=2;function b(n,o,a,r){return (r?.overlayLayers??[]).map((e,t)=>{let i=e.side==="outgoing"?o:a,d=e.elements.map(s=>s.id),m=u(n,B(A(i.cloneNode(true),d),d),C+t,"none",e.side==="outgoing"?"outgoing":"lifted");return e.side==="outgoing"?m.dataset.pptxMorphOutgoing="true":m.dataset.pptxMorphLifted="true",m})}function I(n,o,a,r){return r?r.crossfadeGroups.map((e,t)=>{let i=n.createElement("div");i.dataset.pptxMorphCrossfade=e.incoming.id,i.style.cssText=MORPH_CROSSFADE_GROUP_CSS_TEXT,i.style.zIndex=String(C+r.overlayLayers.length+t);let d=(m,s,l,y,g)=>{let p=u(n,A(m,[s]),y,g??"none",l);return l==="outgoing"?p.dataset.pptxMorphOutgoing="true":p.dataset.pptxMorphLifted="true",p.style.mixBlendMode=MORPH_CROSSFADE_HALF_BLEND_MODE,p};return i.append(d(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),d(a.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),i}):[]}function Ee(n){let{doc:o,stageWrap:a,outgoing:r,incoming:e,transition:t}=n;O(o);let i=resolveSlideTransition(t),d=resolveTransitionDurationMs(t),m=getFragmentedTransitionDescriptor(t.type,d,t.direction,t.spokes,t.pattern),s=o.createElement("div");s.className="pptxv-transition-overlay",s.dataset.pptxTransitionOverlay="",s.dataset.pptxTransitionOverlay="",s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="30";let l=t.type==="morph"?buildMorphTransitionPlan(n.outgoingSlide,n.incomingSlide,d,morphOptionToMode(t.morphOption)):void 0,y=i.outgoingOnTop?2:1,g=l||i.outgoingOnTop?1:2,p=b(o,r,e,l),_=!l&&m?.outgoing?E(o,r,m.outgoing,y,"outgoing"):u(o,r,y,i.outgoing,"outgoing"),f=!l&&m?.incoming?E(o,e,m.incoming,g,"incoming"):u(o,e,g,l?"none":i.incoming,"incoming"),D=I(o,r,e,l);if(l){f.dataset.pptxMorphIncoming="true";let c=o.createElement("style");c.textContent=[buildMorphScopedCss(l,"data-pptx-morph-incoming","incoming"),buildMorphScopedCss(l,"data-pptx-morph-outgoing","outgoing"),buildMorphScopedCss(l,"data-pptx-morph-lifted","lifted")].join(`
|
|
4
|
+
`),s.appendChild(c);}l?s.appendChild(f):s.append(_,f);for(let c of p)s.appendChild(c);for(let c of D)s.appendChild(c);a.appendChild(s);let M=false,x=()=>{M||(M=true,clearTimeout(R),s.remove(),n.onDone());},R=setTimeout(x,Math.max(0,d)+50);return x}export{O as a,ie as b,re as c,Ee as d};
|