danoniplus 28.3.0 → 28.3.1
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/css/danoni_main.css +3 -3
- package/js/danoni_main.js +13 -10
- package/js/lib/danoni_constants.js +2 -1
- package/package.json +1 -1
package/css/danoni_main.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
本体cssファイル
|
|
5
5
|
|
|
6
6
|
Created : 2018/10/08
|
|
7
|
-
Revised : 2022/10/
|
|
7
|
+
Revised : 2022/10/16 (v28.3.1)
|
|
8
8
|
|
|
9
9
|
https://github.com/cwtickle/danoniplus
|
|
10
10
|
------------------------------------------ */
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
input[type="range"] {
|
|
26
|
-
|
|
26
|
+
appearance: none;
|
|
27
27
|
background: transparent;
|
|
28
28
|
height: 20px;
|
|
29
29
|
width: 205px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
input[type="range"]::-webkit-slider-thumb {
|
|
33
|
-
|
|
33
|
+
appearance: none;
|
|
34
34
|
background: #606060;
|
|
35
35
|
height: 20px;
|
|
36
36
|
width: 20px;
|
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 : 2022/10/
|
|
7
|
+
* Revised : 2022/10/16
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 28.3.
|
|
12
|
-
const g_revisedDate = `2022/10/
|
|
11
|
+
const g_version = `Ver 28.3.1`;
|
|
12
|
+
const g_revisedDate = `2022/10/16`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
15
15
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -949,8 +949,6 @@ const createDiv = (_id, _x, _y, _width, _height, _classes = []) => {
|
|
|
949
949
|
const setUserSelect = (_style, _value = C_DIS_NONE) => {
|
|
950
950
|
_style.userSelect = _value;
|
|
951
951
|
_style.webkitUserSelect = _value;
|
|
952
|
-
_style.msUserSelect = _value;
|
|
953
|
-
_style.mozUserSelect = _value;
|
|
954
952
|
_style.webkitTouchCallout = _value;
|
|
955
953
|
};
|
|
956
954
|
|
|
@@ -1573,7 +1571,6 @@ const drawTitleResultMotion = _displayName => {
|
|
|
1573
1571
|
// WebAudioAPIでAudio要素風に再生するクラス
|
|
1574
1572
|
class AudioPlayer {
|
|
1575
1573
|
constructor() {
|
|
1576
|
-
const AudioContext = window.AudioContext ?? window.webkitAudioContext;
|
|
1577
1574
|
this._context = new AudioContext();
|
|
1578
1575
|
this._gain = this._context.createGain();
|
|
1579
1576
|
this._gain.connect(this._context.destination);
|
|
@@ -3965,6 +3962,7 @@ const setWindowStyle = (_text, _bkColor, _textColor, _align = C_ALIGN_LEFT) => {
|
|
|
3965
3962
|
// ウィンドウ枠の行を取得するために一時的な枠を作成
|
|
3966
3963
|
const tmplbl = createDivCss2Label(`lblTmpWarning`, _text, {
|
|
3967
3964
|
x: 0, y: 70, w: g_sWidth, h: 20, siz: C_SIZ_MAIN, lineHeight: `15px`, fontFamily: getBasicFont(),
|
|
3965
|
+
whiteSpace: `normal`,
|
|
3968
3966
|
})
|
|
3969
3967
|
divRoot.appendChild(tmplbl);
|
|
3970
3968
|
const range = new Range();
|
|
@@ -3976,6 +3974,7 @@ const setWindowStyle = (_text, _bkColor, _textColor, _align = C_ALIGN_LEFT) => {
|
|
|
3976
3974
|
const lbl = createDivCss2Label(`lblWarning`, _text, {
|
|
3977
3975
|
x: 0, y: 70, w: g_sWidth, h: warnHeight, siz: C_SIZ_MAIN, backgroundColor: _bkColor,
|
|
3978
3976
|
opacity: 0.9, lineHeight: `15px`, color: _textColor, align: _align, fontFamily: getBasicFont(),
|
|
3977
|
+
whiteSpace: `normal`,
|
|
3979
3978
|
});
|
|
3980
3979
|
if (warnHeight === 150) {
|
|
3981
3980
|
lbl.style.overflow = `auto`;
|
|
@@ -5544,7 +5543,7 @@ const createSettingsDisplayWindow = _sprite => {
|
|
|
5544
5543
|
g_hidSudObj.filterPos = inputSlider(appearanceSlider, lblAppearancePos), false);
|
|
5545
5544
|
|
|
5546
5545
|
const dispAppearanceSlider = _ => {
|
|
5547
|
-
[`lblAppearancePos`, `lblAppearanceBar`, `lnkLockBtn`].forEach(obj =>
|
|
5546
|
+
[`lblAppearancePos`, `lblAppearanceBar`, `lnkLockBtn`, `lnkfilterLine`].forEach(obj =>
|
|
5548
5547
|
document.getElementById(obj).style.visibility =
|
|
5549
5548
|
g_appearanceRanges.includes(g_stateObj.appearance) ? `Visible` : `Hidden`
|
|
5550
5549
|
);
|
|
@@ -5554,7 +5553,13 @@ const createSettingsDisplayWindow = _sprite => {
|
|
|
5554
5553
|
// ---------------------------------------------------
|
|
5555
5554
|
// 判定表示系の不透明度 (Opacity)
|
|
5556
5555
|
// 縦位置: 9
|
|
5557
|
-
|
|
5556
|
+
let opacityUse = false;
|
|
5557
|
+
[`judgment`, `fastSlow`, `filterLine`].forEach(display =>
|
|
5558
|
+
opacityUse ||= g_headerObj[`${display}Use`] || g_headerObj[`${display}Set`] === C_FLG_ON);
|
|
5559
|
+
|
|
5560
|
+
if (opacityUse) {
|
|
5561
|
+
createGeneralSetting(spriteList.opacity, `opacity`, { unitName: g_lblNameObj.percent, displayName: g_currentPage });
|
|
5562
|
+
}
|
|
5558
5563
|
};
|
|
5559
5564
|
|
|
5560
5565
|
/**
|
|
@@ -9329,9 +9334,7 @@ const changeAppearanceFilter = (_appearance, _num = 10) => {
|
|
|
9329
9334
|
const bottomShape = `inset(${numPlus}% 0% ${_num}% 0%)`;
|
|
9330
9335
|
|
|
9331
9336
|
$id(`arrowSprite${topNum}`).clipPath = topShape;
|
|
9332
|
-
$id(`arrowSprite${topNum}`).webkitClipPath = topShape;
|
|
9333
9337
|
$id(`arrowSprite${bottomNum}`).clipPath = bottomShape;
|
|
9334
|
-
$id(`arrowSprite${bottomNum}`).webkitClipPath = bottomShape;
|
|
9335
9338
|
|
|
9336
9339
|
$id(`filterBar0`).top = `${g_posObj.arrowHeight * _num / 100}px`;
|
|
9337
9340
|
$id(`filterBar1`).top = `${g_posObj.arrowHeight * (100 - _num) / 100}px`;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised : 2022/10/
|
|
8
|
+
* Revised : 2022/10/16 (v28.3.1)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -135,6 +135,7 @@ const updateWindowSiz = _ => {
|
|
|
135
135
|
lblComment: {
|
|
136
136
|
x: 0, y: 70, w: g_sWidth, h: g_sHeight - 180, siz: C_SIZ_DIFSELECTOR, align: C_ALIGN_LEFT,
|
|
137
137
|
overflow: `auto`, background: `#222222`, color: `#cccccc`, display: C_DIS_NONE,
|
|
138
|
+
whiteSpace: `normal`,
|
|
138
139
|
},
|
|
139
140
|
btnComment: {
|
|
140
141
|
x: g_sWidth - 160, y: (g_sHeight / 2) + 150, w: 140, h: 50, siz: 20, border: `solid 1px #999999`,
|