Socket
Socket
Sign inDemoInstall

@interactjs/types

Package Overview
Dependencies
Maintainers
2
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/types - npm Package Compare versions

Comparing version 1.4.0-alpha.23 to 1.4.0-alpha.24

15

interactjs-test.js

@@ -123,4 +123,3 @@ import interact from 'interactjs';

.on('dragstart', listener)
// cannot type this. This option has been removed from type definition
// .on('dragmove dragend', listener)
.on('dragmove dragend', listener)
.on(['resizemove', 'resizeend'], listener)

@@ -131,3 +130,15 @@ .on({

});
interact.on('resize', (event) => {
const { rect, deltaRect } = event;
alert(JSON.stringify({ rect, deltaRect }));
});
interact(target).resizable({
listeners: [
{ start: listener, move: listener },
],
});
interact(target).draggable({
listeners: { start: listener, end: listener },
});
interact(target).draggable({
onstart: listener,

@@ -134,0 +145,0 @@ onmove: listener,

22

package.json
{
"name": "@interactjs/types",
"version": "1.4.0-alpha.23+sha.69f8af9",
"version": "1.4.0-alpha.24+sha.1196d35",
"dependencies": {
"@interactjs/actions": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/auto-scroll": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/auto-start": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/core": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/inertia": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/interact": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/modifiers": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/pointer-events": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/reflow": "1.4.0-alpha.23+sha.69f8af9",
"@interactjs/utils": "1.4.0-alpha.23+sha.69f8af9"
"@interactjs/actions": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/auto-scroll": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/auto-start": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/core": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/inertia": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/interact": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/modifiers": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/pointer-events": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/reflow": "1.4.0-alpha.24+sha.1196d35",
"@interactjs/utils": "1.4.0-alpha.24+sha.1196d35"
},

@@ -16,0 +16,0 @@ "publishConfig": {

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