Options for Reveal.js slides.
| Modifiers | Name | Description |
|---|---|---|
enum |
RevealJSOptions.Transition |
|
enum |
RevealJSOptions.TransitionSpeed |
| Type | Name and description |
|---|---|
Object |
customThemeRelativePath |
Object |
highlightJsThemeRelativePath |
Object |
parallaxBackgroundImageRelativePath |
String |
parallaxBackgroundSize |
| Constructor and description |
|---|
RevealJSOptions
(Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
enhanceCopySpec(CopySpec cs)Adds files to a CopySpec for copying to final artifact. |
|
Map<String, String> |
getAsAttributeMap()The Reveal.js settings as a map of Asciidoctor attributes. |
|
File |
getCustomThemeIfFile()Custom.js theme location if specified as a file. |
|
URI |
getCustomThemeIfUri()Custom Reveal.js theme if it is specified as URI which is not of type file://. |
|
String |
getCustomThemeRelativePath()Relative path to folder where custom Reveal.js theme will be copied to. |
|
File |
getHighlightJsThemeIfFile()Highlight.js theme location if specified as a file. |
|
URI |
getHighlightJsThemeIfUri()Highlight.js theme if it is specified as URI which is not of type file://. |
|
String |
getHighlightJsThemeRelativePath()Relative path to folder where Highlight.js theme will be copied to. |
|
File |
getParallaxBackgroundImageIfFile()Parallax background image if it is specified as a file. |
|
URI |
getParallaxBackgroundImageIfUri()Parallax background image if it is specified as URI which is not of type file://. |
|
String |
getParallaxBackgroundImageRelativePath()Relative path to folder where Parallax background image will be copied to. |
|
String |
getParallaxBackgroundSize()Parallax background size (accepts any CSS syntax). |
|
void |
setAutoSlideInterval(Integer ms)Delay in milliseconds between automatically proceeding to the next slide. |
|
void |
setAutoSlideStoppable(Boolean b)Stop auto-sliding after user input |
|
void |
setBackgroundTransition(String s)Transition style for full page slide backgrounds.. |
|
void |
setBackgroundTransition(Transition tr)Transition style for full page slide backgrounds.. |
|
void |
setControls(Boolean b)Display controls in the bottom right corner. |
|
void |
setCustomThemeLocation(Object fileOrUri)Provide a custom them as a file or URL. |
|
void |
setCustomThemeRelativePath(Object relPath)If a custom Reveal.js theme is provided and is a local file, this is the relative location where it can be found after generation of the slide desk. |
|
void |
setFlagEmbedded(Boolean b)Flags if the presentation is running in an embedded mode ( contained within a limited portion of the screen ). |
|
void |
setFragments(Boolean b)Use fragments globally. |
|
void |
setHideAddressBarOnMobile(Boolean b)Hides the address bar on mobile devices. |
|
void |
setHighlightJsThemeLocation(Object fileOrUri)Overrides Highlight.js CSS style with given file or URL. |
|
void |
setHighlightJsThemeRelativePath(Object relPath)If Highlight.js theme is overriden and is a local file, this is the relative location where it can be found after generation of the slide desk. |
|
void |
setKeyboardShortcuts(Boolean b)Enable keyboard shortcuts for navigation. |
|
void |
setLoop(Boolean b)Loop the presentation.. |
|
void |
setMouseWheel(Boolean b)Enable slide navigation via mouse wheel. |
|
void |
setOverviewMode(Boolean b)Enable the slide overview mode. |
|
void |
setParallaxBackgroundImageLocation(Object fileOrUri)Set Parallax background image as file or URI. |
|
void |
setParallaxBackgroundImageRelativePath(Object relPath)If the parallax image is set as a file, this will be the relative path to which it will be copied when resources are copied. |
|
void |
setParallaxBackgroundSize(Object css)Set the Parallax background size. |
|
void |
setPreviewLinks(Boolean b) |
|
void |
setProgressBar(Boolean b)Display a presentation progress bar. |
|
void |
setPushToHistory(Boolean b)Push each slide change to the browser history. |
|
void |
setRightToLeft(Boolean b)Change the presentation direction to be RTL. |
|
void |
setSlideNumber(Boolean b)Display the slide number of the current slide. |
|
void |
setTouchMode(Boolean b)Enables touch navigation on devices with touch input. |
|
void |
setTransition(String s)Transition style. |
|
void |
setTransition(Transition tr)Transition style. |
|
void |
setTransitionSpeed(String s)Slide transition speed |
|
void |
setTransitionSpeed(TransitionSpeed tr)Slide transition speed |
|
void |
setVerticalCenter(Boolean b)Vertical centering of slides. |
|
void |
setViewDistance(Integer numSlides)Number of slides away from the current that are visible. |
Adds files to a CopySpec for copying to final artifact.
cs - CopySpec to enhance.The Reveal.js settings as a map of Asciidoctor attributes. The map will be empty if nothing was set.
Custom.js theme location if specified as a file.
null. Custom Reveal.js theme if it is specified as URI which is not of type file://.
null.Relative path to folder where custom Reveal.js theme will be copied to.
Highlight.js theme location if specified as a file.
null. Highlight.js theme if it is specified as URI which is not of type file://.
null.Relative path to folder where Highlight.js theme will be copied to.
Parallax background image if it is specified as a file.
null. Parallax background image if it is specified as URI which is not of type file://.
null.Relative path to folder where Parallax background image will be copied to.
Parallax background size (accepts any CSS syntax).
null. Delay in milliseconds between automatically proceeding to the next slide.
Disabled when set to 0(the default). This value can still be overwritten
on a per-slide basis by setting a data-autoslide attribute on a slide.
Stop auto-sliding after user input
Transition style for full page slide backgrounds..
One of none , fade, slide, convex, concave, zoom.
If not set then Reveal.js will use an internal default of FADE.
Transition style for full page slide backgrounds..
One of none , fade, slide, convex, concave, zoom.
If not set then Reveal.js will use an interna default of FADE.
Display controls in the bottom right corner.
Provide a custom them as a file or URL.
fileOrUri - Object that can be converted to a file or a URI. If the initial object is not a URI,
but it's string presentation starts with http(s) it will be treated as a URI. Anything else is a path to a
local file.If a custom Reveal.js theme is provided and is a local file, this is the relative location where it can be found after generation of the slide desk.
relPath - Relative path to custom Reveal.js theme.Flags if the presentation is running in an embedded mode ( contained within a limited portion of the screen ).
Use fragments globally.
Hides the address bar on mobile devices.
Overrides Highlight.js CSS style with given file or URL.
Default is built-in lib/css/zenburn.css.
fileOrUri - Object that can be converted to a file or a URI. If the initial object is not a URI,
but it's string presentation starts with http(s) it will be reated as a URI. Anything else is a path to a
local file.If Highlight.js theme is overriden and is a local file, this is the relative location where it can be found after generation of the slide desk.
relPath - Relative path to Highlight.js theme.Enable keyboard shortcuts for navigation.
Loop the presentation..
Enable slide navigation via mouse wheel.
Enable the slide overview mode.
Set Parallax background image as file or URI.
fileOrUri - Object that can be converted to a file or a URI. If the initial object is not a URI,
but it's string presentation starts with http(s) it will be created as a URI. Anything else is a path to a
local file.If the parallax image is set as a file, this will be the relative path to which it will be copied when resources are copied.
relPath - Relative path can be anything convertible to a string using org.ysb33r.grolifant.api.StringUtils#stringize.Set the Parallax background size.
css - Anything that can be converted to a String via org.ysb33r.grolifant.api.StringUtils#stringize.
Must be in CSS syntax.Display a presentation progress bar.
Push each slide change to the browser history.
Change the presentation direction to be RTL.
Display the slide number of the current slide.
Enables touch navigation on devices with touch input.
Transition style.
If not set, the Reveal.JS will use an internal default of SLIDE.
Transition style.
If not set, the Reveal.js will use an internal default of SLIDE.
Slide transition speed
One of default , fast, slow.
If not provided, Reveal.js wil use an internal default value of DEFAULT.
Slide transition speed
One of default , fast, slow.
If not provided, Reveal.js wil use an internal default value of DEFAULT.
Vertical centering of slides.
Number of slides away from the current that are visible. If not set, Revels.JS will use an internal value of 3.
Copyright © 2013-2019 the original author or authors. All rights reserved.