jvs-ppt-ui 0.0.34 → 0.0.36
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.es.js +22847 -22658
- package/dist/lib/jvs-ppt-ui.umd.js +117 -117
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CanvasArea.vue +34 -15
- package/src/components/PresentationGroupChild.vue +11 -1
- package/src/components/PresentationMode.vue +10 -1
- package/src/components/SidebarLeft.vue +3354 -3212
- package/src/components/SidebarRight.vue +39 -1
- package/src/components/canvas/elements/CanvasTextElement.vue +4 -0
- package/src/components/sidebar/panels/LayoutThumbSvg.vue +130 -57
- package/src/components/sidebar/panels/SidebarChartFormatPanel.vue +676 -3
- package/src/components/sidebar/panels/SidebarDesignPanel.vue +7 -14
- package/src/composables/canvas/useCanvasContextMenu.ts +1 -1
- package/src/composables/sidebar/useSidebarChart.ts +88 -39
- package/src/composables/sidebar/useSidebarDesign.ts +2 -1
- package/src/composables/sidebar/useSidebarElementTransform.ts +1 -1
- package/src/composables/useSlides.ts +320 -72
- package/src/configs/slideTemplates.ts +7 -3
- package/src/style.css +3 -3
- package/src/utils/canvas/elementStyles.ts +11 -1
|
@@ -280,8 +280,8 @@ const asyncPitchDeckSlides = [
|
|
|
280
280
|
showMasterElements: false,
|
|
281
281
|
elements: [
|
|
282
282
|
makeRectEl('a1-line', 96, 152, 168, 3, '#A78BFA'),
|
|
283
|
-
makeTextEl('a1-comp', '
|
|
284
|
-
makeTextEl('a1-title', '
|
|
283
|
+
makeTextEl('a1-comp', '公司名称', 96, 168, 360, 40, { fontSize: 24, color: '#18181B' }),
|
|
284
|
+
makeTextEl('a1-title', '提案表', 96, 360, 480, 240, { fontSize: 96, color: '#111827', fontWeight: 'bold', lineHeight: 1.05 }),
|
|
285
285
|
// Right phone mockup & floating purple card (matching user screenshot)
|
|
286
286
|
makeRectEl('a1-phone-border', 780, 120, 360, 580, '#111827', { borderRadius: 44 }),
|
|
287
287
|
makeRectEl('a1-phone-screen', 794, 134, 332, 552, '#FFFFFF', { borderRadius: 34 }),
|
|
@@ -686,7 +686,7 @@ const defaultBuiltinTemplateList: SlideTemplateItem[] = [
|
|
|
686
686
|
name: 'Remote Learning Lesson Plan',
|
|
687
687
|
fileName: 'Remote Learning Lesson Plan.json',
|
|
688
688
|
category: 'Education',
|
|
689
|
-
slidesCount:
|
|
689
|
+
slidesCount: 29,
|
|
690
690
|
jsonUrl: '/templates/' + encodeURIComponent('Remote Learning Lesson Plan.json'),
|
|
691
691
|
slides: [remoteLearningSlides[0]],
|
|
692
692
|
loaded: false
|
|
@@ -733,6 +733,10 @@ export function rewriteSlideTemplateAssetUrls(slide: any, baseUrl?: string): any
|
|
|
733
733
|
el.content = replaceUrl(el.content)
|
|
734
734
|
}
|
|
735
735
|
if (typeof el.poster === 'string') el.poster = replaceUrl(el.poster)
|
|
736
|
+
if (typeof el.pattern === 'string') el.pattern = replaceUrl(el.pattern)
|
|
737
|
+
if (el.style && typeof el.style.pattern === 'string') {
|
|
738
|
+
el.style.pattern = replaceUrl(el.style.pattern)
|
|
739
|
+
}
|
|
736
740
|
if (el.style && typeof el.style.backgroundImage === 'string') {
|
|
737
741
|
el.style.backgroundImage = replaceUrl(el.style.backgroundImage)
|
|
738
742
|
}
|
package/src/style.css
CHANGED
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
font-style: italic !important;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
/* 强行重置外部宿主全局 button
|
|
137
|
-
.jvs-ppt-editor-root button:not(.el-button) {
|
|
136
|
+
/* 强行重置外部宿主全局 button 样式侵入(使用 :where 将权重降至 (0,0,1),彻底避免压过任何单类名 (0,1,0) 或 scoped (0,2,0) 按钮样式) */
|
|
137
|
+
:where(.jvs-ppt-editor-root) button:where(:not(.el-button)) {
|
|
138
138
|
font-family: inherit;
|
|
139
139
|
font-size: inherit;
|
|
140
140
|
line-height: normal;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* 强行重置外部宿主全局 button 样式侵入(防 text-indent, line-height, text-transform, pseudo elements) */
|
|
164
|
-
.jvs-ppt-editor-root button:not(.el-button) {
|
|
164
|
+
:where(.jvs-ppt-editor-root) button:where(:not(.el-button)) {
|
|
165
165
|
box-sizing: border-box !important;
|
|
166
166
|
text-transform: none !important;
|
|
167
167
|
text-indent: 0 !important;
|
|
@@ -244,7 +244,17 @@ export function getElementPattern(el: any): string | undefined {
|
|
|
244
244
|
if (!pattern || typeof pattern !== 'string') return undefined
|
|
245
245
|
const str = pattern.trim()
|
|
246
246
|
if (!str) return undefined
|
|
247
|
-
if (
|
|
247
|
+
if (
|
|
248
|
+
str.startsWith('data:') ||
|
|
249
|
+
str.startsWith('http:') ||
|
|
250
|
+
str.startsWith('https:') ||
|
|
251
|
+
str.startsWith('blob:') ||
|
|
252
|
+
str.startsWith('url(') ||
|
|
253
|
+
str.startsWith('/') ||
|
|
254
|
+
str.startsWith('./') ||
|
|
255
|
+
str.startsWith('../') ||
|
|
256
|
+
/\.(png|jpe?g|gif|webp|svg|bmp|avif|ico)([?#].*)?$/i.test(str)
|
|
257
|
+
) {
|
|
248
258
|
return str
|
|
249
259
|
}
|
|
250
260
|
return `data:image/png;base64,${str}`
|