@php-wasm/progress 0.9.28 → 0.9.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/progress-tracker.d.ts +11 -9
- package/package.json +4 -4
|
@@ -50,16 +50,18 @@ export interface ProgressReceiver {
|
|
|
50
50
|
setLoaded(): any;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* The ProgressTracker class is a tool for tracking progress in an operation
|
|
54
|
-
* divided into multiple stages. It allows you to create sub-trackers
|
|
55
|
-
* with individual weights and captions. The main tracker
|
|
56
|
-
* progress based on the weighted sum of each
|
|
57
|
-
* to keep track of a complex,
|
|
53
|
+
* The ProgressTracker class is a tool for tracking progress in an operation
|
|
54
|
+
* that is divided into multiple stages. It allows you to create sub-trackers
|
|
55
|
+
* for each stage, with individual weights and captions. The main tracker
|
|
56
|
+
* automatically calculates the progress based on the weighted sum of each
|
|
57
|
+
* sub-tracker's progress. This makes it easy to keep track of a complex,
|
|
58
|
+
* multi-stage process and report progress in a user-friendly way.
|
|
58
59
|
*
|
|
59
|
-
* After creating the sub-trackers, you can call the set() method to update the
|
|
60
|
-
* of the current stage. You can also call the finish() method to mark
|
|
61
|
-
* as complete and move on to the next one. Alternatively,
|
|
62
|
-
* method to simulate progress filling up slowly
|
|
60
|
+
* After creating the sub-trackers, you can call the set() method to update the
|
|
61
|
+
* progress of the current stage. You can also call the finish() method to mark
|
|
62
|
+
* the current stage as complete and move on to the next one. Alternatively,
|
|
63
|
+
* you can call the fillSlowly() method to simulate progress filling up slowly
|
|
64
|
+
* to 100% before calling finish().
|
|
63
65
|
*
|
|
64
66
|
* @example
|
|
65
67
|
* ```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/progress",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.30",
|
|
4
4
|
"description": "PHP.wasm – loading progress monitoring",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"type": "module",
|
|
30
30
|
"main": "index.js",
|
|
31
31
|
"types": "index.d.ts",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "8c1286b89eb1793445681bf801f64cbf12e15cf2",
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=18.18.0",
|
|
35
35
|
"npm": ">=8.11.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@php-wasm/node-polyfills": "0.9.
|
|
39
|
-
"@php-wasm/logger": "0.9.
|
|
38
|
+
"@php-wasm/node-polyfills": "0.9.30",
|
|
39
|
+
"@php-wasm/logger": "0.9.30"
|
|
40
40
|
}
|
|
41
41
|
}
|