publ-echo-test 0.0.311 → 0.0.313

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.
@@ -47,6 +47,7 @@ var GridItem = function (_a) {
47
47
  if (!targetNode || isDragging || isResizing) {
48
48
  return;
49
49
  }
50
+ console.log("contains?:", targetNode.classList.contains("ccb-layout-box"));
50
51
  if (targetNode.classList.contains("ccb-layout-box")) {
51
52
  return;
52
53
  }
@@ -112,7 +113,7 @@ var GridItem = function (_a) {
112
113
  observer.observe(targetNode, config);
113
114
  // 정리 함수에서 MutationObserver 해제
114
115
  return function () {
115
- if (targetNode.id === "contentslist-box") {
116
+ if (targetNode.classList.contains("ccb-layout-box")) {
116
117
  return;
117
118
  }
118
119
  observer.disconnect();
@@ -127,7 +128,7 @@ var GridItem = function (_a) {
127
128
  if (!targetNode || isDragging || isResizing) {
128
129
  return;
129
130
  }
130
- if (targetNode.id !== "contentslist-box") {
131
+ if (!targetNode.classList.contains("ccb-layout-box")) {
131
132
  return;
132
133
  }
133
134
  var prevPaddingL = parseFloat(getComputedStyle(targetNode).paddingLeft);
@@ -138,7 +139,7 @@ var GridItem = function (_a) {
138
139
  var callback = function (mutationsList) {
139
140
  for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
140
141
  var mutation = mutationsList_2[_i];
141
- var isInitial = mutation.attributeName === "data-is-initialized";
142
+ // const isInitial = mutation.attributeName === "data-is-initialized";
142
143
  var isSizeChanged = mutation.attributeName === "data-min-width" ||
143
144
  mutation.attributeName === "data-min-height";
144
145
  var keepWidth = true;
@@ -167,8 +168,11 @@ var GridItem = function (_a) {
167
168
  var insetTop = Number(mutation.target.getAttribute("data-inset-top"));
168
169
  var insetBottom = Number(mutation.target.getAttribute("data-inset-bottom"));
169
170
  var compositionCols = Number(oneComposition.getAttribute("data-cols"));
170
- var compositionRows = Number(oneComposition.getAttribute("data-rows"));
171
+ // const compositionRows = Number(
172
+ // oneComposition.getAttribute("data-rows")!
173
+ // );
171
174
  var oneCompositionMinWidth = minCellWidth * compositionCols + 20; /* 20px padding */
175
+ console.log("compositionCols", compositionCols);
172
176
  // let oneCompositionMinHeight =
173
177
  // minColHeight * compositionRows + 20; /* 20px padding */
174
178
  if (contentsWrapper) {
@@ -195,6 +199,8 @@ var GridItem = function (_a) {
195
199
  (numberOfColumns - 1) * columnGap +
196
200
  paddingLR +
197
201
  compositionWrapperPaddingLR;
202
+ console.log("oneCompositionMinWidth", oneCompositionMinWidth);
203
+ console.log("cols", numberOfColumns);
198
204
  var gridWrapperTotalH = gridWrapperInnerH + insetTop + insetBottom;
199
205
  var listMinHeight = oneCompositionMinHeight * numberOfRows +
200
206
  (numberOfRows - 1) * rowGap +
@@ -263,7 +269,7 @@ var GridItem = function (_a) {
263
269
  observer.observe(targetNode, config);
264
270
  // 정리 함수에서 MutationObserver 해제
265
271
  return function () {
266
- if (targetNode.id !== "contentslist-box") {
272
+ if (!targetNode.classList.contains("ccb-layout-box")) {
267
273
  return;
268
274
  }
269
275
  observer.disconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.311",
3
+ "version": "0.0.313",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",