Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 2.28 KB

index.md

File metadata and controls

71 lines (42 loc) · 2.28 KB

DOM and Runtime implementation status

global methods

  • console.log(...)

  • console.warn(...)

  • console.error(...)

  • setTimeout(func,milliseconds)

  • clearTimeout(tid)

  • setInterval(func,milliseconds)

  • clearInterval(iid)

  • requestAnimationFrame(func): aid

  • cancelAnimationFrame(aid)

  • fetch() - Fetch API

    Fetch can also be used synchronously as follow fetch(..., {sync: true})

  • getComputedStyle(element[, pseudoEl]): Style

  • printf(format:string, ...):string

    The function does formatting of arguments using C-style printf conventions.

    Returns formatted string.

    In Sciter list of standard formatting types is extended by these two:

    • %v - takes argument and prints it as JSON.stringify(arg);
    • %V - takes argument and prints it as JSON.stringify(arg, null, " ");
  • scanf(format:string, input: string) : [...]

    Takes input string and parses it according the format specification using C-style scanf conventions. Returns list (array) of successfully parsed values.

global properties

  • globalThis - object, global namespace, aliased as window for compatibility with browsers.

  • devicePixelRatio - float, number of physical screen pixels in logical CSS px (dip).

Standard DOM objects

Sciter specific objects

  • Window - desktop window defined by HTML loaded in it.
  • Audio - audio playback.

Sciter specific modules

  • @sciter - Sciter's general methods.
  • @sys - System, File system and communication primitives (close to Node.JS runtime).
  • @env - Running environment primitives.
  • @storage - Persistent storage - NoSQL DB built into JS runtime.
  • @bjson - "binary JSON".
  • @debug