# Circle

> Represents the SVG <circle> (circle) element for rendering circles.

[API reference](/docs/api/index.md) › [HTML SVG](/docs/extensions/html-svg/reference/index.md) › Circle

| final class | `UIAwesome\Html\Svg\Circle` |
| --- | --- |
| Extends | [`UIAwesome\Html\Core\Element\BaseVoid`](/docs/extensions/html-core/reference/element/basevoid/index.md) » [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| Implements | [`UIAwesome\Html\Contracts\Attribute\AttributesInterface`](/docs/extensions/html-contracts/reference/attribute/attributesinterface/index.md), [`UIAwesome\Html\Contracts\Element\VoidInterface`](/docs/extensions/html-contracts/reference/element/voidinterface/index.md), [`UIAwesome\Html\Contracts\RenderableInterface`](/docs/extensions/html-contracts/reference/renderableinterface/index.md) |
| Uses traits | [`UIAwesome\Html\Svg\Internal\RendersEmptySvg`](/docs/extensions/html-svg/reference/internal/rendersemptysvg/index.md), [`UIAwesome\Html\Attribute\Global\CanBeHidden`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md), [`UIAwesome\Html\Attribute\Global\HasAccesskey`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md), [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md), [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md), [`UIAwesome\Html\Attribute\Global\HasClass`](/docs/extensions/html-attribute/reference/global/hasclass/index.md), [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md), [`UIAwesome\Html\Attribute\Global\HasDir`](/docs/extensions/html-attribute/reference/global/hasdir/index.md), [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md), [`UIAwesome\Html\Attribute\Global\HasId`](/docs/extensions/html-attribute/reference/global/hasid/index.md), [`UIAwesome\Html\Attribute\Global\HasLang`](/docs/extensions/html-attribute/reference/global/haslang/index.md), [`UIAwesome\Html\Attribute\Global\HasRole`](/docs/extensions/html-attribute/reference/global/hasrole/index.md), [`UIAwesome\Html\Attribute\Global\HasStyle`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md), [`UIAwesome\Html\Attribute\Global\HasTitle`](/docs/extensions/html-attribute/reference/global/hastitle/index.md), [`UIAwesome\Html\Attribute\Global\HasTranslate`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md), [`UIAwesome\Html\Core\Event\HasAfterRun`](/docs/extensions/html-core/reference/event/hasafterrun/index.md), [`UIAwesome\Html\Core\Event\HasBeforeRun`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md) |
| Source | [`src/Circle.php`](https://github.com/ui-awesome/html-svg/blob/main/src/Circle.php#L27) |

Represents the SVG `<circle>` (circle) element for rendering circles.

Provides a concrete `<circle>` element implementation that returns [`SvgVoid::CIRCLE`](/docs/extensions/html-svg/reference/tag/svgvoid/index.md#case-CIRCLE) and provides geometry,
paint, and transform attribute methods.

The `<circle>` element is an SVG basic shape used to create circles based on a center point and a radius.

See also: <https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle> ([`BaseVoid`](/docs/extensions/html-core/reference/element/basevoid/index.md) for the base implementation.).

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-attributes"></span>[`$attributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md#property-attributes) protected | `mixed[]` | HTML attributes array used by the implementing class. Default: `[]`. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| <span id="method-__construct"></span>[`__construct()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-__construct) final | Initializes a new tag instance. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-__toString"></span>[`__toString()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-__toString) | Returns the rendered tag string. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-accesskey"></span>[`accesskey()`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md#method-accesskey) | Sets the `accesskey` attribute. | [`UIAwesome\Html\Attribute\Global\HasAccesskey`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md) |
| <span id="method-addAriaAttribute"></span>[`addAriaAttribute()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-addAriaAttribute) | Sets an `aria-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-addAttribute"></span>[`addAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-addAttribute) | Adds or updates a single HTML attribute for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-addDataAttribute"></span>[`addDataAttribute()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-addDataAttribute) | Sets a `data-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-addEvent"></span>[`addEvent()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-addEvent) | Sets an `on*` event attribute. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| <span id="method-ariaAttributes"></span>[`ariaAttributes()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-ariaAttributes) | Sets multiple `aria-*` attributes. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-attributes"></span>[`attributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-attributes) | Adds or updates multiple HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-class"></span>[`class()`](/docs/extensions/html-attribute/reference/global/hasclass/index.md#method-class) | Sets the `class` attribute. | [`UIAwesome\Html\Attribute\Global\HasClass`](/docs/extensions/html-attribute/reference/global/hasclass/index.md) |
| <span id="method-config"></span>[`config()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-config) | Applies application-scoped config recipes to this tag. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| [`cx()`](#method-cx) | Sets the SVG `cx` attribute for the element. | `Circle` |
| [`cy()`](#method-cy) | Sets the SVG `cy` attribute for the element. | `Circle` |
| <span id="method-dataAttributes"></span>[`dataAttributes()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-dataAttributes) | Sets multiple `data-*` attributes. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-dir"></span>[`dir()`](/docs/extensions/html-attribute/reference/global/hasdir/index.md#method-dir) | Sets the `dir` attribute. | [`UIAwesome\Html\Attribute\Global\HasDir`](/docs/extensions/html-attribute/reference/global/hasdir/index.md) |
| <span id="method-events"></span>[`events()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-events) | Sets multiple `on*` event attributes. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| [`fill()`](#method-fill) | Sets the SVG `fill` attribute for the element. | `Circle` |
| [`fillOpacity()`](#method-fillOpacity) | Sets SVG `fill-opacity` attribute for the element. | `Circle` |
| [`fillRule()`](#method-fillRule) | Sets SVG `fill-rule` attribute for the element. | `Circle` |
| <span id="method-getAttribute"></span>[`getAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-getAttribute) | Returns the value of a single HTML attribute. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-getAttributes"></span>[`getAttributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-getAttributes) | Returns the `array` of HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-hidden"></span>[`hidden()`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md#method-hidden) | Sets the `hidden` attribute. | [`UIAwesome\Html\Attribute\Global\CanBeHidden`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md) |
| <span id="method-id"></span>[`id()`](/docs/extensions/html-attribute/reference/global/hasid/index.md#method-id) | Sets the `id` attribute. | [`UIAwesome\Html\Attribute\Global\HasId`](/docs/extensions/html-attribute/reference/global/hasid/index.md) |
| <span id="method-lang"></span>[`lang()`](/docs/extensions/html-attribute/reference/global/haslang/index.md#method-lang) | Sets the `lang` attribute. | [`UIAwesome\Html\Attribute\Global\HasLang`](/docs/extensions/html-attribute/reference/global/haslang/index.md) |
| [`opacity()`](#method-opacity) | Sets the SVG `opacity` attribute for the element. | `Circle` |
| [`r()`](#method-r) | Sets the SVG `r` attribute for the element. | `Circle` |
| <span id="method-removeAriaAttribute"></span>[`removeAriaAttribute()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-removeAriaAttribute) | Removes an `aria-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-removeAttribute"></span>[`removeAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-removeAttribute) | Removes a specific HTML attribute from the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-removeDataAttribute"></span>[`removeDataAttribute()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-removeDataAttribute) | Removes a `data-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-removeEvent"></span>[`removeEvent()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-removeEvent) | Removes an `on*` event attribute. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| <span id="method-render"></span>[`render()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-render) final | Renders the tag with lifecycle hooks. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-replaceAttributes"></span>[`replaceAttributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-replaceAttributes) | Replaces all HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-role"></span>[`role()`](/docs/extensions/html-attribute/reference/global/hasrole/index.md#method-role) | Sets the `role` attribute. | [`UIAwesome\Html\Attribute\Global\HasRole`](/docs/extensions/html-attribute/reference/global/hasrole/index.md) |
| [`stroke()`](#method-stroke) | Sets the SVG `stroke` attribute for the element. | `Circle` |
| [`strokeDashArray()`](#method-strokeDashArray) | Sets the SVG `stroke-dasharray` attribute for the element. | `Circle` |
| [`strokeLineCap()`](#method-strokeLineCap) | Sets the SVG `stroke-linecap` attribute for the element. | `Circle` |
| [`strokeLineJoin()`](#method-strokeLineJoin) | Sets the SVG `stroke-linejoin` attribute for the element. | `Circle` |
| [`strokeMiterlimit()`](#method-strokeMiterlimit) | Sets SVG `stroke-miterlimit` attribute for the element. | `Circle` |
| [`strokeOpacity()`](#method-strokeOpacity) | Sets SVG `stroke-opacity` attribute for the element. | `Circle` |
| [`strokeWidth()`](#method-strokeWidth) | Sets the SVG `stroke-width` attribute for the element. | `Circle` |
| <span id="method-style"></span>[`style()`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md#method-style) | Sets the `style` attribute. | [`UIAwesome\Html\Attribute\Global\HasStyle`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md) |
| <span id="method-tag"></span>[`tag()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-tag) static | Creates and configures a new tag instance. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-title"></span>[`title()`](/docs/extensions/html-attribute/reference/global/hastitle/index.md#method-title) | Sets the `title` attribute. | [`UIAwesome\Html\Attribute\Global\HasTitle`](/docs/extensions/html-attribute/reference/global/hastitle/index.md) |
| [`transform()`](#method-transform) | Sets the SVG `transform` attribute for the element. | `Circle` |
| <span id="method-translate"></span>[`translate()`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md#method-translate) | Sets the `translate` attribute. | [`UIAwesome\Html\Attribute\Global\HasTranslate`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md) |
| <span id="method-afterRun"></span>[`afterRun()`](/docs/extensions/html-core/reference/event/hasafterrun/index.md#method-afterRun) protected | Post-processes rendered output. | [`UIAwesome\Html\Core\Event\HasAfterRun`](/docs/extensions/html-core/reference/event/hasafterrun/index.md) |
| <span id="method-beforeRun"></span>[`beforeRun()`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md#method-beforeRun) protected | Validates state before rendering. | [`UIAwesome\Html\Core\Event\HasBeforeRun`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md) |
| [`getTag()`](#method-getTag) protected | Returns the tag enumeration for the `<circle>` element. | `Circle` |
| <span id="method-loadDefault"></span>[`loadDefault()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-loadDefault) protected | Returns class-level default definitions. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-run"></span>[`run()`](/docs/extensions/html-core/reference/element/basevoid/index.md#method-run) protected | Renders the void element. | [`UIAwesome\Html\Core\Element\BaseVoid`](/docs/extensions/html-core/reference/element/basevoid/index.md) |

## Method details

### cx() <span id="method-cx"></span>

```php
public function cx(float|int|string|null $value): static
```

Sets the SVG `cx` attribute for the element.

Creates a new instance with the specified center x-coordinate value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Center x-coordinate value (for example, '50', '50%', or `null` to unset). |

**Returns**

`static`: New instance with the updated `cx` attribute.

### cy() <span id="method-cy"></span>

```php
public function cy(float|int|string|null $value): static
```

Sets the SVG `cy` attribute for the element.

Creates a new instance with the specified center y-coordinate value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Center y-coordinate value (for example, '50', '50%', or `null` to unset). |

**Returns**

`static`: New instance with the updated `cy` attribute.

### fill() <span id="method-fill"></span>

```php
public function fill(string|null $value): static
```

Sets the SVG `fill` attribute for the element.

Creates a new instance with the specified fill value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|null` | Fill value (for example, 'red', 'url(#gradient1)', or `null` to unset). |

**Returns**

`static`: New instance with the updated `fill` attribute.

### fillOpacity() <span id="method-fillOpacity"></span>

```php
public function fillOpacity(float|int|string|null $value): static
```

Sets SVG `fill-opacity` attribute for the element.

Creates a new instance with the specified fill opacity value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Fill opacity value (for example, '0.5' or `null` to unset). |

**Returns**

`static`: New instance with the updated `fill-opacity` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the value is outside the allowed range ('0'-'1') and not `null`.

### fillRule() <span id="method-fillRule"></span>

```php
public function fillRule(UIAwesome\Html\Svg\Values\FillRule|string|null $value): static
```

Sets SVG `fill-rule` attribute for the element.

Creates a new instance with the specified fill rule value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | [`UIAwesome\Html\Svg\Values\FillRule`](/docs/extensions/html-svg/reference/values/fillrule/index.md)`\|string\|null` | Fill rule value to set for the element. Accepts `nonzero`, `evenodd`, [`FillRule`](/docs/extensions/html-svg/reference/values/fillrule/index.md) enum, or `null` to unset. |

**Returns**

`static`: New instance with the updated `fill-rule` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the provided value is not a valid [`FillRule`](/docs/extensions/html-svg/reference/values/fillrule/index.md) enum or string.

**See also**

- <https://www.w3.org/TR/SVG2/painting.html#WindingRule> ([`FillRule`](/docs/extensions/html-svg/reference/values/fillrule/index.md) for predefined enum values. Usage example: $element->fillRule('nonzero'); $element->fillRule(FillRule::EVENODD); $element->fillRule(null);)

### opacity() <span id="method-opacity"></span>

```php
public function opacity(float|int|string|null $value): static
```

Sets the SVG `opacity` attribute for the element.

Creates a new instance with the specified opacity value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Opacity value (for example, '0.5' or `null` to unset). |

**Returns**

`static`: New instance with the updated `opacity` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the value is outside the allowed range ('0'-'1') and not `null`.

### r() <span id="method-r"></span>

```php
public function r(float|int|string|null $value): static
```

Sets the SVG `r` attribute for the element.

Creates a new instance with the specified radius value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Radius value (for example, '25', '50%', or `null` to unset). |

**Returns**

`static`: New instance with the updated `r` attribute.

### stroke() <span id="method-stroke"></span>

```php
public function stroke(string|null $value): static
```

Sets the SVG `stroke` attribute for the element.

Creates a new instance with the specified stroke value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|null` | Stroke paint value (for example, 'black', 'url(#gradient1)', or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke` attribute.

### strokeDashArray() <span id="method-strokeDashArray"></span>

```php
public function strokeDashArray(float|int|string|null $value): static
```

Sets the SVG `stroke-dasharray` attribute for the element.

Creates a new instance with the specified dash array value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Dash array value (for example, '5.3', '4', '5.3 2', or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-dasharray` attribute.

**See also**

- <https://www.w3.org/TR/SVG2/painting.html#StrokeDashing> (Usage example: $element->strokeDashArray(5.3); $element->strokeDashArray(4); $element->strokeDashArray(null);)

### strokeLineCap() <span id="method-strokeLineCap"></span>

```php
public function strokeLineCap(string|UIAwesome\Html\Svg\Values\StrokeLineCap|null $value): static
```

Sets the SVG `stroke-linecap` attribute for the element.

Creates a new instance with the specified stroke line cap value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|`[`UIAwesome\Html\Svg\Values\StrokeLineCap`](/docs/extensions/html-svg/reference/values/strokelinecap/index.md)`\|null` | Stroke line cap style (for example, 'round', [`StrokeLineCap`](/docs/extensions/html-svg/reference/values/strokelinecap/index.md) enum, or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-linecap` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the provided value is not a valid [`StrokeLineCap`](/docs/extensions/html-svg/reference/values/strokelinecap/index.md) enum or string.

### strokeLineJoin() <span id="method-strokeLineJoin"></span>

```php
public function strokeLineJoin(string|UIAwesome\Html\Svg\Values\StrokeLineJoin|null $value): static
```

Sets the SVG `stroke-linejoin` attribute for the element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|`[`UIAwesome\Html\Svg\Values\StrokeLineJoin`](/docs/extensions/html-svg/reference/values/strokelinejoin/index.md)`\|null` | Stroke line join style (for example, 'miter', [`StrokeLineJoin`](/docs/extensions/html-svg/reference/values/strokelinejoin/index.md) enum, or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-linejoin` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the provided value is not a valid [`StrokeLineJoin`](/docs/extensions/html-svg/reference/values/strokelinejoin/index.md) enum or string.

### strokeMiterlimit() <span id="method-strokeMiterlimit"></span>

```php
public function strokeMiterlimit(float|int|string|null $value): static
```

Sets SVG `stroke-miterlimit` attribute for the element.

Creates a new instance with the specified stroke miter limit value for the rendered element.

The `stroke-miterlimit` attribute controls the limit on the ratio of the miter length to the stroke width. When
the limit is exceeded, the join is converted from a miter to a bevel. The value must be a number '>= 1'.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Stroke miter limit value (for example, '4', or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-miterlimit` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If value is not a number '>= 1' or `null`.

**See also**

- <https://www.w3.org/TR/SVG2/painting.html#StrokeMiterlimitProperty> (Usage example: $element->strokeMiterlimit(4); $element->strokeMiterlimit(null);)

### strokeOpacity() <span id="method-strokeOpacity"></span>

```php
public function strokeOpacity(float|int|string|null $value): static
```

Sets SVG `stroke-opacity` attribute for the element.

Creates a new instance with the specified stroke opacity value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `float\|int\|string\|null` | Stroke opacity value (for example, '0.8' or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-opacity` attribute.

**Throws**

- [`InvalidArgumentException`](https://www.php.net/manual/en/class.invalidargumentexception.php): If the value is outside the allowed range ('0'-'1') and not `null`.

### strokeWidth() <span id="method-strokeWidth"></span>

```php
public function strokeWidth(int|string|null $value): static
```

Sets the SVG `stroke-width` attribute for the element.

Creates a new instance with the specified stroke width value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int\|string\|null` | Stroke width value (for example, '2', '1.5em', or `null` to unset). |

**Returns**

`static`: New instance with the updated `stroke-width` attribute.

### transform() <span id="method-transform"></span>

```php
public function transform(string|null $value): static
```

Sets the SVG `transform` attribute for the element.

Creates a new instance with the specified transform value for the rendered element.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|null` | Transform value (for example, 'rotate(45)', 'scale(2)', or `null` to unset). |

**Returns**

`static`: New instance with the updated `transform` attribute.

### getTag() <span id="method-getTag"></span>

```php
protected function getTag(): BackedEnum
```

Returns the tag enumeration for the `<circle>` element.

**Returns**

[`BackedEnum`](https://www.php.net/manual/en/class.backedenum.php): Tag enumeration instance for `<circle>`. [`SvgVoid`](/docs/extensions/html-svg/reference/tag/svgvoid/index.md) for valid SVG void-level tags.