# fsys.openXml.pptx.layout 库模块帮助文档

## fsys.openXml.pptx.layout 成员列表 <a id="fsys.openXml.pptx.layout" href="#fsys.openXml.pptx.layout">&#x23;</a>

PPTX 生成与预检共用的纯解析层；不生成 XML、不测量文字、不加载 Office。

### fsys.openXml.pptx.layout.checked(v,min,max,label) <a id="fsys.openXml.pptx.layout.checked" href="#fsys.openXml.pptx.layout.checked">&#x23;</a>
数值范围校验，越界抛出带 label 的消息。

### fsys.openXml.pptx.layout.cornerRadius(shape,width,height) <a id="fsys.openXml.pptx.layout.cornerRadius" href="#fsys.openXml.pptx.layout.cornerRadius">&#x23;</a>
返回 roundRect 的自定义半径(point)或null，范围0到短边一半。

### fsys.openXml.pptx.layout.emu/point/color/simpleText <a id="fsys.openXml.pptx.layout.emu/point/color/simpleText" href="#fsys.openXml.pptx.layout.emu/point/color/simpleText">&#x23;</a>
单位与颜色/文本归一化工具；失败抛纯消息（不含库文件与行号）。

### fsys.openXml.pptx.layout.geometry(shape,kind) <a id="fsys.openXml.pptx.layout.geometry" href="#fsys.openXml.pptx.layout.geometry">&#x23;</a>
解析位置与尺寸，返回 left,top,width,height,flipH,flipV（point）。

### fsys.openXml.pptx.layout.hyperlink(input) <a id="fsys.openXml.pptx.layout.hyperlink" href="#fsys.openXml.pptx.layout.hyperlink">&#x23;</a>
解析点击链接；返回 url/slide/action 之一及 tooltip，null/false 返回 null。不访问链接。

### fsys.openXml.pptx.layout.margins(input,def,min,max) <a id="fsys.openXml.pptx.layout.margins" href="#fsys.openXml.pptx.layout.margins">&#x23;</a>
四边边距解析为 EMU；数值或四边表。

### fsys.openXml.pptx.layout.numbering(input) <a id="fsys.openXml.pptx.layout.numbering" href="#fsys.openXml.pptx.layout.numbering">&#x23;</a>
解析 true、类型字符串或 {type,startAt}；仅校验，连续段落的起始基数在 text 内统一解析。

### fsys.openXml.pptx.layout.segments(input,count,total,label) <a id="fsys.openXml.pptx.layout.segments" href="#fsys.openXml.pptx.layout.segments">&#x23;</a>
表格列宽/行高分段解析为 EMU 数组；合计须等于总宽/高。

### fsys.openXml.pptx.layout.shadow(input) <a id="fsys.openXml.pptx.layout.shadow" href="#fsys.openXml.pptx.layout.shadow">&#x23;</a>
解析 true/false 或 {blur,distance,angle,color,opacity}；null/false 返回 null。

### fsys.openXml.pptx.layout.slideShapes(slide,options,location,pageIndex) <a id="fsys.openXml.pptx.layout.slideShapes" href="#fsys.openXml.pptx.layout.slideShapes">&#x23;</a>
复制 shapes，补全占位符、自动页码及当前页字段缓存；不修改输入。  
location 为内部错误定位对象可省略；pageIndex 默认1。builder/check 都传实际页序。

### fsys.openXml.pptx.layout.standard(name,options) <a id="fsys.openXml.pptx.layout.standard" href="#fsys.openXml.pptx.layout.standard">&#x23;</a>
返回 blank/title/titleContent/twoContent 的默认占位符描述数组；point 坐标，不创建用户幻灯片。

### fsys.openXml.pptx.layout.tableMerges(rowCount,columnCount,merges) <a id="fsys.openXml.pptx.layout.tableMerges" href="#fsys.openXml.pptx.layout.tableMerges">&#x23;</a>
校验矩形合并范围 {row,column,rowSpan,colSpan}；返回 ranges,cells,rowCount,columnCount。cells 每个物理槽指向左上角逻辑格；只做拓扑，不处理文字。

### fsys.openXml.pptx.layout.text(shape,defaults,tagName) <a id="fsys.openXml.pptx.layout.text" href="#fsys.openXml.pptx.layout.text">&#x23;</a>
解析文字模型，返回 paragraphs,text,anchor,margin,fontSize,fontName,lang。

### fsys.openXml.pptx.layout.textTargets(model) <a id="fsys.openXml.pptx.layout.textTargets" href="#fsys.openXml.pptx.layout.textTargets">&#x23;</a>
返回 paragraphCount/paragraphIndices；非空段序号从1开始，软换行不拆段，供动画使用。

## 全局对象 成员列表 <a id="global" href="#global">&#x23;</a>

### kind <a id="kind" href="#kind">&#x23;</a>
line 且给出 x2/y2 时按两点计算边界框与自动翻转，便于直接画斜线。
