HTML kit command

preview.advance

Advance preview time

Runs the page's timers and animations forward by `millis` milliseconds (a whole number), without changing the saved source; answers whether the rendered page changed.

Kit
HTML 0.1.0 (HTML (.html or .htm))
Changes the document
no

Parameters

Parameters of preview.advance
NameTypeRequiredDescription
millisintegerno

Call through html_run

text
html_run {
  "path": "<file>.html",
  "steps": [{ "command": "preview.advance" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: millis. html_run answers the step’s result in completed[i].result.

Result

Result of preview.advance
NameTypeRequiredDescription
changedbooleanyeswhether the rendered page changed
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "changed": {
      "description": "whether the rendered page changed",
      "type": "boolean"
    }
  },
  "required": [
    "changed"
  ],
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "millis": {
      "type": "integer"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (html_commands through @kition/[email protected], built from KitionAI/kition-html@e0ad2d3). As data: commands.jsonl.