Skip to main content

Home > blockly > icons > MutatorIcon

icons.MutatorIcon class

An icon that allows the user to change the shape of the block.

For example, it could be used to add additional fields or inputs to the block.

Signature:

export declare class MutatorIcon extends Icon implements IHasBubble 

Extends: Icon

Implements: IHasBubble

Constructors

ConstructorModifiersDescription
(constructor)(flyoutBlockTypes, sourceBlock)Constructs a new instance of the MutatorIcon class

Properties

PropertyModifiersTypeDescription
sourceBlockprotected readonlyBlockSvg
TYPEstatic readonlyIconType<MutatorIcon>The type string used to identify this icon.
WEIGHTstatic readonly(not declared)The weight this icon has relative to other icons. Icons with more positive weight values are rendered farther toward the end of the block.

Methods

MethodModifiersDescription
applyColour()
bubbleIsVisible()
dispose()
getBubble()See IHasBubble.getBubble.
getSize()
getType()
getWeight()
getWorkspace()
initView(pointerdownListener)
isClickableInFlyout()
onClick()
onLocationChange(blockOrigin)
setBubbleVisible(visible)
updateCollapsed()