awv3-protocol
npm install awv3-protocol
Last updated 2 years ago by drcmda .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install awv3-protocol 
SYNC missed versions from official npm registry.
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!

Current Tags

  • 7.5.2-beta.0                                ...           beta (2 years ago)
  • 7.5.4                                ...           latest (2 years ago)

35 Versions

  • 7.5.4                                ...           2 years ago
  • 7.5.3                                ...           2 years ago
  • 7.5.2-beta.0                                ...           2 years ago
  • 7.5.2                                ...           2 years ago
  • 7.5.1                                ...           2 years ago
  • 7.5.0                                ...           2 years ago
  • 7.4.0                                ...           2 years ago
  • 7.3.3                                ...           2 years ago
  • 7.3.2                                ...           2 years ago
  • 7.3.1                                ...           3 years ago
  • 7.3.0                                ...           3 years ago
  • 7.2.1                                ...           3 years ago
  • 7.2.0                                ...           3 years ago
  • 7.1.4                                ...           3 years ago
  • 7.1.3                                ...           3 years ago
  • 7.1.2                                ...           3 years ago
  • 7.1.1                                ...           3 years ago
  • 7.1.0                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |