incajs 0.0.15 → 0.0.16

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.
@@ -1,10 +0,0 @@
1
- import { IncaCore } from '../rendererCore.mts';
2
- import { IncaElement } from './nodeOps.mts';
3
- /**
4
- * The parent a node's offsets are measured from. It is the parent when both
5
- * the node and the parent have a recorded box.
6
- * @param core - the incajs bindings to read through
7
- * @param el - the node to query
8
- * @returns the parent, or `null`
9
- */
10
- export declare function offsetParentOf(core: IncaCore, el: IncaElement): IncaElement | null;
@@ -1,25 +0,0 @@
1
- import { LayoutBox } from './layoutBox.mts';
2
- /** The plain values of a {@link RectLike}, as `toJSON` returns them. */
3
- export interface RectValues {
4
- readonly x: number;
5
- readonly y: number;
6
- readonly width: number;
7
- readonly height: number;
8
- readonly top: number;
9
- readonly left: number;
10
- readonly right: number;
11
- readonly bottom: number;
12
- }
13
- /**
14
- * A rectangle with its position, its size and its four edges. `toJSON()` returns
15
- * the plain values.
16
- */
17
- export interface RectLike extends RectValues {
18
- toJSON(): RectValues;
19
- }
20
- /**
21
- * Builds a rect from a node's box. Values stay unrounded.
22
- * @param layout - the box from {@link LayoutBox}, or `null` for no record
23
- * @returns the rect; all zeros for `null`
24
- */
25
- export declare function rectOf(layout: LayoutBox | null): RectLike;
@@ -1,22 +0,0 @@
1
- import { ScrollAlignment } from '../types.mts';
2
- /** The options form of `scrollIntoView()`. `behavior` is accepted and ignored. */
3
- export interface ScrollIntoViewOptions {
4
- /** The vertical alignment. Defaults to `"start"`. */
5
- block?: ScrollAlignment;
6
- /** The horizontal alignment. Defaults to `"nearest"`. */
7
- inline?: ScrollAlignment;
8
- /** `behavior` is ignored; every scroll applies at once. */
9
- behavior?: "auto" | "instant" | "smooth";
10
- }
11
- /**
12
- * Turns `scrollIntoView()`'s argument into the alignment pair. `true` or no
13
- * argument aligns to the start, `false` to the end, and an options object
14
- * takes each axis from its own key. An unknown string falls back to that
15
- * axis's default.
16
- * @param arg - the boolean or options object the caller passed
17
- * @returns the `block` and `inline` alignments to send to the host
18
- */
19
- export declare function scrollIntoViewArgs(arg?: boolean | ScrollIntoViewOptions): {
20
- block: ScrollAlignment;
21
- inline: ScrollAlignment;
22
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Marks `handle` so that Vue's `reactive()` and `ref()` keep the object itself.
3
- * A template ref then holds the same object the application receives from
4
- * `activeElement()`.
5
- * @param handle - the node handle to mark
6
- * @returns `handle`
7
- */
8
- export declare function skipReactive<T extends object>(handle: T): T;
@@ -1,9 +0,0 @@
1
- /**
2
- * Reads a `tabindex` attribute value as the element's tab index. A value that
3
- * is missing, not a string or number, has no leading integer, or falls outside
4
- * the 32-bit signed range yields the default.
5
- * @param value - the stored `tabindex` attribute, or `null` if unset
6
- * @param kind - the element kind; `"button"` defaults to `0`, any other kind to `-1`
7
- * @returns the parsed tab index, or the default
8
- */
9
- export declare function tabIndexOf(value: string | number | boolean | null, kind: string): number;