@blockly/keyboard-navigation
Version:
A plugin for keyboard navigation.
18 lines • 719 B
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as Blockly from 'blockly/core';
/**
* Scrolls the provided bounds into view.
*
* In the case of small workspaces/large bounds, this function prioritizes
* getting the top left corner of the bounds into view. It also adds some
* padding around the bounds to allow the element to be comfortably in view.
*
* @param bounds A rectangle to scroll into view, as best as possible.
* @param workspace The workspace to scroll the given bounds into view in.
*/
export declare function scrollBoundsIntoView(bounds: Blockly.utils.Rect, workspace: Blockly.WorkspaceSvg): void;
//# sourceMappingURL=workspace_utilities.d.ts.map