繪製弧形形狀。
語法
<Arc centerX="float" centerY="float" height="float" width="float" startAngle="float" endAngle="float" direction="CLOCKWISE | COUNTER_CLOCKWISE" />
屬性
Arc
元素的屬性如下:
必要屬性
必要屬性包括:
centerX
、centerY
、width
、height
- 一組定義弧形所包含橢圓形的屬性。弧形會縮放至符合所指定橢圓形的內部。所有屬性都會以浮點值的形式定義。
startAngle
- 弧形的起始角度,以度為單位。0 度角會對應至手錶的 12 點鐘位置。
endAngle
- 弧形的結束角度,以度為單位。0 度角會對應至手錶的 12 點鐘位置。
選用屬性
選用屬性包括:
direction
- 弧形的方向。
CLOCKWISE
或COUNTER_CLOCKWISE
。預設為CLOCKWISE
。
內部元素
Arc
元素必須包含單一 Stroke
或 WeightedStroke
元素,Arc 元素也可以視需要包含任意數量的 Transform
元素。
為您推薦
- 注意:系統會在 JavaScript 關閉時顯示連結文字
- TextCircular
- TextCircular
- SweepGradient