@edc4it/reveal.js-external-code
Version:
[](#)
34 lines (33 loc) • 952 B
TypeScript
import { Options } from '../../options.ts';
export declare class Structure {
private readonly attributes;
private readonly src;
private readonly href;
private readonly codeStr;
private readonly options;
private readonly providedLanguage?;
constructor(attributes: NamedNodeMap, src: string, href: string, codeStr: string, options: Pick<Options, 'local' | 'codeBlock'>);
create(): HTMLDivElement;
/**
* Create the required elements
* @private
* @returns the wrapper and the code element for further processing
*/
private _createElements;
/**
* constructs the list of classes for the code element
* @private
*/
private _codeClasses;
/**
* Create the footer html with a link to the external code
* @param preElement
* @private
*/
private _footerHtml;
/**
* Create the outer wrapper
* @private
*/
private _createWrapper;
}