Skip to content

Commit 25c08a7

Browse files
committed
chore: update version to v3.14.2
1 parent 6efea5c commit 25c08a7

File tree

7 files changed

+59
-14
lines changed

7 files changed

+59
-14
lines changed

apps/image-editor/dist/tui-image-editor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/image-editor/dist/tui-image-editor.js

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* tui-image-editor.js
3-
* @version 3.14.1
3+
* @version 3.14.2
44
* @author NHN. FE Development Lab <[email protected]>
55
* @license MIT
66
*/
@@ -9338,18 +9338,38 @@ var Zoom = function (_Component) {
93389338
_this.graphics.on(ADD_TEXT, _this._startTextEditingHandler.bind(_this));
93399339
_this.graphics.on(TEXT_EDITING, _this._startTextEditingHandler.bind(_this));
93409340
_this.graphics.on(OBJECT_MODIFIED, _this._stopTextEditingHandler.bind(_this));
9341-
_fabric2.default.util.addListener(document, KEY_DOWN, _this._listeners.keydown);
9342-
_fabric2.default.util.addListener(document, KEY_UP, _this._listeners.keyup);
93439341
return _this;
93449342
}
93459343

93469344
/**
9347-
* Handler when you started editing text
9348-
* @private
9345+
* Attach zoom keyboard events
93499346
*/
93509347

93519348

93529349
_createClass(Zoom, [{
9350+
key: 'attachKeyboardZoomEvents',
9351+
value: function attachKeyboardZoomEvents() {
9352+
_fabric2.default.util.addListener(document, KEY_DOWN, this._listeners.keydown);
9353+
_fabric2.default.util.addListener(document, KEY_UP, this._listeners.keyup);
9354+
}
9355+
9356+
/**
9357+
* Detach zoom keyboard events
9358+
*/
9359+
9360+
}, {
9361+
key: 'detachKeyboardZoomEvents',
9362+
value: function detachKeyboardZoomEvents() {
9363+
_fabric2.default.util.removeListener(document, KEY_DOWN, this._listeners.keydown);
9364+
_fabric2.default.util.removeListener(document, KEY_UP, this._listeners.keyup);
9365+
}
9366+
9367+
/**
9368+
* Handler when you started editing text
9369+
* @private
9370+
*/
9371+
9372+
}, {
93539373
key: '_startTextEditingHandler',
93549374
value: function _startTextEditingHandler() {
93559375
this.isTextEditing = true;
@@ -9380,7 +9400,6 @@ var Zoom = function (_Component) {
93809400
}
93819401

93829402
if (e.keyCode === _consts.keyCodes.SPACE) {
9383-
e.preventDefault();
93849403
this.withSpace = true;
93859404
this.startHandMode();
93869405
}
@@ -9396,7 +9415,6 @@ var Zoom = function (_Component) {
93969415
key: '_endHandModeWithSpaceBar',
93979416
value: function _endHandModeWithSpaceBar(e) {
93989417
if (e.keyCode === _consts.keyCodes.SPACE) {
9399-
e.preventDefault();
94009418
this.withSpace = false;
94019419
this.endHandMode();
94029420
}
@@ -12638,6 +12656,7 @@ var Graphics = function () {
1263812656
this._createDrawingModeInstances();
1263912657
this._createComponents();
1264012658
this._attachCanvasEvents();
12659+
this._attachZoomEvents();
1264112660
}
1264212661

1264312662
/**
@@ -12654,6 +12673,32 @@ var Graphics = function () {
1265412673
this._canvas.clear();
1265512674

1265612675
wrapperEl.parentNode.removeChild(wrapperEl);
12676+
12677+
this._detachZoomEvents();
12678+
}
12679+
12680+
/**
12681+
* Attach zoom events
12682+
*/
12683+
12684+
}, {
12685+
key: '_attachZoomEvents',
12686+
value: function _attachZoomEvents() {
12687+
var zoom = this.getComponent(_consts.componentNames.ZOOM);
12688+
12689+
zoom.attachKeyboardZoomEvents();
12690+
}
12691+
12692+
/**
12693+
* Detach zoom events
12694+
*/
12695+
12696+
}, {
12697+
key: '_detachZoomEvents',
12698+
value: function _detachZoomEvents() {
12699+
var zoom = this.getComponent(_consts.componentNames.ZOOM);
12700+
12701+
zoom.detachKeyboardZoomEvents();
1265712702
}
1265812703

1265912704
/**

apps/image-editor/dist/tui-image-editor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/image-editor/dist/tui-image-editor.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/image-editor/dist/tui-image-editor.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/image-editor/dist/tui-image-editor.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/image-editor/dist/tui-image-editor.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)