package
Version:
v0.1.7
Opens a new window with list of versions in this module.
Published: Oct 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package pattern 按 OFD 底纹属性计算平铺范围及图块变换。
本包只依赖模型与几何,不绘制 CellContent,也不持有文档资源或绘制预算。
MaxTiles 限制一次平铺计划的图块数,防止无界展开。
New 按 GB/T 33190—2016 §8.3.3 表28 计算底纹步长、原点、镜像与 CTM。
bounds 使用画布 Y 向上坐标;图块矩阵使用 OFD Y 向下坐标。
Plan 是只读平铺计划;Columns 与 Rows 方法也用于数量超限时的诊断。
零值与未就绪的计划不提供图块变换。
Tile 返回相对计划起点的某列某行的变换。未就绪计划、负数或越界索引,
以及逐图块平移溢出时返回 false。
Status 区分有效计划、无效几何与图块数量超限。
const (
Invalid Status = iota
Ready
LimitExceeded
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.