js: Port to modules

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1499>
This commit is contained in:
Evan Welsh
2023-07-10 02:53:00 -07:00
committed by Florian Müllner
parent d9198317ae
commit a751e213f6
162 changed files with 2183 additions and 2336 deletions

View File

@ -1,11 +1,10 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported Ripples */
const Clutter = imports.gi.Clutter;
const St = imports.gi.St;
import Clutter from 'gi://Clutter';
import St from 'gi://St';
// Shamelessly copied from the layout "hotcorner" ripples implementation
var Ripples = class Ripples {
export class Ripples {
constructor(px, py, styleClass) {
this._x = 0;
this._y = 0;
@ -108,4 +107,4 @@ var Ripples = class Ripples {
this._animRipple(this._ripple2, 50, 1000, 0.0, 0.7, 1.25);
this._animRipple(this._ripple3, 350, 1000, 0.0, 0.3, 1);
}
};
}