jvs-ppt-ui 0.0.36 → 0.0.37
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/dist/lib/jvs-ppt-ui/iconfont/iconfont.css +7 -3
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.js +1 -1
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.json +7 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.ttf +0 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff +0 -0
- package/dist/lib/jvs-ppt-ui/iconfont/iconfont.woff2 +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_01de32e3d01df54a.svg +9 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_12935f21f0b1ae78.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_201146e666f28fff.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_32ef4f2c1d76ea32.svg +15 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_571054b13f220252.svg +10 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_5b14f99769a8894c.svg +10 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_62fc021bdae89b21.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_649d2b36f7fc251e.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_7e57de8ea8d46aba.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_9ad1284e63535689.svg +15 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_9ff268d3709d6454.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_b8f80ac591d69945.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_dce239981c2cd1aa.svg +15 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_e2ea31ca7735e5c0.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_e585ddb9ec5c408e.png +0 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_f3335fad3673d648.svg +10 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-image/img_fb925327432cc7e7.svg +15 -0
- package/dist/lib/jvs-ppt-ui/layout-library/layout-library.json +1 -0
- package/dist/lib/jvs-ppt-ui.es.js +78530 -20156
- package/dist/lib/jvs-ppt-ui.umd.js +112 -112
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
- package/scripts/patch-pptxtojson.cjs +33 -0
- package/src/assets/chart/baseArea.png +0 -0
- package/src/assets/chart/baseBar.png +0 -0
- package/src/assets/chart/baseHistogram.png +0 -0
- package/src/assets/chart/basePie.png +0 -0
- package/src/assets/chart/bubbleChart.png +0 -0
- package/src/assets/chart/circyChart.png +0 -0
- package/src/assets/chart/compPolyline.png +0 -0
- package/src/assets/chart/lineChart.png +0 -0
- package/src/assets/chart/otherLine.png +0 -0
- package/src/assets/chart/otherLineChart.png +0 -0
- package/src/assets/chart/perHistogram.png +0 -0
- package/src/assets/chart/radarChart.png +0 -0
- package/src/assets/chart/roseChart.png +0 -0
- package/src/assets/chart/roseCircyChart.png +0 -0
- package/src/assets/chart/stackArea.png +0 -0
- package/src/assets/chart/stackBar.png +0 -0
- package/src/assets/chart/stackHistogram.png +0 -0
- package/src/assets/iconfont/iconfont.js +1 -1
- package/src/components/ChartTypeSelector.vue +15 -67
- package/src/components/Header.vue +10 -7
- package/src/components/SidebarLeft.vue +381 -29
- package/src/components/sidebar/panels/LayoutThumbSvg.vue +82 -14
- package/src/composables/useSlides.ts +141 -3
- package/src/configs/layoutLibrary.ts +113 -0
- package/src/style.css +107 -17
- package/src/utils/pptxAnimationInjector.ts +36 -4
- package/src/assets/chart/baseMap.png +0 -0
- package/src/assets/chart/boxplot.png +0 -0
|
@@ -7,11 +7,18 @@ import lineChartImg from '../assets/chart/lineChart.png'
|
|
|
7
7
|
import basePieImg from '../assets/chart/basePie.png'
|
|
8
8
|
import circyChartImg from '../assets/chart/circyChart.png'
|
|
9
9
|
import roseCircyChartImg from '../assets/chart/roseCircyChart.png'
|
|
10
|
+
import roseChartImg from '../assets/chart/roseChart.png'
|
|
10
11
|
import baseHistogramImg from '../assets/chart/baseHistogram.png'
|
|
12
|
+
import perHistogramImg from '../assets/chart/perHistogram.png'
|
|
13
|
+
import stackHistogramImg from '../assets/chart/stackHistogram.png'
|
|
14
|
+
import compPolylineImg from '../assets/chart/compPolyline.png'
|
|
11
15
|
import baseAreaImg from '../assets/chart/baseArea.png'
|
|
16
|
+
import stackAreaImg from '../assets/chart/stackArea.png'
|
|
17
|
+
import stackBarImg from '../assets/chart/stackBar.png'
|
|
12
18
|
import bubbleChartImg from '../assets/chart/bubbleChart.png'
|
|
13
19
|
import radarChartImg from '../assets/chart/radarChart.png'
|
|
14
20
|
import otherLineChartImg from '../assets/chart/otherLineChart.png'
|
|
21
|
+
import otherLineImg from '../assets/chart/otherLine.png'
|
|
15
22
|
|
|
16
23
|
const props = defineProps<{
|
|
17
24
|
currentType?: string
|
|
@@ -149,12 +156,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
149
156
|
<div class="chart-card-item" :class="{ active: currentType === 'rose-donut' }" @click="handleSelect('rose-donut')">
|
|
150
157
|
<div class="chart-card-thumb">
|
|
151
158
|
<div class="chart-thumb-box">
|
|
152
|
-
<
|
|
153
|
-
<path d="M18 5 A13 13 0 0 1 31 18 L25 18 A7 7 0 0 0 18 11 Z" fill="#2563eb" />
|
|
154
|
-
<path d="M28 18 A10 10 0 0 1 18 28 L18 23 A5 5 0 0 0 23 18 Z" fill="#60a5fa" />
|
|
155
|
-
<path d="M18 26 A8 8 0 0 1 10 18 L14 18 A4 4 0 0 0 18 22 Z" fill="#93c5fd" />
|
|
156
|
-
<path d="M8 18 A10 10 0 0 1 18 8 L18 13 A5 5 0 0 0 13 18 Z" fill="#3b82f6" />
|
|
157
|
-
</svg>
|
|
159
|
+
<img :src="roseChartImg" alt="玫瑰环图" />
|
|
158
160
|
</div>
|
|
159
161
|
</div>
|
|
160
162
|
<span class="chart-card-name">玫瑰环图</span>
|
|
@@ -180,21 +182,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
180
182
|
<div class="chart-card-item" :class="{ active: currentType === 'percent-bar' }" @click="handleSelect('percent-bar')">
|
|
181
183
|
<div class="chart-card-thumb">
|
|
182
184
|
<div class="chart-thumb-box">
|
|
183
|
-
<
|
|
184
|
-
<rect x="5" y="7" width="6" height="5" fill="#93c5fd" />
|
|
185
|
-
<rect x="5" y="13" width="6" height="8" fill="#60a5fa" />
|
|
186
|
-
<rect x="5" y="22" width="6" height="7" fill="#2563eb" />
|
|
187
|
-
|
|
188
|
-
<rect x="15" y="7" width="6" height="9" fill="#93c5fd" />
|
|
189
|
-
<rect x="15" y="17" width="6" height="6" fill="#60a5fa" />
|
|
190
|
-
<rect x="15" y="24" width="6" height="5" fill="#2563eb" />
|
|
191
|
-
|
|
192
|
-
<rect x="25" y="7" width="6" height="6" fill="#93c5fd" />
|
|
193
|
-
<rect x="25" y="14" width="6" height="10" fill="#60a5fa" />
|
|
194
|
-
<rect x="25" y="25" width="6" height="4" fill="#2563eb" />
|
|
195
|
-
|
|
196
|
-
<line x1="2" y1="30" x2="34" y2="30" stroke="#cbd5e1" stroke-width="1.2" />
|
|
197
|
-
</svg>
|
|
185
|
+
<img :src="perHistogramImg" alt="百分比柱状图" />
|
|
198
186
|
</div>
|
|
199
187
|
</div>
|
|
200
188
|
<span class="chart-card-name">百分比柱状图</span>
|
|
@@ -204,18 +192,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
204
192
|
<div class="chart-card-item" :class="{ active: currentType === 'stacked-bar' }" @click="handleSelect('stacked-bar')">
|
|
205
193
|
<div class="chart-card-thumb">
|
|
206
194
|
<div class="chart-thumb-box">
|
|
207
|
-
<
|
|
208
|
-
<rect x="5" y="16" width="6" height="6" fill="#60a5fa" />
|
|
209
|
-
<rect x="5" y="23" width="6" height="6" fill="#2563eb" />
|
|
210
|
-
|
|
211
|
-
<rect x="15" y="8" width="6" height="11" fill="#60a5fa" />
|
|
212
|
-
<rect x="15" y="20" width="6" height="9" fill="#2563eb" />
|
|
213
|
-
|
|
214
|
-
<rect x="25" y="12" width="6" height="8" fill="#60a5fa" />
|
|
215
|
-
<rect x="25" y="21" width="6" height="8" fill="#2563eb" />
|
|
216
|
-
|
|
217
|
-
<line x1="2" y1="30" x2="34" y2="30" stroke="#cbd5e1" stroke-width="1.2" />
|
|
218
|
-
</svg>
|
|
195
|
+
<img :src="stackHistogramImg" alt="堆叠柱状图" />
|
|
219
196
|
</div>
|
|
220
197
|
</div>
|
|
221
198
|
<span class="chart-card-name">堆叠柱状图</span>
|
|
@@ -241,11 +218,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
241
218
|
<div class="chart-card-item" :class="{ active: currentType === 'compare-line' }" @click="handleSelect('compare-line')">
|
|
242
219
|
<div class="chart-card-thumb">
|
|
243
220
|
<div class="chart-thumb-box">
|
|
244
|
-
<
|
|
245
|
-
<path d="M5 23 L12 16 L20 21 L31 10" stroke="#2563eb" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
|
|
246
|
-
<path d="M5 19 L12 23 L20 14 L31 17" stroke="#93c5fd" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
|
|
247
|
-
<line x1="3" y1="28" x2="33" y2="28" stroke="#cbd5e1" stroke-width="1.2" />
|
|
248
|
-
</svg>
|
|
221
|
+
<img :src="compPolylineImg" alt="对比折线图" />
|
|
249
222
|
</div>
|
|
250
223
|
</div>
|
|
251
224
|
<span class="chart-card-name">对比折线图</span>
|
|
@@ -255,24 +228,11 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
255
228
|
<div class="chart-card-item" :class="{ active: currentType === 'step-line' }" @click="handleSelect('step-line')">
|
|
256
229
|
<div class="chart-card-thumb">
|
|
257
230
|
<div class="chart-thumb-box">
|
|
258
|
-
<
|
|
259
|
-
<path d="M5 22 L13 22 L21 16 L31 10" stroke="#2563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
260
|
-
<line x1="3" y1="28" x2="33" y2="28" stroke="#cbd5e1" stroke-width="1.2" />
|
|
261
|
-
</svg>
|
|
231
|
+
<img :src="otherLineChartImg" alt="其他折线图" />
|
|
262
232
|
</div>
|
|
263
233
|
</div>
|
|
264
234
|
<span class="chart-card-name">其他折线图</span>
|
|
265
235
|
</div>
|
|
266
|
-
|
|
267
|
-
<!-- 基础面积图 -->
|
|
268
|
-
<div class="chart-card-item" :class="{ active: currentType === 'area' }" @click="handleSelect('area')">
|
|
269
|
-
<div class="chart-card-thumb">
|
|
270
|
-
<div class="chart-thumb-box">
|
|
271
|
-
<img :src="baseAreaImg" alt="基础面积图" />
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
<span class="chart-card-name">基础面积图</span>
|
|
275
|
-
</div>
|
|
276
236
|
</div>
|
|
277
237
|
</div>
|
|
278
238
|
|
|
@@ -291,15 +251,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
291
251
|
<div class="chart-card-item" :class="{ active: currentType === 'stacked-horizontal-bar' }" @click="handleSelect('stacked-horizontal-bar')">
|
|
292
252
|
<div class="chart-card-thumb">
|
|
293
253
|
<div class="chart-thumb-box">
|
|
294
|
-
<
|
|
295
|
-
<rect x="7" y="6" width="10" height="5" fill="#2563eb" />
|
|
296
|
-
<rect x="18" y="6" width="8" height="5" fill="#60a5fa" />
|
|
297
|
-
<rect x="7" y="15" width="14" height="5" fill="#2563eb" />
|
|
298
|
-
<rect x="22" y="15" width="7" height="5" fill="#60a5fa" />
|
|
299
|
-
<rect x="7" y="24" width="8" height="5" fill="#2563eb" />
|
|
300
|
-
<rect x="16" y="24" width="11" height="5" fill="#60a5fa" />
|
|
301
|
-
<line x1="6" y1="4" x2="6" y2="31" stroke="#cbd5e1" stroke-width="1.2" />
|
|
302
|
-
</svg>
|
|
254
|
+
<img :src="stackBarImg" alt="堆叠条形图" />
|
|
303
255
|
</div>
|
|
304
256
|
</div>
|
|
305
257
|
<span class="chart-card-name">堆叠条形图</span>
|
|
@@ -322,11 +274,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
322
274
|
<div class="chart-card-item" :class="{ active: currentType === 'stacked-area' }" @click="handleSelect('stacked-area')">
|
|
323
275
|
<div class="chart-card-thumb">
|
|
324
276
|
<div class="chart-thumb-box">
|
|
325
|
-
<
|
|
326
|
-
<path d="M5 24 C10 24 15 14 20 16 C25 18 28 21 31 19 L31 29 L5 29 Z" fill="#60a5fa" opacity="0.5" />
|
|
327
|
-
<path d="M5 27 C10 27 15 20 20 22 C25 24 28 26 31 25 L31 29 L5 29 Z" fill="#2563eb" opacity="0.8" />
|
|
328
|
-
<line x1="3" y1="29" x2="33" y2="29" stroke="#cbd5e1" stroke-width="1.2" />
|
|
329
|
-
</svg>
|
|
277
|
+
<img :src="stackAreaImg" alt="堆叠面积图" />
|
|
330
278
|
</div>
|
|
331
279
|
</div>
|
|
332
280
|
<span class="chart-card-name">堆叠面积图</span>
|
|
@@ -371,7 +319,7 @@ function handleSelect(chartType: string, isMini = false) {
|
|
|
371
319
|
<div class="chart-card-item" @click="handleSelect('mini', true)">
|
|
372
320
|
<div class="chart-card-thumb">
|
|
373
321
|
<div class="chart-thumb-box">
|
|
374
|
-
<img :src="
|
|
322
|
+
<img :src="otherLineImg" alt="迷你图" style="opacity: 0.6;" />
|
|
375
323
|
</div>
|
|
376
324
|
</div>
|
|
377
325
|
<span class="chart-card-name">迷你图 (暂未开放)</span>
|
|
@@ -7443,7 +7443,7 @@ const importPptxArrayBuffer = async (buffer: ArrayBuffer, fileName?: string): Pr
|
|
|
7443
7443
|
layoutGeomMap.set(`../slideLayouts/${shortName}`, phMap)
|
|
7444
7444
|
}
|
|
7445
7445
|
|
|
7446
|
-
const slideFiles = Object.keys(zip.files).filter(k => k.startsWith('ppt/slides/slide') && !k.includes('_rels') && !zip.files[k].dir)
|
|
7446
|
+
const slideFiles = Object.keys(zip.files).filter(k => k.startsWith('ppt/slides/slide') && !k.includes('_rels') && !zip.files[k].dir && Boolean(zip.files[k.replace('ppt/slides/slide', 'ppt/slides/_rels/slide') + '.rels']))
|
|
7447
7447
|
slideFiles.sort(sortSlideXml)
|
|
7448
7448
|
|
|
7449
7449
|
for (let i = 0; i < slideFiles.length; i++) {
|
|
@@ -7983,8 +7983,8 @@ defineExpose({
|
|
|
7983
7983
|
<!-- Presentation Mode Split Button -->
|
|
7984
7984
|
<div v-if="!isMasterEditingView" class="presentation-split-btn">
|
|
7985
7985
|
<button class="presentation-main-btn" @click="startFromBeginning" title="从头开始放映 (F5)">
|
|
7986
|
-
<svg viewBox="0 0 1024 1024" width="15" height="15" fill="currentColor" style="flex-shrink: 0;">
|
|
7987
|
-
<use xlink:href="#icon-ppt-huandengpianfangying"></use>
|
|
7986
|
+
<svg viewBox="0 0 1024 1024" width="15" height="15" fill="currentColor" style="flex-shrink: 0;">
|
|
7987
|
+
<use xlink:href="#icon-ppt-huandengpianfangying-copy"></use>
|
|
7988
7988
|
</svg>
|
|
7989
7989
|
<span>幻灯片放映</span>
|
|
7990
7990
|
</button>
|
|
@@ -8400,10 +8400,13 @@ defineExpose({
|
|
|
8400
8400
|
font-weight: 500 !important;
|
|
8401
8401
|
}
|
|
8402
8402
|
|
|
8403
|
-
.presentation-main-btn svg
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8403
|
+
.presentation-main-btn svg,
|
|
8404
|
+
.presentation-main-btn .iconfont {
|
|
8405
|
+
fill: #ffffff !important;
|
|
8406
|
+
color: #ffffff !important;
|
|
8407
|
+
font-size: 15px !important;
|
|
8408
|
+
line-height: 1 !important;
|
|
8409
|
+
flex-shrink: 0;
|
|
8407
8410
|
}
|
|
8408
8411
|
|
|
8409
8412
|
.presentation-main-btn:hover {
|