<circle>

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

* Some parts of this feature may have varying levels of support.

<circle> SVG SVG 요소는 중심점과 반지름을 기준으로 원을 그리는 데 사용되는 SVG 기본 모양입니다.

예제

html
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
  <circle cx="50" cy="50" r="50" />
</svg>

속성

cx

원 중심의 x축 좌표입니다. 값 유형: <length>|<percentage> ; 기본 값: 0; 에니메이션 가능:

cy

원 중심의 y축 좌표입니다. 값 유형: <length>|<percentage> ; 기본 값: 0; 에니메이션 가능:

r

원의 반지름입니다. 0 이하의 값은 원의 렌더링을 비활성화합니다. 값 유형: <length>|<percentage> ; 기본 값: 0; 에니메이션 가능:

pathLength

원주 전체 길이(사용자 단위). 값 유형: <number> ; 기본 값: 없음; 에니메이션 가능:

참고 : SVG2부터 시작하여 cx, cy, 그리고 r는 기하학 속성입니다. 즉, 해당 속성을 해당 요소의 CSS 속성으로도 사용할 수 있습니다.

전역 속성

코어 속성

특히: id, tabindex

스타일 속성

class, style

조건부 처리 속성

특히: requiredExtensions, systemLanguage

이벤트 속성

전역 이벤트 속성, 그래픽 이벤트 속성

프레젠테이션 속성

특히: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility

ARIA 속성

aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role

사용 참고 사항

카테고리기본 모양 요소, 그래픽 요소, 모양 요소
허용된 콘텐츠순서에 상관없는 다음 요소 중 임의의 개수:
애니메이션 요소
설명 요소

명세서

Specification
Scalable Vector Graphics (SVG) 2
# CircleElement

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
circle
cx
cy
fill
context-fill value
r
systemLanguage

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

같이 보기