返回 reveal.js
constants.ts
根目录 / js / utils / constants.ts
1 export const SLIDES_SELECTOR = '.slides section';
2 export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section';
3 export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section';
4 export const HORIZONTAL_BACKGROUNDS_SELECTOR = '.backgrounds>.slide-background';
5
6 // Methods that may not be invoked via the postMessage API
7 export const POST_MESSAGE_METHOD_BLACKLIST =
8 /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/;
9
10 // Regex for retrieving the fragment style from a class attribute
11 export const FRAGMENT_STYLE_REGEX =
12 /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;
13
14 // Slide number formats
15 export const SLIDE_NUMBER_FORMAT_HORIZONTAL_DOT_VERTICAL = 'h.v';
16 export const SLIDE_NUMBER_FORMAT_HORIZONTAL_SLASH_VERTICAL = 'h/v';
17 export const SLIDE_NUMBER_FORMAT_CURRENT = 'c';
18 export const SLIDE_NUMBER_FORMAT_CURRENT_SLASH_TOTAL = 'c/t';
19
19 lines TYPESCRIPT