Options
All
  • Public
  • Public/Protected
  • All
Menu

Module producer

Producer: takes ParsedObj and updates the HTML of document with the enhancement for next-book specific use-case.

Index

Functions

anchorObject

  • anchorObject(idea: IdeaPiece[], document: Document): DocumentFragment
  • Returns document containing the appropriate children for idea.

    remarks

    Provided idea should be guaranteed to contain ParsedObj by its caller.

    Parameters

    • idea: IdeaPiece[]

      IdeaPiece

    • document: Document

    Returns DocumentFragment

containsParsedObj

  • containsParsedObj(idea: IdeaPiece[]): boolean
  • Determines if array contains parsed object. See ParsedObj.

    Parameters

    Returns boolean

    True if contains parsed object, False otherwise.

default

  • default(document: Document, parsedObj: default): Node
  • Produces ideas from a parsedObj

    Parameters

    • document: Document

      DOM Document

    • parsedObj: default

      A parsed object

    Returns Node

    HTML node

produceHTMLSpanIdea

  • produceHTMLSpanIdea(idea: IdeaPiece[], document: Document): HTMLElement
  • Produces HTML span idea from an array of parts.

    remarks

    Provided idea should be guaranteed to NOT contain ParsedObj by its caller.

    Parameters

    • idea: IdeaPiece[]

      The idea

    • document: Document

      DOM document

    Returns HTMLElement

    HTML Element span

Generated using TypeDoc