Skip to content

corner

路径圆角。

支持曲线与折线、折线与曲线之间的圆角。

安装插件

需要安装 corner 插件才能使用,点此访问 Github 仓库

sh
npm install @leafer-in/corner
sh
pnpm add @leafer-in/corner
sh
yarn add @leafer-in/corner
sh
bun add @leafer-in/corner

或通过 script 标签引入,使用全局变量 LeaferIN.corner 访问插件内部功能。

html
<script src="https://unpkg.com/@leafer-in/corner@2.0.7/dist/corner.min.js"></script>
html
<script src="https://unpkg.com/@leafer-in/corner@2.0.7/dist/corner.js"></script>

下一步

Ellipse

Path

cornerRadius 属性

Released under the MIT License.