summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/grids/types.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /devtools/client/inspector/grids/types.js
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--devtools/client/inspector/grids/types.js57
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,
+};