Variable: config
const config: object;
Defined in: packages/blockly/core/config.ts:29
Object holding all the values on Blockly that we expect developers to be able to change.
Type Declaration
dragRadius
dragRadius: number = 5;
Number of pixels the mouse must move before a drag starts.
flyoutDragRadius
flyoutDragRadius: number = 10;
Number of pixels the mouse must move before a drag/scroll starts from the flyout. Because the drag-intention is determined when this is reached, it is larger than dragRadius so that the drag-direction is clearer.
snapRadius
snapRadius: number = DEFAULT_SNAP_RADIUS;
Maximum misalignment between connections for them to snap together. Default is 28.
connectingSnapRadius
connectingSnapRadius: number = DEFAULT_SNAP_RADIUS;
Maximum misalignment between connections for them to snap together. This should be the same as the snap radius. Default is 28.
currentConnectionPreference
currentConnectionPreference: number = 8;
How much to prefer staying connected to the current connection over moving to a new connection. The current previewed connection is considered to be this much closer to the matching connection on the block than it actually is.
bumpDelay
bumpDelay: number = 250;
Delay in ms between trigger and bumping unconnected block out of alignment.