この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。
import WORLD from "@johnmorrisdotca/chizu/world"; import { drawChizu } from "@johnmorrisdotca/chizu/draw";drawChizu(WORLD, { tones: { JP: "selected" }, language: "ja" }) // the world as SVG text, Japan lit, names in Japaneseconst spots = layoutCallouts(WORLD, { codes: ["JP", "BR", "EG", "AU"], radiusRatio: 0.02 }) // numbered circles in open water, leaders that never crossconst q = findQuestion(WORLD, "FR", seededRandom(7)) // { target: "FR", choices: ["BE", "FR", "DE", "CH"], answerIndex: 1 }const france = await loadDivisions("fr") // its 96 départements, one file, fetched when asked forprojectPoint(WORLD, 139.69, 35.69) // [x, y] of Tokyo on the world's canvas, to pin a member theremountChizu(element, { map: WORLD, onSelect: (code) => … }) // a map to drag, zoom and press, by touch, mouse and keyboard