aardio 文档

fsys.openXml.pptx.layout 库模块帮助文档

fsys.openXml.pptx.layout 成员列表 #

PPTX 生成与预检共用的纯解析层;不生成 XML、不测量文字、不加载 Office。

fsys.openXml.pptx.layout.checked(v,min,max,label) #

数值范围校验,越界抛出带 label 的消息。

fsys.openXml.pptx.layout.cornerRadius(shape,width,height) #

返回 roundRect 的自定义半径(point)或null,范围0到短边一半。

fsys.openXml.pptx.layout.emu/point/color/simpleText #

单位与颜色/文本归一化工具;失败抛纯消息(不含库文件与行号)。

fsys.openXml.pptx.layout.geometry(shape,kind) #

解析位置与尺寸,返回 left,top,width,height,flipH,flipV(point)。

fsys.openXml.pptx.layout.hyperlink(input) #

解析点击链接;返回 url/slide/action 之一及 tooltip,null/false 返回 null。不访问链接。

fsys.openXml.pptx.layout.margins(input,def,min,max) #

四边边距解析为 EMU;数值或四边表。

fsys.openXml.pptx.layout.numbering(input) #

解析 true、类型字符串或 {type,startAt};仅校验,连续段落的起始基数在 text 内统一解析。

fsys.openXml.pptx.layout.segments(input,count,total,label) #

表格列宽/行高分段解析为 EMU 数组;合计须等于总宽/高。

fsys.openXml.pptx.layout.shadow(input) #

解析 true/false 或 {blur,distance,angle,color,opacity};null/false 返回 null。

fsys.openXml.pptx.layout.slideShapes(slide,options,location,pageIndex) #

复制 shapes,补全占位符、自动页码及当前页字段缓存;不修改输入。
location 为内部错误定位对象可省略;pageIndex 默认1。builder/check 都传实际页序。

fsys.openXml.pptx.layout.standard(name,options) #

返回 blank/title/titleContent/twoContent 的默认占位符描述数组;point 坐标,不创建用户幻灯片。

fsys.openXml.pptx.layout.tableMerges(rowCount,columnCount,merges) #

校验矩形合并范围 {row,column,rowSpan,colSpan};返回 ranges,cells,rowCount,columnCount。cells 每个物理槽指向左上角逻辑格;只做拓扑,不处理文字。

fsys.openXml.pptx.layout.text(shape,defaults,tagName) #

解析文字模型,返回 paragraphs,text,anchor,margin,fontSize,fontName,lang。

fsys.openXml.pptx.layout.textTargets(model) #

返回 paragraphCount/paragraphIndices;非空段序号从1开始,软换行不拆段,供动画使用。

全局对象 成员列表 #

kind #

line 且给出 x2/y2 时按两点计算边界框与自动翻转,便于直接画斜线。

Markdown 格式