From 23e901120b55ac198389eef7740c52aced174642 Mon Sep 17 00:00:00 2001 From: Jeremiah Saunders <46662314+UCYT5040@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:07:48 -0500 Subject: [PATCH] feat: expose `bringToFront()` method (#8472) * Remove internal from bringToFront JSDoc * Add a note about the cost of this method * Remove unnecessary colon --- core/block_svg.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/block_svg.ts b/core/block_svg.ts index 1a96d166a14..14c5805748c 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -1171,10 +1171,11 @@ export class BlockSvg * 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 , 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 */