Reference · Rockets, variants, parts and the fit check
embedNotefunction
What an embed asks of the page around it, in words: a line for the demo to show.
Import it
import { embedNote } from "@johnmorrisdotca/uchusen-rockets";
Definition
function embedNote(kind: EmbedKind, options: RocketOptions): string
Parameters
| Name | Type | Description |
|---|---|---|
kind | "data" | "iframe" | "link" | "svg" | "module" | "element" | Which way of embedding. |
options | RocketOptions | The rocket being embedded. |
Returns
string
A line of text for the demo to show beside the code.
Examples
import { embedNote } from "@johnmorrisdotca/uchusen-rockets";
console.log(embedNote("iframe", { rocket: "starship" }));No script of your own. It draws the drawing at once, and the 3D view when the browser can. Add flight=1 to the address for the flight's controls.What it prints (run when this page was built)