Blockseasy_svg_rect_path()

easy_svg_rect_path()

Returns path data for a rect, rounded corners included, following SVG's rx and ry rules.

Function · Easy SVG · Status: Internal · Defined in includes/core-icon.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_rect_path( float $x, float $y, float $width, float $height, string $rx = '', string $ry = '' ): string

Example

$d = easy_svg_rect_path( 3, 3, 18, 18, '2' );

Description

Returns path data for a rect, rounded corners included, following SVG's rx and ry rules. A helper of easy_svg_core_icon(), pure and without WordPress.