Skip to content

Commit ba355e1

Browse files
committed
adapt revealjs chalkboard for next update
Upstream PR has been merged and new commit on main can be used now.
1 parent 502ec16 commit ba355e1

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

configuration

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ export TIPPY_JS=6.3.7
3737
export PDF_JS=2.8.335
3838
export REVEAL_JS=5.1.0
3939
export REVEAL_JS_MENU=2.1.0
40-
# unrelease version needed for a fix with Reveal.js 5
40+
# unrelease version needed for fixes with Reveal.js 5
4141
# https://github.com/rajgoel/reveal.js-plugins/pull/180
42-
export REVEAL_JS_CHALKBOARD=8408d5a265abf74a042122520bbb4fd0d31feaed
42+
# https://github.com/rajgoel/reveal.js-plugins/pull/184
43+
export REVEAL_JS_CHALKBOARD=217142176341e24628db2908cae38221ef13d639
4344
export REVEAL_JS_PDFEXPORT=2.0.1
4445
export LIST_JS=2.3.1
4546
export DAY_JS=1.11.7

package/src/common/patches/revealjs-plugin-0001-chakboard-backdrop-filter.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.

package/src/common/update-html-dependencies.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,6 @@ export async function updateHtmlDependencies(config: Configuration) {
387387
},
388388
true, // true if commit, false otherwise
389389
false, // no v prefix,
390-
// FIXME: Patch waiting for fix upstream to be merged
391-
// https://github.com/rajgoel/reveal.js-plugins/pull/184
392-
resolvePatches([
393-
"revealjs-plugin-0001-chakboard-backdrop-filter.patch"
394-
])
395390
);
396391

397392
// revealjs-menu
@@ -1128,7 +1123,7 @@ async function updateGithubSourceCodeDependency(
11281123
await unzip(zipFile, working);
11291124

11301125
await onDownload(working, version);
1131-
if (patches) applyGitPatches(patches);
1126+
if (patches) await applyGitPatches(patches);
11321127
} else {
11331128
throw new Error(`${versionEnvVar} is not defined`);
11341129
}

src/resources/formats/revealjs/plugins/chalkboard/plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,7 @@ const initChalkboard = function ( Reveal ) {
444444
container.style.visibility = 'visible';
445445
container.style.pointerEvents = 'none';
446446
container.style['backdrop-filter'] = 'none';
447-
// for older safari
448-
container.style["-webkit-backdrop-filter"] = "none";
447+
container.style['-webkit-backdrop-filter'] = 'none';
449448

450449
var slides = document.querySelector( '.slides' );
451450
var aspectRatio = Reveal.getConfig().width / Reveal.getConfig().height;

0 commit comments

Comments
 (0)