openharmony 鸿蒙 js-components-svg-ellipse

2025-06-12 浏览 (1)

ellipse

说明: 该组件从API version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。

椭圆形状。

权限列表

子组件

支持animateanimateMotionanimateTransform

属性

支持Svg组件通用属性和以下属性。

名称类型默认值必填描述
idstring-组件的唯一标识。
cx<length>|<percentage>0设置椭圆的x轴坐标。支持属性动画。
cy<length>|<percentage>0设置椭圆的y轴坐标。支持属性动画。
rx<length>|<percentage>0设置椭圆x轴的半径。支持属性动画。
ry<length>|<percentage>0设置椭圆y轴的半径。支持属性动画。

示例

<!-- xxx.hml -->
<div class="container">
  <svg fill="white" width="400" height="400">
    <ellipse cx="60" cy="200" rx="50" ry="100" stroke-width="4" fill="red" stroke="blue"></ellipse>
    <ellipse cx="220" cy="200" rx="100" ry="50" stroke-width="5" stroke="red" stroke-dasharray="10 5" stroke-dashoffset="3"></ellipse>
  </svg>
</div>

zh-cn_image_0000001173164793

你可能感兴趣的鸿蒙文章

harmony 鸿蒙兼容JS的类Web开发范式(ArkUI.Full)

harmony 鸿蒙数据类型说明

harmony 鸿蒙button

harmony 鸿蒙chart

harmony 鸿蒙divider

harmony 鸿蒙image-animator

harmony 鸿蒙image

harmony 鸿蒙input

harmony 鸿蒙label

harmony 鸿蒙marquee

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/ZGO10y