Skip to content

Commit

Permalink
fix: lineJoin 속성이 항상 적용되지는 않던 문제
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeokjinKang committed Nov 28, 2024
1 parent d708657 commit dca48f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,6 @@ const eraseTml = () => {
};

const initialize = () => {
cntCtx.lineJoin = "round";
cntCanvas.width = (window.innerWidth * 0.6 * window.devicePixelRatio * settings.display.canvasRes) / 100;
cntCanvas.height = (window.innerHeight * 0.65 * window.devicePixelRatio * settings.display.canvasRes) / 100;
tmlCanvas.height = window.innerHeight * 0.27 * window.devicePixelRatio;
Expand Down Expand Up @@ -1124,6 +1123,8 @@ const cntRender = () => {

errorCount = 0;

cntCtx.lineJoin = "round";

// Grid
cntCtx.lineWidth = 2;
if (gridToggle) {
Expand Down

0 comments on commit dca48f0

Please sign in to comment.