New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

three-shared-scene

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-shared-scene

THREE shared scene

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

three-shared-scene

Quick start

npm install three-shared-scene

On the frontend:

import * as THREE from "three";
import {
    SharedScene,
    SharedSceneWrapper
} from "three-shared-scene";

const sharedScene = new SharedScene();

// treat like you would a THREE.Scene object
const scene = new SharedSceneWrapper(sharedScene);

On the backend you can load an existing THREE.js scene from a file using the fs nodejs module:


const scene = new SharedScene();

const sceneJson = JSON.parse(fs.readFileSync('tests/test-scenes/basic.json', 'utf8'));

scene.fromJSON(testScene);

Usage with WebWorkers

import * as THREE from "three";
import {SharedScene} from "three-shared-scene";


const scene = new THREE.Scene();
const sharedScene = new SharedScene(scene, {});

FAQs

Package last updated on 20 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts