Compare commits

...

6 Commits

Author SHA1 Message Date
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
50ace4c236 1.0.31 2020-06-28 16:42:31 +00:00
90f68965bb fix(core): update 2020-06-28 16:42:30 +00:00
6 changed files with 14 additions and 6 deletions

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.30",
"version": "1.0.33",
"private": false,
"description": "tools to simplify complex css structures",
"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 { TViewport } from './domtools.breakpoints';
import { Scroller } from './domtools.classes.scroller';
export interface IDomToolsState {
virtualViewport: TViewport;
}
@ -57,6 +59,8 @@ export class DomTools {
debug: false,
});
public scroller: plugins.SweetScroll;
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
async (statePart, payload) => {
const currentState = statePart.getState();
@ -72,7 +76,7 @@ export class DomTools {
constructor() {
// lets care about third party stuff
this.domToolsReady.promise.then(() => {
const scroller = new plugins.sweetscroll({
this.scroller = new plugins.SweetScroll({
/* some options */
});
});

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

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