研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >图标 >MutatorIcon
icon.MutatorIcon 类
可让用户更改砌块形状的图标。
例如,它可以用来向块添加其他字段或输入。
Signature:
export declare class MutatorIcon extends Icon implements IHasBubble
扩展: 图标
实现:IHasBubble
构造函数
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-11。
[null,null,["最后更新时间 (UTC):2024-10-11。"],[[["The `MutatorIcon` class in Blockly is an icon that allows users to modify the shape of a block, such as adding fields or inputs."],["It extends the `Icon` class and implements the `IHasBubble` interface, providing functionality for displaying and managing a bubble."],["`MutatorIcon` includes properties like `sourceBlock`, `TYPE`, and `WEIGHT`, and methods like `applyColour`, `dispose`, and `onClick` for managing its appearance and behavior."],["This icon is specifically designed for use with mutator blocks, which are blocks that allow for more complex or customizable structures within Blockly workspaces."]]],[]]