Lines Matching refs:e

1680     return function (e) {  argument
1681 handler.call(getElement(uid), e || fabric.window.event);
1686 return function (e) { argument
1690 handlersForEvent[i].call(this, e || fabric.window.event);
2207 scriptEl.onload = /** @ignore */ scriptEl.onreadystatechange = function(e) {
2215 callback(e || fabric.window.event);
7209 catch (e) { }
8154 _resetCurrentTransform: function(e) { argument
8164 if (this._shouldCenterTransform(e, t.target)) {
8202 containsPoint: function (e, target) { argument
8203 var pointer = this.getPointer(e, true),
8264 _shouldClearSelection: function (e, target) { argument
8275 !e.shiftKey)
8291 _shouldCenterTransform: function (e, target) { argument
8306 return centerTransform ? !e.altKey : e.altKey;
8357 _setupCurrentTransform: function (e, target) { argument
8362 var pointer = this.getPointer(e),
8363 corner = target._findTargetCorner(this.getPointer(e, true)),
8395 this._resetCurrentTransform(e);
8675 _isLastRenderedObject: function(e) { argument
8680 this.containsPoint(e, this.lastRenderedObjectWithControlsAboveOverlay) &&
8681 … this.lastRenderedObjectWithControlsAboveOverlay._findTargetCorner(this.getPointer(e, true)));
8689 findTarget: function (e, skipGroup) { argument
8694 if (this._isLastRenderedObject(e)) {
8700 if (activeGroup && !skipGroup && this.containsPoint(e, activeGroup)) {
8704 var target = this._searchPossibleTargets(e);
8735 _checkTarget: function(e, obj, pointer) { argument
8739 this.containsPoint(e, obj)){
8755 _searchPossibleTargets: function(e) { argument
8759 pointer = this.getPointer(e, true),
8763 if (!this._objects[i].group && this._checkTarget(e, this._objects[i], pointer)){
8778 getPointer: function (e, ignoreZoom, upperCanvasEl) { argument
8782 var pointer = getPointer(e, upperCanvasEl),
8932 setActiveObject: function (object, e) { argument
8935 this.fire('object:selected', { target: object, e: e });
8936 object.fire('selected', { e: e });
8963 discardActiveObject: function (e) { argument
8966 this.fire('selection:cleared', { e: e });
8987 setActiveGroup: function (group, e) { argument
8990 this.fire('object:selected', { target: group, e: e });
8991 group.fire('selected', { e: e });
9019 discardActiveGroup: function (e) { argument
9021 this.fire('selection:cleared', { e: e });
9045 deactivateAllWithDispatch: function (e) { argument
9048 this.fire('before:selection:cleared', { target: activeObject, e: e });
9052 this.fire('selection:cleared', { e: e });
9218 _onGesture: function(e, self) { argument
9219 this.__onTransformGesture && this.__onTransformGesture(e, self);
9227 _onDrag: function(e, self) { argument
9228 this.__onDrag && this.__onDrag(e, self);
9236 _onMouseWheel: function(e, self) { argument
9237 this.__onMouseWheel && this.__onMouseWheel(e, self);
9245 _onOrientationChange: function(e, self) { argument
9246 this.__onOrientationChange && this.__onOrientationChange(e, self);
9254 _onShake: function(e, self) { argument
9255 this.__onShake && this.__onShake(e, self);
9262 _onLongPress: function(e, self) { argument
9263 this.__onLongPress && this.__onLongPress(e, self);
9270 _onMouseDown: function (e) { argument
9271 this.__onMouseDown(e);
9279 if (e.type === 'touchstart') {
9293 _onMouseUp: function (e) { argument
9294 this.__onMouseUp(e);
9305 if (e.type === 'touchend') {
9319 _onMouseMove: function (e) { argument
9320 !this.allowTouchScrolling && e.preventDefault && e.preventDefault();
9321 this.__onMouseMove(e);
9364 __onMouseUp: function (e) { argument
9368 this._onMouseUpInDrawingMode(e);
9377 target = this.findTarget(e, true);
9380 var shouldRender = this._shouldRender(target, this.getPointer(e));
9382 this._maybeGroupObjects(e);
9390 this._handleCursorAndEvent(e, target);
9393 _handleCursorAndEvent: function(e, target) { argument
9394 this._setCursorFromEvent(e, target);
9399 _this._setCursorFromEvent(e, target);
9402 this.fire('mouse:up', { target: target, e: e });
9403 target && target.fire('mouseup', { e: e });
9456 _onMouseDownInDrawingMode: function(e) { argument
9458 this.discardActiveObject(e).renderAll();
9463 pointer = fabric.util.transformPoint(this.getPointer(e, true), ivt);
9465 this.fire('mouse:down', { e: e });
9467 var target = this.findTarget(e);
9469 target.fire('mousedown', { e: e, target: target });
9477 _onMouseMoveInDrawingMode: function(e) { argument
9480 pointer = fabric.util.transformPoint(this.getPointer(e, true), ivt);
9484 this.fire('mouse:move', { e: e });
9486 var target = this.findTarget(e);
9488 target.fire('mousemove', { e: e, target: target });
9496 _onMouseUpInDrawingMode: function(e) { argument
9502 this.fire('mouse:up', { e: e });
9504 var target = this.findTarget(e);
9506 target.fire('mouseup', { e: e, target: target });
9518 __onMouseDown: function (e) { argument
9521 var isLeftClick = 'which' in e ? e.which === 1 : e.button === 1;
9527 this._onMouseDownInDrawingMode(e);
9536 var target = this.findTarget(e),
9537 pointer = this.getPointer(e, true);
9543 shouldGroup = this._shouldGroup(e, target);
9545 if (this._shouldClearSelection(e, target)) {
9546 this._clearSelection(e, target, pointer);
9549 this._handleGrouping(e, target);
9554 this._beforeTransform(e, target);
9555 this._setupCurrentTransform(e, target);
9560 this.fire('mouse:down', { target: target, e: e });
9561 target && target.fire('mousedown', { e: e });
9567 _beforeTransform: function(e, target) { argument
9571 if (target._findTargetCorner(this.getPointer(e))) {
9577 this.setActiveObject(target, e);
9584 _clearSelection: function(e, target, pointer) { argument
9585 this.deactivateAllWithDispatch(e);
9588 this.setActiveObject(target, e);
9649 __onMouseMove: function (e) { argument
9654 this._onMouseMoveInDrawingMode(e);
9657 if (typeof e.touches !== 'undefined' && e.touches.length > 1) {
9665 pointer = this.getPointer(e, true);
9674 target = this.findTarget(e);
9680 this._setCursorFromEvent(e, target);
9684 this._transformObject(e);
9687 this.fire('mouse:move', { target: target, e: e });
9688 target && target.fire('mousemove', { e: e });
9695 _transformObject: function(e) { argument
9696 var pointer = this.getPointer(e),
9702 this._beforeScaleTransform(e, transform);
9703 this._performTransformAction(e, transform, pointer);
9711 _performTransformAction: function(e, transform, pointer) { argument
9719 this._fire('rotating', target, e);
9722 this._onScale(e, transform, x, y);
9723 this._fire('scaling', target, e);
9727 this._fire('scaling', target, e);
9731 this._fire('scaling', target, e);
9735 this._fire('moving', target, e);
9743 _fire: function(eventName, target, e) { argument
9744 this.fire('object:' + eventName, { target: target, e: e });
9745 target.fire(eventName, { e: e });
9751 _beforeScaleTransform: function(e, transform) { argument
9753 var centerTransform = this._shouldCenterTransform(e, transform.target);
9760 this._resetCurrentTransform(e);
9769 _onScale: function(e, transform, x, y) { argument
9772 if ((e.shiftKey || this.uniScaleTransform) && !transform.target.get('lockUniScaling')) {
9779 this._resetCurrentTransform(e, transform.target);
9793 _setCursorFromEvent: function (e, target) { argument
9803 && target._findTargetCorner(this.getPointer(e, true));
9863 _shouldGroup: function(e, target) { argument
9865 return e.shiftKey &&
9875 _handleGrouping: function (e, target) { argument
9880 target = this.findTarget(e, true);
9888 this._updateActiveGroup(target, e);
9891 this._createActiveGroup(target, e);
9902 _updateActiveGroup: function(target, e) { argument
9913 this.discardActiveGroup(e);
9923 this.fire('selection:created', { target: activeGroup, e: e });
9930 _createActiveGroup: function(target, e) { argument
9940 this.fire('selection:created', { target: group, e: e });
9967 _groupSelectedObjects: function (e) { argument
9973 this.setActiveObject(group[0], e);
9980 this.setActiveGroup(group, e);
10029 _maybeGroupObjects: function(e) { argument
10031 this._groupSelectedObjects(e);
11952 getLocalPointer: function(e, pointer) { argument
11953 pointer = pointer || this.canvas.getPointer(e);
21891 var newSelectionStart = _this.getSelectionStartFromPointer(options.e);
22269 var newPointer = this.canvas.getPointer(options.e);
22273 this._stopEvent(options.e);
22277 this._stopEvent(options.e);
22303 _stopEvent: function(e) { argument
22304 e.preventDefault && e.preventDefault();
22305 e.stopPropagation && e.stopPropagation();
22323 this.selectWord(this.getSelectionStartFromPointer(options.e));
22326 this.selectLine(this.getSelectionStartFromPointer(options.e));
22336 var pointer = this.canvas.getPointer(options.e);
22347 this.setCursorByClick(options.e);
22360 _isObjectMoved: function(e) { argument
22361 var pointer = this.canvas.getPointer(e);
22373 if (this._isObjectMoved(options.e)) {
22389 setCursorByClick: function(e) { argument
22390 var newSelectionStart = this.getSelectionStartFromPointer(e);
22392 if (e.shiftKey) {
22412 _getLocalRotatedPointer: function(e) { argument
22413 var pointer = this.canvas.getPointer(e),
22421 return this.getLocalPointer(e, rotated);
22429 getSelectionStartFromPointer: function(e) { argument
22430 var mouseOffset = this._getLocalRotatedPointer(e),
22565 onKeyDown: function(e) { argument
22569 if (e.keyCode in this._keysMap) {
22570 this[this._keysMap[e.keyCode]](e);
22572 else if ((e.keyCode in this._ctrlKeysMap) && (e.ctrlKey || e.metaKey)) {
22573 this[this._ctrlKeysMap[e.keyCode]](e);
22578 e.stopImmediatePropagation();
22579 e.preventDefault();
22586 forwardDelete: function(e) { argument
22588 this.moveCursorRight(e);
22590 this.removeChars(e);
22597 copy: function(e) { argument
22599 clipboardData = this._getClipboardData(e);
22616 paste: function(e) { argument
22618 clipboardData = this._getClipboardData(e);
22637 cut: function(e) { argument
22643 this.removeChars(e);
22651 _getClipboardData: function(e) { argument
22652 return e && (e.clipboardData || fabric.window.clipboardData);
22659 onKeyPress: function(e) { argument
22660 if (!this.isEditing || e.metaKey || e.ctrlKey) {
22663 if (e.which !== 0) {
22664 this.insertChars(String.fromCharCode(e.which));
22666 e.stopPropagation();
22675 getDownCursorOffset: function(e, isRight) { argument
22688 if (cursorLocation.lineIndex === this._textLines.length - 1 || e.metaKey || e.keyCode === 34) {
22756 moveCursorDown: function(e) { argument
22760 var offset = this.getDownCursorOffset(e, this._selectionDirection === 'right');
22762 if (e.shiftKey) {
22819 getUpCursorOffset: function(e, isRight) { argument
22823 if (cursorLocation.lineIndex === 0 || e.metaKey || e.keyCode === 33) {
22893 moveCursorUp: function(e) { argument
22898 var offset = this.getUpCursorOffset(e, this._selectionDirection === 'right');
22899 if (e.shiftKey) {
22946 moveCursorLeft: function(e) { argument
22954 if (e.shiftKey) {
22955 this.moveCursorLeftWithShift(e);
22958 this.moveCursorLeftWithoutShift(e);
22967 _move: function(e, prop, direction) { argument
22969 if (e.altKey) {
22972 else if (e.metaKey || e.keyCode === 35 || e.keyCode === 36 ) {
22983 _moveLeft: function(e, prop) { argument
22984 this._move(e, prop, 'Left');
22990 _moveRight: function(e, prop) { argument
22991 this._move(e, prop, 'Right');
22998 moveCursorLeftWithoutShift: function(e) { argument
23004 this._moveLeft(e, 'selectionStart');
23013 moveCursorLeftWithShift: function(e) { argument
23015 this._moveLeft(e, 'selectionEnd');
23019 this._moveLeft(e, 'selectionStart');
23032 moveCursorRight: function(e) { argument
23040 if (e.shiftKey) {
23041 this.moveCursorRightWithShift(e);
23044 this.moveCursorRightWithoutShift(e);
23054 moveCursorRightWithShift: function(e) { argument
23056 this._moveRight(e, 'selectionStart');
23060 this._moveRight(e, 'selectionEnd');
23073 moveCursorRightWithoutShift: function(e) { argument
23077 this._moveRight(e, 'selectionStart');
23090 removeChars: function(e) { argument
23092 this._removeCharsNearCursor(e);
23114 _removeCharsNearCursor: function(e) { argument
23117 if (e.metaKey) {
23124 else if (e.altKey) {