chore: remove alt dynamic shape definition (#6374)

* chore: remove alt dynamic shape definition

* chore: format
This commit is contained in:
Beka Westberg
2022-08-23 15:26:17 +00:00
committed by GitHub
parent bcd62f170b
commit b1b4aa06c3

View File

@@ -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