Skip to main content

Crate smooth_frame

Crate smooth_frame 

Source
Expand description

Sketch-like smooth corner / smooth frame 的 cubic Bezier 几何库。

低层类型 SmoothCorner 支持任意凸角;SmoothFrame 负责闭合凸多边形; SmoothRect 只是矩形便捷封装。

Structs§

CubicSegment
一段 cubic Bezier,包含起点,便于直接映射到底层渲染 API。
Point
二维点。
SmoothCorner
任意凸角的 Sketch-like smooth corner 输入入口。
SmoothCornerGeometry
单个 smooth corner 解析后的参数,便于测试或调试 Sketch 对齐。
SmoothFrame
闭合凸 polygon / frame。
SmoothPath
平滑路径。
SmoothRect
矩形便捷封装。
SvgPathFormat
SVG path data 输出格式。
Vector
二维向量。

Enums§

PathCommand
可直接映射到 SVG Canvas Skia 等 API 的路径命令。
SmoothError
几何计算错误。

Traits§

PathFormatter
将通用路径命令转换成具体后端输出的扩展契约。