ninegrid2 6.712.0 → 6.714.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 +8 -4
- package/dist/bundle.esm.js +8 -4
- package/dist/nx/nxSplitter.js +8 -4
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +8 -4
package/dist/bundle.cjs.js
CHANGED
|
@@ -121134,11 +121134,12 @@ class nxSplitter extends HTMLElement {
|
|
|
121134
121134
|
|
|
121135
121135
|
const onUp = (e) => {
|
|
121136
121136
|
|
|
121137
|
-
const dragRect = dragBar.getBoundingClientRect();
|
|
121138
|
-
|
|
121139
121137
|
window.removeEventListener("mousemove", onMove);
|
|
121140
121138
|
window.removeEventListener("mouseup", onUp);
|
|
121141
|
-
|
|
121139
|
+
|
|
121140
|
+
|
|
121141
|
+
|
|
121142
|
+
|
|
121142
121143
|
|
|
121143
121144
|
// 기준: prev + next 너비 합계
|
|
121144
121145
|
const totalSize = this.#mode === "h"
|
|
@@ -121147,7 +121148,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121147
121148
|
|
|
121148
121149
|
// prev 기준 상대 거리 (드래그 거리)
|
|
121149
121150
|
|
|
121150
|
-
|
|
121151
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
121151
121152
|
const delta = this.#mode === "h"
|
|
121152
121153
|
? dragRect.left - prev.offsetLeft
|
|
121153
121154
|
: dragRect.top - prev.offsetTop;
|
|
@@ -121163,6 +121164,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121163
121164
|
prev.style.height = `${delta}px`;
|
|
121164
121165
|
next.style.height = `${totalSize - delta}px`;
|
|
121165
121166
|
}
|
|
121167
|
+
|
|
121168
|
+
|
|
121169
|
+
dragBar.remove();
|
|
121166
121170
|
};
|
|
121167
121171
|
|
|
121168
121172
|
window.addEventListener("mousemove", onMove);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121130,11 +121130,12 @@ class nxSplitter extends HTMLElement {
|
|
|
121130
121130
|
|
|
121131
121131
|
const onUp = (e) => {
|
|
121132
121132
|
|
|
121133
|
-
const dragRect = dragBar.getBoundingClientRect();
|
|
121134
|
-
|
|
121135
121133
|
window.removeEventListener("mousemove", onMove);
|
|
121136
121134
|
window.removeEventListener("mouseup", onUp);
|
|
121137
|
-
|
|
121135
|
+
|
|
121136
|
+
|
|
121137
|
+
|
|
121138
|
+
|
|
121138
121139
|
|
|
121139
121140
|
// 기준: prev + next 너비 합계
|
|
121140
121141
|
const totalSize = this.#mode === "h"
|
|
@@ -121143,7 +121144,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121143
121144
|
|
|
121144
121145
|
// prev 기준 상대 거리 (드래그 거리)
|
|
121145
121146
|
|
|
121146
|
-
|
|
121147
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
121147
121148
|
const delta = this.#mode === "h"
|
|
121148
121149
|
? dragRect.left - prev.offsetLeft
|
|
121149
121150
|
: dragRect.top - prev.offsetTop;
|
|
@@ -121159,6 +121160,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121159
121160
|
prev.style.height = `${delta}px`;
|
|
121160
121161
|
next.style.height = `${totalSize - delta}px`;
|
|
121161
121162
|
}
|
|
121163
|
+
|
|
121164
|
+
|
|
121165
|
+
dragBar.remove();
|
|
121162
121166
|
};
|
|
121163
121167
|
|
|
121164
121168
|
window.addEventListener("mousemove", onMove);
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -89,11 +89,12 @@ class nxSplitter extends HTMLElement {
|
|
|
89
89
|
|
|
90
90
|
const onUp = (e) => {
|
|
91
91
|
|
|
92
|
-
const dragRect = dragBar.getBoundingClientRect();
|
|
93
|
-
|
|
94
92
|
window.removeEventListener("mousemove", onMove);
|
|
95
93
|
window.removeEventListener("mouseup", onUp);
|
|
96
|
-
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
97
98
|
|
|
98
99
|
// 기준: prev + next 너비 합계
|
|
99
100
|
const totalSize = this.#mode === "h"
|
|
@@ -102,7 +103,7 @@ class nxSplitter extends HTMLElement {
|
|
|
102
103
|
|
|
103
104
|
// prev 기준 상대 거리 (드래그 거리)
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
106
107
|
const delta = this.#mode === "h"
|
|
107
108
|
? dragRect.left - prev.offsetLeft
|
|
108
109
|
: dragRect.top - prev.offsetTop;
|
|
@@ -118,6 +119,9 @@ class nxSplitter extends HTMLElement {
|
|
|
118
119
|
prev.style.height = `${delta}px`;
|
|
119
120
|
next.style.height = `${totalSize - delta}px`;
|
|
120
121
|
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
dragBar.remove();
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
window.addEventListener("mousemove", onMove);
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -89,11 +89,12 @@ class nxSplitter extends HTMLElement {
|
|
|
89
89
|
|
|
90
90
|
const onUp = (e) => {
|
|
91
91
|
|
|
92
|
-
const dragRect = dragBar.getBoundingClientRect();
|
|
93
|
-
|
|
94
92
|
window.removeEventListener("mousemove", onMove);
|
|
95
93
|
window.removeEventListener("mouseup", onUp);
|
|
96
|
-
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
97
98
|
|
|
98
99
|
// 기준: prev + next 너비 합계
|
|
99
100
|
const totalSize = this.#mode === "h"
|
|
@@ -102,7 +103,7 @@ class nxSplitter extends HTMLElement {
|
|
|
102
103
|
|
|
103
104
|
// prev 기준 상대 거리 (드래그 거리)
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
106
107
|
const delta = this.#mode === "h"
|
|
107
108
|
? dragRect.left - prev.offsetLeft
|
|
108
109
|
: dragRect.top - prev.offsetTop;
|
|
@@ -118,6 +119,9 @@ class nxSplitter extends HTMLElement {
|
|
|
118
119
|
prev.style.height = `${delta}px`;
|
|
119
120
|
next.style.height = `${totalSize - delta}px`;
|
|
120
121
|
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
dragBar.remove();
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
window.addEventListener("mousemove", onMove);
|