Yano is a general utility library for interactive websites.
Yano-js is currently in Alpha and the API can and probably will change in the future.
Yano-js is an interactive developers toolbox. It's not the next huge component library with ready made solutions (modal, carousels etc) but it's the nails and hammers that you need to build awesome customized kickass websites.
npm install resize-observer-polyfill --save-dev
npm install intersection-observer --save-dev
npm install yano-js@latest --save-devInclude resize-observer and intersection-observer polyfills in your project
import '../../node_modules/intersection-observer/intersection-observer.js';
import ResizeObserver from 'resize-observer-polyfill';
window['ResizeObserver'] = ResizeObserver;
Read the API Docs and also look at the /examples folder to get started.
Import the library as follows:
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/'Classes under threef require three.js deps. Currently supports r110.
In your project do:
npm install --save-dev [email protected]
npm install --save-dev @types/[email protected]
Please read CONTRIBUTING.md on how to develop for yano-js.
Please read LICENSE.md