Skip to content

Commit

Permalink
1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MCDFsteve committed Oct 23, 2024
1 parent 0f2c40c commit c867e05
Show file tree
Hide file tree
Showing 24 changed files with 2,274 additions and 1,054 deletions.
2 changes: 1 addition & 1 deletion danmaku.canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
var ctx = canvas.getContext('2d');
var style = cmt.style || {};
style.font = `${danmakufsBase * 10}px sans-serif`;
//console.log('style.font:',style.font);
////console.log('style.font:',style.font);
style.textBaseline = style.textBaseline || 'bottom';
style.lineWidth = lineWidth;
var strokeWidth = style.lineWidth * 1;
Expand Down
57 changes: 0 additions & 57 deletions danmaku2.js

This file was deleted.

2 changes: 1 addition & 1 deletion danmaku_tran.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function processComments(jsonFilePath, outputDir, callback) {
});

const formattedComments = comments.map(formatComment).join(',\n');
const template = `var danmaku = new Danmaku({\n container: document.getElementById('danmaku-container'),\n media: document.getElementById('video-player'),\n comments: [\n${formattedComments}\n],\ engine: 'canvas'});`;
const template = `danmaku = new Danmaku({\n container: document.getElementById('danmaku-container'),\n media: document.getElementById('video-player'),\n comments: [\n${formattedComments}\n],\ engine: 'canvas'});`;
const outputFilePath = path.join(outputDir, path.basename(jsonFilePath, '.json') + '.js');
fs.writeFile(outputFilePath, template, 'utf8', (err) => {
if (err) {
Expand Down
Binary file removed fonts/SourceHanSansCN-Normal.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ body {
margin-bottom: 10px;
margin-top: 20px;
border: none;
padding: 5px 30px; /* 保持一致的内边距 */
padding: 5px 30px;
background-color: rgba(233, 233, 233, 0.3);
font-size: 16px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
color: #000000;
cursor: pointer;
backdrop-filter: blur(20px);
border-radius: 5px; /* 一致的圆角 */
border-radius: 5px;
}

.folder-item:hover {
Expand Down
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@ <h2>设置</h2>
<hr class="section-divider">
<div class="scrollable-list">
<div class="settings-item">背景图像设置</div>
<hr class="section-divider">
<button id="btn-none-background" class="folder-item">关闭</button>
<button id="btn-kanban-background" class="folder-item">看板娘</button>
<button id="btn-custom-background" class="folder-item">自定义</button>
<hr class="section-divider">
<div class="settings-item">播放器初始窗口大小</div>
<button id="window-mini" class="folder-item">小窗口</button>
<button id="window-win" class="folder-item">窗口化</button>
<button id="window-full" class="folder-item">铺满屏幕</button>
<button id="window-screen" class="folder-item">全屏</button>
</div>
</div>
<!-- 关于区 -->
Expand Down
Binary file added libass/ChillRoundM.otf
Binary file not shown.
40 changes: 40 additions & 0 deletions libass/subtitles-octopus-worker-legacy.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libass/subtitles-octopus-worker.js

Large diffs are not rendered by default.

Binary file added libass/subtitles-octopus-worker.wasm
Binary file not shown.
Loading

0 comments on commit c867e05

Please sign in to comment.