ChikyuSpaceクラス
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The <chikyu-space> custom element: the Earth, the Moon, the Sun and the planets where they are at a date and time, drawn with three.js through the shared renderer. It takes center, time (now or an ISO date), speed (1 is real time, 0 holds, 86400 is a day a second, negative runs backwards), scale (compressed or true), labels and orbits (off hides them); positions are computed in the browser by astronomy-engine, an optional peer dependency. It draws only when something changes, and nothing while it is out of sight.
インポート
import { ChikyuSpace } from "@johnmorrisdotca/chikyu-earth/space/element";
定義
class ChikyuSpace
new ChikyuSpace(): ChikyuSpace
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
connectedCallback | (): void | |
disconnectedCallback | (): void | |
attributeChangedCallback | (name: string, _old: string | null, value: string | null): void | |
centre | GeoPoint | |
time | number | The moment shown: milliseconds since the epoch, or "now" to follow the clock. Setting it points the camera at the same place on the ground again. |
speed | number | Seconds of game time per second: 1 is real time, 0 holds still, negative runs backwards. |
scale | ScaleMode | |
labels | boolean | |
bodies | string | How the Sun, the planets, Pluto and their moons are drawn: one of the |
light | LightMode | How the Earth is lit: |
bodyLooks | readonly string[] | The looks the body painter offers (empty with no painter), for a page to build its choice from. |
orbits | boolean | |
setView | (view: { yaw: number; tilt: number; zoom: number; }, final?: boolean): void | The shared controls' camera: yaw and tilt turn the view (the Earth's surface moves right for a drag right and up for a drag up), zoom brings the camera in (1 shows the Earth, less shows the sky round it). Pan is not used. A turn that moves nothing on the screen by half a pixel is kept
for the next draw but does not cause one unless |
body | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "Earth" | "Sun" | "Moon" | The body the camera looks at: at zoom 1 it fills the view; the yaw and tilt turn the camera round it. |
ride | (target: RideTarget | null, options?: RideOptions): void | Ride along with a body or a satellite. By default the camera sits at it and looks at the Earth, with the way it is going at the top of the picture, at its real place for the moment shown, so the
Earth turns and slides beneath as it moves along its orbit (an ISS view goes round about every 90 minutes). A drag looks about from there (a drag right turns the camera to its left and a drag up tips it towards the bottom of its picture, so the ground follows the pointer), the shared controls' zoom narrows the view.
A satellite is |
riding | Riding | null | What the camera is riding along with now, or null. |
setSatellites | (group: string, satellites: Satellites | null, style?: Partial<SatelliteStyle>): void | Show a group of satellites (made by |
showSatellites | (group: string, on: boolean): void | Show or hide a group without losing it. |
satelliteGroups | { name: string; count: number; visible: boolean; }[] | The groups now set, with how many satellites each holds and whether it is shown. |
selectSatellite | (ref: SatelliteRef | null): void | Mark one satellite: a larger ring round it, its orbit drawn, and its name beside it. |
selectedSatellite | SatelliteRef | null | The satellite marked by |
satelliteInfo | (ref: SatelliteRef): SatelliteInfo | undefined | Facts about one satellite at the moment shown (name, number, element age, height, speed, period); undefined if it cannot be placed then. |
bodyNames | Partial<Record<"Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "Earth" | "Sun" | "Moon", string>> | The words shown beside each body, for a page in another language ( |
bodyHint | string | What a screen reader hears after a body's name: "choose to look at it" by default, or the page's own words. |
bodyInfo | (name: BodyName): BodyInfo | The radius and the distance from the Earth of a body now, for a page's own caption. |
zoomFor | (preset: SpacePreset): number | The zoom that shows a part of the sky: the Earth alone, the Moon's orbit, the Sun, the planets out to Mars, or all of them, at this scale and moment. |
stats | { state: SpaceState; draws: number; contexts: number; canvas: { width: number; height: number; pixels: number; }; tiers: Record<string, number>; distance: number; assets: { entries: number; refs: number; }; time: number; lookups: number; satellites: SatelliteStats; ride: { riding: boolean; lost: boolean; gliding: boolean; }; camera: { position: [number, number, number]; fov: number; }; bodies: { look: string; painted: number; moons: number; }; } | What the element is doing, for a page or a test. |
accessKey | string | The |
accessKeyLabel | string | The |
autocapitalize | string | The |
autocorrect | boolean | The |
dir | string | The |
draggable | boolean | The |
hidden | boolean | The HTMLElement property |
inert | boolean | The HTMLElement property |
innerText | string | The |
lang | string | The |
offsetHeight | number | The |
offsetLeft | number | The |
offsetParent | Element | null | The |
offsetTop | number | The |
offsetWidth | number | The |
outerText | string | The |
popover | string | null | The |
spellcheck | boolean | The |
title | string | The |
translate | boolean | The |
writingSuggestions | string | The |
attachInternals | (): ElementInternals | The |
click | (): void | The |
hidePopover | (): void | The |
showPopover | (): void | The |
togglePopover | (options?: boolean): boolean | The |
addEventListener | <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void | The |
removeEventListener | <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void | The |
attributes | NamedNodeMap | The |
classList | DOMTokenList | The |
className | string | The |
clientHeight | number | The |
clientLeft | number | The |
clientTop | number | The |
clientWidth | number | The |
currentCSSZoom | number | The |
id | string | The |
innerHTML | string | The |
localName | string | The |
namespaceURI | string | null | The |
onfullscreenchange | ((this: Element, ev: Event) => any) | null | |
onfullscreenerror | ((this: Element, ev: Event) => any) | null | |
outerHTML | string | The |
ownerDocument | Document | The read-only |
part | DOMTokenList | The |
prefix | string | null | The |
scrollHeight | number | The |
scrollLeft | number | The |
scrollTop | number | The |
scrollWidth | number | The |
shadowRoot | ShadowRoot | null | The |
slot | string | The |
tagName | string | The |
attachShadow | (init: ShadowRootInit): ShadowRoot | The |
checkVisibility | (options?: CheckVisibilityOptions): boolean | The |
closest | <K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null
<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null
<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null
<E extends Element = Element>(selectors: string): E | null | The |
computedStyleMap | (): StylePropertyMapReadOnly | The |
getAttribute | (qualifiedName: string): string | null | The |
getAttributeNS | (namespace: string | null, localName: string): string | null | The |
getAttributeNames | (): string[] | The |
getAttributeNode | (qualifiedName: string): Attr | null | Returns the specified attribute of the specified element, as an Attr node. |
getAttributeNodeNS | (namespace: string | null, localName: string): Attr | null | The |
getBoundingClientRect | (): DOMRect | The |
getClientRects | (): DOMRectList | The |
getElementsByClassName | (classNames: string): HTMLCollectionOf<Element> | The Element method |
getElementsByTagName | <K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
(qualifiedName: string): HTMLCollectionOf<Element> | The |
getElementsByTagNameNS | (namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
(namespace: string | null, localName: string): HTMLCollectionOf<Element> | The |
getHTML | (options?: GetHTMLOptions): string | The |
hasAttribute | (qualifiedName: string): boolean | The |
hasAttributeNS | (namespace: string | null, localName: string): boolean | The |
hasAttributes | (): boolean | The |
hasPointerCapture | (pointerId: number): boolean | The |
insertAdjacentElement | (where: InsertPosition, element: Element): Element | null | The |
insertAdjacentHTML | (position: InsertPosition, string: string): void | The |
insertAdjacentText | (where: InsertPosition, data: string): void | The |
matches | (selectors: string): boolean | The |
releasePointerCapture | (pointerId: number): void | The |
removeAttribute | (qualifiedName: string): void | The Element method |
removeAttributeNS | (namespace: string | null, localName: string): void | The |
removeAttributeNode | (attr: Attr): Attr | The |
requestFullscreen | (options?: FullscreenOptions): Promise<void> | The |
requestPointerLock | (options?: PointerLockOptions): Promise<void> | The |
scroll | (options?: ScrollToOptions): void
(x: number, y: number): void | The |
scrollBy | (options?: ScrollToOptions): void
(x: number, y: number): void | The |
scrollIntoView | (arg?: boolean | ScrollIntoViewOptions): void | The Element interface's |
scrollTo | (options?: ScrollToOptions): void
(x: number, y: number): void | The |
setAttribute | (qualifiedName: string, value: string): void | The |
setAttributeNS | (namespace: string | null, qualifiedName: string, value: string): void |
|
setAttributeNode | (attr: Attr): Attr | null | The |
setAttributeNodeNS | (attr: Attr): Attr | null | The |
setHTMLUnsafe | (html: string): void | The |
setPointerCapture | (pointerId: number): void | The |
toggleAttribute | (qualifiedName: string, force?: boolean): boolean | The |
webkitMatchesSelector | (selectors: string): boolean | |
textContent | string | |
baseURI | string | The read-only |
childNodes | NodeListOf<ChildNode> | The read-only |
firstChild | ChildNode | null | The read-only |
isConnected | boolean | The read-only |
lastChild | ChildNode | null | The read-only |
nextSibling | ChildNode | null | The read-only |
nodeName | string | The read-only |
nodeType | number | The read-only |
nodeValue | string | null | The |
parentElement | HTMLElement | null | The read-only |
parentNode | ParentNode | null | The read-only |
previousSibling | ChildNode | null | The read-only |
appendChild | <T extends Node>(node: T): T | The |
cloneNode | (subtree?: boolean): Node | The |
compareDocumentPosition | (other: Node): number | The |
contains | (other: Node | null): boolean | The |
getRootNode | (options?: GetRootNodeOptions): Node | The |
hasChildNodes | (): boolean | The |
insertBefore | <T extends Node>(node: T, child: Node | null): T | The |
isDefaultNamespace | (namespace: string | null): boolean | The |
isEqualNode | (otherNode: Node | null): boolean | The |
isSameNode | (otherNode: Node | null): boolean | The |
lookupNamespaceURI | (prefix: string | null): string | null | The |
lookupPrefix | (namespace: string | null): string | null | The |
normalize | (): void | The |
removeChild | <T extends Node>(child: T): T | The |
replaceChild | <T extends Node>(node: Node, child: T): T | The |
ELEMENT_NODE | 1 | node is an element. |
ATTRIBUTE_NODE | 2 | |
TEXT_NODE | 3 | node is a Text node. |
CDATA_SECTION_NODE | 4 | node is a CDATASection node. |
ENTITY_REFERENCE_NODE | 5 | |
ENTITY_NODE | 6 | |
PROCESSING_INSTRUCTION_NODE | 7 | node is a ProcessingInstruction node. |
COMMENT_NODE | 8 | node is a Comment node. |
DOCUMENT_NODE | 9 | node is a document. |
DOCUMENT_TYPE_NODE | 10 | node is a doctype. |
DOCUMENT_FRAGMENT_NODE | 11 | node is a DocumentFragment node. |
NOTATION_NODE | 12 | |
DOCUMENT_POSITION_DISCONNECTED | 1 | Set when node and other are not in the same tree. |
DOCUMENT_POSITION_PRECEDING | 2 | Set when other is preceding node. |
DOCUMENT_POSITION_FOLLOWING | 4 | Set when other is following node. |
DOCUMENT_POSITION_CONTAINS | 8 | Set when other is an ancestor of node. |
DOCUMENT_POSITION_CONTAINED_BY | 16 | Set when other is a descendant of node. |
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | 32 | |
dispatchEvent | (event: Event): boolean | The |
ariaActiveDescendantElement | Element | null | |
ariaAtomic | string | null | |
ariaAutoComplete | string | null | |
ariaBrailleLabel | string | null | |
ariaBrailleRoleDescription | string | null | |
ariaBusy | string | null | |
ariaChecked | string | null | |
ariaColCount | string | null | |
ariaColIndex | string | null | |
ariaColIndexText | string | null | |
ariaColSpan | string | null | |
ariaControlsElements | readonly Element[] | null | |
ariaCurrent | string | null | |
ariaDescribedByElements | readonly Element[] | null | |
ariaDescription | string | null | |
ariaDetailsElements | readonly Element[] | null | |
ariaDisabled | string | null | |
ariaErrorMessageElements | readonly Element[] | null | |
ariaExpanded | string | null | |
ariaFlowToElements | readonly Element[] | null | |
ariaHasPopup | string | null | |
ariaHidden | string | null | |
ariaInvalid | string | null | |
ariaKeyShortcuts | string | null | |
ariaLabel | string | null | |
ariaLabelledByElements | readonly Element[] | null | |
ariaLevel | string | null | |
ariaLive | string | null | |
ariaModal | string | null | |
ariaMultiLine | string | null | |
ariaMultiSelectable | string | null | |
ariaOrientation | string | null | |
ariaOwnsElements | readonly Element[] | null | |
ariaPlaceholder | string | null | |
ariaPosInSet | string | null | |
ariaPressed | string | null | |
ariaReadOnly | string | null | |
ariaRelevant | string | null | |
ariaRequired | string | null | |
ariaRoleDescription | string | null | |
ariaRowCount | string | null | |
ariaRowIndex | string | null | |
ariaRowIndexText | string | null | |
ariaRowSpan | string | null | |
ariaSelected | string | null | |
ariaSetSize | string | null | |
ariaSort | string | null | |
ariaValueMax | string | null | |
ariaValueMin | string | null | |
ariaValueNow | string | null | |
ariaValueText | string | null | |
role | string | null | |
animate | (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation | |
getAnimations | (options?: GetAnimationsOptions): Animation[] | |
after | (...nodes: (Node | string)[]): void | Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
before | (...nodes: (Node | string)[]): void | Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
remove | (): void | Removes node. |
replaceWith | (...nodes: (Node | string)[]): void | Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
nextElementSibling | Element | null | Returns the first following sibling that is an element, and null otherwise. |
previousElementSibling | Element | null | Returns the first preceding sibling that is an element, and null otherwise. |
childElementCount | number | |
children | HTMLCollection | Returns the child elements. |
firstElementChild | Element | null | Returns the first child that is an element, and null otherwise. |
lastElementChild | Element | null | Returns the last child that is an element, and null otherwise. |
append | (...nodes: (Node | string)[]): void | Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
prepend | (...nodes: (Node | string)[]): void | Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
querySelector | <K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null
<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null
<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null
<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
<E extends Element = Element>(selectors: string): E | null | Returns the first element that is a descendant of node that matches selectors. |
querySelectorAll | <K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
<E extends Element = Element>(selectors: string): NodeListOf<E> | Returns all element descendants of node that match selectors. |
replaceChildren | (...nodes: (Node | string)[]): void | Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. |
assignedSlot | HTMLSlotElement | null | |
attributeStyleMap | StylePropertyMap | |
style | CSSStyleDeclaration | |
contentEditable | string | |
enterKeyHint | string | |
inputMode | string | |
isContentEditable | boolean | |
onabort | ((this: GlobalEventHandlers, ev: UIEvent) => any) | null | |
onanimationcancel | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | |
onanimationend | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | |
onanimationiteration | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | |
onanimationstart | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null | |
onauxclick | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onbeforeinput | ((this: GlobalEventHandlers, ev: InputEvent) => any) | null | |
onbeforematch | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onbeforetoggle | ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null | |
onblur | ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null | |
oncancel | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncanplay | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncanplaythrough | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onchange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onclick | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onclose | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncontextlost | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncontextmenu | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
oncontextrestored | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncopy | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | |
oncuechange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oncut | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | |
ondblclick | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
ondrag | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondragend | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondragenter | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondragleave | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondragover | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondragstart | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondrop | ((this: GlobalEventHandlers, ev: DragEvent) => any) | null | |
ondurationchange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onemptied | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onended | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onerror | OnErrorEventHandler | |
onfocus | ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null | |
onformdata | ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null | |
ongotpointercapture | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
oninput | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
oninvalid | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onkeydown | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | |
onkeypress | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | |
onkeyup | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null | |
onload | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onloadeddata | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onloadedmetadata | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onloadstart | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onlostpointercapture | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onmousedown | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmouseenter | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmouseleave | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmousemove | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmouseout | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmouseover | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onmouseup | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | |
onpaste | ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null | |
onpause | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onplay | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onplaying | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onpointercancel | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerdown | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerenter | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerleave | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointermove | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerout | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerover | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onpointerrawupdate | ((this: GlobalEventHandlers, ev: Event) => any) | null | Available only in secure contexts. |
onpointerup | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null | |
onprogress | ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null | |
onratechange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onreset | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onresize | ((this: GlobalEventHandlers, ev: UIEvent) => any) | null | |
onscroll | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onscrollend | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onsecuritypolicyviolation | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null | |
onseeked | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onseeking | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onselect | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onselectionchange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onselectstart | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onslotchange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onstalled | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onsubmit | ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null | |
onsuspend | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
ontimeupdate | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
ontoggle | ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null | |
ontouchcancel (省略可) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined | |
ontouchend (省略可) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined | |
ontouchmove (省略可) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined | |
ontouchstart (省略可) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined | |
ontransitioncancel | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | |
ontransitionend | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | |
ontransitionrun | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | |
ontransitionstart | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null | |
onvolumechange | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwaiting | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwebkitanimationend | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwebkitanimationiteration | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwebkitanimationstart | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwebkittransitionend | ((this: GlobalEventHandlers, ev: Event) => any) | null | |
onwheel | ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null | |
onbeforexrselect | ((this: GlobalEventHandlers, ev: XRSessionEvent) => any) | null | An XRSessionEvent of type beforexrselect is dispatched on the DOM overlay element before generating a WebXR selectstart input event if the -Z axis of the input source's targetRaySpace intersects the DOM overlay element at the time the input device's primary action is triggered. |
autofocus | boolean | |
dataset | DOMStringMap | |
nonce (省略可) | string | undefined | |
tabIndex | number | |
blur | (): void | |
focus | (options?: FocusOptions): void |
例
import type { ChikyuSpace } from "@johnmorrisdotca/chikyu-earth/space/element";
const space = document.createElement("chikyu-space") as ChikyuSpace;
space.setAttribute("time", "2026-11-02T12:00Z");
space.setAttribute("speed", "0");
document.body.append(space);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。