Socket
Socket
Sign inDemoInstall

@use-gesture/core

Package Overview
Dependencies
0
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.0-beta.8 to 10.0.0-beta.9

2

dist/declarations/src/types/config.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc