@interactjs/reflow
Advanced tools
Comparing version 1.4.0-alpha.28 to 1.4.0-alpha.29
@@ -15,3 +15,3 @@ import Interactable from '@interactjs/core/Interactable'; | ||
export declare function install(scope: Scope): void; | ||
declare function reflow(interactable: Interactable, action: ActionProps, scope: Scope): any; | ||
declare function reflow(interactable: Interactable, action: ActionProps, scope: Scope): Promise<Interactable>; | ||
declare const _default: { | ||
@@ -18,0 +18,0 @@ install: typeof install; |
18
index.js
@@ -15,3 +15,5 @@ import { newInteraction } from '@interactjs/core/interactions'; | ||
if (interaction.pointerType === 'reflow') { | ||
interaction._reflowResolve(); | ||
if (interaction._reflowResolve) { | ||
interaction._reflowResolve(); | ||
} | ||
arr.remove(scope.interactions.list, interaction); | ||
@@ -54,3 +56,3 @@ } | ||
return interaction.interacting() && | ||
interaction.target === interactable && | ||
interaction.interactable === interactable && | ||
interaction.element === element && | ||
@@ -62,5 +64,7 @@ interaction.prepared.name === action.name; | ||
runningInteraction.move(); | ||
reflowPromise = runningInteraction._reflowPromise || new Promise((resolve) => { | ||
runningInteraction._reflowResolve = resolve; | ||
}); | ||
if (promises) { | ||
reflowPromise = runningInteraction._reflowPromise || new Promise((resolve) => { | ||
runningInteraction._reflowResolve = resolve; | ||
}); | ||
} | ||
} | ||
@@ -92,3 +96,3 @@ else { | ||
}; | ||
interaction.target = interactable; | ||
interaction.interactable = interactable; | ||
interaction.element = element; | ||
@@ -118,2 +122,2 @@ interaction.prepared = extend({}, action); | ||
export default { install }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sK0JBQStCLENBQUE7QUFFOUQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLEVBQUUsRUFBRSxFQUFFLE9BQU8sSUF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Vzb2x2ZSA9IHJlc29sdmVcbiAgICAgIH0pXG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgY29uc3QgeHl3aCA9IHJlY3RVdGlscy50bGJyVG9YeXdoKHJlY3QpXG4gICAgICBjb25zdCBjb29yZHMgPSB7XG4gICAgICAgIHBhZ2UgICAgIDogeyB4OiB4eXdoLngsIHk6IHh5d2gueSB9LFxuICAgICAgICBjbGllbnQgICA6IHsgeDogeHl3aC54LCB5OiB4eXdoLnkgfSxcbiAgICAgICAgdGltZVN0YW1wOiBEYXRlLm5vdygpLFxuICAgICAgfVxuXG4gICAgICBjb25zdCBldmVudCA9IHBvaW50ZXJVdGlscy5jb29yZHNUb0V2ZW50KGNvb3JkcylcbiAgICAgIHJlZmxvd1Byb21pc2UgPSBzdGFydFJlZmxvdyhzY29wZSwgaW50ZXJhY3RhYmxlLCBlbGVtZW50LCBhY3Rpb24sIGV2ZW50KVxuICAgIH1cblxuICAgIGlmIChwcm9taXNlcykge1xuICAgICAgcHJvbWlzZXMucHVzaChyZWZsb3dQcm9taXNlKVxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBwcm9taXNlcyAmJiBQcm9taXNlLmFsbChwcm9taXNlcykudGhlbigoKSA9PiBpbnRlcmFjdGFibGUpXG59XG5cbmZ1bmN0aW9uIHN0YXJ0UmVmbG93IChzY29wZTogU2NvcGUsIGludGVyYWN0YWJsZTogSW50ZXJhY3RhYmxlLCBlbGVtZW50OiBFbGVtZW50LCBhY3Rpb246IEFjdGlvblByb3BzLCBldmVudDogYW55KSB7XG4gIGNvbnN0IGludGVyYWN0aW9uID0gbmV3SW50ZXJhY3Rpb24oeyBwb2ludGVyVHlwZTogJ3JlZmxvdycgfSwgc2NvcGUpXG4gIGNvbnN0IHNpZ25hbEFyZyA9IHtcbiAgICBpbnRlcmFjdGlvbixcbiAgICBldmVudCxcbiAgICBwb2ludGVyOiBldmVudCxcbiAgICBldmVudFRhcmdldDogZWxlbWVudCxcbiAgICBwaGFzZTogJ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AgPyBuZXcgKHdpbi53aW5kb3cgYXMgdW5rbm93biBhcyBhbnkpLlByb21pc2UoKHJlc29sdmU6IGFueSkgPT4ge1xuICAgICAgaW50ZXJhY3Rpb24uX3JlZmxvd1Jlc29sdmUgPSByZXNvbHZlXG4gICAgfSlcbiAgICA6IG51bGxcblxuICBpbnRlcmFjdGlvbi5fcmVmbG93UHJvbWlzZSA9IHJlZmxvd1Byb21pc2VcbiAgaW50ZXJhY3Rpb24uc3RhcnQoYWN0aW9uLCBpbnRlcmFjdGFibGUsIGVsZW1lbnQpXG5cbiAgaWYgKGludGVyYWN0aW9uLl9pbnRlcmFjdGluZykge1xuICAgIGludGVyYWN0aW9uLm1vdmUoc2lnbmFsQXJnKVxuICAgIGludGVyYWN0aW9uLmVuZChldmVudClcbiAgfVxuICBlbHNlIHtcbiAgICBpbnRlcmFjdGlvbi5zdG9wKClcbiAgfVxuXG4gIGludGVyYWN0aW9uLnJlbW92ZVBvaW50ZXIoZXZlbnQsIGV2ZW50KVxuICBpbnRlcmFjdGlvbi5wb2ludGVySXNEb3duID0gZmFsc2VcblxuICByZXR1cm4gcmVmbG93UHJvbWlzZVxufVxuXG5leHBvcnQgZGVmYXVsdCB7IGluc3RhbGwgfVxuIl19 |
{ | ||
"name": "@interactjs/reflow", | ||
"version": "1.4.0-alpha.28+sha.e624c4d", | ||
"version": "1.4.0-alpha.29+sha.7c21d3d", | ||
"peerDependencies": { | ||
"@interactjs/core": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/utils": "1.4.0-alpha.28+sha.e624c4d" | ||
"@interactjs/core": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/utils": "1.4.0-alpha.29+sha.7c21d3d" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/core": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/utils": "1.4.0-alpha.28+sha.e624c4d" | ||
"@interactjs/_dev": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/core": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/utils": "1.4.0-alpha.29+sha.7c21d3d", | ||
"promise-polyfill": "latest" | ||
}, | ||
@@ -13,0 +14,0 @@ "publishConfig": { |
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
33670
6
219
4