UNPKG

cui-light

Version:
41 lines (40 loc) 1.34 kB
export class CuiSetup { constructor() { this.autoLightMode = false; this.scrollThreshold = 20; this.resizeThreshold = 20; this.prefix = "cui"; this.plugins = {}; } fromInit(init) { var _a; this.prefix = (_a = init.prefix) !== null && _a !== void 0 ? _a : "cui"; this.logLevel = init.logLevel; this.cacheSize = init.cacheSize; this.autoLightMode = init.autoLightMode; this.animationTime = init.animationTime; this.animationTimeShort = init.animationTimeShort; this.animationTimeLong = init.animationTimeLong; this.scrollThreshold = init.scrollThreshold; this.resizeThreshold = init.resizeThreshold; return this; } } export class CuiSetupInit { constructor() { this.prefix = 'cui'; this.app = '$cui'; this.logLevel = 'warning'; this.interaction = 'async'; this.animationTime = 300; this.animationTimeShort = 150; this.animationTimeLong = 500; this.cacheSize = 500; this.autoLightMode = false; this.scrollThreshold = 20; this.resizeThreshold = 20; this.root = document.body; this.busSetup = undefined; this.development = undefined; } }