Skip to content

Commit

Permalink
feat: expose bringToFront() method (#8472)
Browse files Browse the repository at this point in the history
* Remove internal from bringToFront JSDoc

* Add a note about the cost of this method

* Remove unnecessary colon
  • Loading branch information
UCYT5040 authored Aug 7, 2024
1 parent cd31edb commit 23e9011
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 23e9011

Please sign in to comment.