研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly > blockRendering > ConstantProvider > makeNotch
blockRendering.ConstantProvider.makeNotch() 方法
Signature:
protected makeNotch(): Notch;
返回:
凹口
一个包含有关缺口的尺寸和路径信息的对象。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003emakeNotch()\u003c/code\u003e method is a protected method of the \u003ccode\u003eConstantProvider\u003c/code\u003e class within the \u003ccode\u003eblockRendering\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eIt generates and returns a \u003ccode\u003eNotch\u003c/code\u003e object which holds data about the size and path of connection notches on Blockly blocks.\u003c/p\u003e\n"],["\u003cp\u003eThis method is essential for defining the visual appearance of connection points where blocks can be linked together.\u003c/p\u003e\n"]]],["The `makeNotch()` method, part of the `ConstantProvider` class within the `blockRendering` namespace, generates a `Notch` object. This `Notch` object contains details about the size and path information required for rendering notches on blocks. The method is protected and returns a Notch, essentially defining the visual and dimensional aspects of block notches.\n"],null,["[blockly](./blockly.md) \\\u003e [blockRendering](./blockly.blockrendering_namespace.md) \\\u003e [ConstantProvider](./blockly.blockrendering_namespace.constantprovider_class.md) \\\u003e [makeNotch](./blockly.blockrendering_namespace.constantprovider_class.makenotch_1_method.md)\n\nblockRendering.ConstantProvider.makeNotch() method\n--------------------------------------------------\n\n**Signature:** \n\n protected makeNotch(): Notch;\n\n**Returns:**\n\n[Notch](./blockly.blockrendering_namespace.notch_interface.md)\n\nAn object containing sizing and path information about notches."]]