Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/shepherd.js/src/js/utils/ drwxrwxr-x | |
| Viewing file: Select action/file-type: /**
* Generates the svg path data for a rounded rectangle overlay
* @param {Object} dimension - Dimensions of rectangle.
* @param {number} width - Width.
* @param {number} height - Height.
* @param {number} [x=0] - Offset from top left corner in x axis. default 0.
* @param {number} [y=0] - Offset from top left corner in y axis. default 0.
* @param {number} [r=0] - Corner Radius. Keep this smaller than half of width or height.
* @returns {string} - Rounded rectangle overlay path data.
*/
export function makeOverlayPath({ width, height, x = 0, y = 0, r = 0 }) {
const { innerWidth: w, innerHeight: h } = window;
return `M${w},${h}\
H0\
V0\
H${w}\
V${h}\
Z\
M${x + r},${y}\
a${r},${r},0,0,0-${r},${r}\
V${height + y - r}\
a${r},${r},0,0,0,${r},${r}\
H${width + x - r}\
a${r},${r},0,0,0,${r}-${r}\
V${y + r}\
a${r},${r},0,0,0-${r}-${r}\
Z`;
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0365 ]-- |