pptxtojson 1.5.2 → 1.6.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 CHANGED
@@ -110,142 +110,151 @@ func()
110
110
 
111
111
  # 📕 完整功能支持
112
112
 
113
- ### 幻灯片主题色 `themeColors`
114
-
115
- ### 幻灯片尺寸 `size`
116
- - 幻灯片宽度 `width`
117
- - 幻灯片高度 `height`
118
-
119
- ### 幻灯片页面 `slides`
120
- #### 页面背景填充(颜色、图片、渐变) `fill`
121
-
122
- #### 页面备注 `note`
123
-
124
- #### 页面内元素 `elements` / 母版元素 `layoutElements`
125
- ##### 文字
126
- - 类型 `type='text'`
127
- - 水平坐标 `left`
128
- - 垂直坐标 `top`
129
- - 宽度 `width`
130
- - 高度 `height`
131
- - 边框颜色 `borderColor`
132
- - 边框宽度 `borderWidth`
133
- - 边框类型(实线、点线、虚线) `borderType`
134
- - 非实线边框样式 `borderStrokeDasharray`
135
- - 阴影 `shadow`
136
- - 填充(颜色、图片、渐变) `fill`
137
- - 内容文字(HTML富文本) `content`
138
- - 垂直翻转 `isFlipV`
139
- - 水平翻转 `isFlipH`
140
- - 旋转角度 `rotate`
141
- - 垂直对齐方向 `vAlign`
142
- - 是否为竖向文本 `isVertical`
143
- - 元素名 `name`
144
-
145
- ##### 图片
146
- - 类型 `type='image'`
147
- - 水平坐标 `left`
148
- - 垂直坐标 `top`
149
- - 宽度 `width`
150
- - 高度 `height`
151
- - 边框颜色 `borderColor`
152
- - 边框宽度 `borderWidth`
153
- - 边框类型(实线、点线、虚线) `borderType`
154
- - 非实线边框样式 `borderStrokeDasharray`
155
- - 裁剪形状 `geom`
156
- - 裁剪范围 `rect`
157
- - 图片地址(base64) `src`
158
- - 旋转角度 `rotate`
159
-
160
- ##### 形状
161
- - 类型 `type='shape'`
162
- - 水平坐标 `left`
163
- - 垂直坐标 `top`
164
- - 宽度 `width`
165
- - 高度 `height`
166
- - 边框颜色 `borderColor`
167
- - 边框宽度 `borderWidth`
168
- - 边框类型(实线、点线、虚线) `borderType`
169
- - 非实线边框样式 `borderStrokeDasharray`
170
- - 阴影 `shadow`
171
- - 填充(颜色、图片、渐变) `fill`
172
- - 内容文字(HTML富文本) `content`
173
- - 垂直翻转 `isFlipV`
174
- - 水平翻转 `isFlipH`
175
- - 旋转角度 `rotate`
176
- - 形状类型 `shapType`
177
- - 垂直对齐方向 `vAlign`
178
- - 形状路径 `path`
179
- - 元素名 `name`
180
-
181
- ##### 表格
182
- - 类型 `type='table'`
183
- - 水平坐标 `left`
184
- - 垂直坐标 `top`
185
- - 宽度 `width`
186
- - 高度 `height`
187
- - 边框(4边) `borders`
188
- - 表格数据 `data`
189
- - 行高 `rowHeights`
190
- - 列宽 `colWidths`
191
-
192
- ##### 图表
193
- - 类型 `type='chart'`
194
- - 水平坐标 `left`
195
- - 垂直坐标 `top`
196
- - 宽度 `width`
197
- - 高度 `height`
198
- - 图表数据 `data`
199
- - 图表主题色 `colors`
200
- - 图表类型 `chartType`
201
- - 柱状图方向 `barDir`
202
- - 是否带数据标记 `marker`
203
- - 环形图尺寸 `holeSize`
204
- - 分组模式 `grouping`
205
- - 图表样式 `style`
206
-
207
- ##### 视频
208
- - 类型 `type='video'`
209
- - 水平坐标 `left`
210
- - 垂直坐标 `top`
211
- - 宽度 `width`
212
- - 高度 `height`
213
- - 视频blob `blob`
214
- - 视频src `src`
215
-
216
- ##### 音频
217
- - 类型 `type='audio'`
218
- - 水平坐标 `left`
219
- - 垂直坐标 `top`
220
- - 宽度 `width`
221
- - 高度 `height`
222
- - 音频blob `blob`
223
-
224
- ##### 公式
225
- - 类型 `type='math'`
226
- - 水平坐标 `left`
227
- - 垂直坐标 `top`
228
- - 宽度 `width`
229
- - 高度 `height`
230
- - 公式图片 `picBase64`
231
- - LaTeX表达式(仅支持常见结构) `latex`
232
- - 文本(文本和公式混排时存在) `text`
233
-
234
- ##### Smart图
235
- - 类型 `type='diagram'`
236
- - 水平坐标 `left`
237
- - 垂直坐标 `top`
238
- - 宽度 `width`
239
- - 高度 `height`
240
- - 子元素集合 `elements`
241
-
242
- ##### 多元素组合
243
- - 类型 `type='group'`
244
- - 水平坐标 `left`
245
- - 垂直坐标 `top`
246
- - 宽度 `width`
247
- - 高度 `height`
248
- - 子元素集合 `elements`
113
+ - 幻灯片主题色 `themeColors`
114
+
115
+ - 幻灯片尺寸 `size`
116
+ - 宽度 `width`
117
+ - 高度 `height`
118
+
119
+ - 幻灯片页面 `slides`
120
+
121
+ - 页面备注 `note`
122
+
123
+ - 页面背景填充(颜色、图片、渐变) `fill`
124
+ - 纯色填充 `type='color'`
125
+ - 图片填充 `type='image'`
126
+ - 渐变填充 `type='gradient'`
127
+
128
+ - 页面切换动画 `transition`
129
+ - 类型 `type`
130
+ - 持续时间 `duration`
131
+ - 方向 `direction`
132
+
133
+ - 页面内元素 `elements` / 母版元素 `layoutElements`
134
+ - 文字
135
+ - 类型 `type='text'`
136
+ - 水平坐标 `left`
137
+ - 垂直坐标 `top`
138
+ - 宽度 `width`
139
+ - 高度 `height`
140
+ - 边框颜色 `borderColor`
141
+ - 边框宽度 `borderWidth`
142
+ - 边框类型(实线、点线、虚线) `borderType`
143
+ - 非实线边框样式 `borderStrokeDasharray`
144
+ - 阴影 `shadow`
145
+ - 填充(颜色、图片、渐变) `fill`
146
+ - 内容文字(HTML富文本) `content`
147
+ - 垂直翻转 `isFlipV`
148
+ - 水平翻转 `isFlipH`
149
+ - 旋转角度 `rotate`
150
+ - 垂直对齐方向 `vAlign`
151
+ - 是否为竖向文本 `isVertical`
152
+ - 元素名 `name`
153
+
154
+ - 图片
155
+ - 类型 `type='image'`
156
+ - 水平坐标 `left`
157
+ - 垂直坐标 `top`
158
+ - 宽度 `width`
159
+ - 高度 `height`
160
+ - 边框颜色 `borderColor`
161
+ - 边框宽度 `borderWidth`
162
+ - 边框类型(实线、点线、虚线) `borderType`
163
+ - 非实线边框样式 `borderStrokeDasharray`
164
+ - 裁剪形状 `geom`
165
+ - 裁剪范围 `rect`
166
+ - 图片地址(base64) `src`
167
+ - 旋转角度 `rotate`
168
+
169
+ - 形状
170
+ - 类型 `type='shape'`
171
+ - 水平坐标 `left`
172
+ - 垂直坐标 `top`
173
+ - 宽度 `width`
174
+ - 高度 `height`
175
+ - 边框颜色 `borderColor`
176
+ - 边框宽度 `borderWidth`
177
+ - 边框类型(实线、点线、虚线) `borderType`
178
+ - 非实线边框样式 `borderStrokeDasharray`
179
+ - 阴影 `shadow`
180
+ - 填充(颜色、图片、渐变) `fill`
181
+ - 内容文字(HTML富文本) `content`
182
+ - 垂直翻转 `isFlipV`
183
+ - 水平翻转 `isFlipH`
184
+ - 旋转角度 `rotate`
185
+ - 形状类型 `shapType`
186
+ - 垂直对齐方向 `vAlign`
187
+ - 形状路径 `path`
188
+ - 元素名 `name`
189
+
190
+ - 表格
191
+ - 类型 `type='table'`
192
+ - 水平坐标 `left`
193
+ - 垂直坐标 `top`
194
+ - 宽度 `width`
195
+ - 高度 `height`
196
+ - 边框(4边) `borders`
197
+ - 表格数据 `data`
198
+ - 行高 `rowHeights`
199
+ - 列宽 `colWidths`
200
+
201
+ - 图表
202
+ - 类型 `type='chart'`
203
+ - 水平坐标 `left`
204
+ - 垂直坐标 `top`
205
+ - 宽度 `width`
206
+ - 高度 `height`
207
+ - 图表数据 `data`
208
+ - 图表主题色 `colors`
209
+ - 图表类型 `chartType`
210
+ - 柱状图方向 `barDir`
211
+ - 是否带数据标记 `marker`
212
+ - 环形图尺寸 `holeSize`
213
+ - 分组模式 `grouping`
214
+ - 图表样式 `style`
215
+
216
+ - 视频
217
+ - 类型 `type='video'`
218
+ - 水平坐标 `left`
219
+ - 垂直坐标 `top`
220
+ - 宽度 `width`
221
+ - 高度 `height`
222
+ - 视频blob `blob`
223
+ - 视频src `src`
224
+
225
+ - 音频
226
+ - 类型 `type='audio'`
227
+ - 水平坐标 `left`
228
+ - 垂直坐标 `top`
229
+ - 宽度 `width`
230
+ - 高度 `height`
231
+ - 音频blob `blob`
232
+
233
+ - 公式
234
+ - 类型 `type='math'`
235
+ - 水平坐标 `left`
236
+ - 垂直坐标 `top`
237
+ - 宽度 `width`
238
+ - 高度 `height`
239
+ - 公式图片 `picBase64`
240
+ - LaTeX表达式(仅支持常见结构) `latex`
241
+ - 文本(文本和公式混排时存在) `text`
242
+
243
+ - Smart图
244
+ - 类型 `type='diagram'`
245
+ - 水平坐标 `left`
246
+ - 垂直坐标 `top`
247
+ - 宽度 `width`
248
+ - 高度 `height`
249
+ - 子元素集合 `elements`
250
+
251
+ - 多元素组合
252
+ - 类型 `type='group'`
253
+ - 水平坐标 `left`
254
+ - 垂直坐标 `top`
255
+ - 宽度 `width`
256
+ - 高度 `height`
257
+ - 子元素集合 `elements`
249
258
 
250
259
  ### 更多类型请参考 👇
251
260
  [https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts](https://github.com/pipipi-pikachu/pptxtojson/blob/master/dist/index.d.ts)