pds-dev-kit-web-test 0.3.26 → 0.3.27
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.
|
@@ -48,12 +48,6 @@ function Text(props) {
|
|
|
48
48
|
var cbRef = (0, react_1.useRef)(null);
|
|
49
49
|
var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false });
|
|
50
50
|
var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
|
|
51
|
-
console.log('CB-REF', {
|
|
52
|
-
cbRef: cbRef,
|
|
53
|
-
current: cbRef.current,
|
|
54
|
-
text: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT,
|
|
55
|
-
entry: entry
|
|
56
|
-
});
|
|
57
51
|
var effectCssProperties = isVisible ? effect : {};
|
|
58
52
|
var isNoneEffectType = device === 'DESKTOP'
|
|
59
53
|
? CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE === 'NONE'
|
|
@@ -62,7 +62,7 @@ function getGroupForMultiple(elems) {
|
|
|
62
62
|
if (idx === arr.length - 1) {
|
|
63
63
|
return acc;
|
|
64
64
|
}
|
|
65
|
-
var elem1 = elem;
|
|
65
|
+
var elem1 = idx === 0 ? elem : acc;
|
|
66
66
|
var elem2 = arr[idx + 1];
|
|
67
67
|
var minX = Math.min(elem1.x, elem2.x);
|
|
68
68
|
var minY = Math.min(elem1.y, elem2.y);
|
|
@@ -72,19 +72,13 @@ function getGroupForMultiple(elems) {
|
|
|
72
72
|
var elem2H = elem2.y - minY + elem2.h;
|
|
73
73
|
var maxZ = Math.max((_a = elem1 === null || elem1 === void 0 ? void 0 : elem1.z) !== null && _a !== void 0 ? _a : 0, (_b = elem2 === null || elem2 === void 0 ? void 0 : elem2.z) !== null && _b !== void 0 ? _b : 0);
|
|
74
74
|
return {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
x: Math.min(elem1.x, elem2.x),
|
|
76
|
+
y: Math.min(elem1.y, elem2.y),
|
|
77
|
+
w: Math.max(elem1W, elem2W),
|
|
78
|
+
h: Math.max(elem1H, elem2H),
|
|
79
|
+
z: maxZ
|
|
80
80
|
};
|
|
81
|
-
}, {
|
|
82
|
-
minX: 0,
|
|
83
|
-
minY: 0,
|
|
84
|
-
maxW: 0,
|
|
85
|
-
maxH: 0,
|
|
86
|
-
maxZ: 0
|
|
87
|
-
}), minX = _a.minX, minY = _a.minY, maxW = _a.maxW, maxH = _a.maxH, maxZ = _a.maxZ;
|
|
81
|
+
}, { x: 0, y: 0, w: 0, h: 0, z: 0 }), minX = _a.x, minY = _a.y, maxW = _a.w, maxH = _a.h, maxZ = _a.z;
|
|
88
82
|
var groupLayouts = elems.map(function (elem) { return (__assign(__assign({}, elem), { x: elem.x - minX, y: elem.y - minY })); });
|
|
89
83
|
var childrenIds = elems.map(function (elem) { return elem.i; });
|
|
90
84
|
return {
|
package/package.json
CHANGED
package/release-note.md
CHANGED