Giter Club home page Giter Club logo

paint's Introduction

👋 Hi there

Welcome to my github! I am a Front-End Developer, who lives in South Korea.
These followings are representative images showing my recent github activites and interests.

Github Activities

Hits

paint's People

Contributors

sukyoungshin avatar

Watchers

 avatar

paint's Issues

[bug] 캔버스에서 mousedown 시, stroke가 끊기는 현상

ISSUE

아래와 같은 과정을 예상하며 로직을 작업했으나
캔버스에서 마우스를 클릭하고 있을 때 stroke가 뚝뚝 끊기며 제대로 그려지지 않았습니다.

  1. mousemove시, 마우스포인터 위치값을 받아와서 상태로 저장하고
  2. 클릭을 하면, 마우스포인터 위치값을 토대로 시작점을 잡고
  3. mousedown을 하면, 계속 그림을 그리다가
  4. mouseup을 하면, 그림을 끝낸다!

관련커밋: 53b1701

[fix] context 타입에러

최초 그림판앱에 마우스 클릭 시, 콘솔창에 다음과 같은 에러가 뜹니다.

Uncaught TypeError: Cannot read properties of undefined (reading 'beginPath')

원인: 최초 실행 시, getInitialPosition 함수 내부에서 context가 Undefined인 상태여서 타입에러가 발생합니다.
해결: context?.beginPath(); optional chaining 사용하여 해결

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.