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.
@@ -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 * prevRatio;
121211
+ const newPrevSize = parentSize * prevSize / currentTotal;
121212
121212
  const newNextSize = (prevSize + nextSize) - newPrevSize;
121213
121213
 
121214
121214
 
@@ -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 * prevRatio;
121207
+ const newPrevSize = parentSize * prevSize / currentTotal;
121208
121208
  const newNextSize = (prevSize + nextSize) - newPrevSize;
121209
121209
 
121210
121210
 
@@ -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 * prevRatio;
230
+ const newPrevSize = parentSize * prevSize / currentTotal;
230
231
  const newNextSize = (prevSize + nextSize) - newPrevSize;
231
232
 
232
233
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.759.0",
4
+ "version": "6.760.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -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 * prevRatio;
230
+ const newPrevSize = parentSize * prevSize / currentTotal;
230
231
  const newNextSize = (prevSize + nextSize) - newPrevSize;
231
232
 
232
233