3.0.0-alpha.13 • Published 9 months ago

@nextgis/progress v3.0.0-alpha.13

Weekly downloads
2
License
MIT
Repository
github
Last release
9 months ago

Progress

size version

Tracking the progress of asynchronous operations.

Installation

In Browser

Include assets

Simply download and include with a script tag, Progress will be registered as a global variable.

<script src="../lib/progress.global.js"></script>

<script>
  var progress = new Progress();
  progress.emitter.on('stop', function () {
    console.log('STOP LOADING')
  })
  progress.addLoading();
  progress.addLoaded();
</script>

CDN

unpkg

<script src="https://unpkg.com/@nextgis/progress"></script>

jsdelivr

<script src="https://cdn.jsdelivr.net/npm/@nextgis/progress"></script>

We recommend linking to a specific version number /progress@[version]

In Node.js

npm install @nextgis/progress

Usage

import Progress from '@nextgis/progress';

const progress = new Progress();

// emitted when the first loader is added
progress.emitter.on('start', () => {

});
// emitted when the last loader is removed
progress.emitter.on('stop', () => {

});
// emitted on each loader is added
progress.emitter.on('add', () => {

});
// emmitted on each loader is removed
progress.emitter.on('remove', () => {

});

progress.addLoading();
fetch(url).finally(() => {
  progress.addLoaded();
})

Check out the API Documentation

Commercial support

Need to fix a bug or add a feature to @nextgis/progress? We provide custom development and support for this software. Contact us to discuss options!

http://nextgis.com

3.0.0-alpha.13

9 months ago

3.0.0-alpha.5

10 months ago

2.3.0

1 year ago

3.0.0-alpha.1

1 year ago

2.5.0

1 year ago

3.0.0-alpha.0

1 year ago

3.0.0-alpha.3

12 months ago

2.1.0

1 year ago

2.0.2

1 year ago

2.0.0

1 year ago

2.0.0-alpha.2

1 year ago

2.0.0-alpha.1

1 year ago

2.0.0-alpha.0

1 year ago

1.19.0

2 years ago

1.17.0

2 years ago

1.18.21

2 years ago

1.16.8

2 years ago

1.16.6

2 years ago

1.16.5

2 years ago

1.16.2

3 years ago

1.16.1

3 years ago

1.15.0

3 years ago

1.15.1

3 years ago

1.13.2

3 years ago

1.13.3

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.10

3 years ago

1.11.0

4 years ago

1.8.4

4 years ago

1.8.3

4 years ago

1.8.2

4 years ago

1.7.0

4 years ago

1.5.1

4 years ago

1.4.0

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta.10

4 years ago

1.0.0-beta.7

4 years ago

1.0.0-beta.8

4 years ago

1.0.0-beta.6

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.2

5 years ago