7.5.4 • Published 5 years ago

awv3-protocol v7.5.4

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago
npm install awv3-protocol

▲ API

pack

Raw deflates and base64-encodes an ArrayBuffer, the result will be a string.

import pack from 'awv3-protocol/pack'

const result = { command: 'Blob', data: pack(arrayBuffer) }

inflate

Inflates a zipped/base64 encoded stream back into string-shape.

import inflate from 'awv3-protocol/inflate'

const result = inflate(stream)

unpack

Unpack raw inflates, base64-decodes blobs ({ command: 'Blob', data: ... }). It uses multiple cores to deal with several objects at once. The result will be multiple, optimized json objects, containing meshes, lines, materials, meta data and so on. unpack returns a promise, when it resolves object has been fully unpacked.

import unpack from 'awv3-protocol/unpack'

unpack(object, data => ... ).then( ... )

▲ BUILD PRE-REQUISITES

node >= 6.0 (https://nodejs.org/en/download/current/)
npm  >= 3.0 (pre-installed by node)
yarn        (npm install yarn -g)

▲ INSTALL DEPENDENCIES AND BUILD

yarn
yarn start

▲ TESTING & ALIASING

awv3-protocol build a packed webworker, hence it needs to create a distributable via npm start. Without this step aliasing to the raw code will cause errors!

7.5.4

5 years ago

7.5.3

5 years ago

7.5.2-beta.0

5 years ago

7.5.2

6 years ago

7.5.1

6 years ago

7.5.0

6 years ago

7.4.0

6 years ago

7.3.3

6 years ago

7.3.2

6 years ago

7.3.1

6 years ago

7.3.0

6 years ago

7.2.1

6 years ago

7.2.0

6 years ago

7.1.4

6 years ago

7.1.3

7 years ago

7.1.2

7 years ago

7.1.1

7 years ago

7.1.0

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago