labellife-design-tool 2.2.4 → 2.2.6
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/canvas/workspace.js +19 -7
- package/dist/cjs/canvas/workspace.js.map +1 -1
- package/dist/cjs/index.js +61 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/store.js +42 -6
- package/dist/cjs/model/store.js.map +1 -1
- package/dist/esm/canvas/workspace.js +20 -8
- package/dist/esm/canvas/workspace.js.map +1 -1
- package/dist/esm/index.js +61 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/store.js +42 -6
- package/dist/esm/model/store.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Image, Group, Rect, Text, Arrow, Path, RegularPolygon, Star, Circle, Li
|
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import { Box, Typography, IconButton, Button, TextField } from '@mui/material';
|
|
5
5
|
import CloseIcon from '@mui/icons-material/Close';
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
7
7
|
import Konva from 'konva';
|
|
8
8
|
import CloudUploadIcon from '@mui/icons-material/CloudUpload';
|
|
9
9
|
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
|
|
@@ -2289,7 +2289,7 @@ var CheckerboardBackground = function CheckerboardBackground(_ref) {
|
|
|
2289
2289
|
height: h,
|
|
2290
2290
|
fill: "#ffffff",
|
|
2291
2291
|
listening: false,
|
|
2292
|
-
name: "
|
|
2292
|
+
name: "display-only"
|
|
2293
2293
|
});
|
|
2294
2294
|
return /*#__PURE__*/jsx(Rect, {
|
|
2295
2295
|
x: 0,
|
|
@@ -2299,7 +2299,7 @@ var CheckerboardBackground = function CheckerboardBackground(_ref) {
|
|
|
2299
2299
|
fillPatternImage: imgRef.current,
|
|
2300
2300
|
fillPatternRepeat: "repeat",
|
|
2301
2301
|
listening: false,
|
|
2302
|
-
name: "
|
|
2302
|
+
name: "display-only"
|
|
2303
2303
|
});
|
|
2304
2304
|
};
|
|
2305
2305
|
var ImageBackground = function ImageBackground(_ref2) {
|
|
@@ -2383,9 +2383,19 @@ var PageBackground = observer(function (_ref3) {
|
|
|
2383
2383
|
});
|
|
2384
2384
|
}
|
|
2385
2385
|
if (bg === 'transparent') {
|
|
2386
|
-
return /*#__PURE__*/
|
|
2387
|
-
|
|
2388
|
-
|
|
2386
|
+
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
2387
|
+
children: [/*#__PURE__*/jsx(Rect, {
|
|
2388
|
+
x: 0,
|
|
2389
|
+
y: 0,
|
|
2390
|
+
width: w,
|
|
2391
|
+
height: h,
|
|
2392
|
+
fill: "#ffffff",
|
|
2393
|
+
listening: false,
|
|
2394
|
+
name: "page-background"
|
|
2395
|
+
}), /*#__PURE__*/jsx(CheckerboardBackground, {
|
|
2396
|
+
w: w,
|
|
2397
|
+
h: h
|
|
2398
|
+
})]
|
|
2389
2399
|
});
|
|
2390
2400
|
}
|
|
2391
2401
|
|
|
@@ -2482,7 +2492,8 @@ var PageOverlayFrame = observer(function (_ref4) {
|
|
|
2482
2492
|
ctx.fillStrokeShape(shape);
|
|
2483
2493
|
},
|
|
2484
2494
|
fill: "rgba(240,240,240,0.5)",
|
|
2485
|
-
listening: false
|
|
2495
|
+
listening: false,
|
|
2496
|
+
name: "display-only"
|
|
2486
2497
|
});
|
|
2487
2498
|
});
|
|
2488
2499
|
var ALL_ANCHORS = ['top-left', 'top-center', 'top-right', 'middle-left', 'middle-right', 'bottom-left', 'bottom-center', 'bottom-right'];
|
|
@@ -2817,7 +2828,8 @@ var Workspace = observer(function (_ref6) {
|
|
|
2817
2828
|
height: store.height,
|
|
2818
2829
|
fill: "rgba(0,0,0,0.1)",
|
|
2819
2830
|
cornerRadius: 0,
|
|
2820
|
-
listening: false
|
|
2831
|
+
listening: false,
|
|
2832
|
+
name: "display-only"
|
|
2821
2833
|
}), /*#__PURE__*/jsx(PageBackground, {
|
|
2822
2834
|
store: store
|
|
2823
2835
|
}), page && page.children.map(function (element) {
|