npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

x-visual

v0.3.86

Published

x-visual is a hi dimensional data visualization tool kit.

Downloads

463

Readme

MRT Support: npm

About

X-visual is a lib for data visiualization using Three.js for rendering.

Before v1.0, it's a part of a research project and a prototype of a comercial system used to verify and accumulate any usefull tech.

NPM Version

Currently there are two main branches:

  • master with even least minor version number for developing based on WebGL 2.

    E.g, 0.3.52

  • webgl1 with odd least minor version number for legacy function support.

    The latest branch version is 0.3.81.

Quick Start

    npm i x-visual

Start from the source

    git clone https://github.com/odys-z/x-visual.git
    # npm install webpack
    # npm i three
    npm i

test (without server)

X-visual using two ways to test.

html pages

This way needing clone from git repository like:

   git clone https://github.com/odys-z/x-visual.git

Then using webpack to transpile the tests.

There html test pages are located in test/html, which can be opened directly from local file system:

    test/html/index.html

Some of them are explained in docs/tests & examples

npm test

X-visual initially use Mocha for unit test, but is considering reducing test cases currently. So the "npm test" way is not always working.

The project uses Mocha and Chai for testing, imports like this.

    import chaiStats from 'chai-stats'

To build and test

    npm run build
    npm test

For installing and troubleshooting, there is a trying page may be helpful. See Mocha project example

  • debug tip

The Mocha & Chai test cases support debugging with Node:

    npm test -- --inspect --inspect-brk

Chrome will show the inspect list at

    chrome://inspect

See also [1] [2] [3]

Hello World

For ecs "hello world", try test/ecs.html. You should see something like this (v0.1.11)

ecs plain js example

  • tip

The html pages can be load from local file system if browser allow cross domain file access. Try (tested on Ubuntu):

    vim chrome
    # add this: google-chrome --allow-file-access-from-files --allow-file-access --allow-cross-origin-auth-prompt
    chmod +x chrome
    ./chrome

Since v0.3.56, some page can not been loaded without issue of CORS plus local files loaded from file system, due to the new version of browser's policies.

The testing page can be visited for runing python server at x-visual's root folder:

    python3 -m http.server 8000 --bind 127.0.0.1

Some Other Examples

  • Test Case: GLTFLoader (test/html/gltf-city.html)

  • Test Case: using html DOM as texture

To update rendering texture, use

    Htmltex.refresh();

see test/html/svg-canvas.html.

  • Test Case: Model Animization

  • Test Case: Particle Animation Script

Documents

All the documents are updating.

updating: Introduction, Guide & Reference

API jsdoc

Acknowledgement

Three.js

Note

Since v0.3.54, x-visual no longer directly depends on Three.js directly, via npm pacakge. It's using a forked and modified version of Three.js.

ECS - Powered by @fritzy/ecs

x-visual is a js ECS framework inspired by fritz's ecs-js. The ECS part of x-visual is modified from his source. See change log in x-visual depending package's README in packages/ecs-js.

extension: html2canvas

14 Jan. 2020:

According to it's README: "The script is still in a very experimental state".

So A tested working version is provided as packages/misc/html2canvas.esm.js

extension: Tween.js

Modified for adapting to ecs framework, together with unit tests.

Asset Resources

  • Low Poly City

Used by x-visual gltf loader test case, etc.

Referenced by Three.js tutorial: Three.js Loading a .GLTF File

Download: scene.gltf @ threejsfundamentals and together with referenced resources like scene.bin and textures/*.png.

or low poly city @ sketchfab

  • Simple Scene GLTF

Used by x-visual gltf mesh BuffereGeometry test case, etc.

Referenced by Gltf tutorial: A Minimal glTF File

  • Earth GLTF Assets

By Bisnessniper, Can be Downloaded @ CGTrader, licensed under Royalty Free License

It's texture also been used in another low polygon model.

  • Simple Route 66 Low Poly Scene

free 3D model by hj7880, download @ CGTrader, licensed under Royalty Free License.