diff --git a/haddock.txt b/haddock.txt index 1fcc378..485f69f 100644 --- a/haddock.txt +++ b/haddock.txt @@ -6,37 +6,34 @@ 100% ( 22 / 22) in 'Reanimate.Effect' 100% ( 17 / 17) in 'Reanimate.Parameters' 100% ( 14 / 14) in 'Reanimate.Raster' + 100% ( 13 / 13) in 'Reanimate.Morph.Common' 100% ( 13 / 13) in 'Reanimate.ColorMap' 100% ( 12 / 12) in 'Reanimate.ColorComponents' 100% ( 10 / 10) in 'Reanimate.Ease' 100% ( 9 / 9) in 'Reanimate.Voice' 100% ( 9 / 9) in 'Reanimate.Povray' 100% ( 9 / 9) in 'Reanimate.Constants' + 100% ( 8 / 8) in 'Reanimate.Transition' 100% ( 8 / 8) in 'Reanimate.Builtin.TernaryPlot' 100% ( 7 / 7) in 'Reanimate.Builtin.Documentation' 100% ( 6 / 6) in 'Reanimate.Builtin.Images' 100% ( 5 / 5) in 'Reanimate.Transform' + 100% ( 4 / 4) in 'Reanimate.Svg.Unuse' 100% ( 4 / 4) in 'Reanimate.Svg.BoundingBox' + 100% ( 3 / 3) in 'Reanimate.Math.Balloon' 100% ( 3 / 3) in 'Reanimate.Blender' 100% ( 2 / 2) in 'Reanimate.Builtin.CirclePlot' 97% ( 28 / 29) in 'Reanimate.Math.Common' - 92% ( 12 / 13) in 'Reanimate.Morph.Common' 89% (101 /113) in 'Reanimate.Scene' - 88% ( 7 / 8) in 'Reanimate.Transition' 84% ( 31 / 37) in 'Geom2D.CubicBezier.Linear' - 75% ( 3 / 4) in 'Reanimate.Svg.Unuse' - 56% ( 10 / 18) in 'Reanimate.Svg' - 44% ( 4 / 9) in 'Reanimate.LaTeX' - 31% ( 4 / 13) in 'Reanimate.Render' - 25% ( 1 / 4) in 'Reanimate.Builtin.Slide' - 12% ( 2 / 17) in 'Reanimate.Math.SSSP' - 6% ( 5 / 84) in 'Reanimate.Math.Polygon' + 61% ( 11 / 18) in 'Reanimate.Svg' + 56% ( 5 / 9) in 'Reanimate.LaTeX' + 50% ( 2 / 4) in 'Reanimate.Builtin.Slide' + 38% ( 5 / 13) in 'Reanimate.Render' + 33% ( 1 / 3) in 'Reanimate.Morph.Rotational' + 25% ( 1 / 4) in 'Reanimate.Debug' + 20% ( 1 / 5) in 'Reanimate.Builtin.Flip' + 14% ( 1 / 7) in 'Reanimate.Morph.Linear' + 10% ( 1 / 10) in 'Reanimate.ColorSpace' 6% ( 1 / 18) in 'Reanimate.Svg.LineCommand' - 0% ( 0 / 10) in 'Reanimate.ColorSpace' - 0% ( 0 / 7) in 'Reanimate.Morph.Linear' - 0% ( 0 / 7) in 'Reanimate.Math.Triangulate' - 0% ( 0 / 5) in 'Reanimate.Builtin.Flip' - 0% ( 0 / 4) in 'Reanimate.Debug' - 0% ( 0 / 3) in 'Reanimate.Morph.Rotational' 0% ( 0 / 3) in 'Reanimate.Memo' - 0% ( 0 / 3) in 'Reanimate.Math.Balloon' diff --git a/haddock_badge.json b/haddock_badge.json index ea97d81..c0a8d2c 100644 --- a/haddock_badge.json +++ b/haddock_badge.json @@ -1 +1 @@ - { "schemaVersion": 1, "label": "api docs", "message": "69%", "color": "success" } + { "schemaVersion": 1, "label": "api docs", "message": "86%", "color": "success" } diff --git a/playground/snippets.js b/playground/snippets.js index 84e78b7..156ba99 100644 --- a/playground/snippets.js +++ b/playground/snippets.js @@ -9,4 +9,4 @@ const snippets = [{"title": "Hello World","url": "https://reanimate.clozecards.c ,{"title": "Object Positions","url": "https://reanimate.clozecards.com/IAQhjO0Ke7h/195.svg","code": "env =\n addStatic (mkBackground \"white\") .\n mapA (withStrokeColor \"black\")\n\nanimation :: Animation\nanimation = env $\n sceneAnimation $ do\n -- Configure objects\n txt <- newText \"Center\"\n top <- newText \"Top\"\n oModifyS top $ \n oTopY .= screenTop\n topR <- newText \"Top right\"\n oModifyS topR $ do\n oTopY .= screenTop\n oRightX .= screenRight\n botR <- newText \"Bottom right\"\n oModifyS botR $ do\n oBottomY .= screenBottom\n oRightX .= screenRight\n botL <- newText \"Bottom left\"\n oModifyS botL $ do\n oBottomY .= screenBottom\n oLeftX .= screenLeft\n topL <- newText \"Top left\"\n oModifyS topL $ do\n oTopY .= screenTop\n oLeftX .= screenLeft\n -- Show objects\n oShow txt\n wait 1\n switchTo txt top\n switchTo top topR\n switchTo topR botR\n switchTo botR botL\n switchTo botL topL\n switchTo topL txt\n\nswitchTo src dst = do\n fork $ oFadeOut src 1\n oModify dst $ oOpacity .~ 1\n oFadeIn dst 1\n wait 1\n\nnewText txt =\n newObject $ scale 1.5 $ center $ latex txt\n"} ,{"title": "Camera","url": "https://reanimate.clozecards.com/CD5Bg7AwVkF/150.svg","code": "animation :: Animation\nanimation = docEnv $ mapA (withFillOpacity 1) $ sceneAnimation $ do\n cam <- newObject Camera\n\n txt <- newObject $ center $ latex \"Fixed (non-cam)\"\n oModifyS txt $ do\n oTopY .= screenTop \n oZIndex .= 2\n\n circle <- newObject $ Circle 1\n cameraAttach cam circle\n oModify circle $ oContext .~ withFillColor \"blue\"\n circleRight <- oRead circle oRightX\n\n box <- newObject $ Rectangle 2 2\n cameraAttach cam box\n oModify box $ oContext .~ withFillColor \"green\"\n oModify box $ oLeftX .~ circleRight\n boxCenter <- oRead box oCenterXY\n\n small <- newObject $ center $ latex \"This text is very small\"\n cameraAttach cam small\n oModifyS small $ do\n oCenterXY .= boxCenter\n oScale .= 0.1\n \n oShow txt\n oShow small\n oShow circle\n oShow box\n\n wait 1\n\n cameraFocus cam boxCenter\n waitOn $ do\n fork $ cameraPan cam 3 boxCenter\n fork $ cameraZoom cam 3 15\n \n wait 2\n cameraZoom cam 3 1\n cameraPan cam 1 (0,0)\n"} ]; -const playgroundVersion = "2020-08-26 (ce105)"; +const playgroundVersion = "2020-08-27 (dc549)"; diff --git a/reanimate-0.4.1.0-inplace/Reanimate.Builtin.Slide.hs.html b/reanimate-0.4.1.0-inplace/Reanimate.Builtin.Slide.hs.html index 1f18540..682f0f3 100644 --- a/reanimate-0.4.1.0-inplace/Reanimate.Builtin.Slide.hs.html +++ b/reanimate-0.4.1.0-inplace/Reanimate.Builtin.Slide.hs.html @@ -17,34 +17,41 @@ span.spaces { background: white } never executed always true always false
- 1 module Reanimate.Builtin.Slide where - 2 - 3 import Reanimate.Transition - 4 import Reanimate.Constants - 5 import Reanimate.Svg - 6 import Reanimate.Effect - 7 - 8 -- | <<docs/gifs/doc_slideLeftT.gif>> - 9 slideLeftT :: Transition - 10 slideLeftT = effectT slideLeft (andE slideLeft moveRight) - 11 where - 12 slideLeft = translateE (-screenWidth) 0 - 13 moveRight = constE (translate screenWidth 0) - 14 andE a b d t = a d t . b d t - 15 - 16 slideDownT :: Transition - 17 slideDownT = effectT slideDown (andE slideDown moveUp) - 18 where - 19 slideDown = translateE 0 (-screenHeight) - 20 moveUp = constE (translate 0 screenHeight) - 21 andE a b d t = a d t . b d t + 1 {-| + 2 Copyright : Written by David Himmelstrup + 3 License : Unlicense + 4 Maintainer : lemmih@gmail.com + 5 Stability : experimental + 6 Portability : POSIX + 7 -} + 8 module Reanimate.Builtin.Slide where + 9 + 10 import Reanimate.Transition + 11 import Reanimate.Constants + 12 import Reanimate.Svg + 13 import Reanimate.Effect + 14 + 15 -- | <<docs/gifs/doc_slideLeftT.gif>> + 16 slideLeftT :: Transition + 17 slideLeftT = effectT slideLeft (andE slideLeft moveRight) + 18 where + 19 slideLeft = translateE (-screenWidth) 0 + 20 moveRight = constE (translate screenWidth 0) + 21 andE a b d t = a d t . b d t 22 - 23 slideUpT :: Transition - 24 slideUpT = effectT slideUp (andE slideUp moveDown) + 23 slideDownT :: Transition + 24 slideDownT = effectT slideDown (andE slideDown moveUp) 25 where - 26 slideUp = translateE 0 screenHeight - 27 moveDown = constE (translate 0 (-screenHeight)) + 26 slideDown = translateE 0 (-screenHeight) + 27 moveUp = constE (translate 0 screenHeight) 28 andE a b d t = a d t . b d t + 29 + 30 slideUpT :: Transition + 31 slideUpT = effectT slideUp (andE slideUp moveDown) + 32 where + 33 slideUp = translateE 0 screenHeight + 34 moveDown = constE (translate 0 (-screenHeight)) + 35 andE a b d t = a d t . b d t