publ-echo-test 0.0.312 → 0.0.314
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.
@@ -128,9 +128,11 @@ var GridItem = function (_a) {
|
|
128
128
|
if (!targetNode || isDragging || isResizing) {
|
129
129
|
return;
|
130
130
|
}
|
131
|
+
console.log("targetNode", targetNode);
|
131
132
|
if (!targetNode.classList.contains("ccb-layout-box")) {
|
132
133
|
return;
|
133
134
|
}
|
135
|
+
console.log("contains?:", targetNode.classList.contains("ccb-layout-box"));
|
134
136
|
var prevPaddingL = parseFloat(getComputedStyle(targetNode).paddingLeft);
|
135
137
|
var prevPaddingR = parseFloat(getComputedStyle(targetNode).paddingRight);
|
136
138
|
var prevPaddingT = parseFloat(getComputedStyle(targetNode).paddingTop);
|
@@ -139,7 +141,7 @@ var GridItem = function (_a) {
|
|
139
141
|
var callback = function (mutationsList) {
|
140
142
|
for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
|
141
143
|
var mutation = mutationsList_2[_i];
|
142
|
-
|
144
|
+
// const isInitial = mutation.attributeName === "data-is-initialized";
|
143
145
|
var isSizeChanged = mutation.attributeName === "data-min-width" ||
|
144
146
|
mutation.attributeName === "data-min-height";
|
145
147
|
var keepWidth = true;
|
@@ -147,6 +149,9 @@ var GridItem = function (_a) {
|
|
147
149
|
var layoutBox = targetNode.children[0];
|
148
150
|
var contentsWrapper = layoutBox.children[0];
|
149
151
|
var oneComposition = contentsWrapper.children[0];
|
152
|
+
console.log("layoutbox", layoutBox);
|
153
|
+
console.log("contentsWrapper", contentsWrapper);
|
154
|
+
console.log("oneComposition", oneComposition);
|
150
155
|
// const insetTop = Number(mutation.target.dataset.insetTop!);
|
151
156
|
// const insetBottom = Number(mutation.target.dataset.insetBottom!);
|
152
157
|
var minWidth = 0;
|
@@ -168,8 +173,11 @@ var GridItem = function (_a) {
|
|
168
173
|
var insetTop = Number(mutation.target.getAttribute("data-inset-top"));
|
169
174
|
var insetBottom = Number(mutation.target.getAttribute("data-inset-bottom"));
|
170
175
|
var compositionCols = Number(oneComposition.getAttribute("data-cols"));
|
171
|
-
|
176
|
+
// const compositionRows = Number(
|
177
|
+
// oneComposition.getAttribute("data-rows")!
|
178
|
+
// );
|
172
179
|
var oneCompositionMinWidth = minCellWidth * compositionCols + 20; /* 20px padding */
|
180
|
+
console.log("compositionCols", compositionCols);
|
173
181
|
// let oneCompositionMinHeight =
|
174
182
|
// minColHeight * compositionRows + 20; /* 20px padding */
|
175
183
|
if (contentsWrapper) {
|
@@ -196,6 +204,8 @@ var GridItem = function (_a) {
|
|
196
204
|
(numberOfColumns - 1) * columnGap +
|
197
205
|
paddingLR +
|
198
206
|
compositionWrapperPaddingLR;
|
207
|
+
console.log("oneCompositionMinWidth", oneCompositionMinWidth);
|
208
|
+
console.log("cols", numberOfColumns);
|
199
209
|
var gridWrapperTotalH = gridWrapperInnerH + insetTop + insetBottom;
|
200
210
|
var listMinHeight = oneCompositionMinHeight * numberOfRows +
|
201
211
|
(numberOfRows - 1) * rowGap +
|