react-ink-scripter 0.0.19 → 0.0.20

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/cjs/index.js CHANGED
@@ -23,10 +23,10 @@ var usePagePrint = function usePagePrint(_ref) {
23
23
  var _useState = react.useState({
24
24
  width: pageConfig.width || 0,
25
25
  height: pageConfig.height || 0,
26
- marginLeft: 0,
27
- marginRight: 0,
28
- marginTop: 0,
29
- marginBottom: 0
26
+ marginLeft: pageConfig.marginLeft || 0,
27
+ marginRight: pageConfig.marginRight || 0,
28
+ marginTop: pageConfig.marginTop || 0,
29
+ marginBottom: pageConfig.marginBottom || 0
30
30
  }),
31
31
  _useState2 = _slicedToArray(_useState, 2),
32
32
  page = _useState2[0],
package/dist/esm/index.js CHANGED
@@ -12,10 +12,10 @@ const usePagePrint = ({ open, pageConfig, }) => {
12
12
  const [page, setPage] = useState({
13
13
  width: pageConfig.width || 0,
14
14
  height: pageConfig.height || 0,
15
- marginLeft: 0,
16
- marginRight: 0,
17
- marginTop: 0,
18
- marginBottom: 0,
15
+ marginLeft: pageConfig.marginLeft || 0,
16
+ marginRight: pageConfig.marginRight || 0,
17
+ marginTop: pageConfig.marginTop || 0,
18
+ marginBottom: pageConfig.marginBottom || 0,
19
19
  });
20
20
  const [pageNode, setPageNode] = useState();
21
21
  const setPageNodeRef = useCallback((node) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ink-scripter",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "a react component for generate page to print",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",