ownCreditfunction
The credit of one of the package's own sources, for a page that draws something itself: the elements credit their own pictures and tiles in credits(), and a page that draws the Earth from the package's pictures
puts ownCredit("chikyu-pictures", 1) in its credit line.
Import it
import { ownCredit } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function ownCredit(id: string, used: number): Credit
Parameters
| Name | Type | Description |
|---|---|---|
id | string |
|
used | number | How many marks were drawn from it. |
Returns
Credit
The credit, marked as the package's own.
Examples
import { creditLine, ownCredit } from "@johnmorrisdotca/chikyu-earth/door";
console.log(creditLine([ownCredit("chikyu-tiles", 6)], "en"));Finer map tiles: NASA Earth Observatory (Blue Marble: Next Generation; Black Marble, Suomi NPP VIIRS data), cut by Chikyu Earth (Public domain).What it prints (run when this page was built)