register static method

void register()

Registers the vector sources once. NativeMouseCursor re-rasterizes these paths at the current monitor DPR and installs the result as an OS/CSS cursor without a Flutter overlay.

Implementation

static void register() {
  for (final kind in DiagramTransformCursorKind.values) {
    final id = idFor(kind);
    if (NativeMouseCursor.has(id)) continue;
    NativeMouseCursor.draw(
      id,
      size: const ui.Size(cursorLogicalSide, cursorLogicalSide),
      hotspot: const ui.Offset(cursorLogicalSide / 2, cursorLogicalSide / 2),
      painter: (canvas, _) => paintGlyph(canvas, kind),
    );
  }
}