@shapediver/viewer.rendering-engine.animation-engine
Advanced tools
Comparing version 2.7.10 to 2.8.0
@@ -6,3 +6,5 @@ import { IAnimationData } from '@shapediver/viewer.shared.types'; | ||
private readonly _tree; | ||
private static _instance; | ||
private _animations; | ||
static get instance(): AnimationEngine; | ||
get animations(): { | ||
@@ -9,0 +11,0 @@ [key: string]: IAnimationData; |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AnimationEngine = void 0; | ||
const tsyringe_1 = require("tsyringe"); | ||
const gl_matrix_1 = require("gl-matrix"); | ||
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree"); | ||
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types"); | ||
let AnimationEngine = class AnimationEngine { | ||
class AnimationEngine { | ||
constructor() { | ||
// #region Properties (2) | ||
this._tree = tsyringe_1.container.resolve(viewer_shared_node_tree_1.Tree); | ||
// #region Properties (3) | ||
this._tree = viewer_shared_node_tree_1.Tree.instance; | ||
this._animations = {}; | ||
// #endregion Private Methods (1) | ||
} | ||
// #endregion Properties (2) | ||
// #endregion Properties (3) | ||
// #region Public Static Accessors (1) | ||
static get instance() { | ||
return this._instance || (this._instance = new this()); | ||
} | ||
// #endregion Public Static Accessors (1) | ||
// #region Public Accessors (1) | ||
@@ -200,7 +198,4 @@ get animations() { | ||
} | ||
}; | ||
AnimationEngine = __decorate([ | ||
(0, tsyringe_1.singleton)() | ||
], AnimationEngine); | ||
} | ||
exports.AnimationEngine = AnimationEngine; | ||
//# sourceMappingURL=AnimationEngine.js.map |
{ | ||
"name": "@shapediver/viewer.rendering-engine.animation-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.shared.node-tree": "2.7.10", | ||
"@shapediver/viewer.shared.services": "2.7.10", | ||
"@shapediver/viewer.shared.types": "2.7.10", | ||
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.0", | ||
"@shapediver/viewer.shared.node-tree": "2.8.0", | ||
"@shapediver/viewer.shared.services": "2.8.0", | ||
"@shapediver/viewer.shared.types": "2.8.0", | ||
"@tweenjs/tween.js": "^18.6.4", | ||
"gl-matrix": "3.3.0", | ||
"tsyringe": "^4.5.0" | ||
"gl-matrix": "3.3.0" | ||
}, | ||
"gitHead": "08d9680d3b199406d1c6bedc8fbeed3d1ad6a385" | ||
"gitHead": "9caee20107c5d71e43de33edc14ee19d62ec268b" | ||
} |
@@ -1,3 +0,1 @@ | ||
import { container, singleton } from 'tsyringe' | ||
import { mat4, quat, vec3, vec4 } from 'gl-matrix' | ||
@@ -9,8 +7,9 @@ import { ITree, ITreeNode, Tree } from '@shapediver/viewer.shared.node-tree' | ||
@singleton() | ||
export class AnimationEngine implements IManager, IAnimationEngine { | ||
// #region Properties (2) | ||
// #region Properties (3) | ||
private readonly _tree: ITree = <ITree>container.resolve(Tree); | ||
private readonly _tree: ITree = Tree.instance; | ||
private static _instance: AnimationEngine; | ||
private _animations: { | ||
@@ -20,4 +19,12 @@ [key: string]: IAnimationData | ||
// #endregion Properties (2) | ||
// #endregion Properties (3) | ||
// #region Public Static Accessors (1) | ||
public static get instance() { | ||
return this._instance || (this._instance = new this()); | ||
} | ||
// #endregion Public Static Accessors (1) | ||
// #region Public Accessors (1) | ||
@@ -24,0 +31,0 @@ |
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
488
46635
+ 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