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

@dflex/core-instance

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dflex/core-instance - npm Package Compare versions

Comparing version 2.10.0 to 2.10.1

8

dist/CoreInstance.d.ts

@@ -18,3 +18,7 @@ /**

isVisible: boolean;
constructor(elementWithPointer: ElmWIthPointer, isPause?: boolean);
constructor(elementWithPointer: ElmWIthPointer, { isPause, scrollX, scrollY }?: {
isPause?: boolean | undefined;
scrollX?: number | undefined;
scrollY?: number | undefined;
});
/**

@@ -27,3 +31,3 @@ * Initializes the element offset only when it's called. Since it is sorting

*/
initIndicators(): void;
initIndicators(scrollX: number, scrollY: number): void;
visibilityHasChanged(isVisible: boolean): void;

@@ -30,0 +34,0 @@ private updateCurrentIndicators;

@@ -42,4 +42,4 @@ "use strict";

__extends(CoreInstance, _super);
function CoreInstance(elementWithPointer, isPause) {
if (isPause === void 0) { isPause = false; }
function CoreInstance(elementWithPointer, _a) {
var _b = _a === void 0 ? {} : _a, _c = _b.isPause, isPause = _c === void 0 ? false : _c, _d = _b.scrollX, scrollX = _d === void 0 ? 0 : _d, _e = _b.scrollY, scrollY = _e === void 0 ? 0 : _e;
var _this = this;

@@ -59,3 +59,3 @@ var order = elementWithPointer.order, keys = elementWithPointer.keys, element = __rest(elementWithPointer, ["order", "keys"]);

if (_this.ref && _this.isVisible) {
_this.initIndicators();
_this.initIndicators(scrollX, scrollY);
_this.ref.dataset.index = "" + _this.order.self;

@@ -72,3 +72,3 @@ }

*/
CoreInstance.prototype.initIndicators = function () {
CoreInstance.prototype.initIndicators = function (scrollX, scrollY) {
var _a = this.ref.getBoundingClientRect(), height = _a.height, width = _a.width, left = _a.left, top = _a.top;

@@ -83,4 +83,4 @@ /**

width: width,
left: Math.abs(left),
top: Math.abs(top),
left: left + scrollX,
top: top + scrollY,
};

@@ -110,3 +110,3 @@ this.currentTop = this.offset.top;

CoreInstance.prototype.transformElm = function () {
this.ref.style.transform = "translate(" + this.translateX + "px," + this.translateY + "px)";
this.ref.style.transform = "translate3d(" + this.translateX + "px," + this.translateY + "px, 0)";
};

@@ -113,0 +113,0 @@ /**

@@ -66,4 +66,4 @@ /**

assignNewPosition(branchIDsOrder: string[], newIndex: number, oldIndex?: number, siblingsHasEmptyElm?: number): number;
initIndicators(): void;
initIndicators(scrollX: number, scrollY: number): void;
visibilityHasChanged(isVisible: boolean): void;
}
{
"name": "@dflex/core-instance",
"version": "2.10.0",
"version": "2.10.1",
"main": "dist/index.js",

@@ -38,3 +38,3 @@ "types": "dist/index.d.ts",

},
"gitHead": "e84ec2529421a3b5a26ffbf6a41035e00f4cb798"
"gitHead": "858f9fbb06e2a8d0b640c20ebf03759e5f6b4093"
}

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