drag-drop-stage-component
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "drag-drop-stage-component", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A component to \"drag'n drop\"-enable your projects, maintained and simple, light on dependencies", | ||
@@ -5,0 +5,0 @@ "main": "src/ts/index.ts", |
@@ -42,5 +42,38 @@ define(["require", "exports", "./MouseHandlerBase", "../flux/SelectableState", "../utils/DomMetrics", "../flux/UiState"], function (require, exports, MouseHandlerBase_1, selectableState, domMetrics, UiState_1) { | ||
this.positionMarker.parentNode.removeChild(this.positionMarker); | ||
// apply constraints | ||
const { movementX, movementY } = (() => { | ||
if (this.initialMouse && mouseData.shiftKey && this.selection.length > 0) { | ||
const translation = this.selection[0].translation; | ||
const { x, y } = { | ||
x: mouseData.mouseX - this.initialMouse.x, | ||
y: mouseData.mouseY - this.initialMouse.y, | ||
}; | ||
const angle = Math.atan2(y, x); | ||
const sign = Math.sin(angle) * Math.cos(angle) > 0 ? 1 : -1; | ||
if (Math.abs(Math.sin(angle)) < Math.abs(Math.cos(angle))) { | ||
// stick to x axis | ||
return { | ||
movementX: -translation.x + (mouseData.mouseX - this.initialMouse.x) + mouseData.movementX, | ||
movementY: -translation.y, | ||
}; | ||
} | ||
else { | ||
// stick to y axis | ||
return { | ||
movementX: -translation.x, | ||
movementY: -translation.y + (mouseData.mouseY - this.initialMouse.y) + mouseData.movementY, | ||
}; | ||
} | ||
} | ||
return mouseData; | ||
})(); | ||
if (!this.initialMouse) { | ||
this.initialMouse = { | ||
x: mouseData.mouseX, | ||
y: mouseData.mouseY, | ||
}; | ||
} | ||
// update elements postition | ||
this.selection = this.selection | ||
.map(selectable => this.move(selectable, false, mouseData.movementX, mouseData.movementY)); | ||
.map(selectable => this.move(selectable, false, movementX, movementY)); | ||
// update the destination of each element | ||
@@ -67,3 +100,3 @@ this.selection = this.selection | ||
.filter(s => domMetrics.hasASelectedDraggableParent(this.store, s.el)) | ||
.map(selectable => this.move(selectable, true, mouseData.movementX, mouseData.movementY)); | ||
.map(selectable => this.move(selectable, true, movementX, movementY)); | ||
// update store | ||
@@ -87,2 +120,3 @@ this.store.dispatch(selectableState.updateSelectables(this.selection.concat(children))); | ||
super.release(); | ||
this.initialMouse = null; | ||
this.selection = this.selection.map((selectable) => { | ||
@@ -290,2 +324,2 @@ // move to a different container | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW92ZUhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHMvaGFuZGxlcnMvTW92ZUhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBT0EsTUFBYSxXQUFZLFNBQVEsbUNBQWdCO1FBRy9DLFlBQVksYUFBMkIsRUFBRSxlQUE2QixFQUFFLEtBQWlCLEVBQUUsS0FBWTtZQUNyRyxLQUFLLENBQUMsYUFBYSxFQUFFLGVBQWUsRUFBRSxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7WUFFcEQsK0JBQStCO1lBQy9CLHlEQUF5RDtZQUN6RCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTO2lCQUM5QixNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDO2lCQUN4QixNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLFVBQVUsQ0FBQywyQkFBMkIsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7WUFFbkUsaUJBQWlCO1lBQ2pCLElBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsV0FBVztnQkFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7WUFFcEUsd0R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FDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzFGLENBQUM7S0FDRjtJQS9ZRCxrQ0ErWUMifQ== |
@@ -39,5 +39,5 @@ define(["require", "exports", "./Types", "./utils/Polyfill", "./utils/DomMetrics", "./Keyboard", "./Mouse", "./flux/SelectionState", "./flux/UiState", "./observers/SelectablesObserver", "./observers/MouseObserver", "./observers/UiObserver", "./flux/StageStore", "./flux/SelectableState", "./utils/Events", "./flux/MouseState", "./Ui"], function (require, exports, types, Polyfill, DomMetrics, Keyboard_1, Mouse_1, selectionState, UiAction, SelectablesObserver_1, MouseObserver_1, UiObserver_1, StageStore_1, SelectableState_1, Events_1, MouseState_1, Ui_1) { | ||
// controllers | ||
const mouse = new Mouse_1.Mouse(this.contentWindow, this.ui.overlay.contentWindow, this.store, this.hooks); | ||
this.mouse = new Mouse_1.Mouse(this.contentWindow, this.ui.overlay.contentWindow, this.store, this.hooks); | ||
const keyboard = new Keyboard_1.Keyboard(this.ui.overlay.contentWindow, this.store, this.hooks); | ||
this.unsubscribeAll.push(() => selectablesObserver.cleanup(), () => uiObserver.cleanup(), () => mouseObserver.cleanup(), () => mouse.cleanup(), () => keyboard.cleanup(), | ||
this.unsubscribeAll.push(() => selectablesObserver.cleanup(), () => uiObserver.cleanup(), () => mouseObserver.cleanup(), () => this.mouse.cleanup(), () => keyboard.cleanup(), | ||
// window resize | ||
@@ -85,2 +85,14 @@ Events_1.addEvent(window, 'resize', (e) => this.redraw())); | ||
} | ||
/** | ||
* safe subscribe to mouse event | ||
* handle the multiple iframes and the current window | ||
* @return function to call to unsubscribe | ||
*/ | ||
subscribeMouseEvent(type, cbk) { | ||
return this.mouse.subscribeMouseEvent(type, cbk); | ||
} | ||
hideScrolls(hide) { | ||
this.iframe.contentDocument.body.style.overflow = hide ? 'hidden' : ''; | ||
this.ui.overlay.contentDocument.body.style.overflow = hide ? 'hidden' : ''; | ||
} | ||
/////////////////////////////////////////////////// | ||
@@ -234,2 +246,2 @@ // Elements and metrics | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBZ0JBOzs7O09BSUc7SUFDSCxNQUFhLEtBQUs7UUFTaEI7Ozs7O1dBS0c7UUFDSCxZQUFZLE1BQXlCLEVBQUUsUUFBZ0MsRUFBRSxVQUFxQixFQUFFO1lBVnRGLG1CQUFjLEdBQXNCLEVBQUUsQ0FBQztZQVcvQyx3QkFBd0I7WUFDeEIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEtBQUssQ0FBQztZQUV4QixtQkFBbUI7WUFDbkIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7WUFDckIsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLGFBQWEsQ0FBQztZQUMvQyxJQUFJLENBQUMsZUFBZSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsZUFBZSxDQUFDO1lBQ25ELElBQUksQ0FBQyxLQUFLLHFCQUNMLE9BQU8sSUFDVixZQUFZLEVBQUUsT0FBTyxDQUFDLFlBQVksSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsWUFBWSxDQUFDLENBQUMsRUFDakYsV0FBVyxFQUFFLE9BQU8sQ0FBQyxXQUFXLElBQUksQ0FBQ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FPLElBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQztRQUNoRCxDQUFDO0tBQ0Y7SUFoVEQsc0JBZ1RDIn0= |
@@ -1,4 +0,7 @@ | ||
define(["require", "exports", "./utils/Events", "./flux/UiState", "./flux/SelectionState", "./Types"], function (require, exports, Events_1, UiState_1, SelectionState_1, Types_1) { | ||
define(["require", "exports", "./utils/Events", "./flux/UiState", "./flux/SelectionState", "./Types", "./flux/SelectableState"], function (require, exports, Events_1, UiState_1, SelectionState_1, Types_1, SelectableState_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const MOVE_DISTANCE = 5; | ||
const SHIFT_MOVE_DISTANCE = 1; | ||
const ALT_MOVE_DISTANCE = 10; | ||
class Keyboard { | ||
@@ -46,2 +49,14 @@ constructor(win, store, hooks) { | ||
break; | ||
case 'ArrowLeft': | ||
this.move(-this.getDistance(e), 0); | ||
break; | ||
case 'ArrowUp': | ||
this.move(0, -this.getDistance(e)); | ||
break; | ||
case 'ArrowRight': | ||
this.move(this.getDistance(e), 0); | ||
break; | ||
case 'ArrowDown': | ||
this.move(0, this.getDistance(e)); | ||
break; | ||
default: | ||
@@ -55,5 +70,14 @@ return; | ||
} | ||
getDistance(e) { | ||
return e.shiftKey ? SHIFT_MOVE_DISTANCE : | ||
e.altKey ? ALT_MOVE_DISTANCE : MOVE_DISTANCE; | ||
} | ||
move(movementX, movementY) { | ||
this.store.dispatch(SelectableState_1.updateSelectables(this.store.getState().selectables | ||
.filter(s => s.selected) | ||
.map(selectable => (Object.assign({}, selectable, { metrics: Object.assign({}, selectable.metrics, { clientRect: Object.assign({}, selectable.metrics.clientRect, { top: selectable.metrics.clientRect.top + movementY, left: selectable.metrics.clientRect.left + movementX, bottom: selectable.metrics.clientRect.bottom + movementY, right: selectable.metrics.clientRect.right + movementX }), computedStyleRect: Object.assign({}, selectable.metrics.computedStyleRect, { top: selectable.metrics.computedStyleRect.top + movementY, left: selectable.metrics.computedStyleRect.left + movementX, bottom: selectable.metrics.computedStyleRect.bottom + movementY, right: selectable.metrics.computedStyleRect.right + movementX }) }) }))))); | ||
} | ||
} | ||
exports.Keyboard = Keyboard; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiS2V5Ym9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvS2V5Ym9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBTUEsTUFBYSxRQUFRO1FBQ25CLFlBQW9CLEdBQVcsRUFBVSxLQUFpQixFQUFVLEtBQVk7WUFBNUQsUUFBRyxHQUFILEdBQUcsQ0FBUTtZQUFVLFVBQUssR0FBTCxLQUFLLENBQVk7WUFBVSxVQUFLLEdBQUwsS0FBSyxDQUFPO1lBUXhFLG1CQUFjLEdBQXNCLEVBQUUsQ0FBQztZQVA3QyxnQ0FBZ0M7WUFDaEMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQ3RCLGlCQUFRLENBQUMsTUFBTSxFQUFFLFNBQVMsRUFBRSxDQUFDLENBQWdCLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFDcEUsaUJBQVEsQ0FBQyxHQUFHLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBZ0IsRUFBRSxFQUFFLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUNsRSxDQUFDO1FBQ0osQ0FBQztRQUdELE9BQU87WUFDTCxJQUFJLENBQUMsY0FBYyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDeEMsQ0FBQztRQUVEOztXQUVHO1FBQ0ssU0FBUyxDQUFDLENBQ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yxHQUFHLFNBQVMsRUFDbEQsSUFBSSxFQUFFLFVBQVUsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDLElBQUksR0FBRyxTQUFTLEVBQ3BELE1BQU0sRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxNQUFNLEdBQUcsU0FBUyxFQUN4RCxLQUFLLEVBQUUsVUFBVSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsS0FBSyxHQUFHLFNBQVMsS0FFeEQsaUJBQWlCLG9CQUNaLFVBQVUsQ0FBQyxPQUFPLENBQUMsaUJBQWlCLElBQ3ZDLEdBQUcsRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLEdBQUcsR0FBRyxTQUFTLEVBQ3pELElBQUksRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLElBQUksR0FBRyxTQUFTLEVBQzNELE1BQU0sRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLE1BQU0sR0FBRyxTQUFTLEVBQy9ELEtBQUssRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLEtBQUssR0FBRyxTQUFTLFVBR2pFLENBQUMsQ0FDSixDQUFDLENBQUM7UUFDTCxDQUFDO0tBQ0Y7SUE5RkQsNEJBOEZDIn0= |
@@ -30,2 +30,14 @@ define(["require", "exports", "./Types", "./utils/DomMetrics", "./flux/MouseState", "./flux/SelectionState", "./flux/UiState", "./utils/Events"], function (require, exports, types, DomMetrics, MouseState, SelectionAction, UiState, Events_1) { | ||
} | ||
/** | ||
* safe subscribe to mouse event | ||
* handle the multiple iframes and the current window | ||
* @return function to call to unsubscribe | ||
*/ | ||
subscribeMouseEvent(type, cbk) { | ||
const unsubscribeArray = [ | ||
Events_1.addEvent(this.winOverlay.document.body, type, (e) => cbk(e), true), | ||
Events_1.addEvent(document.body, type, (e) => cbk(e), true), | ||
]; | ||
return () => unsubscribeArray.forEach(u => u()); | ||
} | ||
////////////////////////////// | ||
@@ -39,2 +51,8 @@ scroll(e) { | ||
return; | ||
try { | ||
// in firefox, this is needed to keep recieving events while dragging outside the iframe | ||
// in chrome this will throw an error | ||
e.target['setCapture'](); | ||
} | ||
catch (e) { } | ||
e.preventDefault(); // prevent default text selection | ||
@@ -219,2 +237,2 @@ const mouseData = this.eventToMouseData(e); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW91c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvTW91c2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBUUEsSUFBWSxTQU9YO0lBUEQsV0FBWSxTQUFTO1FBQ25CLHFDQUFFLENBQUE7UUFDRix5Q0FBSSxDQUFBO1FBQ0osaURBQVEsQ0FBQTtRQUNSLDZFQUFzQixDQUFBO1FBQ3RCLCtFQUF1QixDQUFBO1FBQ3ZCLHlFQUFvQixDQUFBO0lBQ3RCLENBQUMsRUFQVyxTQUFTLEdBQVQsaUJBQVMsS0FBVCxpQkFBUyxRQU9wQjtJQUVELE1BQWEsS0FBSztRQUdoQixZQUFvQixRQUFnQixFQUFVLFVBQWtCLEVBQVUsS0FBaUIsRUFBVSxLQUFrQjtZQUFuRyxhQUFRLEdBQVIsUUFBUSxDQUFRO1lBQVUsZUFBVSxHQUFWLFVBQVUsQ0FBUTtZQUFVLFVBQUssR0FBTCxLQUFLLENBQVk7WUFBVSxVQUFLLEdBQUwsS0FBSyxDQUFhO1lBRnZILGNBQVMsR0FBRyxTQUFTLENBQUMsRUFBRSxDQUFDLENBQUMsd0JBQXdCO1lBQzFDLHFCQUFnQixHQUFZLEtBQUssQ0FBQztZQWNsQyxtQkFBYyxHQUFzQixFQUFFLENBQUM7WUFaN0MsZ0NBQWdDO1lBQ2hDLElBQUksQ0FBQyxjQUFjLENBQUMsSUF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QUksQ0FBQyxDQUFDLENBQUM7YUFDekQ7UUFDSCxDQUFDO1FBRUQsTUFBTSxDQUFDLFNBQTBCO1lBQy9CLElBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQzFELENBQUM7S0FDRjtJQTNPRCxzQkEyT0MifQ== |
@@ -10,2 +10,3 @@ import {MouseHandlerBase} from './MouseHandlerBase'; | ||
private positionMarker: HTMLElement; | ||
private initialMouse: {x:number, y:number}; | ||
@@ -60,5 +61,38 @@ constructor(stageDocument: HTMLDocument, overlayDocument: HTMLDocument, store: StageStore, hooks: Hooks) { | ||
// apply constraints | ||
const { movementX, movementY } = (() => { | ||
if(this.initialMouse && mouseData.shiftKey && this.selection.length > 0) { | ||
const translation = this.selection[0].translation; | ||
const {x, y} = { | ||
x: mouseData.mouseX - this.initialMouse.x, | ||
y: mouseData.mouseY - this.initialMouse.y, | ||
} | ||
const angle = Math.atan2(y, x); | ||
const sign = Math.sin(angle) * Math.cos(angle) > 0 ? 1 : -1; | ||
if(Math.abs(Math.sin(angle)) < Math.abs(Math.cos(angle))) { | ||
// stick to x axis | ||
return { | ||
movementX: -translation.x + (mouseData.mouseX - this.initialMouse.x) + mouseData.movementX, | ||
movementY: -translation.y, | ||
} | ||
} else { | ||
// stick to y axis | ||
return { | ||
movementX: -translation.x, | ||
movementY: -translation.y + (mouseData.mouseY - this.initialMouse.y) + mouseData.movementY, | ||
} | ||
} | ||
} | ||
return mouseData; | ||
})() | ||
if(!this.initialMouse) { | ||
this.initialMouse = { | ||
x: mouseData.mouseX, | ||
y: mouseData.mouseY, | ||
}; | ||
} | ||
// update elements postition | ||
this.selection = this.selection | ||
.map(selectable => this.move(selectable, false, mouseData.movementX, mouseData.movementY)); | ||
.map(selectable => this.move(selectable, false, movementX, movementY)); | ||
@@ -86,3 +120,3 @@ // update the destination of each element | ||
.filter(s => domMetrics.hasASelectedDraggableParent(this.store, s.el)) | ||
.map(selectable => this.move(selectable, true, mouseData.movementX, mouseData.movementY)); | ||
.map(selectable => this.move(selectable, true, movementX, movementY)); | ||
@@ -111,2 +145,4 @@ // update store | ||
this.initialMouse = null; | ||
this.selection = this.selection.map((selectable) => { | ||
@@ -113,0 +149,0 @@ // move to a different container |
@@ -30,2 +30,3 @@ import * as types from './Types'; | ||
protected store: StageStore; | ||
protected mouse: Mouse; | ||
@@ -74,3 +75,3 @@ /** | ||
// controllers | ||
const mouse = new Mouse(this.contentWindow, this.ui.overlay.contentWindow, this.store, this.hooks); | ||
this.mouse = new Mouse(this.contentWindow, this.ui.overlay.contentWindow, this.store, this.hooks); | ||
const keyboard = new Keyboard(this.ui.overlay.contentWindow, this.store, this.hooks); | ||
@@ -82,3 +83,3 @@ | ||
() => mouseObserver.cleanup(), | ||
() => mouse.cleanup(), | ||
() => this.mouse.cleanup(), | ||
() => keyboard.cleanup(), | ||
@@ -133,2 +134,17 @@ | ||
/** | ||
* safe subscribe to mouse event | ||
* handle the multiple iframes and the current window | ||
* @return function to call to unsubscribe | ||
*/ | ||
subscribeMouseEvent(type: string, cbk: (e) => void): () => void { | ||
return this.mouse.subscribeMouseEvent(type, cbk); | ||
} | ||
hideScrolls(hide: boolean) { | ||
this.iframe.contentDocument.body.style.overflow = hide ? 'hidden' : ''; | ||
this.ui.overlay.contentDocument.body.style.overflow = hide ? 'hidden' : ''; | ||
} | ||
/////////////////////////////////////////////////// | ||
@@ -135,0 +151,0 @@ // Elements and metrics |
@@ -6,3 +6,8 @@ import { StageStore } from './flux/StageStore'; | ||
import { UiMode, Hooks } from './Types'; | ||
import { updateSelectables } from './flux/SelectableState'; | ||
const MOVE_DISTANCE = 5; | ||
const SHIFT_MOVE_DISTANCE = 1; | ||
const ALT_MOVE_DISTANCE = 10; | ||
export class Keyboard { | ||
@@ -52,2 +57,14 @@ constructor(private win: Window, private store: StageStore, private hooks: Hooks) { | ||
break; | ||
case 'ArrowLeft': | ||
this.move(-this.getDistance(e), 0); | ||
break; | ||
case 'ArrowUp': | ||
this.move(0, -this.getDistance(e)); | ||
break; | ||
case 'ArrowRight': | ||
this.move(this.getDistance(e), 0); | ||
break; | ||
case 'ArrowDown': | ||
this.move(0, this.getDistance(e)); | ||
break; | ||
default: | ||
@@ -61,2 +78,32 @@ return; | ||
} | ||
getDistance(e: KeyboardEvent) { | ||
return e.shiftKey ? SHIFT_MOVE_DISTANCE : | ||
e.altKey ? ALT_MOVE_DISTANCE : MOVE_DISTANCE; | ||
} | ||
move(movementX, movementY) { | ||
this.store.dispatch(updateSelectables( | ||
this.store.getState().selectables | ||
.filter(s => s.selected) | ||
.map(selectable => ({ | ||
...selectable, | ||
metrics: { | ||
...selectable.metrics, | ||
clientRect : { | ||
...selectable.metrics.clientRect, | ||
top: selectable.metrics.clientRect.top + movementY, | ||
left: selectable.metrics.clientRect.left + movementX, | ||
bottom: selectable.metrics.clientRect.bottom + movementY, | ||
right: selectable.metrics.clientRect.right + movementX, | ||
}, | ||
computedStyleRect: { | ||
...selectable.metrics.computedStyleRect, | ||
top: selectable.metrics.computedStyleRect.top + movementY, | ||
left: selectable.metrics.computedStyleRect.left + movementX, | ||
bottom: selectable.metrics.computedStyleRect.bottom + movementY, | ||
right: selectable.metrics.computedStyleRect.right + movementX, | ||
}, | ||
} | ||
})) | ||
)); | ||
} | ||
} |
@@ -38,2 +38,14 @@ import * as types from './Types'; | ||
} | ||
/** | ||
* safe subscribe to mouse event | ||
* handle the multiple iframes and the current window | ||
* @return function to call to unsubscribe | ||
*/ | ||
subscribeMouseEvent(type, cbk): () => void { | ||
const unsubscribeArray = [ | ||
addEvent(this.winOverlay.document.body, type, (e:MouseEvent) => cbk(e), true), | ||
addEvent(document.body, type, (e:MouseEvent) => cbk(e), true), | ||
]; | ||
return () => unsubscribeArray.forEach(u => u()); | ||
} | ||
////////////////////////////// | ||
@@ -48,3 +60,8 @@ scroll(e: MouseEvent) { | ||
if(!this.store.getState().ui.catchingEvents) return; | ||
try { | ||
// in firefox, this is needed to keep recieving events while dragging outside the iframe | ||
// in chrome this will throw an error | ||
e.target['setCapture'](); | ||
} | ||
catch(e) {} | ||
e.preventDefault(); // prevent default text selection | ||
@@ -51,0 +68,0 @@ const mouseData = this.eventToMouseData(e); |
2040832
87
11006