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

@shapediver/viewer.shared.node-tree

Package Overview
Dependencies
Maintainers
5
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shapediver/viewer.shared.node-tree - npm Package Compare versions

Comparing version 2.7.10 to 2.8.0

9

dist/implementation/AbstractTreeNode.js

@@ -17,3 +17,2 @@ "use strict";

const gl_matrix_1 = require("gl-matrix");
const tsyringe_1 = require("tsyringe");
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");

@@ -35,3 +34,3 @@ const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");

// #region Properties (13)
_AbstractTreeNode_uuidGenerator.set(this, tsyringe_1.container.resolve(viewer_shared_services_1.UuidGenerator));
_AbstractTreeNode_uuidGenerator.set(this, viewer_shared_services_1.UuidGenerator.instance);
_AbstractTreeNode_children.set(this, []);

@@ -69,3 +68,2 @@ _AbstractTreeNode_data.set(this, []);

__classPrivateFieldSet(this, _AbstractTreeNode_bones, value, "f");
this.updateVersion();
}

@@ -77,3 +75,2 @@ get boneInverses() {

__classPrivateFieldSet(this, _AbstractTreeNode_boneInverses, value, "f");
this.updateVersion();
}

@@ -103,3 +100,2 @@ get boundingBox() {

__classPrivateFieldSet(this, _AbstractTreeNode_excludeViewports, value, "f");
this.updateVersion();
}

@@ -139,3 +135,2 @@ get id() {

__classPrivateFieldSet(this, _AbstractTreeNode_restrictViewports, value, "f");
this.updateVersion();
}

@@ -147,3 +142,2 @@ get skinNode() {

__classPrivateFieldSet(this, _AbstractTreeNode_skinNode, value, "f");
this.updateVersion();
}

@@ -167,3 +161,2 @@ get transformations() {

__classPrivateFieldSet(this, _AbstractTreeNode_visible, value, "f");
this.updateVersion();
}

@@ -170,0 +163,0 @@ get worldMatrix() {

5

dist/implementation/AbstractTreeNodeData.js

@@ -16,3 +16,2 @@ "use strict";

exports.AbstractTreeNodeData = void 0;
const tsyringe_1 = require("tsyringe");
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");

@@ -31,4 +30,4 @@ class AbstractTreeNodeData {

_AbstractTreeNodeData_id.set(this, void 0);
_AbstractTreeNodeData_uuidGenerator.set(this, tsyringe_1.container.resolve(viewer_shared_services_1.UuidGenerator));
_AbstractTreeNodeData_eventEngine.set(this, tsyringe_1.container.resolve(viewer_shared_services_1.EventEngine));
_AbstractTreeNodeData_uuidGenerator.set(this, viewer_shared_services_1.UuidGenerator.instance);
_AbstractTreeNodeData_eventEngine.set(this, viewer_shared_services_1.EventEngine.instance);
__classPrivateFieldSet(this, _AbstractTreeNodeData_id, id || __classPrivateFieldGet(this, _AbstractTreeNodeData_uuidGenerator, "f").create(), "f");

@@ -35,0 +34,0 @@ __classPrivateFieldSet(this, _AbstractTreeNodeData_version, __classPrivateFieldGet(this, _AbstractTreeNodeData_uuidGenerator, "f").create(), "f");

@@ -5,4 +5,6 @@ import { ITreeNodeThreeJs } from "../../interfaces/three/ITreeNodeThreeJs";

export declare class Tree extends AbstractTree<ITreeNodeThreeJs> implements ITreeThreeJs {
constructor();
private static _instance;
private constructor();
static get instance(): Tree;
}
//# sourceMappingURL=Tree.d.ts.map
"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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tree = void 0;
const tsyringe_1 = require("tsyringe");
const AbstractTree_1 = require("../AbstractTree");
const TreeNodeThreejs_1 = require("./TreeNodeThreejs");
let Tree = class Tree extends AbstractTree_1.AbstractTree {
class Tree extends AbstractTree_1.AbstractTree {
// #endregion Properties (1)
// #region Constructors (1)
constructor() {
super(new TreeNodeThreejs_1.TreeNodeThreeJs('root'));
}
};
Tree = __decorate([
(0, tsyringe_1.singleton)(),
__metadata("design:paramtypes", [])
], Tree);
// #endregion Constructors (1)
// #region Public Static Accessors (1)
static get instance() {
return this._instance || (this._instance = new this());
}
}
exports.Tree = Tree;
//# sourceMappingURL=Tree.js.map
{
"name": "@shapediver/viewer.shared.node-tree",
"version": "2.7.10",
"version": "2.8.0",
"description": "",

@@ -42,10 +42,9 @@ "keywords": [],

"dependencies": {
"@shapediver/viewer.shared.math": "2.7.10",
"@shapediver/viewer.shared.services": "2.7.10",
"@shapediver/viewer.shared.math": "2.8.0",
"@shapediver/viewer.shared.services": "2.8.0",
"@types/three": "0.149.0",
"gl-matrix": "3.3.0",
"three": "0.149.0",
"tsyringe": "^4.5.0"
"three": "0.149.0"
},
"gitHead": "08d9680d3b199406d1c6bedc8fbeed3d1ad6a385"
"gitHead": "9caee20107c5d71e43de33edc14ee19d62ec268b"
}
import { mat4 } from 'gl-matrix'
import { container } from 'tsyringe'
import { UuidGenerator } from '@shapediver/viewer.shared.services'

@@ -12,3 +11,3 @@ import { Box, IBox } from '@shapediver/viewer.shared.math'

readonly #uuidGenerator: UuidGenerator = <UuidGenerator>container.resolve(UuidGenerator);
readonly #uuidGenerator: UuidGenerator = UuidGenerator.instance;

@@ -75,3 +74,2 @@ readonly #children: T[] = [];

this.#bones = value;
this.updateVersion();
}

@@ -85,3 +83,2 @@

this.#boneInverses = value;
this.updateVersion();
}

@@ -119,3 +116,2 @@

this.#excludeViewports = value;
this.updateVersion();
}

@@ -164,3 +160,2 @@

this.#restrictViewports = value;
this.updateVersion();
}

@@ -174,3 +169,2 @@

this.#skinNode = value;
this.updateVersion();
}

@@ -200,3 +194,2 @@

this.#visible = value;
this.updateVersion();
}

@@ -230,2 +223,3 @@

(<AbstractTreeNode<any, any>>child.parent) = this;
return true;

@@ -328,2 +322,3 @@ }

(<T | undefined>child.parent) = undefined;
return true;

@@ -336,2 +331,3 @@ }

this.#data.splice(index, 1);
return true;

@@ -344,2 +340,3 @@ }

this.#transformations.splice(index, 1);
return true;

@@ -346,0 +343,0 @@ }

@@ -1,2 +0,1 @@

import { container } from 'tsyringe'
import { UuidGenerator, EventEngine, EVENTTYPE } from '@shapediver/viewer.shared.services'

@@ -12,4 +11,4 @@

readonly #id: string;
readonly #uuidGenerator: UuidGenerator = <UuidGenerator>container.resolve(UuidGenerator);
readonly #eventEngine: EventEngine = <EventEngine>container.resolve(EventEngine);
readonly #uuidGenerator: UuidGenerator = UuidGenerator.instance;
readonly #eventEngine: EventEngine = EventEngine.instance;

@@ -16,0 +15,0 @@ // #endregion Properties (3)

@@ -1,2 +0,1 @@

import { singleton } from "tsyringe";
import { ITreeNodeThreeJs } from "../../interfaces/three/ITreeNodeThreeJs";

@@ -7,7 +6,24 @@ import { ITreeThreeJs } from "../../interfaces/three/ITreeThreeJs";

@singleton()
export class Tree extends AbstractTree<ITreeNodeThreeJs> implements ITreeThreeJs {
constructor() {
// #region Properties (1)
private static _instance: Tree;
// #endregion Properties (1)
// #region Constructors (1)
private constructor() {
super(new TreeNodeThreeJs('root'))
}
// #endregion Constructors (1)
// #region Public Static Accessors (1)
public static get instance() {
return this._instance || (this._instance = new this());
}
// #endregion Public Static Accessors (1)
}

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

Sorry, the diff of this file is not supported yet

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