Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lore-engine

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lore-engine - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

7

example/flybrain1.js

@@ -22,11 +22,6 @@ (function () {

// let hsl = Lore.Core.Color.rgbToHsl(122, 22, 255);
// let hsl_enc = Lore.Core.Color.hslToFloat(hsl[0], hsl[1], hsl[2]);
// let hsl_back = Lore.Core.Color.floatToHsl(hsl_enc);
// console.log(hsl, hsl_enc, hsl_back);
fileReader.addEventListener('loaded', function (data) {
original_data = data;
pointHelper = new Lore.Helpers.PointHelper(lore, 'Seppli', 'simpleSphere');
pointHelper = new Lore.Helpers.PointHelper(lore, 'Seppli', 'sphere');
pointHelper.setPositionsXYZHSS(data['x'], data['y'], data['z'], data['c'], 1.0, 1.0)

@@ -33,0 +28,0 @@ pointHelper.setPointScale(1.0);

2

package.json
{
"name": "lore-engine",
"version": "1.0.26",
"version": "1.0.27",
"description": "A WebGL based 3D data visualization engine.",

@@ -5,0 +5,0 @@ "main": "./app.js",

@@ -238,2 +238,11 @@ //@ts-check

/**
* Get the zoom.
*
* @returns {Number} The zoom value.
*/
getZoom() {
return this.camera.zoom;
}
/**
* Set the camera to the top view (locks rotation).

@@ -240,0 +249,0 @@ *

@@ -166,18 +166,2 @@ //@ts-check

setTimeout(function () {
_this.updateViewport(0, 0, _this.getWidth(), _this.getHeight());
}, 1000);
// Also do it immediately, in case the timeout is not needed
this.updateViewport(0, 0, _this.getWidth(), _this.getHeight());
window.addEventListener('resize', function (event) {
let width = _this.getWidth();
let height = _this.getHeight();
_this.updateViewport(0, 0, width, height);
});
// Init effect(s)
this.effect = new Effect(this, 'fxaaEffect');
this.ready = true;

@@ -240,4 +224,4 @@ this.animate();

updateViewport(x, y, width, height) {
// width *= this.devicePixelRatio;
// height *= this.devicePixelRatio;
width *= this.devicePixelRatio;
height *= this.devicePixelRatio;
this.canvas.width = width;

@@ -249,6 +233,2 @@ this.canvas.height = height;

this.camera.updateProjectionMatrix();
// Also reinit the buffers and textures for the effect(s)
this.effect = new Effect(this, 'fxaaEffect');
this.effect.shader.uniforms.resolution.setValue([width, height]);
}

@@ -260,2 +240,3 @@

animate() {
this.updateViewport(0, 0, this.getWidth(), this.getHeight());
let that = this;

@@ -262,0 +243,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc