Skip to content

Commit 39ced90

Browse files
Revert "chore: apply stylistic linter rules"
This reverts commit cb190b7.
1 parent ce839d2 commit 39ced90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3869
-3852
lines changed

contributor_docs/ko/method.example.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* "이것은 메소드의 인라인 문서 템플릿입니다. 이 템플릿을 사용하려면 큰 따옴표
2+
* "이것은 메소드의 인라인 문서 템플릿입니다. 이 템플릿을 사용하려면 큰 따옴표
33
* 사이의 모든 텍스트를 제거하십시오. 메소드에 대한 일부 설명은 여기에 들어갑니다.
44
* 간단한 단어로 함수가 하는 일과 그에 대한 좋은/나쁜 사용 예를 설명하십시오.
55
* 만약 비정상적인 케이스나 경고가 있다면 여기에서 설명해 주세요."
@@ -31,7 +31,7 @@
3131
* "두 번째 예시를 명확히 설명하는 줄입니다"
3232
*/
3333

34-
// "메소드에 둘 이상의 특징이 있으면, 각 특징은 다음과 같은 파라미터 설명과 함께
34+
// "메소드에 둘 이상의 특징이 있으면, 각 특징은 다음과 같은 파라미터 설명과 함께
3535
// 자체 블록에 문서화할 수 있습니다."
3636
/**
3737
* @method "메소드명"
@@ -46,11 +46,11 @@ p5.prototype.methodName = function() {
4646

4747
// 이 부분은 템플릿을 채운 예시입니다.
4848
/**
49-
* <a href="#/p5/background">background()</a> 함수는 p5.js 캔버스의 배경 색상을
50-
* 설정합니다. 이 함수는 일반적으로 draw()에서 각 프레임의 시작 부분에 디스플레이
51-
* 윈도우를 지우는 데 사용되지만, 애니메이션의 첫 번째 프레임에 배경색을 설정하거나
49+
* <a href="#/p5/background">background()</a> 함수는 p5.js 캔버스의 배경 색상을
50+
* 설정합니다. 이 함수는 일반적으로 draw()에서 각 프레임의 시작 부분에 디스플레이
51+
* 윈도우를 지우는 데 사용되지만, 애니메이션의 첫 번째 프레임에 배경색을 설정하거나
5252
* 배경을 한 번만 설정해야 할 경우 setup() 내에서 사용할 수 있습니다.
53-
*
53+
*
5454
* 배경색 기본 설정은 투명입니다.
5555
*
5656
* @method background
@@ -81,7 +81,7 @@ p5.prototype.methodName = function() {
8181
/**
8282
* @method background
8383
* @param {String} 문자열 형태의 색상 설정에 사용할 수 있는 형식:
84-
정수, rgb(), rgba(), rgb() 비율, rgba() 비율,
84+
정수, rgb(), rgba(), rgb() 비율, rgba() 비율,
8585
3자리 16진법, 6자리 16진법,
8686
* @param {Number} [a]
8787
* @chainable

contributor_docs/project_wrapups/slominski_gsoc_2022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ The tutorials can be found on the p5.js websites Learn section here (to be added
4747

4848
And the code and commits for these contributions can be found at (to be added):
4949

50-
## Acknowledgements
50+
##Acknowledgements
5151

5252
I want to express my gratitude towards my mentor Kate Hollenbach for her guidance throughout this project, as well as towards the p5.js community for its openness and helpfulness.

preview/global/sketch.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function fresnelShaderCallback() {
3030
function starShaderCallback() {
3131
const time = uniformFloat(() => millis());
3232
const skyRadius = uniformFloat(1000);
33-
33+
3434
function rand2(st) {
3535
return fract(sin(dot(st, [12.9898, 78.233])) * 43758.5453123);
3636
}
@@ -82,11 +82,11 @@ function bloomShaderCallback() {
8282

8383
async function setup(){
8484
createCanvas(windowWidth, windowHeight, WEBGL);
85-
stars = buildGeometry(() => sphere(30, 4, 2));
85+
stars = buildGeometry(() => sphere(30, 4, 2))
8686
originalFrameBuffer = createFramebuffer();
8787

88-
starShader = baseMaterialShader().modify(starShaderCallback);
89-
starStrokeShader = baseStrokeShader().modify(starShaderCallback);
88+
starShader = baseMaterialShader().modify(starShaderCallback);
89+
starStrokeShader = baseStrokeShader().modify(starShaderCallback)
9090
fresnelShader = baseColorShader().modify(fresnelShaderCallback);
9191
bloomShader = baseFilterShader().modify(bloomShaderCallback);
9292
pixellizeShader = baseFilterShader().modify(pixellizeShaderCallback);
@@ -97,28 +97,28 @@ function draw(){
9797
background(0);
9898
orbitControl();
9999

100-
push();
101-
strokeWeight(4);
102-
stroke(255,0,0);
100+
push()
101+
strokeWeight(4)
102+
stroke(255,0,0)
103103
rotateX(PI/2 + millis() * 0.0005);
104-
fill(255,100, 150);
105-
strokeShader(starStrokeShader);
104+
fill(255,100, 150)
105+
strokeShader(starStrokeShader)
106106
shader(starShader);
107107
model(stars, 2000);
108-
pop();
108+
pop()
109109

110-
push();
111-
shader(fresnelShader);
112-
noStroke();
110+
push()
111+
shader(fresnelShader)
112+
noStroke()
113113
sphere(500);
114-
pop();
114+
pop()
115115
filter(pixellizeShader);
116116

117117
originalFrameBuffer.end();
118-
119-
imageMode(CENTER);
120-
image(originalFrameBuffer, 0, 0);
121-
122-
filter(BLUR, 20);
118+
119+
imageMode(CENTER)
120+
image(originalFrameBuffer, 0, 0)
121+
122+
filter(BLUR, 20)
123123
filter(bloomShader);
124124
}

rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const generateModuleBuild = () => {
8383
});
8484
};
8585

86-
rmSync('./dist', {
86+
rmSync("./dist", {
8787
force: true,
8888
recursive: true
8989
});

src/accessibility/describe.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ function describe(p5, fn){
7575
*
7676
* <div>
7777
* <code>
78-
*
78+
*
7979
* function setup(){
8080
* createCanvas(100, 100);
8181
* };
82-
*
82+
*
8383
* function draw() {
8484
* background(200);
8585
*
@@ -101,11 +101,11 @@ function describe(p5, fn){
101101
*
102102
* <div>
103103
* <code>
104-
*
104+
*
105105
* function setup(){
106106
* createCanvas(100, 100);
107107
* }
108-
*
108+
*
109109
* function draw() {
110110
* background(200);
111111
*

src/accessibility/outputs.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ function outputs(p5, fn){
8181
*
8282
* <div>
8383
* <code>
84-
*
84+
*
8585
* function setup(){
8686
* createCanvas(100, 100);
8787
* }
88-
*
88+
*
8989
* function draw() {
9090
* // Add the text description.
9191
* textOutput();
@@ -106,11 +106,11 @@ function outputs(p5, fn){
106106
*
107107
* <div>
108108
* <code>
109-
*
109+
*
110110
* function setup(){
111111
* createCanvas(100, 100);
112112
* }
113-
*
113+
*
114114
* function draw() {
115115
* // Add the text description and
116116
* // display it for debugging.
@@ -225,11 +225,11 @@ function outputs(p5, fn){
225225
*
226226
* <div>
227227
* <code>
228-
*
228+
*
229229
* function setup() {
230230
* createCanvas(100, 100);
231231
* }
232-
*
232+
*
233233
* function draw() {
234234
* // Add the grid description.
235235
* gridOutput();
@@ -250,11 +250,11 @@ function outputs(p5, fn){
250250
*
251251
* <div>
252252
* <code>
253-
*
253+
*
254254
* function setup(){
255255
* createCanvas(100, 100);
256256
* }
257-
*
257+
*
258258
* function draw() {
259259
* // Add the grid description and
260260
* // display it for debugging.

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import webgl from './webgl';
5151
webgl(p5);
5252

5353
// typography
54-
import type from './type';
54+
import type from './type'
5555
type(p5);
5656

5757
import { waitForDocumentReady, waitingForTranslator, _globalInit } from './core/init';

src/color/p5.Color.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const map = (n, start1, stop1, start2, stop2, clamp) => {
3737
result = Math.min(result, Math.max(start2, stop2));
3838
}
3939
return result;
40-
};
40+
}
4141

4242
const serializationMap = {};
4343

@@ -60,9 +60,9 @@ class Color {
6060

6161
// Get colorjs maxes
6262
Color.#colorjsMaxes[mode] = Object.values(definition.coords).reduce((acc, v) => {
63-
acc.push(v.refRange || v.range);
64-
return acc;
65-
}, []);
63+
acc.push(v.refRange || v.range);
64+
return acc;
65+
}, []);
6666
Color.#colorjsMaxes[mode].push([0, 1]);
6767

6868
// Get grayscale mapping
@@ -88,8 +88,8 @@ class Color {
8888
vals.spaceId;
8989
this._color = to(vals, mode);
9090
this.mode = colorMode || Object.entries(Color.colorMap).find(([key, val]) => {
91-
return val === this._color.spaceId;
92-
});
91+
return val === this._color.spaceId;
92+
});
9393

9494
} else if(typeof vals[0] === 'string') {
9595
// Received string
@@ -279,7 +279,7 @@ class Color {
279279
* </div>
280280
*/
281281
toString(format) {
282-
const key = `${this._color.space.id}-${this._color.coords.join(',')}-${this._color.alpha}-${format}`;
282+
const key = `${this._color.space.id}-${this._color.coords.join(",")}-${this._color.alpha}-${format}`;
283283
let colorString = serializationMap[key];
284284

285285
if(!colorString){
@@ -436,7 +436,7 @@ class Color {
436436
* }
437437
* </code>
438438
* </div>
439-
*/
439+
**/
440440
setBlue(new_blue, max=[0, 1]) {
441441
if(!Array.isArray(max)){
442442
max = [0, max];
@@ -516,7 +516,7 @@ class Color {
516516
if(!Array.isArray(v)){
517517
return [0, v];
518518
}else{
519-
return v;
519+
return v
520520
}
521521
});
522522

@@ -781,7 +781,7 @@ function color(p5, fn, lifecycles){
781781
p5.Color.prototype['set' + method] = function(newval, max){
782782
max = max || pInst?._renderer?.states?.colorMaxes?.[RGB][i];
783783
return setCopy.call(this, newval, max);
784-
};
784+
}
785785
}
786786

787787
// Decorate get methods
@@ -796,7 +796,7 @@ function color(p5, fn, lifecycles){
796796
}
797797

798798
return getCopy.call(this, max);
799-
};
799+
}
800800
}
801801

802802
decorateGet('Red', {
@@ -844,7 +844,7 @@ function color(p5, fn, lifecycles){
844844
}
845845

846846
export default color;
847-
export { Color };
847+
export { Color }
848848

849849
if(typeof p5 !== 'undefined'){
850850
color(p5, p5.prototype);

0 commit comments

Comments
 (0)