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

lore-engine

v1.1.48

Published

A WebGL based 3D data visualization engine.

Downloads

675

Readme

Lore

If you use this code or application, please cite the original paper published by Bioinformatics: 10.1093/bioinformatics/btx760

Lore

Current Version: 1.1.20 (Godzilla)

Teasers

Browsing the SureChEMBL database (containing > 12 million datapoints): Faerun.

Example

A basic fiddle See the examples folder for more details.

Installation

You can either download or clone this repository and use the JavaScript file in the dist folder, or you can use yarn to install the package lore-engine:

yarn add lore-engine

Building Lore

If you decide not to use the ready-to-go scripts in dist, you can (edit and) build the project by running:

npm install
gulp

Getting Started

A simple example can be found in the example folder. The example data file was downloaded from the website of the Berkeley Drosophila Transcription Network Project. It is a very small data set (N=6000) chosen because of the small file size (larger files can not be hosted on github).

Options

Renderer

| Option | Identifier | Data Type | Default Value | |---|---|---|---| | Antialiasing | antialiasing | boolean | true | | Verbose Mode | verbose | boolean | false | | The HTML element where FPS info is displayed | fpsElement | HTMLElement | document.getElementById('fps') | | The canvas background color | clearColor | Lore.Color | Lore.Color.fromHex('#000000') | | The distance of the camera to the center | radius | number | 500 | | Clear Depth | clearDepth | number | 1.0 | | Center (LookAt) | center | Lore.Vector3f | new Lore.Vector3f() | | Enable depth test | enableDepthTest | boolean | true | | Enable alpha blending | alphaBlending | boolean | false |

CoordinatesHelper

The options for the coordinate helper are self-explanatory:

{
    position: new Lore.Vector3f(),
    axis: {
        x: {
            length: 50.0,
            color: Lore.Color.fromHex('#222222')
        },
        y: {
            length: 50.0,
            color: Lore.Color.fromHex('#222222')
        },
        z: {
            length: 50.0,
            color: Lore.Color.fromHex('#222222')
        }
    },
    ticks: {
        enabled: true,
        x: {
            count: 10,
            length: 5.0,
            offset: new Lore.Vector3f(),
            color: Lore.Color.fromHex('#1f1f1f')
        },
        y: {
            count: 10,
            length: 5.0,
            offset: new Lore.Vector3f(),
            color: Lore.Color.fromHex('#1f1f1f')
        },
        z: {
            count: 10,
            length: 5.0,
            offset: new Lore.Vector3f(),
            color: Lore.Color.fromHex('#1f1f1f')
        }
    },
    box: {
        enabled: true,
        x: {
            color: Lore.Color.fromHex('#222222')
        },
        y: {
            color: Lore.Color.fromHex('#222222')
        },
        z: {
            color: Lore.Color.fromHex('#222222')
        }
    },
}

OctreeHelper

| Option | Identifier | Data Type | Default Value | |---|---|---|---| | Visualize the octree (for debug purposes) | visualize | boolean or string | false, 'centers', 'cubes' | | Enable multiselect | multiSelect | boolean | true |

PointHelper

| Option | Identifier | Data Type | Default Value | |---|---|---|---| | Create an octree when setting positions | octree | boolean | true | | The maximum number of vertices in a octree node | octreeThreshold | number | 500 | | The maximum depth of the octree | octreeMaxDepth | number | 8 | | Point size scaling | pointScale | number | 1.0 | | The maximum point size | maxPointSize | number | 100.0 |

Documentation

The documentation can be found in the docs folder. A markdown version is available here

Contributions & Thanks

BrowserStack Logo

Big thanks to Browserstack for providing us with their excellent App and Browser Testing service. This allows us to test our library quickly on a wide range of browsers and operating systems.