From b1b4aa06c33aea7d3130d3408c47cfc658371273 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 23 Aug 2022 15:26:17 +0000 Subject: [PATCH] chore: remove alt dynamic shape definition (#6374) * chore: remove alt dynamic shape definition * chore: format --- core/renderers/common/constants.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/core/renderers/common/constants.ts b/core/renderers/common/constants.ts index 57841948f..51cc3b3af 100644 --- a/core/renderers/common/constants.ts +++ b/core/renderers/common/constants.ts @@ -81,6 +81,7 @@ export type BaseShape = { type: number; width: number; height: number; }; +/** An object containing sizing and type information about a dynamic shape. */ export type DynamicShape = { type: number; width: (p1: number) => number; height: (p1: number) => number; isDynamic: true; @@ -95,20 +96,6 @@ export type DynamicShape = { /** An object containing sizing and type information about a shape. */ export type Shape = BaseShape|DynamicShape; -/** An object containing sizing and type information about a dynamic shape. */ -// export interface DynamicShape { -// type: number; -// width: (p1: number) => number; -// height: (p1: number) => number; -// isDynamic: boolean; -// connectionOffsetY: (p1: number) => number; -// connectionOffsetX: (p1: number) => number; -// pathDown: (p1: number) => string; -// pathUp: (p1: number) => string; -// pathRightDown: (p1: number) => string; -// pathRightUp: (p1: number) => string; -// } - /** * An object that provides constants for rendering blocks. * @alias Blockly.blockRendering.ConstantProvider