mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
chore: make Blockly.common.setSelected package and update docs (#5728)
This commit is contained in:
committed by
GitHub
parent
d30d0da96e
commit
6c33373d5b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user