lt-ppt 1.0.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/LICENSE +661 -0
- package/README.md +31 -0
- package/dist/InnerApp-Cw-WNV5d.js +96942 -0
- package/dist/favicon.ico +0 -0
- package/dist/imgs/template_1.webp +0 -0
- package/dist/imgs/template_2.webp +0 -0
- package/dist/imgs/template_3.webp +0 -0
- package/dist/imgs/template_4.webp +0 -0
- package/dist/imgs/template_5.webp +0 -0
- package/dist/imgs/template_6.webp +0 -0
- package/dist/imgs/template_7.webp +0 -0
- package/dist/imgs/template_8.webp +0 -0
- package/dist/index-Bp6Exf0_.js +166 -0
- package/dist/index-lXMdfvq4.js +8 -0
- package/dist/lib-CcU3sBPZ.js +1907 -0
- package/dist/logo.png +0 -0
- package/dist/lt-ppt.css +7 -0
- package/dist/lt-ppt.es.js +5 -0
- package/dist/lt-ppt.umd.js +461 -0
- package/dist/mocks/AIPPT.json +475 -0
- package/dist/mocks/AIPPT_Outline.md +69 -0
- package/dist/mocks/imgs.json +482 -0
- package/dist/mocks/slides.json +184 -0
- package/dist/mocks/template_1.json +1 -0
- package/dist/mocks/template_2.json +1 -0
- package/dist/mocks/template_3.json +1 -0
- package/dist/mocks/template_4.json +1 -0
- package/dist/mocks/template_5.json +1 -0
- package/dist/mocks/template_6.json +1 -0
- package/dist/mocks/template_7.json +1 -0
- package/dist/mocks/template_8.json +1 -0
- package/dist/pinia-CVat9nJz.js +4417 -0
- package/dist/screen-B0Lx73x7.js +12797 -0
- package/dist/tippy.esm-Dos-q4Dz.js +1711 -0
- package/dist/types/lib.d.ts +2 -0
- package/dist/types/src/InnerApp.vue.d.ts +10 -0
- package/dist/types/src/LtPPT.vue.d.ts +22 -0
- package/dist/types/src/components/Button.vue.d.ts +28 -0
- package/dist/types/src/components/ButtonGroup.vue.d.ts +16 -0
- package/dist/types/src/components/Checkbox.vue.d.ts +19 -0
- package/dist/types/src/components/CheckboxButton.vue.d.ts +16 -0
- package/dist/types/src/components/ColorButton.vue.d.ts +5 -0
- package/dist/types/src/components/ColorListButton.vue.d.ts +5 -0
- package/dist/types/src/components/ColorPicker/Alpha.vue.d.ts +12 -0
- package/dist/types/src/components/ColorPicker/Checkboard.vue.d.ts +11 -0
- package/dist/types/src/components/ColorPicker/EditableInput.vue.d.ts +10 -0
- package/dist/types/src/components/ColorPicker/Hue.vue.d.ts +13 -0
- package/dist/types/src/components/ColorPicker/Saturation.vue.d.ts +13 -0
- package/dist/types/src/components/ColorPicker/index.vue.d.ts +11 -0
- package/dist/types/src/components/Contextmenu/MenuContent.vue.d.ts +7 -0
- package/dist/types/src/components/Contextmenu/index.vue.d.ts +9 -0
- package/dist/types/src/components/Contextmenu/types.d.ts +13 -0
- package/dist/types/src/components/Divider.vue.d.ts +9 -0
- package/dist/types/src/components/Drawer.vue.d.ts +24 -0
- package/dist/types/src/components/FileInput.vue.d.ts +20 -0
- package/dist/types/src/components/FullscreenSpin.vue.d.ts +11 -0
- package/dist/types/src/components/GradientBar.vue.d.ts +15 -0
- package/dist/types/src/components/ImageWaterfallViewer.vue.d.ts +35 -0
- package/dist/types/src/components/Input.vue.d.ts +41 -0
- package/dist/types/src/components/LaTeXEditor/FormulaContent.vue.d.ts +7 -0
- package/dist/types/src/components/LaTeXEditor/SymbolContent.vue.d.ts +5 -0
- package/dist/types/src/components/LaTeXEditor/hfmath.d.ts +2 -0
- package/dist/types/src/components/LaTeXEditor/index.vue.d.ts +73 -0
- package/dist/types/src/components/LanguageSwitch.vue.d.ts +2 -0
- package/dist/types/src/components/Message.vue.d.ts +23 -0
- package/dist/types/src/components/Modal.vue.d.ts +32 -0
- package/dist/types/src/components/MoveablePanel.vue.d.ts +41 -0
- package/dist/types/src/components/NumberInput.vue.d.ts +38 -0
- package/dist/types/src/components/OutlineEditor.vue.d.ts +9 -0
- package/dist/types/src/components/Popover.vue.d.ts +38 -0
- package/dist/types/src/components/PopoverMenuItem.vue.d.ts +18 -0
- package/dist/types/src/components/RadioButton.vue.d.ts +15 -0
- package/dist/types/src/components/RadioGroup.vue.d.ts +19 -0
- package/dist/types/src/components/Select.vue.d.ts +143 -0
- package/dist/types/src/components/SelectCustom.vue.d.ts +20 -0
- package/dist/types/src/components/SelectGroup.vue.d.ts +9 -0
- package/dist/types/src/components/Slider.vue.d.ts +22 -0
- package/dist/types/src/components/Switch.vue.d.ts +12 -0
- package/dist/types/src/components/Tabs.vue.d.ts +26 -0
- package/dist/types/src/components/TextArea.vue.d.ts +29 -0
- package/dist/types/src/components/TextColorButton.vue.d.ts +12 -0
- package/dist/types/src/components/WritingBoard.vue.d.ts +32 -0
- package/dist/types/src/configs/animation.d.ts +34 -0
- package/dist/types/src/configs/chart.d.ts +4 -0
- package/dist/types/src/configs/element.d.ts +2 -0
- package/dist/types/src/configs/font.d.ts +4 -0
- package/dist/types/src/configs/hotkey.d.ts +41 -0
- package/dist/types/src/configs/imageClip.d.ts +25 -0
- package/dist/types/src/configs/latex.d.ts +11 -0
- package/dist/types/src/configs/lines.d.ts +16 -0
- package/dist/types/src/configs/mime.d.ts +1 -0
- package/dist/types/src/configs/shapes.d.ts +26 -0
- package/dist/types/src/configs/storage.d.ts +1 -0
- package/dist/types/src/configs/symbol.d.ts +5 -0
- package/dist/types/src/configs/theme.d.ts +11 -0
- package/dist/types/src/directive/clickOutside.d.ts +3 -0
- package/dist/types/src/directive/contextmenu.d.ts +3 -0
- package/dist/types/src/directive/index.d.ts +5 -0
- package/dist/types/src/directive/loading.d.ts +3 -0
- package/dist/types/src/directive/tooltip.d.ts +3 -0
- package/dist/types/src/hooks/useAIPPT.d.ts +14 -0
- package/dist/types/src/hooks/useAddSlidesOrElements.d.ts +6 -0
- package/dist/types/src/hooks/useAlignActiveElement.d.ts +5 -0
- package/dist/types/src/hooks/useAlignElementToCanvas.d.ts +5 -0
- package/dist/types/src/hooks/useCombineElement.d.ts +6 -0
- package/dist/types/src/hooks/useCopyAndPasteElement.d.ts +7 -0
- package/dist/types/src/hooks/useCreateElement.d.ts +36 -0
- package/dist/types/src/hooks/useDeleteElement.d.ts +5 -0
- package/dist/types/src/hooks/useExport.d.ts +11 -0
- package/dist/types/src/hooks/useGlobalHotkey.d.ts +2 -0
- package/dist/types/src/hooks/useHideElement.d.ts +6 -0
- package/dist/types/src/hooks/useHistorySnapshot.d.ts +6 -0
- package/dist/types/src/hooks/useImport.d.ts +15 -0
- package/dist/types/src/hooks/useLink.d.ts +6 -0
- package/dist/types/src/hooks/useLoadSlides.d.ts +4 -0
- package/dist/types/src/hooks/useLockElement.d.ts +6 -0
- package/dist/types/src/hooks/useMoveElement.d.ts +4 -0
- package/dist/types/src/hooks/useOrderElement.d.ts +6 -0
- package/dist/types/src/hooks/usePasteDataTransfer.d.ts +7 -0
- package/dist/types/src/hooks/usePasteEvent.d.ts +2 -0
- package/dist/types/src/hooks/usePasteTextClipboardData.d.ts +8 -0
- package/dist/types/src/hooks/useScaleCanvas.d.ts +7 -0
- package/dist/types/src/hooks/useScreening.d.ts +6 -0
- package/dist/types/src/hooks/useSearch.d.ts +44 -0
- package/dist/types/src/hooks/useSectionHandler.d.ts +8 -0
- package/dist/types/src/hooks/useSelectElement.d.ts +5 -0
- package/dist/types/src/hooks/useShapeFormatPainter.d.ts +4 -0
- package/dist/types/src/hooks/useSlideBackgroundStyle.d.ts +21 -0
- package/dist/types/src/hooks/useSlideHandler.d.ts +16 -0
- package/dist/types/src/hooks/useSlideTheme.d.ts +14 -0
- package/dist/types/src/hooks/useTextFormatPainter.d.ts +4 -0
- package/dist/types/src/hooks/useUniformDisplayElement.d.ts +6 -0
- package/dist/types/src/lib.d.ts +5 -0
- package/dist/types/src/locales/en.d.ts +859 -0
- package/dist/types/src/locales/index.d.ts +1753 -0
- package/dist/types/src/locales/zh-CN.d.ts +887 -0
- package/dist/types/src/services/axios.d.ts +2 -0
- package/dist/types/src/services/fetch.d.ts +2 -0
- package/dist/types/src/services/index.d.ts +36 -0
- package/dist/types/src/store/index.d.ts +6 -0
- package/dist/types/src/store/keyboard.d.ts +16 -0
- package/dist/types/src/store/main.d.ts +915 -0
- package/dist/types/src/store/screen.d.ts +6 -0
- package/dist/types/src/store/slides.d.ts +1559 -0
- package/dist/types/src/store/snapshot.d.ts +21 -0
- package/dist/types/src/types/AIPPT.d.ts +36 -0
- package/dist/types/src/types/edit.d.ts +111 -0
- package/dist/types/src/types/export.d.ts +1 -0
- package/dist/types/src/types/injectKey.d.ts +10 -0
- package/dist/types/src/types/lt-ppt.d.ts +30 -0
- package/dist/types/src/types/mobile.d.ts +1 -0
- package/dist/types/src/types/slides.d.ts +732 -0
- package/dist/types/src/types/toolbar.d.ts +9 -0
- package/dist/types/src/utils/clipboard.d.ts +9 -0
- package/dist/types/src/utils/common.d.ts +18 -0
- package/dist/types/src/utils/crypto.d.ts +10 -0
- package/dist/types/src/utils/database.d.ts +17 -0
- package/dist/types/src/utils/element.d.ts +94 -0
- package/dist/types/src/utils/emitter.d.ts +23 -0
- package/dist/types/src/utils/font.d.ts +1 -0
- package/dist/types/src/utils/fonts.d.ts +5 -0
- package/dist/types/src/utils/fullscreen.d.ts +3 -0
- package/dist/types/src/utils/htmlParser/format.d.ts +3 -0
- package/dist/types/src/utils/htmlParser/index.d.ts +4 -0
- package/dist/types/src/utils/htmlParser/lexer.d.ts +2 -0
- package/dist/types/src/utils/htmlParser/parser.d.ts +15 -0
- package/dist/types/src/utils/htmlParser/stringify.d.ts +3 -0
- package/dist/types/src/utils/htmlParser/tags.d.ts +4 -0
- package/dist/types/src/utils/htmlParser/types.d.ts +55 -0
- package/dist/types/src/utils/iframe-sdk/index.d.ts +52 -0
- package/dist/types/src/utils/iframe-sdk/types.d.ts +30 -0
- package/dist/types/src/utils/image.d.ts +32 -0
- package/dist/types/src/utils/message.d.ts +28 -0
- package/dist/types/src/utils/print.d.ts +7 -0
- package/dist/types/src/utils/prosemirror/commands/replaceText.d.ts +2 -0
- package/dist/types/src/utils/prosemirror/commands/setListStyle.d.ts +4 -0
- package/dist/types/src/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
- package/dist/types/src/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
- package/dist/types/src/utils/prosemirror/commands/toggleList.d.ts +8 -0
- package/dist/types/src/utils/prosemirror/index.d.ts +4 -0
- package/dist/types/src/utils/prosemirror/plugins/index.d.ts +10 -0
- package/dist/types/src/utils/prosemirror/plugins/inputrules.d.ts +7 -0
- package/dist/types/src/utils/prosemirror/plugins/keymap.d.ts +3 -0
- package/dist/types/src/utils/prosemirror/plugins/placeholder.d.ts +2 -0
- package/dist/types/src/utils/prosemirror/schema/index.d.ts +24 -0
- package/dist/types/src/utils/prosemirror/schema/marks.d.ts +17 -0
- package/dist/types/src/utils/prosemirror/schema/nodes.d.ts +11 -0
- package/dist/types/src/utils/prosemirror/utils.d.ts +69 -0
- package/dist/types/src/utils/selection.d.ts +1 -0
- package/dist/types/src/utils/svg2Base64.d.ts +1 -0
- package/dist/types/src/utils/svgPathParser.d.ts +120 -0
- package/dist/types/src/utils/textParser.d.ts +5 -0
- package/dist/types/src/views/Editor/AIPPTDialog.vue.d.ts +111 -0
- package/dist/types/src/views/Editor/Canvas/AlignmentLine.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/EditableElement.vue.d.ts +12 -0
- package/dist/types/src/views/Editor/Canvas/ElementCreateSelection.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/GridLines.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Canvas/LinkDialog.vue.d.ts +115 -0
- package/dist/types/src/views/Editor/Canvas/MouseSelection.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/Operate/BorderLine.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/Operate/CommonElementOperate.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Canvas/Operate/ImageElementOperate.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Canvas/Operate/LineElementOperate.vue.d.ts +12 -0
- package/dist/types/src/views/Editor/Canvas/Operate/LinkHandler.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/Canvas/Operate/MultiSelectOperate.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/Canvas/Operate/ResizeHandler.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/Operate/RotateHandler.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue.d.ts +16 -0
- package/dist/types/src/views/Editor/Canvas/Operate/TableElementOperate.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Canvas/Operate/TextElementOperate.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Canvas/Operate/index.vue.d.ts +16 -0
- package/dist/types/src/views/Editor/Canvas/Ruler.vue.d.ts +13 -0
- package/dist/types/src/views/Editor/Canvas/ShapeCreateCanvas.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Canvas/ViewportBackground.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useCommonOperate.d.ts +89 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useDragElement.d.ts +7 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useDragLineElement.d.ts +7 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useDrop.d.ts +3 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +12 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useMouseSelection.d.ts +24 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +6 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useRotateElement.d.ts +6 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useScaleElement.d.ts +8 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useSelectElement.d.ts +6 -0
- package/dist/types/src/views/Editor/Canvas/hooks/useViewportSize.d.ts +11 -0
- package/dist/types/src/views/Editor/Canvas/index.vue.d.ts +5 -0
- package/dist/types/src/views/Editor/CanvasTool/ChartPool.vue.d.ts +7 -0
- package/dist/types/src/views/Editor/CanvasTool/LinePool.vue.d.ts +7 -0
- package/dist/types/src/views/Editor/CanvasTool/MediaInput.vue.d.ts +22 -0
- package/dist/types/src/views/Editor/CanvasTool/ShapeItemThumbnail.vue.d.ts +6 -0
- package/dist/types/src/views/Editor/CanvasTool/ShapePool.vue.d.ts +7 -0
- package/dist/types/src/views/Editor/CanvasTool/TableGenerator.vue.d.ts +12 -0
- package/dist/types/src/views/Editor/CanvasTool/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/EditorHeader/HotkeyDoc.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/EditorHeader/index.vue.d.ts +4 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportImage.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportJSON.vue.d.ts +6 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportPDF.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportPDF2.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportPPTX.vue.d.ts +8 -0
- package/dist/types/src/views/Editor/ExportDialog/ExportSpecificFile.vue.d.ts +6 -0
- package/dist/types/src/views/Editor/ExportDialog/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/ImageLibPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/MarkupPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/NotesPanel.vue.d.ts +57 -0
- package/dist/types/src/views/Editor/Remark/Editor.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Remark/index.vue.d.ts +35 -0
- package/dist/types/src/views/Editor/SearchPanel.vue.d.ts +111 -0
- package/dist/types/src/views/Editor/SelectPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/SymbolPanel.vue.d.ts +4 -0
- package/dist/types/src/views/Editor/Thumbnails/Templates.vue.d.ts +17 -0
- package/dist/types/src/views/Editor/Thumbnails/index.vue.d.ts +91 -0
- package/dist/types/src/views/Editor/Toolbar/ElementAnimationPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementPositionPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue.d.ts +19 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.vue.d.ts +9 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/MultiPositionPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/MultiStylePanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/SlideAnimationPanel.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/ThemeColorsSetting.vue.d.ts +6 -0
- package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/ThemeStylesExtract.vue.d.ts +6 -0
- package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementColorMask.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementFilter.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementFlip.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementOpacity.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementOutline.vue.d.ts +7 -0
- package/dist/types/src/views/Editor/Toolbar/common/ElementShadow.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/RichTextBase.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/Toolbar/common/SVGLine.vue.d.ts +14 -0
- package/dist/types/src/views/Editor/Toolbar/index.vue.d.ts +2 -0
- package/dist/types/src/views/Editor/index.vue.d.ts +2 -0
- package/dist/types/src/views/Mobile/MobileEditor/ElementToolbar.vue.d.ts +2 -0
- package/dist/types/src/views/Mobile/MobileEditor/Header.vue.d.ts +6 -0
- package/dist/types/src/views/Mobile/MobileEditor/MobileEditableElement.vue.d.ts +8 -0
- package/dist/types/src/views/Mobile/MobileEditor/MobileOperate.vue.d.ts +12 -0
- package/dist/types/src/views/Mobile/MobileEditor/SlideToolbar.vue.d.ts +2 -0
- package/dist/types/src/views/Mobile/MobileEditor/index.vue.d.ts +9 -0
- package/dist/types/src/views/Mobile/MobilePlayer.vue.d.ts +6 -0
- package/dist/types/src/views/Mobile/MobilePreview.vue.d.ts +8 -0
- package/dist/types/src/views/Mobile/MobileThumbnails.vue.d.ts +2 -0
- package/dist/types/src/views/Mobile/index.vue.d.ts +2 -0
- package/dist/types/src/views/Screen/BaseView.vue.d.ts +5 -0
- package/dist/types/src/views/Screen/BottomThumbnails.vue.d.ts +4 -0
- package/dist/types/src/views/Screen/CountdownTimer.vue.d.ts +13 -0
- package/dist/types/src/views/Screen/PresenterView.vue.d.ts +8 -0
- package/dist/types/src/views/Screen/ScreenElement.vue.d.ts +10 -0
- package/dist/types/src/views/Screen/ScreenSlide.vue.d.ts +10 -0
- package/dist/types/src/views/Screen/ScreenSlideList.vue.d.ts +9 -0
- package/dist/types/src/views/Screen/SlideThumbnails.vue.d.ts +9 -0
- package/dist/types/src/views/Screen/WritingBoardTool.vue.d.ts +77 -0
- package/dist/types/src/views/Screen/hooks/useExecPlay.d.ts +20 -0
- package/dist/types/src/views/Screen/hooks/useFullscreen.d.ts +5 -0
- package/dist/types/src/views/Screen/hooks/useSlideSize.d.ts +6 -0
- package/dist/types/src/views/Screen/hooks/useSlidesWithTurningMode.d.ts +14 -0
- package/dist/types/src/views/Screen/index.vue.d.ts +2 -0
- package/dist/types/src/views/components/ThumbnailSlide/ThumbnailElement.vue.d.ts +7 -0
- package/dist/types/src/views/components/ThumbnailSlide/index.vue.d.ts +10 -0
- package/dist/types/src/views/components/element/AudioElement/AudioPlayer.vue.d.ts +17 -0
- package/dist/types/src/views/components/element/AudioElement/BaseAudioElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/AudioElement/ScreenAudioElement.vue.d.ts +39 -0
- package/dist/types/src/views/components/element/AudioElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/ChartElement/BaseChartElement.vue.d.ts +7 -0
- package/dist/types/src/views/components/element/ChartElement/Chart.vue.d.ts +15 -0
- package/dist/types/src/views/components/element/ChartElement/chartOption.d.ts +15 -0
- package/dist/types/src/views/components/element/ChartElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/ElementOutline.vue.d.ts +8 -0
- package/dist/types/src/views/components/element/ImageElement/BaseImageElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/ImageElement/ImageClipHandler.vue.d.ts +18 -0
- package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.vue.d.ts +8 -0
- package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImageRectOutline.vue.d.ts +11 -0
- package/dist/types/src/views/components/element/ImageElement/ImageOutline/index.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/ImageElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/ImageElement/useClipImage.d.ts +19 -0
- package/dist/types/src/views/components/element/ImageElement/useFilter.d.ts +6 -0
- package/dist/types/src/views/components/element/LatexElement/BaseLatexElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/LatexElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/LineElement/BaseLineElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/LineElement/LinePointMarker.vue.d.ts +11 -0
- package/dist/types/src/views/components/element/LineElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/ProsemirrorEditor.vue.d.ts +33 -0
- package/dist/types/src/views/components/element/ShapeElement/BaseShapeElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/ShapeElement/GradientDefs.vue.d.ts +11 -0
- package/dist/types/src/views/components/element/ShapeElement/PatternDefs.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/ShapeElement/index.vue.d.ts +68 -0
- package/dist/types/src/views/components/element/TableElement/BaseTableElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/TableElement/CustomTextarea.vue.d.ts +15 -0
- package/dist/types/src/views/components/element/TableElement/EditableTable.vue.d.ts +22 -0
- package/dist/types/src/views/components/element/TableElement/StaticTable.vue.d.ts +14 -0
- package/dist/types/src/views/components/element/TableElement/index.vue.d.ts +11 -0
- package/dist/types/src/views/components/element/TableElement/useHideCells.d.ts +6 -0
- package/dist/types/src/views/components/element/TableElement/useSubThemeColor.d.ts +6 -0
- package/dist/types/src/views/components/element/TableElement/utils.d.ts +8 -0
- package/dist/types/src/views/components/element/TextElement/BaseTextElement.vue.d.ts +7 -0
- package/dist/types/src/views/components/element/TextElement/index.vue.d.ts +11 -0
- package/dist/types/src/views/components/element/VideoElement/BaseVideoElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/VideoElement/ScreenVideoElement.vue.d.ts +6 -0
- package/dist/types/src/views/components/element/VideoElement/VideoPlayer/index.vue.d.ts +19 -0
- package/dist/types/src/views/components/element/VideoElement/VideoPlayer/useMSE.d.ts +3 -0
- package/dist/types/src/views/components/element/VideoElement/index.vue.d.ts +9 -0
- package/dist/types/src/views/components/element/hooks/useElementFill.d.ts +6 -0
- package/dist/types/src/views/components/element/hooks/useElementFlip.d.ts +5 -0
- package/dist/types/src/views/components/element/hooks/useElementOutline.d.ts +9 -0
- package/dist/types/src/views/components/element/hooks/useElementShadow.d.ts +6 -0
- package/dist/vue-i18n-R6dI71u7.js +3595 -0
- package/package.json +109 -0
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
export declare const enum ShapePathFormulasKeys {
|
|
2
|
+
ROUND_RECT = "roundRect",
|
|
3
|
+
ROUND_RECT_DIAGONAL = "roundRectDiagonal",
|
|
4
|
+
ROUND_RECT_SINGLE = "roundRectSingle",
|
|
5
|
+
ROUND_RECT_SAMESIDE = "roundRectSameSide",
|
|
6
|
+
CUT_RECT_DIAGONAL = "cutRectDiagonal",
|
|
7
|
+
CUT_RECT_SINGLE = "cutRectSingle",
|
|
8
|
+
CUT_RECT_SAMESIDE = "cutRectSameSide",
|
|
9
|
+
CUT_ROUND_RECT = "cutRoundRect",
|
|
10
|
+
MESSAGE = "message",
|
|
11
|
+
ROUND_MESSAGE = "roundMessage",
|
|
12
|
+
L = "L",
|
|
13
|
+
RING_RECT = "ringRect",
|
|
14
|
+
PLUS = "plus",
|
|
15
|
+
TRIANGLE = "triangle",
|
|
16
|
+
PARALLELOGRAM_LEFT = "parallelogramLeft",
|
|
17
|
+
PARALLELOGRAM_RIGHT = "parallelogramRight",
|
|
18
|
+
TRAPEZOID = "trapezoid",
|
|
19
|
+
BULLET = "bullet",
|
|
20
|
+
INDICATOR = "indicator",
|
|
21
|
+
DONUT = "donut",
|
|
22
|
+
DIAGSTRIPE = "diagStripe"
|
|
23
|
+
}
|
|
24
|
+
export declare const enum ElementTypes {
|
|
25
|
+
TEXT = "text",
|
|
26
|
+
IMAGE = "image",
|
|
27
|
+
SHAPE = "shape",
|
|
28
|
+
LINE = "line",
|
|
29
|
+
CHART = "chart",
|
|
30
|
+
TABLE = "table",
|
|
31
|
+
LATEX = "latex",
|
|
32
|
+
VIDEO = "video",
|
|
33
|
+
AUDIO = "audio"
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 渐变
|
|
37
|
+
*
|
|
38
|
+
* type: 渐变类型(径向、线性)
|
|
39
|
+
*
|
|
40
|
+
* colors: 渐变颜色列表(pos: 百分比位置;color: 颜色)
|
|
41
|
+
*
|
|
42
|
+
* rotate: 渐变角度(线性渐变)
|
|
43
|
+
*/
|
|
44
|
+
export type GradientType = 'linear' | 'radial';
|
|
45
|
+
export type GradientColor = {
|
|
46
|
+
pos: number;
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
export interface Gradient {
|
|
50
|
+
type: GradientType;
|
|
51
|
+
colors: GradientColor[];
|
|
52
|
+
rotate: number;
|
|
53
|
+
}
|
|
54
|
+
export type LineStyleType = 'solid' | 'dashed' | 'dotted';
|
|
55
|
+
/**
|
|
56
|
+
* 元素阴影
|
|
57
|
+
*
|
|
58
|
+
* h: 水平偏移量
|
|
59
|
+
*
|
|
60
|
+
* v: 垂直偏移量
|
|
61
|
+
*
|
|
62
|
+
* blur: 模糊程度
|
|
63
|
+
*
|
|
64
|
+
* color: 阴影颜色
|
|
65
|
+
*/
|
|
66
|
+
export interface PPTElementShadow {
|
|
67
|
+
h: number;
|
|
68
|
+
v: number;
|
|
69
|
+
blur: number;
|
|
70
|
+
color: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 元素边框
|
|
74
|
+
*
|
|
75
|
+
* style?: 边框样式(实线或虚线)
|
|
76
|
+
*
|
|
77
|
+
* width?: 边框宽度
|
|
78
|
+
*
|
|
79
|
+
* color?: 边框颜色
|
|
80
|
+
*/
|
|
81
|
+
export interface PPTElementOutline {
|
|
82
|
+
style?: LineStyleType;
|
|
83
|
+
width?: number;
|
|
84
|
+
color?: string;
|
|
85
|
+
}
|
|
86
|
+
export type ElementLinkType = 'web' | 'slide';
|
|
87
|
+
/**
|
|
88
|
+
* 元素超链接
|
|
89
|
+
*
|
|
90
|
+
* type: 链接类型(网页、幻灯片页面)
|
|
91
|
+
*
|
|
92
|
+
* target: 目标地址(网页链接、幻灯片页面ID)
|
|
93
|
+
*/
|
|
94
|
+
export interface PPTElementLink {
|
|
95
|
+
type: ElementLinkType;
|
|
96
|
+
target: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 元素通用属性
|
|
100
|
+
*
|
|
101
|
+
* id: 元素ID
|
|
102
|
+
*
|
|
103
|
+
* left: 元素水平方向位置(距离画布左侧)
|
|
104
|
+
*
|
|
105
|
+
* top: 元素垂直方向位置(距离画布顶部)
|
|
106
|
+
*
|
|
107
|
+
* lock?: 锁定元素
|
|
108
|
+
*
|
|
109
|
+
* groupId?: 组合ID(拥有相同组合ID的元素即为同一组合元素成员)
|
|
110
|
+
*
|
|
111
|
+
* width: 元素宽度
|
|
112
|
+
*
|
|
113
|
+
* height: 元素高度
|
|
114
|
+
*
|
|
115
|
+
* rotate: 旋转角度
|
|
116
|
+
*
|
|
117
|
+
* link?: 超链接
|
|
118
|
+
*
|
|
119
|
+
* name?: 元素名
|
|
120
|
+
*/
|
|
121
|
+
interface PPTBaseElement {
|
|
122
|
+
id: string;
|
|
123
|
+
left: number;
|
|
124
|
+
top: number;
|
|
125
|
+
lock?: boolean;
|
|
126
|
+
groupId?: string;
|
|
127
|
+
width: number;
|
|
128
|
+
height: number;
|
|
129
|
+
rotate: number;
|
|
130
|
+
link?: PPTElementLink;
|
|
131
|
+
name?: string;
|
|
132
|
+
}
|
|
133
|
+
export type TextType = 'title' | 'subtitle' | 'content' | 'item' | 'itemTitle' | 'notes' | 'header' | 'footer' | 'partNumber' | 'itemNumber';
|
|
134
|
+
/**
|
|
135
|
+
* 文本元素
|
|
136
|
+
*
|
|
137
|
+
* type: 元素类型(text)
|
|
138
|
+
*
|
|
139
|
+
* content: 文本内容(HTML字符串)
|
|
140
|
+
*
|
|
141
|
+
* defaultFontName: 默认字体(会被文本内容中的HTML内联样式覆盖)
|
|
142
|
+
*
|
|
143
|
+
* defaultColor: 默认颜色(会被文本内容中的HTML内联样式覆盖)
|
|
144
|
+
*
|
|
145
|
+
* outline?: 边框
|
|
146
|
+
*
|
|
147
|
+
* fill?: 填充色
|
|
148
|
+
*
|
|
149
|
+
* lineHeight?: 行高(倍),默认1.5
|
|
150
|
+
*
|
|
151
|
+
* wordSpace?: 字间距,默认0
|
|
152
|
+
*
|
|
153
|
+
* opacity?: 不透明度,默认1
|
|
154
|
+
*
|
|
155
|
+
* shadow?: 阴影
|
|
156
|
+
*
|
|
157
|
+
* paragraphSpace?: 段间距,默认 5px
|
|
158
|
+
*
|
|
159
|
+
* vertical?: 竖向文本
|
|
160
|
+
*
|
|
161
|
+
* textType?: 文本类型
|
|
162
|
+
*/
|
|
163
|
+
export interface PPTTextElement extends PPTBaseElement {
|
|
164
|
+
type: 'text';
|
|
165
|
+
content: string;
|
|
166
|
+
defaultFontName: string;
|
|
167
|
+
defaultColor: string;
|
|
168
|
+
outline?: PPTElementOutline;
|
|
169
|
+
fill?: string;
|
|
170
|
+
lineHeight?: number;
|
|
171
|
+
wordSpace?: number;
|
|
172
|
+
opacity?: number;
|
|
173
|
+
shadow?: PPTElementShadow;
|
|
174
|
+
paragraphSpace?: number;
|
|
175
|
+
vertical?: boolean;
|
|
176
|
+
textType?: TextType;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* 图片翻转、形状翻转
|
|
180
|
+
*
|
|
181
|
+
* flipH?: 水平翻转
|
|
182
|
+
*
|
|
183
|
+
* flipV?: 垂直翻转
|
|
184
|
+
*/
|
|
185
|
+
export interface ImageOrShapeFlip {
|
|
186
|
+
flipH?: boolean;
|
|
187
|
+
flipV?: boolean;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* 图片滤镜
|
|
191
|
+
*
|
|
192
|
+
* https://developer.mozilla.org/zh-CN/docs/Web/CSS/filter
|
|
193
|
+
*
|
|
194
|
+
* 'blur'?: 模糊,默认0(px)
|
|
195
|
+
*
|
|
196
|
+
* 'brightness'?: 亮度,默认100(%)
|
|
197
|
+
*
|
|
198
|
+
* 'contrast'?: 对比度,默认100(%)
|
|
199
|
+
*
|
|
200
|
+
* 'grayscale'?: 灰度,默认0(%)
|
|
201
|
+
*
|
|
202
|
+
* 'saturate'?: 饱和度,默认100(%)
|
|
203
|
+
*
|
|
204
|
+
* 'hue-rotate'?: 色相旋转,默认0(deg)
|
|
205
|
+
*
|
|
206
|
+
* 'opacity'?: 不透明度,默认100(%)
|
|
207
|
+
*/
|
|
208
|
+
export type ImageElementFilterKeys = 'blur' | 'brightness' | 'contrast' | 'grayscale' | 'saturate' | 'hue-rotate' | 'opacity' | 'sepia' | 'invert';
|
|
209
|
+
export interface ImageElementFilters {
|
|
210
|
+
'blur'?: string;
|
|
211
|
+
'brightness'?: string;
|
|
212
|
+
'contrast'?: string;
|
|
213
|
+
'grayscale'?: string;
|
|
214
|
+
'saturate'?: string;
|
|
215
|
+
'hue-rotate'?: string;
|
|
216
|
+
'sepia'?: string;
|
|
217
|
+
'invert'?: string;
|
|
218
|
+
'opacity'?: string;
|
|
219
|
+
}
|
|
220
|
+
export type ImageClipDataRange = [[number, number], [number, number]];
|
|
221
|
+
/**
|
|
222
|
+
* 图片裁剪
|
|
223
|
+
*
|
|
224
|
+
* range: 裁剪范围,例如:[[10, 10], [90, 90]] 表示裁取原图从左上角 10%, 10% 到 90%, 90% 的范围
|
|
225
|
+
*
|
|
226
|
+
* shape: 裁剪形状,见 configs/imageClip.ts CLIPPATHS
|
|
227
|
+
*/
|
|
228
|
+
export interface ImageElementClip {
|
|
229
|
+
range: ImageClipDataRange;
|
|
230
|
+
shape: string;
|
|
231
|
+
}
|
|
232
|
+
export type ImageType = 'pageFigure' | 'itemFigure' | 'background';
|
|
233
|
+
/**
|
|
234
|
+
* 图片元素
|
|
235
|
+
*
|
|
236
|
+
* type: 元素类型(image)
|
|
237
|
+
*
|
|
238
|
+
* fixedRatio: 固定图片宽高比例
|
|
239
|
+
*
|
|
240
|
+
* src: 图片地址
|
|
241
|
+
*
|
|
242
|
+
* outline?: 边框
|
|
243
|
+
*
|
|
244
|
+
* filters?: 图片滤镜
|
|
245
|
+
*
|
|
246
|
+
* clip?: 裁剪信息
|
|
247
|
+
*
|
|
248
|
+
* flipH?: 水平翻转
|
|
249
|
+
*
|
|
250
|
+
* flipV?: 垂直翻转
|
|
251
|
+
*
|
|
252
|
+
* shadow?: 阴影
|
|
253
|
+
*
|
|
254
|
+
* radius?: 圆角半径
|
|
255
|
+
*
|
|
256
|
+
* colorMask?: 颜色蒙版
|
|
257
|
+
*
|
|
258
|
+
* imageType?: 图片类型
|
|
259
|
+
*/
|
|
260
|
+
export interface PPTImageElement extends PPTBaseElement {
|
|
261
|
+
type: 'image';
|
|
262
|
+
fixedRatio: boolean;
|
|
263
|
+
src: string;
|
|
264
|
+
outline?: PPTElementOutline;
|
|
265
|
+
filters?: ImageElementFilters;
|
|
266
|
+
clip?: ImageElementClip;
|
|
267
|
+
flipH?: boolean;
|
|
268
|
+
flipV?: boolean;
|
|
269
|
+
shadow?: PPTElementShadow;
|
|
270
|
+
radius?: number;
|
|
271
|
+
colorMask?: string;
|
|
272
|
+
imageType?: ImageType;
|
|
273
|
+
}
|
|
274
|
+
export type ShapeTextAlign = 'top' | 'middle' | 'bottom';
|
|
275
|
+
/**
|
|
276
|
+
* 形状内文本
|
|
277
|
+
*
|
|
278
|
+
* content: 文本内容(HTML字符串)
|
|
279
|
+
*
|
|
280
|
+
* defaultFontName: 默认字体(会被文本内容中的HTML内联样式覆盖)
|
|
281
|
+
*
|
|
282
|
+
* defaultColor: 默认颜色(会被文本内容中的HTML内联样式覆盖)
|
|
283
|
+
*
|
|
284
|
+
* align: 文本对齐方向(垂直方向)
|
|
285
|
+
*
|
|
286
|
+
* lineHeight?: 行高(倍),默认1.5
|
|
287
|
+
*
|
|
288
|
+
* wordSpace?: 字间距,默认0
|
|
289
|
+
*
|
|
290
|
+
* paragraphSpace?: 段间距,默认 5px
|
|
291
|
+
*
|
|
292
|
+
* type: 文本类型
|
|
293
|
+
*/
|
|
294
|
+
export interface ShapeText {
|
|
295
|
+
content: string;
|
|
296
|
+
defaultFontName: string;
|
|
297
|
+
defaultColor: string;
|
|
298
|
+
align: ShapeTextAlign;
|
|
299
|
+
lineHeight?: number;
|
|
300
|
+
wordSpace?: number;
|
|
301
|
+
paragraphSpace?: number;
|
|
302
|
+
type?: TextType;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* 形状元素
|
|
306
|
+
*
|
|
307
|
+
* type: 元素类型(shape)
|
|
308
|
+
*
|
|
309
|
+
* viewBox: SVG的viewBox属性,例如 [1000, 1000] 表示 '0 0 1000 1000'
|
|
310
|
+
*
|
|
311
|
+
* path: 形状路径,SVG path 的 d 属性
|
|
312
|
+
*
|
|
313
|
+
* fixedRatio: 固定形状宽高比例
|
|
314
|
+
*
|
|
315
|
+
* fill: 填充,不存在渐变时生效
|
|
316
|
+
*
|
|
317
|
+
* gradient?: 渐变,该属性存在时将优先作为填充
|
|
318
|
+
*
|
|
319
|
+
* pattern?: 图案,该属性存在时将优先作为填充
|
|
320
|
+
*
|
|
321
|
+
* outline?: 边框
|
|
322
|
+
*
|
|
323
|
+
* opacity?: 不透明度
|
|
324
|
+
*
|
|
325
|
+
* flipH?: 水平翻转
|
|
326
|
+
*
|
|
327
|
+
* flipV?: 垂直翻转
|
|
328
|
+
*
|
|
329
|
+
* shadow?: 阴影
|
|
330
|
+
*
|
|
331
|
+
* special?: 特殊形状(标记一些难以解析的形状,例如路径使用了 L Q C A 以外的类型,该类形状在导出后将变为图片的形式)
|
|
332
|
+
*
|
|
333
|
+
* text?: 形状内文本
|
|
334
|
+
*
|
|
335
|
+
* pathFormula?: 形状路径计算公式
|
|
336
|
+
* 一般情况下,形状的大小变化时仅由宽高基于 viewBox 的缩放比例来调整形状,而 viewBox 本身和 path 不会变化,
|
|
337
|
+
* 但也有一些形状希望能更精确的控制一些关键点的位置,此时就需要提供路径计算公式,通过在缩放时更新 viewBox 并重新计算 path 来重新绘制形状
|
|
338
|
+
*
|
|
339
|
+
* keypoints?: 关键点位置百分比
|
|
340
|
+
*/
|
|
341
|
+
export interface PPTShapeElement extends PPTBaseElement {
|
|
342
|
+
type: 'shape';
|
|
343
|
+
viewBox: [number, number];
|
|
344
|
+
path: string;
|
|
345
|
+
fixedRatio: boolean;
|
|
346
|
+
fill: string;
|
|
347
|
+
gradient?: Gradient;
|
|
348
|
+
pattern?: string;
|
|
349
|
+
outline?: PPTElementOutline;
|
|
350
|
+
opacity?: number;
|
|
351
|
+
flipH?: boolean;
|
|
352
|
+
flipV?: boolean;
|
|
353
|
+
shadow?: PPTElementShadow;
|
|
354
|
+
special?: boolean;
|
|
355
|
+
text?: ShapeText;
|
|
356
|
+
pathFormula?: ShapePathFormulasKeys;
|
|
357
|
+
keypoints?: number[];
|
|
358
|
+
}
|
|
359
|
+
export type LinePoint = '' | 'arrow' | 'dot';
|
|
360
|
+
/**
|
|
361
|
+
* 线条元素
|
|
362
|
+
*
|
|
363
|
+
* type: 元素类型(line)
|
|
364
|
+
*
|
|
365
|
+
* start: 起点位置([x, y])
|
|
366
|
+
*
|
|
367
|
+
* end: 终点位置([x, y])
|
|
368
|
+
*
|
|
369
|
+
* style: 线条样式(实线、虚线、点线)
|
|
370
|
+
*
|
|
371
|
+
* color: 线条颜色
|
|
372
|
+
*
|
|
373
|
+
* points: 端点样式([起点样式, 终点样式],可选:无、箭头、圆点)
|
|
374
|
+
*
|
|
375
|
+
* shadow?: 阴影
|
|
376
|
+
*
|
|
377
|
+
* broken?: 折线控制点位置([x, y])
|
|
378
|
+
*
|
|
379
|
+
* broken2?: 双折线控制点位置([x, y])
|
|
380
|
+
*
|
|
381
|
+
* curve?: 二次曲线控制点位置([x, y])
|
|
382
|
+
*
|
|
383
|
+
* cubic?: 三次曲线控制点位置([[x1, y1], [x2, y2]])
|
|
384
|
+
*/
|
|
385
|
+
export interface PPTLineElement extends Omit<PPTBaseElement, 'height' | 'rotate'> {
|
|
386
|
+
type: 'line';
|
|
387
|
+
start: [number, number];
|
|
388
|
+
end: [number, number];
|
|
389
|
+
style: LineStyleType;
|
|
390
|
+
color: string;
|
|
391
|
+
points: [LinePoint, LinePoint];
|
|
392
|
+
shadow?: PPTElementShadow;
|
|
393
|
+
broken?: [number, number];
|
|
394
|
+
broken2?: [number, number];
|
|
395
|
+
curve?: [number, number];
|
|
396
|
+
cubic?: [[number, number], [number, number]];
|
|
397
|
+
}
|
|
398
|
+
export type ChartType = 'bar' | 'column' | 'line' | 'pie' | 'ring' | 'area' | 'radar' | 'scatter';
|
|
399
|
+
export interface ChartOptions {
|
|
400
|
+
lineSmooth?: boolean;
|
|
401
|
+
stack?: boolean;
|
|
402
|
+
}
|
|
403
|
+
export interface ChartData {
|
|
404
|
+
labels: string[];
|
|
405
|
+
legends: string[];
|
|
406
|
+
series: number[][];
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* 图表元素
|
|
410
|
+
*
|
|
411
|
+
* type: 元素类型(chart)
|
|
412
|
+
*
|
|
413
|
+
* fill?: 填充色
|
|
414
|
+
*
|
|
415
|
+
* chartType: 图表基础类型(bar/line/pie),所有图表类型都是由这三种基本类型衍生而来
|
|
416
|
+
*
|
|
417
|
+
* data: 图表数据
|
|
418
|
+
*
|
|
419
|
+
* options: 扩展选项
|
|
420
|
+
*
|
|
421
|
+
* outline?: 边框
|
|
422
|
+
*
|
|
423
|
+
* themeColors: 主题色
|
|
424
|
+
*
|
|
425
|
+
* textColor?: 坐标和文字颜色
|
|
426
|
+
*
|
|
427
|
+
* lineColor?: 网格颜色
|
|
428
|
+
*/
|
|
429
|
+
export interface PPTChartElement extends PPTBaseElement {
|
|
430
|
+
type: 'chart';
|
|
431
|
+
fill?: string;
|
|
432
|
+
chartType: ChartType;
|
|
433
|
+
data: ChartData;
|
|
434
|
+
options?: ChartOptions;
|
|
435
|
+
outline?: PPTElementOutline;
|
|
436
|
+
themeColors: string[];
|
|
437
|
+
textColor?: string;
|
|
438
|
+
lineColor?: string;
|
|
439
|
+
}
|
|
440
|
+
export type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
441
|
+
/**
|
|
442
|
+
* 表格单元格样式
|
|
443
|
+
*
|
|
444
|
+
* bold?: 加粗
|
|
445
|
+
*
|
|
446
|
+
* em?: 斜体
|
|
447
|
+
*
|
|
448
|
+
* underline?: 下划线
|
|
449
|
+
*
|
|
450
|
+
* strikethrough?: 删除线
|
|
451
|
+
*
|
|
452
|
+
* color?: 字体颜色
|
|
453
|
+
*
|
|
454
|
+
* backcolor?: 填充色
|
|
455
|
+
*
|
|
456
|
+
* fontsize?: 字体大小
|
|
457
|
+
*
|
|
458
|
+
* fontname?: 字体
|
|
459
|
+
*
|
|
460
|
+
* align?: 对齐方式
|
|
461
|
+
*/
|
|
462
|
+
export interface TableCellStyle {
|
|
463
|
+
bold?: boolean;
|
|
464
|
+
em?: boolean;
|
|
465
|
+
underline?: boolean;
|
|
466
|
+
strikethrough?: boolean;
|
|
467
|
+
color?: string;
|
|
468
|
+
backcolor?: string;
|
|
469
|
+
fontsize?: string;
|
|
470
|
+
fontname?: string;
|
|
471
|
+
align?: TextAlign;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* 表格单元格
|
|
475
|
+
*
|
|
476
|
+
* id: 单元格ID
|
|
477
|
+
*
|
|
478
|
+
* colspan: 合并列数
|
|
479
|
+
*
|
|
480
|
+
* rowspan: 合并行数
|
|
481
|
+
*
|
|
482
|
+
* text: 文字内容
|
|
483
|
+
*
|
|
484
|
+
* style?: 单元格样式
|
|
485
|
+
*/
|
|
486
|
+
export interface TableCell {
|
|
487
|
+
id: string;
|
|
488
|
+
colspan: number;
|
|
489
|
+
rowspan: number;
|
|
490
|
+
text: string;
|
|
491
|
+
style?: TableCellStyle;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* 表格主题
|
|
495
|
+
*
|
|
496
|
+
* color: 主题色
|
|
497
|
+
*
|
|
498
|
+
* rowHeader: 标题行
|
|
499
|
+
*
|
|
500
|
+
* rowFooter: 汇总行
|
|
501
|
+
*
|
|
502
|
+
* colHeader: 第一列
|
|
503
|
+
*
|
|
504
|
+
* colFooter: 最后一列
|
|
505
|
+
*/
|
|
506
|
+
export interface TableTheme {
|
|
507
|
+
color: string;
|
|
508
|
+
rowHeader: boolean;
|
|
509
|
+
rowFooter: boolean;
|
|
510
|
+
colHeader: boolean;
|
|
511
|
+
colFooter: boolean;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* 表格元素
|
|
515
|
+
*
|
|
516
|
+
* type: 元素类型(table)
|
|
517
|
+
*
|
|
518
|
+
* outline: 边框
|
|
519
|
+
*
|
|
520
|
+
* theme?: 主题
|
|
521
|
+
*
|
|
522
|
+
* colWidths: 列宽数组,如[0.3, 0.5, 0.2]表示三列宽度分别占总宽度的30%, 50%, 20%
|
|
523
|
+
*
|
|
524
|
+
* cellMinHeight: 单元格最小高度
|
|
525
|
+
*
|
|
526
|
+
* data: 表格数据
|
|
527
|
+
*/
|
|
528
|
+
export interface PPTTableElement extends PPTBaseElement {
|
|
529
|
+
type: 'table';
|
|
530
|
+
outline: PPTElementOutline;
|
|
531
|
+
theme?: TableTheme;
|
|
532
|
+
colWidths: number[];
|
|
533
|
+
cellMinHeight: number;
|
|
534
|
+
data: TableCell[][];
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* LaTeX元素(公式)
|
|
538
|
+
*
|
|
539
|
+
* type: 元素类型(latex)
|
|
540
|
+
*
|
|
541
|
+
* latex: latex代码
|
|
542
|
+
*
|
|
543
|
+
* path: svg path
|
|
544
|
+
*
|
|
545
|
+
* color: 颜色
|
|
546
|
+
*
|
|
547
|
+
* strokeWidth: 路径宽度
|
|
548
|
+
*
|
|
549
|
+
* viewBox: SVG的viewBox属性
|
|
550
|
+
*
|
|
551
|
+
* fixedRatio: 固定形状宽高比例
|
|
552
|
+
*/
|
|
553
|
+
export interface PPTLatexElement extends PPTBaseElement {
|
|
554
|
+
type: 'latex';
|
|
555
|
+
latex: string;
|
|
556
|
+
path: string;
|
|
557
|
+
color: string;
|
|
558
|
+
strokeWidth: number;
|
|
559
|
+
viewBox: [number, number];
|
|
560
|
+
fixedRatio: boolean;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* 视频元素
|
|
564
|
+
*
|
|
565
|
+
* type: 元素类型(video)
|
|
566
|
+
*
|
|
567
|
+
* src: 视频地址
|
|
568
|
+
*
|
|
569
|
+
* autoplay: 自动播放
|
|
570
|
+
*
|
|
571
|
+
* poster: 预览封面
|
|
572
|
+
*
|
|
573
|
+
* ext: 视频后缀,当资源链接缺少后缀时用该字段确认资源类型
|
|
574
|
+
*/
|
|
575
|
+
export interface PPTVideoElement extends PPTBaseElement {
|
|
576
|
+
type: 'video';
|
|
577
|
+
src: string;
|
|
578
|
+
autoplay: boolean;
|
|
579
|
+
poster?: string;
|
|
580
|
+
ext?: string;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* 音频元素
|
|
584
|
+
*
|
|
585
|
+
* type: 元素类型(audio)
|
|
586
|
+
*
|
|
587
|
+
* fixedRatio: 固定图标宽高比例
|
|
588
|
+
*
|
|
589
|
+
* color: 图标颜色
|
|
590
|
+
*
|
|
591
|
+
* loop: 循环播放
|
|
592
|
+
*
|
|
593
|
+
* autoplay: 自动播放
|
|
594
|
+
*
|
|
595
|
+
* src: 音频地址
|
|
596
|
+
*
|
|
597
|
+
* ext: 音频后缀,当资源链接缺少后缀时用该字段确认资源类型
|
|
598
|
+
*/
|
|
599
|
+
export interface PPTAudioElement extends PPTBaseElement {
|
|
600
|
+
type: 'audio';
|
|
601
|
+
fixedRatio: boolean;
|
|
602
|
+
color: string;
|
|
603
|
+
loop: boolean;
|
|
604
|
+
autoplay: boolean;
|
|
605
|
+
src: string;
|
|
606
|
+
ext?: string;
|
|
607
|
+
}
|
|
608
|
+
export type PPTElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTLineElement | PPTChartElement | PPTTableElement | PPTLatexElement | PPTVideoElement | PPTAudioElement;
|
|
609
|
+
export type AnimationType = 'in' | 'out' | 'attention';
|
|
610
|
+
export type AnimationTrigger = 'click' | 'meantime' | 'auto';
|
|
611
|
+
/**
|
|
612
|
+
* 元素动画
|
|
613
|
+
*
|
|
614
|
+
* id: 动画id
|
|
615
|
+
*
|
|
616
|
+
* elId: 元素ID
|
|
617
|
+
*
|
|
618
|
+
* effect: 动画效果
|
|
619
|
+
*
|
|
620
|
+
* type: 动画类型(入场、退场、强调)
|
|
621
|
+
*
|
|
622
|
+
* duration: 动画持续时间
|
|
623
|
+
*
|
|
624
|
+
* trigger: 动画触发方式(click - 单击时、meantime - 与上一动画同时、auto - 上一动画之后)
|
|
625
|
+
*/
|
|
626
|
+
export interface PPTAnimation {
|
|
627
|
+
id: string;
|
|
628
|
+
elId: string;
|
|
629
|
+
effect: string;
|
|
630
|
+
type: AnimationType;
|
|
631
|
+
duration: number;
|
|
632
|
+
trigger: AnimationTrigger;
|
|
633
|
+
}
|
|
634
|
+
export type SlideBackgroundType = 'solid' | 'image' | 'gradient';
|
|
635
|
+
export type SlideBackgroundImageSize = 'cover' | 'contain' | 'repeat';
|
|
636
|
+
export interface SlideBackgroundImage {
|
|
637
|
+
src: string;
|
|
638
|
+
size: SlideBackgroundImageSize;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* 幻灯片背景
|
|
642
|
+
*
|
|
643
|
+
* type: 背景类型(纯色、图片、渐变)
|
|
644
|
+
*
|
|
645
|
+
* color?: 背景颜色(纯色)
|
|
646
|
+
*
|
|
647
|
+
* image?: 图片背景
|
|
648
|
+
*
|
|
649
|
+
* gradientType?: 渐变背景
|
|
650
|
+
*/
|
|
651
|
+
export interface SlideBackground {
|
|
652
|
+
type: SlideBackgroundType;
|
|
653
|
+
color?: string;
|
|
654
|
+
image?: SlideBackgroundImage;
|
|
655
|
+
gradient?: Gradient;
|
|
656
|
+
}
|
|
657
|
+
export type TurningMode = 'no' | 'fade' | 'slideX' | 'slideY' | 'random' | 'slideX3D' | 'slideY3D' | 'rotate' | 'scaleY' | 'scaleX' | 'scale' | 'scaleReverse';
|
|
658
|
+
export interface NoteReply {
|
|
659
|
+
id: string;
|
|
660
|
+
content: string;
|
|
661
|
+
time: number;
|
|
662
|
+
user: string;
|
|
663
|
+
}
|
|
664
|
+
export interface Note {
|
|
665
|
+
id: string;
|
|
666
|
+
content: string;
|
|
667
|
+
time: number;
|
|
668
|
+
user: string;
|
|
669
|
+
elId?: string;
|
|
670
|
+
replies?: NoteReply[];
|
|
671
|
+
}
|
|
672
|
+
export interface SectionTag {
|
|
673
|
+
id: string;
|
|
674
|
+
title?: string;
|
|
675
|
+
}
|
|
676
|
+
export type SlideType = 'cover' | 'contents' | 'transition' | 'content' | 'end';
|
|
677
|
+
/**
|
|
678
|
+
* 幻灯片页面
|
|
679
|
+
*
|
|
680
|
+
* id: 页面ID
|
|
681
|
+
*
|
|
682
|
+
* elements: 元素集合
|
|
683
|
+
*
|
|
684
|
+
* notes?: 批注
|
|
685
|
+
*
|
|
686
|
+
* remark?: 备注
|
|
687
|
+
*
|
|
688
|
+
* background?: 页面背景
|
|
689
|
+
*
|
|
690
|
+
* animations?: 元素动画集合
|
|
691
|
+
*
|
|
692
|
+
* turningMode?: 翻页方式
|
|
693
|
+
*
|
|
694
|
+
* slideType?: 页面类型
|
|
695
|
+
*/
|
|
696
|
+
export interface Slide {
|
|
697
|
+
id: string;
|
|
698
|
+
elements: PPTElement[];
|
|
699
|
+
notes?: Note[];
|
|
700
|
+
remark?: string;
|
|
701
|
+
background?: SlideBackground;
|
|
702
|
+
animations?: PPTAnimation[];
|
|
703
|
+
turningMode?: TurningMode;
|
|
704
|
+
sectionTag?: SectionTag;
|
|
705
|
+
type?: SlideType;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* 幻灯片主题
|
|
709
|
+
*
|
|
710
|
+
* backgroundColor: 页面背景颜色
|
|
711
|
+
*
|
|
712
|
+
* themeColor: 主题色,用于默认创建的形状颜色等
|
|
713
|
+
*
|
|
714
|
+
* fontColor: 字体颜色
|
|
715
|
+
*
|
|
716
|
+
* fontName: 字体
|
|
717
|
+
*/
|
|
718
|
+
export interface SlideTheme {
|
|
719
|
+
backgroundColor: string;
|
|
720
|
+
themeColors: string[];
|
|
721
|
+
fontColor: string;
|
|
722
|
+
fontName: string;
|
|
723
|
+
outline: PPTElementOutline;
|
|
724
|
+
shadow: PPTElementShadow;
|
|
725
|
+
}
|
|
726
|
+
export interface SlideTemplate {
|
|
727
|
+
name: string;
|
|
728
|
+
id: string;
|
|
729
|
+
cover: string;
|
|
730
|
+
origin?: string;
|
|
731
|
+
}
|
|
732
|
+
export {};
|