MCPcopy
hub / github.com/hakimel/reveal.js / RevealApi

Interface RevealApi

js/reveal.d.ts:52–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 * @see {@link https://github.com/hakimel/reveal.js/blob/master/js/reveal.js}
51 */
52 export interface RevealApi {
53 /**
54 * The reveal.js version
55 *
56 * @returns reveal.js version
57 */
58 VERSION: string;
59
60 /**
61 * Starts up the presentation.
62 *
63 * @param options - RevealOption see {@link Options}
64 * @returns a promise
65 */
66 initialize(options?: RevealConfig): Promise<RevealApi>;
67
68 /**
69 * Applies the configuration settings from the config
70 * object. May be called multiple times.
71 *
72 * @param options - RevealOption see {@link RevealConfig}
73 */
74 configure(options?: RevealConfig): void;
75
76 /**
77 * Uninitializes reveal.js by undoing changes made to the
78 * DOM and removing all event listeners.
79 */
80 destroy(): void;
81
82 /**
83 * Syncs the presentation with the current DOM. Useful
84 * when new slides or control elements are added or when
85 * the configuration has changed.
86 */
87 sync(): void;
88
89 /**
90 * Updates reveal.js to keep in sync with new slide attributes. For
91 * example, if you add a new `data-background-image` you can call
92 * this to have reveal.js render the new background image.
93 *
94 * Similar to #sync() but more efficient when you only need to
95 * refresh a specific slide. Dispatches a `slidesync` event
96 * when syncing has completed.
97 *
98 * @param slide
99 * @see {@link sync}
100 */
101 syncSlide(slide: HTMLElement): void;
102
103 /**
104 * Formats the fragments on the given slide so that they have
105 * valid indices. Call this if fragments are changed in the DOM
106 * after reveal.js has already initialized.
107 *
108 * @param slide
109 * @returns a list of the HTML fragments that were synced

Callers 148

DeckFunction · 0.80
index.tsFile · 0.80
DeckFunction · 0.65
configureFunction · 0.65
DeckFunction · 0.65
configureFunction · 0.65
destroyFunction · 0.65
destroyMethod · 0.65
deck.test.tsxFile · 0.65
DeckFunction · 0.65
syncSlideFunction · 0.65
deactivateMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…