Interface IPath

Hierarchy

Index

Properties

Methods

Properties

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 arc(x?: any, y?: any, radius?: any, startAngle?: any, endAngle?: any, anticlockwise?: any)

[Method] Create an circular arc

Parameters

  • x?: any optional

    Object

  • y?: any optional

    Object

  • radius?: any optional

    Object

  • startAngle?: any optional

    Object

  • endAngle?: any optional

    Object

  • anticlockwise?: any optional

    Object

optional public arcSvg(rx?: any, ry?: any, rotation?: any, fA?: any, fS?: any, x2?: any, y2?: any)

[Method] http www w3 org TR SVG implnote html ArcImplementationNotes

Parameters

  • rx?: any optional

    Object

  • ry?: any optional

    Object

  • rotation?: any optional

    Object Differ from svg spec, this is radian.

  • fA?: any optional

    Object

  • fS?: any optional

    Object

  • x2?: any optional

    Object

  • y2?: any optional

    Object

optional public arcTo(x1?: number, y1?: number, x2?: number, y2?: number, rx?: number, ry?: number, rotation?: number)

[Method] Create a elliptic arc curve compatible with SVG s arc to instruction

Parameters

  • x1?: number optional

    Number

  • y1?: number optional

    Number

  • x2?: number optional

    Number

  • y2?: number optional

    Number

  • rx?: number optional

    Number

  • ry?: number optional

    Number

  • rotation?: number optional

    Number

optional public bezierCurveTo(cx1?: number, cy1?: number, cx2?: number, cy2?: number, x?: number, y?: number)

[Method] A cubic bezier curve to a position

Parameters

  • cx1?: number optional

    Number

  • cy1?: number optional

    Number

  • cx2?: number optional

    Number

  • cy2?: number optional

    Number

  • x?: number optional

    Number

  • y?: number optional

    Number

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 clear()

[Method] Clear the path

optional public clone(): IPath

[Method] Clone this path

Returns

IPath

Ext.draw.Path

optional public closePath()

[Method] Close this path with a straight line

optional public destroy()

[Method]

optional public ellipse(cx?: any, cy?: any, radiusX?: any, radiusY?: any, rotation?: any, startAngle?: any, endAngle?: any, anticlockwise?: any)

[Method] Create an elliptic arc

Parameters

  • cx?: any optional

    Object

  • cy?: any optional

    Object

  • radiusX?: any optional

    Object

  • radiusY?: any optional

    Object

  • rotation?: any optional

    Object

  • startAngle?: any optional

    Object

  • endAngle?: any optional

    Object

  • anticlockwise?: any optional

    Object

optional public fromStripes(stripes?: Array<any>)

[Method] Reconstruct path from cubic bezier curve stripes

Parameters

  • stripes?: Array<any> optional

    Array

optional public fromSvgString(pathString?: any)

[Method] Feed the path from svg path string

Parameters

  • pathString?: any optional

    Object

optional public getDimension(target?: any): any

[Method] Get the bounding box of this matrix

Parameters

  • target?: any optional

    Object Optional object to receive the result.

Returns

any

Object Object with x, y, width and height

optional public getDimensionWithTransform(matrix?: IMatrix, target?: any): any

[Method] Get the bounding box as if the path is transformed by a matrix

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix

  • target?: any optional

    Object Optional object to receive the result.

Returns

any

Object An object with x, y, width and height.

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 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 isPointInPath(x?: any, y?: any): boolean

[Method] Test wether the given point is on or inside the path

Parameters

  • x?: any optional

    Object

  • y?: any optional

    Object

Returns

boolean

Boolean

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

[Method] A straight line to a position

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

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

[Method] Move to a position

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

optional public quadraticCurveTo(cx?: number, cy?: number, x?: number, y?: number)

[Method] A quadratic bezier curve to a position

Parameters

  • cx?: number optional

    Number

  • cy?: number optional

    Number

  • x?: number optional

    Number

  • y?: number optional

    Number

optional public rect(x?: any, y?: any, width?: any, height?: any)

[Method] Draw a rectangle and close it

Parameters

  • x?: any optional

    Object

  • y?: any optional

    Object

  • width?: any optional

    Object

  • height?: any optional

    Object

optional public toString(): string

[Method] Return an svg path string for this path

Returns

string

String

optional public toStripes(target?: Array<any>): Array<any>

[Method] Convert path to bezier curve stripes

Parameters

  • target?: Array<any> optional

    Array The optional array to receive the result.

Returns

Array<any>

Array

optional public transform(matrix?: IMatrix)

[Method] Transform the current path by a matrix

Parameters

  • matrix?: IMatrix optional

    Ext.draw.Matrix