3.1.21.2.1. waf_tools.drawio.drawio_hook

waf_tools.drawio.drawio_hook(self: task_gen, node: Node) → None

Create a drawioToSvg task for a .drawio source node.

Registered as an extension handler for .drawio files. When a task generator includes a .drawio source, this hook automatically creates a conversion task that produces an SVG file with the same base name.

Parameters:
  • self – The task generator instance.

  • node – The .drawio source node that triggered this handler.