x-star-editor 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Fade.d.ts +2 -2
- package/dist/components/Fade.js +23 -10
- package/dist/components/Toolbar.js +18 -21
- package/dist/icons/Clear.d.ts +4 -0
- package/dist/icons/Clear.js +20 -0
- package/dist/icons/Eraser.d.ts +4 -0
- package/dist/icons/Eraser.js +15 -0
- package/dist/icons/Pencil.d.ts +4 -0
- package/dist/icons/Pencil.js +15 -0
- package/dist/icons/Screenshot.d.ts +4 -0
- package/dist/icons/Screenshot.js +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en_US.d.ts +18 -7
- package/dist/locales/en_US.js +19 -8
- package/dist/locales/index.d.ts +76 -32
- package/dist/locales/zh_CN.d.ts +19 -8
- package/dist/locales/zh_CN.js +20 -9
- package/dist/styles/index.css +58 -39
- package/dist/utils/markdown.d.ts +8 -0
- package/dist/utils/markdown.js +1 -1
- package/dist/utils/rehype/rehype-math.js +1 -3
- package/dist/utils/slide.d.ts +26 -0
- package/dist/utils/slide.js +22 -0
- package/dist/x-star-editor/index.d.ts +1 -1
- package/dist/x-star-editor/index.js +4 -9
- package/dist/x-star-md-editor/index.d.ts +1 -1
- package/dist/x-star-md-viewer/index.js +2 -3
- package/dist/x-star-slide-viewer/index.d.ts +9 -0
- package/dist/x-star-slide-viewer/index.js +320 -226
- package/package.json +1 -3
- package/dist/utils/slide/index.d.ts +0 -0
- package/dist/utils/slide/index.js +0 -32
- /package/dist/styles/cursor/{editor-eraser.png → eraser.png} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { PadValue } from '../utils/slide';
|
|
2
3
|
import type { ViewerOptions } from '../x-star-md-viewer';
|
|
3
4
|
export interface XStarSlideViewerPlugin {
|
|
4
5
|
(ctx: ViewerOptions): void;
|
|
@@ -36,6 +37,14 @@ export interface XStarSlideViewerProps {
|
|
|
36
37
|
* 插件
|
|
37
38
|
*/
|
|
38
39
|
plugins?: XStarSlideViewerPlugin[];
|
|
40
|
+
/**
|
|
41
|
+
* 初始画板数据
|
|
42
|
+
*/
|
|
43
|
+
initialPadValue?: PadValue;
|
|
44
|
+
/**
|
|
45
|
+
* 画板改变回调函数
|
|
46
|
+
*/
|
|
47
|
+
onPadChange?: (value: PadValue) => void;
|
|
39
48
|
}
|
|
40
49
|
declare const XStarSlideViewer: React.ForwardRefExoticComponent<XStarSlideViewerProps & React.RefAttributes<XStarSlideViewerHandle>>;
|
|
41
50
|
export default XStarSlideViewer;
|