@interactjs/types
Advanced tools
Comparing version 1.8.0-alpha.7 to 1.8.0-rc.0
@@ -8,2 +8,3 @@ // eslint-disable-next-line node/no-extraneous-import | ||
interact('.drag-and-resize').draggable({ | ||
inertia: true, | ||
modifiers: [interact.modifiers.snap({ | ||
@@ -214,3 +215,10 @@ targets: [{ | ||
}); | ||
interact.on(['dragmove', 'resizestart'], listener); | ||
interact.on(['dragmove', 'resizestart'], listener); // devTools options | ||
interact(target).devTools({ | ||
ignore: { | ||
boxSizing: true, | ||
touchAction: true | ||
} | ||
}); | ||
const dropTarget = 'div'; // Drop Events | ||
@@ -217,0 +225,0 @@ |
{ | ||
"name": "@interactjs/types", | ||
"version": "1.8.0-alpha.7", | ||
"version": "1.8.0-rc.0", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@interactjs/actions": "1.8.0-alpha.7", | ||
"@interactjs/auto-scroll": "1.8.0-alpha.7", | ||
"@interactjs/auto-start": "1.8.0-alpha.7", | ||
"@interactjs/core": "1.8.0-alpha.7", | ||
"@interactjs/dev-tools": "1.8.0-alpha.7", | ||
"@interactjs/inertia": "1.8.0-alpha.7", | ||
"@interactjs/interact": "1.8.0-alpha.7", | ||
"@interactjs/modifiers": "1.8.0-alpha.7", | ||
"@interactjs/pointer-events": "1.8.0-alpha.7", | ||
"@interactjs/reflow": "1.8.0-alpha.7", | ||
"@interactjs/utils": "1.8.0-alpha.7" | ||
"@interactjs/actions": "1.8.0-rc.0", | ||
"@interactjs/auto-scroll": "1.8.0-rc.0", | ||
"@interactjs/auto-start": "1.8.0-rc.0", | ||
"@interactjs/core": "1.8.0-rc.0", | ||
"@interactjs/dev-tools": "1.8.0-rc.0", | ||
"@interactjs/inertia": "1.8.0-rc.0", | ||
"@interactjs/interact": "1.8.0-rc.0", | ||
"@interactjs/modifiers": "1.8.0-rc.0", | ||
"@interactjs/pointer-events": "1.8.0-rc.0", | ||
"@interactjs/reflow": "1.8.0-rc.0", | ||
"@interactjs/utils": "1.8.0-rc.0" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.8.0-alpha.7" | ||
"@interactjs/_dev": "1.8.0-rc.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "publishConfig": { |
@@ -126,8 +126,7 @@ // Type definitions for interact.js | ||
export type PerActionDefaults = defaults.PerActionDefaults | ||
export interface OptionsArg extends defaults.BaseDefaults, Interact.OrBoolean<defaults.PerActionDefaults> {} | ||
export type OptionsArg = defaults.OptionsArg | ||
export interface DraggableOptions extends Options { | ||
export interface DraggableOptions extends PerActionDefaults { | ||
startAxis?: 'x' | 'y' | 'xy' | ||
lockAxis?: 'x' | 'y' | 'xy' | 'start' | ||
cursorChecker?: Interact.CursorChecker | ||
oninertiastart?: ListenersArg | ||
@@ -139,3 +138,3 @@ onstart?: Interact.ListenersArg | ||
export interface DropzoneOptions extends Options { | ||
export interface DropzoneOptions extends PerActionDefaults { | ||
accept?: string | Element | (({ dropzone, draggableElement }: { | ||
@@ -167,3 +166,3 @@ dropzone: Interact.Interactable | ||
export interface ResizableOptions extends Options { | ||
export interface ResizableOptions extends PerActionDefaults { | ||
square?: boolean | ||
@@ -176,3 +175,2 @@ preserveAspectRatio?: boolean | ||
squareResize?: boolean | ||
cursorChecker?: Interact.CursorChecker | ||
oninertiastart?: ListenersArg | ||
@@ -184,3 +182,3 @@ onstart?: Interact.ListenersArg | ||
export interface GesturableOptions extends Options { | ||
export interface GesturableOptions extends PerActionDefaults { | ||
onstart?: Interact.ListenersArg | ||
@@ -187,0 +185,0 @@ onmove?: Interact.ListenersArg |
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
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
27210
408
+ Added@interactjs/actions@1.8.0-rc.0(transitive)
+ Added@interactjs/auto-scroll@1.8.0-rc.0(transitive)
+ Added@interactjs/auto-start@1.8.0-rc.0(transitive)
+ Added@interactjs/core@1.8.0-rc.0(transitive)
+ Added@interactjs/dev-tools@1.8.0-rc.0(transitive)
+ Added@interactjs/inertia@1.8.0-rc.0(transitive)
+ Added@interactjs/interact@1.8.0-rc.0(transitive)
+ Added@interactjs/modifiers@1.8.0-rc.0(transitive)
+ Added@interactjs/pointer-events@1.8.0-rc.0(transitive)
+ Added@interactjs/reflow@1.8.0-rc.0(transitive)
+ Added@interactjs/utils@1.8.0-rc.0(transitive)
- Removed@interactjs/actions@1.8.0-alpha.7(transitive)
- Removed@interactjs/auto-scroll@1.8.0-alpha.7(transitive)
- Removed@interactjs/auto-start@1.8.0-alpha.7(transitive)
- Removed@interactjs/core@1.8.0-alpha.7(transitive)
- Removed@interactjs/dev-tools@1.8.0-alpha.7(transitive)
- Removed@interactjs/inertia@1.8.0-alpha.7(transitive)
- Removed@interactjs/interact@1.8.0-alpha.7(transitive)
- Removed@interactjs/modifiers@1.8.0-alpha.7(transitive)
- Removed@interactjs/pointer-events@1.8.0-alpha.7(transitive)
- Removed@interactjs/reflow@1.8.0-alpha.7(transitive)
- Removed@interactjs/utils@1.8.0-alpha.7(transitive)
Updated@interactjs/core@1.8.0-rc.0
Updated@interactjs/utils@1.8.0-rc.0