Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AffineTransform

Hierarchy

Index

Constructors

constructor

  • new AffineTransform(x0: number, y0: number, x1: number, y1: number, tx: number, ty: number): AffineTransform
  • Parameters

    • x0: number
    • y0: number
    • x1: number
    • y1: number
    • tx: number
    • ty: number

    Returns AffineTransform

Properties

Readonly stringValue

stringValue: undefined | string

Readonly tx

tx: number

Readonly ty

ty: number

Readonly x0

x0: number

Readonly x1

x1: number

Readonly y0

y0: number

Readonly y1

y1: number

Methods

conformsTo

  • Parameters

    Returns boolean

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

hashCode

  • hashCode(): number
  • Returns number

interpolateTo

inverse

  • Returns Transform

multiply

  • Parameters

    Returns AffineTransform

rotate

  • Parameters

    Returns Transform

scale

  • Parameters

    • x: number
    • y: number

    Returns Transform

scaleX

  • Parameters

    • x: number

    Returns Transform

scaleY

  • Parameters

    • y: number

    Returns Transform

skew

skewX

  • Parameters

    Returns Transform

skewY

  • Parameters

    Returns Transform

toAffine

toAttributeString

  • toAttributeString(): string
  • Returns string

toCssTransformComponent

  • toCssTransformComponent(): null | CSSTransformComponent
  • Returns null | CSSTransformComponent

toCssValue

  • toCssValue(): null | CSSStyleValue
  • Returns null | CSSStyleValue

toMatrix

  • toMatrix(): DOMMatrix
  • Returns DOMMatrix

toString

  • toString(): string
  • Returns string

toValue

  • Returns Value

transform

  • Parameters

    Returns Transform

  • Parameters

    • x: number
    • y: number

    Returns R2Point

transformX

  • transformX(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

transformY

  • transformY(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

translate

translateX

translateY

Static affine

  • affine(x0?: number, y0?: number, x1?: number, y1?: number, tx?: number, ty?: number): AffineTransform
  • Parameters

    • Optional x0: number
    • Optional y0: number
    • Optional x1: number
    • Optional y1: number
    • Optional tx: number
    • Optional ty: number

    Returns AffineTransform

Static form

Static fromAny

Static fromCssTransform

  • fromCssTransform(value: CSSTransformValue): Transform
  • Parameters

    • value: CSSTransformValue

    Returns Transform

Static fromCssTransformComponent

  • fromCssTransformComponent(component: CSSMatrixComponent): AffineTransform

Static fromCssValue

  • fromCssValue(value: CSSStyleValue): Transform
  • Parameters

    • value: CSSStyleValue

    Returns Transform

Static fromMatrix

  • Parameters

    • matrix: DOMMatrixReadOnly

    Returns AffineTransform

Static fromValue

Static identity

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyTransform

Static list

Static parse

  • Parameters

    • string: string

    Returns AffineTransform

Static rotate

Static scale

  • Parameters

    • x: number
    • y: number

    Returns ScaleTransform

Static scaleX

  • Parameters

    • x: number

    Returns ScaleTransform

Static scaleY

  • Parameters

    • y: number

    Returns ScaleTransform

Static skew

Static skewX

Static skewY

Static translate

Static translateX

Static translateY

Generated using TypeDoc