@operato/headroom
Advanced tools
Comparing version 9.0.0-beta.4 to 9.0.0-beta.10
@@ -6,2 +6,11 @@ # Change Log | ||
## [9.0.0-beta.10](https://github.com/hatiolab/operato/compare/v9.0.0-beta.9...v9.0.0-beta.10) (2025-01-25) | ||
### :bug: Bug Fix | ||
* tweak tsconfig.json ([3c424b1](https://github.com/hatiolab/operato/commit/3c424b18d046f95d5619076d113d49a4b4dc9bbb)) | ||
## [9.0.0-beta.4](https://github.com/hatiolab/operato/compare/v9.0.0-beta.3...v9.0.0-beta.4) (2025-01-20) | ||
@@ -8,0 +17,0 @@ |
@@ -15,2 +15,86 @@ import trackScroll from './trackScroll.js'; | ||
constructor(elem, options) { | ||
Object.defineProperty(this, "classes", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "elem", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "tolerance", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "offset", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "initialised", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "frozen", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "scrollTracker", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "scroller", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onPin", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onUnpin", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onTop", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onNotTop", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onBottom", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
Object.defineProperty(this, "onNotBottom", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: void 0 | ||
}); | ||
options = options || {}; | ||
@@ -181,21 +265,26 @@ Object.assign(this, Headroom.options, options); | ||
*/ | ||
Headroom.options = { | ||
tolerance: { | ||
up: 0, | ||
down: 0 | ||
}, | ||
offset: 0, | ||
scroller: window, | ||
classes: { | ||
frozen: 'headroom--frozen', | ||
pinned: 'headroom--pinned', | ||
unpinned: 'headroom--unpinned', | ||
top: 'headroom--top', | ||
notTop: 'headroom--not-top', | ||
bottom: 'headroom--bottom', | ||
notBottom: 'headroom--not-bottom', | ||
initial: 'headroom' | ||
Object.defineProperty(Headroom, "options", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: { | ||
tolerance: { | ||
up: 0, | ||
down: 0 | ||
}, | ||
offset: 0, | ||
scroller: window, | ||
classes: { | ||
frozen: 'headroom--frozen', | ||
pinned: 'headroom--pinned', | ||
unpinned: 'headroom--unpinned', | ||
top: 'headroom--top', | ||
notTop: 'headroom--not-top', | ||
bottom: 'headroom--bottom', | ||
notBottom: 'headroom--not-bottom', | ||
initial: 'headroom' | ||
} | ||
} | ||
}; | ||
}); | ||
export default Headroom; | ||
//# sourceMappingURL=headroom.js.map |
@@ -5,3 +5,3 @@ { | ||
"author": "heartyoh", | ||
"version": "9.0.0-beta.4", | ||
"version": "9.0.0-beta.10", | ||
"type": "module", | ||
@@ -67,3 +67,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "d1d762cc701221021637fda95f7399ca641afb6e" | ||
"gitHead": "5f56d67c7097c8362e658c78262e6bbec66029cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
113504
537