Skip to content

Circle

Defined in: shapes/circle.ts:8

Represents a circle object.

Extends

Constructors

Constructor

new Circle(x, y, r): Circle

Defined in: shapes/circle.ts:14

Creates a new square instance with specified radius.

Parameters

x

number = 0

y

number = 0

r

number = 1

Returns

Circle

Overrides

WPathObject.constructor

Properties

animate

animate: object

Defined in: wobject.ts:15

fill

fill: TweenerFactory<"fill", ColorLike>

position

position: TweenerFactory<"position">

rotate

rotate: TweenerFactory<"rotate">

scale

scale: TweenerFactory<"scale">

scaleX

scaleX: TweenerFactory<"scaleX">

scaleY

scaleY: TweenerFactory<"scaleY">

x

x: TweenerFactory<"x">

y

y: TweenerFactory<"y">

Inherited from

WPathObject.animate


element

element: SVGPathElement

Defined in: wobject.ts:14

The DOM element that represents the object’s visual.

Inherited from

WPathObject.element


path

path: WPath

Defined in: wpathobject.ts:11

The path defining the object.

Inherited from

WPathObject.path


r

r: number

Defined in: shapes/circle.ts:9

Accessors

size

Get Signature

get size(): Vector2

Defined in: shapes/circle.ts:23

Returns

Vector2

Overrides

WPathObject.size


visible

Get Signature

get visible(): boolean

Defined in: wobject.ts:186

Returns

boolean

Set Signature

set visible(v): void

Defined in: wobject.ts:189

Parameters
v

boolean

Returns

void

Inherited from

WPathObject.visible

Methods

anchor()

Call Signature

anchor(): Anchor

Defined in: wobject.ts:174

Returns

Anchor

Inherited from

WPathObject.anchor

Call Signature

anchor(value): this

Defined in: wobject.ts:175

Parameters
value

Anchor

Returns

this

Inherited from

WPathObject.anchor


createElement()

createElement(): SVGPathElement

Defined in: wpathobject.ts:24

Returns

SVGPathElement

Inherited from

WPathObject.createElement


fill()

Call Signature

fill(): ColorInstance

Defined in: wobject.ts:66

Returns

ColorInstance

Inherited from

WPathObject.fill

Call Signature

fill(color): this

Defined in: wobject.ts:67

Parameters
color

ColorLike

Returns

this

Inherited from

WPathObject.fill


fillOpacity()

Call Signature

fillOpacity(): number

Defined in: wobject.ts:78

Returns

number

Inherited from

WPathObject.fillOpacity

Call Signature

fillOpacity(value): this

Defined in: wobject.ts:79

Parameters
value

number

Returns

this

Inherited from

WPathObject.fillOpacity


hide()

hide(): void

Defined in: wobject.ts:207

Returns

void

Inherited from

WPathObject.hide


position()

Call Signature

position(): Vector2

Defined in: wobject.ts:54

Returns

Vector2

Inherited from

WPathObject.position

Call Signature

position(value): this

Defined in: wobject.ts:55

Parameters
value

Vector2

Returns

this

Inherited from

WPathObject.position


renderPath()

renderPath(): void

Defined in: wpathobject.ts:31

Sets the DOM elements path definition to the current path’s definition.

Returns

void

Inherited from

WPathObject.renderPath


rotate()

Call Signature

rotate(): number

Defined in: wobject.ts:162

Returns

number

Inherited from

WPathObject.rotate

Call Signature

rotate(value): this

Defined in: wobject.ts:163

Parameters
value

number

Returns

this

Inherited from

WPathObject.rotate


scale()

Call Signature

scale(): Vector2

Defined in: wobject.ts:150

Returns

Vector2

Inherited from

WPathObject.scale

Call Signature

scale(value): this

Defined in: wobject.ts:151

Parameters
value

Vector2

Returns

this

Inherited from

WPathObject.scale


scaleX()

Call Signature

scaleX(): number

Defined in: wobject.ts:126

Returns

number

Inherited from

WPathObject.scaleX

Call Signature

scaleX(value): this

Defined in: wobject.ts:127

Parameters
value

number

Returns

this

Inherited from

WPathObject.scaleX


scaleY()

Call Signature

scaleY(): number

Defined in: wobject.ts:138

Returns

number

Inherited from

WPathObject.scaleY

Call Signature

scaleY(value): this

Defined in: wobject.ts:139

Parameters
value

number

Returns

this

Inherited from

WPathObject.scaleY


show()

show(): void

Defined in: wobject.ts:211

Returns

void

Inherited from

WPathObject.show


stroke()

Call Signature

stroke(): ColorInstance

Defined in: wobject.ts:90

Returns

ColorInstance

Inherited from

WPathObject.stroke

Call Signature

stroke(color): this

Defined in: wobject.ts:91

Parameters
color

ColorLike

Returns

this

Inherited from

WPathObject.stroke


strokeOpacity()

Call Signature

strokeOpacity(): number

Defined in: wobject.ts:102

Returns

number

Inherited from

WPathObject.strokeOpacity

Call Signature

strokeOpacity(value): this

Defined in: wobject.ts:103

Parameters
value

number

Returns

this

Inherited from

WPathObject.strokeOpacity


strokeWidth()

Call Signature

strokeWidth(): number

Defined in: wobject.ts:114

Returns

number

Inherited from

WPathObject.strokeWidth

Call Signature

strokeWidth(value): this

Defined in: wobject.ts:115

Parameters
value

number

Returns

this

Inherited from

WPathObject.strokeWidth


updateFill()

updateFill(): void

Defined in: wobject.ts:237

Returns

void

Inherited from

WPathObject.updateFill


updateStroke()

updateStroke(): void

Defined in: wobject.ts:231

Returns

void

Inherited from

WPathObject.updateStroke


updateTransform()

updateTransform(): void

Defined in: wobject.ts:215

Returns

void

Inherited from

WPathObject.updateTransform


x()

Call Signature

x(): number

Defined in: wobject.ts:30

Returns

number

Inherited from

WPathObject.x

Call Signature

x(value): this

Defined in: wobject.ts:31

Parameters
value

number

Returns

this

Inherited from

WPathObject.x


y()

Call Signature

y(): number

Defined in: wobject.ts:42

Returns

number

Inherited from

WPathObject.y

Call Signature

y(value): this

Defined in: wobject.ts:43

Parameters
value

number

Returns

this

Inherited from

WPathObject.y


fromSVGPath()

static fromSVGPath(pathDefinition): WPathObject

Defined in: wpathobject.ts:36

Parameters

pathDefinition

string

Returns

WPathObject

Inherited from

WPathObject.fromSVGPath