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

three-render-objects

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-render-objects - npm Package Compare versions

Comparing version 1.26.4 to 1.26.5

19

dist/three-render-objects.common.js

@@ -163,3 +163,3 @@ 'use strict';

};
var threeRenderObjects = Kapsule__default['default']({
var threeRenderObjects = Kapsule__default["default"]({
props: {

@@ -270,3 +270,3 @@ width: {

state.onHover(topObject, state.hoverObj);
state.toolTipElem.innerHTML = topObject ? accessorFn__default['default'](state.tooltipContent)(topObject) || '' : '';
state.toolTipElem.innerHTML = topObject ? accessorFn__default["default"](state.tooltipContent)(topObject) || '' : '';
state.hoverObj = topObject;

@@ -276,3 +276,3 @@ }

TWEEN__default['default'].update(); // update camera animation tweens
TWEEN__default["default"].update(); // update camera animation tweens
}

@@ -309,5 +309,5 @@

var camLookAt = getLookAt();
new TWEEN__default['default'].Tween(camPos).to(finalPos, transitionDuration).easing(TWEEN__default['default'].Easing.Quadratic.Out).onUpdate(setCameraPos).start(); // Face direction in 1/3rd of time
new TWEEN__default["default"].Tween(camPos).to(finalPos, transitionDuration).easing(TWEEN__default["default"].Easing.Quadratic.Out).onUpdate(setCameraPos).start(); // Face direction in 1/3rd of time
new TWEEN__default['default'].Tween(camLookAt).to(finalLookAt, transitionDuration / 3).easing(TWEEN__default['default'].Easing.Quadratic.Out).onUpdate(setLookAt).start();
new TWEEN__default["default"].Tween(camLookAt).to(finalLookAt, transitionDuration / 3).easing(TWEEN__default["default"].Easing.Quadratic.Out).onUpdate(setLookAt).start();
}

@@ -333,3 +333,10 @@

function setLookAt(lookAt) {
state.controls.target = new three.Vector3(lookAt.x, lookAt.y, lookAt.z);
var lookAtVect = new three.Vector3(lookAt.x, lookAt.y, lookAt.z);
if (state.controls.target) {
state.controls.target = lookAtVect;
} else {
// Fly controls doesn't have target attribute
camera.lookAt(lookAtVect); // note: lookAt may be overridden by other controls in some cases
}
}

@@ -336,0 +343,0 @@

@@ -84,3 +84,2 @@ import { WebGLRendererParameters, Renderer, Object3D, WebGLRenderer, Scene, Camera, Intersection } from 'three';

export default ThreeRenderObjects;
export { ConfigOptions, ThreeRenderObjectsGenericInstance, ThreeRenderObjectsInstance };
export { ConfigOptions, ThreeRenderObjectsGenericInstance, ThreeRenderObjectsInstance, ThreeRenderObjects as default };

@@ -321,3 +321,10 @@ import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, TextureLoader, Vector2, Vector3, Box3, Color, Mesh, SphereGeometry, MeshBasicMaterial, BackSide, EventDispatcher, MOUSE, Quaternion, Spherical, Clock } from 'three';

function setLookAt(lookAt) {
state.controls.target = new three.Vector3(lookAt.x, lookAt.y, lookAt.z);
var lookAtVect = new three.Vector3(lookAt.x, lookAt.y, lookAt.z);
if (state.controls.target) {
state.controls.target = lookAtVect;
} else {
// Fly controls doesn't have target attribute
camera.lookAt(lookAtVect); // note: lookAt may be overridden by other controls in some cases
}
}

@@ -663,2 +670,2 @@

export default threeRenderObjects;
export { threeRenderObjects as default };
{
"name": "three-render-objects",
"version": "1.26.4",
"version": "1.26.5",
"description": "Easy way to render ThreeJS objects with built-in interaction defaults",

@@ -48,18 +48,18 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-object-rest-spread": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"@babel/core": "^7.16.12",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"postcss": "^8.3.5",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"postcss": "^8.4.5",
"rimraf": "^3.0.2",
"rollup": "^2.52.1",
"rollup-plugin-dts": "^3.0.2",
"rollup-plugin-postcss": "^4.0.0",
"rollup": "^2.66.1",
"rollup-plugin-dts": "^4.1.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"three": "^0.128.0",
"typescript": "^4.3.4"
"three": "^0.137.5",
"typescript": "^4.5.5"
}
}

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 too big to display

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