/var/www/cobraambalaj/node_modules/shufflejs/src
NameSizeModeActions
array-max.js1190644editdlrm
array-min.js1190644editdlrm
classes.js1410644editdlrm
computed-size.js3960644editdlrm
get-number-style.js12130644editdlrm
get-number.js2750644editdlrm
hyphenate.js3160644editdlrm
layout.js76020644editdlrm
on-transition-end.js6890644editdlrm
point.js4650644editdlrm
rect.js9350644editdlrm
shuffle-item.js22770644editdlrm
shuffle.js355300644editdlrm
sorter.js22360644editdlrm
Edit: /var/www/cobraambalaj/node_modules/shufflejs/src/rect.js (935B)
export default class Rect { /** * Class for representing rectangular regions. * https://github.com/google/closure-library/blob/master/closure/goog/math/rect.js * @param {number} x Left. * @param {number} y Top. * @param {number} w Width. * @param {number} h Height. * @param {number} id Identifier * @constructor */ constructor(x, y, w, h, id) { this.id = id; /** @type {number} */ this.left = x; /** @type {number} */ this.top = y; /** @type {number} */ this.width = w; /** @type {number} */ this.height = h; } /** * Returns whether two rectangles intersect. * @param {Rect} a A Rectangle. * @param {Rect} b A Rectangle. * @return {boolean} Whether a and b intersect. */ static intersects(a, b) { return ( a.left < b.left + b.width && b.left < a.left + a.width && a.top < b.top + b.height && b.top < a.top + a.height); } }