diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /devtools/client/inspector/grids/types.js | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | devtools/client/inspector/grids/types.js | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/devtools/client/inspector/grids/types.js b/devtools/client/inspector/grids/types.js new file mode 100644 index 0000000000..b2a936fef2 --- /dev/null +++ b/devtools/client/inspector/grids/types.js @@ -0,0 +1,57 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +"use strict"; + +const PropTypes = require("resource://devtools/client/shared/vendor/react-prop-types.js"); + +/** + * A single grid container in the document. + */ +exports.grid = { + // The id of the grid + id: PropTypes.number, + + // The color for the grid overlay highlighter + color: PropTypes.string, + + // The text direction of the grid container + direction: PropTypes.string, + + // Whether or not the grid checkbox is disabled as a result of hitting the + // maximum number of grid highlighters shown. + disabled: PropTypes.bool, + + // The grid fragment object of the grid container + gridFragments: PropTypes.array, + + // Whether or not the grid highlighter is highlighting the grid + highlighted: PropTypes.bool, + + // Whether or not the grid is a subgrid + isSubgrid: PropTypes.bool, + + // The node front of the grid container + nodeFront: PropTypes.object, + + // If the grid is a subgrid, this references the parent node front actor ID + parentNodeActorID: PropTypes.string, + + // Array of ids belonging to the subgrid within the grid container + subgrids: PropTypes.arrayOf(PropTypes.number), + + // The writing mode of the grid container + writingMode: PropTypes.string, +}; + +/** + * The grid highlighter settings on what to display in its grid overlay in the document. + */ +exports.highlighterSettings = { + // Whether or not the grid highlighter should show the grid line numbers + showGridLineNumbers: PropTypes.bool, + + // Whether or not the grid highlighter extends the grid lines infinitely + showInfiniteLines: PropTypes.bool, +}; |