ninegrid2 6.714.0 → 6.715.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 +5 -6
- package/dist/bundle.esm.js +5 -6
- package/dist/nx/nxSplitter.js +5 -6
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +5 -6
package/dist/bundle.cjs.js
CHANGED
|
@@ -121137,10 +121137,6 @@ class nxSplitter extends HTMLElement {
|
|
|
121137
121137
|
window.removeEventListener("mousemove", onMove);
|
|
121138
121138
|
window.removeEventListener("mouseup", onUp);
|
|
121139
121139
|
|
|
121140
|
-
|
|
121141
|
-
|
|
121142
|
-
|
|
121143
|
-
|
|
121144
121140
|
// 기준: prev + next 너비 합계
|
|
121145
121141
|
const totalSize = this.#mode === "h"
|
|
121146
121142
|
? prev.offsetWidth + next.offsetWidth
|
|
@@ -121153,8 +121149,8 @@ class nxSplitter extends HTMLElement {
|
|
|
121153
121149
|
? dragRect.left - prev.offsetLeft
|
|
121154
121150
|
: dragRect.top - prev.offsetTop;
|
|
121155
121151
|
|
|
121156
|
-
|
|
121157
|
-
|
|
121152
|
+
console.log(delta, dragRect);
|
|
121153
|
+
|
|
121158
121154
|
|
|
121159
121155
|
// 📌 사이즈 적용
|
|
121160
121156
|
if (this.#mode === "h") {
|
|
@@ -121222,6 +121218,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121222
121218
|
|
|
121223
121219
|
if (!prev || !next || !parent) return;
|
|
121224
121220
|
|
|
121221
|
+
prev.style.flex = "none";
|
|
121222
|
+
next.style.flex = "none";
|
|
121223
|
+
|
|
121225
121224
|
const parentRect = parent.getBoundingClientRect();
|
|
121226
121225
|
const total = this.#mode === "h" ? parentRect.width : parentRect.height;
|
|
121227
121226
|
const available = total - splitterSize;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121133,10 +121133,6 @@ class nxSplitter extends HTMLElement {
|
|
|
121133
121133
|
window.removeEventListener("mousemove", onMove);
|
|
121134
121134
|
window.removeEventListener("mouseup", onUp);
|
|
121135
121135
|
|
|
121136
|
-
|
|
121137
|
-
|
|
121138
|
-
|
|
121139
|
-
|
|
121140
121136
|
// 기준: prev + next 너비 합계
|
|
121141
121137
|
const totalSize = this.#mode === "h"
|
|
121142
121138
|
? prev.offsetWidth + next.offsetWidth
|
|
@@ -121149,8 +121145,8 @@ class nxSplitter extends HTMLElement {
|
|
|
121149
121145
|
? dragRect.left - prev.offsetLeft
|
|
121150
121146
|
: dragRect.top - prev.offsetTop;
|
|
121151
121147
|
|
|
121152
|
-
|
|
121153
|
-
|
|
121148
|
+
console.log(delta, dragRect);
|
|
121149
|
+
|
|
121154
121150
|
|
|
121155
121151
|
// 📌 사이즈 적용
|
|
121156
121152
|
if (this.#mode === "h") {
|
|
@@ -121218,6 +121214,9 @@ class nxSplitter extends HTMLElement {
|
|
|
121218
121214
|
|
|
121219
121215
|
if (!prev || !next || !parent) return;
|
|
121220
121216
|
|
|
121217
|
+
prev.style.flex = "none";
|
|
121218
|
+
next.style.flex = "none";
|
|
121219
|
+
|
|
121221
121220
|
const parentRect = parent.getBoundingClientRect();
|
|
121222
121221
|
const total = this.#mode === "h" ? parentRect.width : parentRect.height;
|
|
121223
121222
|
const available = total - splitterSize;
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -92,10 +92,6 @@ class nxSplitter extends HTMLElement {
|
|
|
92
92
|
window.removeEventListener("mousemove", onMove);
|
|
93
93
|
window.removeEventListener("mouseup", onUp);
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
95
|
// 기준: prev + next 너비 합계
|
|
100
96
|
const totalSize = this.#mode === "h"
|
|
101
97
|
? prev.offsetWidth + next.offsetWidth
|
|
@@ -108,8 +104,8 @@ class nxSplitter extends HTMLElement {
|
|
|
108
104
|
? dragRect.left - prev.offsetLeft
|
|
109
105
|
: dragRect.top - prev.offsetTop;
|
|
110
106
|
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
console.log(delta, dragRect);
|
|
108
|
+
|
|
113
109
|
|
|
114
110
|
// 📌 사이즈 적용
|
|
115
111
|
if (this.#mode === "h") {
|
|
@@ -177,6 +173,9 @@ class nxSplitter extends HTMLElement {
|
|
|
177
173
|
|
|
178
174
|
if (!prev || !next || !parent) return;
|
|
179
175
|
|
|
176
|
+
prev.style.flex = "none";
|
|
177
|
+
next.style.flex = "none";
|
|
178
|
+
|
|
180
179
|
const parentRect = parent.getBoundingClientRect();
|
|
181
180
|
const total = this.#mode === "h" ? parentRect.width : parentRect.height;
|
|
182
181
|
const available = total - splitterSize;
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -92,10 +92,6 @@ class nxSplitter extends HTMLElement {
|
|
|
92
92
|
window.removeEventListener("mousemove", onMove);
|
|
93
93
|
window.removeEventListener("mouseup", onUp);
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
95
|
// 기준: prev + next 너비 합계
|
|
100
96
|
const totalSize = this.#mode === "h"
|
|
101
97
|
? prev.offsetWidth + next.offsetWidth
|
|
@@ -108,8 +104,8 @@ class nxSplitter extends HTMLElement {
|
|
|
108
104
|
? dragRect.left - prev.offsetLeft
|
|
109
105
|
: dragRect.top - prev.offsetTop;
|
|
110
106
|
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
console.log(delta, dragRect);
|
|
108
|
+
|
|
113
109
|
|
|
114
110
|
// 📌 사이즈 적용
|
|
115
111
|
if (this.#mode === "h") {
|
|
@@ -177,6 +173,9 @@ class nxSplitter extends HTMLElement {
|
|
|
177
173
|
|
|
178
174
|
if (!prev || !next || !parent) return;
|
|
179
175
|
|
|
176
|
+
prev.style.flex = "none";
|
|
177
|
+
next.style.flex = "none";
|
|
178
|
+
|
|
180
179
|
const parentRect = parent.getBoundingClientRect();
|
|
181
180
|
const total = this.#mode === "h" ? parentRect.width : parentRect.height;
|
|
182
181
|
const available = total - splitterSize;
|