Skip to content

RupaFile

Copy as Markdown

A .rupaplay file, version 1: what the export writes (gzipped JSON) and loadFile reads. Its html and css are untrusted text: only mountFile writes them into the page, sanitised.

readonly classes: readonly string[]

Every class of the markup’s nodes (the auto markup choice looks for each).


readonly css: string

The design and animation CSS, scoped by the root class. Untrusted text: only mountFile installs it, sanitised.


readonly data: PlayerData

The flow’s table.


readonly fonts: readonly string[]

The font stylesheets of an export whose fonts stay external (Fontsource on jsDelivr only); empty when embedded.


readonly format: "rupaplay"

Always "rupaplay".


readonly html: string

The root’s markup (the root element itself). Untrusted text: only mountFile writes it, sanitised.


readonly player: string

The oldest player that reads it (x.y.z): an older player refuses the file (version).


readonly root: string

The root’s class.


readonly version: 1

The file format’s version, 1.