jvs-ppt-ui 0.0.35 → 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 +81545 -23219
- package/dist/lib/jvs-ppt-ui.umd.js +113 -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/CanvasArea.vue +26 -13
- package/src/components/ChartTypeSelector.vue +15 -67
- package/src/components/Header.vue +10 -7
- package/src/components/SidebarLeft.vue +382 -30
- package/src/components/SidebarRight.vue +39 -1
- package/src/components/sidebar/panels/LayoutThumbSvg.vue +82 -14
- package/src/components/sidebar/panels/SidebarChartFormatPanel.vue +676 -3
- package/src/composables/sidebar/useSidebarChart.ts +88 -39
- package/src/composables/useSlides.ts +245 -25
- 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
|
@@ -69,7 +69,7 @@ const {
|
|
|
69
69
|
showSearchPanel, showSelectionPanel, activeSearchTab, searchText, replaceText, isCaseSensitive, searchResults, currentResultIndex,
|
|
70
70
|
nextSearchMatch, prevSearchMatch, replaceCurrent, replaceAll, formulaDialogVisible, currentEditingFormulaEl, renderLatexToSvg,
|
|
71
71
|
editingElementId, symbolPanelVisible, addElement, isPresenting, startPresentation, clipboard, slideClipboard, pasteSlideData, pasteElementsData, copySelectedElements, handleUnifiedPaste, shapeFormatPainter,
|
|
72
|
-
activeTab: activeTabRaw, isOpenedFromFloatToolbar, formatedAnimations, logicalWidth, logicalHeight, pauseHistory, isCanvasDragging, activeSlideVersion, addHistorySnapshot, normalizeHtmlFontFamily,
|
|
72
|
+
activeTab: activeTabRaw, isOpenedFromFloatToolbar, formatedAnimations, logicalWidth, logicalHeight, isUndoingRedoing, pauseHistory, isCanvasDragging, activeSlideVersion, addHistorySnapshot, normalizeHtmlFontFamily,
|
|
73
73
|
globalThemeColor, globalFontColor, globalFontFamily, globalBgColor, getActiveSlideThemeRecipe, croppingElementId,
|
|
74
74
|
isMasterEditingView, slideMasters, activeMasterId, activeLayoutId, activeLayout, sortSlideElements,
|
|
75
75
|
selectedSlideIndexes, isMouseOverSlideList, selectAllSlides, deleteSelectedSlides, copySelectedSlides, cutSelectedSlides, duplicateSelectedSlides, duplicateSelectedElements,
|
|
@@ -1294,14 +1294,17 @@ watch(
|
|
|
1294
1294
|
selectedElement.value?.autoFit?.type
|
|
1295
1295
|
],
|
|
1296
1296
|
() => {
|
|
1297
|
+
if (isUndoingRedoing.value) return
|
|
1297
1298
|
const el = selectedElement.value
|
|
1298
1299
|
if (!el) return
|
|
1299
1300
|
if ((el.type === 'text' || el.type === 'shape') && el.autoFit?.type === 'text') {
|
|
1300
1301
|
nextTick(() => {
|
|
1302
|
+
if (isUndoingRedoing.value) return
|
|
1301
1303
|
updateTextFontScale(el)
|
|
1302
1304
|
})
|
|
1303
1305
|
} else if (el.type === 'shape' && el.autoFit?.type === 'shape') {
|
|
1304
1306
|
nextTick(() => {
|
|
1307
|
+
if (isUndoingRedoing.value) return
|
|
1305
1308
|
syncShapeAutoFitHeight(el)
|
|
1306
1309
|
})
|
|
1307
1310
|
}
|
|
@@ -1602,11 +1605,17 @@ watch([selectedElementId, isEditingText], () => {
|
|
|
1602
1605
|
})
|
|
1603
1606
|
|
|
1604
1607
|
watch(selectedElementId, (newId, oldId) => {
|
|
1608
|
+
if (isUndoingRedoing.value) {
|
|
1609
|
+
isEditingText.value = false
|
|
1610
|
+
quickToolbarOffset.value = { x: 0, y: 0 }
|
|
1611
|
+
return
|
|
1612
|
+
}
|
|
1605
1613
|
if (oldId && newId !== oldId) {
|
|
1606
1614
|
const oldContainer = document.getElementById(`editable-${oldId}`)
|
|
1607
1615
|
if (oldContainer && activeSlide.value) {
|
|
1616
|
+
const wasEditing = isEditingText.value || Boolean(oldContainer.querySelector('td[contenteditable="true"]'))
|
|
1608
1617
|
const oldEl = activeSlide.value.elements.find((x: any) => x.id === oldId)
|
|
1609
|
-
if (oldEl) {
|
|
1618
|
+
if (oldEl && wasEditing) {
|
|
1610
1619
|
let htmlVal = oldContainer.innerHTML
|
|
1611
1620
|
if (oldEl.style) {
|
|
1612
1621
|
if (oldEl.style.fontWeight === 'bold') htmlVal = htmlVal.replace(/font-weight:\s*normal/gi, '')
|
|
@@ -1997,6 +2006,9 @@ function handleWindowMouseDown(e: MouseEvent) {
|
|
|
1997
2006
|
}
|
|
1998
2007
|
|
|
1999
2008
|
// Deselect active elements
|
|
2009
|
+
if (isEditingText.value) {
|
|
2010
|
+
checkAndExitEditText(undefined, true)
|
|
2011
|
+
}
|
|
2000
2012
|
isEditingText.value = false
|
|
2001
2013
|
activePlaceholderMenuElId.value = null
|
|
2002
2014
|
selectedElementId.value = null
|
|
@@ -2081,6 +2093,9 @@ function handleDeselect(e?: MouseEvent) {
|
|
|
2081
2093
|
activeTool.value = null
|
|
2082
2094
|
return
|
|
2083
2095
|
}
|
|
2096
|
+
if (isEditingText.value) {
|
|
2097
|
+
checkAndExitEditText(undefined, true)
|
|
2098
|
+
}
|
|
2084
2099
|
isEditingText.value = false
|
|
2085
2100
|
selectedElementId.value = null
|
|
2086
2101
|
selectedElementIds.value = []
|
|
@@ -4526,9 +4541,6 @@ function getElementWidthHeight(el: any): { width: number; height: number } {
|
|
|
4526
4541
|
const tableEl = dom?.querySelector('table')
|
|
4527
4542
|
if (tableEl && tableEl.offsetHeight > 0) {
|
|
4528
4543
|
height = Math.max(height, tableEl.offsetHeight)
|
|
4529
|
-
if (el.height && height > el.height) {
|
|
4530
|
-
el.height = height
|
|
4531
|
-
}
|
|
4532
4544
|
}
|
|
4533
4545
|
}
|
|
4534
4546
|
|
|
@@ -6968,22 +6980,23 @@ function cleanupEmptyTextboxes() {
|
|
|
6968
6980
|
if (!activeSlide.value || !activeSlide.value.elements) return
|
|
6969
6981
|
const toRemove: string[] = []
|
|
6970
6982
|
activeSlide.value.elements.forEach((el: any) => {
|
|
6971
|
-
//
|
|
6983
|
+
// 核心保护:只有新建且从未输入过的临时文本框,才检查并清理,绝不覆写或删除历史已有元素!
|
|
6984
|
+
if (!el.__isTemporaryNew) return
|
|
6985
|
+
// Skip element if currently being edited by user
|
|
6986
|
+
if (isEditingText.value && (el.id === selectedElementId.value || el.id === editingElementId.value)) {
|
|
6987
|
+
return
|
|
6988
|
+
}
|
|
6972
6989
|
const container = document.getElementById(`editable-${el.id}`)
|
|
6973
6990
|
if (container) {
|
|
6974
6991
|
const domText = (container.innerText || container.textContent || '').replace(/\u200B/g, '').trim()
|
|
6975
|
-
if (domText.length > 0) {
|
|
6992
|
+
if (domText.length > 0 && !isTextEmptyOrPlaceholderPrompt(domText)) {
|
|
6976
6993
|
if (el.type === 'shape') el.text = container.innerHTML
|
|
6977
6994
|
else el.content = container.innerHTML
|
|
6995
|
+
delete el.__isTemporaryNew
|
|
6978
6996
|
return
|
|
6979
6997
|
}
|
|
6980
6998
|
}
|
|
6981
|
-
|
|
6982
|
-
if (isEditingText.value && (el.id === selectedElementId.value || el.id === editingElementId.value)) {
|
|
6983
|
-
return
|
|
6984
|
-
}
|
|
6985
|
-
// 核心保护:只有新建且从未输入过的临时文本框,才在内容为空时自动清理,绝不删除历史已有文本框!
|
|
6986
|
-
if (el.__isTemporaryNew && el.type === 'text' && !isMasterOrPlaceholder(el) && !el.content?.includes('<table') && !el.latex) {
|
|
6999
|
+
if (el.type === 'text' && !isMasterOrPlaceholder(el) && !el.content?.includes('<table') && !el.latex) {
|
|
6987
7000
|
if (isTextEmptyOrPlaceholderPrompt(el.content || '')) {
|
|
6988
7001
|
toRemove.push(el.id)
|
|
6989
7002
|
}
|
|
@@ -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 {
|