Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf63c6d3

Browse files
committed
Fix linting errors
1 parentbbfebd0 commitf63c6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/graphics/bresenham-line-drawing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*@param {function} draw Optional custom drawing function.
2121
*/
2222
functiondrawLine(x1,y1,x2,y2,draw){
23-
drawPoint=draw||drawPoint;
23+
vardrawPointStrategy=draw||drawPoint;
2424
vardx=Math.abs(x2-x1);
2525
vardy=Math.abs(y2-y1);
2626
varcx=(x1<x2) ?1 :-1;
@@ -29,7 +29,7 @@
2929
vardoubledError;
3030

3131
while(x1!==x2||y1!==y2){
32-
drawPoint(x1,y1);
32+
drawPointStrategy(x1,y1);
3333
doubledError=error+error;
3434
if(doubledError>-dy){
3535
error-=dy;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp