@antadesign/anta 0.3.31 → 0.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,11 +120,22 @@ export interface BoxContext {
120
120
  * own background is not behind it. */
121
121
  backgroundColor: string;
122
122
  }
123
- /** Current box dimensions and its content-overflow state. */
123
+ /** A descendant's border box, in CSS pixels from the Box's top-left border edge. */
124
+ export interface BoxRect {
125
+ top: number;
126
+ right: number;
127
+ bottom: number;
128
+ left: number;
129
+ width: number;
130
+ height: number;
131
+ }
132
+ /** Current box dimensions, matching descendant rects, and content-overflow state. */
124
133
  export interface BoxMeasurement {
125
134
  /** Border-box width and height in CSS pixels. */
126
135
  width: number;
127
136
  height: number;
137
+ /** Matches for `includeRectsFor`, in document order. Empty when omitted. */
138
+ rects: BoxRect[];
128
139
  /** Padding-box dimensions, matching the browser's `clientWidth` / `clientHeight`. */
129
140
  clientWidth: number;
130
141
  clientHeight: number;