ninegrid2 6.710.0 → 6.712.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 +4 -7
- package/dist/bundle.esm.js +4 -7
- package/dist/nx/nxSplitter.js +4 -7
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +4 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -121133,23 +121133,20 @@ class nxSplitter extends HTMLElement {
|
|
|
121133
121133
|
|
|
121134
121134
|
|
|
121135
121135
|
const onUp = (e) => {
|
|
121136
|
+
|
|
121137
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
121138
|
+
|
|
121136
121139
|
window.removeEventListener("mousemove", onMove);
|
|
121137
121140
|
window.removeEventListener("mouseup", onUp);
|
|
121138
121141
|
dragBar.remove();
|
|
121139
121142
|
|
|
121140
|
-
const prev = this.previousElementSibling;
|
|
121141
|
-
const next = this.nextElementSibling;
|
|
121142
|
-
if (!prev || !next) return;
|
|
121143
|
-
|
|
121144
|
-
this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
|
|
121145
|
-
|
|
121146
121143
|
// 기준: prev + next 너비 합계
|
|
121147
121144
|
const totalSize = this.#mode === "h"
|
|
121148
121145
|
? prev.offsetWidth + next.offsetWidth
|
|
121149
121146
|
: prev.offsetHeight + next.offsetHeight;
|
|
121150
121147
|
|
|
121151
121148
|
// prev 기준 상대 거리 (드래그 거리)
|
|
121152
|
-
|
|
121149
|
+
|
|
121153
121150
|
|
|
121154
121151
|
const delta = this.#mode === "h"
|
|
121155
121152
|
? dragRect.left - prev.offsetLeft
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121129,23 +121129,20 @@ class nxSplitter extends HTMLElement {
|
|
|
121129
121129
|
|
|
121130
121130
|
|
|
121131
121131
|
const onUp = (e) => {
|
|
121132
|
+
|
|
121133
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
121134
|
+
|
|
121132
121135
|
window.removeEventListener("mousemove", onMove);
|
|
121133
121136
|
window.removeEventListener("mouseup", onUp);
|
|
121134
121137
|
dragBar.remove();
|
|
121135
121138
|
|
|
121136
|
-
const prev = this.previousElementSibling;
|
|
121137
|
-
const next = this.nextElementSibling;
|
|
121138
|
-
if (!prev || !next) return;
|
|
121139
|
-
|
|
121140
|
-
this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
|
|
121141
|
-
|
|
121142
121139
|
// 기준: prev + next 너비 합계
|
|
121143
121140
|
const totalSize = this.#mode === "h"
|
|
121144
121141
|
? prev.offsetWidth + next.offsetWidth
|
|
121145
121142
|
: prev.offsetHeight + next.offsetHeight;
|
|
121146
121143
|
|
|
121147
121144
|
// prev 기준 상대 거리 (드래그 거리)
|
|
121148
|
-
|
|
121145
|
+
|
|
121149
121146
|
|
|
121150
121147
|
const delta = this.#mode === "h"
|
|
121151
121148
|
? dragRect.left - prev.offsetLeft
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -88,23 +88,20 @@ class nxSplitter extends HTMLElement {
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
const onUp = (e) => {
|
|
91
|
+
|
|
92
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
93
|
+
|
|
91
94
|
window.removeEventListener("mousemove", onMove);
|
|
92
95
|
window.removeEventListener("mouseup", onUp);
|
|
93
96
|
dragBar.remove();
|
|
94
97
|
|
|
95
|
-
const prev = this.previousElementSibling;
|
|
96
|
-
const next = this.nextElementSibling;
|
|
97
|
-
if (!prev || !next) return;
|
|
98
|
-
|
|
99
|
-
const splitterSize = this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
|
|
100
|
-
|
|
101
98
|
// 기준: prev + next 너비 합계
|
|
102
99
|
const totalSize = this.#mode === "h"
|
|
103
100
|
? prev.offsetWidth + next.offsetWidth
|
|
104
101
|
: prev.offsetHeight + next.offsetHeight;
|
|
105
102
|
|
|
106
103
|
// prev 기준 상대 거리 (드래그 거리)
|
|
107
|
-
|
|
104
|
+
|
|
108
105
|
|
|
109
106
|
const delta = this.#mode === "h"
|
|
110
107
|
? dragRect.left - prev.offsetLeft
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -88,23 +88,20 @@ class nxSplitter extends HTMLElement {
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
const onUp = (e) => {
|
|
91
|
+
|
|
92
|
+
const dragRect = dragBar.getBoundingClientRect();
|
|
93
|
+
|
|
91
94
|
window.removeEventListener("mousemove", onMove);
|
|
92
95
|
window.removeEventListener("mouseup", onUp);
|
|
93
96
|
dragBar.remove();
|
|
94
97
|
|
|
95
|
-
const prev = this.previousElementSibling;
|
|
96
|
-
const next = this.nextElementSibling;
|
|
97
|
-
if (!prev || !next) return;
|
|
98
|
-
|
|
99
|
-
const splitterSize = this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
|
|
100
|
-
|
|
101
98
|
// 기준: prev + next 너비 합계
|
|
102
99
|
const totalSize = this.#mode === "h"
|
|
103
100
|
? prev.offsetWidth + next.offsetWidth
|
|
104
101
|
: prev.offsetHeight + next.offsetHeight;
|
|
105
102
|
|
|
106
103
|
// prev 기준 상대 거리 (드래그 거리)
|
|
107
|
-
|
|
104
|
+
|
|
108
105
|
|
|
109
106
|
const delta = this.#mode === "h"
|
|
110
107
|
? dragRect.left - prev.offsetLeft
|