Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SVGTemplateResult

A TemplateResult for SVG fragments.

This class wraps HTML in an <svg> tag in order to parse its contents in the SVG namespace, then modifies the template to remove the <svg> tag so that clones only container the original fragment.

Hierarchy

Index

Constructors

constructor

  • new SVGTemplateResult(strings: TemplateStringsArray, values: keyof unknown[], type: string, processor: TemplateProcessor): SVGTemplateResult
  • Parameters

    • strings: TemplateStringsArray
    • values: keyof unknown[]
    • type: string
    • processor: TemplateProcessor

    Returns SVGTemplateResult

Properties

processor

processor: TemplateProcessor

strings

strings: TemplateStringsArray

type

type: string

values

values: keyof unknown[]

Methods

getHTML

  • getHTML(): string
  • Returns string

getTemplateElement

  • getTemplateElement(): HTMLTemplateElement

Generated using TypeDoc