Skip to content

Commit 3da122f

Browse files
committed
tegaki.js更新。50%縮小表示時に線が繋がって見えるようにした。
1 parent 6c9ebed commit 3da122f

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

petitnote/app/tegaki/tegaki.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,16 @@ var TegakiCursor = {
19501950
let canvas = this.cursorCtx.canvas;
19511951

19521952
let [w, h] = this.getMaxCanvasSize();
1953+
//縮小表示の時は滑らかに表示する
1954+
if (Tegaki.zoomFactor < 1) {
1955+
Tegaki.canvasCnt.querySelectorAll("canvas").forEach((canvas) => {
1956+
canvas.style.imageRendering = "auto";
1957+
});
1958+
} else {
1959+
Tegaki.canvasCnt.querySelectorAll("canvas").forEach((canvas) => {
1960+
canvas.style.imageRendering = "";
1961+
});
1962+
}
19531963

19541964
if (w !== canvas.width || h !== canvas.height) {
19551965
canvas.width = w;

petitnote/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//https://paintbbs.sakura.ne.jp/
44
//1スレッド1ログファイル形式のスレッド式画像掲示板
55

6-
$petit_ver='v1.197.5';
7-
$petit_lot='lot.20260315.3';
6+
$petit_ver='v1.197.6';
7+
$petit_lot='lot.20260316';
88

99
$lang = ($http_langs = $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '')
1010
? explode( ',', $http_langs )[0] : '';

0 commit comments

Comments
 (0)