Initial commit
This commit is contained in:
commit
05c65aad4d
155 changed files with 93617 additions and 0 deletions
41
viewer/core.js
Normal file
41
viewer/core.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import THREE from "./init.js";
|
||||
import TWEEN from "three/examples/jsm/libs/tween.module.js";
|
||||
|
||||
// core.js
|
||||
export const core = {
|
||||
clippingPlanes: null,
|
||||
materialsFolder: null,
|
||||
materialsPropertiesText: null,
|
||||
camera: null,
|
||||
colors: {},
|
||||
intensity: {},
|
||||
ambientLight: null,
|
||||
cameraLight: null,
|
||||
mainCanvas: null,
|
||||
noticeContainer: null,
|
||||
statusNotice: null,
|
||||
gridSize: null,
|
||||
dirLightTarget: null,
|
||||
lightHelper: null,
|
||||
scene: new THREE.Scene(),
|
||||
basicGrid: new THREE.Group(),
|
||||
axesHelper: new THREE.AxesHelper(),
|
||||
cameraCoords: null,
|
||||
tween: new TWEEN.Tween(),
|
||||
controls: null,
|
||||
transformControlClippingPlaneY: null,
|
||||
transformControlClippingPlaneX: null,
|
||||
transformControlClippingPlaneZ: null,
|
||||
planeHelpers: null,
|
||||
outlineClipping: null,
|
||||
sceneBackgroundColor: null,
|
||||
distanceGeometry: null,
|
||||
planeParams: null,
|
||||
clippingFolder: null,
|
||||
helperObjects: []
|
||||
// Add other shared state here
|
||||
};
|
||||
|
||||
export const setCore = (key, value) => {
|
||||
core[key] = value;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue