Manual class transform

This commit is contained in:
Tim Schaub
2018-07-16 17:09:50 -06:00
parent 7b4a73f3b9
commit f78d0d4cfa
96 changed files with 8112 additions and 7964 deletions
+21 -16
View File
@@ -63,25 +63,30 @@ const TranslateEventType = {
* @param {module:ol/Collection.<module:ol/Feature>} features The features translated.
* @param {module:ol/coordinate~Coordinate} coordinate The event coordinate.
*/
export const TranslateEvent = function(type, features, coordinate) {
export class TranslateEvent {
Event.call(this, type);
constructor(type, features, coordinate) {
/**
* The features being translated.
* @type {module:ol/Collection.<module:ol/Feature>}
* @api
*/
this.features = features;
Event.call(this, type);
/**
* The coordinate of the drag event.
* @const
* @type {module:ol/coordinate~Coordinate}
* @api
*/
this.coordinate = coordinate;
};
/**
* The features being translated.
* @type {module:ol/Collection.<module:ol/Feature>}
* @api
*/
this.features = features;
/**
* The coordinate of the drag event.
* @const
* @type {module:ol/coordinate~Coordinate}
* @api
*/
this.coordinate = coordinate;
}
}
inherits(TranslateEvent, Event);