Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scroll-rise

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-rise - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

lib/canvas.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc