Public API for detaching the internal resize listener

Author: charliec2004Created Apr 19, 2026Updated Apr 19, 2026

Context: We drive rough-notation highlights inside a React app with a ResizeObserver that provides instant redraw on container resize. The library's internal 400ms debounced listener competes with ours. We currently cast to { detachListeners?: () => void } and call the private method.

Request: expose a public detachListeners() (or accept an option to skip attaching the listener in the first place) so downstream apps can wire their own resize strategy without relying on internals.

Source: rough-stuff/rough-notation