Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new PathElement(document: Document, node: HTMLElement, captureTextNodes?: boolean): PathElement

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ""

attributes

attributes: Record<string, Property>

Protected captureTextNodes

captureTextNodes: boolean

children

children: Element[] = []

Protected document

document: Document

Protected node

node: HTMLElement

parent

parent: Element = null

pathParser

pathParser: PathParser = null

styles

styles: Record<string, Property>

stylesSpecificity

stylesSpecificity: Record<string, string>

type

type: string = "path"

Static ignoreChildTypes

ignoreChildTypes: string[] = ['title']

Methods

Protected addChild

  • addChild(childNode: Element | HTMLElement): void

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

Protected calculateOpacity

  • calculateOpacity(): number

clearContext

  • clearContext(_: RenderingContext2D): void

getAttribute

  • getAttribute(name: string, createIfNotExists?: boolean): Property<any>

getBoundingBox

getHrefAttribute

getMarkers

getStyle

  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property

Protected matchesSelector

  • matchesSelector(selector: string): boolean

path

Protected pathA

  • pathA(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathC

  • pathC(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathH

  • pathH(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathL

  • pathL(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathM

  • pathM(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathQ

  • pathQ(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathS

  • pathS(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathT

  • pathT(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathV

  • pathV(ctx: RenderingContext2D, boundingBox: BoundingBox): void

Protected pathZ

  • pathZ(ctx: RenderingContext2D, boundingBox: BoundingBox): void

render

  • render(ctx: RenderingContext2D): void

renderChildren

  • renderChildren(ctx: RenderingContext2D): void

setContext

  • setContext(ctx: RenderingContext2D, fromMeasure?: boolean): void

Generated using TypeDoc