ninegrid2 6.843.0 → 6.844.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 +7 -3
- package/dist/bundle.esm.js +7 -3
- package/dist/nx/nxSplitter.js +7 -3
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +7 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -121214,10 +121214,14 @@ class nxSplitter extends HTMLElement {
|
|
|
121214
121214
|
if (el instanceof Element) {
|
|
121215
121215
|
const style = getComputedStyle(el);
|
|
121216
121216
|
totalPadding += parseFloat(style.paddingLeft) || 0;
|
|
121217
|
-
el = el.offsetParent;
|
|
121217
|
+
el = el.offsetParent;
|
|
121218
121218
|
} else if (el instanceof ShadowRoot) {
|
|
121219
|
-
|
|
121219
|
+
|
|
121220
|
+
console.log(el, el.host?.offsetParent);
|
|
121221
|
+
// ShadowRoot면 host로 넘어가고 offsetParent 다시 탐색
|
|
121220
121222
|
el = el.host?.offsetParent;
|
|
121223
|
+
|
|
121224
|
+
|
|
121221
121225
|
} else {
|
|
121222
121226
|
break;
|
|
121223
121227
|
}
|
|
@@ -121229,7 +121233,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121229
121233
|
const left = e.clientX - parentRect.left + totalPadding;
|
|
121230
121234
|
const top = e.clientY - parentRect.top + paddingTop;
|
|
121231
121235
|
|
|
121232
|
-
console.log("
|
|
121236
|
+
console.log("3------", left, top);
|
|
121233
121237
|
|
|
121234
121238
|
// 방향별 위치 설정
|
|
121235
121239
|
if (this.#mode === "h") {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121210,10 +121210,14 @@ class nxSplitter extends HTMLElement {
|
|
|
121210
121210
|
if (el instanceof Element) {
|
|
121211
121211
|
const style = getComputedStyle(el);
|
|
121212
121212
|
totalPadding += parseFloat(style.paddingLeft) || 0;
|
|
121213
|
-
el = el.offsetParent;
|
|
121213
|
+
el = el.offsetParent;
|
|
121214
121214
|
} else if (el instanceof ShadowRoot) {
|
|
121215
|
-
|
|
121215
|
+
|
|
121216
|
+
console.log(el, el.host?.offsetParent);
|
|
121217
|
+
// ShadowRoot면 host로 넘어가고 offsetParent 다시 탐색
|
|
121216
121218
|
el = el.host?.offsetParent;
|
|
121219
|
+
|
|
121220
|
+
|
|
121217
121221
|
} else {
|
|
121218
121222
|
break;
|
|
121219
121223
|
}
|
|
@@ -121225,7 +121229,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121225
121229
|
const left = e.clientX - parentRect.left + totalPadding;
|
|
121226
121230
|
const top = e.clientY - parentRect.top + paddingTop;
|
|
121227
121231
|
|
|
121228
|
-
console.log("
|
|
121232
|
+
console.log("3------", left, top);
|
|
121229
121233
|
|
|
121230
121234
|
// 방향별 위치 설정
|
|
121231
121235
|
if (this.#mode === "h") {
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -69,10 +69,14 @@ class nxSplitter extends HTMLElement {
|
|
|
69
69
|
if (el instanceof Element) {
|
|
70
70
|
const style = getComputedStyle(el);
|
|
71
71
|
totalPadding += parseFloat(style.paddingLeft) || 0;
|
|
72
|
-
el = el.offsetParent;
|
|
72
|
+
el = el.offsetParent;
|
|
73
73
|
} else if (el instanceof ShadowRoot) {
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
console.log(el, el.host?.offsetParent);
|
|
76
|
+
// ShadowRoot면 host로 넘어가고 offsetParent 다시 탐색
|
|
75
77
|
el = el.host?.offsetParent;
|
|
78
|
+
|
|
79
|
+
|
|
76
80
|
} else {
|
|
77
81
|
break;
|
|
78
82
|
}
|
|
@@ -84,7 +88,7 @@ class nxSplitter extends HTMLElement {
|
|
|
84
88
|
const left = e.clientX - parentRect.left + totalPadding;
|
|
85
89
|
const top = e.clientY - parentRect.top + paddingTop;
|
|
86
90
|
|
|
87
|
-
console.log("
|
|
91
|
+
console.log("3------", left, top);
|
|
88
92
|
|
|
89
93
|
// 방향별 위치 설정
|
|
90
94
|
if (this.#mode === "h") {
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -69,10 +69,14 @@ class nxSplitter extends HTMLElement {
|
|
|
69
69
|
if (el instanceof Element) {
|
|
70
70
|
const style = getComputedStyle(el);
|
|
71
71
|
totalPadding += parseFloat(style.paddingLeft) || 0;
|
|
72
|
-
el = el.offsetParent;
|
|
72
|
+
el = el.offsetParent;
|
|
73
73
|
} else if (el instanceof ShadowRoot) {
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
console.log(el, el.host?.offsetParent);
|
|
76
|
+
// ShadowRoot면 host로 넘어가고 offsetParent 다시 탐색
|
|
75
77
|
el = el.host?.offsetParent;
|
|
78
|
+
|
|
79
|
+
|
|
76
80
|
} else {
|
|
77
81
|
break;
|
|
78
82
|
}
|
|
@@ -84,7 +88,7 @@ class nxSplitter extends HTMLElement {
|
|
|
84
88
|
const left = e.clientX - parentRect.left + totalPadding;
|
|
85
89
|
const top = e.clientY - parentRect.top + paddingTop;
|
|
86
90
|
|
|
87
|
-
console.log("
|
|
91
|
+
console.log("3------", left, top);
|
|
88
92
|
|
|
89
93
|
// 방향별 위치 설정
|
|
90
94
|
if (this.#mode === "h") {
|