jvs-ppt-ui 0.0.36 → 0.0.38
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 +80182 -21671
- 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/CanvasArea.vue +53 -14
- package/src/components/ChartTypeSelector.vue +15 -67
- package/src/components/Header.vue +10 -7
- package/src/components/SidebarLeft.vue +411 -35
- package/src/components/sidebar/common/SidebarPositionGroup.vue +199 -33
- package/src/components/sidebar/panels/LayoutThumbSvg.vue +82 -14
- package/src/components/sidebar/panels/SidebarImageFormatPanel.vue +37 -33
- package/src/composables/canvas/useCanvasCrop.ts +25 -2
- package/src/composables/sidebar/useSidebarElementTransform.ts +13 -7
- 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
|
@@ -290,6 +290,7 @@ const {
|
|
|
290
290
|
|
|
291
291
|
// Crop Composable
|
|
292
292
|
const {
|
|
293
|
+
isCropping,
|
|
293
294
|
startInteractiveCrop,
|
|
294
295
|
handleCropDrag,
|
|
295
296
|
stopCropDrag,
|
|
@@ -299,7 +300,10 @@ const {
|
|
|
299
300
|
pauseHistory,
|
|
300
301
|
getElementPixels: (el: any) => getElementPixels(el),
|
|
301
302
|
findParentGroup: (id: any) => findParentGroup(id),
|
|
302
|
-
addHistorySnapshot: () => addHistorySnapshot()
|
|
303
|
+
addHistorySnapshot: () => addHistorySnapshot(),
|
|
304
|
+
onCropStop: () => {
|
|
305
|
+
justSelectedElement = true
|
|
306
|
+
}
|
|
303
307
|
})
|
|
304
308
|
|
|
305
309
|
// Element Map and Group helpers
|
|
@@ -836,6 +840,7 @@ const isInteracting = computed(() => {
|
|
|
836
840
|
isDraggingChild.value ||
|
|
837
841
|
isResizing.value ||
|
|
838
842
|
isRotating.value ||
|
|
843
|
+
isCropping.value ||
|
|
839
844
|
isDraggingLine.value ||
|
|
840
845
|
isDraggingLineControlPoint.value ||
|
|
841
846
|
isPanningCanvas.value
|
|
@@ -1160,21 +1165,48 @@ const getQuickToolbarAnchor = (el: any) => {
|
|
|
1160
1165
|
return { box, extraTableOffset }
|
|
1161
1166
|
}
|
|
1162
1167
|
|
|
1163
|
-
// 将工具栏物理坐标(left/top)
|
|
1168
|
+
// 将工具栏物理坐标(left/top)钳制在幻灯片及画布可视区域内,防止超出可视区顶部被裁剪或拖出画布无法拖回
|
|
1164
1169
|
const clampQuickToolbarPhysical = (left: number, top: number) => {
|
|
1165
1170
|
const scale = (zoomRatio.value || 100) / 100
|
|
1166
1171
|
const slideW = (logicalWidth.value || 0) * scale
|
|
1167
1172
|
const slideH = (logicalHeight.value || 0) * scale
|
|
1168
1173
|
const toolbarEl = document.querySelector('.floating-quick-toolbar') as HTMLElement | null
|
|
1169
|
-
const halfW = (toolbarEl?.offsetWidth ||
|
|
1170
|
-
const toolbarH = toolbarEl?.offsetHeight ||
|
|
1174
|
+
const halfW = (toolbarEl?.offsetWidth || 220) / 2 // translateX(-50%),left 为中心点
|
|
1175
|
+
const toolbarH = toolbarEl?.offsetHeight || 42
|
|
1176
|
+
|
|
1177
|
+
let minLeft = halfW
|
|
1178
|
+
let maxLeft = Math.max(halfW, slideW - halfW)
|
|
1179
|
+
let minTop = -56
|
|
1180
|
+
let maxTop = Math.max(0, slideH - toolbarH)
|
|
1171
1181
|
|
|
1172
|
-
const
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1182
|
+
const wrapperEl = document.querySelector('.canvas-slide-wrapper') as HTMLElement | null
|
|
1183
|
+
const zoomContainerEl = document.querySelector('.slide-zoom-container') as HTMLElement | null
|
|
1184
|
+
if (wrapperEl && zoomContainerEl) {
|
|
1185
|
+
const wrapperRect = wrapperEl.getBoundingClientRect()
|
|
1186
|
+
const zoomRect = zoomContainerEl.getBoundingClientRect()
|
|
1187
|
+
// 距离 .canvas-slide-wrapper 可视边界保留至少 8px 安全间距,防止顶部/四周溢出被裁剪
|
|
1188
|
+
const visibleMinTop = (wrapperRect.top - zoomRect.top) + 8
|
|
1189
|
+
const visibleMaxTop = (wrapperRect.bottom - zoomRect.top) - toolbarH - 8
|
|
1190
|
+
const visibleMinLeft = (wrapperRect.left - zoomRect.left) + halfW + 8
|
|
1191
|
+
const visibleMaxLeft = (wrapperRect.right - zoomRect.left) - halfW - 8
|
|
1192
|
+
|
|
1193
|
+
minTop = Math.max(minTop, visibleMinTop)
|
|
1194
|
+
if (visibleMaxTop >= minTop) {
|
|
1195
|
+
maxTop = Math.min(maxTop, visibleMaxTop)
|
|
1196
|
+
}
|
|
1197
|
+
minLeft = Math.max(minLeft, visibleMinLeft)
|
|
1198
|
+
if (visibleMaxLeft >= minLeft) {
|
|
1199
|
+
maxLeft = Math.min(maxLeft, visibleMaxLeft)
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
const clampedLeft = Math.min(Math.max(left, minLeft), Math.max(minLeft, maxLeft))
|
|
1204
|
+
const clampedTop = Math.min(Math.max(top, minTop), Math.max(minTop, maxTop))
|
|
1205
|
+
return { left: Math.round(clampedLeft), top: Math.round(clampedTop) }
|
|
1175
1206
|
}
|
|
1176
1207
|
|
|
1177
1208
|
const getFloatingQuickToolbarStyle = (el: any) => {
|
|
1209
|
+
void selectionVersion.value
|
|
1178
1210
|
if (isDragging.value || isCanvasDragging.value) {
|
|
1179
1211
|
return { display: 'none' } as any
|
|
1180
1212
|
}
|
|
@@ -1602,6 +1634,9 @@ watch([selectedElementId, isEditingText], () => {
|
|
|
1602
1634
|
savedSelectionRange = null
|
|
1603
1635
|
}
|
|
1604
1636
|
selectionVersion.value++
|
|
1637
|
+
nextTick(() => {
|
|
1638
|
+
selectionVersion.value++
|
|
1639
|
+
})
|
|
1605
1640
|
})
|
|
1606
1641
|
|
|
1607
1642
|
watch(selectedElementId, (newId, oldId) => {
|
|
@@ -1964,6 +1999,7 @@ function handleWindowMouseDown(e: MouseEvent) {
|
|
|
1964
1999
|
if (
|
|
1965
2000
|
target.closest('.resize-handle') ||
|
|
1966
2001
|
target.closest('.rotate-handle') ||
|
|
2002
|
+
target.closest('.crop-handle') ||
|
|
1967
2003
|
target.closest('.line-point-handle') ||
|
|
1968
2004
|
target.closest('.line-control-handle') ||
|
|
1969
2005
|
target.closest('.table-edit-mask') ||
|
|
@@ -2005,7 +2041,10 @@ function handleWindowMouseDown(e: MouseEvent) {
|
|
|
2005
2041
|
return
|
|
2006
2042
|
}
|
|
2007
2043
|
|
|
2008
|
-
// Deselect active elements
|
|
2044
|
+
// Deselect active elements (blur any active right-sidebar input first so its @blur commits while selectedElement is still active)
|
|
2045
|
+
if (typeof document !== 'undefined' && document.activeElement instanceof HTMLElement && document.activeElement.closest('.sidebar-right')) {
|
|
2046
|
+
document.activeElement.blur()
|
|
2047
|
+
}
|
|
2009
2048
|
if (isEditingText.value) {
|
|
2010
2049
|
checkAndExitEditText(undefined, true)
|
|
2011
2050
|
}
|
|
@@ -8923,12 +8962,12 @@ async function handleGlobalPaste(e: ClipboardEvent) {
|
|
|
8923
8962
|
:selected-element-keypoints="selectedElementKeypoints"
|
|
8924
8963
|
:get-resize-cursor="getResizeCursor"
|
|
8925
8964
|
:zoom-ratio="zoomRatio"
|
|
8926
|
-
@resize-start="(ev, el, handle) => startResize(ev, el, handle)"
|
|
8927
|
-
@rotate-start="(ev, el) => startRotate(ev, el)"
|
|
8928
|
-
@keypoint-drag-start="(ev, el, idx) => startDragKeypoint(ev, el, idx)"
|
|
8929
|
-
@line-point-drag-start="(ev, el, pt) => startDragLinePoint(ev, el, pt)"
|
|
8930
|
-
@line-control-point-drag-start="(ev, el, t) => startDragLineControlPoint(ev, el, t)"
|
|
8931
|
-
@crop-start="(ev, el, handle) => startInteractiveCrop(ev, el, handle)"
|
|
8965
|
+
@resize-start="(ev, el, handle) => { justSelectedElement = true; startResize(ev, el, handle) }"
|
|
8966
|
+
@rotate-start="(ev, el) => { justSelectedElement = true; startRotate(ev, el) }"
|
|
8967
|
+
@keypoint-drag-start="(ev, el, idx) => { justSelectedElement = true; startDragKeypoint(ev, el, idx) }"
|
|
8968
|
+
@line-point-drag-start="(ev, el, pt) => { justSelectedElement = true; startDragLinePoint(ev, el, pt) }"
|
|
8969
|
+
@line-control-point-drag-start="(ev, el, t) => { justSelectedElement = true; startDragLineControlPoint(ev, el, t) }"
|
|
8970
|
+
@crop-start="(ev, el, handle) => { justSelectedElement = true; startInteractiveCrop(ev, el, handle) }"
|
|
8932
8971
|
/>
|
|
8933
8972
|
</div>
|
|
8934
8973
|
|
|
@@ -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 {
|