gifti-reader-js
A JavaScript GIFTI file format reader.
Last updated 4 years ago by rii-mango .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gifti-reader-js 
SYNC missed versions from official npm registry.

GIFTI-Reader-JS

A JavaScript GIFTI file format reader. This reader parses GIFTI files and supports ASCII, Base64, and GZIP-Base64 datatypes.

###Usage API and more examples

var gii = gifti.parse(giftiXMLString);

// DataArray.getData() will return Float32Array, Uint8Array or Int32Array depending on datatype
var points = gii.getPointsDataArray().getData();
var indices = gii.getTrianglesDataArray().getData();
var normals = gii.getNormalsDataArray().getData();
var colors = gii.getColorsDataArray().getData();
var labels = gii.labelTable;

###Install Get a packaged source file:

Or install via NPM:

npm install gifti-reader-js

Or install via Bower:

bower install gifti-reader-js

###Testing

npm test

###Building See the release folder for the latest builds or build it yourself using:

npm run build

This will output gifti-reader.js and gifti-reader-min.js to build/.

Acknowledgments

GIFTI-Reader-JS makes use of the following third-party libraries:

  • pako — for GZIP inflating
  • sax-js — for SAX parsing

Current Tags

  • 0.4.4                                ...           latest (4 years ago)

9 Versions

  • 0.4.4                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |