From 3c1799dcfd73ed788c29d7183b5edc9831a9c7ec Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Tue, 15 Mar 2022 14:55:19 +0100 Subject: [PATCH] Document mousePositionD --- theatre/studio/src/utils/mousePositionD.ts | 3 +++ 1 file changed, 3 insertions(+) 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(