@solidrt/flux-types 0.0.35 → 0.0.37
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.
- package/gui/rendertree.d.ts +10 -2
- package/package.json +1 -1
package/gui/rendertree.d.ts
CHANGED
|
@@ -46,8 +46,16 @@ declare module "flux:rendertree" {
|
|
|
46
46
|
*/
|
|
47
47
|
export function measureText(text: string, options?: MeasureTextOptions): { width: number, height: number }
|
|
48
48
|
/**
|
|
49
|
-
* The node's
|
|
50
|
-
*
|
|
49
|
+
* The node's bounding box from the most recent layout, relative to its
|
|
50
|
+
* nearest positioning context (an ancestor with an explicit
|
|
51
|
+
* `position="relative"`, falling back to the window), or `null` if it has no
|
|
52
|
+
* layout or has not been laid out yet. Transforms anywhere in the chain
|
|
53
|
+
* compose fully; the box is the axis-aligned bounds of the transformed quad.
|
|
51
54
|
*/
|
|
52
55
|
export function getBoundingBox(id: number): { x: number, y: number, width: number, height: number } | null
|
|
56
|
+
/**
|
|
57
|
+
* Like getBoundingBox, but always window-relative (getBoundingClientRect
|
|
58
|
+
* semantics), for comparing against pointer event coordinates.
|
|
59
|
+
*/
|
|
60
|
+
export function getBoundingBoxViewport(id: number): { x: number, y: number, width: number, height: number } | null
|
|
53
61
|
}
|