-
Notifications
You must be signed in to change notification settings - Fork 2
/
browser.js
37 lines (34 loc) · 840 Bytes
/
browser.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Image from './lib/image.browser.js';
import Band from './lib/band.js';
import Conversions from './lib/conversions.js';
import Filter from './lib/filter.js';
import DefaultFilter from './lib/default-filter.js';
import FilterCollection from './lib/filter-collection.js';
/**
* Collection of classes with shorthand read function.
* Browser-friendly.
* @namespace
* @ignore
* @see Pxlsrt
* @property {Image} Image
* @property {Band} Band
* @property {Filter} Filter
* @property {FilterCollection} FilterCollection
*/
const PxlsrtBrowser = {
Image,
Band,
Conversions,
Filter,
DefaultFilter,
FilterCollection,
/**
* Read image from path.
* @param {string} path - Path or URL
* @return {Promise<Image>}
*/
read(...args) {
return this.Image.read(...args);
},
};
module.exports = PxlsrtBrowser;