danoniplus 38.1.1 → 38.1.2
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/js/danoni_main.js +6 -5
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 38.1.
|
|
11
|
+
const g_version = `Ver 38.1.2`;
|
|
12
12
|
const g_revisedDate = `2024/12/07`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -8809,7 +8809,7 @@ const getBrakeTrace = _frms => {
|
|
|
8809
8809
|
const getFountainTrace = (_frms, _spd) => {
|
|
8810
8810
|
const minj = C_MOTION_STD_POS + 1;
|
|
8811
8811
|
const maxj = C_MOTION_STD_POS + Math.ceil(400 / _spd) + 1;
|
|
8812
|
-
const maxMotionFrm = Math.max(maxj, C_MOTION_STD_POS +
|
|
8812
|
+
const maxMotionFrm = Math.max(maxj, C_MOTION_STD_POS + g_sHeight / 2);
|
|
8813
8813
|
const diff = 50 / (maxj - minj);
|
|
8814
8814
|
const factor = 0.5 + _spd / 40;
|
|
8815
8815
|
|
|
@@ -8910,6 +8910,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
|
|
|
8910
8910
|
return;
|
|
8911
8911
|
}
|
|
8912
8912
|
|
|
8913
|
+
const calcInitBoostY = _frm => sumData(g_workObj.motionOnFrames.filter((val, j) => j <= g_workObj.motionFrame[_frm]));
|
|
8913
8914
|
const camelHeader = toCapitalize(_header);
|
|
8914
8915
|
const setcnt = (_frzFlg ? 2 : 1);
|
|
8915
8916
|
if (_frzFlg && _data.length % 2 !== 0) {
|
|
@@ -8931,7 +8932,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
|
|
|
8931
8932
|
g_workObj.initY[frmPrev] = tmpObj.startY;
|
|
8932
8933
|
g_workObj.arrivalFrame[frmPrev] = tmpObj.arrivalFrm;
|
|
8933
8934
|
g_workObj.motionFrame[frmPrev] = tmpObj.motionFrm;
|
|
8934
|
-
g_workObj.initBoostY[frmPrev] =
|
|
8935
|
+
g_workObj.initBoostY[frmPrev] = calcInitBoostY(frmPrev);
|
|
8935
8936
|
|
|
8936
8937
|
if (_frzFlg) {
|
|
8937
8938
|
g_workObj[`mk${camelHeader}Length`][_j] = [];
|
|
@@ -8960,7 +8961,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
|
|
|
8960
8961
|
g_workObj.initY[tmpFrame] = g_workObj.initY[frmPrev];
|
|
8961
8962
|
g_workObj.arrivalFrame[tmpFrame] = g_workObj.arrivalFrame[frmPrev];
|
|
8962
8963
|
g_workObj.motionFrame[tmpFrame] = g_workObj.motionFrame[frmPrev];
|
|
8963
|
-
g_workObj.initBoostY[tmpFrame] =
|
|
8964
|
+
g_workObj.initBoostY[tmpFrame] = calcInitBoostY(tmpFrame);
|
|
8964
8965
|
|
|
8965
8966
|
} else {
|
|
8966
8967
|
|
|
@@ -8977,7 +8978,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
|
|
|
8977
8978
|
g_workObj.initY[frmPrev] = tmpObj.startY;
|
|
8978
8979
|
g_workObj.arrivalFrame[frmPrev] = tmpObj.arrivalFrm;
|
|
8979
8980
|
g_workObj.motionFrame[frmPrev] = tmpObj.motionFrm;
|
|
8980
|
-
g_workObj.initBoostY[frmPrev] =
|
|
8981
|
+
g_workObj.initBoostY[frmPrev] = calcInitBoostY(frmPrev);
|
|
8981
8982
|
}
|
|
8982
8983
|
|
|
8983
8984
|
// 出現タイミングを保存
|