@interactjs/types
Advanced tools
Comparing version 1.4.0-alpha.23 to 1.4.0-alpha.24
@@ -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, |
{ | ||
"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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
10365
167
1