1.17.1 • Published 8 days ago

@blinkk/degu v1.17.1

Weekly downloads
47
License
MIT
Repository
github
Last release
8 days ago

Degu

NPM Version GitHub Actions Dependency Status Known Vulnerabilities codecov

A general utility library for interactive websites, with a focus on performance.

Motivation

degu 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 degu@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 degu ... */

Getting started

Import the library:

import {WebWorker} from '@blinkk/degu';

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 * as mathf from 'degu/lib/mathf/mathf/'
import * as is from 'degu/lib/is/is/'
import * as dom from './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

degu 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 degu.

License

Please read LICENSE.md

1.17.1

8 days ago

1.17.0

14 days ago

1.16.2

22 days ago

1.16.1

24 days ago

1.16.0

1 month ago

1.15.0

1 month ago

1.14.0

1 month ago

1.12.0

1 month ago

1.13.0

1 month ago

1.11.0

1 month ago

1.10.0

1 month ago

1.9.8

1 month ago

1.9.7

1 month ago

1.9.6

1 month ago

1.9.5

2 months ago

1.9.4

2 months ago

1.9.3

2 months ago

1.9.2

2 months ago

1.9.1

2 months ago

1.9.0

2 months ago

1.8.2

2 months ago

1.8.1

2 months ago

1.8.0

2 months ago

1.7.0

2 months ago

1.6.0

2 months ago

1.5.0

2 months ago

1.4.1

3 months ago

1.4.0

3 months ago

1.2.0

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.1.0

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.0.337

5 months ago

0.0.336

5 months ago

0.0.335

5 months ago

0.0.334

5 months ago

0.0.339

5 months ago

0.0.338

5 months ago

0.0.333

5 months ago

0.0.332

5 months ago

0.0.348

4 months ago

0.0.347

4 months ago

0.0.346

4 months ago

0.0.345

5 months ago

0.0.340

5 months ago

0.0.344

5 months ago

0.0.343

5 months ago

0.0.342

5 months ago

0.0.341

5 months ago

0.0.331

5 months ago

0.0.330

5 months ago

0.0.329

5 months ago

0.0.328

5 months ago

0.0.327

6 months ago

0.0.326

6 months ago

0.0.325

6 months ago

0.0.324

7 months ago

0.0.323

7 months ago

0.0.319

7 months ago

0.0.318

7 months ago

0.0.322

7 months ago

0.0.321

7 months ago

0.0.317

8 months ago

0.0.316

8 months ago

0.0.315

8 months ago

0.0.314

8 months ago

0.0.313

8 months ago

0.0.312

8 months ago

0.0.311

8 months ago

0.0.310

8 months ago

0.0.308

8 months ago

0.0.309

8 months ago

0.0.307

8 months ago

0.0.306

8 months ago

0.0.305

9 months ago

0.0.304

9 months ago