View Code? Open in Web Editor
NEW
A pixel art editor on web
Home Page: https://zzoyu.github.io/vue-pixel-editor/
HTML 0.85%
JavaScript 0.61%
Vue 43.02%
CSS 0.15%
TypeScript 55.37%
vue-pixel-editor's Introduction
๐ Hi, Iโm @zzoyu
๐ ์ฃผ ๊ด์ฌ ๋ถ์ผ๋ FE, UI/UX, ๊ฒ์, ์๋ฒ ๋๋ ํ์จ์ด์
๋๋ค. ์ฌ์ฉ์์ ์ํธ์์ฉํ๋ ๋ชจ๋ ๊ฒ๋ค์ ์ข์ํฉ๋๋ค.
๐ฑ ํ์ฌ Vue.js / Nuxt.js ์์ฃผ๋ก ๊ฐ๋ฐํ๊ณ ์์ต๋๋ค.
vue-pixel-editor's People
Stargazers
Watchers
vue-pixel-editor's Issues
Description
Warning is raised when a method is used outside of a method call. Class functions don't preserve the class scope when passed as standalone variables.
Occurrences
There are 5 occurrences of this issue in the repository.
See all occurrences on DeepSource โ deepsource.io/gh/zzoyu/vue-pixel-editor/issue/JS-0387/occurrences/
๋ง์ฐ์ค ์ด๋ฒคํธ ๋ฟ๋ง ์๋๋ผ ํฐ์น ์ด๋ฒคํธ๋ ๋ฐ๋๋ก ์์ ํ์
1์ฐจ - ๋จ์ ์ฌ์ด์ฆ ์กฐ์ ํฌํ ์ต์ฒ๋ผ ์ฌ๋ฐฑ ์์น ์ง์
2์ฐจ - ์ ์ฒด ๋ ์ด์ด ์ค์ผ์ผ ์กฐ์
Description
Props and events should be preferred for parent-child component communication, instead of this.$parent
or mutating props. When Vue re-renders your component โ which happens every time something changes โ it will overwrite any changes you have made to your props. This means that even if you try to mutate the โฆ
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource โ deepsource.io/gh/zzoyu/vue-pixel-editor/issue/JS-0611/occurrences/
์ง์ ์ ๊ทธ๋ฆฝ๋๋ค.
๋ง์ฐ์ค ํด๋ฆญ ์์น๊ฐ ์์์ , ๋ง์ฐ์ค ์ด๋ ์์น๊ฐ ๋์ ์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋ง์ฐ์ค ํด๋ฆญ์ ํ ๋๊น์ง ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์ํ๊ฐ ์ ์ง๋ ํ, ํด๋ฆญ ํด์ ์ ํด๋น ์์น๊ฐ ํ์ ์ํ๊ฐ ๋ฉ๋๋ค.
์บ๋ฒ์ค ๋ฐ์ผ๋ก ๋ง์ฐ์ค๋ฅผ ์ด๋ํด๋ ํด๋ฆญ ์ํ๊ฐ ์ ์ง๋์ด์ผ ํฉ๋๋ค.
์คํ์ทจ์ ๋ค์์คํ ๋ฑ ๊ตต์งํ ๋์ ์ํ ์ ํ ์คํธ ์๋ฆผ์ ํด์ค ์๋ฆผ ui๊ฐ ํ์ํจ. Plugin์ผ๋ก ๊ตฌํํ๋ ๋ฐฉ๋ฒ์ ๊ณ ๋ฏผํด๋ด์ผํจ
๋๊ธ๋๊ธ๋น
๋ง์ฐ์ค ์ต์ด ํด๋ฆญ ์ง์ ์ ์์ ์ค์ฌ์ผ๋ก, ํ์ฌ ์ปค์ ์์น๋ฅผ r ๊ฐ์ผ๋ก -> ์ด๊ฒ ์ข ๋ ํธํ์ง ์๋
๋ง์ฐ์ค ์ต์ด ํด๋ฆญ ์ง์ ์์ ํ์ฌ ์ปค์ ์์น์ ๋ด์ ํ๋ ์์ ๊ทธ๋ฆฌ๊ธฐ -> ์ผ๋ฐ์ ์ธ ๊ทธ๋ฆผํ ๋ก์ง
๋ ๋ค ์ ๊ณต ํ ๋จ์ถํค ํด๋ฆญ ์ํ์ ๋ฐ๋ผ ๋ค๋ฅด๊ฒ ๋์ํ๋ ๊ฒ์ด ๊ฐ์ฅ ์ ์ ํ ๊ฒ์ผ๋ก ์๊ฐ๋จ.
Description
Variables that are not re-assigned are referred to as constant variables. So, we recommend using const
for such variables instead of let
to define because the value of a variable declared with const remains the same within its scope. It cannot be updated or re-declared and also reduces cognitive load โฆ
Occurrences
There are 3 occurrences of this issue in the repository.
See all occurrences on DeepSource โ deepsource.io/gh/zzoyu/vue-pixel-editor/issue/JS-0242/occurrences/
๊ตฌํ์ ์ด๋ป๊ฒ ํ ๊ฒ์ธ์ง ๊ณ ๋ฏผ์ด ํ์.
ํ์คํ ๋ฆฌ ์ญ์ถ์ ๋ฐฉ์ ๋๋ ์ค๋
์ท?
์ค๋
์ท์ ๋ฉ๋ชจ๋ฆฌ ๋ญ๋น๊ฐ ์ฌํ ๊ฒ ๊ฐ๊ณ ์ค๋ธ์ ํธ๊ฐ ๋ง์ ๋ฅ์นดํผ๊ฐ ์ด๋ ค์
๋์์ ์ํํ ๋๋ง๋ค ์คํ์ ์์์ผ ํ ๊ฒ์ธ๊ฐ? ์ค์ ๊ตฌํ ์ฌ๋ก๋ฅผ ์ฐพ์๋ด์ผ ํ ๊ฒ
์บ๋ฒ์ค ํ๋ฉด ํฌ๊ธฐ์ ๋ง์ถ๊ธฐ
1:1๋ณด๊ธฐ ์ต์
๊ทธ๋ฆผํ ์ฑ์ฐ๊ธฐ์ ๋์ผํ ๊ธฐ๋ฅ์
๋๋ค.
2์ฐจ์ ๋ฐฐ์ด์์ ์ฌ๊ทํจ์๋ก dfs๋ฅผ ๊ตฌํํ๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋ง์ฐ์ค ์ปค์ ์์น์ ์ด๋ค ์์์ด ์ด๋ค ๋ชจ์์ผ๋ก ๊ทธ๋ ค์ง์ง ๋ฏธ๋ฆฌ๋ณด๊ธฐ ํ๋ ๊ธฐ๋ฅ์
๋๋ค.
Pull request์ฉ ์คํฌ๋ฆฝํธ ์์ฑ
Lint, Build๊น์ง๋ง ํ๋ฉฐ ๋ฐฐํฌํ์ง ์๋๋ก ์ฒ๋ฆฌ ๋๋ ๋ฉ์ธ ์คํฌ๋ฆฝํธ์์ ๋ถ๊ธฐ ์ฒ๋ฆฌ
๋ง์ฐ์ค ํ ๋ก ์ค์ผ์ผ ์กฐ์ ์ ์์๊ฐ ๊ฐ๋ฅํ ํ์
์ต์ 0.5๋ฐฐ๋ก ์ ํ
๋๋๊ทธ ์ด๋, ์ ๊ธฐ ๊ธฐ๋ฅ์ ํ์ฌํ ์ผ๋ฐ ํ์
์ฐฝ๊ณผ
๋ชจ๋ฌ ๋ค์ด์ผ๋ก๊ทธ๋ก ํ์ฉ ๊ฐ๋ฅํ ๋ฒ ์ด์ค ์ปดํฌ๋ํธ ์์ฑ
๋๋๊ทธ๋ก ์์ ์ด๋ ๊ฐ๋ฅํ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋ค์ด์ผ๋ก๊ทธ.
ํ์ผ๋ง ์ต์
: ์บ๋ฒ์ค๋ฅผ ๋ฐ๋ณตํ์ฌ ๋ณด์ฌ์ค
ํ๋ ์ถ์
์ฌ์ฉํ ์ปฌ๋ฌ ๋ฆฌ์คํธ -> ์์ ๋ณ๊ฒฝ๋ ๊ฐ๋ฅ?