drag-drop-stage-component
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "drag-drop-stage-component", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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", |
@@ -71,3 +71,3 @@ define(["require", "exports", "./MouseHandlerBase", "../flux/SelectableState", "../flux/MouseState", "../utils/DomMetrics", "../flux/UiState"], function (require, exports, MouseHandlerBase_1, selectableState, mouseState, domMetrics, UiState_1) { | ||
// move to the final position will take the new parent offset | ||
selectable.el.style.width = computedStyleRect.width + 'px'; | ||
selectable.el.style.width = Math.max(40, computedStyleRect.width) + 'px'; | ||
// check for the offset and update the metrics | ||
@@ -92,3 +92,3 @@ const bb = domMetrics.getBoundingBoxDocument(selectable.el); | ||
// move to the final position will take the new parent offset | ||
selectable.el.style[heightAttr] = computedStyleRect.height + 'px'; | ||
selectable.el.style[heightAttr] = Math.max(40, computedStyleRect.height) + 'px'; | ||
// check for the offset and update the metrics | ||
@@ -165,2 +165,2 @@ const bb = domMetrics.getBoundingBoxDocument(selectable.el); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzaXplSGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90cy9oYW5kbGVycy9SZXNpemVIYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztJQVFBLE1BQWEsYUFBYyxTQUFRLG1DQUFnQjtRQUVqRCxZQUFZLGFBQTJCLEVBQUUsZUFBNkIsRUFBRSxLQUFpQixFQUFFLEtBQVk7WUFDckcsS0FBSyxDQUFDLGFBQWEsRUFBRSxlQUFlLEVBQUUsS0FBSyxFQUFFLEtBQUssQ0FBQyxDQUFDO1lBRXBELFlBQVk7WUFDWixJQUFJLENBQUMsVUFBVSxHQUFHL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sUUFBUSxDQUFDLHVCQUFhLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztnQkFFMUMsaUJBQWlCO2dCQUNqQixJQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsV0FBVztvQkFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7WUFDcEUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFBO1FBQ1AsQ0FBQztLQUNGO0lBNUxELHNDQTRMQyJ9 |
@@ -63,2 +63,5 @@ define(["require", "exports", "../utils/DomMetrics"], function (require, exports, DomMetrics) { | ||
} | ||
// notify the app | ||
if (this.hooks.onChange) | ||
this.hooks.onChange(selectables); | ||
} | ||
@@ -92,2 +95,2 @@ onSelection(selectables) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VsZWN0YWJsZXNPYnNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90cy9vYnNlcnZlcnMvU2VsZWN0YWJsZXNPYnNlcnZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7SUFNQTs7O09BR0c7SUFDSCxNQUFhLG1CQUFtQjtRQUM5QixZQUFvQixhQUEyQixFQUFVLGVBQTZCLEVBQVUsS0FBaUIsRUFBVSxLQUFrQjtZQUF6SCxrQkFBYSxHQUFiLGFBQWEsQ0FBYztZQUFVLG9CQUFlLEdBQWYsZUFBZSxDQUFjO1lBQVUsVUFBSyxHQUFMLEtBQUssQ0FBWTtZQUFVLFVBQUssR0FBTCxLQUFLLENBQWE7WUFhckksaUJBQVksR0FBWSxLQUFLLENBQUM7WUFLOUIsbUJBQWMsR0FBc0IsRUFBRSxDQUFDO1lBakI3QyxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FDdEIsS0FBSyxDQUFDLFNBQVMsQ0FDY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tBQUssQ0FBQyxTQUFTLEdBQUcsRUFBRSxDQUFDO29CQUNuQyxVQUFVLENBQUMsRUFBRSxDQUFDLEtBQUssQ0FBQyxNQUFNLEdBQUcsRUFBRSxDQUFDO29CQUNoQyxVQUFVLENBQUMsRUFBRSxDQUFDLEtBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO2lCQUNuQztZQUNILENBQUMsQ0FBQyxDQUFDO1FBQ0wsQ0FBQztLQUNGO0lBM0ZELGtEQTJGQyJ9 |
@@ -21,2 +21,2 @@ define(["require", "exports"], function (require, exports) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvVHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBcUdBOzs7Ozs7O09BT0c7SUFDSCxJQUFZLE1BTVg7SUFORCxXQUFZLE1BQU07UUFDaEIsbUNBQUksQ0FBQTtRQUNKLG1DQUFJLENBQUE7UUFDSix1Q0FBTSxDQUFBO1FBQ04sbUNBQUksQ0FBQTtRQUNKLG1DQUFJLENBQUE7SUFDTixDQUFDLEVBTlcsTUFBTSxHQUFOLGNBQU0sS0FBTixjQUFNLFFBTWpCIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvVHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBc0dBOzs7Ozs7O09BT0c7SUFDSCxJQUFZLE1BTVg7SUFORCxXQUFZLE1BQU07UUFDaEIsbUNBQUksQ0FBQTtRQUNKLG1DQUFJLENBQUE7UUFDSix1Q0FBTSxDQUFBO1FBQ04sbUNBQUksQ0FBQTtRQUNKLG1DQUFJLENBQUE7SUFDTixDQUFDLEVBTlcsTUFBTSxHQUFOLGNBQU0sS0FBTixjQUFNLFFBTWpCIn0= |
@@ -87,3 +87,3 @@ import {MouseHandlerBase} from './MouseHandlerBase'; | ||
// move to the final position will take the new parent offset | ||
selectable.el.style.width = computedStyleRect.width + 'px'; | ||
selectable.el.style.width = Math.max(40, computedStyleRect.width) + 'px'; | ||
@@ -110,3 +110,3 @@ // check for the offset and update the metrics | ||
// move to the final position will take the new parent offset | ||
selectable.el.style[heightAttr] = computedStyleRect.height + 'px'; | ||
selectable.el.style[heightAttr] = Math.max(40, computedStyleRect.height) + 'px'; | ||
@@ -113,0 +113,0 @@ // check for the offset and update the metrics |
@@ -76,2 +76,4 @@ import * as DomMetrics from '../utils/DomMetrics'; | ||
} | ||
// notify the app | ||
if(this.hooks.onChange) this.hooks.onChange(selectables); | ||
} | ||
@@ -78,0 +80,0 @@ onSelection(selectables: Array<SelectableState>) { |
@@ -20,2 +20,3 @@ | ||
onEdit?: () => void; // this occures when the user double clicks or press enter with one or more elements selected | ||
onChange?: (selectables: Array<SelectableState>) => void; | ||
} | ||
@@ -22,0 +23,0 @@ |
2027174
10805