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