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:
Jeremiah Saunders
2024-08-07 11:07:48 -05:00
committed by GitHub
parent cd31edbd9a
commit 23e901120b

View File

@@ -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 */