ResearchLoom (Samhita) Documentation & Wiki

Architecture, Stylus Dynamics, Flow Maps, and Systematic Literature Synthesis


Project maintained by sohamsans Hosted on GitHub Pages — Theme by mattgraham

Stylus Studio & Hardware Pen Integration

Stylus Studio is designed specifically for mathematical derivation, paper annotation, and freeform research sketching on modern Android tablets.


🖊️ Hardware Stylus Support (Xiaomi Smart Pen & S-Pen)

ResearchLoom features native barrel button support optimized for the Xiaomi Smart Pen 2 / Focus Pen (Xiaomi Pad 7 / Pad 6 series) and Samsung S-Pen:

Button Actions

OEM Gesture Neutralization

On Xiaomi HyperOS / MIUI tablets:


🧹 Dual Eraser Modes

  1. Stroke Eraser (Vector):
    • Uses line-segment distance computation (distToSegment).
    • Any stroke intersected by the eraser path is deleted in its entirety with a single swipe.
  2. Pixel Eraser (Raster):
    • Uses HTML5 canvas destination-out blending.
    • Cleans up exact touched pixels without deleting the surrounding stroke, ideal for fine mathematical corrections.

📐 Geometric Shape Auto-Snap

Toggle the Snap button on the top toolbar: