ninegrid2 6.759.0 → 6.760.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 +1 -1
- package/dist/bundle.esm.js +1 -1
- package/dist/nx/nxSplitter.js +2 -1
- package/package.json +1 -1
- package/src/nx/nxSplitter.js +2 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -121208,7 +121208,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121208
121208
|
// 현재 비율 계산
|
|
121209
121209
|
const prevRatio = currentTotal ? prevSize / currentTotal : 0.5;
|
|
121210
121210
|
|
|
121211
|
-
const newPrevSize = parentSize *
|
|
121211
|
+
const newPrevSize = parentSize * prevSize / currentTotal;
|
|
121212
121212
|
const newNextSize = (prevSize + nextSize) - newPrevSize;
|
|
121213
121213
|
|
|
121214
121214
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121204,7 +121204,7 @@ class nxSplitter extends HTMLElement {
|
|
|
121204
121204
|
// 현재 비율 계산
|
|
121205
121205
|
const prevRatio = currentTotal ? prevSize / currentTotal : 0.5;
|
|
121206
121206
|
|
|
121207
|
-
const newPrevSize = parentSize *
|
|
121207
|
+
const newPrevSize = parentSize * prevSize / currentTotal;
|
|
121208
121208
|
const newNextSize = (prevSize + nextSize) - newPrevSize;
|
|
121209
121209
|
|
|
121210
121210
|
|
package/dist/nx/nxSplitter.js
CHANGED
|
@@ -223,10 +223,11 @@ class nxSplitter extends HTMLElement {
|
|
|
223
223
|
//const prevRatio = parentSize ? prevSize / parentSize : 0.5;
|
|
224
224
|
//const nextRatio = 1 - prevRatio;
|
|
225
225
|
|
|
226
|
+
// currentTotal : parentSize = prevSize : x
|
|
226
227
|
// 새로운 available 크기
|
|
227
228
|
const available = parentSize - splitterSize;
|
|
228
229
|
|
|
229
|
-
const newPrevSize = parentSize *
|
|
230
|
+
const newPrevSize = parentSize * prevSize / currentTotal;
|
|
230
231
|
const newNextSize = (prevSize + nextSize) - newPrevSize;
|
|
231
232
|
|
|
232
233
|
|
package/package.json
CHANGED
package/src/nx/nxSplitter.js
CHANGED
|
@@ -223,10 +223,11 @@ class nxSplitter extends HTMLElement {
|
|
|
223
223
|
//const prevRatio = parentSize ? prevSize / parentSize : 0.5;
|
|
224
224
|
//const nextRatio = 1 - prevRatio;
|
|
225
225
|
|
|
226
|
+
// currentTotal : parentSize = prevSize : x
|
|
226
227
|
// 새로운 available 크기
|
|
227
228
|
const available = parentSize - splitterSize;
|
|
228
229
|
|
|
229
|
-
const newPrevSize = parentSize *
|
|
230
|
+
const newPrevSize = parentSize * prevSize / currentTotal;
|
|
230
231
|
const newNextSize = (prevSize + nextSize) - newPrevSize;
|
|
231
232
|
|
|
232
233
|
|