mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
feat: expose bringToFront() method (#8472)
* Remove internal from bringToFront JSDoc * Add a note about the cost of this method * Remove unnecessary colon
This commit is contained in:
committed by
GitHub
parent
cd31edbd9a
commit
23e901120b
@@ -1171,10 +1171,11 @@ export class BlockSvg
|
||||
* <g> tags do not respect z-index so SVG renders them in the
|
||||
* order that they are in the DOM. By placing this block first within the
|
||||
* block group's <g>, it will render on top of any other blocks.
|
||||
* Use sparingly, this method is expensive because it reorders the DOM
|
||||
* nodes.
|
||||
*
|
||||
* @param blockOnly: True to only move this block to the front without
|
||||
* @param blockOnly True to only move this block to the front without
|
||||
* adjusting its parents.
|
||||
* @internal
|
||||
*/
|
||||
bringToFront(blockOnly = false) {
|
||||
/* eslint-disable-next-line @typescript-eslint/no-this-alias */
|
||||
|
||||
Reference in New Issue
Block a user