Interface IRect

Hierarchy

Index

Properties

Methods

Properties

public angle: number

public borderColor: string

public borderOpacityWhenMoving: number

public borderScaleFactor: number

public cornerColor: string

public cornersize: number

public fill: string

public fillRule: string

public flipX: boolean

public flipY: boolean

public hasBorders: boolean

public hasControls: boolean

public hasRotatingPoint: boolean

public height: number

public includeDefaultValues: boolean

public left: number

public lockMovementX: boolean

public lockMovementY: boolean

public lockRotation: boolean

public lockScaling: boolean

public lockScalingX: boolean

public lockScalingY: boolean

public lockUniScaling: boolean

public opacity: number

public originX: string

public originY: string

public overlayFill: string

public padding: number

public perPixelTargetFind: boolean

public rotatingPointOffset: number

public rx: number

public ry: number

public scaleX: number

public scaleY: number

public selectable: boolean

public stateProperties: Array<any>

public stroke: string

public strokeDashArray: Array<any>

public strokeWidth: number

public top: number

public transformMatrix: Array<any>

public transparentCorners: boolean

public type: string

public width: number

public x: number

public y: number

Methods

public bringForward(): IObject

Returns

IObject

public bringToFront(): IObject

Returns

IObject

public center(): IObject

Returns

IObject

public centerH(): IObject

Returns

IObject

public centerV(): IObject

Returns

IObject

public clone(callback?: any, propertiesToInclude?: any): IObject

Parameters

  • callback?: any optional
  • propertiesToInclude?: any optional

Returns

IObject

public cloneAsImage(callback: any): IObject

Parameters

  • callback: any

Returns

IObject

public complexity(): number

Returns

number

public drawBorders(context: CanvasRenderingContext2D): IObject

Parameters

  • context: CanvasRenderingContext2D

Returns

IObject

public drawCorners(context: CanvasRenderingContext2D): IObject

Parameters

  • context: CanvasRenderingContext2D

Returns

IObject

public fire(eventName: string, options: any): any

Parameters

  • eventName: string
  • options: any

Returns

any

public get(property: string): any

Parameters

  • property: string

Returns

any

public getAngle(): number

Returns

number

public getBorderColor(): string

Returns

string

public getBorderScaleFactor(): number

Returns

number

public getBoundingRectHeight(): number

Returns

number

public getBoundingRectWidth(): number

Returns

number

public getCornersize(): number

Returns

number

public getCurrentHeight(): number

Returns

number

public getCurrentWidth(): number

Returns

number

public getFill(): string

Returns

string

public getFillRule(): string

Returns

string

public getFlipX(): boolean

Returns

boolean

public getFlipY(): boolean

Returns

boolean

public getHeight(): number

Returns

number

public getLeft(): number

Returns

number

public getOpacity(): number

Returns

number

public getOverlayFill(): string

Returns

string

public getScaleX(): number

Returns

number

public getScaleY(): number

Returns

number

public getSvgStyles(): string

Returns

string

public getSvgTransform(): string

Returns

string

public getTop(): number

Returns

number

public getWidth(): number

Returns

number

public hasStateChanged(): boolean

Returns

boolean

public initialize(options: any): any

Parameters

  • options: any

Returns

any

public initialize(points: Array<number>, options: any): IRect

Parameters

  • points: Array<number>
  • options: any

Returns

IRect

public intersectsWithObject(other: IObject): boolean

Parameters

Returns

boolean

public intersectsWithRect(selectionTL: any, selectionBR: any): boolean

Parameters

  • selectionTL: any
  • selectionBR: any

Returns

boolean

public isActive(): boolean

Returns

boolean

public isContainedWithinObject(other: IObject): boolean

Parameters

Returns

boolean

public isContainedWithinRect(selectionTL: any, selectionBR: any): boolean

Parameters

  • selectionTL: any
  • selectionBR: any

Returns

boolean

public isType(type: string): boolean

Parameters

  • type: string

Returns

boolean

public observe(eventCollection: IEventList): any

Parameters

Returns

any

public observe(eventName: string, handler: (e: any) => any): any

Parameters

  • eventName: string
  • handler: (e: any) => any

Returns

any

public off(eventName: any, handler: any): any

Parameters

  • eventName: any
  • handler: any

Returns

any

public on(eventCollection: IEventList): any

Parameters

Returns

any

public on(eventName: string, handler: (e: any) => any): any

Parameters

  • eventName: string
  • handler: (e: any) => any

Returns

any

public remove(): IObject

Returns

IObject

public render(ctx: CanvasRenderingContext2D, noTransform: boolean): any

Parameters

  • ctx: CanvasRenderingContext2D
  • noTransform: boolean

Returns

any

public rotate(value: number): IObject

Parameters

  • value: number

Returns

IObject

public saveState(): IObject

Returns

IObject

public scale(value: number): IObject

Parameters

  • value: number

Returns

IObject

public scaleToHeight(value: number): IObject

Parameters

  • value: number

Returns

IObject

public scaleToWidth(value: number): IObject

Parameters

  • value: number

Returns

IObject

public sendBackwards(): IObject

Returns

IObject

public sendToBack(): IObject

Returns

IObject

public set(properties: IObjectOptions): IObject

Parameters

Returns

IObject

public set(name: string, value: any): IObject

Parameters

  • name: string
  • value: any

Returns

IObject

public setActive(active: boolean): IObject

Parameters

  • active: boolean

Returns

IObject

public setAngle(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setBorderColor(value: string): IObject

Parameters

  • value: string

Returns

IObject

public setCoords(): any

Returns

any

public setCornersize(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setFill(value: string): IObject

Parameters

  • value: string

Returns

IObject

public setFillRule(value: string): IObject

Parameters

  • value: string

Returns

IObject

public setFlipX(value: boolean): IObject

Parameters

  • value: boolean

Returns

IObject

public setFlipY(value: boolean): IObject

Parameters

  • value: boolean

Returns

IObject

public setGradientFill(options: any): any

Parameters

  • options: any

Returns

any

public setHeight(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setLeft(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setOpacity(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setOptions(options: any): any

Parameters

  • options: any

Returns

any

public setOverlayFill(value: string): IObject

Parameters

  • value: string

Returns

IObject

public setScaleX(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setScaleY(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setSourcePath(value: string): IObject

Parameters

  • value: string

Returns

IObject

public setTop(value: number): IObject

Parameters

  • value: number

Returns

IObject

public setWidth(value: number): IObject

Parameters

  • value: number

Returns

IObject

public stopObserving(eventName: string, handler: (e: any) => any): any

Parameters

  • eventName: string
  • handler: (e: any) => any

Returns

any

public toDataURL(callback: any): string

Parameters

  • callback: any

Returns

string

public toDatalessObject(propertiesToInclude: any): any

Parameters

  • propertiesToInclude: any

Returns

any

public toGrayscale(): IObject

Returns

IObject

public toJSON(propertiesToInclude: any): string

Parameters

  • propertiesToInclude: any

Returns

string

public toObject(propertiesToInclude: Array<any>): any

Parameters

  • propertiesToInclude: Array<any>

Returns

any

public toSVG(): string

Returns

string

public toggle(property: any): IObject

Parameters

  • property: any

Returns

IObject

public tostring(): string

Returns

string

public transform(ctx: CanvasRenderingContext2D): any

Parameters

  • ctx: CanvasRenderingContext2D

Returns

any