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

@shapediver/viewer.shared.types

Package Overview
Dependencies
Maintainers
0
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shapediver/viewer.shared.types - npm Package Compare versions

Comparing version 3.5.3 to 3.5.4

dist/implementation/data/InstanceData.d.ts

5

dist/implementation/data/InstanceMatricesData.d.ts
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { IInstanceMatricesData } from '../../interfaces/data/IInstanceMatricesData';
import { mat4 } from 'gl-matrix';
import { Color } from '../../types';
export declare class InstanceMatricesData extends AbstractTreeNodeData implements IInstanceMatricesData {

@@ -12,3 +13,5 @@ #private;

*/
constructor(instanceMatrices?: mat4[], id?: string, version?: string);
constructor(instanceMatrices?: mat4[], instanceColors?: Color[], id?: string, version?: string);
get instanceColors(): Color[];
set instanceColors(value: Color[]);
get instanceMatrices(): mat4[];

@@ -15,0 +18,0 @@ set instanceMatrices(value: mat4[]);

24

dist/implementation/data/InstanceMatricesData.js

@@ -13,3 +13,3 @@ "use strict";

};
var _InstanceMatricesData_instanceMatrices;
var _InstanceMatricesData_instanceColors, _InstanceMatricesData_instanceMatrices;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -19,3 +19,3 @@ exports.InstanceMatricesData = void 0;

class InstanceMatricesData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
// #endregion Properties (1)
// #endregion Properties (2)
// #region Constructors (1)

@@ -28,10 +28,18 @@ /**

*/
constructor(instanceMatrices = [], id, version) {
constructor(instanceMatrices = [], instanceColors = [], id, version) {
super(id, version);
// #region Properties (1)
// #region Properties (2)
_InstanceMatricesData_instanceColors.set(this, []);
_InstanceMatricesData_instanceMatrices.set(this, []);
__classPrivateFieldSet(this, _InstanceMatricesData_instanceMatrices, instanceMatrices, "f");
__classPrivateFieldSet(this, _InstanceMatricesData_instanceColors, instanceColors, "f");
}
// #endregion Constructors (1)
// #region Public Getters And Setters (2)
// #region Public Getters And Setters (4)
get instanceColors() {
return __classPrivateFieldGet(this, _InstanceMatricesData_instanceColors, "f");
}
set instanceColors(value) {
__classPrivateFieldSet(this, _InstanceMatricesData_instanceColors, value, "f");
}
get instanceMatrices() {

@@ -43,3 +51,3 @@ return __classPrivateFieldGet(this, _InstanceMatricesData_instanceMatrices, "f");

}
// #endregion Public Getters And Setters (2)
// #endregion Public Getters And Setters (4)
// #region Public Methods (1)

@@ -50,7 +58,7 @@ /**

clone() {
return new InstanceMatricesData(this.instanceMatrices, this.id, this.version);
return new InstanceMatricesData(this.instanceMatrices, this.instanceColors, this.id, this.version);
}
}
exports.InstanceMatricesData = InstanceMatricesData;
_InstanceMatricesData_instanceMatrices = new WeakMap();
_InstanceMatricesData_instanceColors = new WeakMap(), _InstanceMatricesData_instanceMatrices = new WeakMap();
//# sourceMappingURL=InstanceMatricesData.js.map

@@ -19,3 +19,3 @@ import { AbstractMaterialData } from './implementation/material/AbstractMaterialData';

import { IDraggingParameterJsonSchema, IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterProps, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateDraggingParameterSettings, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
import { IInstanceMatricesData } from './interfaces/data/IInstanceMatricesData';
import { IInstanceData } from './interfaces/data/IInstanceData';
import { IMapData, IMapDataProperties, IMapDataPropertiesDefinition, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';

@@ -32,3 +32,3 @@ import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE, MATERIAL_TYPE } from './interfaces/data/material/IMaterialAbstractData';

import { IMaterialVariantsData } from './interfaces/data/material/IMaterialVariantsData';
import { InstanceMatricesData } from './implementation/data/InstanceMatricesData';
import { InstanceData } from './implementation/data/InstanceData';
import { IOutputEvent } from './interfaces/events/IOutputEvent';

@@ -65,3 +65,3 @@ import { IParameterEvent } from './interfaces/events/IParameterEvent';

export { IAnchorDataImage, IAnchorDataText, IHTMLElementAnchorData, HTMLElementAnchorCustomData, HTMLElementAnchorTextData, HTMLElementAnchorImageData, HTMLElementAnchorData };
export { ICustomData, CustomData, IBoneData, BoneData, IInstanceMatricesData, InstanceMatricesData };
export { ICustomData, CustomData, IBoneData, BoneData, IInstanceData, InstanceData };
export { EventResponseMapping, IViewportEvent, ISessionEvent, IOutputEvent, ICameraEvent, IRenderingEvent, IParameterEvent, ISceneEvent, ITaskEvent, TASK_TYPE };

@@ -68,0 +68,0 @@ export { ISDTFOverviewData, SDTFOverviewData, ISDTFOverview, SDTFAttributesData, ISDTFAttributesData, ISDTFAttributeData, SDTFAttributeData, SDTFItemData, ISDTFItemData, ISDTFAttributeVisualizationData, SdtfTypeHintName as SDTF_TYPEHINT, SdtfPrimitiveTypeGuard };

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateDrawingParameterSettings = exports.IDrawingParameterJsonSchema = exports.validateDraggingParameterSettings = exports.IDraggingParameterJsonSchema = exports.validateGumballParameterSettings = exports.IGumballParameterJsonSchema = exports.validateSelectionParameterSettings = exports.ISelectionParameterJsonSchema = exports.validateInteractionParameterSettings = exports.IInteractionParameterJsonSchema = exports.PARAMETER_VISUALIZATION = exports.PARAMETER_TYPE = exports.SdtfPrimitiveTypeGuard = exports.SDTF_TYPEHINT = exports.SDTFItemData = exports.SDTFAttributeData = exports.SDTFAttributesData = exports.SDTFOverviewData = exports.TASK_TYPE = exports.InstanceMatricesData = exports.BoneData = exports.CustomData = exports.HTMLElementAnchorData = exports.HTMLElementAnchorImageData = exports.HTMLElementAnchorTextData = exports.HTMLElementAnchorCustomData = exports.PRIMITIVE_MODE = exports.MaterialVariantsData = exports.PrimitiveData = exports.AttributeData = exports.GeometryData = exports.AnimationData = exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = exports.MATERIAL_TYPE = exports.MATERIAL_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = exports.MapData = exports.MaterialBasicLineData = exports.MaterialMultiPointData = exports.MaterialPointData = exports.MaterialGemData = exports.MaterialSpecularGlossinessData = exports.MaterialShadowData = exports.MaterialUnlitData = exports.AbstractMaterialData = exports.MaterialStandardData = void 0;
exports.validateDrawingParameterSettings = exports.IDrawingParameterJsonSchema = exports.validateDraggingParameterSettings = exports.IDraggingParameterJsonSchema = exports.validateGumballParameterSettings = exports.IGumballParameterJsonSchema = exports.validateSelectionParameterSettings = exports.ISelectionParameterJsonSchema = exports.validateInteractionParameterSettings = exports.IInteractionParameterJsonSchema = exports.PARAMETER_VISUALIZATION = exports.PARAMETER_TYPE = exports.SdtfPrimitiveTypeGuard = exports.SDTF_TYPEHINT = exports.SDTFItemData = exports.SDTFAttributeData = exports.SDTFAttributesData = exports.SDTFOverviewData = exports.TASK_TYPE = exports.InstanceData = exports.BoneData = exports.CustomData = exports.HTMLElementAnchorData = exports.HTMLElementAnchorImageData = exports.HTMLElementAnchorTextData = exports.HTMLElementAnchorCustomData = exports.PRIMITIVE_MODE = exports.MaterialVariantsData = exports.PrimitiveData = exports.AttributeData = exports.GeometryData = exports.AnimationData = exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = exports.MATERIAL_TYPE = exports.MATERIAL_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = exports.MapData = exports.MaterialBasicLineData = exports.MaterialMultiPointData = exports.MaterialPointData = exports.MaterialGemData = exports.MaterialSpecularGlossinessData = exports.MaterialShadowData = exports.MaterialUnlitData = exports.AbstractMaterialData = exports.MaterialStandardData = void 0;
const AbstractMaterialData_1 = require("./implementation/material/AbstractMaterialData");

@@ -46,4 +46,4 @@ Object.defineProperty(exports, "AbstractMaterialData", { enumerable: true, get: function () { return AbstractMaterialData_1.AbstractMaterialData; } });

Object.defineProperty(exports, "MATERIAL_TYPE", { enumerable: true, get: function () { return IMaterialAbstractData_1.MATERIAL_TYPE; } });
const InstanceMatricesData_1 = require("./implementation/data/InstanceMatricesData");
Object.defineProperty(exports, "InstanceMatricesData", { enumerable: true, get: function () { return InstanceMatricesData_1.InstanceMatricesData; } });
const InstanceData_1 = require("./implementation/data/InstanceData");
Object.defineProperty(exports, "InstanceData", { enumerable: true, get: function () { return InstanceData_1.InstanceData; } });
const ITaskEvent_1 = require("./interfaces/events/ITaskEvent");

@@ -50,0 +50,0 @@ Object.defineProperty(exports, "TASK_TYPE", { enumerable: true, get: function () { return ITaskEvent_1.TASK_TYPE; } });

import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { mat4 } from 'gl-matrix';
import { Color } from '../../types';
export interface IInstanceMatricesData extends ITreeNodeData {
instanceColors: Color[];
instanceMatrices: mat4[];

@@ -5,0 +7,0 @@ clone(): IInstanceMatricesData;

{
"name": "@shapediver/viewer.shared.types",
"version": "3.5.3",
"version": "3.5.4",
"description": "",

@@ -43,9 +43,9 @@ "keywords": [],

"@shapediver/sdk.sdtf-v1": "1.5.3",
"@shapediver/viewer.shared.math": "3.5.3",
"@shapediver/viewer.shared.node-tree": "3.5.3",
"@shapediver/viewer.shared.services": "3.5.3",
"@shapediver/viewer.shared.math": "3.5.4",
"@shapediver/viewer.shared.node-tree": "3.5.4",
"@shapediver/viewer.shared.services": "3.5.4",
"gl-matrix": "3.3.0",
"zod": "^3.23.8"
},
"gitHead": "b1bc8787be49ae7457f039df05b3c4013d365370"
"gitHead": "739bf516d6af5db81c4f049947ea3a9126c74ee6"
}

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