Interface IRect

Hierarchy

Index

Methods

Methods

public applyLineJoin()

public cache(cacheConfig?: any): INode

Parameters

  • cacheConfig?: any optional

Returns

INode

public clone(attrs: any): INode

Parameters

  • attrs: any

Returns

INode

public destroy()

public draw(): INode

Returns

INode

public drawBuffer(): any

Returns

any

public drawImage()

public drawScene(): any

Returns

any

public fill()

public fillText(text: string)

Parameters

  • text: string

public fire(typeStr: string, event?: any, bubble?: boolean): any

Parameters

  • typeStr: string
  • event?: any optional
  • bubble?: boolean optional

Returns

any

public getAbsoluteOpacity(): number

Returns

number

public getAbsolutePosition(): Vector2d

Returns

Vector2d

public getAbsoluteTransform(): any

Returns

any

public getAbsoluteZIndex(): number

Returns

number

public getAttrs(): any

Returns

any

public getCanvas(): ICanvas

Returns

ICanvas

public getContext(): any

Returns

any

public getCornerRadius(): number

Returns

number

public getDragBounds(): any

Returns

any

public getDragConstraint(): any

Returns

any

public getDraggable(): boolean

Returns

boolean

public getDrawFunc(): any

Returns

any

public getFill(): string

Returns

string

public getHeight(): number

Returns

number

public getId(): string

Returns

string

public getLayer(): any

Returns

any

public getLevel(): number

Returns

number

public getLineJoin(): any

Returns

any

public getListening(): any

Returns

any

public getName(): string

Returns

string

public getOffset(): Vector2d

Returns

Vector2d

public getOpacity(): number

Returns

number

public getParent(): any

Returns

any

public getPosition(): Vector2d

Returns

Vector2d

public getRotation(): number

Returns

number

public getRotationDeg(): number

Returns

number

public getScale(): Vector2d

Returns

Vector2d

public getScaleX(): number

Returns

number

public getScaleY(): number

Returns

number

public getShadow(): any

Returns

any

public getSize(): ISize

Returns

ISize

public getStage(): IStage

Returns

IStage

public getStroke(): any

Returns

any

public getStrokeWidth(): number

Returns

number

public getTransform(): any

Returns

any

public getWidth(): number

Returns

number

public getX(): number

Returns

number

public getY(): number

Returns

number

public getZIndex(): number

Returns

number

public height(): number

Returns

number

public height(height: number)

Parameters

  • height: number

public hide()

public id(): string

Returns

string

public id(id: string)

Parameters

  • id: string

public intersects(point: any): boolean

Parameters

  • point: any

Returns

boolean

public isDraggable(): boolean

Returns

boolean

public isDragging(): boolean

Returns

boolean

public isListening(): boolean

Returns

boolean

public move(x: number, y: number)

Parameters

  • x: number
  • y: number

public moveDown()

public moveTo(newContainer: IContainer)

Parameters

public moveToBottom()

public moveToTop()

public moveUp()

public name(): string

Returns

string

public name(name: string)

Parameters

  • name: string

public off(typesStr: string)

Parameters

  • typesStr: string

public on(typesStr: string, handler: (data: any) => any)

Parameters

  • typesStr: string
  • handler: (data: any) => any

public rotate(theta: number)

Parameters

  • theta: number

public rotateDeg(deg: number)

Parameters

  • deg: number

public setAbsolutePosition(pos: Vector2d)

Parameters

public setAttrs(config: any)

Parameters

  • config: any

public setCornerRadius(radius: number): any

Parameters

  • radius: number

Returns

any

public setDefaultAttrs(config: any)

Parameters

  • config: any

public setDragBounds(bounds: any)

Parameters

  • bounds: any

public setDragConstraint(constraint: string)

Parameters

  • constraint: string

public setDraggable(draggable: boolean)

Parameters

  • draggable: boolean

public setDrawFunc(drawFunc: () => any): any

Parameters

  • drawFunc: () => any

Returns

any

public setFill(fill: string): any

Parameters

  • fill: string

Returns

any

public setHeight(height: number): any

Parameters

  • height: number

Returns

any

public setId(id: string)

Parameters

  • id: string

public setLineJoin(): any

Returns

any

public setListening(listening: boolean)

Parameters

  • listening: boolean

public setOffset(offset: Vector2d): any

Parameters

Returns

any

public setOpacity(opacity: any)

Parameters

  • opacity: any

public setPosition(position: Vector2d)

Parameters

public setRotation(theta: number)

Parameters

  • theta: number

public setRotationDeg(rotDeg: number)

Parameters

  • rotDeg: number

public setScale(scale: Vector2d)

Parameters

public setScaleX(scale: number)

Parameters

  • scale: number

public setScaleY(scale: number)

Parameters

  • scale: number

public setShadow(config: any): any

Parameters

  • config: any

Returns

any

public setSize(size: ISize): any

Parameters

Returns

any

public setStroke(stroke: string): any

Parameters

  • stroke: string

Returns

any

public setStrokeWidth(strokeWidth: number): any

Parameters

  • strokeWidth: number

Returns

any

public setWidth(width: number): any

Parameters

  • width: number

Returns

any

public setX(x: number)

Parameters

  • x: number

public setY(y: number)

Parameters

  • y: number

public setZIndex(zIndex: number)

Parameters

  • zIndex: number

public show()

public simulate(eventType: string)

Parameters

  • eventType: string

public stroke(): any

Returns

any

public strokeText(text: string): any

Parameters

  • text: string

Returns

any

public toDataURL(config: any)

Parameters

  • config: any

public transitionTo(config: any)

Parameters

  • config: any

public width(): number

Returns

number

public width(width: number)

Parameters

  • width: number

public x(): number

Returns

number

public x(x: number)

Parameters

  • x: number

public y(): number

Returns

number

public y(y: number)

Parameters

  • y: number