Skip to main content

@webda/workoutReadme | API


Class: WorkerProgress

Represents a progress indicator

Constructors

new WorkerProgress(uid, total, groups, title)

new WorkerProgress(uid, total, groups, title?): WorkerProgress

Parameters

uid: string

total: number

groups: string[]

title?: string

Returns

WorkerProgress

Source

src/core.ts:25

Properties

current

current: number = 0

Source

src/core.ts:22


groups

groups: string[] = []

Source

src/core.ts:19


running

running: boolean = true

Source

src/core.ts:23


title

title: string

Source

src/core.ts:18


total

total: number

Source

src/core.ts:21


uid

uid: string

Source

src/core.ts:20

Methods

getRatio()

getRatio(): number

Returns

number

Source

src/core.ts:32


incrementProgress()

incrementProgress(inc): void

Parameters

inc: number

Returns

void

Source

src/core.ts:36


updateProgress()

updateProgress(current): void

Parameters

current: number

Returns

void

Source

src/core.ts:40