New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adoratorio/hades

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adoratorio/hades - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

1

dist/index.d.ts

@@ -28,2 +28,3 @@ import { MODE, DIRECTION, TRACK, HadesOptions, Boundries, Vec2, Easing } from "./declarations";

private startNeedEmission;
private aionId;
amount: Vec2;

@@ -30,0 +31,0 @@ velocity: Vec2;

5

dist/index.js

@@ -34,2 +34,3 @@ "use strict";

this.startNeedEmission = true;
this.aionId = "hades-frame-" + Date.now();
this.amount = { x: 0, y: 0 };

@@ -127,3 +128,3 @@ this.velocity = { x: 0, y: 0 };

}
this.engine.add(this.frameHandler, 'hades_frame');
this.engine.add(this.frameHandler, this.aionId);
this.engine.start();

@@ -363,3 +364,3 @@ }

this.manager.destroy();
this.engine.remove('hades_frame');
this.engine.remove(this.aionId);
delete this.manager;

@@ -366,0 +367,0 @@ delete this.engine;

{
"name": "@adoratorio/hades",
"version": "0.2.1",
"version": "0.2.2",
"description": "A smooth scrollbar based on Hermes, scroll down 'till hell",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -34,3 +34,3 @@ # Hades

|emitGlobal|`boolean`|`false`|If you want the custom scroll generated internally also emitted on global scope (window).|
|callback|`Callbacks`|`{ frame: () => {}, scroll: () => {} }`|The callbacks functions, scroll is called on each scroll event, the [HadesEvent]() is passed to this function. Frame is called every rAF after updating style|
|callbacks|`Callbacks`|`{ frame: () => {}, scroll: () => {} }`|The callbacks functions, scroll is called on each scroll event, the [HadesEvent]() is passed to this function. Frame is called every rAF after updating style|
|renderByPixel|`boolean`|`false`|Used if you want to apply integer rounded values to the css transition units. If not, the full value is used instead, resulting in a smoother animations, especially the slowest ones, avoiding that much stattering in particular in the end of the animation, but it's performance consuming.|

@@ -37,0 +37,0 @@ |lockX|`boolean`|`true`|Lock the x axis when detecting scroll events.|

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