Help us shape the future of Go! Take the 2026 Go Developer Survey

pathbuild

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pathbuild 将 OFD 路径命令及对象坐标转换为只读绘制路径。 路径构造只依赖模型与几何类型,不持有文档资源或绘制后端。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cp *models.CtPath, transform func(pt models.StPos) (float64, float64)) *geom.Path

New 按给定仿射坐标变换构造路径,跳过参数缺失或坐标非有限的命令。 圆弧的半径、轴向及扫掠方向与端点一起变换。

func Object

func Object(object models.PathObject, pageHeight float64, parentCTM *models.CTM) *geom.Path

Object 将路径对象映射到画布坐标,叠加可选的父级变换。 无效矩阵或边界产生空路径,组合矩阵只计算一次。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL