Skip to content
Snippets Groups Projects
  1. Mar 03, 2017
    • Ray Schamp's avatar
      Implement drag and drop for sprites on the stage (#159) · 5647854d
      Ray Schamp authored
      * WIP: drag states in stage component
      
      * WIP: Hacky drag canvas
      
      * Update sprite position on drag
      
      Use VM to put sprite into drag state and update the sprite's position while dragging.
      
      Temporarily don't use the drawable data to drag a new canvas, this can happen whne we have somewhere to drag the sprite to.
      5647854d
  2. Jan 31, 2017
    • Ray Schamp's avatar
      Cache stage bounding box · 6385cb06
      Ray Schamp authored
      `getBoundingClientRect` forces WebKit to recalculate the layout ("force reflow"), so cache the canvas bounding box rather than getting it on every mouse event.
      6385cb06
  3. Jan 06, 2017
  4. Jan 04, 2017
  5. Dec 07, 2016
    • Ray Schamp's avatar
      Use CSS modules for styles · 16fbb64c
      Ray Schamp authored
      The inline css method gives us nothing that CSS modules can't give us. This puts the project more in line with the way www works, and makes CSS actually readable.
      
      Using class names gives us full control of the modal styles.
      16fbb64c
  6. Nov 17, 2016
  7. Nov 04, 2016
  8. Oct 22, 2016
  9. Oct 19, 2016
  10. Oct 17, 2016
  11. Oct 16, 2016
    • Ray Schamp's avatar
      Recoupling refactor · 716c979d
      Ray Schamp authored
      Confine the logic for adding/removing event listeners between the VM and the components to the relevant components.  While this tightens the coupling between the component and the environment, it makes using the individual components more self-contained.
      716c979d
  12. Oct 14, 2016
    • Ray Schamp's avatar
      Decoupling refactor · 51d5b7a9
      Ray Schamp authored
      Use fewer refs, these had weird behavior that caused the order of components to matter.
      Attach events eagerly, as soon as the necessary objects are available.
      Make VMManager an actual class instantiated with a VM so we don't have to pass it to every method.
      Use bindAll everywhere for convenience.
      51d5b7a9
  13. Oct 12, 2016
  14. Sep 28, 2016
  15. Sep 22, 2016
Loading