index.js (1225B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 const { createEnum } = require("resource://devtools/client/shared/enum.js"); 8 9 createEnum( 10 [ 11 // Reset font editor to intial state. 12 "RESET_EDITOR", 13 14 // Set the font editor disabled state which prevents users from interacting with inputs. 15 "SET_FONT_EDITOR_DISABLED", 16 17 // Apply the variation settings of a font instance. 18 "APPLY_FONT_VARIATION_INSTANCE", 19 20 // Update the custom font variation instance with the current axes values. 21 "UPDATE_CUSTOM_INSTANCE", 22 23 // Update the value of a variable font axis. 24 "UPDATE_AXIS_VALUE", 25 26 // Update font editor with applicable fonts and user-defined CSS font properties. 27 "UPDATE_EDITOR_STATE", 28 29 // Update the list of fonts. 30 "UPDATE_FONTS", 31 32 // Update the preview text. 33 "UPDATE_PREVIEW_TEXT", 34 35 // Update the value of a CSS font property 36 "UPDATE_PROPERTY_VALUE", 37 38 // Update the warning message with the reason for not showing the font editor 39 "UPDATE_WARNING_MESSAGE", 40 ], 41 module.exports 42 );