chore: delete useless DRAG_STACK value (#7994)

This commit is contained in:
Beka Westberg
2024-04-04 22:58:24 +00:00
committed by GitHub
parent fd177358ea
commit c60db431ca
3 changed files with 0 additions and 18 deletions

View File

@@ -330,7 +330,6 @@ export const setParentContainer = common.setParentContainer;
// Aliases to allow external code to access these values for legacy reasons.
export const COLLAPSE_CHARS = internalConstants.COLLAPSE_CHARS;
export const DRAG_STACK = internalConstants.DRAG_STACK;
export const OPPOSITE_TYPE = internalConstants.OPPOSITE_TYPE;
export const RENAME_VARIABLE_ID = internalConstants.RENAME_VARIABLE_ID;
export const DELETE_VARIABLE_ID = internalConstants.DELETE_VARIABLE_ID;

View File

@@ -26,7 +26,6 @@ import type {Field} from './field.js';
import type {IBlockDragger} from './interfaces/i_block_dragger.js';
import type {IBubble} from './interfaces/i_bubble.js';
import type {IFlyout} from './interfaces/i_flyout.js';
import * as internalConstants from './internal_constants.js';
import * as Tooltip from './tooltip.js';
import * as Touch from './touch.js';
import {Coordinate} from './utils/coordinate.js';
@@ -142,7 +141,6 @@ export class Gesture {
/** Boolean used internally to break a cycle in disposal. */
protected isEnding_ = false;
private healStack: boolean;
/** The event that most recently updated this gesture. */
private mostRecentEvent: PointerEvent;
@@ -191,12 +189,6 @@ export class Gesture {
* (0, 0) is at this.mouseDownXY_.
*/
this.currentDragDeltaXY = new Coordinate(0, 0);
/**
* Boolean used to indicate whether or not to heal the stack after
* disconnecting a block.
*/
this.healStack = !internalConstants.DRAG_STACK;
}
/**
@@ -431,7 +423,6 @@ export class Gesture {
}
this.mouseDownXY = new Coordinate(e.clientX, e.clientY);
this.healStack = e.altKey || e.ctrlKey || e.metaKey;
this.bindMouseEvents(e);

View File

@@ -15,14 +15,6 @@ import {ConnectionType} from './connection_type.js';
*/
export const COLLAPSE_CHARS = 30;
/**
* When dragging a block out of a stack, split the stack in two (true), or drag
* out the block healing the stack (false).
*
* @internal
*/
export const DRAG_STACK = true;
/**
* Lookup table for determining the opposite type of a connection.
*