Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Property<T>

Type parameters

  • T

Hierarchy

  • Property

Index

Constructors

constructor

Properties

Private document

document: Document

Private name

name: string

Private value

value: T

Methods

addOpacity

getDefinition

  • getDefinition<T>(): T

getDpi

  • getDpi(): number

getEm

  • getEm(): number

getFillStyleDefinition

  • getFillStyleDefinition(element: Element, opacity: Property): string | CanvasPattern | CanvasGradient

getMilliseconds

  • getMilliseconds(): number

getNumber

  • getNumber(def?: T): number

getPixels

  • getPixels(axis?: Axis, processPercent?: boolean): number
  • getPixels(isFontSize?: boolean): number
  • Parameters

    • Optional axis: Axis
    • Optional processPercent: boolean

    Returns number

  • Parameters

    • Optional isFontSize: boolean

    Returns number

getRadians

  • getRadians(): number

getRem

  • getRem(): number

getString

  • getString(def?: T): string

getTextBaseline

  • getTextBaseline(): string

getUnits

  • getUnits(): string

getValue

  • getValue(def?: T): T

hasValue

  • hasValue(): boolean

isPixels

  • isPixels(): boolean

isString

  • isString(regexp?: RegExp): boolean
  • Parameters

    • Optional regexp: RegExp

    Returns boolean

isUrlDefinition

  • isUrlDefinition(): boolean

setValue

  • setValue(value: T): this

Static empty

Object literals

Static textBaselineMapping

textBaselineMapping: object

after-edge

after-edge: string = "bottom"

alphabetic

alphabetic: string = "alphabetic"

baseline

baseline: string = "alphabetic"

before-edge

before-edge: string = "top"

central

central: string = "middle"

hanging

hanging: string = "hanging"

ideographic

ideographic: string = "ideographic"

mathematical

mathematical: string = "alphabetic"

middle

middle: string = "middle"

text-after-edge

text-after-edge: string = "bottom"

text-before-edge

text-before-edge: string = "top"

Generated using TypeDoc