Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HTMLBundler

Hierarchy

Index

Constructors

constructor

Properties

Private decoder

decoder: XMIDecoder

instanceOf

instanceOf: WeakMap<ModelElement, ModelElement>

Accessors

ioService

templates

Methods

addTemplate

bundle

  • bundle(rootElement: Element, outputDir: string, options?: any): Promise<void>

Private copyAssets

  • copyAssets(outputDir: string): Promise<void>

Protected copyDirectory

  • copyDirectory(sourceDir: string, targetDir: string): Promise<void>
  • Copies a directory from a given source to a target

    Parameters

    • sourceDir: string

      The source directory to copy

    • targetDir: string

      The name of the copy

    Returns Promise<void>

    Resolves when the copying is finished

cssClass

Protected findTemplate

  • findTemplate(data: any, options: any): Template | null

Protected findTemplates

generateFilename

  • generateFilename(element: Element): string

isSupporting

  • isSupporting(data: any, options?: any): boolean
  • Checks whether the bundler is supporting given data

    Parameters

    • data: any

      The data to check support for

    • Default value options: any = {}

    Returns boolean

    True, if this bundler supports given data

Private render

Private renderOverview

  • renderOverview(outputDir: string, rendered: Set<ModelElement>, options: any): Promise<void>

Private sortModelElements

Generated using TypeDoc