@use-gesture/core
Advanced tools
Comparing version 10.0.0-beta.8 to 10.0.0-beta.9
@@ -39,3 +39,3 @@ /// <reference types="react" /> | ||
*/ | ||
from?: Vector2 | ((state: State[T]) => Vector2); | ||
from?: Vector2 | ((state: NonNullable<State[T]>) => Vector2); | ||
/** | ||
@@ -42,0 +42,0 @@ * The handler will fire only when the gesture displacement is greater than |
@@ -659,3 +659,4 @@ 'use strict'; | ||
config, | ||
ingKey | ||
ingKey, | ||
args | ||
} = this; | ||
@@ -674,2 +675,3 @@ const { | ||
state._bounds = [[-Infinity, Infinity], [-Infinity, Infinity]]; | ||
state.args = args; | ||
state.axis = undefined; | ||
@@ -676,0 +678,0 @@ state.memo = undefined; |
@@ -659,3 +659,4 @@ 'use strict'; | ||
config, | ||
ingKey | ||
ingKey, | ||
args | ||
} = this; | ||
@@ -674,2 +675,3 @@ const { | ||
state._bounds = [[-Infinity, Infinity], [-Infinity, Infinity]]; | ||
state.args = args; | ||
state.axis = undefined; | ||
@@ -676,0 +678,0 @@ state.memo = undefined; |
@@ -655,3 +655,4 @@ import { V, c as computeRubberband } from './maths-b2a210f4.esm.js'; | ||
config, | ||
ingKey | ||
ingKey, | ||
args | ||
} = this; | ||
@@ -670,2 +671,3 @@ const { | ||
state._bounds = [[-Infinity, Infinity], [-Infinity, Infinity]]; | ||
state.args = args; | ||
state.axis = undefined; | ||
@@ -672,0 +674,0 @@ state.memo = undefined; |
{ | ||
"name": "@use-gesture/core", | ||
"version": "10.0.0-beta.8", | ||
"version": "10.0.0-beta.9", | ||
"description": "Core engine for receiving gestures", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -132,3 +132,3 @@ import { Controller } from '../Controller' | ||
reset() { | ||
const { state, shared, config, ingKey } = this | ||
const { state, shared, config, ingKey, args } = this | ||
const { transform, threshold = [0, 0] } = config | ||
@@ -146,2 +146,3 @@ shared[ingKey] = state._active = state.active = state._blocked = state._force = false | ||
state._bounds = [[-Infinity, Infinity], [-Infinity, Infinity]] | ||
state.args = args | ||
state.axis = undefined | ||
@@ -148,0 +149,0 @@ state.memo = undefined |
@@ -41,3 +41,3 @@ import { State } from './state' | ||
*/ | ||
from?: Vector2 | ((state: State[T]) => Vector2) | ||
from?: Vector2 | ((state: NonNullable<State[T]>) => Vector2) | ||
/** | ||
@@ -44,0 +44,0 @@ * The handler will fire only when the gesture displacement is greater than |
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
265205
7955