MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / initView

Method initView

packages/blockly/core/interfaces/i_icon.ts:26–26  ·  view source on GitHub ↗

* Creates the SVG elements for the icon that will live on the block. * * @param pointerdownListener An event listener that must be attached to the * root SVG element by the implementation of `initView`. Used by Blockly's * gesture system to properly handle clicks and drags.

(pointerdownListener: (e: PointerEvent) => void)

Source from the content-addressed store, hash-verified

24 * gesture system to properly handle clicks and drags.
25 */
26 initView(pointerdownListener: (e: PointerEvent) => void): void;
27
28 /**
29 * Disposes of any elements of the icon.

Callers 15

initViewMethod · 0.65
initSvgMethod · 0.65
addIconMethod · 0.65
initViewMethod · 0.65
initViewMethod · 0.65
initViewMethod · 0.65
initFunction · 0.65
initViewMethod · 0.65
initViewMethod · 0.65
initViewMethod · 0.65
assertHasClassFunction · 0.65
assertDoesNotHaveClassFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected