Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit a141144

Browse files
Fix direction export
1 parent ca317e3 commit a141144

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

src/angular2-swing/swing.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ThrowEvent {
1212
* The direction in which the element is being dragged: Card.DIRECTION_LEFT
1313
* or Card.DIRECTION_RIGHT
1414
*/
15-
throwDirection: Direction;
15+
throwDirection: any;
1616
}
1717

1818
export interface DragEvent {
@@ -28,7 +28,7 @@ export interface DragEvent {
2828
/**
2929
* Only available when the event is dragmove
3030
*/
31-
throwDirection?: Direction;
31+
throwDirection?: any;
3232
/**
3333
* Only available when the event is dragmove
3434
*/
@@ -138,10 +138,3 @@ export interface StackConfig {
138138
transform?: (element: HTMLElement, x: number, y: number, r: number) => void;
139139
}
140140

141-
export interface Direction {
142-
DOWN;
143-
INVALID;
144-
LEFT;
145-
RIGHT;
146-
UP;
147-
}

src/swing/card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Sister from 'sister';
33
import rebound from 'rebound';
44
import vendorPrefix from 'vendor-prefix';
55
import raf from 'raf';
6-
import Direction from './Direction';
6+
import Direction from './direction';
77

88
import {
99
elementChildren,

src/swing/direction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Direction = {
1+
export const Direction = {
22
DOWN: Symbol('DOWN'),
33
INVALID: Symbol('INVALID'),
44
LEFT: Symbol('LEFT'),

src/swing/stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import _ from 'lodash';
22
import Sister from 'sister';
33
import rebound from 'rebound';
4+
45
import Card from './card';
56

67
/**

0 commit comments

Comments
 (0)