diff --git a/theatre/studio/src/utils/mousePositionD.ts b/theatre/studio/src/utils/mousePositionD.ts index d9c4ee5..b50f214 100644 --- a/theatre/studio/src/utils/mousePositionD.ts +++ b/theatre/studio/src/utils/mousePositionD.ts @@ -1,5 +1,8 @@ import {prism} from '@theatre/dataverse' +/** + * A derivation that holds the current mouse position. + */ const mousePositionD = prism(() => { const [pos, setPos] = prism.state('pos', null) prism.effect(