pds-dev-kit-web-test 2.7.458 → 2.7.460
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.
|
@@ -39,12 +39,13 @@ function gridAreaObjToString(area) {
|
|
|
39
39
|
return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
|
|
40
40
|
}
|
|
41
41
|
exports.gridAreaObjToString = gridAreaObjToString;
|
|
42
|
-
function getGridAreaFromGroup(position) {
|
|
42
|
+
function getGridAreaFromGroup(position, device) {
|
|
43
43
|
var x = position.x, y = position.y, cols = position.cols, rows = position.rows;
|
|
44
|
-
var
|
|
44
|
+
var maxCols = device === 'MOBILE' ? 9 : 25;
|
|
45
|
+
var colStart = clamp(x + 1, 1, Math.max(1, maxCols - cols));
|
|
45
46
|
var rowStart = clamp(y + 1, 1, Infinity);
|
|
46
47
|
var rowEnd = clamp(rows + rowStart, rowStart + 1, Infinity);
|
|
47
|
-
var colEnd = clamp(colStart + cols, colStart + 1,
|
|
48
|
+
var colEnd = clamp(colStart + cols, colStart + 1, maxCols);
|
|
48
49
|
return {
|
|
49
50
|
rowStart: rowStart,
|
|
50
51
|
colStart: colStart,
|
|
@@ -40,7 +40,7 @@ function RenderPedigreeRecursively(_a) {
|
|
|
40
40
|
y: bounding_1.y,
|
|
41
41
|
cols: bounding_1.w,
|
|
42
42
|
rows: bounding_1.h
|
|
43
|
-
});
|
|
43
|
+
}, device);
|
|
44
44
|
var relativeGridArea_1 = parentGroupArea
|
|
45
45
|
? (0, groupHelpers_1.calculateRelativeGridArea)(gridArea_1, parentGroupArea)
|
|
46
46
|
: gridArea_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pds-dev-kit-web-test",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.460",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"i18next-intervalplural-postprocessor": "^3.0.0",
|
|
25
25
|
"lottie-react": "^2.3.1",
|
|
26
26
|
"nuka-carousel": "^4.8.4",
|
|
27
|
-
"publ-echo": "^0.0.
|
|
27
|
+
"publ-echo": "^0.0.126",
|
|
28
28
|
"react-hook-form": "^7.28.1",
|
|
29
29
|
"react-i18next": "^11.12.0",
|
|
30
30
|
"react-router-dom": "^5.2.0",
|