Compare commits

...

8 Commits

Author SHA1 Message Date
6cc5ec315e 1.0.35 2020-06-28 21:26:57 +00:00
88810bae2c fix(core): update 2020-06-28 21:26:57 +00:00
21369d8da5 1.0.34 2020-06-28 18:03:23 +00:00
a5973944ee fix(core): update 2020-06-28 18:03:22 +00:00
ad3f4b31fa 1.0.33 2020-06-28 17:40:03 +00:00
91b50ecde5 fix(core): update 2020-06-28 17:40:03 +00:00
45fecfbde8 1.0.32 2020-06-28 16:59:15 +00:00
e3e6d06969 fix(core): update 2020-06-28 16:59:14 +00:00
6 changed files with 23 additions and 14 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "1.0.31", "version": "1.0.35",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "1.0.31", "version": "1.0.35",
"private": false, "private": false,
"description": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -3,6 +3,8 @@ import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap'; import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
import { TViewport } from './domtools.breakpoints'; import { TViewport } from './domtools.breakpoints';
import { Scroller } from './domtools.classes.scroller';
export interface IDomToolsState { export interface IDomToolsState {
virtualViewport: TViewport; virtualViewport: TViewport;
} }
@ -57,6 +59,8 @@ export class DomTools {
debug: false, debug: false,
}); });
public scroller: plugins.SweetScroll;
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>( private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
async (statePart, payload) => { async (statePart, payload) => {
const currentState = statePart.getState(); const currentState = statePart.getState();
@ -71,15 +75,11 @@ export class DomTools {
constructor() { constructor() {
// lets care about third party stuff // lets care about third party stuff
document.addEventListener( this.domToolsReady.promise.then(() => {
'DOMContentLoaded', this.scroller = new plugins.SweetScroll({
() => { /* some options */
const scroller = new plugins.sweetscroll({ });
/* some options */ });
});
},
false,
);
} }
private runOnceTrackerStringMap = new Stringmap(); private runOnceTrackerStringMap = new Stringmap();

View File

@ -0,0 +1,5 @@
import * as plugins from './domtools.plugins';
export class Scroller {
// TODO: move sweet scroll over to here;
}

View File

@ -1 +0,0 @@
import * as plugins from './domtools.plugins';

View File

@ -1,3 +1,8 @@
// api glbal scope
import * as typedrequest from '@apiglobal/typedrequest';
export { typedrequest };
// pushrocks scope // pushrocks scope
import * as smartpromise from '@pushrocks/smartpromise'; import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrouter from '@pushrocks/smartrouter'; import * as smartrouter from '@pushrocks/smartrouter';
@ -8,6 +13,6 @@ import * as websetup from '@pushrocks/websetup';
export { smartpromise, smartrouter, smartstate, webrequest, websetup }; export { smartpromise, smartrouter, smartstate, webrequest, websetup };
// third party scope // third party scope
import sweetscroll from 'sweet-scroll'; import SweetScroll from 'sweet-scroll';
export { sweetscroll }; export { SweetScroll };