ninegrid2 6.1072.0 → 6.1074.0
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.
- package/dist/bundle.cjs.js +3 -3
- package/dist/bundle.esm.js +3 -3
- package/dist/nx/nxSplitter.js +3 -3
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +3 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -121439,9 +121439,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121439
121439
|
const nextRect = next.getBoundingClientRect();
|
|
121440
121440
|
|
|
121441
121441
|
// 드래그 바의 초기 위치와 크기 설정
|
|
121442
|
-
const initialSplitterPosInParent = isHorizontal
|
|
121442
|
+
const initialSplitterPosInParent = (isHorizontal
|
|
121443
121443
|
? splitterRect.left - dragBarOffsetParentRect.left
|
|
121444
|
-
: splitterRect.top - dragBarOffsetParentRect.top;
|
|
121444
|
+
: splitterRect.top - dragBarOffsetParentRect.top) - clickOffset;
|
|
121445
121445
|
|
|
121446
121446
|
if (isHorizontal) {
|
|
121447
121447
|
dragBar.style.top = "0";
|
|
@@ -121488,7 +121488,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121488
121488
|
const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
|
|
121489
121489
|
const dragOffset = finalDragBarPos - initialSplitterPosInParent;
|
|
121490
121490
|
|
|
121491
|
-
const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
|
|
121491
|
+
const prevSize = (isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height) - clickOffset;
|
|
121492
121492
|
const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
|
|
121493
121493
|
|
|
121494
121494
|
const newPrevSize = prevSize + dragOffset;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121435,9 +121435,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121435
121435
|
const nextRect = next.getBoundingClientRect();
|
|
121436
121436
|
|
|
121437
121437
|
// 드래그 바의 초기 위치와 크기 설정
|
|
121438
|
-
const initialSplitterPosInParent = isHorizontal
|
|
121438
|
+
const initialSplitterPosInParent = (isHorizontal
|
|
121439
121439
|
? splitterRect.left - dragBarOffsetParentRect.left
|
|
121440
|
-
: splitterRect.top - dragBarOffsetParentRect.top;
|
|
121440
|
+
: splitterRect.top - dragBarOffsetParentRect.top) - clickOffset;
|
|
121441
121441
|
|
|
121442
121442
|
if (isHorizontal) {
|
|
121443
121443
|
dragBar.style.top = "0";
|
|
@@ -121484,7 +121484,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121484
121484
|
const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
|
|
121485
121485
|
const dragOffset = finalDragBarPos - initialSplitterPosInParent;
|
|
121486
121486
|
|
|
121487
|
-
const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
|
|
121487
|
+
const prevSize = (isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height) - clickOffset;
|
|
121488
121488
|
const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
|
|
121489
121489
|
|
|
121490
121490
|
const newPrevSize = prevSize + dragOffset;
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -72,9 +72,9 @@ class nxSplitter extends HTMLElement {
|
|
|
72
72
|
const nextRect = next.getBoundingClientRect();
|
|
73
73
|
|
|
74
74
|
// 드래그 바의 초기 위치와 크기 설정
|
|
75
|
-
const initialSplitterPosInParent = isHorizontal
|
|
75
|
+
const initialSplitterPosInParent = (isHorizontal
|
|
76
76
|
? splitterRect.left - dragBarOffsetParentRect.left
|
|
77
|
-
: splitterRect.top - dragBarOffsetParentRect.top;
|
|
77
|
+
: splitterRect.top - dragBarOffsetParentRect.top) - clickOffset;
|
|
78
78
|
|
|
79
79
|
if (isHorizontal) {
|
|
80
80
|
dragBar.style.top = "0";
|
|
@@ -121,7 +121,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121
121
|
const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
|
|
122
122
|
const dragOffset = finalDragBarPos - initialSplitterPosInParent;
|
|
123
123
|
|
|
124
|
-
const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
|
|
124
|
+
const prevSize = (isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height) - clickOffset;
|
|
125
125
|
const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
|
|
126
126
|
|
|
127
127
|
const newPrevSize = prevSize + dragOffset;
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -72,9 +72,9 @@ class nxSplitter extends HTMLElement {
|
|
|
72
72
|
const nextRect = next.getBoundingClientRect();
|
|
73
73
|
|
|
74
74
|
// 드래그 바의 초기 위치와 크기 설정
|
|
75
|
-
const initialSplitterPosInParent = isHorizontal
|
|
75
|
+
const initialSplitterPosInParent = (isHorizontal
|
|
76
76
|
? splitterRect.left - dragBarOffsetParentRect.left
|
|
77
|
-
: splitterRect.top - dragBarOffsetParentRect.top;
|
|
77
|
+
: splitterRect.top - dragBarOffsetParentRect.top) - clickOffset;
|
|
78
78
|
|
|
79
79
|
if (isHorizontal) {
|
|
80
80
|
dragBar.style.top = "0";
|
|
@@ -121,7 +121,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121
121
|
const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
|
|
122
122
|
const dragOffset = finalDragBarPos - initialSplitterPosInParent;
|
|
123
123
|
|
|
124
|
-
const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
|
|
124
|
+
const prevSize = (isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height) - clickOffset;
|
|
125
125
|
const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
|
|
126
126
|
|
|
127
127
|
const newPrevSize = prevSize + dragOffset;
|