danoniplus 44.5.12 → 44.5.14

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 CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2026/03/26
7
+ * Revised : 2026/04/10
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 44.5.12`;
12
- const g_revisedDate = `2026/03/26`;
11
+ const g_version = `Ver 44.5.14`;
12
+ const g_revisedDate = `2026/04/10`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -4181,9 +4181,10 @@ const headerConvert = _dosObj => {
4181
4181
 
4182
4182
  // ローカルストレージに保存済みのColorType設定からDisplayのColor設定を反映
4183
4183
  if (g_localStorage.colorType !== undefined) {
4184
- g_colorType = g_localStorage.colorType;
4184
+ g_colorType = g_keycons.colorTypes.concat(g_keycons.colorSelf).includes(g_localStorage.colorType)
4185
+ ? g_localStorage.colorType : `Default`;
4185
4186
  if (obj.colorUse) {
4186
- g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.findIndex(val => val === g_colorType) !== -1);
4187
+ g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.includes(g_colorType));
4187
4188
  }
4188
4189
  }
4189
4190
 
@@ -14600,8 +14601,10 @@ const resultInit = () => {
14600
14601
  const transitionData = g_resultObj.gaugeTransition;
14601
14602
 
14602
14603
  for (let i = 0; i < transitionData?.length; i++) {
14603
- frame.push(transitionData[i][0] - startFrame);
14604
- life.push(transitionData[i][1]);
14604
+ if (i === 0 || transitionData[i - 1][1] !== transitionData[i][1]) {
14605
+ frame.push(transitionData[i][0] - startFrame);
14606
+ life.push(transitionData[i][1]);
14607
+ }
14605
14608
  }
14606
14609
 
14607
14610
  frame.push(playingFrame);
@@ -14612,11 +14615,11 @@ const resultInit = () => {
14612
14615
  context.lineWidth = 2;
14613
14616
 
14614
14617
  let preX, preY;
14615
- const borderY = g_limitObj.gaugeTransitionHeight - g_workObj.lifeBorder * g_limitObj.gaugeTransitionHeight / g_headerObj.maxLifeVal;
14618
+ const borderY = (g_limitObj.gaugeTransitionHeight - 2) - g_workObj.lifeBorder * (g_limitObj.gaugeTransitionHeight - 2) / g_headerObj.maxLifeVal + 1;
14616
14619
 
14617
14620
  for (let i = 0; i < frame.length; i++) {
14618
14621
  const x = frame[i] * g_limitObj.gaugeTransitionWidth / playingFrame;
14619
- const y = g_limitObj.gaugeTransitionHeight - life[i] * g_limitObj.gaugeTransitionHeight / g_headerObj.maxLifeVal;
14622
+ const y = (g_limitObj.gaugeTransitionHeight - 2) - life[i] * (g_limitObj.gaugeTransitionHeight - 2) / g_headerObj.maxLifeVal + 1;
14620
14623
 
14621
14624
  if (i === 0) {
14622
14625
  context.beginPath();
package/jsconfig.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "es2020",
4
- "baseUrl": "./"
4
+ "paths": {
5
+ "*": [
6
+ "./*"
7
+ ]
8
+ }
5
9
  },
6
10
  "exclude": [
7
11
  "node_modules"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "44.5.12",
3
+ "version": "44.5.14",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
6
  "jsdelivr": "./js/danoni_main.js",