Reference · Cube engine and views
ScramblePagetype
The part of a page the loop listens to: a Document is one.
Import it
import type { ScramblePage } from "@johnmorrisdotca/kyuubu";
Definition
type ScramblePage = {
readonly hidden: boolean;
addEventListener(type: "visibilitychange", listener: () => void): void;
removeEventListener(type: "visibilitychange", listener: () => void): void;
};
Members
| Name | Type | Description |
|---|---|---|
hidden | boolean | |
addEventListener | (type: "visibilitychange", listener: () => void): void | |
removeEventListener | (type: "visibilitychange", listener: () => void): void |
Examples
import type { ScramblePage } from "@johnmorrisdotca/kyuubu";
const value: ScramblePage = document;
console.log(value.hidden);