embla-carousel
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -10,4 +10,5 @@ import { Axis } from './axis'; | ||
to: (vector: Vector1D) => void; | ||
toggleActive: (active: boolean) => void; | ||
}; | ||
export declare function Translate(params: Params): Translate; | ||
export {}; |
@@ -1436,3 +1436,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}; | ||
return self; | ||
return Object.freeze(self); | ||
} | ||
@@ -1900,4 +1900,3 @@ | ||
var targetSnap = findTargetSnap(target); | ||
var targetIndex = findTargetIndex(target, targetSnap.index); | ||
var index = snap && !distance ? params.index.get() : targetIndex; | ||
var index = findTargetIndex(target, targetSnap.index); | ||
var reachedBound = !loop && reachedAny(target); | ||
@@ -2208,2 +2207,3 @@ if (!snap || reachedBound) return { | ||
var containerStyle = container.style; | ||
var disabled = false; | ||
var location = 0; | ||
@@ -2220,9 +2220,16 @@ | ||
function to(v) { | ||
if (disabled) return; | ||
var target = roundToTwoDecimals(v.get()); | ||
if (location === target) return; | ||
getComputedStyle(container).transform; | ||
containerStyle.transform = translateAxis(target); | ||
location = target; | ||
if (location !== target) { | ||
getComputedStyle(container).transform; | ||
containerStyle.transform = translateAxis(target); | ||
location = target; | ||
} | ||
} | ||
function toggleActive(active) { | ||
disabled = !active; | ||
} | ||
function clear() { | ||
@@ -2235,3 +2242,4 @@ containerStyle.transform = ''; | ||
clear: clear, | ||
to: to | ||
to: to, | ||
toggleActive: toggleActive | ||
}; | ||
@@ -2238,0 +2246,0 @@ return self; |
{ | ||
"name": "embla-carousel", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "David Cetinkaya", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -0,1 +1,3 @@ | ||
### Version 3 is here! Please read the [migration guide here](https://github.com/davidcetinkaya/embla-carousel/releases/tag/v3.0.0). It may take some time to update the documentation so bare with me. Cheers! | ||
<br /> | ||
@@ -2,0 +4,0 @@ <div align="center"> |
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
129603
2334
2224