fika-editor 3.0.0 → 3.0.2
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/947.css +1 -0
- package/dist/embed/947.js +144 -0
- package/dist/embed/agentic-manifest.json +2407 -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/1505.js +8 -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 +3473 -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 +6 -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 +18 -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 +22 -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 +33 -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 +276 -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 +25 -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 +15 -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 +32 -0
- package/dist/types/embed/agentic/types.d.ts +2062 -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 +10 -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/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 +3304 -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 +18 -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 +200 -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/commitQueue.d.ts +13 -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/cssLength.d.ts +8 -0
- package/dist/types/utils/cssm.d.ts +4 -0
- package/dist/types/utils/database.d.ts +25 -0
- package/dist/types/utils/debounce.d.ts +19 -0
- package/dist/types/utils/diffPaintedSlide.d.ts +11 -0
- package/dist/types/utils/element.d.ts +387 -0
- package/dist/types/utils/elementOrder.d.ts +8 -0
- package/dist/types/utils/elementOutline.d.ts +41 -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 +18 -0
- package/dist/types/utils/imagePaintSample.d.ts +34 -0
- package/dist/types/utils/imageSize.d.ts +9 -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 +52 -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/mediaIntern.d.ts +12 -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 +83 -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 +10 -0
- package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
- package/dist/types/utils/prosemirror/index.d.ts +7 -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/screening.d.ts +10 -0
- package/dist/types/utils/scribbleJoin.d.ts +27 -0
- package/dist/types/utils/selection.d.ts +1 -0
- package/dist/types/utils/shapePaint.d.ts +23 -0
- package/dist/types/utils/simpleShape.d.ts +5 -0
- package/dist/types/utils/slideOrder.d.ts +13 -0
- package/dist/types/utils/snap.d.ts +78 -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/tableCellStyle.d.ts +12 -0
- package/dist/types/utils/tableStyleTarget.d.ts +3 -0
- package/dist/types/utils/textBoxLock.d.ts +17 -0
- package/dist/types/utils/textContrast.d.ts +228 -0
- package/dist/types/utils/textFit.d.ts +213 -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 +12 -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 +24 -0
- package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +14 -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/LiveSlideThumb.d.ts +21 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +21 -0
- package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
- package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +54 -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/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 +13 -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 +4 -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 +16 -0
- package/package.json +24 -18
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { PPTElement } from '../types/slides';
|
|
2
|
+
import { type ClientCoords } from './prosemirror/caret';
|
|
3
|
+
/** Temporary: paint every pointer hit target so the hit engine can be verified. */
|
|
4
|
+
export declare const DEBUG_HIT_AREAS = false;
|
|
5
|
+
/** Minimum visual-pixel size so thin lines remain hittable. */
|
|
6
|
+
export declare const MIN_HIT_PX = 8;
|
|
7
|
+
/**
|
|
8
|
+
* Drag-ring sizing in visual pixels, based on the box's effective side length.
|
|
9
|
+
*
|
|
10
|
+
* Inner eats the edit surface; outer is extra grab outside the box.
|
|
11
|
+
* Short/zoomed-out boxes shrink inner toward 0 so the whole interior stays editable.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MIN_INNER_DRAG_PX = 1;
|
|
14
|
+
export declare const MAX_INNER_DRAG_PX = 4;
|
|
15
|
+
export declare const MIN_OUTER_DRAG_PX = 3;
|
|
16
|
+
export declare const MAX_OUTER_DRAG_PX = 5;
|
|
17
|
+
export declare const MIN_EDIT_INTERIOR_PX = 10;
|
|
18
|
+
export declare const RING_SIZE_MIN = 20;
|
|
19
|
+
export declare const RING_SIZE_MAX = 56;
|
|
20
|
+
/** Inner/outer drag thickness for one axis (visual width or height). */
|
|
21
|
+
export declare function dragRingMetrics(visualSize: number): {
|
|
22
|
+
innerPx: number;
|
|
23
|
+
outerPx: number;
|
|
24
|
+
};
|
|
25
|
+
/** Inward drag thickness on the constraining side (0 when the box is too short to spare any). */
|
|
26
|
+
export declare function borderHitPx(width: number, height: number): number;
|
|
27
|
+
export declare const HIT_RING_SIDES: readonly ['top', 'bottom', 'left', 'right'];
|
|
28
|
+
export type HitRingSide = (typeof HIT_RING_SIDES)[number];
|
|
29
|
+
/** Matches `.resize-handler` (10px box, centered on the edge with -5px margin). */
|
|
30
|
+
export declare const RESIZE_HANDLE_SIZE_PX = 10;
|
|
31
|
+
export declare const RESIZE_HANDLE_RADIUS_PX: number;
|
|
32
|
+
export declare const RESIZE_HANDLE_DIRECTIONS: readonly ['left-top', 'top', 'right-top', 'left', 'right', 'left-bottom', 'bottom', 'right-bottom'];
|
|
33
|
+
export type ResizeHandleDirection = (typeof RESIZE_HANDLE_DIRECTIONS)[number];
|
|
34
|
+
export interface ResizeHandleCenter {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
direction: ResizeHandleDirection;
|
|
38
|
+
}
|
|
39
|
+
/** Box-local centers of the 8 resize squares (origin = top-left). */
|
|
40
|
+
export declare function resizeHandleCenters(width: number, height: number, directions?: readonly ResizeHandleDirection[]): ResizeHandleCenter[];
|
|
41
|
+
/** Handles actually rendered for this element (none for lines). */
|
|
42
|
+
export declare function resizeHandleDirectionsFor(element: PPTElement): readonly ResizeHandleDirection[];
|
|
43
|
+
export interface HitRingLayout {
|
|
44
|
+
inset: string;
|
|
45
|
+
sides: Record<HitRingSide, Record<string, string>>;
|
|
46
|
+
vertical: {
|
|
47
|
+
innerPx: number;
|
|
48
|
+
outerPx: number;
|
|
49
|
+
};
|
|
50
|
+
horizontal: {
|
|
51
|
+
innerPx: number;
|
|
52
|
+
outerPx: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface HitRingLayoutOptions {
|
|
56
|
+
/**
|
|
57
|
+
* Cut these handle squares out of the move strips.
|
|
58
|
+
* Resize must beat move: the ring must not claim those pixels.
|
|
59
|
+
*/
|
|
60
|
+
clearResizeHandles?: readonly ResizeHandleDirection[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Per-side drag strips. Top/bottom follow visual height; left/right follow width.
|
|
64
|
+
* Outer grab does not consume the edit interior.
|
|
65
|
+
* When `clearResizeHandles` is set, handle squares are punched out so move cannot steal resize.
|
|
66
|
+
*/
|
|
67
|
+
export declare function hitRingLayout(width: number, height: number, options?: HitRingLayoutOptions): HitRingLayout;
|
|
68
|
+
export interface VisualHitRect {
|
|
69
|
+
id: string;
|
|
70
|
+
left: number;
|
|
71
|
+
top: number;
|
|
72
|
+
width: number;
|
|
73
|
+
height: number;
|
|
74
|
+
rotate: number;
|
|
75
|
+
zIndex: number;
|
|
76
|
+
/**
|
|
77
|
+
* Empty placeholder slot (dashed prompt, no authored content). It is a
|
|
78
|
+
* background affordance: any element carrying visible content that
|
|
79
|
+
* overlaps it wins the pointer regardless of z-order — users click the
|
|
80
|
+
* text they SEE, not the dashed frame behind it.
|
|
81
|
+
*/
|
|
82
|
+
yieldToContent?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/** True when the element paints authored content the user can click "on". */
|
|
85
|
+
export declare function elementHasClickableContent(element: PPTElement): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Map a slide element to a hit rectangle in `.viewport-wrapper` visual pixels.
|
|
88
|
+
*
|
|
89
|
+
* Hit-testing must never go through the CSS-scaled unsized `.viewport`.
|
|
90
|
+
* That path fragments (glyph boxes, SVG fills) and offsets under zoom.
|
|
91
|
+
*/
|
|
92
|
+
export declare function elementVisualHitRect(element: PPTElement, canvasScale: number, zIndex: number): VisualHitRect;
|
|
93
|
+
export declare function pointInVisualHitRect(x: number, y: number, rect: VisualHitRect): boolean;
|
|
94
|
+
/** Topmost rect at a wrapper-local point (highest zIndex wins). RBush AABB, then pointInVisualHitRect refine. */
|
|
95
|
+
export declare function hitTestVisualRects(rects: VisualHitRect[], x: number, y: number): VisualHitRect | null;
|
|
96
|
+
export declare const TEXT_EDITABLE_TYPES: Set<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Clicking the interior opens the text editor. Drag from the border only.
|
|
99
|
+
* Includes text boxes and shapes/tables that already contain text.
|
|
100
|
+
*/
|
|
101
|
+
export declare function clicksToEditText(element: PPTElement): boolean;
|
|
102
|
+
/** Interior stays interactive (text caret, or media playback). Drag from the border. */
|
|
103
|
+
export declare function hasInteractiveSurface(element: PPTElement): boolean;
|
|
104
|
+
export declare function canEditElementText(type: PPTElement['type']): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Geometry / type / ring-vs-body identity for one element.
|
|
107
|
+
* Ignores HTML content except the empty↔text flip that changes hasInteractiveSurface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function hitLayerElementUnchanged(prev: PPTElement, next: PPTElement): boolean;
|
|
110
|
+
/** True when element order and per-element hit identity are unchanged. */
|
|
111
|
+
export declare function hitLayerElementsUnchanged(prev: PPTElement[], next: PPTElement[]): boolean;
|
|
112
|
+
/** Inputs that invalidate HitLayer `hitRects` / `occluderRects` memos. */
|
|
113
|
+
export type HitLayerMemoInput = {
|
|
114
|
+
elementList: PPTElement[];
|
|
115
|
+
canvasScale: number;
|
|
116
|
+
hiddenElementIdList: string[];
|
|
117
|
+
activeElementIdList: string[];
|
|
118
|
+
editingElementId: string | null;
|
|
119
|
+
clipingImageElementId: string;
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
};
|
|
122
|
+
export type VisualHitPlanInput = {
|
|
123
|
+
elementList: PPTElement[];
|
|
124
|
+
canvasScale: number;
|
|
125
|
+
hiddenElementIdList: Iterable<string>;
|
|
126
|
+
activeElementIdList: Iterable<string>;
|
|
127
|
+
editingElementId: string | null;
|
|
128
|
+
clipingImageElementId: string;
|
|
129
|
+
};
|
|
130
|
+
export type VisualHitPlan = {
|
|
131
|
+
hitRects: VisualHitRect[];
|
|
132
|
+
occluderRects: VisualHitRect[];
|
|
133
|
+
/** Rects of elements painting authored content — they beat empty placeholder slots. */
|
|
134
|
+
contentRects: VisualHitRect[];
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Selected / editing / clipping boxes leave HitLayer so Operate or the live
|
|
138
|
+
* editor can own the pointer. Those boxes must still punch holes in every
|
|
139
|
+
* *lower* hit rect — otherwise the first click works, then hover/click/drag
|
|
140
|
+
* fall through to the card underneath. Empty placeholder slots additionally
|
|
141
|
+
* yield to ANY overlapping content rect regardless of z-order.
|
|
142
|
+
*/
|
|
143
|
+
export declare function collectVisualHitPlan(input: VisualHitPlanInput): VisualHitPlan;
|
|
144
|
+
export declare function pointInAnyVisualHitRect(x: number, y: number, rects: VisualHitRect[]): boolean;
|
|
145
|
+
/** Occluders that sit on top of `rect` (same stack level included). Empty placeholder slots yield to every occluder. */
|
|
146
|
+
export declare function occludersAboveRect(rect: VisualHitRect, occluders: VisualHitRect[]): VisualHitRect[];
|
|
147
|
+
/**
|
|
148
|
+
* Skip rebuilding hit rects when only HTML content changed,
|
|
149
|
+
* or the lists are reference-equal.
|
|
150
|
+
*/
|
|
151
|
+
export declare function hitLayerSkipRebuild(prev: HitLayerMemoInput, next: HitLayerMemoInput): boolean;
|
|
152
|
+
/** Canvas-space corners of a (possibly rotated) hit rect. */
|
|
153
|
+
export declare function visualHitCorners(rect: VisualHitRect): {
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
}[];
|
|
157
|
+
export declare function visualHitRectsOverlap(a: VisualHitRect, b: VisualHitRect): boolean;
|
|
158
|
+
export declare function visualHitIntersectsBox(rect: VisualHitRect, box: {
|
|
159
|
+
left: number;
|
|
160
|
+
top: number;
|
|
161
|
+
width: number;
|
|
162
|
+
height: number;
|
|
163
|
+
}): boolean;
|
|
164
|
+
/** Elements whose visual hit rect intersects a wrapper-space marquee. */
|
|
165
|
+
export declare function elementIdsIntersectingSelection(elements: PPTElement[], box: {
|
|
166
|
+
left: number;
|
|
167
|
+
top: number;
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
}, canvasScale: number, hiddenIds?: Iterable<string>): string[];
|
|
171
|
+
export declare function visualHitAabb(rect: VisualHitRect): {
|
|
172
|
+
left: number;
|
|
173
|
+
top: number;
|
|
174
|
+
right: number;
|
|
175
|
+
bottom: number;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Clip a hit rect so a higher selected/editing box can keep the pointer.
|
|
179
|
+
* HitLayer sits above the viewport; without this hole, lower cards steal
|
|
180
|
+
* hover/click/drag after the top element leaves the hit layer.
|
|
181
|
+
*/
|
|
182
|
+
export declare function hitRectClipPath(rect: VisualHitRect, occluders: VisualHitRect[]): string | undefined;
|
|
183
|
+
/** True when the wrapper-local point sits on a resize handle square. */
|
|
184
|
+
export declare function isPointOnResizeHandle(x: number, y: number, rect: VisualHitRect, directions?: readonly ResizeHandleDirection[]): boolean;
|
|
185
|
+
/** True when the wrapper-local point sits on the inward drag border, not the edit interior. */
|
|
186
|
+
export declare function isPointOnVisualBorder(x: number, y: number, rect: VisualHitRect, options?: {
|
|
187
|
+
clearResizeHandles?: readonly ResizeHandleDirection[];
|
|
188
|
+
}): boolean;
|
|
189
|
+
export type OperateHitTarget = 'resize' | 'move' | 'edit' | null;
|
|
190
|
+
/**
|
|
191
|
+
* Selected-element hit kind. Resize handles beat the move ring; the move ring
|
|
192
|
+
* beats the edit interior. Used as the source of truth for operate-layer stacking.
|
|
193
|
+
*/
|
|
194
|
+
export declare function hitTestOperateTarget(x: number, y: number, rect: VisualHitRect, options: {
|
|
195
|
+
interactive: boolean;
|
|
196
|
+
handles?: readonly ResizeHandleDirection[];
|
|
197
|
+
}): OperateHitTarget;
|
|
198
|
+
export declare function retryPendingCaret(elementId: string): void;
|
|
199
|
+
export declare function focusElementEditor(elementId: string, coords?: ClientCoords): void;
|
|
200
|
+
export type { ClientCoords };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Convert pointer events into slide-canvas coordinates.
|
|
4
|
+
*
|
|
5
|
+
* The slide `.viewport` is CSS-scaled (`transform: scale(canvasScale)`) and
|
|
6
|
+
* left unsized so absolute children are not laid out twice. Pair `clientX/Y`
|
|
7
|
+
* with the `.viewport-wrapper` rect (already in visual pixels) and divide by
|
|
8
|
+
* canvasScale, times any ancestor CSS zoom (`rect.width / offsetWidth`).
|
|
9
|
+
*/
|
|
10
|
+
export type ReactPointerEvent = ReactMouseEvent | ReactTouchEvent;
|
|
11
|
+
export type PointerLike = MouseEvent | TouchEvent | ReactPointerEvent | {
|
|
12
|
+
clientX: number;
|
|
13
|
+
clientY: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function nativePointerEvent(e: ReactPointerEvent | MouseEvent | TouchEvent): MouseEvent | TouchEvent;
|
|
16
|
+
export declare function getPointerClient(e: PointerLike): {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
export declare function renderedScale(renderedSize: number, unscaledSize: number, fallback: number): number;
|
|
21
|
+
export declare function clientToCanvasPoint(clientX: number, clientY: number, originX: number, originY: number, scale: number): {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
export declare function clientDeltaToCanvas(dx: number, dy: number, scale: number): {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
export declare function findSlideViewport(from?: EventTarget | null): HTMLElement | null;
|
|
30
|
+
/**
|
|
31
|
+
* The slide `.viewport` is intentionally unsized (absolute children + CSS
|
|
32
|
+
* scale). Measuring it would be 0×0 and assigning it the unscaled slide size
|
|
33
|
+
* double-applies zoom against `.viewport-wrapper`. Use the wrapper — already
|
|
34
|
+
* sized to the *visual* slide — and multiply by the store canvas scale.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getScaleRoot(viewport: HTMLElement | null): HTMLElement | null;
|
|
37
|
+
export declare function getViewportRenderedScale(viewport: HTMLElement | null, fallbackScale: number): number;
|
|
38
|
+
export declare function clientToCanvas(e: PointerLike, viewport: HTMLElement, fallbackScale: number): {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
/** Wrapper-local visual pixels — same space as HitLayer / `elementVisualHitRect`. */
|
|
43
|
+
export declare function clientToWrapper(e: PointerLike, viewport: HTMLElement): {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
export declare function pointerDeltaToCanvas(start: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
}, current: PointerLike, viewport: HTMLElement | null, fallbackScale: number): {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canvas zoom is the *displayed* scale (canvasScale × 100), not the internal
|
|
3
|
+
* occupancy percentage. Occupancy is derived so 200% means 200% of the slide
|
|
4
|
+
* pixel size — independent of how large the editor pane is.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MIN_CANVAS_ZOOM = 10;
|
|
7
|
+
export declare const MAX_CANVAS_ZOOM = 200;
|
|
8
|
+
export declare const CANVAS_ZOOM_STEP = 5;
|
|
9
|
+
/** Wheel pixels that correspond to one CANVAS_ZOOM_STEP. */
|
|
10
|
+
export declare const WHEEL_ZOOM_PX_PER_STEP = 40;
|
|
11
|
+
/**
|
|
12
|
+
* Chrome PDF viewer / Chromium page-zoom ladder, clipped to 10–200%.
|
|
13
|
+
* +/- jumps to the next (or previous) stop; values between stops snap directionally.
|
|
14
|
+
*/
|
|
15
|
+
export declare const CANVAS_ZOOM_PRESETS: readonly [10, 25, 33, 50, 67, 75, 80, 90, 100, 110, 125, 150, 175, 200];
|
|
16
|
+
export declare function displayedZoomPercent(canvasScale: number): number;
|
|
17
|
+
export declare function clampCanvasZoom(zoom: number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Step displayed zoom like Chrome PDF: walk `CANVAS_ZOOM_PRESETS`.
|
|
20
|
+
* Off-ladder values (wheel) snap to the next stop in that direction.
|
|
21
|
+
*/
|
|
22
|
+
export declare function stepCanvasZoom(current: number, direction: 1 | -1): number;
|
|
23
|
+
export declare function addCanvasZoom(current: number, delta: number): number;
|
|
24
|
+
export declare function wheelDeltaToZoom(deltaPx: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* Occupancy % that realizes `targetZoom` displayed percent given the current
|
|
27
|
+
* scale and occupancy. Fallback when the canvas element is not available.
|
|
28
|
+
*/
|
|
29
|
+
export declare function occupancyForDisplayedZoom(targetZoom: number, canvasScale: number, canvasPercentage: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* Occupancy % from pane + slide geometry so 200% is 200% of the slide pixel
|
|
32
|
+
* size regardless of a stale canvasScale (rapid +/- and wheel).
|
|
33
|
+
*/
|
|
34
|
+
export declare function occupancyForTargetZoom(targetZoom: number, canvasWidth: number, canvasHeight: number, viewportSize: number, viewportRatio: number): number;
|
|
35
|
+
export declare function getPendingZoom(): number | null;
|
|
36
|
+
export declare function setPendingZoom(zoom: number | null): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy text to the clipboard.
|
|
3
|
+
* @param text Text to copy
|
|
4
|
+
*/
|
|
5
|
+
export declare const copyText: (text: string) => Promise<unknown>;
|
|
6
|
+
export declare const readClipboard: () => Promise<string>;
|
|
7
|
+
export declare const pasteCustomClipboardString: (text: string) => any;
|
|
8
|
+
export declare const pasteExcelClipboardString: (text: string) => string[][] | null;
|
|
9
|
+
export declare const pasteHTMLTableClipboardString: (text: string) => string[][] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clonePlain: <T>(value: T) => T;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type CodeLanguageId, type CodeThemeId } from '../configs/code';
|
|
2
|
+
type HighlighterCore = {
|
|
3
|
+
loadLanguage: (...langs: unknown[]) => Promise<void>;
|
|
4
|
+
loadTheme: (...themes: unknown[]) => Promise<void>;
|
|
5
|
+
getLoadedLanguages: () => string[];
|
|
6
|
+
getLoadedThemes: () => string[];
|
|
7
|
+
getLanguage: (...args: unknown[]) => unknown;
|
|
8
|
+
setTheme: (...args: unknown[]) => unknown;
|
|
9
|
+
codeToHtml: (code: string, options: {
|
|
10
|
+
lang: string;
|
|
11
|
+
theme: string;
|
|
12
|
+
structure?: 'classic' | 'inline';
|
|
13
|
+
}) => string;
|
|
14
|
+
codeToTokens: (code: string, options: {
|
|
15
|
+
lang: string;
|
|
16
|
+
theme: string;
|
|
17
|
+
}) => {
|
|
18
|
+
tokens: Array<Array<{
|
|
19
|
+
content: string;
|
|
20
|
+
offset: number;
|
|
21
|
+
color?: string;
|
|
22
|
+
bgColor?: string;
|
|
23
|
+
fontStyle?: number;
|
|
24
|
+
}>>;
|
|
25
|
+
fg?: string;
|
|
26
|
+
bg?: string;
|
|
27
|
+
};
|
|
28
|
+
getTheme: (theme: string) => {
|
|
29
|
+
bg: string;
|
|
30
|
+
fg: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export interface HighlightedCode {
|
|
34
|
+
html: string;
|
|
35
|
+
bg: string;
|
|
36
|
+
fg: string;
|
|
37
|
+
language: CodeLanguageId;
|
|
38
|
+
theme: CodeThemeId;
|
|
39
|
+
}
|
|
40
|
+
export declare function getHighlighter(): Promise<HighlighterCore>;
|
|
41
|
+
/** Inner Shiki HTML with token spans + `\n` text nodes, no `.line` / `<br>`. */
|
|
42
|
+
export declare function toEditorHighlightHtml(shikiHtml: string, code: string): string;
|
|
43
|
+
export type HighlightedToken = {
|
|
44
|
+
content: string;
|
|
45
|
+
color?: string;
|
|
46
|
+
};
|
|
47
|
+
export type HighlightedTokens = {
|
|
48
|
+
lines: HighlightedToken[][];
|
|
49
|
+
bg: string;
|
|
50
|
+
fg: string;
|
|
51
|
+
language: CodeLanguageId;
|
|
52
|
+
theme: CodeThemeId;
|
|
53
|
+
};
|
|
54
|
+
export declare function highlightCodeTokens(code: string, language: string, theme: string): Promise<HighlightedTokens>;
|
|
55
|
+
export declare function highlightCodeBlock(code: string, language: string, theme: string): Promise<HighlightedCode>;
|
|
56
|
+
/** Warm Shiki + html-to-image so the first on-slide raster is not a cold start. */
|
|
57
|
+
export declare function prefetchCodeRaster(language?: string, theme?: string): void;
|
|
58
|
+
/** Load core + lang + theme. Safe to call before CodeMirror/Shiki highlighting. */
|
|
59
|
+
export declare function prepareHighlighter(language: string, theme: string): Promise<{
|
|
60
|
+
bg: string;
|
|
61
|
+
fg: string;
|
|
62
|
+
language: "bash" | "cpp" | "csharp" | "css" | "go" | "html" | "java" | "javascript" | "json" | "kotlin" | "markdown" | "php" | "plaintext" | "python" | "ruby" | "rust" | "sql" | "swift" | "typescript" | "vue" | "xml" | "yaml";
|
|
63
|
+
theme: "andromeeda" | "aurora-x" | "ayu-dark" | "ayu-mirage" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dracula" | "github-dark" | "github-light" | "horizon" | "houston" | "kanagawa-wave" | "laserwave" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "night-owl" | "nord" | "one-dark-pro" | "one-light" | "plastic" | "poimandres" | "rose-pine" | "rose-pine-moon" | "synthwave-84" | "tokyo-night" | "vesper" | "vitesse-dark" | "vitesse-light";
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Sync inner HTML for tests / non-editor consumers. Call `prepareHighlighter`
|
|
67
|
+
* first. Uses `structure: 'inline'` so the result round-trips through text.
|
|
68
|
+
*/
|
|
69
|
+
export declare function highlightEditorHtml(code: string, language: string, theme: string): string;
|
|
70
|
+
export type CodeRasterInput = {
|
|
71
|
+
code: string;
|
|
72
|
+
language: string;
|
|
73
|
+
theme: string;
|
|
74
|
+
fontSize: number;
|
|
75
|
+
showLineNumbers: boolean;
|
|
76
|
+
};
|
|
77
|
+
/** Real gutter spans so SnapDOM / html-to-image do not depend on CSS counters. */
|
|
78
|
+
export declare function injectBoothLineNumbers(shikiHtml: string, showLineNumbers: boolean): string;
|
|
79
|
+
export declare function codeElementToBoothHtml(el: CodeRasterInput): Promise<string>;
|
|
80
|
+
export declare function renderCodeElementPng(el: CodeRasterInput & {
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
}): Promise<string>;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type CodeEditorPayload } from '../configs/code';
|
|
2
|
+
export type CodePptxRun = {
|
|
3
|
+
text: string;
|
|
4
|
+
options: {
|
|
5
|
+
color: string;
|
|
6
|
+
breakLine?: boolean;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type CodePptxText = {
|
|
10
|
+
runs: CodePptxRun[];
|
|
11
|
+
bg: string;
|
|
12
|
+
fg: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function hexForPptx(color: string): string;
|
|
15
|
+
export declare function mixHex(fg: string, bg: string, fgWeight: number): string;
|
|
16
|
+
export declare function codeElementToPptxText(el: Pick<CodeEditorPayload, 'code' | 'language' | 'theme' | 'showLineNumbers'>): Promise<CodePptxText>;
|
|
17
|
+
export declare function codeElementPptxBox(el: {
|
|
18
|
+
left: number;
|
|
19
|
+
top: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
fontSize: number;
|
|
23
|
+
rotate?: number;
|
|
24
|
+
}, colors: Pick<CodePptxText, 'bg' | 'fg'>, ratioPx2Inch: number, ratioPx2Pt: number): {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
w: number;
|
|
28
|
+
h: number;
|
|
29
|
+
fontSize: number;
|
|
30
|
+
fontFace: string;
|
|
31
|
+
color: string;
|
|
32
|
+
fill: {
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
35
|
+
valign: 'top';
|
|
36
|
+
align: 'left';
|
|
37
|
+
margin: [number, number, number, number];
|
|
38
|
+
rectRadius: number;
|
|
39
|
+
lineSpacingMultiple: number;
|
|
40
|
+
wrap: boolean;
|
|
41
|
+
vertOverflow: 'clip';
|
|
42
|
+
horzOverflow: 'clip';
|
|
43
|
+
rotate?: number;
|
|
44
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Command {
|
|
2
|
+
do(): void;
|
|
3
|
+
undo(): void;
|
|
4
|
+
}
|
|
5
|
+
export declare class CommandHistory {
|
|
6
|
+
private readonly maxSize;
|
|
7
|
+
private readonly onChange?;
|
|
8
|
+
private undoStack;
|
|
9
|
+
private redoStack;
|
|
10
|
+
constructor(maxSize?: number, onChange?: () => void);
|
|
11
|
+
get canUndo(): boolean;
|
|
12
|
+
get canRedo(): boolean;
|
|
13
|
+
execute(command: Command): void;
|
|
14
|
+
undo(): boolean;
|
|
15
|
+
redo(): boolean;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Flusher = () => void;
|
|
2
|
+
/** Pending editor/table drafts. Returns an unregister function. */
|
|
3
|
+
export declare function registerCommitFlusher(flush: Flusher): () => void;
|
|
4
|
+
/** Runs after drafts are persisted — canvas list sync, etc. */
|
|
5
|
+
export declare function registerAfterCommitDrain(flush: Flusher): () => void;
|
|
6
|
+
/** Persist in-flight drafts without leaving the editor. */
|
|
7
|
+
export declare function flushCommitQueue(): void;
|
|
8
|
+
/**
|
|
9
|
+
* Persist every in-flight draft, then sync dependents off the store.
|
|
10
|
+
* Presentation (and any other Activity hide) must call this before unmounting editors.
|
|
11
|
+
*/
|
|
12
|
+
export declare function drainCommitQueue(): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PPTElement } from '../types/slides';
|
|
2
|
+
export { applyLiveLayoutOntoStore } from './liveLayoutCommit';
|
|
3
|
+
export declare const commitAllLiveEditors: () => void;
|
|
4
|
+
export declare const commitAuthoritativeEditors: typeof commitAllLiveEditors;
|
|
5
|
+
/** Flush the active editor, then persist live layout onto store-owned elements. */
|
|
6
|
+
export declare const commitSlideElements: (liveList: PPTElement[]) => PPTElement[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pad the number of digits
|
|
3
|
+
* @param digit number
|
|
4
|
+
* @param len length
|
|
5
|
+
*/
|
|
6
|
+
export declare const fillDigit: (digit: number, len: number) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Check the device
|
|
9
|
+
*/
|
|
10
|
+
export declare const isPC: () => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* True on macOS / iOS (Command key). False on Windows, Linux, etc.
|
|
13
|
+
*/
|
|
14
|
+
export declare const isMac: () => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Check the URL string
|
|
17
|
+
*/
|
|
18
|
+
export declare const isValidURL: (url: string) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Convert HTML to plain text.
|
|
21
|
+
*/
|
|
22
|
+
export declare const htmlToText: (html: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Compare floating-point numbers.
|
|
25
|
+
*/
|
|
26
|
+
export declare const isFloatEqual: (a: number, b: number, epsilon?: number) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Round a number to a fixed number of fraction digits.
|
|
29
|
+
*/
|
|
30
|
+
export declare const toFixed: (num: number, fractionDigits?: number) => number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Compact a CSS length so pixel-units can split it (`13.5 pt` → `13.5pt`). */
|
|
2
|
+
export declare const compactCssLength: (raw: string) => string;
|
|
3
|
+
/** Convert a CSS length to px. Unknown / keyword / % values return undefined. */
|
|
4
|
+
export declare const cssLengthToPx: (raw: string | null | undefined, basePx: number) => number | undefined;
|
|
5
|
+
export declare const cssLengthParts: (raw: string | null | undefined, basePx: number) => {
|
|
6
|
+
px?: number;
|
|
7
|
+
em?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Map local class names through a CSS module; leave unknown tokens (parent hashes) intact.
|
|
2
|
+
* Local names emit both the hashed module class and the original token so
|
|
3
|
+
* `:global(.name)` pierce selectors still match. */
|
|
4
|
+
export declare function bindStyles(styles: Record<string, string>): (...args: Array<string | number | false | null | undefined | Record<string, unknown> | Array<unknown>>) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Dexie, { type EntityTable } from 'dexie';
|
|
2
|
+
import type { Patch } from 'immer';
|
|
3
|
+
import type { Slide, SlideTemplate, SlideTheme } from '../types/slides';
|
|
4
|
+
export interface writingBoardImg {
|
|
5
|
+
id: string;
|
|
6
|
+
dataURL: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Snapshot {
|
|
9
|
+
id: number;
|
|
10
|
+
index: number;
|
|
11
|
+
title?: string;
|
|
12
|
+
theme?: SlideTheme;
|
|
13
|
+
viewportSize?: number;
|
|
14
|
+
viewportRatio?: number;
|
|
15
|
+
templates?: SlideTemplate[];
|
|
16
|
+
slides?: Slide[];
|
|
17
|
+
patches?: Patch[];
|
|
18
|
+
inversePatches?: Patch[];
|
|
19
|
+
}
|
|
20
|
+
export declare const deleteDiscardedDB: () => Promise<void>;
|
|
21
|
+
declare const db: Dexie & {
|
|
22
|
+
snapshots: EntityTable<Snapshot, 'id'>;
|
|
23
|
+
writingBoardImgs: EntityTable<writingBoardImg, 'id'>;
|
|
24
|
+
};
|
|
25
|
+
export { db };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type DebounceOptions = {
|
|
2
|
+
leading?: boolean;
|
|
3
|
+
trailing?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type DebounceConfig = DebounceOptions & {
|
|
6
|
+
maxWait?: number;
|
|
7
|
+
};
|
|
8
|
+
export type Debounced<T extends (...args: never[]) => void> = ((...args: Parameters<T>) => void) & {
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
flush: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Lodash-compatible debounce: trailing by default, optional leading, cancel, flush.
|
|
14
|
+
* `maxWait` is what makes throttle a real throttle (invoke at least every wait in a burst).
|
|
15
|
+
*/
|
|
16
|
+
export declare function debounce<T extends (...args: never[]) => void>(fn: T, wait: number, options?: DebounceConfig): Debounced<T>;
|
|
17
|
+
/** Throttle is debounce with maxWait = wait. Defaults: leading and trailing both on. */
|
|
18
|
+
export declare function throttle<T extends (...args: never[]) => void>(fn: T, wait: number, options?: DebounceOptions): Debounced<T>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Slide } from '../types/slides';
|
|
2
|
+
export type PaintedSlide = Pick<Slide, 'id' | 'elements' | 'background' | 'type'>;
|
|
3
|
+
export type PaintedSlideDiff = {
|
|
4
|
+
added: string[];
|
|
5
|
+
removed: string[];
|
|
6
|
+
contentChanged: string[];
|
|
7
|
+
movedOnly: string[];
|
|
8
|
+
zOrderChanged: boolean;
|
|
9
|
+
backgroundChanged: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function diffPaintedSlide(prev: PaintedSlide | undefined, next: PaintedSlide | undefined): PaintedSlideDiff;
|