yano-js
TypeScript icon, indicating that this package has built-in type declarations

0.0.303 • Public • Published

Yano-js

Master

Yano is a general utility library for interactive websites.

Motivation

Yano-js is an interactive developer toolbox. It is not the next buzzword-filled, huge component library with ready-made UI solutions (such as modals, carousels, etc.) but it aims to provide the "hammer and nails" needed to build highly-interactive, performant, kickass websites.

Installation

npm install resize-observer-polyfill --save-dev
npm install intersection-observer --save-dev
npm install yano-js@latest --save-dev

Include resize-observer-polyfill and intersection-observer polyfill:

import '../../node_modules/intersection-observer/intersection-observer.js';
import ResizeObserver from 'resize-observer-polyfill';
window['ResizeObserver'] = ResizeObserver;

/* ... insert code that depends on yano-js ... */

Getting started

Import the library:

import {WebWorker} from 'yano-js';

const worker = new WebWorker((params)=> {
    return params.a * params.b;
})

worker.run({a: 5, b: 2}).then((result)=> {
   console.log(result); // 10
})

Import specific files:

import { mathf } from 'yano-js/lib/mathf/mathf/'
import { is } from 'yano-js/lib/is/is/'
import { dom } from 'yano-js/lib/dom/dom/'

ThreeJS deps

Classes under threef require three.js deps. Currently supports r110.

npm install --save-dev three@0.110.0
npm install --save-dev @types/three@0.103.2

Browser compatibility

Yano-js supports only "evergreen" browsers back to the latest two versions:

  • Chrome
  • Edge (Chromium version)
  • Firefox
  • Safari

Contributing

Please read CONTRIBUTING.md on how to develop for yano-js.

License

Please read LICENSE.md

Readme

Keywords

none

Package Sidebar

Install

npm i yano-js

Weekly Downloads

4,335

Version

0.0.303

License

MIT

Unpacked Size

577 kB

Total Files

287

Last publish

Collaborators

  • uxder
  • jeremydw