pptxtojson 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/align.js +84 -0
- package/src/pptxtojson.js +3 -1
- package/src/text.js +40 -12
package/README.md
CHANGED
|
@@ -151,6 +151,11 @@ func()
|
|
|
151
151
|
- 垂直对齐方向 `vAlign`
|
|
152
152
|
- 是否为竖向文本 `isVertical`
|
|
153
153
|
- 元素名 `name`
|
|
154
|
+
- 自动调整大小 `autoFit`
|
|
155
|
+
- 类型 `type`
|
|
156
|
+
- `shape`:文本框高度会根据文本内容自动调整
|
|
157
|
+
- `text`:文本框大小固定,字号会自动缩放以适应文本框(注:autoFit不存在时,也会固定文本框大小,但字号不会缩放)
|
|
158
|
+
- 字体缩放比例(type='text'专有,默认为1) `fontScale`
|
|
154
159
|
|
|
155
160
|
- 图片
|
|
156
161
|
- 类型 `type='image'`
|
|
@@ -188,6 +193,7 @@ func()
|
|
|
188
193
|
- 垂直对齐方向 `vAlign`
|
|
189
194
|
- 形状路径 `path`
|
|
190
195
|
- 元素名 `name`
|
|
196
|
+
- 自动调整大小 `autoFit`
|
|
191
197
|
|
|
192
198
|
- 表格
|
|
193
199
|
- 类型 `type='table'`
|