New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

regl-worldview

Package Overview
Dependencies
Maintainers
5
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regl-worldview - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "regl-worldview",
"version": "0.1.0",
"version": "0.1.1",
"description": "A reusable component for rendering 2D and 3D views using regl",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -265,4 +265,7 @@ // @flow

render() {
const { width, height, showDebug, keyMap, shiftKeys, style, cameraState } = this.props;
const { width, height, showDebug, keyMap, shiftKeys, style, cameraState, onCameraStateChange } = this.props;
const { worldviewContext } = this.state;
// If we are supplied controlled camera state and no onCameraStateChange callback
// then there is a 'fixed' camera from outside of worldview itself.
const isFixedCamera = cameraState && !onCameraStateChange;
const canvasHtml = (

@@ -286,4 +289,4 @@ <React.Fragment>

<div style={{ position: "relative", overflow: "hidden", ...style }}>
{/* skip rendering CameraListener if Worldview is controlled */}
{cameraState ? (
{/* skip rendering CameraListener if Worldview has a fixed camera */}
{isFixedCamera ? (
canvasHtml

@@ -290,0 +293,0 @@ ) : (

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

Sorry, the diff of this file is not supported yet

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

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