Add interactive testing, fix errors to do with update to Elm 0.19, fi… #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…x documentation, etc.
Made the following changes:
For the "Apps.elm" file, made the following additional changes/corrections:
InputHandler
type alias and theKeyState(..)
andKeys(..) types, which are necessary in order to annotate and use key decoding for use in the
gameApp` application creation where keyboard inputs are desired.For the "GraphicSVG.elm" file, made the following corrections to errors:
mousePosDecoder
which was transposed incorrectly; missing a minus sign on "y".Collage
in the browser window.outside
so that it no longer makesEverything
disappear but rather only theShape
(or group of shapes` defined to be on the "inside".Clip
so thatrepaint
and mapping apply to the actualShape
(theShape
on the left) and not the clippingShape
(theShape
on the right).puppetShow
as otherwise it was an unused and unusable orphan in the "GraphicSVG.elm" file; changed the definition to auto-scale according to the givenCollage
dimensions and to return aList
ofShape
's to be used directly or within aCollage
, whichever is required.Also:
Open questions remain as follows:
MyStyle
, which is defined in the "GraphicSVG.elm" file but never used and not exposed, making it an orphan?addOutline
in the "GraphicSVG.elm" file to its intention to add outlines to anyShape
and/orGroup
ofShape
's, but which currently only works for simple basicShape
's.ghost
as all it does is make the colour of aShape
white and is no longer used as we no longer have scissors; practically, a ghost should be ephemeral as in blank (transparent) colour, in which case it could be used as a clipping agent without being visible.