Code Monkey home page Code Monkey logo

sciter-js-sdk's Introduction

sciter-js-sdk

Sciter.JS - Sciter but with QuickJS on board instead of my TIScript

Script

Sciter.JS uses QuickJS

  • ES6: async/await, classes, modules, destructuring;
  • BigInt, BigFloat, BigDecimal - arbitrary precision IEEE 754 floating point operations and transcendental functions with exact rounding (currency, etc);
  • Node.JS runtime (more or less full) is coming;

Platforms

  • Windows - i32, i64 and arm64 - published;
  • MacOS - i64 and arm64 - pending;
  • Linux - i64, arm32, arm64 - pending;
  • Mobiles - pending;

Demo

Browser and Sciter

Browser and Sciter shows the same HTML document.

To run demo start run-calculator-browser.bat or run-calculator-sciter.bat. The later will start bin.win/x32/scapp.exe - standalone Sciter engine.

DOM and Runtime status

Implemented so far (list will be extended):

Document

Properties:

  • document.body
  • document.head
  • document.documentElement

Methods:

  • document.querySelector()
  • document.querySelectorAll()
  • document.getElementById()

Element extends Node

Properties:

  • element.className
  • element.id
  • element.tagName
  • element.innerHTML
  • element.outerHTML
  • element.innerText
  • element.nextElementSibling
  • element.previousElementSibling
  • element.value

Methods:

  • element.appendChild(node)
  • element.insertBefore(node, refNode)
  • element.insertAfter(node, refNode)
  • element.removeChild(node)
  • element.replaceChild(newNode,oldNode)
  • element.insertAdjacentHTML(where, html)
  • element.querySelector(selector)
  • element.querySelectorAll(selector)
  • element.addEventListener(...)

Node

Properties:

  • node.nodeName
  • node.nodeType
  • node.nodeValue
  • node.firstChild
  • node.lastChild
  • node.nextSibling
  • node.previousSibling
  • node.ownerDocument
  • node.parentNode
  • node.parentElement
  • node.textContent

Methods:

  • node.cloneNode()
  • node.contains()
  • node.compareDocumentPosition() - not yet
  • node.getRootNode()
  • node.hasChildNodes()
  • node.isEqualNode()
  • node.isSameNode()

Event

properties:

  • event.bubbles
  • event.cancelable
  • event.currentTarget
  • event.defaultPrevented
  • event.eventPhase
  • event.target
  • event.type

methods:

  • event.preventDefault()
  • event.stopImmediatePropagation()
  • event.stopPropagation()

global methods

  • console.log()
  • setTimeout(func,milliseconds)
  • clearTimeout(tid)
  • setInterval(func,milliseconds)
  • clearInterval(iid)

Window

There is no concept of Window in browser sense. Window there is quite strange entity that has no relation with desktop windows.

Instead Sciter.JS will offer Sciter.window object that represents current desktop window with these properties and attributes

  import {window} from 'Sciter'; // current window
  window.move(10,10,800,600);

sciter-js-sdk's People

Contributors

c-smile avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.