@interactjs/inertia
Advanced tools
Comparing version 1.4.0-alpha.28 to 1.4.0-alpha.29
11
index.js
@@ -119,3 +119,3 @@ import { EventPhase } from '@interactjs/core/InteractEvent'; | ||
interaction.simulation = state; | ||
interaction.target.fire(state.startEvent); | ||
interaction.interactable.fire(state.startEvent); | ||
if (inertia) { | ||
@@ -233,4 +233,7 @@ state.vx0 = interaction.coords.velocity.client.x; | ||
} | ||
function getOptions({ target, prepared }) { | ||
return target && target.options && prepared.name && target.options[prepared.name].inertia; | ||
function getOptions({ interactable, prepared }) { | ||
return interactable && | ||
interactable.options && | ||
prepared.name && | ||
interactable.options[prepared.name].inertia; | ||
} | ||
@@ -244,2 +247,2 @@ export default { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0NBQWdDLENBQUE7QUFDM0QsT0FBTyxTQUFTLE1BQU0sNEJBQTRCLENBQUE7QUFDbEQsT0FBTyxLQUFLLEtBQUssTUFBTSxtQkFBbUIsQ0FBQTtBQUMxQyxPQUFPLEdBQUcsTUFBTSx1QkFBdUIsQ0FBQTtBQStCdEMsVUFBa0IsQ0FBQyxNQUFNLEdBQUcsUUFBUSxDQUFDO0FBQ3JDLFVBQWtCLENBQUMsWUFBWSxHQUFHLGNBQWMsQ0FBQTtBQUVqRCxTQUFTLE9BQU8sQ0FBRSxLQUFZO0lBQzVCLE1BQU0sRUFDSixZQUFZLEVBQ1osUUFBUSxHQUNULEdBQUcsS0FBSyxDQUFBO0lBRVQsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsS0FBSyxFQUFFLENBQUMsRUFBRSxXQUFXLEVBQUUsRUFBRSxFQUFFO1FBQ2pELFdBQVcsQ0FBQyxP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8gcmV0dXJuIGlmIGluZXJ0aWEgaXNuJ3QgcnVubmluZ1xuICBpZiAoIXN0YXRlLmFjdGl2ZSkgeyByZXR1cm4gfVxuXG4gIGNvbnN0IHBhZ2VVcCAgID0gc3RhdGUudXBDb29yZHMucGFnZVxuICBjb25zdCBjbGllbnRVcCA9IHN0YXRlLnVwQ29vcmRzLmNsaWVudFxuXG4gIHV0aWxzLnBvaW50ZXIuc2V0Q29vcmRzKGludGVyYWN0aW9uLmNvb3Jkcy5jdXIsIFsge1xuICAgIHBhZ2VYICA6IHBhZ2VVcC54ICAgKyBzdGF0ZS5zeCxcbiAgICBwYWdlWSAgOiBwYWdlVXAueSAgICsgc3RhdGUuc3ksXG4gICAgY2xpZW50WDogY2xpZW50VXAueCArIHN0YXRlLnN4LFxuICAgIGNsaWVudFk6IGNsaWVudFVwLnkgKyBzdGF0ZS5zeSxcbiAgfSBdKVxufVxuXG5mdW5jdGlvbiBnZXRPcHRpb25zICh7IGludGVyYWN0YWJsZSwgcHJlcGFyZWQgfTogSW50ZXJhY3QuSW50ZXJhY3Rpb24pIHtcbiAgcmV0dXJuIGludGVyYWN0YWJsZSAmJlxuICAgIGludGVyYWN0YWJsZS5vcHRpb25zICYmXG4gICAgcHJlcGFyZWQubmFtZSAmJlxuICAgIGludGVyYWN0YWJsZS5vcHRpb25zW3ByZXBhcmVkLm5hbWVdLmluZXJ0aWFcbn1cblxuZXhwb3J0IGRlZmF1bHQge1xuICBpbnN0YWxsLFxuICBjYWxjSW5lcnRpYSxcbiAgaW5lcnRpYVRpY2ssXG4gIHNtb3RoRW5kVGljayxcbiAgdXBkYXRlSW5lcnRpYUNvb3Jkcyxcbn1cbiJdfQ== |
{ | ||
"name": "@interactjs/inertia", | ||
"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/modifiers": "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/modifiers": "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/modifiers": "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/modifiers": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/utils": "1.4.0-alpha.29+sha.7c21d3d" | ||
}, | ||
@@ -15,0 +15,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
39523
281