egatari 0.6.5-rc.2 → 0.6.5-rc.3
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/kit/layouts.css +5 -0
- package/kit/panes.js +5 -2
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/package.json +1 -1
package/kit/layouts.css
CHANGED
|
@@ -77,6 +77,11 @@ html[data-font="mincho"]{--font-sans:var(--font-mincho)}
|
|
|
77
77
|
.tate{writing-mode:vertical-rl;text-orientation:mixed;height:100%;margin-left:auto;line-height:1.8;line-break:strict}
|
|
78
78
|
.tate p{margin:0 0 0 .5em}
|
|
79
79
|
.tate p.indent{text-indent:1em}
|
|
80
|
+
/* 横組みの .body の中の縦書きの塊(layout-tate でないスライド)は orthogonal flow になり、WebKit(iPad Safari)は
|
|
81
|
+
height:100% を親の確定した高さに解決できず、列が折り返さずに下へはみ出す(Chromium は折り返す)。.body は position:absolute で
|
|
82
|
+
高さが確定しているので、塊を絶対配置して高さを確定させ、WebKit でも折り返させる(Chromium の見た目は変わらない)。layout-tate は
|
|
83
|
+
.body 自体が縦書きで orthogonal にならないので対象外 */
|
|
84
|
+
.slide:not(.layout-tate) > .body > .tate{position:absolute;top:0;bottom:0;right:0;left:auto;width:auto;height:auto}
|
|
80
85
|
/* 縦中横(縦書きの中の 2 桁の数字など) */
|
|
81
86
|
.tcy{text-combine-upright:all}
|
|
82
87
|
/* ルビ:振り仮名は 0.5em(品質チェックは rt の字の大きさを数えない)。縦書きでは右に付く */
|
package/kit/panes.js
CHANGED
|
@@ -319,7 +319,7 @@ function liveBox(){
|
|
|
319
319
|
return {x: r.left, y: r.top, w: r.width, h: r.height, clip: {top: Math.max(0, b.top - r.top), bottom: Math.max(0, r.bottom - b.bottom)}};
|
|
320
320
|
}
|
|
321
321
|
function setLive(){
|
|
322
|
-
var th = P.layout === "book" && !HAS_ART && !P.ov && P.body ? P.body.querySelector('.dx-thumb[data-i="' + P.pos.i + '"]') : null;
|
|
322
|
+
var th = P.playing && P.layout === "book" && !HAS_ART && !P.ov && P.body ? P.body.querySelector('.dx-thumb[data-i="' + P.pos.i + '"]') : null;
|
|
323
323
|
if (th === P.live) return;
|
|
324
324
|
if (P.live) P.live.classList.remove("dx-live");
|
|
325
325
|
P.live = th;
|
|
@@ -440,6 +440,8 @@ function scrolled(){
|
|
|
440
440
|
if (!P.detached){ P.detached = true; P.bp.hidden = false; placeBackPlay(); hideResume(); }
|
|
441
441
|
return;
|
|
442
442
|
}
|
|
443
|
+
// 台本で読む(本だけ):手のスクロールではステップを動かさない。縮図はただの図として本文と一緒に流れ、最終状態のまま(押すと「スライドで見る」で再生する)
|
|
444
|
+
if (!HAS_ART && P.layout === "book") return;
|
|
443
445
|
var a = readAnchor();
|
|
444
446
|
if (!a || a.i === null || (a.i === P.pos.i && a.k === P.pos.k)) return;
|
|
445
447
|
// スクロールで入ったステップは一度だけ動かす(外へ出きるまで再び動かさない)。動きを減らす設定なら最後の形
|
|
@@ -1144,7 +1146,6 @@ function css(){
|
|
|
1144
1146
|
"#deck-text .dx-thumb{display:block;width:100%;max-width:640px;min-height:0;margin:0 auto .6em;padding:0;border-radius:4px;outline:1px solid var(--line,rgba(127,127,127,.45));background:var(--bg)}" +
|
|
1145
1147
|
"#deck-text .dx-tbox{display:block;position:relative;width:100%;aspect-ratio:16/9;overflow:hidden}" +
|
|
1146
1148
|
"#deck-text .dx-tbox>.slide{position:absolute!important;left:0;top:0;transform-origin:0 0;transform:scale(var(--dx-s,.3));pointer-events:none}" +
|
|
1147
|
-
"html[data-deck-layout=book] #deck-text .dx-thumb{position:sticky;top:0;z-index:1}" +
|
|
1148
1149
|
"html[data-deck-layout=split] #deck-text .dx-thumb{max-width:min(100%,360px);margin-left:0}" +
|
|
1149
1150
|
"#deck-text .dx-thumb.dx-live .dx-tbox{visibility:hidden}" +
|
|
1150
1151
|
"#deck-text .dx-role{font-weight:600;color:var(--muted,inherit)}#deck-text .dx-step p{margin:.2em 0}" +
|
|
@@ -1155,6 +1156,8 @@ function css(){
|
|
|
1155
1156
|
"#deck-split{position:fixed;top:0;bottom:0;width:" + DIV + "px;z-index:21;cursor:col-resize;touch-action:none;background:var(--stage-bg,#2f2f2f)}" +
|
|
1156
1157
|
"#deck-split::after{content:'';position:absolute;left:3px;top:50%;width:3px;height:36px;margin-top:-18px;border-radius:2px;background:rgba(255,255,255,.5)}" +
|
|
1157
1158
|
"#deck-split:hover::after,#deck-split.drag::after,#deck-split:focus-visible::after{background:#fff}" +
|
|
1159
|
+
// 指で掴めるように、粗いポインター(タッチ)では仕切りの当たり判定を左右に広げる(見た目の線は細いまま。9px では指で掴めない。44px 以上に)
|
|
1160
|
+
"@media (pointer:coarse){#deck-split::before{content:'';position:absolute;top:0;bottom:0;left:-18px;right:-18px}}" +
|
|
1158
1161
|
// 本で読む(舞台の右上)・再生中の所に戻る(本の窓の下)
|
|
1159
1162
|
// 本で読む:発表の画面に出たままにしない。ツールバーと一緒に出て隠れる(キーボードで選んだときは出す)。埋め込みで操作を隠したときは出さない
|
|
1160
1163
|
"#dt-cb:not(.show)~#deck-readin:not(:focus-visible){opacity:0;pointer-events:none}html.deck-nocontrols #deck-readin,html.deck-nocontrols #deck-text .dx-play,html.deck-nocontrols #deck-text .dx-view{display:none}" +
|
package/kit/player.json
CHANGED
package/kit/player.lock.json
CHANGED