Skip to content

Commit

Permalink
update revealjs 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Aug 26, 2024
1 parent cdf4e27 commit f442714
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion configuration
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export POPPER_JS=2.11.7
export CLIPBOARD_JS=2.0.11
export TIPPY_JS=6.3.7
export PDF_JS=2.8.335
export REVEAL_JS=5.0.5
export REVEAL_JS=5.1.0
export REVEAL_JS_MENU=2.1.0
export REVEAL_JS_CHALKBOARD=4.2.5
export REVEAL_JS_PDFEXPORT=2.0.1
Expand Down
1 change: 1 addition & 0 deletions src/resources/formats/revealjs/reveal/css/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// Stack multiple elements on top of each other
.reveal .r-stack {
display: grid;
grid-template-rows: 100%;
}

.reveal .r-stack > * {
Expand Down
7 changes: 6 additions & 1 deletion src/resources/formats/revealjs/reveal/css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,16 @@ $controlsArrowAngleActive: 36deg;
touch-action: pinch-zoom;
}

// Swiping on an embedded deck should not block page scrolling
// Swiping on an embedded deck should not block page scrolling...
.reveal.embedded {
touch-action: pan-y;
}

// ... unless we're on a vertical slide
.reveal.embedded.is-vertical-slide {
touch-action: none;
}

.reveal .slides {
position: absolute;
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/formats/revealjs/reveal/dist/reveal.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/resources/formats/revealjs/reveal/dist/reveal.esm.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/resources/formats/revealjs/reveal/dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/formats/revealjs/reveal/dist/reveal.js.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/resources/formats/revealjs/reveal/plugin/math/math.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/resources/formats/revealjs/reveal/plugin/math/mathjax3.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const MathJax3 = () => {
ready: () => {
MathJax.startup.defaultReady();
MathJax.startup.promise.then(() => {
Reveal.layout();
deck.layout();
});
}
}
Expand Down Expand Up @@ -66,7 +66,7 @@ export const MathJax3 = () => {

loadScript( url, function() {
// Reprocess equations in slides when they turn visible
Reveal.addEventListener( 'slidechanged', function( event ) {
deck.addEventListener( 'slidechanged', function( event ) {
MathJax.typeset();
} );
} );
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions src/resources/formats/revealjs/reveal/plugin/notes/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,16 @@ const Plugin = () => {
// (added 12/5/22 as a XSS safeguard)
if( isSameOriginEvent( event ) ) {

let data = JSON.parse( event.data );
if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
clearInterval( connectInterval );
onConnected();
}
else if( data && data.namespace === 'reveal-notes' && data.type === 'call' ) {
callRevealApi( data.methodName, data.arguments, data.callId );
}
try {
let data = JSON.parse( event.data );
if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
clearInterval( connectInterval );
onConnected();
}
else if( data && data.namespace === 'reveal-notes' && data.type === 'call' ) {
callRevealApi( data.methodName, data.arguments, data.callId );
}
} catch (e) {}

}

Expand Down

0 comments on commit f442714

Please sign in to comment.