Documentation
¶
Overview ¶
Package composite 计算复合图元的兼容内容范围、保守墨迹边界与重采样计划。 本包不加载资源或执行绘制,输入模型及共享路径均视为只读。
Index ¶
- func ContentExtent(object models.CompositeObject) (float64, float64, bool)
- func ExtentMismatch(declared, extent float64) bool
- func InkRect(unit *models.CompositeGraphicUnit, w, h float64) (models.StBox, bool)
- func Resample(ink geom.Rect, w, h, dpi float64, box models.StBox, outDPI float64) (geom.Rect, float64, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentExtent ¶
func ContentExtent(object models.CompositeObject) (float64, float64, bool)
ContentExtent 由 Boundary 与轴向 CTM 反推内容范围;旋转或错切时不做反推。 GB/T 33190—2016 §13 表50 定义单元宽高;此函数用于兼容声明尺寸与实际 对象范围不符的文档,不改变模型中的声明尺寸。
func ExtentMismatch ¶
ExtentMismatch 判断声明尺寸与反推范围的相对误差是否超过既有兼容阈值。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.