publ-echo-test 0.0.295 → 0.0.297
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.
@@ -139,8 +139,7 @@ var GridItem = function (_a) {
|
|
139
139
|
for (var _i = 0, mutationsList_2 = mutationsList; _i < mutationsList_2.length; _i++) {
|
140
140
|
var mutation = mutationsList_2[_i];
|
141
141
|
console.log("mutation", mutation);
|
142
|
-
var isInitial = mutation.attributeName === "data-is-initialized"
|
143
|
-
mutation.target.getAttribute("data-is-initialized") === "true";
|
142
|
+
var isInitial = mutation.attributeName === "data-is-initialized";
|
144
143
|
console.log("isInitial", isInitial);
|
145
144
|
var isSizeChanged = mutation.attributeName === "data-min-width" ||
|
146
145
|
mutation.attributeName === "data-min-height";
|
@@ -264,17 +263,12 @@ var GridItem = function (_a) {
|
|
264
263
|
var config = { attributes: true, characterData: true };
|
265
264
|
// 대상 노드와 설정으로 관찰 시작
|
266
265
|
observer.observe(targetNode, config);
|
267
|
-
setTimeout(function () {
|
268
|
-
targetNode.setAttribute("data-is-initialized", "true");
|
269
|
-
}, 100);
|
270
266
|
// 정리 함수에서 MutationObserver 해제
|
271
267
|
return function () {
|
272
268
|
if (targetNode.id !== "contentslist-box") {
|
273
269
|
return;
|
274
270
|
}
|
275
271
|
observer.disconnect();
|
276
|
-
// NOTE: 필수? 아니람 삭제
|
277
|
-
targetNode.removeAttribute("data-is-initialized");
|
278
272
|
};
|
279
273
|
}, [autoResize, isSelected, isDragging, isResizing, props.w, props.h, x, y]);
|
280
274
|
// useEffect(() => {
|
@@ -136,7 +136,6 @@ var Resizable = function (_a) {
|
|
136
136
|
}
|
137
137
|
if (isContentsList && oneComposition) {
|
138
138
|
var minCellWidth = 10;
|
139
|
-
var minColHeight = 11;
|
140
139
|
var numberOfItems = Number(target.getAttribute("data-number-of-items"));
|
141
140
|
var numberOfColumns = Number(target.getAttribute("data-number-of-columns"));
|
142
141
|
var rowGap = Number(target.getAttribute("data-row-gap"));
|
@@ -144,7 +143,9 @@ var Resizable = function (_a) {
|
|
144
143
|
var insetTop = Number(target.getAttribute("data-inset-top"));
|
145
144
|
var insetBottom = Number(target.getAttribute("data-inset-bottom"));
|
146
145
|
var compositionCols = Number(oneComposition.getAttribute("data-cols"));
|
147
|
-
|
146
|
+
// const compositionRows = Number(
|
147
|
+
// oneComposition.getAttribute("data-rows")!
|
148
|
+
// );
|
148
149
|
var oneCompositionMinWidth = minCellWidth * compositionCols + 20; /* 20px padding */
|
149
150
|
// let oneCompositionMinHeight =
|
150
151
|
// minColHeight * compositionRows + 20; /* 20px padding */
|
@@ -281,6 +282,7 @@ var Resizable = function (_a) {
|
|
281
282
|
var _b, _c;
|
282
283
|
var _d, _e, _f, _g, _h, _j;
|
283
284
|
var node = _a.node, deltaX = _a.deltaX, deltaY = _a.deltaY;
|
285
|
+
console.log("handleAxis:", handleAxis);
|
284
286
|
if (handlerName === "onResizeStart") {
|
285
287
|
var position = { top: (_d = props.top) !== null && _d !== void 0 ? _d : 0, left: (_e = props.left) !== null && _e !== void 0 ? _e : 0 };
|
286
288
|
startPosition.current = position;
|