Skip to content

Commit fb12524

Browse files
chore: format (#113)
1 parent ba53185 commit fb12524

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/blocks/p5_blocks.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ const writeTextWithoutShadow = {
225225
{
226226
'type': 'field_input',
227227
'name': 'TEXT',
228-
'text': 'bit'
228+
'text': 'bit',
229229
},
230230
],
231231
'previousStatement': null,
232232
'nextStatement': null,
233-
'colour': 225
233+
'colour': 225,
234234
};
235235

236236
const writeTextWithShadow = {
@@ -242,16 +242,15 @@ const writeTextWithShadow = {
242242
{
243243
'type': 'input_value',
244244
'name': 'TEXT',
245-
'check': 'String'
246-
}
245+
'check': 'String',
246+
},
247247
],
248248
'previousStatement': null,
249249
'nextStatement': null,
250-
'colour': 225
250+
'colour': 225,
251251
};
252252

253-
const textBlock =
254-
{
253+
const textBlock = {
255254
'type': 'text_only',
256255
'tooltip': '',
257256
'helpUrl': '',
@@ -260,11 +259,11 @@ const textBlock =
260259
{
261260
'type': 'field_input',
262261
'name': 'TEXT',
263-
'text': 'micro'
262+
'text': 'micro',
264263
},
265264
],
266265
'output': 'String',
267-
'colour': 225
266+
'colour': 225,
268267
};
269268

270269
// Create the block definitions for all the JSON-only blocks.
@@ -278,7 +277,7 @@ const jsonBlocks = Blockly.common.createBlockDefinitionsFromJsonArray([
278277
simpleCircle,
279278
writeTextWithoutShadow,
280279
writeTextWithShadow,
281-
textBlock
280+
textBlock,
282281
]);
283282

284283
export const blocks = {

src/blocks/p5_generators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ sketch.fill(0x000000);
102102
sketch.textSize(100);
103103
sketch.text(${text}, 50, 350);\n`;
104104
return code;
105-
};
105+
};

0 commit comments

Comments
 (0)