chore: make Blockly.common.setSelected package and update docs (#5728)

This commit is contained in:
Maribeth Bottorff
2021-11-22 15:03:41 -08:00
committed by GitHub
parent d30d0da96e
commit 6c33373d5b

View File

@@ -76,9 +76,12 @@ const getSelected = function() {
exports.getSelected = getSelected;
/**
* Sets the currently selected block.
* Sets the currently selected block. This function does not visually mark the
* block as selected or fire the required events. If you wish to
* programmatically select a block, use `BlockSvg#select`.
* @param {?ICopyable} newSelection The newly selected block.
* @alias Blockly.common.setSelected
* @package
*/
const setSelected = function(newSelection) {
selected = newSelection;