feat(渲染编辑): 完善渲染编辑,优化版本压缩
build.yaml / build (push) Successful in 4m25s

This commit is contained in:
xiaoqidun committed 2026-10-12 10:47:20 +08:00
1 parent 19dc79e8e3
commit a710bc5f41
68 files changed
+2149 -724

No files matched your search

+3 -2
View File
@@ -140,8 +140,9 @@ func (r *Renderer) PositionText(object TextObject, state RenderState) (*Position
angle := float64(object.CharDirection) * math.Pi / 180
rotate := Matrix{a: math.Cos(angle), b: math.Sin(angle), c: -math.Sin(angle), d: math.Cos(angle)}
glyphLinear := Matrix{a: linear.a, b: linear.b, c: linear.c, d: linear.d}.Multiply(rotate)
for index, code := range object.TextCode {
if object.textCodeLineBreak(index) {
lines := newTextLineScanner(object)
for _, code := range object.TextCode {
if lines.next(code) {
textOffset++
}
runes := textCodeRunes(code.Value)