@fluxdown/vue-lynx-plugins 0.0.0-stage → 0.2.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/CHANGELOG.md +41 -0
- package/LICENSE +21 -0
- package/README.md +4 -2
- package/dist/esm/base/components/animated-text/animation.d.ts +6 -0
- package/dist/esm/base/components/animated-text/animation.js +67 -0
- package/dist/esm/base/components/animated-text/index.d.ts +16 -0
- package/dist/esm/base/components/animated-text/index.js +86 -0
- package/dist/esm/base/components/index.d.ts +1 -0
- package/dist/esm/base/components/index.js +3 -0
- package/dist/esm/base/consts/defaults.d.ts +1 -0
- package/dist/esm/base/consts/defaults.js +3 -0
- package/dist/esm/base/consts/index.d.ts +1 -0
- package/dist/esm/base/consts/index.js +3 -0
- package/dist/esm/base/context/index.d.ts +2 -0
- package/dist/esm/base/context/index.js +5 -0
- package/dist/esm/base/context/text-animation/index.d.ts +14 -0
- package/dist/esm/base/context/text-animation/index.js +22 -0
- package/dist/esm/base/context/text-animation/type.d.ts +4 -0
- package/dist/esm/base/context/text-animation/type.js +2 -0
- package/dist/esm/base/context/text-layout-width/index.d.ts +11 -0
- package/dist/esm/base/context/text-layout-width/index.js +20 -0
- package/dist/esm/base/index.d.ts +6 -0
- package/dist/esm/base/index.js +13 -0
- package/dist/esm/base/render/index.d.ts +2 -0
- package/dist/esm/base/render/index.js +5 -0
- package/dist/esm/base/render/layout.d.ts +9 -0
- package/dist/esm/base/render/layout.js +111 -0
- package/dist/esm/base/render/props.d.ts +3 -0
- package/dist/esm/base/render/props.js +43 -0
- package/dist/esm/base/slot/base.d.ts +5 -0
- package/dist/esm/base/slot/base.js +8 -0
- package/dist/esm/base/slot/index.d.ts +3 -0
- package/dist/esm/base/slot/index.js +7 -0
- package/dist/esm/base/slot/type.d.ts +92 -0
- package/dist/esm/base/slot/type.js +2 -0
- package/dist/esm/base/slot/utils/create.d.ts +3 -0
- package/dist/esm/base/slot/utils/create.js +7 -0
- package/dist/esm/base/slot/utils/index.d.ts +3 -0
- package/dist/esm/base/slot/utils/index.js +7 -0
- package/dist/esm/base/slot/utils/style.d.ts +1 -0
- package/dist/esm/base/slot/utils/style.js +3 -0
- package/dist/esm/base/slot/utils/url.d.ts +4 -0
- package/dist/esm/base/slot/utils/url.js +21 -0
- package/dist/esm/base/theme/index.d.ts +25 -0
- package/dist/esm/base/theme/index.js +78 -0
- package/dist/esm/base/theme/presets/base.d.ts +2 -0
- package/dist/esm/base/theme/presets/base.js +117 -0
- package/dist/esm/base/theme/presets/dark.d.ts +2 -0
- package/dist/esm/base/theme/presets/dark.js +33 -0
- package/dist/esm/base/theme/presets/index.d.ts +4 -0
- package/dist/esm/base/theme/presets/index.js +13 -0
- package/dist/esm/base/theme/presets/light.d.ts +2 -0
- package/dist/esm/base/theme/presets/light.js +33 -0
- package/dist/esm/base/theme/type.d.ts +141 -0
- package/dist/esm/base/theme/type.js +2 -0
- package/dist/esm/base/theme/utils.d.ts +4 -0
- package/dist/esm/base/theme/utils.js +38 -0
- package/dist/esm/env.d.ts +1 -0
- package/dist/esm/jsx-runtime.d.ts +27 -0
- package/dist/esm/jsx-runtime.js +6 -0
- package/dist/esm/plugins/blockquote/index.d.ts +2 -0
- package/dist/esm/plugins/blockquote/index.js +19 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.d.ts +13 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.js +14 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.js +38 -0
- package/dist/esm/plugins/blockquote/slot/index.d.ts +1 -0
- package/dist/esm/plugins/blockquote/slot/index.js +3 -0
- package/dist/esm/plugins/break-line/index.d.ts +2 -0
- package/dist/esm/plugins/break-line/index.js +19 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.d.ts +13 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.js +14 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.js +18 -0
- package/dist/esm/plugins/break-line/slot/index.d.ts +1 -0
- package/dist/esm/plugins/break-line/slot/index.js +3 -0
- package/dist/esm/plugins/code/index.d.ts +4 -0
- package/dist/esm/plugins/code/index.js +23 -0
- package/dist/esm/plugins/code/render/code/index.d.ts +13 -0
- package/dist/esm/plugins/code/render/code/index.js +45 -0
- package/dist/esm/plugins/code/render/code/utils.d.ts +7 -0
- package/dist/esm/plugins/code/render/code/utils.js +61 -0
- package/dist/esm/plugins/code/render/index.d.ts +1 -0
- package/dist/esm/plugins/code/render/index.js +3 -0
- package/dist/esm/plugins/code/slot/code-block/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-block/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.js +43 -0
- package/dist/esm/plugins/code/slot/code-header/index.d.ts +24 -0
- package/dist/esm/plugins/code/slot/code-header/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.js +122 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.d.ts +14 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.js +16 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.js +61 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/style.css +4 -0
- package/dist/esm/plugins/code/slot/index.d.ts +3 -0
- package/dist/esm/plugins/code/slot/index.js +7 -0
- package/dist/esm/plugins/code-prism/index.d.ts +3 -0
- package/dist/esm/plugins/code-prism/index.js +19 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.d.ts +16 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.js +14 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.js +36 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.js +64 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.d.ts +298 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.js +899 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.d.ts +2 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.js +11 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.d.ts +9 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.js +98 -0
- package/dist/esm/plugins/code-prism/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-prism/slot/index.js +3 -0
- package/dist/esm/plugins/code-shiki/index.d.ts +3 -0
- package/dist/esm/plugins/code-shiki/index.js +19 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.d.ts +16 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.js +14 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.d.ts +2 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.js +22 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.js +80 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.js +142 -0
- package/dist/esm/plugins/code-shiki/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-shiki/slot/index.js +3 -0
- package/dist/esm/plugins/effect-chunk/index.d.ts +2 -0
- package/dist/esm/plugins/effect-chunk/index.js +19 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.d.ts +17 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.js +16 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.js +54 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/style.css +6 -0
- package/dist/esm/plugins/effect-chunk/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-chunk/slot/index.js +3 -0
- package/dist/esm/plugins/effect-scale/index.d.ts +4 -0
- package/dist/esm/plugins/effect-scale/index.js +22 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.d.ts +13 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.js +48 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.js +27 -0
- package/dist/esm/plugins/effect-scale/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-scale/render/index.js +3 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.d.ts +17 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.d.ts +12 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.js +123 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.js +82 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/style.css +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.d.ts +14 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.js +35 -0
- package/dist/esm/plugins/effect-scale/slot/index.d.ts +2 -0
- package/dist/esm/plugins/effect-scale/slot/index.js +5 -0
- package/dist/esm/plugins/effect-shad/index.d.ts +4 -0
- package/dist/esm/plugins/effect-shad/index.js +21 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.d.ts +13 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.js +36 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.d.ts +5 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.js +21 -0
- package/dist/esm/plugins/effect-shad/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/render/index.js +3 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.d.ts +17 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.js +16 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.js +193 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/style.css +19 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.d.ts +23 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.js +137 -0
- package/dist/esm/plugins/effect-shad/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/slot/index.js +3 -0
- package/dist/esm/plugins/effect-suffix/index.d.ts +2 -0
- package/dist/esm/plugins/effect-suffix/index.js +19 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.d.ts +14 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.js +16 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.js +62 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/style.css +63 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.d.ts +17 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.js +36 -0
- package/dist/esm/plugins/effect-suffix/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-suffix/slot/index.js +3 -0
- package/dist/esm/plugins/emphasis/index.d.ts +2 -0
- package/dist/esm/plugins/emphasis/index.js +19 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.d.ts +13 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.js +14 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.js +33 -0
- package/dist/esm/plugins/emphasis/slot/index.d.ts +1 -0
- package/dist/esm/plugins/emphasis/slot/index.js +3 -0
- package/dist/esm/plugins/fallback/index.d.ts +4 -0
- package/dist/esm/plugins/fallback/index.js +21 -0
- package/dist/esm/plugins/fallback/render/fallback/index.d.ts +18 -0
- package/dist/esm/plugins/fallback/render/fallback/index.js +61 -0
- package/dist/esm/plugins/fallback/render/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/render/index.js +3 -0
- package/dist/esm/plugins/fallback/slot/element/index.d.ts +13 -0
- package/dist/esm/plugins/fallback/slot/element/index.js +14 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.js +305 -0
- package/dist/esm/plugins/fallback/slot/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/slot/index.js +3 -0
- package/dist/esm/plugins/heading/index.d.ts +2 -0
- package/dist/esm/plugins/heading/index.js +19 -0
- package/dist/esm/plugins/heading/slot/heading/index.d.ts +13 -0
- package/dist/esm/plugins/heading/slot/heading/index.js +14 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.js +44 -0
- package/dist/esm/plugins/heading/slot/index.d.ts +1 -0
- package/dist/esm/plugins/heading/slot/index.js +3 -0
- package/dist/esm/plugins/image/index.d.ts +2 -0
- package/dist/esm/plugins/image/index.js +19 -0
- package/dist/esm/plugins/image/slot/image/index.d.ts +13 -0
- package/dist/esm/plugins/image/slot/image/index.js +14 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.js +48 -0
- package/dist/esm/plugins/image/slot/index.d.ts +1 -0
- package/dist/esm/plugins/image/slot/index.js +3 -0
- package/dist/esm/plugins/link/index.d.ts +2 -0
- package/dist/esm/plugins/link/index.js +19 -0
- package/dist/esm/plugins/link/slot/index.d.ts +1 -0
- package/dist/esm/plugins/link/slot/index.js +3 -0
- package/dist/esm/plugins/link/slot/link/index.d.ts +13 -0
- package/dist/esm/plugins/link/slot/link/index.js +14 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.js +43 -0
- package/dist/esm/plugins/list/index.d.ts +2 -0
- package/dist/esm/plugins/list/index.js +19 -0
- package/dist/esm/plugins/list/slot/index.d.ts +1 -0
- package/dist/esm/plugins/list/slot/index.js +3 -0
- package/dist/esm/plugins/list/slot/list/index.d.ts +13 -0
- package/dist/esm/plugins/list/slot/list/index.js +14 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.js +26 -0
- package/dist/esm/plugins/paragraph/index.d.ts +2 -0
- package/dist/esm/plugins/paragraph/index.js +19 -0
- package/dist/esm/plugins/paragraph/slot/index.d.ts +1 -0
- package/dist/esm/plugins/paragraph/slot/index.js +3 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.d.ts +13 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.js +14 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.js +29 -0
- package/dist/esm/plugins/strong/index.d.ts +2 -0
- package/dist/esm/plugins/strong/index.js +19 -0
- package/dist/esm/plugins/strong/slot/index.d.ts +1 -0
- package/dist/esm/plugins/strong/slot/index.js +3 -0
- package/dist/esm/plugins/strong/slot/strong/index.d.ts +13 -0
- package/dist/esm/plugins/strong/slot/strong/index.js +14 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.js +34 -0
- package/dist/esm/plugins/table/index.d.ts +4 -0
- package/dist/esm/plugins/table/index.js +23 -0
- package/dist/esm/plugins/table/render/index.d.ts +2 -0
- package/dist/esm/plugins/table/render/index.js +5 -0
- package/dist/esm/plugins/table/render/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table/index.js +64 -0
- package/dist/esm/plugins/table/render/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table-cell/index.js +45 -0
- package/dist/esm/plugins/table/slot/index.d.ts +2 -0
- package/dist/esm/plugins/table/slot/index.js +5 -0
- package/dist/esm/plugins/table/slot/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table/index.js +14 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.d.ts +6 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.js +38 -0
- package/dist/esm/plugins/table/slot/table/renderer/style.css +11 -0
- package/dist/esm/plugins/table/slot/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table-cell/index.js +14 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.js +52 -0
- package/dist/esm/plugins/tex/index.d.ts +2 -0
- package/dist/esm/plugins/tex/index.js +19 -0
- package/dist/esm/plugins/tex/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex/slot/index.js +3 -0
- package/dist/esm/plugins/tex/slot/tex/index.d.ts +14 -0
- package/dist/esm/plugins/tex/slot/tex/index.js +16 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.js +36 -0
- package/dist/esm/plugins/tex-mathjax/index.d.ts +3 -0
- package/dist/esm/plugins/tex-mathjax/index.js +19 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.js +3 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.d.ts +14 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.js +16 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.js +55 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.d.ts +35 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.js +197 -0
- package/dist/esm/presets/full/index.d.ts +2 -0
- package/dist/esm/presets/full/index.js +85 -0
- package/dist/esm/presets/lite/index.d.ts +2 -0
- package/dist/esm/presets/lite/index.js +77 -0
- package/dist/esm/typings/index.d.ts +2 -0
- package/dist/esm/typings/index.js +7 -0
- package/dist/esm/typings/plugins/index.d.ts +1 -0
- package/dist/esm/typings/plugins/index.js +5 -0
- package/dist/esm/typings/plugins/plugins.d.ts +20 -0
- package/package.json +88 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import type { VueRenderMatchParams, VueRenderParams } from '@fluxdown/vue-base-plugins/base';
|
|
3
|
+
import { BaseVueRenderPlugin } from '@fluxdown/vue-base-plugins/base';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueRenderConfigs {
|
|
6
|
+
'render-table-cell': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class TableCellRenderPlugin extends BaseVueRenderPlugin {
|
|
10
|
+
static readonly key = "render-table-cell";
|
|
11
|
+
match({ node }: VueRenderMatchParams): boolean;
|
|
12
|
+
render({ getProps, node, parents, render, renderChildren }: VueRenderParams): import("../../../../jsx-runtime.js").JSX.Element;
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createVNode, isVNode, mergeProps } from "vue";
|
|
2
|
+
import { assert } from "@fluxdown/utils";
|
|
3
|
+
import { BaseVueRenderPlugin, isElementWithTag } from "@fluxdown/vue-base-plugins/base";
|
|
4
|
+
import { isString } from "lodash-es";
|
|
5
|
+
import { createTypeOfSlot } from "../../../../base/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
function _isSlot(s) {
|
|
18
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
19
|
+
}
|
|
20
|
+
const TableCell = /*#__PURE__*/ createTypeOfSlot('TableCell');
|
|
21
|
+
class TableCellRenderPlugin extends BaseVueRenderPlugin {
|
|
22
|
+
static key = 'render-table-cell';
|
|
23
|
+
match({ node }) {
|
|
24
|
+
return isElementWithTag(node, 'td', 'th');
|
|
25
|
+
}
|
|
26
|
+
render({ getProps, node, parents, render, renderChildren }) {
|
|
27
|
+
let _slot;
|
|
28
|
+
assert(isElementWithTag(node, 'td', 'th'));
|
|
29
|
+
const { align: _align, ...props } = getProps(node);
|
|
30
|
+
const align = node.properties?.align;
|
|
31
|
+
return createVNode(TableCell, mergeProps(props, {
|
|
32
|
+
"current": node,
|
|
33
|
+
"parents": parents,
|
|
34
|
+
"render": render,
|
|
35
|
+
"align": isString(align) ? align : undefined,
|
|
36
|
+
"tagName": node.tagName
|
|
37
|
+
}), _isSlot(_slot = renderChildren(node)) ? _slot : {
|
|
38
|
+
default: ()=>[
|
|
39
|
+
_slot
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { TableCellRenderPlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { TableRenderer } from './renderer/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueSlotConfigs {
|
|
6
|
+
'slot-table': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class TableSlotPlugin extends BaseSlotPlugin<'Table'> {
|
|
10
|
+
static readonly key = "slot-table";
|
|
11
|
+
readonly Component: typeof TableRenderer;
|
|
12
|
+
readonly type = "Table";
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { TableRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TableSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-table';
|
|
10
|
+
Component = TableRenderer;
|
|
11
|
+
type = 'Table';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { TableSlotPlugin };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TableProps } from '../../../../../base/index.js';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export declare function TableRenderer({ Raw: _Raw, children, class: className, columns, current, parents, render: _render, style, ...elementProps }: TableProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
4
|
+
export declare namespace TableRenderer {
|
|
5
|
+
var inheritAttrs: boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createVNode, mergeProps, resolveComponent } from "vue";
|
|
2
|
+
import { joinClassNames, useBlockStyle, useTheme } from "../../../../../base/index.js";
|
|
3
|
+
import "./style.css";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const TableRenderer = ({ Raw: _Raw, children, class: className, columns, current, parents, render: _render, style, ...elementProps })=>{
|
|
12
|
+
const { tokens } = useTheme();
|
|
13
|
+
const blockStyle = useBlockStyle(current, parents);
|
|
14
|
+
return createVNode(resolveComponent("scroll-view"), mergeProps(elementProps, {
|
|
15
|
+
"scroll-x": true,
|
|
16
|
+
"class": joinClassNames('fluxdown-table', className),
|
|
17
|
+
"style": {
|
|
18
|
+
...blockStyle,
|
|
19
|
+
border: `1px solid ${tokens.colors.border}`,
|
|
20
|
+
borderRadius: tokens.radius.lg,
|
|
21
|
+
...style
|
|
22
|
+
}
|
|
23
|
+
}), {
|
|
24
|
+
default: ()=>[
|
|
25
|
+
createVNode("view", {
|
|
26
|
+
"class": "fluxdown-table-grid",
|
|
27
|
+
"style": {
|
|
28
|
+
gridTemplateColumns: `repeat(${columns}, auto)`
|
|
29
|
+
}
|
|
30
|
+
}, [
|
|
31
|
+
children
|
|
32
|
+
])
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
TableRenderer.inheritAttrs = false;
|
|
37
|
+
|
|
38
|
+
export { TableRenderer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { TableCellRenderer } from './renderer/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueSlotConfigs {
|
|
6
|
+
'slot-table-cell': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class TableCellSlotPlugin extends BaseSlotPlugin<'TableCell'> {
|
|
10
|
+
static readonly key = "slot-table-cell";
|
|
11
|
+
readonly Component: typeof TableCellRenderer;
|
|
12
|
+
readonly type = "TableCell";
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { TableCellRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TableCellSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-table-cell';
|
|
10
|
+
Component = TableCellRenderer;
|
|
11
|
+
type = 'TableCell';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { TableCellSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TableCellProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function TableCellRenderer({ Raw: _Raw, align, children, class: className, current, parents, render: _render, style, tagName, ...elementProps }: TableCellProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare namespace TableCellRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createVNode, isVNode, mergeProps } from "vue";
|
|
2
|
+
import { isHastElement } from "@fluxdown/vue-base-plugins/base";
|
|
3
|
+
import { AnimatedText, TextStyleProvider, joinClassNames, useTextStyle, useTheme } from "../../../../../base/index.js";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
13
|
+
}
|
|
14
|
+
const TableCellRenderer = ({ Raw: _Raw, align, children, class: className, current, parents, render: _render, style, tagName, ...elementProps })=>{
|
|
15
|
+
const { tokens } = useTheme();
|
|
16
|
+
const row = parents.at(-1);
|
|
17
|
+
const properties = row && isHastElement(row) ? row.properties : {};
|
|
18
|
+
const cells = parents.at(-1)?.children.filter((child)=>child.type === 'element') ?? [];
|
|
19
|
+
const index = cells.findIndex((node)=>node === current);
|
|
20
|
+
const textStyle = useTextStyle({
|
|
21
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
22
|
+
fontWeight: tagName === 'th' ? '600' : '400',
|
|
23
|
+
textAlign: align === 'center' || align === 'right' ? align : 'left'
|
|
24
|
+
});
|
|
25
|
+
return createVNode(TextStyleProvider, {
|
|
26
|
+
"value": textStyle
|
|
27
|
+
}, {
|
|
28
|
+
default: ()=>[
|
|
29
|
+
createVNode("view", mergeProps(elementProps, {
|
|
30
|
+
"class": joinClassNames('fluxdown-table-cell', className),
|
|
31
|
+
"style": {
|
|
32
|
+
padding: `${tokens.spacing.sm} ${tokens.spacing.md}`,
|
|
33
|
+
borderBottom: properties.dataFluxdownLastRow ? undefined : `1px solid ${tokens.colors.border}`,
|
|
34
|
+
borderRight: index < cells.length - 1 ? `1px solid ${tokens.colors.border}` : undefined,
|
|
35
|
+
backgroundColor: tagName === 'th' ? tokens.colors.surfaceMuted : properties.dataFluxdownStripe ? tokens.colors.surfaceSubtle : undefined,
|
|
36
|
+
...style
|
|
37
|
+
}
|
|
38
|
+
}), [
|
|
39
|
+
createVNode(AnimatedText, {
|
|
40
|
+
"style": textStyle
|
|
41
|
+
}, _isSlot(children) ? children : {
|
|
42
|
+
default: ()=>[
|
|
43
|
+
children
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
])
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
TableCellRenderer.inheritAttrs = false;
|
|
51
|
+
|
|
52
|
+
export { TableCellRenderer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
|
|
2
|
+
import { TexPlugin } from "@fluxdown/vue-base-plugins/plugins/tex";
|
|
3
|
+
import { TexSlotPlugin } from "./slot/index.js";
|
|
4
|
+
|
|
5
|
+
export * from "./slot/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const tex_TexPlugin = /*#__PURE__*/ pluginExtends(TexPlugin, {
|
|
14
|
+
slots: [
|
|
15
|
+
TexSlotPlugin
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { tex_TexPlugin as TexPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tex/index.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { TexRenderer } from './renderer/index.js';
|
|
4
|
+
export * from './renderer/index.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface VueSlotConfigs {
|
|
7
|
+
'slot-tex': IPluggableConfig<void>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class TexSlotPlugin extends BaseSlotPlugin<'Tex'> {
|
|
11
|
+
static readonly key = "slot-tex";
|
|
12
|
+
readonly Component: typeof TexRenderer;
|
|
13
|
+
readonly type = "Tex";
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { TexRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
export * from "./renderer/index.js";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TexSlotPlugin extends BaseSlotPlugin {
|
|
11
|
+
static key = 'slot-tex';
|
|
12
|
+
Component = TexRenderer;
|
|
13
|
+
type = 'Tex';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { TexSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TexProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function TexRenderer({ Raw: _Raw, class: className, current, mode, parents, render: _render, style, tex, ...elementProps }: TexProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare namespace TexRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createVNode, isVNode, mergeProps } from "vue";
|
|
2
|
+
import { AnimatedText, joinClassNames, useBlockStyle, useTextStyle, useTheme } from "../../../../../base/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** TeX source is preserved until an application supplies a native math slot. */
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
10
|
+
}
|
|
11
|
+
const TexRenderer = ({ Raw: _Raw, class: className, current, mode = 'inline', parents, render: _render, style, tex, ...elementProps })=>{
|
|
12
|
+
const { tokens } = useTheme();
|
|
13
|
+
const blockStyle = useBlockStyle(current, parents);
|
|
14
|
+
const textStyle = useTextStyle({
|
|
15
|
+
fontFamily: tokens.typography.fontMono,
|
|
16
|
+
fontSize: tokens.code.fontSize
|
|
17
|
+
});
|
|
18
|
+
return createVNode(AnimatedText, mergeProps(elementProps, {
|
|
19
|
+
"class": joinClassNames('fluxdown-tex', className),
|
|
20
|
+
"style": {
|
|
21
|
+
...textStyle,
|
|
22
|
+
...mode === 'display' ? {
|
|
23
|
+
...blockStyle,
|
|
24
|
+
textAlign: 'center'
|
|
25
|
+
} : {},
|
|
26
|
+
...style
|
|
27
|
+
}
|
|
28
|
+
}), _isSlot(tex) ? tex : {
|
|
29
|
+
default: ()=>[
|
|
30
|
+
tex
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
TexRenderer.inheritAttrs = false;
|
|
35
|
+
|
|
36
|
+
export { TexRenderer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
|
|
2
|
+
import { TexPlugin } from "../tex/index.js";
|
|
3
|
+
import { TexMathJaxSlotPlugin } from "./slot/index.js";
|
|
4
|
+
|
|
5
|
+
export * from "./slot/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const TexMathJaxPlugin = /*#__PURE__*/ pluginExtends(TexPlugin, {
|
|
14
|
+
slots: [
|
|
15
|
+
TexMathJaxSlotPlugin
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { TexMathJaxPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tex-mathjax/index.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { TexMathJaxRenderer } from './renderer/index.js';
|
|
4
|
+
export * from './renderer/index.js';
|
|
5
|
+
declare global {
|
|
6
|
+
interface VueSlotConfigs {
|
|
7
|
+
'slot-tex-mathjax': IPluggableConfig<void>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class TexMathJaxSlotPlugin extends BaseSlotPlugin<'Tex'> {
|
|
11
|
+
static readonly key = "slot-tex-mathjax";
|
|
12
|
+
readonly Component: typeof TexMathJaxRenderer;
|
|
13
|
+
readonly type = "Tex";
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { TexMathJaxRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
export * from "./renderer/index.js";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TexMathJaxSlotPlugin extends BaseSlotPlugin {
|
|
11
|
+
static key = 'slot-tex-mathjax';
|
|
12
|
+
Component = TexMathJaxRenderer;
|
|
13
|
+
type = 'Tex';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { TexMathJaxSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TexProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function TexMathJaxRenderer({ Raw, ...props }: TexProps): import("../../../../../jsx-runtime.js").JSX.Element | null;
|
|
3
|
+
export declare namespace TexMathJaxRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createVNode, h, mergeProps, resolveComponent } from "vue";
|
|
2
|
+
import { joinClassNames, useBlockStyle, useTextStyle } from "../../../../../base/index.js";
|
|
3
|
+
import { renderFormula } from "./utils.js";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const TexMathJaxRenderer = ({ Raw, ...props })=>{
|
|
12
|
+
const { class: className, current, mode = 'inline', parents, render: _render, style, tex, ...elementProps } = props;
|
|
13
|
+
const textStyle = useTextStyle();
|
|
14
|
+
const blockStyle = useBlockStyle(current, parents);
|
|
15
|
+
const color = String(style?.color ?? textStyle.color);
|
|
16
|
+
const formula = renderFormula(tex, mode, color);
|
|
17
|
+
if (!formula) {
|
|
18
|
+
return Raw ? h(Raw, props) : null;
|
|
19
|
+
}
|
|
20
|
+
const rendered = createVNode("svg", mergeProps(elementProps, {
|
|
21
|
+
"accessibility-label": tex,
|
|
22
|
+
"class": joinClassNames('fluxdown-tex-mathjax', className),
|
|
23
|
+
"content": formula.svg,
|
|
24
|
+
"style": {
|
|
25
|
+
fontSize: textStyle.fontSize,
|
|
26
|
+
width: `${formula.width}em`,
|
|
27
|
+
height: `${formula.height}em`,
|
|
28
|
+
verticalAlign: 'middle',
|
|
29
|
+
flexShrink: 0,
|
|
30
|
+
...style
|
|
31
|
+
}
|
|
32
|
+
}), null);
|
|
33
|
+
return mode === 'display' ? createVNode(resolveComponent("scroll-view"), {
|
|
34
|
+
"scroll-x": true,
|
|
35
|
+
"style": {
|
|
36
|
+
...blockStyle,
|
|
37
|
+
width: '100%'
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
default: ()=>[
|
|
41
|
+
createVNode("view", {
|
|
42
|
+
"style": {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
minWidth: '100%'
|
|
46
|
+
}
|
|
47
|
+
}, [
|
|
48
|
+
rendered
|
|
49
|
+
])
|
|
50
|
+
]
|
|
51
|
+
}) : rendered;
|
|
52
|
+
};
|
|
53
|
+
TexMathJaxRenderer.inheritAttrs = false;
|
|
54
|
+
|
|
55
|
+
export { TexMathJaxRenderer };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import 'mathjax-full/js/input/tex/action/ActionConfiguration.js';
|
|
2
|
+
import 'mathjax-full/js/input/tex/ams/AmsConfiguration.js';
|
|
3
|
+
import 'mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js';
|
|
4
|
+
import 'mathjax-full/js/input/tex/bbox/BboxConfiguration.js';
|
|
5
|
+
import 'mathjax-full/js/input/tex/boldsymbol/BoldsymbolConfiguration.js';
|
|
6
|
+
import 'mathjax-full/js/input/tex/braket/BraketConfiguration.js';
|
|
7
|
+
import 'mathjax-full/js/input/tex/bussproofs/BussproofsConfiguration.js';
|
|
8
|
+
import 'mathjax-full/js/input/tex/cancel/CancelConfiguration.js';
|
|
9
|
+
import 'mathjax-full/js/input/tex/cases/CasesConfiguration.js';
|
|
10
|
+
import 'mathjax-full/js/input/tex/centernot/CenternotConfiguration.js';
|
|
11
|
+
import 'mathjax-full/js/input/tex/color/ColorConfiguration.js';
|
|
12
|
+
import 'mathjax-full/js/input/tex/colortbl/ColortblConfiguration.js';
|
|
13
|
+
import 'mathjax-full/js/input/tex/configmacros/ConfigMacrosConfiguration.js';
|
|
14
|
+
import 'mathjax-full/js/input/tex/empheq/EmpheqConfiguration.js';
|
|
15
|
+
import 'mathjax-full/js/input/tex/enclose/EncloseConfiguration.js';
|
|
16
|
+
import 'mathjax-full/js/input/tex/extpfeil/ExtpfeilConfiguration.js';
|
|
17
|
+
import 'mathjax-full/js/input/tex/gensymb/GensymbConfiguration.js';
|
|
18
|
+
import 'mathjax-full/js/input/tex/html/HtmlConfiguration.js';
|
|
19
|
+
import 'mathjax-full/js/input/tex/mathtools/MathtoolsConfiguration.js';
|
|
20
|
+
import 'mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js';
|
|
21
|
+
import 'mathjax-full/js/input/tex/newcommand/NewcommandConfiguration.js';
|
|
22
|
+
import 'mathjax-full/js/input/tex/physics/PhysicsConfiguration.js';
|
|
23
|
+
import 'mathjax-full/js/input/tex/tagformat/TagFormatConfiguration.js';
|
|
24
|
+
import 'mathjax-full/js/input/tex/textcomp/TextcompConfiguration.js';
|
|
25
|
+
import 'mathjax-full/js/input/tex/textmacros/TextMacrosConfiguration.js';
|
|
26
|
+
import 'mathjax-full/js/input/tex/upgreek/UpgreekConfiguration.js';
|
|
27
|
+
import 'mathjax-full/js/input/tex/unicode/UnicodeConfiguration.js';
|
|
28
|
+
import 'mathjax-full/js/input/tex/verb/VerbConfiguration.js';
|
|
29
|
+
interface Formula {
|
|
30
|
+
svg: string;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}
|
|
34
|
+
export declare const renderFormula: (source: string, mode: 'inline' | 'display', color: string) => Formula | null;
|
|
35
|
+
export {};
|