weasel API - v0.8.0
    Preparing search index...

    Function computeIndicatorCommand

    • Build the visible-window indicator DrawCommand for the minimap.

      The main canvas's visible world rect is:

      worldX = mainView.x
      worldY = mainView.y
      worldW = mainViewDims.width / mainView.scale.x
      worldH = mainViewDims.height / mainView.scale.y

      That world rect is then transformed into the minimap's screen coordinates through minimapView.

      The returned command is a dashed-stroke path rect with no fill — matching the ViewportLayerDemo indicator math.

      Parameters

      Returns PathDrawCommand