x-star-editor 0.6.6 → 0.6.7
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/styles/index.css
CHANGED
|
@@ -1341,7 +1341,6 @@ body {
|
|
|
1341
1341
|
font-style: italic;
|
|
1342
1342
|
}
|
|
1343
1343
|
.x-star-editor-md-editor .x-star-editor-md-heading {
|
|
1344
|
-
line-height: 1.6em;
|
|
1345
1344
|
font-weight: bold;
|
|
1346
1345
|
}
|
|
1347
1346
|
.x-star-editor-md-editor .x-star-editor-md-heading.x-star-editor-md-heading-1 {
|
|
@@ -1767,7 +1766,7 @@ body {
|
|
|
1767
1766
|
border-bottom-right-radius: 0.3em;
|
|
1768
1767
|
border-bottom-left-radius: 0.3em;
|
|
1769
1768
|
padding: 0 1em;
|
|
1770
|
-
line-height: 1.
|
|
1769
|
+
line-height: 1.6;
|
|
1771
1770
|
white-space: break-spaces;
|
|
1772
1771
|
background-color: #fff;
|
|
1773
1772
|
outline: none;
|
|
@@ -1840,6 +1839,7 @@ body {
|
|
|
1840
1839
|
.x-star-editor-slide-viewer {
|
|
1841
1840
|
position: relative;
|
|
1842
1841
|
color: rgba(0, 0, 0, 0.88);
|
|
1842
|
+
line-height: 1.4;
|
|
1843
1843
|
overflow: hidden;
|
|
1844
1844
|
aspect-ratio: 16/9;
|
|
1845
1845
|
}
|
|
@@ -1966,7 +1966,6 @@ body {
|
|
|
1966
1966
|
flex-direction: column;
|
|
1967
1967
|
align-items: center;
|
|
1968
1968
|
justify-content: center;
|
|
1969
|
-
line-height: 30px;
|
|
1970
1969
|
white-space: nowrap;
|
|
1971
1970
|
font-size: 12px;
|
|
1972
1971
|
background-color: #fff;
|
|
@@ -11,7 +11,7 @@ import SvgEraser from "../icons/Eraser";
|
|
|
11
11
|
import SvgPencil from "../icons/Pencil";
|
|
12
12
|
import SvgRedo from "../icons/Redo";
|
|
13
13
|
import SvgUndo from "../icons/Undo";
|
|
14
|
-
import {
|
|
14
|
+
import { getFormat } from "../locales";
|
|
15
15
|
import { prefix } from "../utils/global";
|
|
16
16
|
import { composeHandlers } from "../utils/handler";
|
|
17
17
|
import { getDefaultSchema } from "../utils/markdown";
|
|
@@ -30,6 +30,7 @@ var XStarSlideViewer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
30
30
|
height = _ref.height,
|
|
31
31
|
theme = _ref.theme,
|
|
32
32
|
slideClassName = _ref.slideClassName,
|
|
33
|
+
locale = _ref.locale,
|
|
33
34
|
_ref$value = _ref.value,
|
|
34
35
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
35
36
|
plugins = _ref.plugins,
|
|
@@ -73,8 +74,7 @@ var XStarSlideViewer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
73
74
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
74
75
|
eraserWidth = _useState8[0],
|
|
75
76
|
setEraserWidth = _useState8[1];
|
|
76
|
-
var
|
|
77
|
-
t = _useLocale.format;
|
|
77
|
+
var t = getFormat(locale, 'slideViewer');
|
|
78
78
|
useEffect(function () {
|
|
79
79
|
padRef.current = new SignaturePad(canvasRef.current, {
|
|
80
80
|
penColor: pencilColor
|