Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · /chart/define

defineChartfunction

Define <hoshi-chart> in registry (the page's customElements by default) unless the name is taken. On a server, where there is no registry, it does nothing.

Import it

import { defineChart } from "@johnmorrisdotca/hoshi-stars/chart/define";

Definition

function defineChart(registry?: CustomElementRegistry | undefined): boolean

Parameters

NameTypeDescription
registry (optional)CustomElementRegistry | undefined

Where to define it.

Returns

boolean

Whether this call defined it.

Examples

import { defineChart } from "@johnmorrisdotca/hoshi-stars/chart/define";

defineChart();
document.body.insertAdjacentHTML("beforeend", '<hoshi-chart constellation="Ori"></hoshi-chart>');

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.