fika-editor 3.0.0 → 3.0.1
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 +21 -21
- package/README.md +45 -27
- package/dist/embed/350.css +1 -0
- package/dist/embed/350.js +164 -0
- package/dist/embed/agentic-manifest.json +2232 -0
- package/dist/embed/apple-touch-icon.png +0 -0
- package/dist/embed/chunks/1.js +1 -0
- package/dist/embed/chunks/104.js +1 -0
- package/dist/embed/chunks/1074.js +1 -0
- package/dist/embed/chunks/1085.js +1 -0
- package/dist/embed/chunks/1131.css +1 -0
- package/dist/embed/chunks/1131.js +1 -0
- package/dist/embed/chunks/1169.js +1 -0
- package/dist/embed/chunks/1172.js +1 -0
- package/dist/embed/chunks/1212.js +1 -0
- package/dist/embed/chunks/1255.js +1 -0
- package/dist/embed/chunks/1432.js +1 -0
- package/dist/embed/chunks/1436.js +1 -0
- package/dist/embed/chunks/1605.js +1 -0
- package/dist/embed/chunks/1668.js +1 -0
- package/dist/embed/chunks/1804.js +8 -0
- package/dist/embed/chunks/1904.js +104 -0
- package/dist/embed/chunks/1915.js +1 -0
- package/dist/embed/chunks/1916.js +1 -0
- package/dist/embed/chunks/1932.js +1 -0
- package/dist/embed/chunks/2011.js +1 -0
- package/dist/embed/chunks/2020.js +3467 -0
- package/dist/embed/chunks/2131.js +1 -0
- package/dist/embed/chunks/2143.js +62 -0
- package/dist/embed/chunks/2190.js +1 -0
- package/dist/embed/chunks/2246.js +1 -0
- package/dist/embed/chunks/2289.js +80 -0
- package/dist/embed/chunks/2402.js +1 -0
- package/dist/embed/chunks/2407.js +1 -0
- package/dist/embed/chunks/2489.js +1 -0
- package/dist/embed/chunks/2528.js +1 -0
- package/dist/embed/chunks/2632.js +1 -0
- package/dist/embed/chunks/2694.js +1 -0
- package/dist/embed/chunks/2714.js +1 -0
- package/dist/embed/chunks/273.js +24 -0
- package/dist/embed/chunks/2796.js +34 -0
- package/dist/embed/chunks/2807.css +1 -0
- package/dist/embed/chunks/2807.js +1 -0
- package/dist/embed/chunks/3030.js +1 -0
- package/dist/embed/chunks/3031.js +1 -0
- package/dist/embed/chunks/3088.js +1 -0
- package/dist/embed/chunks/3103.js +1 -0
- package/dist/embed/chunks/3143.js +1 -0
- package/dist/embed/chunks/3359.js +1 -0
- package/dist/embed/chunks/3443.js +1 -0
- package/dist/embed/chunks/3479.js +1 -0
- package/dist/embed/chunks/3555.js +1 -0
- package/dist/embed/chunks/3581.js +77 -0
- package/dist/embed/chunks/360.css +1 -0
- package/dist/embed/chunks/360.js +1 -0
- package/dist/embed/chunks/362.js +1 -0
- package/dist/embed/chunks/3729.js +160 -0
- package/dist/embed/chunks/3888.js +1 -0
- package/dist/embed/chunks/3907.js +1 -0
- package/dist/embed/chunks/397.js +1 -0
- package/dist/embed/chunks/401.js +1 -0
- package/dist/embed/chunks/4110.js +1 -0
- package/dist/embed/chunks/4145.js +1 -0
- package/dist/embed/chunks/4335.js +1 -0
- package/dist/embed/chunks/435.js +1 -0
- package/dist/embed/chunks/4354.js +27 -0
- package/dist/embed/chunks/4359.js +1 -0
- package/dist/embed/chunks/4467.js +1 -0
- package/dist/embed/chunks/4515.js +1 -0
- package/dist/embed/chunks/4552.js +287 -0
- package/dist/embed/chunks/4606.js +1 -0
- package/dist/embed/chunks/4607.js +1 -0
- package/dist/embed/chunks/4619.js +86 -0
- package/dist/embed/chunks/4625.js +153 -0
- package/dist/embed/chunks/4632.css +1 -0
- package/dist/embed/chunks/4632.js +1 -0
- package/dist/embed/chunks/4637.js +1 -0
- package/dist/embed/chunks/4794.js +1 -0
- package/dist/embed/chunks/4891.js +226 -0
- package/dist/embed/chunks/4936.js +82 -0
- package/dist/embed/chunks/4950.js +1 -0
- package/dist/embed/chunks/4975.js +255 -0
- package/dist/embed/chunks/5026.js +1 -0
- package/dist/embed/chunks/5075.js +1 -0
- package/dist/embed/chunks/5216.css +1 -0
- package/dist/embed/chunks/5216.js +1 -0
- package/dist/embed/chunks/5239.js +1 -0
- package/dist/embed/chunks/5250.js +1 -0
- package/dist/embed/chunks/5316.js +1 -0
- package/dist/embed/chunks/5437.js +1 -0
- package/dist/embed/chunks/5480.js +1 -0
- package/dist/embed/chunks/5532.js +1 -0
- package/dist/embed/chunks/5659.js +64 -0
- package/dist/embed/chunks/574.js +1 -0
- package/dist/embed/chunks/5768.js +1 -0
- package/dist/embed/chunks/5773.js +1 -0
- package/dist/embed/chunks/5792.js +141 -0
- package/dist/embed/chunks/5809.js +1 -0
- package/dist/embed/chunks/5835.js +1 -0
- package/dist/embed/chunks/5889.js +1 -0
- package/dist/embed/chunks/5901.js +1 -0
- package/dist/embed/chunks/5907.js +1 -0
- package/dist/embed/chunks/5989.js +1 -0
- package/dist/embed/chunks/5992.js +1 -0
- package/dist/embed/chunks/6014.js +1 -0
- package/dist/embed/chunks/6063.js +1 -0
- package/dist/embed/chunks/6136.js +1 -0
- package/dist/embed/chunks/6144.css +1 -0
- package/dist/embed/chunks/6144.js +1 -0
- package/dist/embed/chunks/627.js +115 -0
- package/dist/embed/chunks/6339.js +1 -0
- package/dist/embed/chunks/635.js +1 -0
- package/dist/embed/chunks/6361.js +1 -0
- package/dist/embed/chunks/647.js +1 -0
- package/dist/embed/chunks/6522.js +1 -0
- package/dist/embed/chunks/6567.js +1 -0
- package/dist/embed/chunks/6580.js +1 -0
- package/dist/embed/chunks/6609.css +1 -0
- package/dist/embed/chunks/6609.js +1 -0
- package/dist/embed/chunks/6690.js +1 -0
- package/dist/embed/chunks/6704.js +1 -0
- package/dist/embed/chunks/6778.js +1 -0
- package/dist/embed/chunks/6935.js +1 -0
- package/dist/embed/chunks/6999.js +93 -0
- package/dist/embed/chunks/7048.js +1 -0
- package/dist/embed/chunks/7101.js +1 -0
- package/dist/embed/chunks/7132.js +1 -0
- package/dist/embed/chunks/717.js +148 -0
- package/dist/embed/chunks/7175.js +90 -0
- package/dist/embed/chunks/7193.css +1 -0
- package/dist/embed/chunks/7193.js +1 -0
- package/dist/embed/chunks/7245.js +1 -0
- package/dist/embed/chunks/7255.js +1 -0
- package/dist/embed/chunks/7272.js +1 -0
- package/dist/embed/chunks/7309.js +1 -0
- package/dist/embed/chunks/7311.js +23 -0
- package/dist/embed/chunks/736.js +1 -0
- package/dist/embed/chunks/7376.js +1 -0
- package/dist/embed/chunks/7453.js +1 -0
- package/dist/embed/chunks/7463.js +1 -0
- package/dist/embed/chunks/7468.js +1 -0
- package/dist/embed/chunks/7588.js +41 -0
- package/dist/embed/chunks/7594.js +1 -0
- package/dist/embed/chunks/7854.js +38 -0
- package/dist/embed/chunks/788.js +24 -0
- package/dist/embed/chunks/7916.js +79 -0
- package/dist/embed/chunks/7924.js +1 -0
- package/dist/embed/chunks/7980.js +1 -0
- package/dist/embed/chunks/809.js +1 -0
- package/dist/embed/chunks/810.js +1 -0
- package/dist/embed/chunks/818.js +1 -0
- package/dist/embed/chunks/8212.js +36 -0
- package/dist/embed/chunks/8239.js +1 -0
- package/dist/embed/chunks/8252.js +1 -0
- package/dist/embed/chunks/8378.css +1 -0
- package/dist/embed/chunks/8378.js +1 -0
- package/dist/embed/chunks/8449.js +1 -0
- package/dist/embed/chunks/8516.js +1 -0
- package/dist/embed/chunks/8606.js +1 -0
- package/dist/embed/chunks/862.css +1 -0
- package/dist/embed/chunks/862.js +1 -0
- package/dist/embed/chunks/8620.js +1 -0
- package/dist/embed/chunks/8623.js +138 -0
- package/dist/embed/chunks/8645.js +1 -0
- package/dist/embed/chunks/8716.js +215 -0
- package/dist/embed/chunks/8724.js +1 -0
- package/dist/embed/chunks/8735.js +1 -0
- package/dist/embed/chunks/8941.js +1 -0
- package/dist/embed/chunks/9121.js +1 -0
- package/dist/embed/chunks/919.js +1 -0
- package/dist/embed/chunks/9203.js +1 -0
- package/dist/embed/chunks/9245.js +1 -0
- package/dist/embed/chunks/9252.js +1 -0
- package/dist/embed/chunks/9465.js +5 -0
- package/dist/embed/chunks/9475.js +1 -0
- package/dist/embed/chunks/9657.css +1 -0
- package/dist/embed/chunks/9657.js +1 -0
- package/dist/embed/chunks/968.js +1 -0
- package/dist/embed/chunks/9739.js +1 -0
- package/dist/embed/chunks/9761.js +1 -0
- package/dist/embed/chunks/9800.css +1 -0
- package/dist/embed/chunks/9800.js +1 -0
- package/dist/embed/chunks/9976.js +1 -0
- package/dist/embed/favicon-32.png +0 -0
- package/dist/embed/favicon.ico +0 -0
- package/dist/embed/favicon.svg +7 -0
- package/dist/embed/fika-embed.css +1 -0
- package/dist/embed/fika-embed.js +5 -0
- package/dist/embed/logo.png +0 -0
- package/dist/embed/static/font/fonts/Inter.woff2 +0 -0
- package/dist/embed/static/font/fonts/JetBrainsMono.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/Lato.woff2 +0 -0
- package/dist/embed/static/font/fonts/Literata.woff2 +0 -0
- package/dist/embed/static/font/fonts/Merriweather.woff2 +0 -0
- package/dist/embed/static/font/fonts/Montserrat.woff2 +0 -0
- package/dist/embed/static/font/fonts/OpenSans.woff2 +0 -0
- package/dist/embed/static/font/fonts/Roboto.woff2 +0 -0
- package/dist/embed/static/font/fonts/SourceSansPro.woff2 +0 -0
- package/dist/embed/static/font/fonts/SourceSerif4.woff2 +0 -0
- package/dist/types/components/Button.d.ts +17 -0
- package/dist/types/components/ButtonGroup.d.ts +8 -0
- package/dist/types/components/ChartDataEditor.d.ts +13 -0
- package/dist/types/components/Checkbox.d.ts +12 -0
- package/dist/types/components/CodeEditor/CodeEditorSkeleton.d.ts +8 -0
- package/dist/types/components/CodeEditor/codeMirror.d.ts +23 -0
- package/dist/types/components/CodeEditor/index.d.ts +14 -0
- package/dist/types/components/CodeEditor/lazy.d.ts +3 -0
- package/dist/types/components/ColorButton.d.ts +8 -0
- package/dist/types/components/ColorListButton.d.ts +8 -0
- package/dist/types/components/ColorPicker/Alpha.d.ts +12 -0
- package/dist/types/components/ColorPicker/Checkboard.d.ts +11 -0
- package/dist/types/components/ColorPicker/EditableInput.d.ts +12 -0
- package/dist/types/components/ColorPicker/Hue.d.ts +13 -0
- package/dist/types/components/ColorPicker/Saturation.d.ts +13 -0
- package/dist/types/components/ColorPicker/index.d.ts +11 -0
- package/dist/types/components/ColorSwatches.d.ts +21 -0
- package/dist/types/components/ConfirmDialog.d.ts +16 -0
- package/dist/types/components/Contextmenu/MenuContent.d.ts +8 -0
- package/dist/types/components/Contextmenu/index.d.ts +14 -0
- package/dist/types/components/Contextmenu/types.d.ts +13 -0
- package/dist/types/components/Divider.d.ts +9 -0
- package/dist/types/components/Draggable.d.ts +28 -0
- package/dist/types/components/Drawer.d.ts +13 -0
- package/dist/types/components/FileInput.d.ts +11 -0
- package/dist/types/components/FitText.d.ts +17 -0
- package/dist/types/components/FontSizeControl.d.ts +12 -0
- package/dist/types/components/FormatChip.d.ts +14 -0
- package/dist/types/components/FullscreenSpin.d.ts +9 -0
- package/dist/types/components/GradientBar.d.ts +12 -0
- package/dist/types/components/Icon.d.ts +144 -0
- package/dist/types/components/InkDialog.d.ts +37 -0
- package/dist/types/components/InkLoader.d.ts +2 -0
- package/dist/types/components/InkPaintSwatches.d.ts +14 -0
- package/dist/types/components/InkProgress.d.ts +6 -0
- package/dist/types/components/Input.d.ts +25 -0
- package/dist/types/components/JobProgressOverlay.d.ts +18 -0
- package/dist/types/components/LaTeXEditor/LatexEditorSkeleton.d.ts +1 -0
- package/dist/types/components/LaTeXEditor/MathFieldSkeleton.d.ts +4 -0
- package/dist/types/components/LaTeXEditor/hfmath.d.ts +5 -0
- package/dist/types/components/LaTeXEditor/index.d.ts +12 -0
- package/dist/types/components/LaTeXEditor/lazy.d.ts +3 -0
- package/dist/types/components/MermaidEditor/MermaidEditorSkeleton.d.ts +1 -0
- package/dist/types/components/MermaidEditor/index.d.ts +8 -0
- package/dist/types/components/MermaidEditor/lazy.d.ts +3 -0
- package/dist/types/components/Message.d.ts +15 -0
- package/dist/types/components/Modal.d.ts +16 -0
- package/dist/types/components/MoveablePanel.d.ts +20 -0
- package/dist/types/components/NumberInput.d.ts +24 -0
- package/dist/types/components/OverlayTrigger.d.ts +14 -0
- package/dist/types/components/Popover.d.ts +24 -0
- package/dist/types/components/PopoverMenuItem.d.ts +11 -0
- package/dist/types/components/RadioButton.d.ts +11 -0
- package/dist/types/components/RadioGroup.d.ts +12 -0
- package/dist/types/components/Select.d.ts +23 -0
- package/dist/types/components/SelectCustom.d.ts +12 -0
- package/dist/types/components/Slider.d.ts +26 -0
- package/dist/types/components/Switch.d.ts +11 -0
- package/dist/types/components/Tabs.d.ts +23 -0
- package/dist/types/components/TextArea.d.ts +22 -0
- package/dist/types/components/WritingBoard.d.ts +28 -0
- package/dist/types/components/draggableLayout.d.ts +35 -0
- package/dist/types/components/writingBoardCommands.d.ts +7 -0
- package/dist/types/configs/animation.d.ts +274 -0
- package/dist/types/configs/chart.d.ts +11 -0
- package/dist/types/configs/code.d.ts +193 -0
- package/dist/types/configs/element.d.ts +3 -0
- package/dist/types/configs/exportMediaResolver.d.ts +11 -0
- package/dist/types/configs/exportTabs.d.ts +11 -0
- package/dist/types/configs/featureFlags.d.ts +15 -0
- package/dist/types/configs/font.d.ts +27 -0
- package/dist/types/configs/headerMenu.d.ts +4 -0
- package/dist/types/configs/hotkey.d.ts +42 -0
- package/dist/types/configs/imageClip.d.ts +30 -0
- package/dist/types/configs/inkPaint.d.ts +37 -0
- package/dist/types/configs/laser.d.ts +10 -0
- package/dist/types/configs/lines.d.ts +21 -0
- package/dist/types/configs/localeSwitcher.d.ts +2 -0
- package/dist/types/configs/mediaUpload.d.ts +71 -0
- package/dist/types/configs/mime.d.ts +4 -0
- package/dist/types/configs/shapes.d.ts +26 -0
- package/dist/types/configs/starterPresentation.d.ts +32 -0
- package/dist/types/configs/storage.d.ts +1 -0
- package/dist/types/configs/symbol/arrow.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/action.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/activity.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/expression.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/faunaFlora.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/food.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/objects.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/symbols.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/travel.d.ts +2 -0
- package/dist/types/configs/symbol/graph.d.ts +2 -0
- package/dist/types/configs/symbol/index.d.ts +8 -0
- package/dist/types/configs/symbol/letter.d.ts +2 -0
- package/dist/types/configs/symbol/math.d.ts +2 -0
- package/dist/types/configs/symbol/number.d.ts +2 -0
- package/dist/types/configs/table.d.ts +15 -0
- package/dist/types/configs/templates.d.ts +19 -0
- package/dist/types/configs/textPresets.d.ts +85 -0
- package/dist/types/configs/theme.d.ts +44 -0
- package/dist/types/directive/tooltip.d.ts +5 -0
- package/dist/types/embed/EmbedRoot.d.ts +5 -0
- package/dist/types/embed/agentic/composition.d.ts +84 -0
- package/dist/types/embed/agentic/createAgenticApi.d.ts +11 -0
- package/dist/types/embed/agentic/fixtures.d.ts +30 -0
- package/dist/types/embed/agentic/helpers.d.ts +115 -0
- package/dist/types/embed/agentic/layouts.d.ts +114 -0
- package/dist/types/embed/agentic/manifestDocs.d.ts +73 -0
- package/dist/types/embed/agentic/qa.d.ts +47 -0
- package/dist/types/embed/agentic/styles.d.ts +131 -0
- package/dist/types/embed/agentic/templates.d.ts +31 -0
- package/dist/types/embed/agentic/types.d.ts +2006 -0
- package/dist/types/embed/agentic/validators.d.ts +32 -0
- package/dist/types/embed/createController.d.ts +7 -0
- package/dist/types/embed/index.d.ts +9 -0
- package/dist/types/embed/inferViewport.d.ts +11 -0
- package/dist/types/embed/localeBridge.d.ts +4 -0
- package/dist/types/embed/mount.d.ts +12 -0
- package/dist/types/embed/types.d.ts +183 -0
- package/dist/types/hooks/useAddSlidesOrElements.d.ts +6 -0
- package/dist/types/hooks/useAlignActiveElement.d.ts +5 -0
- package/dist/types/hooks/useAlignElementToCanvas.d.ts +5 -0
- package/dist/types/hooks/useClickOutside.d.ts +7 -0
- package/dist/types/hooks/useCombineElement.d.ts +7 -0
- package/dist/types/hooks/useCopyAndPasteElement.d.ts +7 -0
- package/dist/types/hooks/useCreateElement.d.ts +50 -0
- package/dist/types/hooks/useDeleteElement.d.ts +5 -0
- package/dist/types/hooks/useElementContextmenu.d.ts +6 -0
- package/dist/types/hooks/useExport.d.ts +13 -0
- package/dist/types/hooks/useGlobalHotkey.d.ts +2 -0
- package/dist/types/hooks/useHeldSlideElement.d.ts +9 -0
- package/dist/types/hooks/useHideElement.d.ts +6 -0
- package/dist/types/hooks/useHistorySnapshot.d.ts +6 -0
- package/dist/types/hooks/useHoldAfterOpen.d.ts +2 -0
- package/dist/types/hooks/useImageHandler.d.ts +4 -0
- package/dist/types/hooks/useImport.d.ts +21 -0
- package/dist/types/hooks/useLink.d.ts +6 -0
- package/dist/types/hooks/useLockElement.d.ts +6 -0
- package/dist/types/hooks/useMediaPlayerTeleport.d.ts +5 -0
- package/dist/types/hooks/useMediaPoster.d.ts +8 -0
- package/dist/types/hooks/useMediaQueue.d.ts +24 -0
- package/dist/types/hooks/useMoveElement.d.ts +4 -0
- package/dist/types/hooks/useOrderElement.d.ts +6 -0
- package/dist/types/hooks/useOverlayPhase.d.ts +14 -0
- package/dist/types/hooks/usePasteDataTransfer.d.ts +7 -0
- package/dist/types/hooks/usePasteEvent.d.ts +2 -0
- package/dist/types/hooks/usePasteTextClipboardData.d.ts +8 -0
- package/dist/types/hooks/useScaleCanvas.d.ts +25 -0
- package/dist/types/hooks/useScreening.d.ts +8 -0
- package/dist/types/hooks/useSearch.d.ts +28 -0
- package/dist/types/hooks/useSectionHandler.d.ts +8 -0
- package/dist/types/hooks/useSelectElement.d.ts +5 -0
- package/dist/types/hooks/useShapeFormatPainter.d.ts +4 -0
- package/dist/types/hooks/useSlideBackgroundStyle.d.ts +19 -0
- package/dist/types/hooks/useSlideHandler.d.ts +16 -0
- package/dist/types/hooks/useSlideTheme.d.ts +16 -0
- package/dist/types/hooks/useUniformDisplayElement.d.ts +6 -0
- package/dist/types/i18n/cs/canvas/index.d.ts +3 -0
- package/dist/types/i18n/cs/common/index.d.ts +3 -0
- package/dist/types/i18n/cs/components/index.d.ts +3 -0
- package/dist/types/i18n/cs/configs/index.d.ts +3 -0
- package/dist/types/i18n/cs/editor/index.d.ts +3 -0
- package/dist/types/i18n/cs/export/index.d.ts +3 -0
- package/dist/types/i18n/cs/index.d.ts +3 -0
- package/dist/types/i18n/cs/mobile/index.d.ts +3 -0
- package/dist/types/i18n/cs/screen/index.d.ts +3 -0
- package/dist/types/i18n/en/canvas/index.d.ts +3 -0
- package/dist/types/i18n/en/common/index.d.ts +3 -0
- package/dist/types/i18n/en/components/index.d.ts +3 -0
- package/dist/types/i18n/en/configs/index.d.ts +3 -0
- package/dist/types/i18n/en/editor/index.d.ts +3 -0
- package/dist/types/i18n/en/export/index.d.ts +3 -0
- package/dist/types/i18n/en/index.d.ts +3 -0
- package/dist/types/i18n/en/mobile/index.d.ts +3 -0
- package/dist/types/i18n/en/screen/index.d.ts +3 -0
- package/dist/types/i18n/formatters.d.ts +6 -0
- package/dist/types/i18n/getLL.d.ts +8 -0
- package/dist/types/i18n/i18n-react.d.ts +23 -0
- package/dist/types/i18n/i18n-types.d.ts +10276 -0
- package/dist/types/i18n/i18n-util.async.d.ts +16 -0
- package/dist/types/i18n/i18n-util.d.ts +24 -0
- package/dist/types/i18n/i18n-util.sync.d.ts +4 -0
- package/dist/types/i18n/locale.d.ts +12 -0
- package/dist/types/i18n/pl/canvas/index.d.ts +3 -0
- package/dist/types/i18n/pl/common/index.d.ts +3 -0
- package/dist/types/i18n/pl/components/index.d.ts +3 -0
- package/dist/types/i18n/pl/configs/index.d.ts +3 -0
- package/dist/types/i18n/pl/editor/index.d.ts +3 -0
- package/dist/types/i18n/pl/export/index.d.ts +3 -0
- package/dist/types/i18n/pl/index.d.ts +3 -0
- package/dist/types/i18n/pl/mobile/index.d.ts +3 -0
- package/dist/types/i18n/pl/screen/index.d.ts +3 -0
- package/dist/types/i18n/sk/canvas/index.d.ts +3 -0
- package/dist/types/i18n/sk/common/index.d.ts +3 -0
- package/dist/types/i18n/sk/components/index.d.ts +3 -0
- package/dist/types/i18n/sk/configs/index.d.ts +3 -0
- package/dist/types/i18n/sk/editor/index.d.ts +3 -0
- package/dist/types/i18n/sk/export/index.d.ts +3 -0
- package/dist/types/i18n/sk/index.d.ts +3 -0
- package/dist/types/i18n/sk/mobile/index.d.ts +3 -0
- package/dist/types/i18n/sk/screen/index.d.ts +3 -0
- package/dist/types/i18n/useI18nContext.d.ts +1 -0
- package/dist/types/previewRaster/diffPaintedSlide.d.ts +11 -0
- package/dist/types/previewRaster/index.d.ts +9 -0
- package/dist/types/previewRaster/painters/background.d.ts +2 -0
- package/dist/types/previewRaster/painters/booth.d.ts +13 -0
- package/dist/types/previewRaster/painters/chart.d.ts +2 -0
- package/dist/types/previewRaster/painters/code.d.ts +2 -0
- package/dist/types/previewRaster/painters/image.d.ts +2 -0
- package/dist/types/previewRaster/painters/index.d.ts +3 -0
- package/dist/types/previewRaster/painters/line.d.ts +2 -0
- package/dist/types/previewRaster/painters/media.d.ts +2 -0
- package/dist/types/previewRaster/painters/shape.d.ts +2 -0
- package/dist/types/previewRaster/painters/table.d.ts +2 -0
- package/dist/types/previewRaster/painters/text.d.ts +2 -0
- package/dist/types/previewRaster/planSlideRaster.d.ts +19 -0
- package/dist/types/previewRaster/rasterCache.d.ts +19 -0
- package/dist/types/previewRaster/scheduler.d.ts +4 -0
- package/dist/types/previewRaster/stagePool.d.ts +36 -0
- package/dist/types/previewRaster/stats.d.ts +10 -0
- package/dist/types/previewRaster/subscribeSlides.d.ts +10 -0
- package/dist/types/previewRaster/types.d.ts +12 -0
- package/dist/types/services/fetch.d.ts +2 -0
- package/dist/types/services/index.d.ts +10 -0
- package/dist/types/store/accessors.d.ts +21 -0
- package/dist/types/store/importConfirm.d.ts +13 -0
- package/dist/types/store/index.d.ts +10 -0
- package/dist/types/store/keyboard.d.ts +21 -0
- package/dist/types/store/main.d.ts +83 -0
- package/dist/types/store/screen.d.ts +8 -0
- package/dist/types/store/slides.d.ts +3289 -0
- package/dist/types/store/snapshot.d.ts +16 -0
- package/dist/types/types/css.d.ts +7 -0
- package/dist/types/types/edit.d.ts +118 -0
- package/dist/types/types/export.d.ts +1 -0
- package/dist/types/types/injectKey.d.ts +12 -0
- package/dist/types/types/mobile.d.ts +1 -0
- package/dist/types/types/slides.d.ts +599 -0
- package/dist/types/types/toolbar.d.ts +9 -0
- package/dist/types/utils/agentText.d.ts +28 -0
- package/dist/types/utils/assetBase.d.ts +4 -0
- package/dist/types/utils/canvasHitTest.d.ts +188 -0
- package/dist/types/utils/canvasPointer.d.ts +53 -0
- package/dist/types/utils/canvasZoom.d.ts +36 -0
- package/dist/types/utils/clipboard.d.ts +9 -0
- package/dist/types/utils/clonePlain.d.ts +1 -0
- package/dist/types/utils/codeHighlight.d.ts +84 -0
- package/dist/types/utils/codePptxExport.d.ts +44 -0
- package/dist/types/utils/commandHistory.d.ts +17 -0
- package/dist/types/utils/commitSlideElements.d.ts +6 -0
- package/dist/types/utils/common.d.ts +30 -0
- package/dist/types/utils/crypto.d.ts +10 -0
- package/dist/types/utils/cssm.d.ts +4 -0
- package/dist/types/utils/database.d.ts +20 -0
- package/dist/types/utils/debounce.d.ts +19 -0
- package/dist/types/utils/element.d.ts +369 -0
- package/dist/types/utils/elementOrder.d.ts +8 -0
- package/dist/types/utils/elementOutline.d.ts +41 -0
- package/dist/types/utils/elementPaint.d.ts +129 -0
- package/dist/types/utils/emitter.d.ts +54 -0
- package/dist/types/utils/exportFonts.d.ts +22 -0
- package/dist/types/utils/fitLabel.d.ts +17 -0
- package/dist/types/utils/font.d.ts +14 -0
- package/dist/types/utils/freehand.d.ts +57 -0
- package/dist/types/utils/fullscreen.d.ts +3 -0
- package/dist/types/utils/gestureBind.d.ts +18 -0
- package/dist/types/utils/hotkeyTarget.d.ts +2 -0
- package/dist/types/utils/htmlParser/format.d.ts +3 -0
- package/dist/types/utils/htmlParser/index.d.ts +4 -0
- package/dist/types/utils/htmlParser/lexer.d.ts +2 -0
- package/dist/types/utils/htmlParser/parser.d.ts +15 -0
- package/dist/types/utils/htmlParser/stringify.d.ts +3 -0
- package/dist/types/utils/htmlParser/tags.d.ts +4 -0
- package/dist/types/utils/htmlParser/types.d.ts +55 -0
- package/dist/types/utils/hyperlinkFollow.d.ts +12 -0
- package/dist/types/utils/image.d.ts +25 -0
- package/dist/types/utils/imageBitmapCache.d.ts +6 -0
- package/dist/types/utils/imagePaintSample.d.ts +34 -0
- package/dist/types/utils/importApply.d.ts +31 -0
- package/dist/types/utils/inkCommands.d.ts +68 -0
- package/dist/types/utils/jobProgress.d.ts +36 -0
- package/dist/types/utils/latex.d.ts +27 -0
- package/dist/types/utils/latexToOmml.d.ts +28 -0
- package/dist/types/utils/liveElementOffset.d.ts +56 -0
- package/dist/types/utils/liveElementPaint.d.ts +13 -0
- package/dist/types/utils/liveElementSize.d.ts +33 -0
- package/dist/types/utils/liveLayoutCommit.d.ts +2 -0
- package/dist/types/utils/markdown.d.ts +48 -0
- package/dist/types/utils/math.d.ts +90 -0
- package/dist/types/utils/mediaFile.d.ts +14 -0
- package/dist/types/utils/mediaLayout.d.ts +24 -0
- package/dist/types/utils/mediaPoster.d.ts +12 -0
- package/dist/types/utils/mermaid.d.ts +18 -0
- package/dist/types/utils/message.d.ts +27 -0
- package/dist/types/utils/object.d.ts +10 -0
- package/dist/types/utils/openContextmenu.d.ts +29 -0
- package/dist/types/utils/placeholderLayout.d.ts +64 -0
- package/dist/types/utils/placeholderPaint.d.ts +57 -0
- package/dist/types/utils/portal.d.ts +37 -0
- package/dist/types/utils/pptxImportDiagnostics.d.ts +36 -0
- package/dist/types/utils/pptxImportFidelity.d.ts +138 -0
- package/dist/types/utils/pptxImportFonts.d.ts +34 -0
- package/dist/types/utils/pptxImportMetrics.d.ts +29 -0
- package/dist/types/utils/pptxImportPicture.d.ts +30 -0
- package/dist/types/utils/pptxImportText.d.ts +26 -0
- package/dist/types/utils/pptxSourcePackage.d.ts +19 -0
- package/dist/types/utils/pptxStructuredText.d.ts +6 -0
- package/dist/types/utils/pptxUnit.d.ts +19 -0
- package/dist/types/utils/prosemirror/caret.d.ts +22 -0
- package/dist/types/utils/prosemirror/commands/applyPlaceholderStyles.d.ts +29 -0
- package/dist/types/utils/prosemirror/commands/replaceText.d.ts +2 -0
- package/dist/types/utils/prosemirror/commands/setListStyle.d.ts +4 -0
- package/dist/types/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
- package/dist/types/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
- package/dist/types/utils/prosemirror/commands/toggleList.d.ts +8 -0
- package/dist/types/utils/prosemirror/commands/wrapEmptyBulletList.d.ts +5 -0
- package/dist/types/utils/prosemirror/commitEditor.d.ts +7 -0
- package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
- package/dist/types/utils/prosemirror/index.d.ts +6 -0
- package/dist/types/utils/prosemirror/plugins/index.d.ts +7 -0
- package/dist/types/utils/prosemirror/plugins/inputrules.d.ts +7 -0
- package/dist/types/utils/prosemirror/plugins/keymap.d.ts +3 -0
- package/dist/types/utils/prosemirror/plugins/placeholder.d.ts +2 -0
- package/dist/types/utils/prosemirror/plugins/placeholderFill.d.ts +3 -0
- package/dist/types/utils/prosemirror/richTextAttrsFromElement.d.ts +3 -0
- package/dist/types/utils/prosemirror/schema/index.d.ts +26 -0
- package/dist/types/utils/prosemirror/schema/marks.d.ts +18 -0
- package/dist/types/utils/prosemirror/schema/nodes.d.ts +12 -0
- package/dist/types/utils/prosemirror/selection.d.ts +15 -0
- package/dist/types/utils/prosemirror/utils.d.ts +69 -0
- package/dist/types/utils/scribbleJoin.d.ts +27 -0
- package/dist/types/utils/selection.d.ts +1 -0
- package/dist/types/utils/slideOrder.d.ts +3 -0
- package/dist/types/utils/snap.d.ts +69 -0
- package/dist/types/utils/spatial/hitIndex.d.ts +18 -0
- package/dist/types/utils/spatial/index.d.ts +3 -0
- package/dist/types/utils/spatial/segment.d.ts +8 -0
- package/dist/types/utils/spatial/snapIndex.d.ts +24 -0
- package/dist/types/utils/svg2Base64.d.ts +1 -0
- package/dist/types/utils/svgPathParser.d.ts +12 -0
- package/dist/types/utils/textBoxLock.d.ts +17 -0
- package/dist/types/utils/textContrast.d.ts +204 -0
- package/dist/types/utils/textFit.d.ts +195 -0
- package/dist/types/utils/textParser.d.ts +5 -0
- package/dist/types/utils/tooltipBind.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/AlignmentLine.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/CanvasScrollbars.d.ts +16 -0
- package/dist/types/views/Editor/Canvas/EditableElement.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/EditableElement.equal.d.ts +17 -0
- package/dist/types/views/Editor/Canvas/ElementCreateSelection.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/AnimationIndex.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/CodeToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/LinkHandler.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/floatCompare.d.ts +15 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/index.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/GridLines.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/HitLayer.d.ts +19 -0
- package/dist/types/views/Editor/Canvas/LinkDialog.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/MouseSelection.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/Operate/BorderLine.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/CommonElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/ContextMenuBridge.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/Operate/ImageElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/LineElementOperate.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/Operate/MediaElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/MultiSelectOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/RotateHandler.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/Operate/ShapeElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/TableElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/TextElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/index.d.ts +25 -0
- package/dist/types/views/Editor/Canvas/Operate/operateCompare.d.ts +33 -0
- package/dist/types/views/Editor/Canvas/Operate/operateMemo.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/Operate/stopHandleEvent.d.ts +3 -0
- package/dist/types/views/Editor/Canvas/Operate/useLatest.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/Ruler.d.ts +14 -0
- package/dist/types/views/Editor/Canvas/ShapeCreateCanvas.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/ViewportBackground.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/elementListSync.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/hooks/useCommonOperate.d.ts +44 -0
- package/dist/types/views/Editor/Canvas/hooks/useDragElement.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/hooks/useDragLineElement.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/hooks/useDrop.d.ts +4 -0
- package/dist/types/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/hooks/useMouseSelection.d.ts +14 -0
- package/dist/types/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/hooks/useOperateChrome.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/hooks/useRotateElement.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/hooks/useRotateGroupElement.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/hooks/useScaleElement.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/hooks/useSelectElement.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/hooks/useViewportSize.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/index.d.ts +6 -0
- package/dist/types/views/Editor/CanvasTool/ChartPool.d.ts +8 -0
- package/dist/types/views/Editor/CanvasTool/LinePool.d.ts +10 -0
- package/dist/types/views/Editor/CanvasTool/MediaPicker.d.ts +7 -0
- package/dist/types/views/Editor/CanvasTool/SVGPathEditor.d.ts +8 -0
- package/dist/types/views/Editor/CanvasTool/ShapeItemThumbnail.d.ts +12 -0
- package/dist/types/views/Editor/CanvasTool/ShapePool.d.ts +15 -0
- package/dist/types/views/Editor/CanvasTool/SymbolPool.d.ts +7 -0
- package/dist/types/views/Editor/CanvasTool/TableGenerator.d.ts +12 -0
- package/dist/types/views/Editor/CanvasTool/VirtualSymbolGrid.d.ts +10 -0
- package/dist/types/views/Editor/CanvasTool/index.d.ts +7 -0
- package/dist/types/views/Editor/ChartDataEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/CodeEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/EditorHeader/HotkeyDoc.d.ts +6 -0
- package/dist/types/views/Editor/EditorHeader/index.d.ts +6 -0
- package/dist/types/views/Editor/ExportDialog/index.d.ts +4 -0
- package/dist/types/views/Editor/ImportReplaceDialog.d.ts +2 -0
- package/dist/types/views/Editor/InlineMathEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/LatexEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/MarkupPanel.d.ts +2 -0
- package/dist/types/views/Editor/MermaidEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/NotesPanel.d.ts +2 -0
- package/dist/types/views/Editor/Remark/Editor.d.ts +6 -0
- package/dist/types/views/Editor/Remark/index.d.ts +11 -0
- package/dist/types/views/Editor/SearchPanel.d.ts +2 -0
- package/dist/types/views/Editor/SelectPanel.d.ts +2 -0
- package/dist/types/views/Editor/SlideCodePanel.d.ts +11 -0
- package/dist/types/views/Editor/Thumbnails/ExportThemeDialog.d.ts +10 -0
- package/dist/types/views/Editor/Thumbnails/LayoutPicker.d.ts +9 -0
- package/dist/types/views/Editor/Thumbnails/index.d.ts +6 -0
- package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +20 -0
- package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +13 -0
- package/dist/types/views/Editor/Toolbar/ElementAnimationPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementPositionPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.d.ts +4 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/CodeStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/index.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/MultiPositionPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/MultiStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/SlideAnimationPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/SlideDesignPanel/ViewportSizeSetting.d.ts +7 -0
- package/dist/types/views/Editor/Toolbar/SlideDesignPanel/index.d.ts +7 -0
- package/dist/types/views/Editor/Toolbar/common/AnimationPool.d.ts +17 -0
- package/dist/types/views/Editor/Toolbar/common/BoxInsetControl.d.ts +14 -0
- package/dist/types/views/Editor/Toolbar/common/ElementColorMask.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementFilter.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementFlip.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOpacity.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +5 -0
- package/dist/types/views/Editor/Toolbar/common/ElementShadow.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/PanelSection.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/RichTextBase.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/SVGLine.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/TextStyleContent.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/handleElement.d.ts +19 -0
- package/dist/types/views/Editor/Toolbar/common/panelSwitch.d.ts +4 -0
- package/dist/types/views/Editor/Toolbar/common/textBoxStyle.d.ts +25 -0
- package/dist/types/views/Editor/Toolbar/index.d.ts +6 -0
- package/dist/types/views/Editor/Toolbar/paneSize.d.ts +15 -0
- package/dist/types/views/Editor/index.d.ts +2 -0
- package/dist/types/views/Editor/slideCodeMirror.d.ts +17 -0
- package/dist/types/views/Editor/slideCodeUtils.d.ts +14 -0
- package/dist/types/views/Editor/slideValidator.d.ts +12 -0
- package/dist/types/views/Mobile/MobileEditor/ElementToolbar.d.ts +1 -0
- package/dist/types/views/Mobile/MobileEditor/Header.d.ts +5 -0
- package/dist/types/views/Mobile/MobileEditor/MobileEditableElement.d.ts +7 -0
- package/dist/types/views/Mobile/MobileEditor/MobileOperate.d.ts +12 -0
- package/dist/types/views/Mobile/MobileEditor/SlideToolbar.d.ts +1 -0
- package/dist/types/views/Mobile/MobileEditor/index.d.ts +5 -0
- package/dist/types/views/Mobile/MobilePlayer.d.ts +5 -0
- package/dist/types/views/Mobile/MobilePreview.d.ts +5 -0
- package/dist/types/views/Mobile/MobileThumbnails.d.ts +3 -0
- package/dist/types/views/Mobile/index.d.ts +1 -0
- package/dist/types/views/Screen/AudienceView.d.ts +1 -0
- package/dist/types/views/Screen/BaseView.d.ts +3 -0
- package/dist/types/views/Screen/BottomThumbnails.d.ts +1 -0
- package/dist/types/views/Screen/CountdownTimer.d.ts +6 -0
- package/dist/types/views/Screen/LaserColorSwatches.d.ts +8 -0
- package/dist/types/views/Screen/LaserTrailOverlay.d.ts +11 -0
- package/dist/types/views/Screen/PresenterToolbar.d.ts +30 -0
- package/dist/types/views/Screen/PresenterView.d.ts +3 -0
- package/dist/types/views/Screen/ScreenElement.d.ts +12 -0
- package/dist/types/views/Screen/ScreenShell.d.ts +2 -0
- package/dist/types/views/Screen/ScreenSlide.d.ts +11 -0
- package/dist/types/views/Screen/ScreenSlideList.d.ts +15 -0
- package/dist/types/views/Screen/SlideThumbnails.d.ts +7 -0
- package/dist/types/views/Screen/WritingBoardTool.d.ts +9 -0
- package/dist/types/views/Screen/hooks/useExecPlay.d.ts +33 -0
- package/dist/types/views/Screen/hooks/useFullscreen.d.ts +5 -0
- package/dist/types/views/Screen/hooks/useScreenTools.d.ts +20 -0
- package/dist/types/views/Screen/hooks/useSlideSize.d.ts +11 -0
- package/dist/types/views/Screen/index.d.ts +2 -0
- package/dist/types/views/Screen/lazy.d.ts +2 -0
- package/dist/types/views/Screen/screenWindow.d.ts +11 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +13 -0
- package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
- package/dist/types/views/components/element/AudioElement/ScreenAudioElement.d.ts +6 -0
- package/dist/types/views/components/element/AudioElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ChartElement/BaseChartElement.d.ts +9 -0
- package/dist/types/views/components/element/ChartElement/Chart.d.ts +13 -0
- package/dist/types/views/components/element/ChartElement/chartBooth.d.ts +2 -0
- package/dist/types/views/components/element/ChartElement/chartOption.d.ts +17 -0
- package/dist/types/views/components/element/ChartElement/index.d.ts +9 -0
- package/dist/types/views/components/element/CodeElement/BaseCodeElement.d.ts +6 -0
- package/dist/types/views/components/element/CodeElement/CodeBlockSkeleton.d.ts +13 -0
- package/dist/types/views/components/element/CodeElement/CodeContent.d.ts +6 -0
- package/dist/types/views/components/element/CodeElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ElementOutline.d.ts +8 -0
- package/dist/types/views/components/element/ImageElement/BaseImageElement.d.ts +6 -0
- package/dist/types/views/components/element/ImageElement/ImageBitmapSurface.d.ts +10 -0
- package/dist/types/views/components/element/ImageElement/ImageClipHandler.d.ts +15 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.d.ts +8 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImageRectOutline.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/index.d.ts +6 -0
- package/dist/types/views/components/element/ImageElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/useClipImage.d.ts +10 -0
- package/dist/types/views/components/element/ImageElement/useFilter.d.ts +4 -0
- package/dist/types/views/components/element/ImageElement/useImageBitmap.d.ts +2 -0
- package/dist/types/views/components/element/LatexElement/BaseLatexElement.d.ts +6 -0
- package/dist/types/views/components/element/LatexElement/LatexContent.d.ts +6 -0
- package/dist/types/views/components/element/LatexElement/index.d.ts +9 -0
- package/dist/types/views/components/element/LineElement/BaseLineElement.d.ts +6 -0
- package/dist/types/views/components/element/LineElement/LinePointMarker.d.ts +12 -0
- package/dist/types/views/components/element/LineElement/index.d.ts +9 -0
- package/dist/types/views/components/element/MediaPlayer/index.d.ts +20 -0
- package/dist/types/views/components/element/MediaPlayer/useMSE.d.ts +4 -0
- package/dist/types/views/components/element/MediaPlayer/useMediaPlayback.d.ts +67 -0
- package/dist/types/views/components/element/MermaidElement/BaseMermaidElement.d.ts +6 -0
- package/dist/types/views/components/element/MermaidElement/MermaidContent.d.ts +6 -0
- package/dist/types/views/components/element/MermaidElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ProsemirrorEditor.d.ts +60 -0
- package/dist/types/views/components/element/ShapeElement/BaseShapeElement.d.ts +6 -0
- package/dist/types/views/components/element/ShapeElement/GradientDefs.d.ts +9 -0
- package/dist/types/views/components/element/ShapeElement/PatternDefs.d.ts +6 -0
- package/dist/types/views/components/element/ShapeElement/index.d.ts +10 -0
- package/dist/types/views/components/element/ShapeElement/shapePaintEqual.d.ts +15 -0
- package/dist/types/views/components/element/TableElement/BaseTableElement.d.ts +6 -0
- package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +12 -0
- package/dist/types/views/components/element/TableElement/EditableTable.d.ts +19 -0
- package/dist/types/views/components/element/TableElement/StaticTable.d.ts +12 -0
- package/dist/types/views/components/element/TableElement/cellEdit.d.ts +15 -0
- package/dist/types/views/components/element/TableElement/gridCompare.d.ts +28 -0
- package/dist/types/views/components/element/TableElement/index.d.ts +10 -0
- package/dist/types/views/components/element/TableElement/useHideCells.d.ts +4 -0
- package/dist/types/views/components/element/TableElement/useMathReady.d.ts +4 -0
- package/dist/types/views/components/element/TableElement/useSubThemeColor.d.ts +9 -0
- package/dist/types/views/components/element/TableElement/utils.d.ts +17 -0
- package/dist/types/views/components/element/TextElement/BaseTextElement.d.ts +15 -0
- package/dist/types/views/components/element/TextElement/index.d.ts +13 -0
- package/dist/types/views/components/element/VideoElement/ScreenVideoElement.d.ts +6 -0
- package/dist/types/views/components/element/VideoElement/index.d.ts +9 -0
- package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +2 -0
- package/dist/types/views/components/element/hooks/useElementFill.d.ts +5 -0
- package/dist/types/views/components/element/hooks/useElementFlip.d.ts +4 -0
- package/dist/types/views/components/element/hooks/useElementOutline.d.ts +10 -0
- package/dist/types/views/components/element/hooks/useElementShadow.d.ts +5 -0
- package/dist/types/views/components/element/hooks/useLiveBoxFit.d.ts +12 -0
- package/dist/types/views/components/element/hooks/useTextFit.d.ts +26 -0
- package/docs/RELEASE.md +14 -0
- package/package.json +26 -17
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Gradient } from '../types/slides';
|
|
2
|
+
export declare const DEFAULT_FREEHAND_SIZE = 6;
|
|
3
|
+
export type FreehandPoint = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
pressure?: number;
|
|
7
|
+
};
|
|
8
|
+
export type FreehandCapOptions = {
|
|
9
|
+
cap?: boolean;
|
|
10
|
+
taper?: number | boolean;
|
|
11
|
+
};
|
|
12
|
+
export type FreehandStrokeOptions = {
|
|
13
|
+
last?: boolean;
|
|
14
|
+
thinning?: number;
|
|
15
|
+
simulatePressure?: boolean;
|
|
16
|
+
streamline?: number;
|
|
17
|
+
smoothing?: number;
|
|
18
|
+
start?: FreehandCapOptions;
|
|
19
|
+
end?: FreehandCapOptions;
|
|
20
|
+
};
|
|
21
|
+
export declare const shouldKeepFreehandPoint: (from: FreehandPoint, to: FreehandPoint, simulatePressure?: boolean) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Keep raw pointer spacing. Evenly interpolating jumps flattens velocity, which
|
|
24
|
+
* is what perfect-freehand uses to simulate pressure.
|
|
25
|
+
*/
|
|
26
|
+
export declare const appendFreehandPoint: (points: FreehandPoint[], next: FreehandPoint, simulatePressure?: boolean) => void;
|
|
27
|
+
export declare const shouldSimulatePressure: (e: PointerEvent) => boolean;
|
|
28
|
+
export declare const readPointerPressure: (e: PointerEvent) => number;
|
|
29
|
+
export declare const pointerStrokeSamples: (e: PointerEvent) => PointerEvent[];
|
|
30
|
+
/**
|
|
31
|
+
* Excalidraw's outline → SVG path: quadratic midpoints, then close.
|
|
32
|
+
* See getSvgPathFromStroke in packages/element/src/shape.ts.
|
|
33
|
+
*/
|
|
34
|
+
export declare const getSvgPathFromStroke: (points: number[][]) => string;
|
|
35
|
+
export declare const getFreehandOutline: (points: FreehandPoint[], size: number, options?: FreehandStrokeOptions) => import("perfect-freehand").Vec2[];
|
|
36
|
+
export declare const getFreehandSvgPath: (points: FreehandPoint[], size: number, options?: FreehandStrokeOptions) => string;
|
|
37
|
+
export declare const getFreehandPath: (points: FreehandPoint[], size: number, options?: FreehandStrokeOptions) => Path2D;
|
|
38
|
+
export type FreehandShapeGeometry = {
|
|
39
|
+
path: string;
|
|
40
|
+
viewBox: [number, number];
|
|
41
|
+
minX: number;
|
|
42
|
+
minY: number;
|
|
43
|
+
maxX: number;
|
|
44
|
+
maxY: number;
|
|
45
|
+
};
|
|
46
|
+
export declare const getFreehandShapeGeometry: (points: FreehandPoint[], size: number, options?: FreehandStrokeOptions, minViewBox?: number) => FreehandShapeGeometry | null;
|
|
47
|
+
export declare const joinFreehandStrokes: (strokes: Array<{
|
|
48
|
+
points: FreehandPoint[];
|
|
49
|
+
size: number;
|
|
50
|
+
options?: FreehandStrokeOptions;
|
|
51
|
+
}>, minViewBox?: number) => FreehandShapeGeometry | null;
|
|
52
|
+
export declare const joinFreehandOutlines: (outlines: number[][][], minViewBox?: number) => FreehandShapeGeometry;
|
|
53
|
+
export declare const fillFreehandStroke: (ctx: CanvasRenderingContext2D, points: FreehandPoint[], size: number, color: string, options?: FreehandStrokeOptions & {
|
|
54
|
+
alpha?: number;
|
|
55
|
+
composite?: GlobalCompositeOperation;
|
|
56
|
+
gradient?: Gradient;
|
|
57
|
+
}) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type GestureDragState = {
|
|
2
|
+
xy: [number, number];
|
|
3
|
+
delta: [number, number];
|
|
4
|
+
movement: [number, number];
|
|
5
|
+
first: boolean;
|
|
6
|
+
last: boolean;
|
|
7
|
+
event: PointerEvent | MouseEvent | TouchEvent | KeyboardEvent;
|
|
8
|
+
};
|
|
9
|
+
export type GestureDragHandlers = {
|
|
10
|
+
onDrag?: (state: GestureDragState) => void;
|
|
11
|
+
onDragStart?: (state: GestureDragState) => void;
|
|
12
|
+
onDragEnd?: (state: GestureDragState) => void;
|
|
13
|
+
};
|
|
14
|
+
export type RafCoalesced<T extends (event: MouseEvent | TouchEvent) => void> = T & {
|
|
15
|
+
cancel: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const bindDocumentDrag: (handlers: GestureDragHandlers) => () => void;
|
|
18
|
+
export declare const rafCoalesce: <T extends (event: MouseEvent | TouchEvent) => void>(fn: T) => RafCoalesced<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Token, HTMLNode } from './types';
|
|
2
|
+
interface StackItem {
|
|
3
|
+
tagName: string | null;
|
|
4
|
+
children: HTMLNode[];
|
|
5
|
+
}
|
|
6
|
+
interface State {
|
|
7
|
+
stack: StackItem[];
|
|
8
|
+
cursor: number;
|
|
9
|
+
tokens: Token[];
|
|
10
|
+
}
|
|
11
|
+
export declare const parser: (tokens: Token[]) => HTMLNode[];
|
|
12
|
+
export declare const hasTerminalParent: (tagName: string, stack: StackItem[]) => boolean;
|
|
13
|
+
export declare const rewindStack: (stack: StackItem[], newLength: number) => void;
|
|
14
|
+
export declare const parse: (state: State) => void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface ElementAttribute {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface CommentElement {
|
|
6
|
+
type: 'comment';
|
|
7
|
+
content: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TextElement {
|
|
10
|
+
type: 'text';
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NormalElement {
|
|
14
|
+
type: 'element';
|
|
15
|
+
tagName: string;
|
|
16
|
+
children: HTMLNode[];
|
|
17
|
+
attributes: string[];
|
|
18
|
+
}
|
|
19
|
+
export type HTMLNode = CommentElement | TextElement | NormalElement;
|
|
20
|
+
export interface ElementAST {
|
|
21
|
+
type: 'element';
|
|
22
|
+
tagName: string;
|
|
23
|
+
children: AST[];
|
|
24
|
+
attributes: ElementAttribute[];
|
|
25
|
+
}
|
|
26
|
+
export interface CommentOrTextAST {
|
|
27
|
+
type: 'comment' | 'text';
|
|
28
|
+
content: string;
|
|
29
|
+
}
|
|
30
|
+
export type AST = CommentOrTextAST | ElementAST;
|
|
31
|
+
export interface TagStartToken {
|
|
32
|
+
type: 'tag-start';
|
|
33
|
+
close: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface TagEndToken {
|
|
36
|
+
type: 'tag-end';
|
|
37
|
+
close: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface TagToken {
|
|
40
|
+
type: 'tag';
|
|
41
|
+
content: string;
|
|
42
|
+
}
|
|
43
|
+
export interface TextToken {
|
|
44
|
+
type: 'text';
|
|
45
|
+
content: string;
|
|
46
|
+
}
|
|
47
|
+
export interface CommentToken {
|
|
48
|
+
type: 'comment';
|
|
49
|
+
content: string;
|
|
50
|
+
}
|
|
51
|
+
export interface AttributeToken {
|
|
52
|
+
type: 'attribute';
|
|
53
|
+
content: string;
|
|
54
|
+
}
|
|
55
|
+
export type Token = TagStartToken | TagEndToken | TagToken | TextToken | CommentToken | AttributeToken;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FollowHyperlinkModifier = 'Ctrl+Click' | '⌘+Click';
|
|
2
|
+
export declare function hyperlinkAnchorFromEvent(event: Event): HTMLAnchorElement | null;
|
|
3
|
+
export declare function isSafeHyperlinkHref(href: string): boolean;
|
|
4
|
+
export declare function isFollowHyperlinkClick(event: Pick<MouseEvent, 'button' | 'ctrlKey' | 'metaKey'>): boolean;
|
|
5
|
+
export declare function followHyperlinkModifier(platform?: string): FollowHyperlinkModifier;
|
|
6
|
+
export declare function openHyperlink(href: string): boolean;
|
|
7
|
+
export type HyperlinkHoverTooltip = {
|
|
8
|
+
href: string;
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function hyperlinkTooltipFromAnchor(anchor: HTMLAnchorElement, offset?: number): HyperlinkHoverTooltip | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ImageSize {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Get the intrinsic width and height of an image.
|
|
7
|
+
* @param src Image URL
|
|
8
|
+
*/
|
|
9
|
+
export declare const getImageSize: (src: string) => Promise<ImageSize>;
|
|
10
|
+
/**
|
|
11
|
+
* Read an image file as a data URL.
|
|
12
|
+
* @param file Image file
|
|
13
|
+
*/
|
|
14
|
+
export declare const getImageDataURL: (file: File) => Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Check whether a string is SVG markup.
|
|
17
|
+
* @param text Text to validate
|
|
18
|
+
*/
|
|
19
|
+
export declare const isSVGString: (text: string) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Convert SVG markup to a File.
|
|
22
|
+
* @param svg SVG markup
|
|
23
|
+
*/
|
|
24
|
+
export declare const svg2File: (svg: string) => File;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Slide } from '../types/slides';
|
|
2
|
+
export declare const getCachedImageBitmap: (src: string) => ImageBitmap | undefined;
|
|
3
|
+
export declare const loadImageBitmap: (src: string) => Promise<ImageBitmap | null>;
|
|
4
|
+
export declare const collectSlideImageSrcs: (slides: readonly Slide[]) => string[];
|
|
5
|
+
export declare const revokeImageBitmapsNotIn: (keep: Iterable<string>) => void;
|
|
6
|
+
export declare const syncImageBitmapsToSlides: (slides: readonly Slide[]) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PPTImageElement, Slide } from '../types/slides';
|
|
2
|
+
import type { ImagePaintCache } from './textContrast';
|
|
3
|
+
interface CanvasRange {
|
|
4
|
+
minX: number;
|
|
5
|
+
maxX: number;
|
|
6
|
+
minY: number;
|
|
7
|
+
maxY: number;
|
|
8
|
+
}
|
|
9
|
+
interface Viewport {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
/** Map a canvas overlap onto the image's natural pixels, honoring clip + flip. */
|
|
14
|
+
export declare const canvasRegionToImagePixels: (el: PPTImageElement, region: CanvasRange, naturalWidth: number, naturalHeight: number) => {
|
|
15
|
+
left: number;
|
|
16
|
+
top: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
} | null;
|
|
20
|
+
/** Map a canvas overlap onto a cover-fitted slide background image. */
|
|
21
|
+
export declare const canvasRegionToCoverPixels: (region: CanvasRange, viewport: Viewport, naturalWidth: number, naturalHeight: number) => {
|
|
22
|
+
left: number;
|
|
23
|
+
top: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
} | null;
|
|
27
|
+
/**
|
|
28
|
+
* Sample average colors for image layers that actually sit under text.
|
|
29
|
+
* Browser-only (`Image` + canvas). Returns `undefined` when there is nothing
|
|
30
|
+
* to sample or the environment can't decode images — the contrast query then
|
|
31
|
+
* keeps treating those layers as `unknown`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const sampleImagePaintsForSlide: (slide: Slide, viewport: Viewport) => Promise<ImagePaintCache | undefined>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type ImportApplyMode = 'replace' | 'append';
|
|
2
|
+
export interface ImportApplyOptions {
|
|
3
|
+
/**
|
|
4
|
+
* How to apply imported slides. Takes precedence over `cover`.
|
|
5
|
+
* Default is `replace`.
|
|
6
|
+
*/
|
|
7
|
+
mode?: ImportApplyMode;
|
|
8
|
+
/**
|
|
9
|
+
* Legacy alias: `true` replace, `false` append.
|
|
10
|
+
* An empty deck (0 slides) is always replaced.
|
|
11
|
+
*/
|
|
12
|
+
cover?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When replacing a deck that already has more than one slide, ask first.
|
|
15
|
+
* Default `true` for the editor UI; the controller should pass `false`.
|
|
16
|
+
*/
|
|
17
|
+
confirm?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ImportApplyDecision {
|
|
20
|
+
apply: ImportApplyMode;
|
|
21
|
+
needsConfirm: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* UI / controller policy for PPTX and JSON import.
|
|
25
|
+
*
|
|
26
|
+
* - 0 slides (starter deleted) or 1 slide: replace immediately.
|
|
27
|
+
* - 2+ slides: replace after confirm, unless `confirm: false`.
|
|
28
|
+
* - `mode: 'append'` / `cover: false`: append, no confirm (still replace if empty).
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveImportApply(slideCount: number, options?: ImportApplyOptions): ImportApplyDecision;
|
|
31
|
+
export declare function normalizeImportApplyOptions(options?: boolean | ImportApplyOptions): ImportApplyOptions;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { MagicalInkId } from '../configs/inkPaint';
|
|
2
|
+
import type { Gradient } from '../types/slides';
|
|
3
|
+
import type { Command } from './commandHistory';
|
|
4
|
+
export type ShapeType = 'rect' | 'circle' | 'arrow' | 'line' | 'triangle';
|
|
5
|
+
export type InkStrokePaint = {
|
|
6
|
+
color: string;
|
|
7
|
+
gradient?: Gradient;
|
|
8
|
+
gradientId?: MagicalInkId;
|
|
9
|
+
};
|
|
10
|
+
export type PenStroke = InkStrokePaint & {
|
|
11
|
+
kind: 'pen';
|
|
12
|
+
size: number;
|
|
13
|
+
points: Array<{
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
pressure?: number;
|
|
17
|
+
}>;
|
|
18
|
+
simulatePressure?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type MarkStroke = InkStrokePaint & {
|
|
21
|
+
kind: 'mark';
|
|
22
|
+
size: number;
|
|
23
|
+
points: Array<{
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
pressure?: number;
|
|
27
|
+
}>;
|
|
28
|
+
simulatePressure?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type EraserStroke = {
|
|
31
|
+
kind: 'eraser';
|
|
32
|
+
size: number;
|
|
33
|
+
points: Array<{
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
export type ShapeStroke = InkStrokePaint & {
|
|
39
|
+
kind: 'shape';
|
|
40
|
+
shapeType: ShapeType;
|
|
41
|
+
size: number;
|
|
42
|
+
startX: number;
|
|
43
|
+
startY: number;
|
|
44
|
+
endX: number;
|
|
45
|
+
endY: number;
|
|
46
|
+
};
|
|
47
|
+
export type Stroke = PenStroke | MarkStroke | EraserStroke | ShapeStroke;
|
|
48
|
+
export interface DrawingSurface {
|
|
49
|
+
strokes: Stroke[];
|
|
50
|
+
baseline: HTMLImageElement | null;
|
|
51
|
+
redraw: () => void;
|
|
52
|
+
}
|
|
53
|
+
export declare const strokeHasInk: (stroke: Stroke) => boolean;
|
|
54
|
+
export declare class AddStrokeCommand implements Command {
|
|
55
|
+
private readonly surface;
|
|
56
|
+
private readonly stroke;
|
|
57
|
+
constructor(surface: DrawingSurface, stroke: Stroke);
|
|
58
|
+
do(): void;
|
|
59
|
+
undo(): void;
|
|
60
|
+
}
|
|
61
|
+
export declare class ClearInkCommand implements Command {
|
|
62
|
+
private readonly surface;
|
|
63
|
+
private removedStrokes;
|
|
64
|
+
private removedBaseline;
|
|
65
|
+
constructor(surface: DrawingSurface);
|
|
66
|
+
do(): void;
|
|
67
|
+
undo(): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type JobProgressPhase = 'preparing' | 'working' | 'finishing';
|
|
2
|
+
export interface JobProgressBox<T> {
|
|
3
|
+
value: T;
|
|
4
|
+
}
|
|
5
|
+
export interface JobProgress {
|
|
6
|
+
running: JobProgressBox<boolean>;
|
|
7
|
+
progress: JobProgressBox<number>;
|
|
8
|
+
current: JobProgressBox<number>;
|
|
9
|
+
total: JobProgressBox<number>;
|
|
10
|
+
generation: () => number;
|
|
11
|
+
start: (total?: number) => number;
|
|
12
|
+
setTotal: (total: number, gen?: number) => boolean;
|
|
13
|
+
tick: (value: number, slide?: number, gen?: number, options?: {
|
|
14
|
+
yieldPaint?: boolean;
|
|
15
|
+
}) => Promise<boolean>;
|
|
16
|
+
finish: (gen?: number) => boolean;
|
|
17
|
+
isCurrent: (gen: number) => boolean;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface JobProgressLabels {
|
|
21
|
+
running: string;
|
|
22
|
+
preparing: string;
|
|
23
|
+
finishing: string;
|
|
24
|
+
slideProgress: (params: {
|
|
25
|
+
current: number;
|
|
26
|
+
total: number;
|
|
27
|
+
}) => string;
|
|
28
|
+
}
|
|
29
|
+
export declare function jobProgressPhase(current: number, total: number): JobProgressPhase;
|
|
30
|
+
export declare function jobBoxValue<T>(box: T | {
|
|
31
|
+
value: T;
|
|
32
|
+
} | undefined, fallback: T): T;
|
|
33
|
+
export declare function formatJobProgressTip(running: boolean, current: number, total: number, labels: JobProgressLabels): string;
|
|
34
|
+
export declare function slideJobProgress(index: number, count: number, start?: number, end?: number): number;
|
|
35
|
+
export declare const isAbortError: (error: unknown) => boolean;
|
|
36
|
+
export declare function createJobProgress(): JobProgress;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PPTLatexElement } from '../types/slides';
|
|
2
|
+
/**
|
|
3
|
+
* Apply an editor save onto an existing formula.
|
|
4
|
+
*
|
|
5
|
+
* The canvas box (`width` / `height`) is the authored scale. Never replace it
|
|
6
|
+
* with the newly measured natural size — `useLiveBoxFit` scales the new
|
|
7
|
+
* formula into that box. `viewBox` stores the natural measure for export.
|
|
8
|
+
*/
|
|
9
|
+
export declare function latexPropsAfterEdit(_current: Pick<PPTLatexElement, 'width' | 'height'>, next: {
|
|
10
|
+
latex: string;
|
|
11
|
+
path?: string;
|
|
12
|
+
w: number;
|
|
13
|
+
h: number;
|
|
14
|
+
}): Pick<PPTLatexElement, 'latex' | 'path' | 'viewBox'>;
|
|
15
|
+
/** Same uniform scale `useLiveBoxFit` writes: authored box / natural viewBox. */
|
|
16
|
+
export declare function latexPaintScale(el: Pick<PPTLatexElement, 'width' | 'height' | 'viewBox'>): number;
|
|
17
|
+
/**
|
|
18
|
+
* Extract the contents of every equation (or equation*) environment.
|
|
19
|
+
*/
|
|
20
|
+
export declare const extractEquationLatex: (source: string) => string[];
|
|
21
|
+
/**
|
|
22
|
+
* MathLive emits compact TeX (`4^5\cdot3x`). hfmath's tokenizer treats digits
|
|
23
|
+
* as part of a command name, so `\cdot3x` becomes one unknown token and is
|
|
24
|
+
* drawn as literal text. TeX ends a control word before a digit; insert that
|
|
25
|
+
* space here before handing the string to hfmath.
|
|
26
|
+
*/
|
|
27
|
+
export declare const toHfmathLatex: (latex: string) => string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LaTeX → MathML (MathLive) → OMML (mathml2omml) for native PowerPoint equations.
|
|
3
|
+
* No hand-rolled math grammar — conversion is entirely library-based.
|
|
4
|
+
*/
|
|
5
|
+
export interface OmmlRunStyle {
|
|
6
|
+
/** CSS/hex color applied to every math glyph run and control (vinculum, …). */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** Font size in points (`a:rPr sz` is hundredths of a point). */
|
|
9
|
+
fontSizePt?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Stamp `a:rPr` (color / size) onto every `m:r` and `m:ctrlPr` in an OMML
|
|
13
|
+
* fragment. pptxgenjs embeds OMML as opaque XML and does not propagate the
|
|
14
|
+
* surrounding text-run `options.color`, so contrast-fixed (and user-styled)
|
|
15
|
+
* equation colors must be written into the math markup itself.
|
|
16
|
+
*/
|
|
17
|
+
export declare function applyOmmlRunStyle(omml: string, style: OmmlRunStyle): string;
|
|
18
|
+
/** Ensure MathLive is loaded so sync conversion can run during PPTX export. */
|
|
19
|
+
export declare function prepareLatexToOmml(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Convert a LaTeX expression to an OMML `<m:oMath>…</m:oMath>` string.
|
|
22
|
+
*/
|
|
23
|
+
export declare function latexToOmml(latex: string): Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Sync conversion — MathLive must already be loaded via {@link prepareLatexToOmml}.
|
|
26
|
+
* Returns null when conversion fails (caller falls back to plain LaTeX text).
|
|
27
|
+
*/
|
|
28
|
+
export declare function tryLatexToOmmlSync(latex: string): string | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live drag preview for canvas elements.
|
|
3
|
+
*
|
|
4
|
+
* Two coordinate spaces, because the painted box and the operate chrome
|
|
5
|
+
* do not live in the same CSS transform:
|
|
6
|
+
*
|
|
7
|
+
* - Slide space: `#editable-element-* > *` sits inside `.viewport`, which
|
|
8
|
+
* already has `transform: scale(canvasScale)`. `left` / `top` here are
|
|
9
|
+
* the same unit the store commits on drop.
|
|
10
|
+
* - Visual space: `#operate-element-*` and `.multi-select-operate` sit in
|
|
11
|
+
* `.viewport-wrapper` (already sized to the *visual* slide). Position
|
|
12
|
+
* here is slide × canvasScale.
|
|
13
|
+
*
|
|
14
|
+
* Never use CSS `translate` on the painted box. Auto-size text measures
|
|
15
|
+
* and rasterizes differently under a transform than under `left`/`top`,
|
|
16
|
+
* so the glyphs shift on pointerup when the transform is removed. Write
|
|
17
|
+
* the same `left`/`top` the store will commit — drag and drop are one
|
|
18
|
+
* paint path. Scale already does this (`applyLiveSize`).
|
|
19
|
+
*/
|
|
20
|
+
export type LiveOffsetPosition = {
|
|
21
|
+
id: string;
|
|
22
|
+
left: number;
|
|
23
|
+
top: number;
|
|
24
|
+
};
|
|
25
|
+
export type LiveOffsetNodes = {
|
|
26
|
+
box?: {
|
|
27
|
+
style: CSSStyleDeclaration;
|
|
28
|
+
} | null;
|
|
29
|
+
operate?: {
|
|
30
|
+
style: CSSStyleDeclaration;
|
|
31
|
+
} | null;
|
|
32
|
+
multi?: {
|
|
33
|
+
style: CSSStyleDeclaration;
|
|
34
|
+
} | null;
|
|
35
|
+
};
|
|
36
|
+
export type LivePositionCss = {
|
|
37
|
+
slideLeft: string;
|
|
38
|
+
slideTop: string;
|
|
39
|
+
visualLeft: string;
|
|
40
|
+
visualTop: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const livePositionCss: (left: number, top: number, canvasScale: number) => LivePositionCss;
|
|
43
|
+
export declare const applyLivePositionStyles: (nodes: LiveOffsetNodes, left: number, top: number, canvasScale: number) => void;
|
|
44
|
+
export declare const readLiveMultiOrigin: (canvasScale: number) => {
|
|
45
|
+
left: number;
|
|
46
|
+
top: number;
|
|
47
|
+
} | null;
|
|
48
|
+
export declare const setLiveElementOffset: (origins: readonly LiveOffsetPosition[], dxSlide: number, dySlide: number, canvasScale: number, multiOrigin?: {
|
|
49
|
+
left: number;
|
|
50
|
+
top: number;
|
|
51
|
+
} | null) => void;
|
|
52
|
+
export declare const clearLiveElementOffset: (origins: readonly LiveOffsetPosition[], canvasScale: number, multiOrigin?: {
|
|
53
|
+
left: number;
|
|
54
|
+
top: number;
|
|
55
|
+
} | null) => void;
|
|
56
|
+
export declare const settleLiveElementOffset: (positions: readonly LiveOffsetPosition[], canvasScale: number) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live paint for fill / gradient / opacity. Same contract as applyLiveSize:
|
|
3
|
+
* write the canvas DOM during the gesture. Do not go through the store until
|
|
4
|
+
* pointerup — a store write rebuilds the preview raster and the canvas list.
|
|
5
|
+
*/
|
|
6
|
+
import type { Gradient } from '../types/slides';
|
|
7
|
+
export declare const liveGradientId: (elementId: string, source?: string) => string;
|
|
8
|
+
export declare const liveGradientTransform: (rotate: number) => string;
|
|
9
|
+
/** Single writer for SVG gradient stops. React must not also own these children. */
|
|
10
|
+
export declare const syncGradientDef: (def: Element, gradient: Pick<Gradient, 'colors' | 'rotate'>) => void;
|
|
11
|
+
export declare const applyLiveGradient: (elementId: string, gradient: Gradient, source?: string) => boolean;
|
|
12
|
+
export declare const applyLiveBackgroundGradient: (gradient: Gradient) => boolean;
|
|
13
|
+
export declare const readPaintedGradientRotate: (elementId: string, source?: string) => number | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live resize for canvas elements.
|
|
3
|
+
*
|
|
4
|
+
* One writer (`applyLiveSize`) updates the painted box, `[data-live-box]`,
|
|
5
|
+
* and operate chrome. Contents that depend on box size must read that live
|
|
6
|
+
* geometry — never wait for the store commit on pointerup.
|
|
7
|
+
*
|
|
8
|
+
* Auto-height boxes opt out with `data-live-auto-height` (or `height: auto`).
|
|
9
|
+
* Missing inline height is not an opt-out — tables and other content-sized
|
|
10
|
+
* wrappers still preview both axes. Direct-child SVGs get a viewBox so
|
|
11
|
+
* preserveAspectRatio=none can stretch Y, and tables update row heights.
|
|
12
|
+
*/
|
|
13
|
+
export type LiveBoxSize = {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const isAutoCss: (value: string | undefined) => boolean;
|
|
18
|
+
export declare const isLiveAutoHeight: (el: HTMLElement | null | undefined) => boolean;
|
|
19
|
+
export declare const readLiveBoxSize: (box: HTMLElement | null | undefined, fallback: LiveBoxSize) => LiveBoxSize;
|
|
20
|
+
export declare const liveBoxOf: (node: HTMLElement | null | undefined) => HTMLElement | null;
|
|
21
|
+
/** Uniform scale that fits `natural` inside `box` without growing past 1 when either side is empty. */
|
|
22
|
+
export declare const fitUniformScale: (natural: LiveBoxSize, box: LiveBoxSize) => number;
|
|
23
|
+
type LiveBoxListener = (id: string, size: LiveBoxSize) => void;
|
|
24
|
+
export declare const subscribeLiveBox: (listener: LiveBoxListener) => () => void;
|
|
25
|
+
export declare const shapeGroupTransform: (width: number, height: number, viewBox: readonly [number, number] | readonly number[]) => string;
|
|
26
|
+
export declare const syncShapePaint: (svg: SVGSVGElement, width: number, height: number, viewBox: readonly [number, number] | readonly number[]) => void;
|
|
27
|
+
export declare const tableCellMinHeight: (boxHeight: number, rowCount: number) => number;
|
|
28
|
+
export type LivePaintExtras = {
|
|
29
|
+
path?: string;
|
|
30
|
+
viewBox?: readonly number[];
|
|
31
|
+
};
|
|
32
|
+
export declare const applyLiveSize: (id: string, left: number, top: number, width: number, height: number, canvasScale: number, extras?: LivePaintExtras) => void;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** True when a string carries math delimiters the math parser should handle. */
|
|
2
|
+
export declare function containsMath(source: string): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* A run of either plain text or a single math span, in source order. `raw` is
|
|
5
|
+
* the exact source slice (delimiters included for math); `value` is the inner
|
|
6
|
+
* formula for math (delimiters stripped) and equals `raw` for text.
|
|
7
|
+
*/
|
|
8
|
+
export interface ContentSegment {
|
|
9
|
+
type: 'text' | 'math';
|
|
10
|
+
raw: string;
|
|
11
|
+
value: string;
|
|
12
|
+
/** Math only: display (block) vs inline. */
|
|
13
|
+
display: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Split `source` into ordered text and math segments. This is the robust core
|
|
17
|
+
* behind both line-splitting and inline rendering: it scans once, picking the
|
|
18
|
+
* earliest opener at each position (longest on ties, so `$$` beats `$`), honors
|
|
19
|
+
* backslash escapes (`\$`, `\\`), skips inline code spans (so `` `$x` `` is not
|
|
20
|
+
* read as math) and keeps unterminated openers as literal text (graceful for
|
|
21
|
+
* partial/streamed content). Inline math may not span newlines; display math
|
|
22
|
+
* (`$$`, `\[`, `\begin{}`) may.
|
|
23
|
+
*/
|
|
24
|
+
export declare function tokenizeMath(source: string): ContentSegment[];
|
|
25
|
+
export declare function normalizeAgentText(text: string): string;
|
|
26
|
+
export declare function splitLinesPreservingMath(value: string): string[];
|
|
27
|
+
export declare function markdownToHtml(markdown: string): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Preload the math-capable markdown parser (lazy MathLive + texmath) so
|
|
30
|
+
* `renderInlineMarkdown` can render `$…$` math synchronously afterwards. No-op
|
|
31
|
+
* once loaded; call before rendering content that may contain math.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ensureInlineMathReady(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Render one line of markdown to inline HTML (no `<p>` wrapper) using the same
|
|
36
|
+
* CommonMark + texmath pipeline as {@link markdownToHtml}.
|
|
37
|
+
*
|
|
38
|
+
* Plain (math-free) lines use markdown-it's inline renderer directly. Lines that
|
|
39
|
+
* carry math are rendered through the full *block* pipeline and then unwrapped
|
|
40
|
+
* from their single `<p>`: this is what makes display math correct. texmath
|
|
41
|
+
* exposes `\[…\]` and `\begin{env}…\end{env}` only as block rules, so the inline
|
|
42
|
+
* renderer would emit them verbatim; routing through the block parser renders
|
|
43
|
+
* every delimiter (`$…$`, `$$…$$`, `\(…\)`, `\[…\]`, environments), and matches
|
|
44
|
+
* the `text.setMarkdown` output byte-for-byte. Math renders only when the parser
|
|
45
|
+
* has been preloaded via {@link ensureInlineMathReady}; otherwise delimiters
|
|
46
|
+
* read as literal text.
|
|
47
|
+
*/
|
|
48
|
+
export declare function renderInlineMarkdown(markdown: string): string;
|