simplify IIFE - expose to window

This commit is contained in:
Azgaar 2021-07-29 23:53:07 +03:00
parent dc10a0b6cb
commit d542b761d0

View file

@ -1,8 +1,6 @@
"use strict"; "use strict";
(function (global, factory) { window.HeightmapGenerator = (function () {
typeof exports === "object" && typeof module !== "undefined" ? (module.exports = factory()) : typeof define === "function" && define.amd ? define(factory) : (global.HeightmapGenerator = factory());
})(this, function () {
let cells, p; let cells, p;
const generate = function () { const generate = function () {
@ -411,4 +409,4 @@
} }
return {generate, addHill, addRange, addTrough, addStrait, addPit, smooth, modify}; return {generate, addHill, addRange, addTrough, addStrait, addPit, smooth, modify};
}); })();