scroll-rise
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { Widget } from './models/widgets/widget.model'; | ||
export declare class SMCanvas { | ||
export declare class SRCanvas { | ||
protected el: HTMLElement; | ||
@@ -4,0 +4,0 @@ protected height: (deviceWidth: number, deviceHeight: number) => number; |
import { Util } from './util'; | ||
var SMCanvas = /** @class */ (function () { | ||
function SMCanvas(el, height) { | ||
var SRCanvas = /** @class */ (function () { | ||
function SRCanvas(el, height) { | ||
this.el = el; | ||
@@ -9,13 +9,13 @@ this.height = height; | ||
} | ||
SMCanvas.prototype.init = function () { | ||
SRCanvas.prototype.init = function () { | ||
this.el.style.height = "".concat(this.height(Util.displayWidth(), Util.displayHeight()), "px"); | ||
}; | ||
SMCanvas.prototype.elementY = function () { | ||
SRCanvas.prototype.elementY = function () { | ||
return this.el.getBoundingClientRect().y; | ||
}; | ||
SMCanvas.prototype.add = function (widget) { | ||
SRCanvas.prototype.add = function (widget) { | ||
this._list.push(widget); | ||
widget.initElement(); | ||
}; | ||
Object.defineProperty(SMCanvas.prototype, "list", { | ||
Object.defineProperty(SRCanvas.prototype, "list", { | ||
get: function () { | ||
@@ -27,5 +27,5 @@ return this._list; | ||
}); | ||
return SMCanvas; | ||
return SRCanvas; | ||
}()); | ||
export { SMCanvas }; | ||
export { SRCanvas }; | ||
//# sourceMappingURL=canvas.js.map |
export { ScrollRise } from './scroll-rise'; | ||
export { ScrollRiseSpeed } from './scroll-rise-speed'; | ||
export { SRCanvas } from './canvas'; | ||
export { StaticWidget } from './models/widgets/static-widget'; | ||
export { RefWidget } from './models/widgets/ref-widget'; | ||
export { MoveMotion } from './models/motions/move-motion.model'; | ||
export { SizeMotion } from './models/motions/size-motion.model'; | ||
export { OpacityMotion } from './models/motions/opacity-motion.model'; | ||
export { Frame } from './models/frame.model'; |
export { ScrollRise } from './scroll-rise'; | ||
export { ScrollRiseSpeed } from './scroll-rise-speed'; | ||
export { SRCanvas } from './canvas'; | ||
export { StaticWidget } from './models/widgets/static-widget'; | ||
export { RefWidget } from './models/widgets/ref-widget'; | ||
export { MoveMotion } from './models/motions/move-motion.model'; | ||
export { SizeMotion } from './models/motions/size-motion.model'; | ||
export { OpacityMotion } from './models/motions/opacity-motion.model'; | ||
export { Frame } from './models/frame.model'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
import { SMCanvas } from './canvas'; | ||
import { SRCanvas } from './canvas'; | ||
export declare class ScrollRise { | ||
canvas: SMCanvas; | ||
canvas: SRCanvas; | ||
private lastKnownScrollPosition; | ||
@@ -8,3 +8,3 @@ private ticking; | ||
private resizeListener; | ||
constructor(canvas: SMCanvas); | ||
constructor(canvas: SRCanvas); | ||
tick(): void; | ||
@@ -11,0 +11,0 @@ scroll(): void; |
{ | ||
"name": "scroll-rise", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "The typescript library for scroll animation", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68766
1033