<polyline> <polyline>SVG元素是创建连接的几个点的直线的SVG基本形状。通常,一个polyline用于创建开放形状,因为最后一点不必连接到第一个点。
points points属性定义绘制一个<polyline>or<polygon>元素所需的点列表。 每个点由用户坐标系中的X和Y坐标定义。
例子 元素 Thefollowingelementscanusethemarker-midattribute <path> <line> <polyline> <polygon>
+ $x * $offset], ['x' => 40 * 5, 'y' => 10 * 5 + $x * $offset], ]; $draw->polyline
例子 元素 Thefollowingelementscanusethemarker-endattribute <path> <line> <polyline> <polygon>
虽然polyline元素也能实现类似的效果,但是必须设置大量的点(点越密集,越接近连续,看起来越平滑流畅),并且这种做法不能够放大(放大后,点的离散更明显)。

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
