@interactjs/actions
Advanced tools
Comparing version 1.4.0-alpha.23 to 1.4.0-alpha.24
@@ -20,3 +20,3 @@ import * as arr from '@interactjs/utils/arr'; | ||
actions.methodDict.drag = 'draggable'; | ||
defaults.drag = drag.defaults; | ||
defaults.actions.drag = drag.defaults; | ||
} | ||
@@ -23,0 +23,0 @@ function beforeMove({ interaction }) { |
@@ -19,6 +19,3 @@ import InteractEvent from '@interactjs/core/InteractEvent'; | ||
declare module '@interactjs/core/defaultOptions' { | ||
interface Defaults { | ||
drop: Interact.DropzoneOptions; | ||
} | ||
interface Options { | ||
interface ActionDefaults { | ||
drop?: Interact.DropzoneOptions; | ||
@@ -25,0 +22,0 @@ } |
@@ -152,3 +152,3 @@ import * as utils from '@interactjs/utils'; | ||
scope.dynamicDrop = false; | ||
defaults.drop = drop.defaults; | ||
defaults.actions.drop = drop.defaults; | ||
} | ||
@@ -155,0 +155,0 @@ function collectDrops({ interactables }, draggableElement) { |
@@ -65,3 +65,3 @@ import InteractEvent from '@interactjs/core/InteractEvent'; | ||
actions.methodDict.gesture = 'gesturable'; | ||
defaults.gesture = gesture.defaults; | ||
defaults.actions.gesture = gesture.defaults; | ||
} | ||
@@ -68,0 +68,0 @@ const gesture = { |
{ | ||
"name": "@interactjs/actions", | ||
"version": "1.4.0-alpha.23+sha.69f8af9", | ||
"version": "1.4.0-alpha.24+sha.1196d35", | ||
"peerDependencies": { | ||
"@interactjs/core": "1.4.0-alpha.23+sha.69f8af9", | ||
"@interactjs/utils": "1.4.0-alpha.23+sha.69f8af9" | ||
"@interactjs/core": "1.4.0-alpha.24+sha.1196d35", | ||
"@interactjs/utils": "1.4.0-alpha.24+sha.1196d35" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.4.0-alpha.23+sha.69f8af9", | ||
"@interactjs/core": "1.4.0-alpha.23+sha.69f8af9", | ||
"@interactjs/utils": "1.4.0-alpha.23+sha.69f8af9" | ||
"@interactjs/_dev": "1.4.0-alpha.24+sha.1196d35", | ||
"@interactjs/core": "1.4.0-alpha.24+sha.1196d35", | ||
"@interactjs/utils": "1.4.0-alpha.24+sha.1196d35" | ||
}, | ||
@@ -13,0 +13,0 @@ "publishConfig": { |
@@ -75,3 +75,3 @@ import * as utils from '@interactjs/utils'; | ||
actions.methodDict.resize = 'resizable'; | ||
defaults.resize = resize.defaults; | ||
defaults.actions.resize = resize.defaults; | ||
} | ||
@@ -162,3 +162,3 @@ const resize = { | ||
else if (options.axis === null) { | ||
interactable.options.resize.axis = scope.defaults.resize.axis; | ||
interactable.options.resize.axis = scope.defaults.actions.resize.axis; | ||
} | ||
@@ -165,0 +165,0 @@ if (utils.is.bool(options.preserveAspectRatio)) { |
@@ -13,6 +13,3 @@ import drag, { DraggableMethod } from './drag' | ||
declare module '@interactjs/core/defaultOptions' { | ||
interface Defaults { | ||
drag: Interact.DraggableOptions | ||
} | ||
interface Options { | ||
interface ActionDefaults { | ||
drag?: Interact.DraggableOptions | ||
@@ -35,2 +32,9 @@ } | ||
declare module '@interactjs/core/InteractEvent' { | ||
interface InteractEvent { | ||
deltaRect?: Interact.Rect | ||
rect?: Interact.Rect | ||
} | ||
} | ||
declare module '@interactjs/core/Interaction' { | ||
@@ -43,6 +47,3 @@ interface Interaction { | ||
declare module '@interactjs/core/defaultOptions' { | ||
interface Defaults { | ||
resize: Interact.ResizableOptions | ||
} | ||
interface Options { | ||
interface ActionDefaults { | ||
resize?: Interact.ResizableOptions | ||
@@ -66,6 +67,3 @@ } | ||
declare module '@interactjs/core/defaultOptions' { | ||
interface Defaults { | ||
gesture: Interact.GesturableOptions | ||
} | ||
interface Options { | ||
interface ActionDefaults { | ||
gesture?: Interact.GesturableOptions | ||
@@ -72,0 +70,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
92878
1437