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

feat: Update fabric.js version to v2.7.0 #201

Merged
merged 31 commits into from
May 3, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ef26bd5
interim
junghwan-park Feb 14, 2019
9efbdc1
interim
junghwan-park Mar 8, 2019
38d470c
interim: named import
junghwan-park Mar 15, 2019
1cd15ab
fix: Deleting i-text by backspace or delete key pressed when text edi…
junghwan-park Mar 19, 2019
d254176
fix: Resolve rotation breaking change
junghwan-park Mar 19, 2019
91ac120
interim: Normalize filters except RemoveWhite, ColorFilter, GradientT…
junghwan-park Mar 19, 2019
a49223b
interim: cropzone
junghwan-park Mar 19, 2019
4bc5253
fix: Set color method of Icon
junghwan-park Apr 16, 2019
a0a5972
fix: Mask filter
junghwan-park Apr 18, 2019
efc6fd6
fix: Change group type verification to 'activeSelection'
junghwan-park Apr 18, 2019
9a1320d
fix: Cropzone rendering
junghwan-park Apr 23, 2019
39f7c00
fix: Disable objectCaching
junghwan-park Apr 24, 2019
27322f9
fix: Resolve rotation range bar malfunction
junghwan-park Apr 24, 2019
9e3291e
fix: Resolve cropzone scaling issue
junghwan-park Apr 24, 2019
e49004c
fix: Modify getCropzoneRect() cropzone api
junghwan-park Apr 24, 2019
e9e0389
fix: Resolve T/C Errors
junghwan-park May 2, 2019
74b920b
fix: fabric.js external aid
junghwan-park May 2, 2019
26ecd38
interim: Remaining range bar rotation undo/redo feature
junghwan-park May 2, 2019
65b2dc5
feat: Synchronize range bar and value with current image rotation info
junghwan-park May 2, 2019
a8299fd
fix: fabric.js external aid
junghwan-park May 2, 2019
0f7dcb5
fix: Return _rotate() promise
junghwan-park May 2, 2019
c4b2d2d
fix: Check text double clicked for edit text
junghwan-park May 2, 2019
ab0abf7
fix: Resolve Basic example's bugs
junghwan-park May 2, 2019
3c2e58c
fix: Resolve T/C error
junghwan-park May 2, 2019
9a71acf
chore: Modify JSDoc
junghwan-park May 2, 2019
6e61cb7
fix: Return what it got
junghwan-park May 2, 2019
91a4361
chore: Update JSDoc
junghwan-park May 2, 2019
211edc0
chore: Revert codes
junghwan-park May 3, 2019
3da8d1e
fix: Remove Gradient Transparency
junghwan-park May 3, 2019
ce3d68d
chore: Change karma environment
junghwan-park May 3, 2019
633fe18
fix: Rotate button error
junghwan-park May 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fabric.js external aid
  • Loading branch information
junghwan-park committed May 2, 2019
commit 74b920b90ef54a5ac6b97a9c0767615aacbef43f
2 changes: 1 addition & 1 deletion examples/example01-includeUi.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<body>

<div id="tui-image-editor-container"></div>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/2.7.0/fabric.js"></script>
<script type="text/javascript" src="https://uicdn.toast.com/tui.code-snippet/v1.5.0/tui-code-snippet.min.js"></script>
<script type="text/javascript" src="https://uicdn.toast.com/tui-color-picker/v2.2.0/tui-color-picker.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.3/FileSaver.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/cropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @fileoverview Image crop module (start cropping, end cropping)
*/
import snippet from 'tui-code-snippet';
import {fabric} from 'fabric';
import fabric from 'fabric';
import Component from '../interface/component';
import Cropzone from '../extension/cropzone';
import {keyCodes, componentNames} from '../consts';
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import {isUndefined, extend, forEach, filter} from 'tui-code-snippet';
import Promise from 'core-js/library/es6/promise';
import {fabric} from 'fabric';
import fabric from 'fabric';
import Component from '../interface/component';
import Mask from '../extension/mask';
import consts from '../consts';
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/freeDrawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Free drawing module, Set brush
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import Component from '../interface/component';
import consts from '../consts';

Expand Down
2 changes: 1 addition & 1 deletion src/js/component/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Add icon module
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import snippet from 'tui-code-snippet';
import Promise from 'core-js/library/es6/promise';
import Component from '../interface/component';
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Free drawing module, Set brush
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import Component from '../interface/component';
import consts from '../consts';

Expand Down
2 changes: 1 addition & 1 deletion src/js/component/rotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Image rotation module
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import Promise from 'core-js/library/es6/promise';
import Component from '../interface/component';
import consts from '../consts';
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Shape component
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import Promise from 'core-js/library/es6/promise';
import Component from '../interface/component';
import consts from '../consts';
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Text module
*/
import {fabric} from 'fabric';
import fabric from 'fabric';
import snippet from 'tui-code-snippet';
import Promise from 'core-js/library/es6/promise';
import Component from '../interface/component';
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Blur extending fabric.Image.filters.Convolute
*/
import {fabric} from 'fabric';
import fabric from 'fabric';

/**
* Blur object
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/colorFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview ColorFilter extending fabric.Image.filters.BaseFilter
*/
import {fabric} from 'fabric';
import fabric from 'fabric';

/**
* ColorFilter object
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/cropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @fileoverview Cropzone extending fabric.Rect
*/
import snippet from 'tui-code-snippet';
import {fabric} from 'fabric';
import fabric from 'fabric';
import {clamp} from '../util';

const CORNER_TYPE_TOP_LEFT = 'tl';
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/emboss.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Emboss extending fabric.Image.filters.Convolute
*/
import {fabric} from 'fabric';
import fabric from 'fabric';

/**
* Emboss object
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Mask extending fabric.Image.filters.Mask
*/
import {fabric} from 'fabric';
import fabric from 'fabric';

/**
* Mask object
Expand Down
2 changes: 1 addition & 1 deletion src/js/extension/sharpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @author NHN Ent. FE Development Team <[email protected]>
* @fileoverview Sharpen extending fabric.Image.filters.Convolute
*/
import {fabric} from 'fabric';
import fabric from 'fabric';

/**
* Sharpen object
Expand Down
2 changes: 1 addition & 1 deletion src/js/graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import snippet from 'tui-code-snippet';
import Promise from 'core-js/library/es6/promise';
import {fabric} from 'fabric';
import fabric from 'fabric';
import ImageLoader from './component/imageLoader';
import Cropper from './component/cropper';
import Flip from './component/flip';
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
filename: `${FILENAME}.js`
},
externals: {
'fabric': 'fabric',
'tui-code-snippet': {
'commonjs': 'tui-code-snippet',
'commonjs2': 'tui-code-snippet',
Expand Down