HtmlifyOptions
import type { HtmlifyOptions } from "https://raw.githubusercontent.com/SheepTester/htmlifier/v1.0.2/src/htmlifier.ts";
Options to customise the resulting converted HTML file.
§Properties
Customisation options for the buttons on the top right of the page.
Control the behaviour of cloud variables when HTMLified. Cloud variables are stored in localStorage by default.
A File
containing an image to set the cursor to, or 'hidden'
to hide
the cursor, or null
to use the default cursor.
List of URLs or JavaScript files containing the unofficial extensions that the project uses.
Whether sprite fencing is enabled to prevent sprites from going off screen (on by default in vanilla Scratch). Default: true.
List of URLs or JavaScript files to include in the resulting HTML file. In addition to having access to DOM APIs (as opposed to unofficial extensions, which are sandboxed in a Web Worker), the resulting HTML file also makes the following variables global:
vm
has the instance of Scratch'sVirtualMachine
setCloud(name, value)
sets a cloud variable with the namename
(including the ☁) tovalue
These injected scripts are equivalent to E羊icques "plugins," which are a euphemism for userscripts.
Whether to enforce reasonable limits such as the maximum list length (on by default in vanilla Scratch). Default: true.
Customisation options for the loading screen.
Customisation of list and variable monitor colours.
Whether to lock the cursor when the user clicks on the stage. The mouse x/y
blocks are set to the accumulative mouse position, so the limits
option
should be false
to allow it to extend beyond the stage.