1.1.48 • Published 2 years ago

lore-engine v1.1.48

Weekly downloads
103
License
MIT
Repository
github
Last release
2 years ago

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

OptionIdentifierData TypeDefault Value
Antialiasingantialiasingbooleantrue
Verbose Modeverbosebooleanfalse
The HTML element where FPS info is displayedfpsElementHTMLElementdocument.getElementById('fps')
The canvas background colorclearColorLore.ColorLore.Color.fromHex('#000000')
The distance of the camera to the centerradiusnumber500
Clear DepthclearDepthnumber1.0
Center (LookAt)centerLore.Vector3fnew Lore.Vector3f()
Enable depth testenableDepthTestbooleantrue
Enable alpha blendingalphaBlendingbooleanfalse

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

OptionIdentifierData TypeDefault Value
Visualize the octree (for debug purposes)visualizeboolean or stringfalse, 'centers', 'cubes'
Enable multiselectmultiSelectbooleantrue

PointHelper

OptionIdentifierData TypeDefault Value
Create an octree when setting positionsoctreebooleantrue
The maximum number of vertices in a octree nodeoctreeThresholdnumber500
The maximum depth of the octreeoctreeMaxDepthnumber8
Point size scalingpointScalenumber1.0
The maximum point sizemaxPointSizenumber100.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.

1.1.48

2 years ago

1.1.46

2 years ago

1.1.42

2 years ago

1.1.22

2 years ago

1.1.20

2 years ago

1.1.26

2 years ago

1.1.10

4 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.0

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago