回复
     HarmonyOS应用开发-Svg组件—polyline
鸿蒙时代
 发布于 2022-2-7 09:15
 浏览
 0收藏

绘制折线。
说明:该组件从API version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
支持animate、animateMotion、animateTransform。
支持所列的Svg组件通用属性和以下表格的属性。
支持属性动画,如果属性动画里设置的动效变化值的坐标个数与原始points的格式不一样,则无效
示例:
<div class="container">
    <svg fill="white" stroke="blue" width="400" height="400">
        <polyline points="10,110 60,35 60,85 110,10" fill="red"></polyline>
        <polyline points="10,200 60,125 60,175 110,100" stroke-dasharray="10 5" stroke-dashoffset="3"></polyline>
    </svg>
    <svg fill="white" stroke="blue" width="400" height="400">
        <polyline points="18,150 60,35 60,85 150,10" fill="red"></polyline>
        <polyline points="18,250 60,125 60,175 150,100" stroke-dasharray="10 5" stroke-dashoffset="3"></polyline>
    </svg>
</div>
效果:

完整代码地址:
https://gitee.com/jltfcloudcn/jump_to/tree/master/polyline
分类 
 标签 
 HarmonyOS应用开发-Svg组件—polyline.docx 36.24K 12次下载  
        赞
        
 
        收藏 
      
 回复
  相关推荐
 



















