@shapediver/viewer.rendering-engine.light-engine
Advanced tools
Comparing version 2.7.10 to 2.8.0
@@ -18,3 +18,2 @@ "use strict"; | ||
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree"); | ||
const tsyringe_1 = require("tsyringe"); | ||
class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData { | ||
@@ -32,3 +31,3 @@ // #endregion Properties (6) | ||
_AbstractLight_useNodeData.set(this, false); | ||
this._uuidGenerator = tsyringe_1.container.resolve(viewer_shared_services_1.UuidGenerator); | ||
this._uuidGenerator = viewer_shared_services_1.UuidGenerator.instance; | ||
__classPrivateFieldSet(this, _AbstractLight_color, properties.color, "f"); | ||
@@ -35,0 +34,0 @@ __classPrivateFieldSet(this, _AbstractLight_intensity, properties.intensity, "f"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LightEngine = void 0; | ||
const tsyringe_1 = require("tsyringe"); | ||
const gl_matrix_1 = require("gl-matrix"); | ||
@@ -21,6 +20,6 @@ const viewer_shared_services_1 = require("@shapediver/viewer.shared.services"); | ||
// #region Properties (6) | ||
this._converter = tsyringe_1.container.resolve(viewer_shared_services_1.Converter); | ||
this._converter = viewer_shared_services_1.Converter.instance; | ||
this._lightNode = new viewer_shared_node_tree_1.TreeNode('lights'); | ||
this._tree = tsyringe_1.container.resolve(viewer_shared_node_tree_1.Tree); | ||
this._uuidGenerator = tsyringe_1.container.resolve(viewer_shared_services_1.UuidGenerator); | ||
this._tree = viewer_shared_node_tree_1.Tree.instance; | ||
this._uuidGenerator = viewer_shared_services_1.UuidGenerator.instance; | ||
this._lightScenes = {}; | ||
@@ -27,0 +26,0 @@ this._tree.root.addChild(this._lightNode); |
{ | ||
"name": "@shapediver/viewer.rendering-engine.light-engine", | ||
"version": "2.7.10", | ||
"version": "2.8.0", | ||
"description": "", | ||
@@ -42,11 +42,10 @@ "keywords": [], | ||
"dependencies": { | ||
"@shapediver/viewer.rendering-engine.rendering-engine": "2.7.10", | ||
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.0", | ||
"@shapediver/viewer.settings": "0.3.0", | ||
"@shapediver/viewer.shared.node-tree": "2.7.10", | ||
"@shapediver/viewer.shared.services": "2.7.10", | ||
"@shapediver/viewer.shared.types": "2.7.10", | ||
"gl-matrix": "3.3.0", | ||
"tsyringe": "^4.5.0" | ||
"@shapediver/viewer.shared.node-tree": "2.8.0", | ||
"@shapediver/viewer.shared.services": "2.8.0", | ||
"@shapediver/viewer.shared.types": "2.8.0", | ||
"gl-matrix": "3.3.0" | ||
}, | ||
"gitHead": "08d9680d3b199406d1c6bedc8fbeed3d1ad6a385" | ||
"gitHead": "9caee20107c5d71e43de33edc14ee19d62ec268b" | ||
} |
import { vec3 } from 'gl-matrix' | ||
import { UuidGenerator } from '@shapediver/viewer.shared.services' | ||
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree' | ||
import { container } from 'tsyringe' | ||
@@ -20,3 +19,3 @@ import { ILight, LIGHT_TYPE } from '../interface/ILight' | ||
protected readonly _uuidGenerator: UuidGenerator = <UuidGenerator>container.resolve(UuidGenerator); | ||
protected readonly _uuidGenerator: UuidGenerator = UuidGenerator.instance; | ||
@@ -23,0 +22,0 @@ // #endregion Properties (6) |
@@ -1,2 +0,1 @@ | ||
import { container, singleton } from 'tsyringe' | ||
import { vec3 } from 'gl-matrix' | ||
@@ -22,6 +21,6 @@ import { Converter, UuidGenerator, SettingsEngine, StateEngine } from '@shapediver/viewer.shared.services' | ||
private readonly _converter: Converter = <Converter>container.resolve(Converter); | ||
private readonly _converter: Converter = Converter.instance; | ||
private readonly _lightNode: ITreeNode = new TreeNode('lights'); | ||
private readonly _tree: ITree = <ITree>container.resolve(Tree); | ||
private readonly _uuidGenerator: UuidGenerator = <UuidGenerator>container.resolve(UuidGenerator); | ||
private readonly _tree: ITree = Tree.instance; | ||
private readonly _uuidGenerator: UuidGenerator = UuidGenerator.instance; | ||
@@ -28,0 +27,0 @@ private _lightScene!: LightScene; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
148852
2246
+ Added@shapediver/viewer.rendering-engine.rendering-engine@2.8.0(transitive)
+ Added@shapediver/viewer.shared.build-data@2.8.0(transitive)
+ Added@shapediver/viewer.shared.math@2.8.0(transitive)
+ Added@shapediver/viewer.shared.node-tree@2.8.0(transitive)
+ Added@shapediver/viewer.shared.services@2.8.0(transitive)
+ Added@shapediver/viewer.shared.types@2.8.0(transitive)
+ Added@types/uuid@9.0.8(transitive)
+ Addeduuid@9.0.1(transitive)
- Removedtsyringe@^4.5.0
- Removed@sentry/browser@6.19.7(transitive)
- Removed@sentry/core@6.19.7(transitive)
- Removed@sentry/hub@6.19.7(transitive)
- Removed@sentry/minimal@6.19.7(transitive)
- Removed@sentry/tracing@6.19.7(transitive)
- Removed@sentry/types@6.19.7(transitive)
- Removed@sentry/utils@6.19.7(transitive)
- Removed@shapediver/viewer.rendering-engine.rendering-engine@2.7.10(transitive)
- Removed@shapediver/viewer.shared.build-data@2.7.10(transitive)
- Removed@shapediver/viewer.shared.math@2.7.10(transitive)
- Removed@shapediver/viewer.shared.node-tree@2.7.10(transitive)
- Removed@shapediver/viewer.shared.services@2.7.10(transitive)
- Removed@shapediver/viewer.shared.types@2.7.10(transitive)
- Removed@types/uuid@8.3.4(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtsyringe@4.8.0(transitive)
Updated@shapediver/viewer.rendering-engine.rendering-engine@2.8.0