@wildebeest/drag
Advanced tools
Comparing version 0.2.0 to 0.3.0
export { DragModule } from './DragModule'; | ||
export { DragableElement } from './DragableElement'; | ||
export { DragableComponent } from './DragableComponent'; |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.DragModule = DragModule_1.DragModule; | ||
var DragableElement_1 = require("./DragableElement"); | ||
exports.DragableElement = DragableElement_1.DragableElement; | ||
var DragableComponent_1 = require("./DragableComponent"); | ||
exports.DragableComponent = DragableComponent_1.DragableComponent; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wildebeest/drag", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Draging event module", | ||
@@ -17,4 +17,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@wildebeest/js-modules": "^0.1.0", | ||
"@wildebeest/common": "^0.2.0" | ||
"@wildebeest/common": "^0.2.0", | ||
"@wildebeest/component": "^0.1.2", | ||
"@wildebeest/js-modules": "^0.1.0" | ||
}, | ||
@@ -21,0 +22,0 @@ "devDependencies": { |
import { Module } from "@wildebeest/js-modules"; | ||
import { CommonModule } from "@wildebeest/common"; | ||
import { Container } from "inversify"; | ||
import { DragableComponent } from "./DragableComponent"; | ||
@@ -5,0 +6,0 @@ |
export { DragModule } from './DragModule'; | ||
export { DragableElement } from './DragableElement'; | ||
export { DragableComponent } from './DragableComponent'; |
import 'ts-jest'; | ||
import { Application } from '@wildebeest/js-modules'; | ||
import { DragModule } from '../src/DragModule'; | ||
import { DragableElement } from '../src/DragableElement'; | ||
import { DragableComponent } from '../src/DragableComponent'; | ||
import { DomService, EmitterService } from '@wildebeest/common'; | ||
@@ -20,4 +20,4 @@ | ||
domService.insert([element], document.body); | ||
let dragable: DragableElement = new DragableElement(element, emitterService.createEmitter()); | ||
dragable.getEmitter().on('drag', (event: any) => { | ||
let dragable: DragableComponent = new DragableComponent(element, emitterService.createEmitter()); | ||
dragable.getEmitter().on('wbDrag', (event: any) => { | ||
value.vertical += event.vertical; | ||
@@ -52,4 +52,4 @@ value.horizontal += event.horizontal; | ||
domService.insert([element], document.body); | ||
let dragable: DragableElement = new DragableElement(element, emitterService.createEmitter()); | ||
dragable.getEmitter().on('drag', (event: any) => { | ||
let dragable: DragableComponent = new DragableComponent(element, emitterService.createEmitter()); | ||
dragable.getEmitter().on('wbDrag', (event: any) => { | ||
value.vertical += event.vertical; | ||
@@ -56,0 +56,0 @@ value.horizontal += event.horizontal; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15257
21
284
3
+ Added@wildebeest/component@^0.1.2
+ Added@wildebeest/component@0.1.3(transitive)