如何在 raphaeljs 中使用 attr 的stroke-dasharray、stroke-linecap、stroke-linejoin [英] how to use attr's stroke-dasharray,stroke-linecap,stroke-linejoin in raphaeljs

查看:26
本文介绍了如何在 raphaeljs 中使用 attr 的stroke-dasharray、stroke-linecap、stroke-linejoin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我举个例子来说明这些属性的实际作用:stroke-dasharray、stroke-linecap、stroke-linejoin 我试过使用它们,但我不太了解它们值的sentext结构.

解决方案

  • 法律价值:miter |round |斜面 |继承
    • 合法值:以逗号或空格分隔的长度或百分比列表,
      例如"100 20 0 20"
    • 示例(使用上述值)

    Can anyone give me an example of these attributes in action: stroke-dasharray, stroke-linecap, stroke-linejoin i tried using them, but i don't quite understand the sentext structure for their values.

    解决方案

    stroke-linecap

    • Legal Values: butt | round | square | inherit
    • Example

    stroke-linejoin

    • Legal Values: miter | round | bevel | inherit
    • Example

    stroke-dasharray

    • Legal Values: comma- or space-delimited list of lengths or percentages,
      e.g. "100 20 0 20"
    • Example (using above values)

    这篇关于如何在 raphaeljs 中使用 attr 的stroke-dasharray、stroke-linecap、stroke-linejoin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆