32 lines
899 B
JavaScript
32 lines
899 B
JavaScript
(function (factory) {
|
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
var v = factory(require, exports);
|
|
if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === "function" && define.amd) {
|
|
define(["require", "exports"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Slow = void 0;
|
|
class Slow {
|
|
constructor() {
|
|
this.factor = 3;
|
|
this.radius = 200;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.factor !== undefined) {
|
|
this.factor = data.factor;
|
|
}
|
|
if (data.radius !== undefined) {
|
|
this.radius = data.radius;
|
|
}
|
|
}
|
|
}
|
|
exports.Slow = Slow;
|
|
});
|