Skip to content

Commit

Permalink
use ScratchBlocksConstants instead of manual definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AshimeeAlt authored May 26, 2024
1 parent 20a1c14 commit b53c60d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/extension-support/block-shape.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Use the constants instead of manually redefining them again
const ScratchBlocksConstants = require('./scratch-blocks-constants');

/**
* Types of block shapes
* @enum {number}
Expand All @@ -6,17 +9,17 @@ const BlockShape = {
/**
* Output shape: hexagonal (booleans/predicates).
*/
HEXAGONAL: 1,
HEXAGONAL: ScratchBlocksConstants.OUTPUT_SHAPE_HEXAGONAL,

/**
* Output shape: rounded (numbers).
*/
ROUND: 2,
ROUND: ScratchBlocksConstants.OUTPUT_SHAPE_ROUND,

/**
* Output shape: squared (any/all values; strings).
*/
SQUARE: 3,
SQUARE: ScratchBlocksConstants.OUTPUT_SHAPE_SQUARE,

Check failure on line 22 in src/extension-support/block-shape.js

View workflow job for this annotation

GitHub Actions / build

Unexpected trailing comma
};

module.exports = BlockShape;

0 comments on commit b53c60d

Please sign in to comment.