Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: document for svg icon setting #348

Merged
merged 11 commits into from
Mar 6, 2020

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Feb 27, 2020

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

});
```

2. There is a way to use the **actual physical svg file** and **set the file location manually**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actual physical svg file는 그냥 your svg file정도면 되지 않을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 정확하게 표현하고 싶어서 작업 하다보니 과했던거 같네요.. 반영하겠습니다.

* The disadvantage is that the color must be set by modifying the svg file directly.
* Need to set the path and name for each icon state as shown below.
```js
var instance = new ImageEditor(document.querySelector('#tui-image-editor'), {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const로 합시다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영하였습니다. 리뷰 감사합니다.

'submenu.normalIcon.color': '#8a8a8a',
'submenu.activeIcon.color': '#e9e9e9',

// icons (svg icon file setting)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 주석들은 기록용으로 남겨둔거예요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유저한테 다른 형식으로 사용할수 있다는걸 알려주려고 했는데, 어색한것 같네요. 문서에 충분히 설명을 했으니 빼버리겠습니다.

Copy link
Contributor

@dongsik-yoo dongsik-yoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[03/04] 리뷰 완료합니다. 수고하셨습니다.

...
});
```
* How to get svg file sample
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

svg를 대문자로 쓰면 어떨까요?

  • How to get svg file sample

  • How to get SVG file sample

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 좋네요 ㅎㅎ svg 쓰인부분 일괄 반영하겠습니다.

Copy link
Member

@junghwan-park junghwan-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

문서에 여러 번 등장하는 svg라는 텍스트는 대문자로 적어주면 어떨까요?
문서를 읽는 사용자들 눈에 잘 띄게요 :)

@jinwoo-kim-nhn jinwoo-kim-nhn changed the base branch from feat/addDefalutIcon to master March 6, 2020 01:57
@jinwoo-kim-nhn jinwoo-kim-nhn merged commit f39c666 into master Mar 6, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn deleted the chore/documentForSvgIconSetting branch March 20, 2020 08:12
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
* feat: default menu svg icon - middle commit

* feat: default icon normal Check basic operation

* feat: prototype complete for default icon improve

* feat: complate default icon code

* example file update for default icon setting

* chore: svg-loader dependency -> devdependency

* chore: document for svg icon setting

* fixed some link at document

* apply codereview

* apply codereview - 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants