Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shapediver/viewer.shared.types

Package Overview
Dependencies
Maintainers
5
Versions
216
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 2.9.11 to 2.10.0

62

dist/implementation/data/AnimationData.js

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,8 +13,6 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _AnimationData_animate, _AnimationData_animationTime, _AnimationData_duration, _AnimationData_name, _AnimationData_repeat, _AnimationData_start, _AnimationData_started, _AnimationData_tracks, _AnimationData_reset, _AnimationData_nodeIds;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnimationData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
const gl_matrix_1 = require("gl-matrix");
const GeometryData_1 = require("./GeometryData");
class AnimationData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { mat4, quat, vec3 } from 'gl-matrix';
import { GeometryData } from './GeometryData';
export class AnimationData extends AbstractTreeNodeData {
// #endregion Properties (8)

@@ -115,5 +112,5 @@ // #region Constructors (1)

id: idleTransformation.id,
matrix: gl_matrix_1.mat4.clone(idleTransformation.matrix)
matrix: mat4.clone(idleTransformation.matrix)
};
idleTransformation.matrix = gl_matrix_1.mat4.create();
idleTransformation.matrix = mat4.create();
continue;

@@ -127,3 +124,3 @@ }

id: idleTransformationScale.id,
matrix: gl_matrix_1.mat4.clone(idleTransformationScale.matrix)
matrix: mat4.clone(idleTransformationScale.matrix)
};

@@ -138,3 +135,3 @@ continue;

id: idleTransformationRotation.id,
matrix: gl_matrix_1.mat4.clone(idleTransformationRotation.matrix)
matrix: mat4.clone(idleTransformationRotation.matrix)
};

@@ -149,3 +146,3 @@ continue;

id: idleTransformationTranslation.id,
matrix: gl_matrix_1.mat4.clone(idleTransformationTranslation.matrix)
matrix: mat4.clone(idleTransformationTranslation.matrix)
};

@@ -172,7 +169,7 @@ continue;

const translationTransformation = track.node.transformations.find(t => t.id === 'gltf_matrix_translation');
translationTransformation.matrix = gl_matrix_1.mat4.create();
translationTransformation.matrix = mat4.create();
const rotationTransformation = track.node.transformations.find(t => t.id === 'gltf_matrix_rotation');
rotationTransformation.matrix = gl_matrix_1.mat4.create();
rotationTransformation.matrix = mat4.create();
const scaleTransformation = track.node.transformations.find(t => t.id === 'gltf_matrix_scale');
scaleTransformation.matrix = gl_matrix_1.mat4.create();
scaleTransformation.matrix = mat4.create();
continue;

@@ -200,3 +197,3 @@ }

if (idleTransformation) {
idleTransformation.matrix = gl_matrix_1.mat4.create();
idleTransformation.matrix = mat4.create();
}

@@ -206,9 +203,9 @@ else {

if (idleTransformationScale)
idleTransformationScale.matrix = gl_matrix_1.mat4.create();
idleTransformationScale.matrix = mat4.create();
const idleTransformationRotation = track.node.transformations.find(t => t.id === 'gltf_matrix_rotation');
if (idleTransformationRotation)
idleTransformationRotation.matrix = gl_matrix_1.mat4.create();
idleTransformationRotation.matrix = mat4.create();
const idleTransformationTranslation = track.node.transformations.find(t => t.id === 'gltf_matrix_translation');
if (idleTransformationTranslation)
idleTransformationTranslation.matrix = gl_matrix_1.mat4.create();
idleTransformationTranslation.matrix = mat4.create();
}

@@ -231,3 +228,3 @@ }

id: 'gltf_matrix_translation',
matrix: gl_matrix_1.mat4.create()
matrix: mat4.create()
};

@@ -240,3 +237,3 @@ track.node.transformations.push(translationTransformation);

id: 'gltf_matrix_rotation',
matrix: gl_matrix_1.mat4.create()
matrix: mat4.create()
};

@@ -249,3 +246,3 @@ track.node.transformations.push(rotationTransformation);

id: 'gltf_matrix_scale',
matrix: gl_matrix_1.mat4.create()
matrix: mat4.create()
};

@@ -257,9 +254,9 @@ track.node.transformations.push(scaleTransformation);

if (track.pivot) {
pivotMatrix = gl_matrix_1.mat4.fromTranslation(gl_matrix_1.mat4.create(), gl_matrix_1.vec3.fromValues(track.pivot[0], track.pivot[1], track.pivot[2]));
pivotMatrixInverse = gl_matrix_1.mat4.fromTranslation(gl_matrix_1.mat4.create(), gl_matrix_1.vec3.fromValues(-track.pivot[0], -track.pivot[1], -track.pivot[2]));
pivotMatrix = mat4.fromTranslation(mat4.create(), vec3.fromValues(track.pivot[0], track.pivot[1], track.pivot[2]));
pivotMatrixInverse = mat4.fromTranslation(mat4.create(), vec3.fromValues(-track.pivot[0], -track.pivot[1], -track.pivot[2]));
}
let quaternion = gl_matrix_1.quat.fromValues(track.values[j * 4 + 0], track.values[j * 4 + 1], track.values[j * 4 + 2], track.values[j * 4 + 3]);
const rotationMatrix = gl_matrix_1.mat4.fromQuat(gl_matrix_1.mat4.create(), quaternion);
let quaternion = quat.fromValues(track.values[j * 4 + 0], track.values[j * 4 + 1], track.values[j * 4 + 2], track.values[j * 4 + 3]);
const rotationMatrix = mat4.fromQuat(mat4.create(), quaternion);
if (pivotMatrix && pivotMatrixInverse) {
rotationTransformation.matrix = gl_matrix_1.mat4.multiply(gl_matrix_1.mat4.create(), gl_matrix_1.mat4.multiply(gl_matrix_1.mat4.create(), pivotMatrix, rotationMatrix), pivotMatrixInverse);
rotationTransformation.matrix = mat4.multiply(mat4.create(), mat4.multiply(mat4.create(), pivotMatrix, rotationMatrix), pivotMatrixInverse);
}

@@ -271,8 +268,8 @@ else {

else if (track.path === 'translation') {
let vector = gl_matrix_1.vec3.fromValues(track.values[j * 3 + 0], track.values[j * 3 + 1], track.values[j * 3 + 2]);
translationTransformation.matrix = gl_matrix_1.mat4.fromTranslation(gl_matrix_1.mat4.create(), vector);
let vector = vec3.fromValues(track.values[j * 3 + 0], track.values[j * 3 + 1], track.values[j * 3 + 2]);
translationTransformation.matrix = mat4.fromTranslation(mat4.create(), vector);
}
else if (track.path === 'scale') {
let vector = gl_matrix_1.vec3.fromValues(track.values[j * 3 + 0], track.values[j * 3 + 1], track.values[j * 3 + 2]);
scaleTransformation.matrix = gl_matrix_1.mat4.fromScaling(gl_matrix_1.mat4.create(), vector);
let vector = vec3.fromValues(track.values[j * 3 + 0], track.values[j * 3 + 1], track.values[j * 3 + 2]);
scaleTransformation.matrix = mat4.fromScaling(mat4.create(), vector);
}

@@ -286,3 +283,3 @@ else if (track.path === 'weights') {

for (let l = 0; l < node.data.length; l++)
if (node.data[l] instanceof GeometryData_1.GeometryData && node.data[l].morphWeights.length === weightCount)
if (node.data[l] instanceof GeometryData && node.data[l].morphWeights.length === weightCount)
node.data[l].morphWeights = weights;

@@ -301,4 +298,3 @@ for (let l = 0; l < node.children.length; l++)

}
exports.AnimationData = AnimationData;
_AnimationData_animate = new WeakMap(), _AnimationData_animationTime = new WeakMap(), _AnimationData_duration = new WeakMap(), _AnimationData_name = new WeakMap(), _AnimationData_repeat = new WeakMap(), _AnimationData_start = new WeakMap(), _AnimationData_started = new WeakMap(), _AnimationData_tracks = new WeakMap(), _AnimationData_reset = new WeakMap(), _AnimationData_nodeIds = new WeakMap();
//# sourceMappingURL=AnimationData.js.map

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoneData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class BoneData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class BoneData extends AbstractTreeNodeData {
// #region Constructors (1)

@@ -24,3 +21,2 @@ /**

}
exports.BoneData = BoneData;
//# sourceMappingURL=BoneData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,6 +13,4 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _CustomData_data;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class CustomData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class CustomData extends AbstractTreeNodeData {
// #endregion Properties (1)

@@ -50,4 +47,3 @@ // #region Constructors (1)

}
exports.CustomData = CustomData;
_CustomData_data = new WeakMap();
//# sourceMappingURL=CustomData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,9 +13,7 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _AttributeData_array, _AttributeData_byteOffset, _AttributeData_byteStride, _AttributeData_count, _AttributeData_elementBytes, _AttributeData_itemBytes, _AttributeData_itemSize, _AttributeData_max, _AttributeData_min, _AttributeData_morphAttributeData, _AttributeData_normalized, _AttributeData_sparse, _AttributeData_sparseIndices, _AttributeData_sparseValues, _AttributeData_target, _PrimitiveData_attributes, _PrimitiveData_boundingBoxes, _PrimitiveData_indices, _PrimitiveData_threeJsObject, _GeometryData_mode, _GeometryData_primitive, _GeometryData_attributeMaterial, _GeometryData_boundingBox, _GeometryData_effectMaterials, _GeometryData_material, _GeometryData_materialVariants, _GeometryData_morphWeights, _GeometryData_renderOrder, _GeometryData_standardMaterial, _GeometryData_threeJsObject;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeometryData = exports.PrimitiveData = exports.AttributeData = void 0;
const gl_matrix_1 = require("gl-matrix");
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");
const IGeometryData_1 = require("../../interfaces/data/IGeometryData");
class AttributeData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { mat4, vec3, quat } from 'gl-matrix';
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { Box } from '@shapediver/viewer.shared.math';
import { PRIMITIVE_MODE } from '../../interfaces/data/IGeometryData';
export class AttributeData extends AbstractTreeNodeData {
// #endregion Properties (15)

@@ -124,5 +121,4 @@ // #region Constructors (1)

}
exports.AttributeData = AttributeData;
_AttributeData_array = new WeakMap(), _AttributeData_byteOffset = new WeakMap(), _AttributeData_byteStride = new WeakMap(), _AttributeData_count = new WeakMap(), _AttributeData_elementBytes = new WeakMap(), _AttributeData_itemBytes = new WeakMap(), _AttributeData_itemSize = new WeakMap(), _AttributeData_max = new WeakMap(), _AttributeData_min = new WeakMap(), _AttributeData_morphAttributeData = new WeakMap(), _AttributeData_normalized = new WeakMap(), _AttributeData_sparse = new WeakMap(), _AttributeData_sparseIndices = new WeakMap(), _AttributeData_sparseValues = new WeakMap(), _AttributeData_target = new WeakMap();
class PrimitiveData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
export class PrimitiveData extends AbstractTreeNodeData {
// #endregion Properties (4)

@@ -152,3 +148,3 @@ // #region Constructors (1)

get boundingBox() {
return this.computeBoundingBox(gl_matrix_1.mat4.create());
return this.computeBoundingBox(mat4.create());
}

@@ -176,28 +172,28 @@ get indices() {

computeBoundingBox(matrix) {
const res = __classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").find(b => gl_matrix_1.mat4.equals(matrix, b.matrix));
const res = __classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").find(b => mat4.equals(matrix, b.matrix));
if (res)
return res.boundingBox;
if (__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION']) {
if (__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min.length === 3 && __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max.length === 3 && gl_matrix_1.mat4.equals(matrix, gl_matrix_1.mat4.create())) {
const boundingBox = new viewer_shared_math_1.Box(gl_matrix_1.vec3.fromValues(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[0], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[1], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[2]), gl_matrix_1.vec3.fromValues(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[0], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[1], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[2]));
if (__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min.length === 3 && __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max.length === 3 && mat4.equals(matrix, mat4.create())) {
const boundingBox = new Box(vec3.fromValues(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[0], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[1], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].min[2]), vec3.fromValues(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[0], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[1], __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].max[2]));
__classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").push({
boundingBox,
matrix: gl_matrix_1.mat4.clone(matrix)
matrix: mat4.clone(matrix)
});
return boundingBox;
}
else if (gl_matrix_1.mat4.equals(matrix, gl_matrix_1.mat4.create())) {
const boundingBox = new viewer_shared_math_1.Box();
else if (mat4.equals(matrix, mat4.create())) {
const boundingBox = new Box();
boundingBox.setFromAttributeArray(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].array, __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].byteStride, __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].itemBytes, matrix);
__classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").push({
boundingBox,
matrix: gl_matrix_1.mat4.clone(matrix)
matrix: mat4.clone(matrix)
});
}
else if (gl_matrix_1.quat.equals(gl_matrix_1.mat4.getRotation(gl_matrix_1.quat.create(), matrix), gl_matrix_1.quat.create())) {
const identityBB = this.computeBoundingBox(gl_matrix_1.mat4.create());
else if (quat.equals(mat4.getRotation(quat.create(), matrix), quat.create())) {
const identityBB = this.computeBoundingBox(mat4.create());
const boundingBox = identityBB.clone().applyMatrix(matrix);
__classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").push({
boundingBox,
matrix: gl_matrix_1.mat4.clone(matrix)
matrix: mat4.clone(matrix)
});

@@ -207,7 +203,7 @@ return boundingBox;

else {
const boundingBox = new viewer_shared_math_1.Box();
const boundingBox = new Box();
boundingBox.setFromAttributeArray(__classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].array, __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].byteStride, __classPrivateFieldGet(this, _PrimitiveData_attributes, "f")['POSITION'].itemBytes, matrix);
__classPrivateFieldGet(this, _PrimitiveData_boundingBoxes, "f").push({
boundingBox,
matrix: gl_matrix_1.mat4.clone(matrix)
matrix: mat4.clone(matrix)
});

@@ -217,8 +213,7 @@ return boundingBox;

}
return new viewer_shared_math_1.Box();
return new Box();
}
}
exports.PrimitiveData = PrimitiveData;
_PrimitiveData_attributes = new WeakMap(), _PrimitiveData_boundingBoxes = new WeakMap(), _PrimitiveData_indices = new WeakMap(), _PrimitiveData_threeJsObject = new WeakMap();
class GeometryData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
export class GeometryData extends AbstractTreeNodeData {
// #endregion Properties (11)

@@ -232,9 +227,9 @@ // #region Constructors (1)

*/
constructor(primitive, mode = IGeometryData_1.PRIMITIVE_MODE.TRIANGLES, material = null, morphWeights = [], attributeMaterial = null, id, version) {
constructor(primitive, mode = PRIMITIVE_MODE.TRIANGLES, material = null, morphWeights = [], attributeMaterial = null, id, version) {
super(id, version);
// #region Properties (11)
_GeometryData_mode.set(this, IGeometryData_1.PRIMITIVE_MODE.TRIANGLES);
_GeometryData_mode.set(this, PRIMITIVE_MODE.TRIANGLES);
_GeometryData_primitive.set(this, void 0);
_GeometryData_attributeMaterial.set(this, null);
_GeometryData_boundingBox.set(this, new viewer_shared_math_1.Box());
_GeometryData_boundingBox.set(this, new Box());
_GeometryData_effectMaterials.set(this, []);

@@ -314,3 +309,3 @@ _GeometryData_material.set(this, null);

intersect(origin, direction) {
if (this.mode !== IGeometryData_1.PRIMITIVE_MODE.TRIANGLES)
if (this.mode !== PRIMITIVE_MODE.TRIANGLES)
return null;

@@ -320,4 +315,3 @@ return this.boundingBox.intersect(origin, direction);

}
exports.GeometryData = GeometryData;
_GeometryData_mode = new WeakMap(), _GeometryData_primitive = new WeakMap(), _GeometryData_attributeMaterial = new WeakMap(), _GeometryData_boundingBox = new WeakMap(), _GeometryData_effectMaterials = new WeakMap(), _GeometryData_material = new WeakMap(), _GeometryData_materialVariants = new WeakMap(), _GeometryData_morphWeights = new WeakMap(), _GeometryData_renderOrder = new WeakMap(), _GeometryData_standardMaterial = new WeakMap(), _GeometryData_threeJsObject = new WeakMap();
//# sourceMappingURL=GeometryData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,6 +13,4 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _HTMLElementAnchorData_viewerHtmlElement, _HTMLElementAnchorData_data, _HTMLElementAnchorData_format, _HTMLElementAnchorData_hideable, _HTMLElementAnchorData_intersectionTarget, _HTMLElementAnchorData_location, _HTMLElementAnchorData_viewports, _HTMLElementAnchorCustomData_create, _HTMLElementAnchorCustomData_update;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTMLElementAnchorCustomData = exports.HTMLElementAnchorImageData = exports.HTMLElementAnchorTextData = exports.HTMLElementAnchorData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class HTMLElementAnchorData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class HTMLElementAnchorData extends AbstractTreeNodeData {
// #endregion Properties (9)

@@ -132,5 +129,4 @@ // #region Constructors (1)

}
exports.HTMLElementAnchorData = HTMLElementAnchorData;
_HTMLElementAnchorData_viewerHtmlElement = new WeakMap(), _HTMLElementAnchorData_data = new WeakMap(), _HTMLElementAnchorData_format = new WeakMap(), _HTMLElementAnchorData_hideable = new WeakMap(), _HTMLElementAnchorData_intersectionTarget = new WeakMap(), _HTMLElementAnchorData_location = new WeakMap(), _HTMLElementAnchorData_viewports = new WeakMap();
class HTMLElementAnchorTextData extends HTMLElementAnchorData {
export class HTMLElementAnchorTextData extends HTMLElementAnchorData {
// #region Constructors (1)

@@ -185,4 +181,3 @@ constructor(properties) {

}
exports.HTMLElementAnchorTextData = HTMLElementAnchorTextData;
class HTMLElementAnchorImageData extends HTMLElementAnchorData {
export class HTMLElementAnchorImageData extends HTMLElementAnchorData {
// #region Constructors (1)

@@ -231,4 +226,3 @@ constructor(properties) {

}
exports.HTMLElementAnchorImageData = HTMLElementAnchorImageData;
class HTMLElementAnchorCustomData extends HTMLElementAnchorData {
export class HTMLElementAnchorCustomData extends HTMLElementAnchorData {
// #endregion Properties (1)

@@ -275,4 +269,3 @@ // #region Constructors (1)

}
exports.HTMLElementAnchorCustomData = HTMLElementAnchorCustomData;
_HTMLElementAnchorCustomData_create = new WeakMap(), _HTMLElementAnchorCustomData_update = new WeakMap();
//# sourceMappingURL=HTMLElementAnchorData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,7 +13,5 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _AbstractMaterialData_alphaCutoff, _AbstractMaterialData_alphaMap, _AbstractMaterialData_alphaMode, _AbstractMaterialData_aoMap, _AbstractMaterialData_aoMapIntensity, _AbstractMaterialData_bumpMap, _AbstractMaterialData_bumpScale, _AbstractMaterialData_color, _AbstractMaterialData_emissiveMap, _AbstractMaterialData_emissiveness, _AbstractMaterialData_materialOutput, _AbstractMaterialData_map, _AbstractMaterialData_name, _AbstractMaterialData_normalMap, _AbstractMaterialData_normalScale, _AbstractMaterialData_opacity, _AbstractMaterialData_shading, _AbstractMaterialData_side, _AbstractMaterialData_threeJsObject;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractMaterialData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
const IMaterialAbstractData_1 = require("../../interfaces/data/material/IMaterialAbstractData");
class AbstractMaterialData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
export class AbstractMaterialData extends AbstractTreeNodeData {
// #endregion Properties (17)

@@ -33,3 +30,3 @@ // #region Constructors (1)

_AbstractMaterialData_alphaMap.set(this, void 0);
_AbstractMaterialData_alphaMode.set(this, IMaterialAbstractData_1.MATERIAL_ALPHA.OPAQUE);
_AbstractMaterialData_alphaMode.set(this, MATERIAL_ALPHA.OPAQUE);
_AbstractMaterialData_aoMap.set(this, void 0);

@@ -48,4 +45,4 @@ _AbstractMaterialData_aoMapIntensity.set(this, 1.0);

_AbstractMaterialData_opacity.set(this, 1.0);
_AbstractMaterialData_shading.set(this, IMaterialAbstractData_1.MATERIAL_SHADING.SMOOTH);
_AbstractMaterialData_side.set(this, IMaterialAbstractData_1.MATERIAL_SIDE.DOUBLE);
_AbstractMaterialData_shading.set(this, MATERIAL_SHADING.SMOOTH);
_AbstractMaterialData_side.set(this, MATERIAL_SIDE.DOUBLE);
_AbstractMaterialData_threeJsObject.set(this, {});

@@ -203,4 +200,3 @@ if (!properties)

}
exports.AbstractMaterialData = AbstractMaterialData;
_AbstractMaterialData_alphaCutoff = new WeakMap(), _AbstractMaterialData_alphaMap = new WeakMap(), _AbstractMaterialData_alphaMode = new WeakMap(), _AbstractMaterialData_aoMap = new WeakMap(), _AbstractMaterialData_aoMapIntensity = new WeakMap(), _AbstractMaterialData_bumpMap = new WeakMap(), _AbstractMaterialData_bumpScale = new WeakMap(), _AbstractMaterialData_color = new WeakMap(), _AbstractMaterialData_emissiveMap = new WeakMap(), _AbstractMaterialData_emissiveness = new WeakMap(), _AbstractMaterialData_materialOutput = new WeakMap(), _AbstractMaterialData_map = new WeakMap(), _AbstractMaterialData_name = new WeakMap(), _AbstractMaterialData_normalMap = new WeakMap(), _AbstractMaterialData_normalScale = new WeakMap(), _AbstractMaterialData_opacity = new WeakMap(), _AbstractMaterialData_shading = new WeakMap(), _AbstractMaterialData_side = new WeakMap(), _AbstractMaterialData_threeJsObject = new WeakMap();
//# sourceMappingURL=AbstractMaterialData.js.map

@@ -7,3 +7,3 @@ import { vec2 } from "gl-matrix";

#private;
constructor(image: HTMLImageElement, wrapS?: TEXTURE_WRAPPING, wrapT?: TEXTURE_WRAPPING, minFilter?: TEXTURE_FILTERING, magFilter?: TEXTURE_FILTERING, center?: vec2, color?: Color, offset?: vec2, repeat?: vec2, rotation?: number, flipY?: boolean, id?: string, version?: string);
constructor(image: HTMLImageElement, wrapS?: TEXTURE_WRAPPING, wrapT?: TEXTURE_WRAPPING, minFilter?: TEXTURE_FILTERING, magFilter?: TEXTURE_FILTERING, center?: vec2, color?: Color, offset?: vec2, repeat?: vec2, rotation?: number, texCoord?: number, flipY?: boolean, id?: string, version?: string);
get center(): vec2;

@@ -27,2 +27,4 @@ set center(value: vec2);

set rotation(value: number);
get texCoord(): number | undefined;
set texCoord(value: number | undefined);
get wrapS(): TEXTURE_WRAPPING;

@@ -29,0 +31,0 @@ set wrapS(value: TEXTURE_WRAPPING);

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -13,25 +12,24 @@ if (kind === "m") throw new TypeError("Private method is not writable");

};
var _MapData_center, _MapData_color, _MapData_flipY, _MapData_image, _MapData_magFilter, _MapData_minFilter, _MapData_offset, _MapData_repeat, _MapData_rotation, _MapData_wrapS, _MapData_wrapT;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapData = void 0;
const gl_matrix_1 = require("gl-matrix");
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
const IMapData_1 = require("../../interfaces/data/material/IMapData");
class MapData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
var _MapData_center, _MapData_color, _MapData_flipY, _MapData_image, _MapData_magFilter, _MapData_minFilter, _MapData_offset, _MapData_repeat, _MapData_rotation, _MapData_texCoord, _MapData_wrapS, _MapData_wrapT;
import { vec2 } from "gl-matrix";
import { AbstractTreeNodeData } from "@shapediver/viewer.shared.node-tree";
import { TEXTURE_FILTERING, TEXTURE_WRAPPING } from "../../interfaces/data/material/IMapData";
export class MapData extends AbstractTreeNodeData {
// #endregion Properties (11)
// #region Constructors (1)
constructor(image, wrapS = IMapData_1.TEXTURE_WRAPPING.REPEAT, wrapT = IMapData_1.TEXTURE_WRAPPING.REPEAT, minFilter = IMapData_1.TEXTURE_FILTERING.NONE, magFilter = IMapData_1.TEXTURE_FILTERING.NONE, center = gl_matrix_1.vec2.fromValues(0, 0), color, offset = gl_matrix_1.vec2.fromValues(0, 0), repeat = gl_matrix_1.vec2.fromValues(1, 1), rotation = 0, flipY = true, id, version) {
constructor(image, wrapS = TEXTURE_WRAPPING.REPEAT, wrapT = TEXTURE_WRAPPING.REPEAT, minFilter = TEXTURE_FILTERING.NONE, magFilter = TEXTURE_FILTERING.NONE, center = vec2.fromValues(0, 0), color, offset = vec2.fromValues(0, 0), repeat = vec2.fromValues(1, 1), rotation = 0, texCoord, flipY = true, id, version) {
super(id, version);
// #region Properties (11)
_MapData_center.set(this, gl_matrix_1.vec2.fromValues(0, 0));
_MapData_center.set(this, vec2.fromValues(0, 0));
_MapData_color.set(this, void 0);
_MapData_flipY.set(this, true);
_MapData_image.set(this, void 0);
_MapData_magFilter.set(this, IMapData_1.TEXTURE_FILTERING.NONE);
_MapData_minFilter.set(this, IMapData_1.TEXTURE_FILTERING.NONE);
_MapData_offset.set(this, gl_matrix_1.vec2.fromValues(0, 0));
_MapData_repeat.set(this, gl_matrix_1.vec2.fromValues(1, 1));
_MapData_magFilter.set(this, TEXTURE_FILTERING.NONE);
_MapData_minFilter.set(this, TEXTURE_FILTERING.NONE);
_MapData_offset.set(this, vec2.fromValues(0, 0));
_MapData_repeat.set(this, vec2.fromValues(1, 1));
_MapData_rotation.set(this, 0);
_MapData_wrapS.set(this, IMapData_1.TEXTURE_WRAPPING.REPEAT);
_MapData_wrapT.set(this, IMapData_1.TEXTURE_WRAPPING.REPEAT);
_MapData_texCoord.set(this, void 0);
_MapData_wrapS.set(this, TEXTURE_WRAPPING.REPEAT);
_MapData_wrapT.set(this, TEXTURE_WRAPPING.REPEAT);
__classPrivateFieldSet(this, _MapData_image, image, "f");

@@ -47,2 +45,3 @@ __classPrivateFieldSet(this, _MapData_wrapS, wrapS, "f");

__classPrivateFieldSet(this, _MapData_rotation, rotation, "f");
__classPrivateFieldSet(this, _MapData_texCoord, texCoord, "f");
__classPrivateFieldSet(this, _MapData_flipY, flipY, "f");

@@ -106,2 +105,8 @@ }

}
get texCoord() {
return __classPrivateFieldGet(this, _MapData_texCoord, "f");
}
set texCoord(value) {
__classPrivateFieldSet(this, _MapData_texCoord, value, "f");
}
get wrapS() {

@@ -122,7 +127,6 @@ return __classPrivateFieldGet(this, _MapData_wrapS, "f");

clone() {
return new MapData(this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.flipY, this.id, this.version);
return new MapData(this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.texCoord, this.flipY, this.id, this.version);
}
}
exports.MapData = MapData;
_MapData_center = new WeakMap(), _MapData_color = new WeakMap(), _MapData_flipY = new WeakMap(), _MapData_image = new WeakMap(), _MapData_magFilter = new WeakMap(), _MapData_minFilter = new WeakMap(), _MapData_offset = new WeakMap(), _MapData_repeat = new WeakMap(), _MapData_rotation = new WeakMap(), _MapData_wrapS = new WeakMap(), _MapData_wrapT = new WeakMap();
_MapData_center = new WeakMap(), _MapData_color = new WeakMap(), _MapData_flipY = new WeakMap(), _MapData_image = new WeakMap(), _MapData_magFilter = new WeakMap(), _MapData_minFilter = new WeakMap(), _MapData_offset = new WeakMap(), _MapData_repeat = new WeakMap(), _MapData_rotation = new WeakMap(), _MapData_texCoord = new WeakMap(), _MapData_wrapS = new WeakMap(), _MapData_wrapT = new WeakMap();
//# sourceMappingURL=MapData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,8 +13,6 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _MaterialGemData_refractionIndex, _MaterialGemData_impurityMap, _MaterialGemData_impurityScale, _MaterialGemData_colorTransferBegin, _MaterialGemData_colorTransferEnd, _MaterialGemData_center, _MaterialGemData_radius, _MaterialGemData_sphericalNormalMap, _MaterialGemData_gamma, _MaterialGemData_contrast, _MaterialGemData_brightness, _MaterialGemData_dispersion, _MaterialGemData_tracingDepth, _MaterialGemData_tracingOpacity, _MaterialGemData_envMap;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialGemData = void 0;
const AbstractMaterialData_1 = require("./AbstractMaterialData");
const IMaterialAbstractData_1 = require("../../interfaces/data/material/IMaterialAbstractData");
const gl_matrix_1 = require("gl-matrix");
class MaterialGemData extends AbstractMaterialData_1.AbstractMaterialData {
import { AbstractMaterialData } from './AbstractMaterialData';
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
import { vec3 } from 'gl-matrix';
export class MaterialGemData extends AbstractMaterialData {
// #endregion Properties (5)

@@ -37,3 +34,3 @@ // #region Constructors (1)

_MaterialGemData_colorTransferEnd.set(this, '#ffffff');
_MaterialGemData_center.set(this, gl_matrix_1.vec3.create());
_MaterialGemData_center.set(this, vec3.create());
_MaterialGemData_radius.set(this, 1);

@@ -248,3 +245,3 @@ _MaterialGemData_sphericalNormalMap.set(this, void 0);

this.alphaMap = undefined;
this.alphaMode = IMaterialAbstractData_1.MATERIAL_ALPHA.OPAQUE;
this.alphaMode = MATERIAL_ALPHA.OPAQUE;
this.aoMap = undefined;

@@ -262,4 +259,4 @@ this.aoMapIntensity = 1.0;

this.opacity = 1.0;
this.shading = IMaterialAbstractData_1.MATERIAL_SHADING.SMOOTH;
this.side = IMaterialAbstractData_1.MATERIAL_SIDE.DOUBLE;
this.shading = MATERIAL_SHADING.SMOOTH;
this.side = MATERIAL_SIDE.DOUBLE;
this.refractionIndex = 2.4;

@@ -270,3 +267,3 @@ this.impurityMap = undefined;

this.colorTransferEnd = '#ffffff';
this.center = gl_matrix_1.vec3.create();
this.center = vec3.create();
this.radius = 1;

@@ -283,4 +280,3 @@ this.sphericalNormalMap = undefined;

}
exports.MaterialGemData = MaterialGemData;
_MaterialGemData_refractionIndex = new WeakMap(), _MaterialGemData_impurityMap = new WeakMap(), _MaterialGemData_impurityScale = new WeakMap(), _MaterialGemData_colorTransferBegin = new WeakMap(), _MaterialGemData_colorTransferEnd = new WeakMap(), _MaterialGemData_center = new WeakMap(), _MaterialGemData_radius = new WeakMap(), _MaterialGemData_sphericalNormalMap = new WeakMap(), _MaterialGemData_gamma = new WeakMap(), _MaterialGemData_contrast = new WeakMap(), _MaterialGemData_brightness = new WeakMap(), _MaterialGemData_dispersion = new WeakMap(), _MaterialGemData_tracingDepth = new WeakMap(), _MaterialGemData_tracingOpacity = new WeakMap(), _MaterialGemData_envMap = new WeakMap();
//# sourceMappingURL=MaterialGemData.js.map

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialShadowData = void 0;
const AbstractMaterialData_1 = require("./AbstractMaterialData");
class MaterialShadowData extends AbstractMaterialData_1.AbstractMaterialData {
import { AbstractMaterialData } from "./AbstractMaterialData";
export class MaterialShadowData extends AbstractMaterialData {
// #region Constructors (1)

@@ -35,3 +32,2 @@ /**

}
exports.MaterialShadowData = MaterialShadowData;
//# sourceMappingURL=MaterialShadowData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,7 +13,5 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _MaterialSpecularGlossinessData_glossiness, _MaterialSpecularGlossinessData_glossinessMap, _MaterialSpecularGlossinessData_specular, _MaterialSpecularGlossinessData_specularGlossinessMap, _MaterialSpecularGlossinessData_specularMap, _MaterialSpecularGlossinessData_envMap;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialSpecularGlossinessData = void 0;
const AbstractMaterialData_1 = require("./AbstractMaterialData");
const IMaterialAbstractData_1 = require("../../interfaces/data/material/IMaterialAbstractData");
class MaterialSpecularGlossinessData extends AbstractMaterialData_1.AbstractMaterialData {
import { AbstractMaterialData } from './AbstractMaterialData';
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
export class MaterialSpecularGlossinessData extends AbstractMaterialData {
// #endregion Properties (5)

@@ -147,3 +144,3 @@ // #region Constructors (1)

this.alphaMap = undefined;
this.alphaMode = IMaterialAbstractData_1.MATERIAL_ALPHA.OPAQUE;
this.alphaMode = MATERIAL_ALPHA.OPAQUE;
this.aoMap = undefined;

@@ -161,4 +158,4 @@ this.aoMapIntensity = 1.0;

this.opacity = 1.0;
this.shading = IMaterialAbstractData_1.MATERIAL_SHADING.SMOOTH;
this.side = IMaterialAbstractData_1.MATERIAL_SIDE.DOUBLE;
this.shading = MATERIAL_SHADING.SMOOTH;
this.side = MATERIAL_SIDE.DOUBLE;
this.glossiness = 1;

@@ -172,4 +169,3 @@ this.specular = '#ffffff';

}
exports.MaterialSpecularGlossinessData = MaterialSpecularGlossinessData;
_MaterialSpecularGlossinessData_glossiness = new WeakMap(), _MaterialSpecularGlossinessData_glossinessMap = new WeakMap(), _MaterialSpecularGlossinessData_specular = new WeakMap(), _MaterialSpecularGlossinessData_specularGlossinessMap = new WeakMap(), _MaterialSpecularGlossinessData_specularMap = new WeakMap(), _MaterialSpecularGlossinessData_envMap = new WeakMap();
//# sourceMappingURL=MaterialSpecularGlossinessData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,7 +13,5 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _MaterialStandardData_attenuationColor, _MaterialStandardData_attenuationDistance, _MaterialStandardData_clearcoat, _MaterialStandardData_clearcoatMap, _MaterialStandardData_clearcoatNormalMap, _MaterialStandardData_clearcoatRoughness, _MaterialStandardData_clearcoatRoughnessMap, _MaterialStandardData_displacementMap, _MaterialStandardData_displacementScale, _MaterialStandardData_displacementBias, _MaterialStandardData_envMap, _MaterialStandardData_ior, _MaterialStandardData_metalness, _MaterialStandardData_metalnessMap, _MaterialStandardData_metalnessRoughnessMap, _MaterialStandardData_roughness, _MaterialStandardData_roughnessMap, _MaterialStandardData_sheen, _MaterialStandardData_sheenColor, _MaterialStandardData_sheenColorMap, _MaterialStandardData_sheenRoughness, _MaterialStandardData_sheenRoughnessMap, _MaterialStandardData_specularColor, _MaterialStandardData_specularColorMap, _MaterialStandardData_specularIntensity, _MaterialStandardData_specularIntensityMap, _MaterialStandardData_thickness, _MaterialStandardData_thicknessMap, _MaterialStandardData_transmission, _MaterialStandardData_transmissionMap;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialStandardData = void 0;
const AbstractMaterialData_1 = require("./AbstractMaterialData");
const IMaterialAbstractData_1 = require("../../interfaces/data/material/IMaterialAbstractData");
class MaterialStandardData extends AbstractMaterialData_1.AbstractMaterialData {
import { AbstractMaterialData } from './AbstractMaterialData';
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
export class MaterialStandardData extends AbstractMaterialData {
// #endregion Properties (26)

@@ -311,3 +308,3 @@ // #region Constructors (1)

this.alphaMap = undefined;
this.alphaMode = IMaterialAbstractData_1.MATERIAL_ALPHA.OPAQUE;
this.alphaMode = MATERIAL_ALPHA.OPAQUE;
this.aoMap = undefined;

@@ -325,4 +322,4 @@ this.aoMapIntensity = 1.0;

this.opacity = 1.0;
this.shading = IMaterialAbstractData_1.MATERIAL_SHADING.SMOOTH;
this.side = IMaterialAbstractData_1.MATERIAL_SIDE.DOUBLE;
this.shading = MATERIAL_SHADING.SMOOTH;
this.side = MATERIAL_SIDE.DOUBLE;
this.attenuationColor = '#ffffff';

@@ -460,4 +457,3 @@ this.attenuationDistance = Infinity;

}
exports.MaterialStandardData = MaterialStandardData;
_MaterialStandardData_attenuationColor = new WeakMap(), _MaterialStandardData_attenuationDistance = new WeakMap(), _MaterialStandardData_clearcoat = new WeakMap(), _MaterialStandardData_clearcoatMap = new WeakMap(), _MaterialStandardData_clearcoatNormalMap = new WeakMap(), _MaterialStandardData_clearcoatRoughness = new WeakMap(), _MaterialStandardData_clearcoatRoughnessMap = new WeakMap(), _MaterialStandardData_displacementMap = new WeakMap(), _MaterialStandardData_displacementScale = new WeakMap(), _MaterialStandardData_displacementBias = new WeakMap(), _MaterialStandardData_envMap = new WeakMap(), _MaterialStandardData_ior = new WeakMap(), _MaterialStandardData_metalness = new WeakMap(), _MaterialStandardData_metalnessMap = new WeakMap(), _MaterialStandardData_metalnessRoughnessMap = new WeakMap(), _MaterialStandardData_roughness = new WeakMap(), _MaterialStandardData_roughnessMap = new WeakMap(), _MaterialStandardData_sheen = new WeakMap(), _MaterialStandardData_sheenColor = new WeakMap(), _MaterialStandardData_sheenColorMap = new WeakMap(), _MaterialStandardData_sheenRoughness = new WeakMap(), _MaterialStandardData_sheenRoughnessMap = new WeakMap(), _MaterialStandardData_specularColor = new WeakMap(), _MaterialStandardData_specularColorMap = new WeakMap(), _MaterialStandardData_specularIntensity = new WeakMap(), _MaterialStandardData_specularIntensityMap = new WeakMap(), _MaterialStandardData_thickness = new WeakMap(), _MaterialStandardData_thicknessMap = new WeakMap(), _MaterialStandardData_transmission = new WeakMap(), _MaterialStandardData_transmissionMap = new WeakMap();
//# sourceMappingURL=MaterialStandardData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,7 +13,5 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _MaterialUnlitData_envMap;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialUnlitData = void 0;
const IMaterialAbstractData_1 = require("../../interfaces/data/material/IMaterialAbstractData");
const AbstractMaterialData_1 = require("./AbstractMaterialData");
class MaterialUnlitData extends AbstractMaterialData_1.AbstractMaterialData {
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from "../../interfaces/data/material/IMaterialAbstractData";
import { AbstractMaterialData } from "./AbstractMaterialData";
export class MaterialUnlitData extends AbstractMaterialData {
// #endregion Properties (1)

@@ -92,3 +89,3 @@ // #region Constructors (1)

this.alphaMap = undefined;
this.alphaMode = IMaterialAbstractData_1.MATERIAL_ALPHA.OPAQUE;
this.alphaMode = MATERIAL_ALPHA.OPAQUE;
this.aoMap = undefined;

@@ -106,9 +103,8 @@ this.aoMapIntensity = 1.0;

this.opacity = 1.0;
this.shading = IMaterialAbstractData_1.MATERIAL_SHADING.SMOOTH;
this.side = IMaterialAbstractData_1.MATERIAL_SIDE.DOUBLE;
this.shading = MATERIAL_SHADING.SMOOTH;
this.side = MATERIAL_SIDE.DOUBLE;
this.envMap = undefined;
}
}
exports.MaterialUnlitData = MaterialUnlitData;
_MaterialUnlitData_envMap = new WeakMap();
//# sourceMappingURL=MaterialUnlitData.js.map

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

"use strict";
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

@@ -14,6 +13,4 @@ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

var _MaterialVariantsData_variants, _MaterialVariantsData_geometryData, _MaterialVariantsData_variantIndex;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaterialVariantsData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class MaterialVariantsData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class MaterialVariantsData extends AbstractTreeNodeData {
// #endregion Properties (1)

@@ -60,4 +57,3 @@ // #region Constructors (1)

}
exports.MaterialVariantsData = MaterialVariantsData;
_MaterialVariantsData_variants = new WeakMap(), _MaterialVariantsData_geometryData = new WeakMap(), _MaterialVariantsData_variantIndex = new WeakMap();
//# sourceMappingURL=MaterialVariantsData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,6 +13,4 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _SDTFAttributeData_typeHint, _SDTFAttributeData_value, _SDTFAttributeData_resolvedValue, _SDTFAttributesData_attributes;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDTFAttributesData = exports.SDTFAttributeData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class SDTFAttributeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class SDTFAttributeData {
// #endregion Properties (2)

@@ -45,3 +42,2 @@ // #region Constructors (1)

}
exports.SDTFAttributeData = SDTFAttributeData;
_SDTFAttributeData_typeHint = new WeakMap(), _SDTFAttributeData_value = new WeakMap(), _SDTFAttributeData_resolvedValue = new WeakMap();

@@ -77,3 +73,3 @@ // export class SDTFAttributeAsyncData {

// }
class SDTFAttributesData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
export class SDTFAttributesData extends AbstractTreeNodeData {
// #endregion Properties (1)

@@ -101,4 +97,3 @@ // #region Constructors (1)

}
exports.SDTFAttributesData = SDTFAttributesData;
_SDTFAttributesData_attributes = new WeakMap();
//# sourceMappingURL=SDTFAttributesData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,6 +13,4 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _SDTFItemData_typeHint, _SDTFItemData_value, _SDTFItemData_attributes, _SDTFItemData_resolvedValue;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDTFItemData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
class SDTFItemData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
export class SDTFItemData extends AbstractTreeNodeData {
// #endregion Properties (3)

@@ -59,4 +56,3 @@ // #region Constructors (1)

}
exports.SDTFItemData = SDTFItemData;
_SDTFItemData_typeHint = new WeakMap(), _SDTFItemData_value = new WeakMap(), _SDTFItemData_attributes = new WeakMap(), _SDTFItemData_resolvedValue = new WeakMap();
//# sourceMappingURL=SDTFItemData.js.map

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

"use strict";
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -14,7 +13,5 @@ if (kind === "m") throw new TypeError("Private method is not writable");

var _SDTFOverviewData_overview;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDTFOverviewData = void 0;
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
const sdk_sdtf_primitives_1 = require("@shapediver/sdk.sdtf-primitives");
class SDTFOverviewData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { SdtfPrimitiveTypeGuard } from '@shapediver/sdk.sdtf-primitives';
export class SDTFOverviewData extends AbstractTreeNodeData {
// #endregion Properties (1)

@@ -50,6 +47,6 @@ // #region Constructors (1)

entry.count++;
if (sdk_sdtf_primitives_1.SdtfPrimitiveTypeGuard.isStringType(dataToCopy.typeHint)) {
if (SdtfPrimitiveTypeGuard.isStringType(dataToCopy.typeHint)) {
entry.values = (_a = entry.values) === null || _a === void 0 ? void 0 : _a.concat(dataToCopy.values.filter((item) => entry.values.indexOf(item) < 0));
}
if (sdk_sdtf_primitives_1.SdtfPrimitiveTypeGuard.isNumberType(dataToCopy.typeHint)) {
if (SdtfPrimitiveTypeGuard.isNumberType(dataToCopy.typeHint)) {
entry.min = Math.min(dataToCopy.min, entry.min);

@@ -81,4 +78,3 @@ entry.max = Math.max(dataToCopy.max, entry.max);

}
exports.SDTFOverviewData = SDTFOverviewData;
_SDTFOverviewData_overview = new WeakMap();
//# sourceMappingURL=SDTFOverviewData.js.map

@@ -1,57 +0,29 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SdtfPrimitiveTypeGuard = exports.SDTF_TYPEHINT = exports.SDTFItemData = exports.SDTFAttributeData = exports.SDTFAttributesData = exports.SDTFOverviewData = exports.TASK_TYPE = 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_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = exports.MapData = exports.MaterialGemData = exports.MaterialSpecularGlossinessData = exports.MaterialShadowData = exports.MaterialUnlitData = exports.AbstractMaterialData = exports.MaterialStandardData = void 0;
const CustomData_1 = require("./implementation/data/CustomData");
Object.defineProperty(exports, "CustomData", { enumerable: true, get: function () { return CustomData_1.CustomData; } });
const GeometryData_1 = require("./implementation/data/GeometryData");
Object.defineProperty(exports, "AttributeData", { enumerable: true, get: function () { return GeometryData_1.AttributeData; } });
Object.defineProperty(exports, "GeometryData", { enumerable: true, get: function () { return GeometryData_1.GeometryData; } });
Object.defineProperty(exports, "PrimitiveData", { enumerable: true, get: function () { return GeometryData_1.PrimitiveData; } });
const MaterialStandardData_1 = require("./implementation/material/MaterialStandardData");
Object.defineProperty(exports, "MaterialStandardData", { enumerable: true, get: function () { return MaterialStandardData_1.MaterialStandardData; } });
const HTMLElementAnchorData_1 = require("./implementation/data/HTMLElementAnchorData");
Object.defineProperty(exports, "HTMLElementAnchorCustomData", { enumerable: true, get: function () { return HTMLElementAnchorData_1.HTMLElementAnchorCustomData; } });
Object.defineProperty(exports, "HTMLElementAnchorData", { enumerable: true, get: function () { return HTMLElementAnchorData_1.HTMLElementAnchorData; } });
Object.defineProperty(exports, "HTMLElementAnchorImageData", { enumerable: true, get: function () { return HTMLElementAnchorData_1.HTMLElementAnchorImageData; } });
Object.defineProperty(exports, "HTMLElementAnchorTextData", { enumerable: true, get: function () { return HTMLElementAnchorData_1.HTMLElementAnchorTextData; } });
const SDTFItemData_1 = require("./implementation/sdtf/SDTFItemData");
Object.defineProperty(exports, "SDTFItemData", { enumerable: true, get: function () { return SDTFItemData_1.SDTFItemData; } });
const AnimationData_1 = require("./implementation/data/AnimationData");
Object.defineProperty(exports, "AnimationData", { enumerable: true, get: function () { return AnimationData_1.AnimationData; } });
const ITaskEvent_1 = require("./interfaces/events/ITaskEvent");
Object.defineProperty(exports, "TASK_TYPE", { enumerable: true, get: function () { return ITaskEvent_1.TASK_TYPE; } });
const MaterialVariantsData_1 = require("./implementation/material/MaterialVariantsData");
Object.defineProperty(exports, "MaterialVariantsData", { enumerable: true, get: function () { return MaterialVariantsData_1.MaterialVariantsData; } });
const MapData_1 = require("./implementation/material/MapData");
Object.defineProperty(exports, "MapData", { enumerable: true, get: function () { return MapData_1.MapData; } });
const MaterialSpecularGlossinessData_1 = require("./implementation/material/MaterialSpecularGlossinessData");
Object.defineProperty(exports, "MaterialSpecularGlossinessData", { enumerable: true, get: function () { return MaterialSpecularGlossinessData_1.MaterialSpecularGlossinessData; } });
const MaterialUnlitData_1 = require("./implementation/material/MaterialUnlitData");
Object.defineProperty(exports, "MaterialUnlitData", { enumerable: true, get: function () { return MaterialUnlitData_1.MaterialUnlitData; } });
const IMaterialAbstractData_1 = require("./interfaces/data/material/IMaterialAbstractData");
Object.defineProperty(exports, "MATERIAL_ALPHA", { enumerable: true, get: function () { return IMaterialAbstractData_1.MATERIAL_ALPHA; } });
Object.defineProperty(exports, "MATERIAL_SHADING", { enumerable: true, get: function () { return IMaterialAbstractData_1.MATERIAL_SHADING; } });
Object.defineProperty(exports, "MATERIAL_SIDE", { enumerable: true, get: function () { return IMaterialAbstractData_1.MATERIAL_SIDE; } });
const IGeometryData_1 = require("./interfaces/data/IGeometryData");
Object.defineProperty(exports, "PRIMITIVE_MODE", { enumerable: true, get: function () { return IGeometryData_1.PRIMITIVE_MODE; } });
const IMapData_1 = require("./interfaces/data/material/IMapData");
Object.defineProperty(exports, "TEXTURE_WRAPPING", { enumerable: true, get: function () { return IMapData_1.TEXTURE_WRAPPING; } });
Object.defineProperty(exports, "TEXTURE_FILTERING", { enumerable: true, get: function () { return IMapData_1.TEXTURE_FILTERING; } });
const AbstractMaterialData_1 = require("./implementation/material/AbstractMaterialData");
Object.defineProperty(exports, "AbstractMaterialData", { enumerable: true, get: function () { return AbstractMaterialData_1.AbstractMaterialData; } });
const SDTFAttributesData_1 = require("./implementation/sdtf/SDTFAttributesData");
Object.defineProperty(exports, "SDTFAttributeData", { enumerable: true, get: function () { return SDTFAttributesData_1.SDTFAttributeData; } });
Object.defineProperty(exports, "SDTFAttributesData", { enumerable: true, get: function () { return SDTFAttributesData_1.SDTFAttributesData; } });
const SDTFOverviewData_1 = require("./implementation/sdtf/SDTFOverviewData");
Object.defineProperty(exports, "SDTFOverviewData", { enumerable: true, get: function () { return SDTFOverviewData_1.SDTFOverviewData; } });
const BoneData_1 = require("./implementation/data/BoneData");
Object.defineProperty(exports, "BoneData", { enumerable: true, get: function () { return BoneData_1.BoneData; } });
const sdk_sdtf_v1_1 = require("@shapediver/sdk.sdtf-v1");
Object.defineProperty(exports, "SDTF_TYPEHINT", { enumerable: true, get: function () { return sdk_sdtf_v1_1.SdtfTypeHintName; } });
const sdk_sdtf_primitives_1 = require("@shapediver/sdk.sdtf-primitives");
Object.defineProperty(exports, "SdtfPrimitiveTypeGuard", { enumerable: true, get: function () { return sdk_sdtf_primitives_1.SdtfPrimitiveTypeGuard; } });
const MaterialGemData_1 = require("./implementation/material/MaterialGemData");
Object.defineProperty(exports, "MaterialGemData", { enumerable: true, get: function () { return MaterialGemData_1.MaterialGemData; } });
const MaterialShadowData_1 = require("./implementation/material/MaterialShadowData");
Object.defineProperty(exports, "MaterialShadowData", { enumerable: true, get: function () { return MaterialShadowData_1.MaterialShadowData; } });
import { CustomData } from './implementation/data/CustomData';
import { AttributeData, GeometryData, PrimitiveData } from './implementation/data/GeometryData';
import { MaterialStandardData, } from './implementation/material/MaterialStandardData';
import { HTMLElementAnchorCustomData, HTMLElementAnchorData, HTMLElementAnchorImageData, HTMLElementAnchorTextData } from './implementation/data/HTMLElementAnchorData';
import { SDTFItemData } from './implementation/sdtf/SDTFItemData';
import { AnimationData } from './implementation/data/AnimationData';
import { TASK_TYPE } from './interfaces/events/ITaskEvent';
import { MaterialVariantsData } from './implementation/material/MaterialVariantsData';
import { MapData } from './implementation/material/MapData';
import { MaterialSpecularGlossinessData } from './implementation/material/MaterialSpecularGlossinessData';
import { MaterialUnlitData } from './implementation/material/MaterialUnlitData';
import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from './interfaces/data/material/IMaterialAbstractData';
import { PRIMITIVE_MODE } from './interfaces/data/IGeometryData';
import { TEXTURE_WRAPPING, TEXTURE_FILTERING } from './interfaces/data/material/IMapData';
import { AbstractMaterialData } from './implementation/material/AbstractMaterialData';
import { SDTFAttributeData, SDTFAttributesData } from './implementation/sdtf/SDTFAttributesData';
import { SDTFOverviewData } from './implementation/sdtf/SDTFOverviewData';
import { BoneData } from './implementation/data/BoneData';
import { SdtfTypeHintName } from '@shapediver/sdk.sdtf-v1';
import { SdtfPrimitiveTypeGuard } from '@shapediver/sdk.sdtf-primitives';
import { MaterialGemData } from './implementation/material/MaterialGemData';
import { MaterialShadowData } from './implementation/material/MaterialShadowData';
export { MaterialStandardData, AbstractMaterialData, MaterialUnlitData, MaterialShadowData, MaterialSpecularGlossinessData, MaterialGemData, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, TEXTURE_WRAPPING, TEXTURE_FILTERING };
export { AnimationData, GeometryData, AttributeData, PrimitiveData, MaterialVariantsData, PRIMITIVE_MODE };
export { HTMLElementAnchorCustomData, HTMLElementAnchorTextData, HTMLElementAnchorImageData, HTMLElementAnchorData };
export { CustomData, BoneData };
export { TASK_TYPE };
export { SDTFOverviewData, SDTFAttributesData, SDTFAttributeData, SDTFItemData, SdtfTypeHintName as SDTF_TYPEHINT, SdtfPrimitiveTypeGuard };
//# sourceMappingURL=index.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=IAnimationData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=IBoneData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ICustomData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PRIMITIVE_MODE = void 0;
var PRIMITIVE_MODE;
export var PRIMITIVE_MODE;
(function (PRIMITIVE_MODE) {

@@ -13,3 +10,3 @@ PRIMITIVE_MODE[PRIMITIVE_MODE["POINTS"] = 0] = "POINTS";

PRIMITIVE_MODE[PRIMITIVE_MODE["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
})(PRIMITIVE_MODE = exports.PRIMITIVE_MODE || (exports.PRIMITIVE_MODE = {}));
})(PRIMITIVE_MODE || (PRIMITIVE_MODE = {}));
//# sourceMappingURL=IGeometryData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=IHTMLElementAnchorData.js.map

@@ -28,2 +28,3 @@ import { ITreeNodeData } from "@shapediver/viewer.shared.node-tree";

rotation: number;
texCoord?: number;
wrapS: TEXTURE_WRAPPING;

@@ -30,0 +31,0 @@ wrapT: TEXTURE_WRAPPING;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = void 0;
var TEXTURE_WRAPPING;
export var TEXTURE_WRAPPING;
(function (TEXTURE_WRAPPING) {

@@ -9,4 +6,4 @@ TEXTURE_WRAPPING[TEXTURE_WRAPPING["REPEAT"] = 10497] = "REPEAT";

TEXTURE_WRAPPING[TEXTURE_WRAPPING["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
})(TEXTURE_WRAPPING = exports.TEXTURE_WRAPPING || (exports.TEXTURE_WRAPPING = {}));
var TEXTURE_FILTERING;
})(TEXTURE_WRAPPING || (TEXTURE_WRAPPING = {}));
export var TEXTURE_FILTERING;
(function (TEXTURE_FILTERING) {

@@ -20,3 +17,3 @@ TEXTURE_FILTERING[TEXTURE_FILTERING["NONE"] = 0] = "NONE";

TEXTURE_FILTERING[TEXTURE_FILTERING["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
})(TEXTURE_FILTERING = exports.TEXTURE_FILTERING || (exports.TEXTURE_FILTERING = {}));
})(TEXTURE_FILTERING || (TEXTURE_FILTERING = {}));
//# sourceMappingURL=IMapData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MATERIAL_SHADING = exports.MATERIAL_ALPHA = exports.MATERIAL_SIDE = void 0;
var MATERIAL_SIDE;
export var MATERIAL_SIDE;
(function (MATERIAL_SIDE) {

@@ -9,4 +6,4 @@ MATERIAL_SIDE["DOUBLE"] = "double";

MATERIAL_SIDE["BACK"] = "back";
})(MATERIAL_SIDE = exports.MATERIAL_SIDE || (exports.MATERIAL_SIDE = {}));
var MATERIAL_ALPHA;
})(MATERIAL_SIDE || (MATERIAL_SIDE = {}));
export var MATERIAL_ALPHA;
(function (MATERIAL_ALPHA) {

@@ -16,8 +13,8 @@ MATERIAL_ALPHA["OPAQUE"] = "opaque";

MATERIAL_ALPHA["BLEND"] = "blend";
})(MATERIAL_ALPHA = exports.MATERIAL_ALPHA || (exports.MATERIAL_ALPHA = {}));
var MATERIAL_SHADING;
})(MATERIAL_ALPHA || (MATERIAL_ALPHA = {}));
export var MATERIAL_SHADING;
(function (MATERIAL_SHADING) {
MATERIAL_SHADING["FLAT"] = "flat";
MATERIAL_SHADING["SMOOTH"] = "smooth";
})(MATERIAL_SHADING = exports.MATERIAL_SHADING || (exports.MATERIAL_SHADING = {}));
})(MATERIAL_SHADING || (MATERIAL_SHADING = {}));
//# sourceMappingURL=IMaterialAbstractData.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=IMaterialGemDataProperties.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=IMaterialShadowData.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=IMaterialSpecularGlossinessDataProperties.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=IMaterialStandardData.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=IMaterialUnlitData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=IMaterialVariantsData.js.map

@@ -18,2 +18,4 @@ import { EVENTTYPE_CAMERA, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_TASK, EVENTTYPE_VIEWPORT } from "@shapediver/viewer.shared.services";

[EVENTTYPE_VIEWPORT.VIEWPORT_CLOSED]: IViewportEvent;
[EVENTTYPE_VIEWPORT.VIEWPORT_VISIBLE]: IViewportEvent;
[EVENTTYPE_VIEWPORT.VIEWPORT_HIDDEN]: IViewportEvent;
[EVENTTYPE_SESSION.SESSION_CREATED]: ISessionEvent;

@@ -20,0 +22,0 @@ [EVENTTYPE_SESSION.SESSION_CUSTOMIZED]: ISessionEvent;

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
import { EVENTTYPE_CAMERA, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_TASK, EVENTTYPE_VIEWPORT } from "@shapediver/viewer.shared.services";
//# sourceMappingURL=EventResponseMapping.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ICameraEvent.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ISceneEvent.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ISessionEvent.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TASK_TYPE = void 0;
var TASK_TYPE;
export var TASK_TYPE;
(function (TASK_TYPE) {

@@ -20,3 +17,3 @@ TASK_TYPE["AR_LOADING"] = "ar_loading";

TASK_TYPE["EXPORT_REQUEST"] = "export_request";
})(TASK_TYPE = exports.TASK_TYPE || (exports.TASK_TYPE = {}));
})(TASK_TYPE || (TASK_TYPE = {}));
//# sourceMappingURL=ITaskEvent.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=IViewportEvent.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ISDTFAttributesData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ISDTFAttributeVisualizationData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=ISDTFItemData.js.map

@@ -1,4 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
export {};
//# sourceMappingURL=ISDTFOverviewData.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=types.js.map
{
"name": "@shapediver/viewer.shared.types",
"version": "2.9.11",
"version": "2.10.0",
"description": "",

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

"@shapediver/sdk.sdtf-v1": "1.4.0",
"@shapediver/viewer.shared.math": "2.9.11",
"@shapediver/viewer.shared.node-tree": "2.9.11",
"@shapediver/viewer.shared.services": "2.9.11",
"@shapediver/viewer.shared.math": "2.10.0",
"@shapediver/viewer.shared.node-tree": "2.10.0",
"@shapediver/viewer.shared.services": "2.10.0",
"gl-matrix": "3.3.0"
},
"gitHead": "105aa4b6fb6de2e9d4dfac026030207460551c5b"
"gitHead": "3969d2d1c56ac1a6fc8fb86906b10a50c872f6a7"
}

@@ -18,2 +18,3 @@ import { vec2 } from "gl-matrix";

#rotation: number = 0;
#texCoord?: number;
#wrapS: TEXTURE_WRAPPING = TEXTURE_WRAPPING.REPEAT;

@@ -37,2 +38,3 @@ #wrapT: TEXTURE_WRAPPING = TEXTURE_WRAPPING.REPEAT;

rotation: number = 0,
texCoord?: number,
flipY: boolean = true,

@@ -53,2 +55,3 @@ id?: string,

this.#rotation = rotation;
this.#texCoord = texCoord;
this.#flipY = flipY;

@@ -133,2 +136,10 @@ }

public get texCoord(): number | undefined {
return this.#texCoord;
}
public set texCoord(value: number | undefined) {
this.#texCoord = value;
}
public get wrapS(): TEXTURE_WRAPPING {

@@ -155,3 +166,3 @@ return this.#wrapS;

public clone(): IMapData {
return new MapData(<HTMLImageElement>this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.flipY, this.id, this.version);
return new MapData(<HTMLImageElement>this.image, this.wrapS, this.wrapT, this.minFilter, this.magFilter, this.center, this.color, this.offset, this.repeat, this.rotation, this.texCoord, this.flipY, this.id, this.version);
}

@@ -158,0 +169,0 @@

@@ -33,2 +33,3 @@ import { ITreeNodeData } from "@shapediver/viewer.shared.node-tree";

rotation: number;
texCoord?: number;
wrapS: TEXTURE_WRAPPING;

@@ -35,0 +36,0 @@ wrapT: TEXTURE_WRAPPING;

@@ -19,2 +19,4 @@ import { EVENTTYPE_CAMERA, EVENTTYPE_INTERACTION, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_TASK, EVENTTYPE_VIEWPORT } from "@shapediver/viewer.shared.services";

[EVENTTYPE_VIEWPORT.VIEWPORT_CLOSED]: IViewportEvent,
[EVENTTYPE_VIEWPORT.VIEWPORT_VISIBLE]: IViewportEvent,
[EVENTTYPE_VIEWPORT.VIEWPORT_HIDDEN]: IViewportEvent,
[EVENTTYPE_SESSION.SESSION_CREATED]: ISessionEvent,

@@ -21,0 +23,0 @@ [EVENTTYPE_SESSION.SESSION_CUSTOMIZED]: ISessionEvent,

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

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

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

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

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