feat(渲染编辑): 补全网格渐变与径向延伸
build.yaml / build (push) Successful in 42s

This commit is contained in:
xiaoqidun committed 2026-09-27 13:44:41 +08:00
1 parent affc84459e
commit e78ea6f919
18 files changed
+567 -51

No files matched your search

+4
View File
@@ -100,6 +100,10 @@ func (c *canvasPageCompiler) fill(path *canvas.Path, paint canvas.Paint, rule ca
g := &RasterGradient{}
var stops canvas.Grad
switch source := paint.Gradient.(type) {
case rasterGradientCanvas:
copy := *source.gradient
g = &copy
stops = canvasGradient(g.Stops)
case *canvas.LinearGradient:
g.Kind, g.Start, g.End = RasterLinear, rasterPoint(source.Start), rasterPoint(source.End)
stops = source.Grad