isthisnagee
  • Joined on Oct 15, 2019
Loading Heatmap…

isthisnagee pushed to main at isthisnagee/before-after

2 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

  • 09f3cd37ac Improve undo/redo In the previous version, when a user did and undo/redo, it would do it on part of their stroke For example, if the user took this stroke ``` [line1 ][line 2 ] ---------------------- ^ pen down ^ pen up ``` And then pressed "undo", we would remove just the pixels that were drawn when the pen lifted. ``` [stroke ][stroke ] --------------------- ^ pen down ``` If they pressed undo again, we would remove the next piece of the stroke. ``` [stroke ] ------------ ^ pen down ``` Now, when presented with this: ``` [line1 ][line 2 ] ---------------------- ^ pen down ^ pen up ``` If the user presses undo, this will be the state of the drawing: ``` ```

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

  • debcdbbb5e Add very basic undo/redo This will undo/redo intermediate steps, but it really should be doing full strokes. For example, if a user drew this line: ``` [stroke ][stroke ] ---------------------- ^ pen down ^ pen up ``` And then pressed "undo", we would remove just the pixels that were drawn when the pen lifted. ``` [stroke ][stroke ] --------------------- ^ pen down ``` If they pressed undo again, we would remove the next stroke ``` [stroke ] ------------ ^ pen down ``` Then two more undos would remove the line. In reality, we should record the pen up and pen down, and decrease the array position by that much. I'm debating two appraches to this, but this is low priority so I'm fine shipping with this.
  • a0172dd878 Format paint.js
  • Compare 2 commits »

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

  • d419e1cbfa Add submit button This should be converted to a form to make validation easy!!

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

  • 3aad5850f3 Redraw after resizing The settimeout is added to help with "smoothness"
  • b1a207bf36 Fix bug when drawing after resizing This will change the offset X/Y that we use to draw whenever the window is resized. Adding the ability to resize on the canvas is a bit more complicated. We would need to make the _wrapper_ `div` resizable and introduce a [`ResizeObserver`]. Whenever the wrapper is resized, the three canvases need to react to that and redraw. [`ResizeObserver`]: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
  • 7ed19476b7 Add drawing canvas
  • a4d2e06be2 Style fixes
  • Compare 4 commits »

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

3 weeks ago

isthisnagee pushed to main at isthisnagee/before-after

4 weeks ago

isthisnagee deleted branch master from isthisnagee/before-after

1 month ago

isthisnagee pushed to main at isthisnagee/before-after

1 month ago

isthisnagee pushed to main at isthisnagee/homepage

1 month ago