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?: number, y?: number, radius?: number, startAngle?: number, endAngle?: number, anticlockwise?: number)

[Method] Create an circular arc

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

  • radius?: number optional

    Number

  • startAngle?: number optional

    Number

  • endAngle?: number optional

    Number

  • anticlockwise?: number optional

    Number

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

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

Parameters

  • rx?: number optional

    Number

  • ry?: number optional

    Number

  • rotation?: number optional

    Number Differ from svg spec, this is radian.

  • fA?: number optional

    Number

  • fS?: number optional

    Number

  • x2?: number optional

    Number

  • y2?: number optional

    Number

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?: number, cy?: number, radiusX?: number, radiusY?: number, rotation?: number, startAngle?: number, endAngle?: number, anticlockwise?: number)

[Method] Create an elliptic arc

Parameters

  • cx?: number optional

    Number

  • cy?: number optional

    Number

  • radiusX?: number optional

    Number

  • radiusY?: number optional

    Number

  • rotation?: number optional

    Number

  • startAngle?: number optional

    Number

  • endAngle?: number optional

    Number

  • anticlockwise?: number optional

    Number

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

[Method] Reconstruct path from cubic bezier curve stripes

Parameters

  • stripes?: Array<any> optional

    Array

optional public fromSvgString(pathString?: string)

[Method] Feed the path from svg path string

Parameters

  • pathString?: string optional

    String

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?: number, y?: number): boolean

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

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

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?: number, y?: number, width?: number, height?: number)

[Method] Draw a rectangle and close it

Parameters

  • x?: number optional

    Number

  • y?: number optional

    Number

  • width?: number optional

    Number

  • height?: number optional

    Number

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