@a-type/utils
Advanced tools
Comparing version 1.1.1 to 1.1.2
export declare function stopPropagation(ev: any): void; | ||
export declare function preventDefault(ev: any): void; | ||
export declare function isRightClick(ev: { | ||
button: number; | ||
}): boolean; | ||
export declare function isLeftClick(ev: { | ||
button: number; | ||
}): boolean; | ||
export declare function isMiddleClick(ev: { | ||
button: number; | ||
}): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.preventDefault = exports.stopPropagation = void 0; | ||
exports.isMiddleClick = exports.isLeftClick = exports.isRightClick = exports.preventDefault = exports.stopPropagation = void 0; | ||
function stopPropagation(ev) { | ||
@@ -14,2 +14,14 @@ var _a; | ||
exports.preventDefault = preventDefault; | ||
function isRightClick(ev) { | ||
return ev.button === 2; | ||
} | ||
exports.isRightClick = isRightClick; | ||
function isLeftClick(ev) { | ||
return ev.button === 0; | ||
} | ||
exports.isLeftClick = isLeftClick; | ||
function isMiddleClick(ev) { | ||
return ev.button === 1; | ||
} | ||
exports.isMiddleClick = isMiddleClick; | ||
//# sourceMappingURL=dom.js.map |
export declare function stopPropagation(ev: any): void; | ||
export declare function preventDefault(ev: any): void; | ||
export declare function isRightClick(ev: { | ||
button: number; | ||
}): boolean; | ||
export declare function isLeftClick(ev: { | ||
button: number; | ||
}): boolean; | ||
export declare function isMiddleClick(ev: { | ||
button: number; | ||
}): boolean; |
@@ -9,2 +9,11 @@ export function stopPropagation(ev) { | ||
} | ||
export function isRightClick(ev) { | ||
return ev.button === 2; | ||
} | ||
export function isLeftClick(ev) { | ||
return ev.button === 0; | ||
} | ||
export function isMiddleClick(ev) { | ||
return ev.button === 1; | ||
} | ||
//# sourceMappingURL=dom.js.map |
{ | ||
"name": "@a-type/utils", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "access": "public", |
@@ -8,1 +8,13 @@ export function stopPropagation(ev: any) { | ||
} | ||
export function isRightClick(ev: { button: number }) { | ||
return ev.button === 2; | ||
} | ||
export function isLeftClick(ev: { button: number }) { | ||
return ev.button === 0; | ||
} | ||
export function isMiddleClick(ev: { button: number }) { | ||
return ev.button === 1; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48306
918