@@ -46,25 +46,25 @@ export interface Card {
46
46
* Unbinds all Hammer.Manager events.
47
47
* Removes the listeners from the physics simulation.
48
48
*
49
- * @ return {undefined }
49
+ * return {undefined}
50
50
*/
51
51
destroy ( ) : void ;
52
52
53
53
/**
54
54
* Throws a card into the stack from an arbitrary position.
55
55
*
56
- * @ param {Number } fromX
57
- * @ param {Number } fromY
58
- * @ return {undefined }
56
+ * param {Number} fromX
57
+ * param {Number} fromY
58
+ * return {undefined}
59
59
*/
60
60
throwIn ( x : number , y : number ) : void ;
61
61
62
62
/**
63
63
* Throws a card out of the stack in the direction away from the original offset.
64
64
*
65
- * @ param {Number } fromX
66
- * @ param {Number } fromY
67
- * @ return {undefined }
65
+ * param {Number} fromX
66
+ * param {Number} fromY
67
+ * return {undefined}
68
68
*/
69
69
throwOut ( x : number , y : number ) : void ;
70
70
@@ -84,10 +84,10 @@ export interface StackConfig {
84
84
*
85
85
* Element is considered to be thrown out when throwOutConfidence is equal to 1.
86
86
*
87
- * @ param {Number } offset Distance from the dragStart.
88
- * @ param {HTMLElement } element Element.
89
- * @ param {Number } throwOutConfidence config.throwOutConfidence
90
- * @ return {Boolean }
87
+ * param {Number} offset Distance from the dragStart.
88
+ * param {HTMLElement} element Element.
89
+ * param {Number} throwOutConfidence config.throwOutConfidence
90
+ * return {Boolean}
91
91
*/
92
92
isThrowOut ?: ( offset : number , element : HTMLElement , throwOutConfidence : number ) => boolean ;
93
93
@@ -96,31 +96,31 @@ export interface StackConfig {
96
96
*
97
97
* Ration of the absolute distance from the original card position and element width.
98
98
*
99
- * @ param {Number } offsetX Distance from the dragStart.
100
- * @ param {Number } offsetY Distance from the dragStart.
101
- * @ param {HTMLElement } element Element.
102
- * @ return {Number }
99
+ * param {Number} offsetX Distance from the dragStart.
100
+ * param {Number} offsetY Distance from the dragStart.
101
+ * param {HTMLElement} element Element.
102
+ * return {Number}
103
103
*/
104
104
throwOutConfidence ?: ( offsetX : number , offsetY : number , element : HTMLElement ) => number ;
105
105
106
106
/**
107
107
* Calculates a distances at which the card is thrown out of the stack.
108
108
*
109
- * @ param {Number } min
110
- * @ param {Number } max
111
- * @ return {Number }
109
+ * param {Number} min
110
+ * param {Number} max
111
+ * return {Number}
112
112
*/
113
113
throwOutDistance ?: ( min : number , max : number ) => number ;
114
114
115
115
/**
116
116
* Calculates rotation based on the element x and y offset, element width and
117
117
* maxRotation variables.
118
118
*
119
- * @ param {Number } x Horizontal offset from the startDrag.
120
- * @ param {Number } y Vertical offset from the startDrag.
121
- * @ param {HTMLElement } element Element.
122
- * @ param {Number } maxRotation
123
- * @ return {Number } Rotation angle expressed in degrees.
119
+ * param {Number} x Horizontal offset from the startDrag.
120
+ * param {Number} y Vertical offset from the startDrag.
121
+ * param {HTMLElement} element Element.
122
+ * param {Number} maxRotation
123
+ * return {Number} Rotation angle expressed in degrees.
124
124
*/
125
125
rotation ?: ( x : number , y : number , element : HTMLElement , maxRotation : number ) => number ;
126
126
@@ -129,11 +129,11 @@ export interface StackConfig {
129
129
*
130
130
* Invoked in the event of `dragmove` and every time the physics solver is triggered.
131
131
*
132
- * @ param {HTMLElement } element
133
- * @ param {Number } x Horizontal offset from the startDrag.
134
- * @ param {Number } y Vertical offset from the startDrag.
135
- * @ param {Number } r
136
- * @ return {undefined }
132
+ * param {HTMLElement} element
133
+ * param {Number} x Horizontal offset from the startDrag.
134
+ * param {Number} y Vertical offset from the startDrag.
135
+ * param {Number} r
136
+ * return {undefined}
137
137
*/
138
138
transform ?: ( element : HTMLElement , x : number , y : number , r : number ) => void ;
139
139
}
0 commit comments