Interface IMatrix

Hierarchy

Index

Properties

Methods

Properties

optional public a?: number

[Property] (Number)

optional public alias?: Array<string>

[Config Option] (String[])

optional public alternateClassName?: any

[Config Option] (String/String[])

optional public config?: any

[Config Option] (Object)

optional public extend?: string

[Config Option] (String)

optional public inheritableStatics?: any

[Config Option] (Object)

optional public mixins?: any

[Config Option] (Object)

optional public platformConfig?: any

[Config Option] (Object)

optional public self?: IClass

[Property] (Ext.Class)

optional public singleton?: boolean

[Config Option] (Boolean)

optional public statics?: any

[Config Option] (Object)

optional public uses?: Array<string>

[Config Option] (String[])

Methods

optional public append(xx?: any, xy?: any, yx?: any, yy?: any, dx?: any, dy?: any): IMatrix

[Method] Postpend a matrix onto the current

Parameters

  • xx?: any optional

    Object Coefficient from x to x.

  • xy?: any optional

    Object Coefficient from x to y.

  • yx?: any optional

    Object Coefficient from y to x.

  • yy?: any optional

    Object Coefficient from y to y.

  • dx?: any optional

    Object Offset of x.

  • dy?: any optional

    Object Offset of y.

Returns

IMatrix

Ext.draw.Matrix this

optional public appendMatrix(matrix?: IMatrix): IMatrix

[Method] Postpend a matrix onto the current

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix

Returns

IMatrix

Ext.draw.Matrix this

optional public callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

optional public callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

optional public callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

optional public clone(): IMatrix

[Method] Clone this matrix

Returns

IMatrix

Ext.draw.Matrix

optional public destroy()

[Method]

optional public equals(matrix?: IMatrix): boolean

[Method] Determines if this matrix has the same values as another matrix

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix

Returns

boolean

Boolean

optional public flipX(): IMatrix

[Method] Horizontally flip the matrix

Returns

IMatrix

Ext.draw.Matrix this

optional public flipY(): IMatrix

[Method] Vertically flip the matrix

Returns

IMatrix

Ext.draw.Matrix this

optional public getDX(): number

[Method] Get offset x component of the matrix

Returns

number

Number

optional public getDY(): number

[Method] Get offset y component of the matrix

Returns

number

Number

optional public getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

optional public getScaleX(): number

[Method] Get the x scale of the matrix

Returns

number

Number

optional public getScaleY(): number

[Method] Get the y scale of the matrix

Returns

number

Number

optional public getXX(): number

[Method] Get x to x component of the matrix

Returns

number

Number

optional public getXY(): number

[Method] Get x to y component of the matrix

Returns

number

Number

optional public getYX(): number

[Method] Get y to x component of the matrix

Returns

number

Number

optional public getYY(): number

[Method] Get y to y component of the matrix

Returns

number

Number

optional public initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

optional public inverse(target?: IMatrix): IMatrix

[Method] Return a new matrix represents the opposite transformation of the current one

Parameters

  • target?: IMatrix optional

    Ext.draw.Matrix A target matrix. If present, it will receive the result of inversion to avoid creating a new object.

Returns

IMatrix

Ext.draw.Matrix

optional public isIdentity(): boolean

[Method] Determines whether this matrix is an identity matrix no transform

Returns

boolean

Boolean

optional public multiply(matrix?: IMatrix): IMatrix

[Method] Postpend a matrix onto the current

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix

Returns

IMatrix

Ext.draw.Matrix this

optional public prepend(xx?: any, xy?: any, yx?: any, yy?: any, dx?: any, dy?: any): IMatrix

[Method] Prepend a matrix onto the current

Parameters

  • xx?: any optional

    Object Coefficient from x to x.

  • xy?: any optional

    Object Coefficient from x to y.

  • yx?: any optional

    Object Coefficient from y to x.

  • yy?: any optional

    Object Coefficient from y to y.

  • dx?: any optional

    Object Offset of x.

  • dy?: any optional

    Object Offset of y.

Returns

IMatrix

Ext.draw.Matrix this

optional public prependMatrix(matrix?: IMatrix): IMatrix

[Method] Prepend a matrix onto the current

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix

Returns

IMatrix

Ext.draw.Matrix this

optional public reset(): IMatrix

[Method] Reset the matrix to identical

Returns

IMatrix

Ext.draw.Matrix this

optional public rotate(angle?: number, rcx?: any, rcy?: any, prepend?: boolean): IMatrix

[Method] Rotate the matrix

Parameters

  • angle?: number optional

    Number Radians to rotate

  • rcx?: any optional

    Number|null Center of rotation.

  • rcy?: any optional

    Number|null Center of rotation.

  • prepend?: boolean optional

    Boolean If true, this will transformation be prepended to the matrix.

Returns

IMatrix

Ext.draw.Matrix this

optional public rotateFromVector(x?: number, y?: number, prepend?: boolean): IMatrix

[Method] Rotate the matrix by the angle of a vector

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

  • prepend?: boolean optional

    Boolean If true, this will transformation be prepended to the matrix.

Returns

IMatrix

Ext.draw.Matrix this

optional public scale(sx?: number, sy?: number, scx?: number, scy?: number, prepend?: boolean): IMatrix

[Method] Scale the matrix

Parameters

  • sx?: number optional

    Number

  • sy?: number optional

    Number

  • scx?: number optional

    Number

  • scy?: number optional

    Number

  • prepend?: boolean optional

    Boolean If true, this will transformation be prepended to the matrix.

Returns

IMatrix

Ext.draw.Matrix this

optional public set(xx?: number, xy?: number, yx?: number, yy?: number, dx?: number, dy?: number): IMatrix

[Method] Set the elements of a Matrix

Parameters

  • xx?: number optional

    Number

  • xy?: number optional

    Number

  • yx?: number optional

    Number

  • yy?: number optional

    Number

  • dx?: number optional

    Number

  • dy?: number optional

    Number

Returns

IMatrix

Ext.draw.Matrix this

optional public skewX(angle?: number): IMatrix

[Method] Skew the matrix

Parameters

  • angle?: number optional

    Number

Returns

IMatrix

Ext.draw.Matrix this

optional public skewY(angle?: number): IMatrix

[Method] Skew the matrix

Parameters

  • angle?: number optional

    Number

Returns

IMatrix

Ext.draw.Matrix this

optional public split(): any

[Method] Split matrix into Translate Scale Shear and Rotate

Returns

any

Object

optional public toArray(): Array<any>

[Method] Create an array of elements by horizontal order xx yx dx yx yy dy

Returns

Array<any>

Array

optional public toContext(ctx?: any): IMatrix

[Method] Apply the matrix to a drawing context

Parameters

  • ctx?: any optional

    Object

Returns

IMatrix

Ext.draw.Matrix this

optional public toString(): Array<any>

[Method] Get an array of elements

Returns

Array<any>

Array

optional public toSvg(): string

[Method] Return a string that can be used as transform attribute in SVG

Returns

string

String

optional public toVerticalArray(): any

[Method] Create an array of elements by vertical order xx xy yx yy dx dy

Returns

any

Array|String

optional public transformBBox(bbox?: any, radius?: number, target?: any): any

[Method]

Parameters

  • bbox?: any optional

    Object Given as {x: Number, y: Number, width: Number, height: Number}.

  • radius?: number optional

    Number

  • target?: any optional

    Object Optional target object to recieve the result. Recommanded to use it for better gc.

Returns

any

Object Object with x, y, width and height.

optional public transformList(list?: Array<any>): Array<any>

[Method] Transform a list for points

Parameters

  • list?: Array<any> optional

    Array

Returns

Array<any>

Array list

optional public transformPoint(point?: Array<any>): Array<any>

[Method] Transform a point to a new array

Parameters

  • point?: Array<any> optional

    Array

Returns

Array<any>

Array

optional public translate(x?: number, y?: number, prepend?: boolean): IMatrix

[Method] Translate the matrix

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

  • prepend?: boolean optional

    Boolean If true, this will transformation be prepended to the matrix.

Returns

IMatrix

Ext.draw.Matrix this

optional public x(x?: number, y?: number): number

[Method] Transform point returning the x component of the result

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

Returns

number

Number x component of the result.

optional public y(x?: number, y?: number): number

[Method] Transform point returning the y component of the result

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

Returns

number

Number y component of the result.