Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Testing icon visibility

18 views
Skip to first unread message

ewpa...@gmail.com

unread,
Nov 19, 2024, 11:36:01 AM11/19/24
to Blockly
Hi all,

What is the recommended migration for the old Blockly.Icon.prototype.isVisible function with the new Icon API? The Icon class doesn't seem to have this function and the BlockSvg class only has add/remove APIs.

Thanks,
Evan

Mark Friedman

unread,
Nov 19, 2024, 2:23:48 PM11/19/24
to blo...@googlegroups.com
I think it would be:

hasBubble(icon) && icon.isBubbleVisible()
hasBubble() and isBubbleVisible() are part of the IHasBubble interface defined in i_has_bubble.ts

-Mark


-Mark


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/ebf3f58a-0d26-4bae-a3b9-df06bffc5bfcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages