@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.
@@ -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 window-relative bounding box from the most recent layout, or
50
- * `null` if it has no layout or has not been laid out yet.
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/flux-types",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",