@@ -49,7 +49,6 @@ import Potato.Flow.OwlState
4949import Potato.Flow.OwlWorkspace
5050import Potato.Flow.Render
5151import Potato.Flow.Methods.SEltMethods
52- import Potato.Flow.Serialization.Snake
5352import Potato.Flow.Types
5453import Potato.Flow.Preview
5554import Potato.Flow.Methods.LlamaWorks
@@ -324,7 +323,7 @@ goat_setFocusedArea gfa goatState = r where
324323 then let
325324 goatState_afterAction = case pHandleKeyboard (_goatState_layersHandler goatState) potatoHandlerInput (KeyboardData KeyboardKey_Return [] ) of
326325 Nothing -> noactionneeded
327- Just pho -> traceShow " press enter " $ goat_processLayersHandlerOutput pho goatstatewithnewfocus
326+ Just pho -> goat_processLayersHandlerOutput pho goatstatewithnewfocus
328327 in assert (_goatState_focusedArea goatState == GoatFocusedArea_Layers ) $ goatState_afterAction
329328 else noactionneeded
330329
@@ -394,7 +393,7 @@ endoGoatCmdMouse mouseData goatState = r where
394393
395394
396395endoGoatCmdKeyboard :: KeyboardData -> GoatState -> GoatState
397- endoGoatCmdKeyboard kbd' goatState = r where
396+ endoGoatCmdKeyboard kbd' goatState = r_d0 where
398397 -- TODO you need to do reset logic for this (basically, reset it anytime there was a non-keyboard event)
399398 last_unbrokenInput = _goatState_unbrokenInput goatState
400399 next_unbrokenInput = case kbd' of
@@ -407,7 +406,7 @@ endoGoatCmdKeyboard kbd' goatState = r where
407406 -- TODO rename to canvasHandler
408407 handler = _goatState_handler goatState_withKeyboard
409408
410- r = case mkbd of
409+ r_d0 = case mkbd of
411410 Nothing -> goatState_withKeyboard
412411 -- special case, treat escape cancel mouse drag as a mouse input
413412 Just (KeyboardData KeyboardKey_Esc _) | mouseDrag_isActive (_goatState_mouseDrag goatState_withKeyboard) -> r where
@@ -506,7 +505,7 @@ goat_renderCanvas_move rc@RenderContext {..} pan sr = r where
506505 else (rc, False )
507506
508507
509- goat_renderCanvas_update :: ( HasCallStack ) => RenderContext -> NeedsUpdateSet -> SuperOwlChanges -> RenderContext
508+ goat_renderCanvas_update :: RenderContext -> NeedsUpdateSet -> SuperOwlChanges -> RenderContext
510509goat_renderCanvas_update rc needsupdateaabbs cslmap = r where
511510 r = if IM. null cslmap
512511 then rc
@@ -581,7 +580,7 @@ goat_rerenderAfterMove goatState = r where
581580 , _goatState_renderedSelection = _renderContext_renderedCanvasRegion rc_afterselection
582581 }
583582
584- computeCanvasSelection :: ( HasCallStack ) => GoatState -> CanvasSelection
583+ computeCanvasSelection :: GoatState -> CanvasSelection
585584computeCanvasSelection goatState = r where
586585 pfs = goatState_pFState goatState
587586 filterHiddenOrLocked sowl = not $ layerMetaMap_isInheritHiddenOrLocked (_owlPFState_owlTree pfs) (_superOwl_id sowl) (_layersState_meta (_goatState_layersState goatState))
0 commit comments