fix(core): update

This commit is contained in:
2022-04-20 23:56:09 +02:00
parent 7023888f38
commit 68ca1e8906
3 changed files with 228 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ import { TViewport } from './domtools.css.breakpoints.js';
import { Scroller } from './domtools.classes.scroller.js';
import { WebSetup } from '@pushrocks/websetup';
import { ThemeManager } from './domtools.classes.thememanager.js';
import { Keyboard, Key } from './domtools.classes.keyboard.js';
export interface IDomToolsState {
virtualViewport: TViewport;
@@ -91,18 +92,8 @@ export class DomTools {
/* some options */
}); // TODO: switch to scroller class
public themeManager = new ThemeManager(this);
/* private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
async (statePart, payload) => {
const currentState = statePart.getState();
currentState.virtualViewport = payload;
return currentState;
}
);
public setVirtualViewport(environmentArg: TViewport) {
this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg);
} */
public keyboard = new Keyboard(document.body);
public domToolsReady = plugins.smartpromise.defer();
public domReady = plugins.smartpromise.defer();