@interactjs/modifiers
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -195,3 +195,3 @@ import extend from '@interactjs/utils/extend'; | ||
const options = actionOptions[type]; | ||
return options && (options.enabled !== false) && { | ||
return options && options.enabled && { | ||
options, | ||
@@ -329,2 +329,2 @@ methods: options._methods, | ||
export { makeModifier, }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxNQUFNLE1BQU0sMEJBQTBCLENBQUE7QUFzRTdDLFNBQVMsT0FBTyxDQUFFLEtBQVk7SUFDNUIsTUFBTSxFQUNKLFlBQVksR0FDYixHQUFHLEtBQUssQ0FBQTtJQUVULEtBQUssQ0FBQyxRQUFRLENBQUMsU0FBUyxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUE7SUFFdkMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsS0FBSyxFQUFFLENBQUMsRUFBRSxXQUFXLEVBQUUsRUFBRSxFQUFFO1FBQ2pELFdBQVcsQ0FBQyxTQUFTLEdBQUc7WUFDdEIsV0FBVyxFQUFFLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBRSxLQUFLLEVBQUUsQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRTtZQUNyRCxPQUFPLEVBQUUsRUFBRTtZQUNYLE1BQU0sRUFBRSxJQUFJO1lBQ1osTUFBTSxFQUFFLElBQUk7WUFDWixZQUFZLEVBQUUsS0FBSztZQUNuQixVQUFVLEVBQUUsSUFBSTtTQUNqQixDQUFBO0lBQ0gsQ0FBQyxDQUFDLENBQUE7SUFFRixZQUFZLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxxQkFBcUIsRUFBRSxHQUFHLEN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1vZHVsZSAnQGludGVyYWN0anMvY29yZS9zY29wZScge1xuICBpbnRlcmZhY2UgU2NvcGUge1xuICAgIG1vZGlmaWVycz86IGFueVxuICB9XG59XG5cbmRlY2xhcmUgbW9kdWxlICdAaW50ZXJhY3Rqcy9jb3JlL0ludGVyYWN0aW9uJyB7XG4gIGludGVyZmFjZSBJbnRlcmFjdGlvbiB7XG4gICAgbW9kaWZpZXJzPzoge1xuICAgICAgc3RhdGVzOiBNb2RpZmllclN0YXRlW11cbiAgICAgIG9mZnNldHM6IGFueVxuICAgICAgc3RhcnRPZmZzZXQ6IGFueVxuICAgICAgc3RhcnREZWx0YTogSW50ZXJhY3QuUG9pbnRcbiAgICAgIHJlc3VsdD86IHtcbiAgICAgICAgZGVsdGE6IHtcbiAgICAgICAgICB4OiBudW1iZXJcbiAgICAgICAgICB5OiBudW1iZXJcbiAgICAgICAgfVxuICAgICAgICByZWN0RGVsdGE6IHtcbiAgICAgICAgICBsZWZ0OiBudW1iZXJcbiAgICAgICAgICByaWdodDogbnVtYmVyXG4gICAgICAgICAgdG9wOiBudW1iZXJcbiAgICAgICAgICBib3R0b206IG51bWJlclxuICAgICAgICB9XG4gICAgICAgIGNvb3JkczogSW50ZXJhY3QuUG9pbnRcbiAgICAgICAgY2hhbmdlZDogYm9vbGVhblxuICAgICAgfVxuICAgICAgZW5kUHJldmVudGVkOiBib29sZWFuXG4gICAgfVxuICB9XG59XG5cbmRlY2xhcmUgbW9kdWxlICdAaW50ZXJhY3Rqcy9jb3JlL2RlZmF1bHRPcHRpb25zJyB7XG4gIGludGVyZmFjZSBQZXJBY3Rpb25EZWZhdWx0cyB7XG4gICAgbW9kaWZpZXJzPzogTW9kaWZpZXJbXVxuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTW9kaWZpZXI8XG4gIERlZmF1bHRzID0gYW55LFxuICBOYW1lIGV4dGVuZHMgc3RyaW5nID0gYW55XG4+IHtcbiAgb3B0aW9ucz86IERlZmF1bHRzXG4g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cgZGVmYXVsdHMgdG8gb3B0aW9uc1xuICAgIGZvciAoY29uc3QgcHJvcCBpbiBkZWZhdWx0cykge1xuICAgICAgaWYgKCEocHJvcCBpbiBvcHRpb25zKSkge1xuICAgICAgICBvcHRpb25zW3Byb3BdID0gZGVmYXVsdHNbcHJvcF1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdCBtOiBNb2RpZmllcjxEZWZhdWx0cywgTmFtZT4gPSB7IG9wdGlvbnMsIG1ldGhvZHMsIG5hbWUgfVxuXG4gICAgcmV0dXJuIG1cbiAgfVxuXG4gIGlmIChuYW1lICYmIHR5cGVvZiBuYW1lID09PSAnc3RyaW5nJykge1xuICAgIC8vIGZvciBiYWNrd3JhZHMgY29tcGF0aWJpbGl0eVxuICAgIG1vZGlmaWVyLl9kZWZhdWx0cyA9IGRlZmF1bHRzXG4gICAgbW9kaWZpZXIuX21ldGhvZHMgPSBtZXRob2RzXG4gIH1cblxuICByZXR1cm4gbW9kaWZpZXJcbn1cblxuZXhwb3J0IGRlZmF1bHQge1xuICBpZDogJ21vZGlmaWVycy9iYXNlJyxcbiAgaW5zdGFsbCxcbiAgc3RhcnRBbGwsXG4gIHNldEFsbCxcbiAgcHJlcGFyZVN0YXRlcyxcbiAgc3RhcnQsXG4gIGJlZm9yZU1vdmUsXG4gIGJlZm9yZUVuZCxcbiAgc3RvcCxcbiAgc2hvdWxkRG8sXG4gIGdldE1vZGlmaWVyTGlzdCxcbiAgZ2V0UmVjdE9mZnNldCxcbiAgbWFrZU1vZGlmaWVyLFxufVxuXG5leHBvcnQge1xuICBtYWtlTW9kaWZpZXIsXG59XG4iXX0= |
@@ -12,4 +12,4 @@ export declare const snap: { | ||
export declare const snapSize: { | ||
(_options?: Partial<Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">>): import("./base").Modifier<Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">, "snapSize">; | ||
_defaults: Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">; | ||
(_options?: Partial<Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">>): import("./base").Modifier<Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">, "snapSize">; | ||
_defaults: Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">; | ||
_methods: { | ||
@@ -23,4 +23,4 @@ start: any; | ||
export declare const snapEdges: { | ||
(_options?: Partial<Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">>): import("./base").Modifier<Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">, "snapEdges">; | ||
_defaults: Pick<import("./snap/pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">; | ||
(_options?: Partial<Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">>): import("./base").Modifier<Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">, "snapEdges">; | ||
_defaults: Pick<import("./snap/pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">; | ||
_methods: { | ||
@@ -27,0 +27,0 @@ start: any; |
{ | ||
"name": "@interactjs/modifiers", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"peerDependencies": { | ||
"@interactjs/core": "1.5.2", | ||
"@interactjs/utils": "1.5.2" | ||
"@interactjs/core": "1.5.3", | ||
"@interactjs/utils": "1.5.3" | ||
}, | ||
@@ -8,0 +8,0 @@ "publishConfig": { |
@@ -8,2 +8,3 @@ import { ModifierArg, ModifierState } from '../base'; | ||
endOnly: boolean; | ||
enabled?: boolean; | ||
} | ||
@@ -10,0 +11,0 @@ export declare type RestrictEdgesState = ModifierState<RestrictEdgesOptions, { |
@@ -70,2 +70,3 @@ // This module adds the options.resize.restrictEdges setting which sets min and | ||
endOnly: false, | ||
enabled: false, | ||
}; | ||
@@ -81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1xuICAgICAgcmVjdFtlZGdlXSA9IGRlZmF1bHRzW2VkZ2VdXG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJlY3Rcbn1cblxuY29uc3QgZGVmYXVsdHM6IFJlc3RyaWN0RWRnZXNPcHRpb25zID0ge1xuICBpbm5lcjogbnVsbCxcbiAgb3V0ZXI6IG51bGwsXG4gIG9mZnNldDogbnVsbCxcbiAgZW5kT25seTogZmFsc2UsXG4gIGVuYWJsZWQ6IGZhbHNlLFxufVxuXG5jb25zdCByZXN0cmljdEVkZ2VzID0ge1xuICBub0lubmVyLFxuICBub091dGVyLFxuICBnZXRSZXN0cmljdGlvblJlY3QsXG4gIHN0YXJ0LFxuICBzZXQsXG4gIGRlZmF1bHRzLFxufVxuXG5leHBvcnQgZGVmYXVsdCByZXN0cmljdEVkZ2VzXG4iXX0= |
@@ -7,2 +7,3 @@ import { ModifierArg, ModifierState } from '../base'; | ||
endOnly: boolean; | ||
enabled?: boolean; | ||
} | ||
@@ -9,0 +10,0 @@ export declare type RestrictState = ModifierState<RestrictOptions, { |
@@ -57,2 +57,3 @@ import extend from '@interactjs/utils/extend'; | ||
endOnly: false, | ||
enabled: false, | ||
}; | ||
@@ -66,2 +67,2 @@ const restrict = { | ||
export default restrict; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9pbnRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBvaW50ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxNQUFNLE1BQU0sMEJBQTBCLENBQUE7QUFDN0MsT0FBTyxLQUFLLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUMxQyxPQUFPLFNBQVMsTUFBTSx3QkFBd0IsQ0FBQTtBQWlCOUMsU0FBUyxLQUFLLENBQUUsRUFBRSxJQUFJLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsVUF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ufVxuXG5mdW5jdGlvbiBnZXRSZXN0cmljdGlvblJlY3QgKHZhbHVlLCBpbnRlcmFjdGlvbiwgY29vcmRzPzogSW50ZXJhY3QuUG9pbnQpIHtcbiAgaWYgKGlzLmZ1bmModmFsdWUpKSB7XG4gICAgcmV0dXJuIHJlY3RVdGlscy5yZXNvbHZlUmVjdExpa2UodmFsdWUsIGludGVyYWN0aW9uLmludGVyYWN0YWJsZSwgaW50ZXJhY3Rpb24uZWxlbWVudCwgW2Nvb3Jkcy54LCBjb29yZHMueSwgaW50ZXJhY3Rpb25dKVxuICB9IGVsc2Uge1xuICAgIHJldHVybiByZWN0VXRpbHMucmVzb2x2ZVJlY3RMaWtlKHZhbHVlLCBpbnRlcmFjdGlvbi5pbnRlcmFjdGFibGUsIGludGVyYWN0aW9uLmVsZW1lbnQpXG4gIH1cbn1cblxuY29uc3QgZGVmYXVsdHM6IFJlc3RyaWN0T3B0aW9ucyA9IHtcbiAgcmVzdHJpY3Rpb246IG51bGwsXG4gIGVsZW1lbnRSZWN0OiBudWxsLFxuICBvZmZzZXQ6IG51bGwsXG4gIGVuZE9ubHk6IGZhbHNlLFxuICBlbmFibGVkOiBmYWxzZSxcbn1cblxuY29uc3QgcmVzdHJpY3QgPSB7XG4gIHN0YXJ0LFxuICBzZXQsXG4gIGdldFJlc3RyaWN0aW9uUmVjdCxcbiAgZGVmYXVsdHMsXG59XG5cbmV4cG9ydCBkZWZhdWx0IHJlc3RyaWN0XG4iXX0= |
@@ -8,2 +8,3 @@ import { ModifierArg, ModifierState } from '../base'; | ||
endOnly: boolean; | ||
enabled?: boolean; | ||
} | ||
@@ -10,0 +11,0 @@ declare function start(arg: ModifierArg<RestrictEdgesState>): void; |
@@ -47,2 +47,3 @@ import extend from '@interactjs/utils/extend'; | ||
endOnly: false, | ||
enabled: false, | ||
}; | ||
@@ -55,2 +56,2 @@ const restrictSize = { | ||
export default restrictSize; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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35,4 @@ /** | ||
set: typeof set; | ||
defaults: Pick<import("./pointer").SnapOptions, "offset" | "endOnly" | "targets" | "range">; | ||
defaults: Pick<import("./pointer").SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">; | ||
}; | ||
export default snapEdges; |
@@ -17,2 +17,3 @@ import { ModifierArg, ModifierState } from '../base'; | ||
endOnly?: boolean; | ||
enabled?: boolean; | ||
} | ||
@@ -19,0 +20,0 @@ export declare type SnapState = ModifierState<SnapOptions, { |
@@ -135,2 +135,3 @@ import * as utils from '@interactjs/utils'; | ||
endOnly: false, | ||
enabled: false, | ||
}; | ||
@@ -143,2 +144,2 @@ const snap = { | ||
export default snap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9pbnRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBvaW50ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEtBQUssTUFBTSxtQkFBbUIsQ0FBQTtBQXVDMUMsU0FBUyxLQUFLLENBQUUsR0FBMkI7SUFDekMsTUFBTSxFQUFFLFdBQVcsRUFBRSxZQUFZLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUUsV0FBVyxFQUFFLEdBQUcsR0FBRyxDQUFBO0lBQzVFLE1BQU0sRUFBRSxPQUFPLEVBQUUsR0FBRyxLQUFLLENBQUE7SUFDekIsTUFBTSxPQUFPLEdBQUcsRUFBRSxDQUFBO0lBQ2xCLE1BQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxnQkFBZ0I7UUFDckMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUM7UUFDaEIsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUE7SUFFbEIsSUFBSSxVQUFVLENBQUE7SUFFZCxJQUFJL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ZVBvaW50czogbnVsbCxcbiAgZW5kT25seTogZmFsc2UsXG4gIGVuYWJsZWQ6IGZhbHNlLFxufVxuY29uc3Qgc25hcCA9IHtcbiAgc3RhcnQsXG4gIHNldCxcbiAgZGVmYXVsdHMsXG59XG5cbmV4cG9ydCBkZWZhdWx0IHNuYXBcbiJdfQ== |
import { ModifierArg } from '../base'; | ||
import { SnapOptions, SnapState } from './pointer'; | ||
export declare type SnapSizeOptions = Pick<SnapOptions, 'targets' | 'offset' | 'endOnly' | 'range'>; | ||
export declare type SnapSizeOptions = Pick<SnapOptions, 'targets' | 'offset' | 'endOnly' | 'range' | 'enabled'>; | ||
declare function start(arg: ModifierArg<SnapState>): any; | ||
@@ -9,4 +9,4 @@ declare function set(arg: any): void; | ||
set: typeof set; | ||
defaults: Pick<SnapOptions, "offset" | "endOnly" | "targets" | "range">; | ||
defaults: Pick<SnapOptions, "enabled" | "offset" | "endOnly" | "targets" | "range">; | ||
}; | ||
export default snapSize; |
@@ -70,2 +70,3 @@ // This module allows snapping of the size of targets during resize | ||
endOnly: false, | ||
enabled: false, | ||
}; | ||
@@ -78,2 +79,2 @@ const snapSize = { | ||
export default snapSize; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2l6ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNpemUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUVBQW1FO0FBQ25FLGdCQUFnQjtBQUVoQixPQUFPLE1BQU0sTUFBTSwwQkFBMEIsQ0FBQTtBQUM3QyxPQUFPLEtBQUssRUFBRSxNQUFNLHNCQUFzQixDQUFBO0FBRTFDLE9BQU8sSUFBZ0MsTUFBTSxXQUFXLENBQUE7QUFPeEQsU0FBUyxLQUFLLENBQUUsR0FBMkI7SUFDekMsTUFBTSxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsR0FBRyxHQUFHLENBQUE7SUFDbEMsTU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KGNvbnN0IHNuYXBUYXJnZXQgb2YgKG9wdGlvbnMudGFyZ2V0cyB8fCBbXSkpIHtcbiAgICBsZXQgdGFyZ2V0XG5cbiAgICBpZiAoaXMuZnVuYyhzbmFwVGFyZ2V0KSkge1xuICAgICAgdGFyZ2V0ID0gc25hcFRhcmdldChyZWxhdGl2ZS54LCByZWxhdGl2ZS55LCBpbnRlcmFjdGlvbilcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICB0YXJnZXQgPSBzbmFwVGFyZ2V0XG4gICAgfVxuXG4gICAgaWYgKCF0YXJnZXQpIHsgY29udGludWUgfVxuXG4gICAgZm9yIChjb25zdCBbeEZpZWxkLCB5RmllbGRdIG9mIHN0YXRlLnRhcmdldEZpZWxkcykge1xuICAgICAgaWYgKHhGaWVsZCBpbiB0YXJnZXQgfHwgeUZpZWxkIGluIHRhcmdldCkge1xuICAgICAgICB0YXJnZXQueCA9IHRhcmdldFt4RmllbGRdXG4gICAgICAgIHRhcmdldC55ID0gdGFyZ2V0W3lGaWVsZF1cblxuICAgICAgICBicmVha1xuICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRlLm9wdGlvbnMudGFyZ2V0cy5wdXNoKHRhcmdldClcbiAgfVxuXG4gIHNuYXAuc2V0KGFyZylcblxuICBzdGF0ZS5vcHRpb25zID0gb3B0aW9uc1xufVxuXG5jb25zdCBkZWZhdWx0czogU25hcFNpemVPcHRpb25zID0ge1xuICByYW5nZTogSW5maW5pdHksXG4gIHRhcmdldHM6IG51bGwsXG4gIG9mZnNldDogbnVsbCxcbiAgZW5kT25seTogZmFsc2UsXG4gIGVuYWJsZWQ6IGZhbHNlLFxufVxuXG5jb25zdCBzbmFwU2l6ZSA9IHtcbiAgc3RhcnQsXG4gIHNldCxcbiAgZGVmYXVsdHMsXG59XG5cbmV4cG9ydCBkZWZhdWx0IHNuYXBTaXplXG4iXX0= |
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
141515
1249