js: Export variables and classes for Workspace Matrix extension

Most of these were "var" before the port to ESM (!1499). Here they
are exported again.

References !1499

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2978>
This commit is contained in:
Martin Zurowietz 2023-10-20 20:36:06 +02:00 committed by Marge Bot
parent c7769da797
commit 7d835bf455
4 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ import * as WindowManager from './windowManager.js';
import * as WorkspaceThumbnail from './workspaceThumbnail.js';
import * as WorkspacesView from './workspacesView.js';
const SMALL_WORKSPACE_RATIO = 0.15;
export const SMALL_WORKSPACE_RATIO = 0.15;
const DASH_MAX_HEIGHT_RATIO = 0.15;
const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';

View File

@ -35,7 +35,7 @@ const DIALOG_SHOW_WINDOW_ANIMATION_TIME = 100;
const DESTROY_WINDOW_ANIMATION_TIME = 150;
const DIALOG_DESTROY_WINDOW_ANIMATION_TIME = 100;
const WINDOW_ANIMATION_TIME = 250;
const SCROLL_TIMEOUT_TIME = 150;
export const SCROLL_TIMEOUT_TIME = 150;
const DIM_BRIGHTNESS = -0.3;
const DIM_TIME = 500;
const UNDIM_TIME = 250;

View File

@ -14,9 +14,9 @@ import * as Util from '../misc/util.js';
import * as Main from './main.js';
const WINDOW_ANIMATION_TIME = 250;
const WORKSPACE_SPACING = 100;
export const WORKSPACE_SPACING = 100;
const WorkspaceGroup = GObject.registerClass(
export const WorkspaceGroup = GObject.registerClass(
class WorkspaceGroup extends Clutter.Actor {
_init(workspace, monitor, movingWindow) {
super._init({
@ -145,7 +145,7 @@ class WorkspaceGroup extends Clutter.Actor {
}
});
const MonitorGroup = GObject.registerClass({
export const MonitorGroup = GObject.registerClass({
Properties: {
'progress': GObject.ParamSpec.double(
'progress', 'progress', 'progress',

View File

@ -210,7 +210,7 @@ export const WindowClone = GObject.registerClass({
});
const ThumbnailState = {
export const ThumbnailState = {
NEW: 0,
EXPANDING: 1,
EXPANDED: 2,