From b53c60dee9e3617bd2c20bce597105709ec9d429 Mon Sep 17 00:00:00 2001 From: AshimeeAlt <161080149+AshimeeAlt@users.noreply.github.com> Date: Sun, 26 May 2024 12:17:54 -0400 Subject: [PATCH] use ScratchBlocksConstants instead of manual definitions --- src/extension-support/block-shape.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/extension-support/block-shape.js b/src/extension-support/block-shape.js index 9c827ef1a9f..190324b71e2 100644 --- a/src/extension-support/block-shape.js +++ b/src/extension-support/block-shape.js @@ -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} @@ -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, }; module.exports = BlockShape;