Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-includes/js/dist/vendor
NameTypeSizeActions
📁 .. Folder -
📄 lodash.js File 544098
Edit Download
📄 lodash.min.js File 70707
Edit Download
📄 moment.js File 176435
Edit Download
📄 moment.min.js File 58812
Edit Download
📄 react-dom.js File 1080227
Edit Download
📄 react-dom.min.js File 128946
Edit Download
📄 react-jsx-runtime.js File 47276
Edit Download
📄 react-jsx-runtime.min.js File 900
Edit Download
📄 react-jsx-runtime.min.js.LICENSE.txt File 249
Edit Download
📄 react.js File 109931
Edit Download
📄 react.min.js File 10628
Edit Download
📄 regenerator-runtime.js File 25307
Edit Download
📄 regenerator-runtime.min.js File 6598
Edit Download
📄 wp-polyfill-dom-rect.js File 1927
Edit Download
📄 wp-polyfill-dom-rect.min.js File 860
Edit Download
📄 wp-polyfill-element-closest.js File 428
Edit Download
📄 wp-polyfill-element-closest.min.js File 425
Edit Download
📄 wp-polyfill-fetch.js File 19815
Edit Download
📄 wp-polyfill-fetch.min.js File 10008
Edit Download
📄 wp-polyfill-formdata.js File 11874
Edit Download
📄 wp-polyfill-formdata.min.js File 8774
Edit Download
📄 wp-polyfill-inert.js File 30222
Edit Download
📄 wp-polyfill-inert.min.js File 8208
Edit Download
📄 wp-polyfill-node-contains.js File 643
Edit Download
📄 wp-polyfill-node-contains.min.js File 348
Edit Download
📄 wp-polyfill-object-fit.js File 9185
Edit Download
📄 wp-polyfill-object-fit.min.js File 2975
Edit Download
📄 wp-polyfill-url.js File 110332
Edit Download
📄 wp-polyfill-url.min.js File 47075
Edit Download
📄 wp-polyfill.js File 136953
Edit Download
📄 wp-polyfill.min.js File 41247
Edit Download

View File: wp-polyfill-dom-rect.js

// DOMRect
(function (global) {
	function number(v) {
		return v === undefined ? 0 : Number(v);
	}

	function different(u, v) {
		return u !== v && !(isNaN(u) && isNaN(v));
	}

	function DOMRect(xArg, yArg, wArg, hArg) {
		var x, y, width, height, left, right, top, bottom;

		x = number(xArg);
		y = number(yArg);
		width = number(wArg);
		height = number(hArg);

		Object.defineProperties(this, {
			x: {
				get: function () { return x; },
				set: function (newX) {
					if (different(x, newX)) {
						x = newX;
						left = right = undefined;
					}
				},
				enumerable: true
			},
			y: {
				get: function () { return y; },
				set: function (newY) {
					if (different(y, newY)) {
						y = newY;
						top = bottom = undefined;
					}
				},
				enumerable: true
			},
			width: {
				get: function () { return width; },
				set: function (newWidth) {
					if (different(width, newWidth)) {
						width = newWidth;
						left = right = undefined;
					}
				},
				enumerable: true
			},
			height: {
				get: function () { return height; },
				set: function (newHeight) {
					if (different(height, newHeight)) {
						height = newHeight;
						top = bottom = undefined;
					}
				},
				enumerable: true
			},
			left: {
				get: function () {
					if (left === undefined) {
						left = x + Math.min(0, width);
					}
					return left;
				},
				enumerable: true
			},
			right: {
				get: function () {
					if (right === undefined) {
						right = x + Math.max(0, width);
					}
					return right;
				},
				enumerable: true
			},
			top: {
				get: function () {
					if (top === undefined) {
						top = y + Math.min(0, height);
					}
					return top;
				},
				enumerable: true
			},
			bottom: {
				get: function () {
					if (bottom === undefined) {
						bottom = y + Math.max(0, height);
					}
					return bottom;
				},
				enumerable: true
			}
		});
	}

	global.DOMRect = DOMRect;
}(self));