Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure Math Box

From Leeroopedia
Revision as of 11:50, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/SeleniumHQ_Selenium_Closure_Math_Box.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing a numeric box utility class used by Selenium JavaScript atoms.

Description

goog.math.Box is a vendored copy of the Google Closure Library module. It provides a class for representing a box defined by top, right, bottom, and left values, useful for representing margins and padding. The class assumes screen coordinates (larger Y is further from the top). It includes methods for bounding box creation from coordinates, expansion, and containment checks. Selenium uses this as part of its JavaScript atom infrastructure.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.math.Box');

goog.math.Box = function(top, right, bottom, left) { ... };
goog.math.Box.boundingBox = function(var_args) { ... };

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment