geostyler
Version:
Framework for styling geodata
19 lines (18 loc) • 487 B
JavaScript
var l = Object.defineProperty;
var d = (r, e, t) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
var n = (r, e, t) => d(r, typeof e != "symbol" ? e + "" : e, t);
class c {
}
/**
* Reads a file and returns its content as string.
*/
n(c, "readFile", async (e) => new Promise((t, s) => {
const a = new FileReader();
a.onload = () => {
const o = a.result;
t(o);
}, a.onerror = s, a.readAsText(e);
}));
export {
c as default
};