Skip to content

Commit 96e47c7

Browse files
lja1018jinwoo-kim-nhnjinwoo-kim-nhn
authored
feat: v3.11.0 (#498)
* feat: add undo stack of object resize/move [#358] (#490) * feat: add objectModified handler * feat: resize move add undo stack - middle commit * feat: resize move add undo stack - middle commit 2 * feat: one item undo redo prototype complate * feat: undo chage from group selection = #1 * feat: prototyping complete * feat: add selectionModifyHelper * feat: complate refactoring * refactor: complete refactoring * feat: added test for changeSelection command * test: add selectionModifyHelper test * chore: fix misspelling * chore: apply code review Co-authored-by: lja1018 <jaeeon.lim@nhn.com> Co-authored-by: jinwoo-kim-nhn <jw.kim@nhn.com> * feat: update fabric version to 4.2.0 [#461] (#491) * feat: fabricjs version update 3.6.0 -> 4.2.0 - start prototyping * feat: apply fabric v4.2.0 breaking changes * test: fix fabric v4.2.0 breaking changes * chore: change example cdn link * fix: icon event drag error bug at IE * env: update fabric version to 4.2.0 * chore: change misspelling * chore: fix misspelling * chore: apply code review Co-authored-by: jinwoo-kim-nhn <jw.kim@nhn.com> * feat: add icon drawing mode [#74, #441] (#492) * feat: add drawingmode for icon - prototyping complete * feat: complete add drawing mode for icon * chore: fix misspelling * chore: apply code review * fix: icon selection scale Co-authored-by: jinwoo-kim-nhn <jw.kim@nhn.com> * fix: text line-through decoration (#496) * fix: not apply setBrush API when LINE_DRAWING (#497) * feat: apply prettier (#493) * env: add prettier * chore: apply prettier Co-authored-by: 김진우 <35218826+jinwoo-kim-nhn@users.noreply.github.com> Co-authored-by: jinwoo-kim-nhn <jw.kim@nhn.com>
1 parent f9ae2fd commit 96e47c7

File tree

154 files changed

+20399
-18796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+20399
-18796
lines changed

.babelrc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"presets": ["es2015"],
3-
"plugins": [
4-
["transform-es2015-destructuring", {"loose": true}],
5-
["transform-es2015-for-of", {"loose": true}],
6-
["transform-es2015-spread", {"loose": true}]
7-
]
2+
"presets": ["es2015"],
3+
"plugins": [
4+
["transform-es2015-destructuring", { "loose": true }],
5+
["transform-es2015-for-of", { "loose": true }],
6+
["transform-es2015-spread", { "loose": true }]
7+
]
88
}

.eslintrc.js

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
module.exports = {
2-
"extends": "tui/es6",
3-
"env": {
4-
"browser": true,
5-
"amd": true,
6-
"node": true,
7-
"jasmine": true,
8-
"jquery": true,
9-
"es6": true
10-
},
11-
"globals": {
12-
"fabric": true,
13-
"tui": true,
14-
"loadFixtures": true
15-
},
16-
"parserOptions": {
17-
"sourceType": "module"
18-
},
19-
'rules': {
20-
indent: [2, 4, {SwitchCase: 1, ignoreComments: false, ImportDeclaration: 1, flatTernaryExpressions: false}],
21-
'prefer-destructuring': ['error', {
22-
VariableDeclarator: {array: true, object: true},
23-
AssignmentExpression: {array: false, object: false}
24-
}]
25-
}
2+
extends: ['tui/es6', 'plugin:prettier/recommended'],
3+
plugins: ['prettier'],
4+
env: {
5+
browser: true,
6+
amd: true,
7+
node: true,
8+
jasmine: true,
9+
jquery: true,
10+
es6: true,
11+
},
12+
globals: {
13+
fabric: true,
14+
tui: true,
15+
loadFixtures: true,
16+
},
17+
parserOptions: {
18+
sourceType: 'module',
19+
},
20+
rules: {
21+
'prefer-destructuring': [
22+
'error',
23+
{
24+
VariableDeclarator: { array: true, object: true },
25+
AssignmentExpression: { array: false, object: false },
26+
},
27+
],
28+
'prettier/prettier': 'error',
29+
},
2630
};

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: Bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: Enhancement, Need Discussion
66
assignees: ''
7-
87
---
98

109
<!--
@@ -19,17 +18,21 @@ And you can write template's contents in Korean also.
1918
<!-- TEMPLATE -->
2019

2120
## Version
21+
2222
<!-- Write the version of the imageEditor you are currently using. -->
2323

2424
## Development Environment
25+
2526
<!-- Write the browser type, OS and so on -->
2627

2728
## Current Behavior
29+
2830
<!-- Write a description of the current operation. You can add sample code, 'CodePen' or 'jsfiddle' links. -->
2931

3032
```js
3133
// Write example code
3234
```
3335

3436
## Expected Behavior
37+
3538
<!-- Write a description of the future action. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a question about imageEditor
44
title: ''
55
labels: Question
66
assignees: ''
7-
87
---
98

109
<!--

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 100,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": true,
7+
"quoteProps": "as-needed",
8+
"trailingComma": "es5",
9+
"arrowParens": "always",
10+
"endOfLine": "lf",
11+
"bracketSpacing": true,
12+
"proseWrap": "preserve"
13+
}

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

CONTRIBUTING.md

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,87 +5,103 @@ First off, thanks for taking the time to contribute! 🎉 😘 ✨
55
The following is a set of guidelines for contributing to TOAST UI. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
66

77
## Reporting Bugs
8+
89
Bugs are tracked as GitHub issues. Search the list and try reproduce on [demo][demo] before you create an issue. When you create an issue, please provide the following information by filling in the template.
910

1011
Explain the problem and include additional details to help maintainers reproduce the problem:
1112

12-
* **Use a clear and descriptive title** for the issue to identify the problem.
13-
* **Describe the exact steps which reproduce the problem** in as many details as possible. Don't just say what you did, but explain how you did it. For example, if you moved the cursor to the end of a line, explain if you used a mouse or a keyboard.
14-
* **Provide specific examples to demonstrate the steps.** Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets on the issue, use Markdown code blocks.
15-
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
16-
* **Explain which behavior you expected to see instead and why.**
17-
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem.
13+
- **Use a clear and descriptive title** for the issue to identify the problem.
14+
- **Describe the exact steps which reproduce the problem** in as many details as possible. Don't just say what you did, but explain how you did it. For example, if you moved the cursor to the end of a line, explain if you used a mouse or a keyboard.
15+
- **Provide specific examples to demonstrate the steps.** Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets on the issue, use Markdown code blocks.
16+
- **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
17+
- **Explain which behavior you expected to see instead and why.**
18+
- **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem.
1819

1920
## Suggesting Enhancements
21+
2022
In case you want to suggest for TOAST UI ImageEditor, please follow this guideline to help maintainers and the community understand your suggestion.
2123
Before creating suggestions, please check [issue list](../../labels/enhancement) if there's already a request.
2224

2325
Create an issue and provide the following information:
2426

25-
* **Use a clear and descriptive title** for the issue to identify the suggestion.
26-
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
27-
* **Provide specific examples to demonstrate the steps.** Include copy/pasteable snippets which you use in those examples, as Markdown code blocks.
28-
* **Include screenshots and animated GIFs** which helps demonstrate the steps or point out the part of TOAST UI ImageEditor which the suggestion is related to.
29-
* **Explain why this enhancement would be useful** to most TOAST UI users.
30-
* **List some other image editors or applications where this enhancement exists.**
27+
- **Use a clear and descriptive title** for the issue to identify the suggestion.
28+
- **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
29+
- **Provide specific examples to demonstrate the steps.** Include copy/pasteable snippets which you use in those examples, as Markdown code blocks.
30+
- **Include screenshots and animated GIFs** which helps demonstrate the steps or point out the part of TOAST UI ImageEditor which the suggestion is related to.
31+
- **Explain why this enhancement would be useful** to most TOAST UI users.
32+
- **List some other image editors or applications where this enhancement exists.**
3133

3234
## First Code Contribution
3335

3436
Unsure where to begin contributing to TOAST UI? You can start by looking through these `document`, `good first issue` and `help wanted` issues:
3537

36-
* **document issues**: issues which should be reviewed or improved.
37-
* **good first issues**: issues which should only require a few lines of code, and a test or two.
38-
* **help wanted issues**: issues which should be a bit more involved than beginner issues.
38+
- **document issues**: issues which should be reviewed or improved.
39+
- **good first issues**: issues which should only require a few lines of code, and a test or two.
40+
- **help wanted issues**: issues which should be a bit more involved than beginner issues.
3941

4042
## Pull Requests
4143

4244
### Development WorkFlow
45+
4346
- Set up your development environment
4447
- Make change from a right branch
4548
- Be sure the code passes `npm run lint`, `npm run test`
4649
- Make a pull request
4750

4851
### Development environment
52+
4953
- Prepare your machine node and it's packages installed.
5054
- Checkout our repository
5155
- Install dependencies by `npm install && bower install`
5256
- Start webpack-dev-server by `npm run serve`
5357

5458
### Make changes
59+
5560
#### Checkout a branch
61+
5662
- **develop**: PR base branch. merge features, updates for next minor or major release
5763
- **master**: bug fix or document update for next patch release. develop branch will rebase every time master branch update. so keep code change to a minimum.
5864
- **production**: lastest release branch with distribution files. never make a PR on this
5965
- **gh-pages**: API docs, examples and demo
6066

6167
#### Check Code Style
68+
6269
Run `npm run eslint` and make sure all the tests pass.
6370

6471
#### Test
72+
6573
Run `npm run test` and verify all the tests pass.
6674
If you are adding new commands or features, they must include tests.
6775
If you are changing functionality, update the tests if you need to.
6876

6977
#### Commit
78+
7079
Follow our [commit message conventions](./docs/COMMIT_MESSAGE_CONVENTION.md).
7180

7281
### Yes! Pull request
82+
7383
Make your pull request, then describe your changes.
84+
7485
#### Title
86+
7587
Follow other PR title format on below.
88+
7689
```
7790
<Type>: Short Description (fix #111)
7891
<Type>: Short Description (fix #123, #111, #122)
7992
<Type>: Short Description (ref #111)
8093
```
81-
* capitalize first letter of Type
82-
* use present tense: 'change' not 'changed' or 'changes'
94+
95+
- capitalize first letter of Type
96+
- use present tense: 'change' not 'changed' or 'changes'
8397

8498
#### Description
99+
85100
If it has related to issues, add links to the issues(like `#123`) in the description.
86101
Fill in the [Pull Request Template](./docs/PULL_REQUEST_TEMPLATE.md) by check your case.
87102

88103
## Code of Conduct
104+
89105
This project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to dl_javascript@nhn.com.
90106

91107
> This Guide is base on [atom contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md), [CocoaPods](http://guides.cocoapods.org/contributing/contribute-to-cocoapods.html) and [ESLint](http://eslint.org/docs/developer-guide/contributing/pull-requests)

ISSUE_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@ And you can write template's contents in Korean also.
1010
<!-- TEMPLATE -->
1111

1212
## Version
13+
1314
<!-- Write the version of the grid you are currently using. -->
1415

1516
## Development Environment
17+
1618
<!-- Write the browser type, OS and so on -->
1719

1820
## Current Behavior
21+
1922
<!-- Write a description of the current operation. You can add example code, 'CodePen' or 'jsfiddle' links. -->
2023

2124
```js
2225
// Write example code
2326
```
2427

2528
## Expected Behavior
29+
2630
<!-- Write a description of the future action. -->

0 commit comments

Comments
 (0)