UNPKG

436 BJavaScriptView Raw
1import { deepExtend } from "../../Utils";
2export class Responsive {
3 constructor() {
4 this.maxWidth = Infinity;
5 this.options = {};
6 }
7 load(data) {
8 if (!data) {
9 return;
10 }
11 if (data.maxWidth !== undefined) {
12 this.maxWidth = data.maxWidth;
13 }
14 if (data.options !== undefined) {
15 this.options = deepExtend({}, data.options);
16 }
17 }
18}