@dflex/draggable
Advanced tools
Comparing version 2.6.1 to 2.7.0
@@ -0,1 +1,7 @@ | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { AbstractCoreInterface } from "@dflex/core-instance"; | ||
@@ -44,4 +50,3 @@ import type { AbstractDraggableInterface, DraggedStyle, MouseCoordinates, TempTranslate } from "./types"; | ||
protected translate(x: number, y: number): void; | ||
protected translateOnY(y: number): void; | ||
} | ||
export default AbstractDraggable; |
@@ -90,6 +90,2 @@ "use strict"; | ||
}; | ||
AbstractDraggable.prototype.translateOnY = function (y) { | ||
this.tempTranslate.y = y + this.outerOffsetY; | ||
this.translate(-this.outerOffsetX, y); | ||
}; | ||
return AbstractDraggable; | ||
@@ -96,0 +92,0 @@ }()); |
@@ -0,1 +1,7 @@ | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { AbstractCoreInterface } from "@dflex/core-instance"; | ||
@@ -2,0 +8,0 @@ import AbstractDraggable from "./AbstractDraggable"; |
@@ -0,1 +1,7 @@ | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import Store from "@dflex/store"; | ||
@@ -2,0 +8,0 @@ import { AbstractCoreInterface } from "@dflex/core-instance"; |
@@ -21,2 +21,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var store_1 = __importDefault(require("@dflex/store")); | ||
@@ -23,0 +29,0 @@ var core_instance_1 = __importDefault(require("@dflex/core-instance")); |
@@ -0,1 +1,7 @@ | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
export { default as Draggable } from "./Draggable"; | ||
@@ -2,0 +8,0 @@ export { default as store } from "./DraggableStoreImp"; |
@@ -7,2 +7,8 @@ "use strict"; | ||
exports.AbstractDraggable = exports.store = exports.Draggable = void 0; | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var Draggable_1 = require("./Draggable"); | ||
@@ -9,0 +15,0 @@ Object.defineProperty(exports, "Draggable", { enumerable: true, get: function () { return __importDefault(Draggable_1).default; } }); |
@@ -0,1 +1,7 @@ | ||
/** | ||
* Copyright (c) Jalal Maskoun. | ||
* | ||
* This source code is licensed under the AGPL3.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import type { AbstractCoreInterface } from "@dflex/core-instance"; | ||
@@ -2,0 +8,0 @@ export interface TempTranslate { |
{ | ||
"name": "@dflex/draggable", | ||
"version": "2.6.1", | ||
"version": "2.7.0", | ||
"main": "dist/index.js", | ||
@@ -20,4 +20,4 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@dflex/core-instance": "^2.6.1", | ||
"@dflex/store": "^2.2.2" | ||
"@dflex/core-instance": "^2.7.0", | ||
"@dflex/store": "^2.7.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "ac6475f10de161b6c8cac4afff13bb9b3e281ddb" | ||
"gitHead": "410a53603f6a8a991bc8fe6bb86226ef832d784d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59061
357
Updated@dflex/core-instance@^2.7.0
Updated@dflex/store@^2.7.0