Socket
Socket
Sign inDemoInstall

@shapediver/viewer.shared.types

Package Overview
Dependencies
Maintainers
0
Versions
203
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.2.1 to 3.2.2

24

dist/index.d.ts

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

import { EventResponseMapping } from './interfaces/events/EventResponseMapping';
import { GumballParameterValue, IGumballParameterSettings, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
import { HTMLElementAnchorCustomData, HTMLElementAnchorData, HTMLElementAnchorImageData, HTMLElementAnchorTextData } from './implementation/data/HTMLElementAnchorData';

@@ -17,12 +18,12 @@ import { IAnchorDataImage, IAnchorDataText, IHTMLElementAnchorData } from './interfaces/data/IHTMLElementAnchorData';

import { IGeneralInteractionParameterSettings, IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
import { IMapData, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE, MATERIAL_TYPE } from './interfaces/data/material/IMaterialAbstractData';
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties } from './interfaces/data/material/IMaterialBasicLineData';
import { IMaterialGemData, IMaterialGemDataProperties } from './interfaces/data/material/IMaterialGemDataProperties';
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties } from './interfaces/data/material/IMaterialMultiPointData';
import { IMaterialPointData, IMaterialPointDataProperties } from './interfaces/data/material/IMaterialPointData';
import { IMaterialShadowData, IMaterialShadowDataProperties } from './interfaces/data/material/IMaterialShadowData';
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
import { IMaterialStandardData, IMaterialStandardDataProperties } from './interfaces/data/material/IMaterialStandardData';
import { IMaterialUnlitData, IMaterialUnlitDataProperties } from './interfaces/data/material/IMaterialUnlitData';
import { IMapData, IMapDataProperties, IMapDataPropertiesDefinition, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE, MATERIAL_TYPE } from './interfaces/data/material/IMaterialAbstractData';
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition } from './interfaces/data/material/IMaterialBasicLineData';
import { IMaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition } from './interfaces/data/material/IMaterialGemDataProperties';
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialMultiPointData';
import { IMaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialPointData';
import { IMaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition } from './interfaces/data/material/IMaterialShadowData';
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
import { IMaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition } from './interfaces/data/material/IMaterialStandardData';
import { IMaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition } from './interfaces/data/material/IMaterialUnlitData';
import { IMaterialVariantsData } from './interfaces/data/material/IMaterialVariantsData';

@@ -56,4 +57,3 @@ import { IOutputEvent } from './interfaces/events/IOutputEvent';

import { MaterialStandardData } from './implementation/material/MaterialStandardData';
import { IGumballParameterSettings, GumballParameterValue, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
export { IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData, IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMapData, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING };
export { IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition, IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData, IMaterialAbstractDataPropertiesDefinition, IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition, IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition, IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition, IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition, IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition, IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition, IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition, IMapData, IMapDataProperties, IMapDataPropertiesDefinition, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING };
export { IAnimationData, AnimationData, IAnimationTrack, IGeometryData, IAttributeData, IPrimitiveData, IMaterialVariantsData, GeometryData, AttributeData, PrimitiveData, MaterialVariantsData, PRIMITIVE_MODE };

@@ -60,0 +60,0 @@ export { IAnchorDataImage, IAnchorDataText, IHTMLElementAnchorData, HTMLElementAnchorCustomData, HTMLElementAnchorTextData, HTMLElementAnchorImageData, HTMLElementAnchorData };

@@ -19,2 +19,4 @@ "use strict";

Object.defineProperty(exports, "CustomData", { enumerable: true, get: function () { return CustomData_1.CustomData; } });
const IGumballParameterSettings_1 = require("./interfaces/parameter/IGumballParameterSettings");
Object.defineProperty(exports, "isInteractionGumballParameterSettings", { enumerable: true, get: function () { return IGumballParameterSettings_1.isInteractionGumballParameterSettings; } });
const HTMLElementAnchorData_1 = require("./implementation/data/HTMLElementAnchorData");

@@ -77,4 +79,2 @@ Object.defineProperty(exports, "HTMLElementAnchorCustomData", { enumerable: true, get: function () { return HTMLElementAnchorData_1.HTMLElementAnchorCustomData; } });

Object.defineProperty(exports, "MaterialStandardData", { enumerable: true, get: function () { return MaterialStandardData_1.MaterialStandardData; } });
const IGumballParameterSettings_1 = require("./interfaces/parameter/IGumballParameterSettings");
Object.defineProperty(exports, "isInteractionGumballParameterSettings", { enumerable: true, get: function () { return IGumballParameterSettings_1.isInteractionGumballParameterSettings; } });
//# sourceMappingURL=index.js.map

@@ -0,26 +1,17 @@

import { Color } from '../../../types';
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { vec2 } from 'gl-matrix';
import { Color } from '../../../types';
export declare enum TEXTURE_WRAPPING {
REPEAT = 10497,
CLAMP_TO_EDGE = 33071,
MIRRORED_REPEAT = 33648
export declare type IMapDataProperties = IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer>;
export declare type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string>>;
export interface IMapData extends ITreeNodeData, IMapDataProperties {
clone(): IMapData;
}
export declare enum TEXTURE_FILTERING {
NONE = 0,
NEAREST = 9728,
LINEAR = 9729,
NEAREST_MIPMAP_NEAREST = 9984,
LINEAR_MIPMAP_NEAREST = 9985,
NEAREST_MIPMAP_LINEAR = 9986,
LINEAR_MIPMAP_LINEAR = 9987
}
export interface IMapData extends ITreeNodeData {
interface IMapDataPropertiesGeneric<T> {
asData?: boolean;
data?: number[];
blob?: Blob;
center: vec2;
color?: Color;
data?: number[];
flipY: boolean;
image: HTMLImageElement | ArrayBuffer;
image: T;
magFilter: TEXTURE_FILTERING;

@@ -34,4 +25,18 @@ minFilter: TEXTURE_FILTERING;

wrapT: TEXTURE_WRAPPING;
clone(): IMapData;
}
export declare enum TEXTURE_FILTERING {
NONE = 0,
NEAREST = 9728,
LINEAR = 9729,
NEAREST_MIPMAP_NEAREST = 9984,
LINEAR_MIPMAP_NEAREST = 9985,
NEAREST_MIPMAP_LINEAR = 9986,
LINEAR_MIPMAP_LINEAR = 9987
}
export declare enum TEXTURE_WRAPPING {
REPEAT = 10497,
CLAMP_TO_EDGE = 33071,
MIRRORED_REPEAT = 33648
}
export {};
//# sourceMappingURL=IMapData.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEXTURE_FILTERING = exports.TEXTURE_WRAPPING = void 0;
var TEXTURE_WRAPPING;
(function (TEXTURE_WRAPPING) {
TEXTURE_WRAPPING[TEXTURE_WRAPPING["REPEAT"] = 10497] = "REPEAT";
TEXTURE_WRAPPING[TEXTURE_WRAPPING["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
TEXTURE_WRAPPING[TEXTURE_WRAPPING["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
})(TEXTURE_WRAPPING = exports.TEXTURE_WRAPPING || (exports.TEXTURE_WRAPPING = {}));
exports.TEXTURE_WRAPPING = exports.TEXTURE_FILTERING = void 0;
// #endregion Interfaces (2)
// #region Enums (2)
var TEXTURE_FILTERING;

@@ -20,2 +16,9 @@ (function (TEXTURE_FILTERING) {

})(TEXTURE_FILTERING = exports.TEXTURE_FILTERING || (exports.TEXTURE_FILTERING = {}));
var TEXTURE_WRAPPING;
(function (TEXTURE_WRAPPING) {
TEXTURE_WRAPPING[TEXTURE_WRAPPING["REPEAT"] = 10497] = "REPEAT";
TEXTURE_WRAPPING[TEXTURE_WRAPPING["CLAMP_TO_EDGE"] = 33071] = "CLAMP_TO_EDGE";
TEXTURE_WRAPPING[TEXTURE_WRAPPING["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
})(TEXTURE_WRAPPING = exports.TEXTURE_WRAPPING || (exports.TEXTURE_WRAPPING = {}));
// #endregion Enums (2)
//# sourceMappingURL=IMapData.js.map
import { Color } from '../../../types';
import { IMapData } from './IMapData';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
export interface IMaterialAbstractData extends ITreeNodeData {
export declare type IMaterialAbstractDataProperties = Partial<IMaterialAbstractDataPropertiesGeneric<IMapData>>;
export declare type IMaterialAbstractDataPropertiesDefinition = Partial<IMaterialAbstractDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialAbstractData extends ITreeNodeData, IMaterialAbstractDataPropertiesGeneric<IMapData> {
materialOutput: boolean;
clone(): IMaterialAbstractData;
copy(source: IMaterialAbstractData): void;
reset(): void;
}
export interface IMaterialAbstractDataPropertiesGeneric<T> {
alphaCutoff: number;
alphaMap?: IMapData;
alphaMap?: T;
alphaMode: MATERIAL_ALPHA;
aoMap?: IMapData;
aoMap?: T;
aoMapIntensity: number;
bumpMap?: IMapData;
bumpMap?: T;
bumpScale: number;

@@ -15,8 +23,7 @@ color: Color;

depthWrite?: boolean;
emissiveMap?: IMapData;
emissiveMap?: T;
emissiveness: Color;
map?: IMapData;
materialOutput: boolean;
map?: T;
name?: string;
normalMap?: IMapData;
normalMap?: T;
normalScale: number;

@@ -27,27 +34,2 @@ opacity: number;

transparent?: boolean;
clone(): IMaterialAbstractData;
copy(source: IMaterialAbstractData): void;
reset(): void;
}
export interface IMaterialAbstractDataProperties {
alphaCutoff?: number;
alphaMap?: IMapData;
alphaMode?: MATERIAL_ALPHA;
aoMap?: IMapData;
aoMapIntensity?: number;
bumpMap?: IMapData;
bumpScale?: number;
color?: Color;
depthTest?: boolean;
depthWrite?: boolean;
emissiveMap?: IMapData;
emissiveness?: Color;
map?: IMapData;
name?: string;
normalMap?: IMapData;
normalScale?: number;
opacity?: number;
shading?: MATERIAL_SHADING;
side?: MATERIAL_SIDE;
transparent?: boolean;
type?: MATERIAL_TYPE;

@@ -70,7 +52,7 @@ }

export declare enum MATERIAL_TYPE {
STANDARD = "Standard",
SPECULAR_GLOSSINESS = "SpecularGlossiness",
UNLIT = "Unlit",
GEM = "Gem"
STANDARD = "standard",
SPECULAR_GLOSSINESS = "specular_glossiness",
UNLIT = "unlit",
GEM = "gem"
}
//# sourceMappingURL=IMaterialAbstractData.d.ts.map

@@ -25,8 +25,8 @@ "use strict";

(function (MATERIAL_TYPE) {
MATERIAL_TYPE["STANDARD"] = "Standard";
MATERIAL_TYPE["SPECULAR_GLOSSINESS"] = "SpecularGlossiness";
MATERIAL_TYPE["UNLIT"] = "Unlit";
MATERIAL_TYPE["GEM"] = "Gem";
MATERIAL_TYPE["STANDARD"] = "standard";
MATERIAL_TYPE["SPECULAR_GLOSSINESS"] = "specular_glossiness";
MATERIAL_TYPE["UNLIT"] = "unlit";
MATERIAL_TYPE["GEM"] = "gem";
})(MATERIAL_TYPE = exports.MATERIAL_TYPE || (exports.MATERIAL_TYPE = {}));
// #endregion Enums (4)
//# sourceMappingURL=IMaterialAbstractData.js.map

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

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
export declare type IMaterialBasicLineDataProperties = IMaterialAbstractDataProperties;
export declare type IMaterialBasicLineDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
export interface IMaterialBasicLineData extends IMaterialAbstractData {

@@ -4,0 +5,0 @@ clone(): IMaterialBasicLineData;

@@ -1,23 +0,12 @@

import { vec3 } from "gl-matrix";
import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
export interface IMaterialGemDataProperties extends IMaterialAbstractDataProperties {
brightness?: number;
center?: vec3;
colorTransferBegin?: Color;
colorTransferEnd?: Color;
contrast?: number;
dispersion?: number;
envMap?: string | string[];
gamma?: number;
impurityMap?: IMapData;
impurityScale?: number;
radius?: number;
refractionIndex?: number;
sphericalNormalMap?: IMapData;
tracingDepth?: number;
tracingOpacity?: number;
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
import { vec3 } from 'gl-matrix';
export declare type IMaterialGemDataProperties = Partial<IMaterialGemDataPropertiesGeneric<IMapData>>;
export declare type IMaterialGemDataPropertiesDefinition = Partial<IMaterialGemDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialGemData extends IMaterialAbstractData, IMaterialGemDataPropertiesGeneric<IMapData> {
clone(): IMaterialGemData;
copy(source: IMaterialGemData): void;
}
export interface IMaterialGemData extends IMaterialAbstractData {
interface IMaterialGemDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
brightness?: number;

@@ -31,12 +20,11 @@ center?: vec3;

gamma?: number;
impurityMap?: IMapData;
impurityMap?: T;
impurityScale?: number;
radius?: number;
refractionIndex?: number;
sphericalNormalMap?: IMapData;
sphericalNormalMap?: T;
tracingDepth?: number;
tracingOpacity?: number;
clone(): IMaterialGemData;
copy(source: IMaterialGemData): void;
}
export {};
//# sourceMappingURL=IMaterialGemDataProperties.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
// #endregion Interfaces (2)
//# sourceMappingURL=IMaterialGemDataProperties.js.map
import { Color } from '../../../types';
import { IMapData } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
export interface IMaterialMultiPointData extends IMaterialAbstractData {
alphaMap_0?: IMapData;
alphaMap_1?: IMapData;
alphaMap_2?: IMapData;
alphaMap_3?: IMapData;
alphaMap_4?: IMapData;
alphaMap_5?: IMapData;
alphaMap_6?: IMapData;
alphaMap_7?: IMapData;
color_0?: Color;
color_1?: Color;
color_2?: Color;
color_3?: Color;
color_4?: Color;
color_5?: Color;
color_6?: Color;
color_7?: Color;
map_0?: IMapData;
map_1?: IMapData;
map_2?: IMapData;
map_3?: IMapData;
map_4?: IMapData;
map_5?: IMapData;
map_6?: IMapData;
map_7?: IMapData;
materialIndexDataMap?: IMapData;
materialIndexDataMapSize?: number;
sizeAttenuation_0?: boolean;
sizeAttenuation_1?: boolean;
sizeAttenuation_2?: boolean;
sizeAttenuation_3?: boolean;
sizeAttenuation_4?: boolean;
sizeAttenuation_5?: boolean;
sizeAttenuation_6?: boolean;
sizeAttenuation_7?: boolean;
size_0?: number;
size_1?: number;
size_2?: number;
size_3?: number;
size_4?: number;
size_5?: number;
size_6?: number;
size_7?: number;
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export declare type IMaterialMultiPointDataProperties = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapData>>;
export declare type IMaterialMultiPointDataPropertiesDefinition = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialMultiPointData extends IMaterialAbstractData, IMaterialMultiPointDataPropertiesGeneric<IMapData> {
clone(): IMaterialMultiPointData;
copy(source: IMaterialMultiPointData): void;
}
export interface IMaterialMultiPointDataProperties extends IMaterialAbstractDataProperties {
alphaMap_0?: IMapData;
alphaMap_1?: IMapData;
alphaMap_2?: IMapData;
alphaMap_3?: IMapData;
alphaMap_4?: IMapData;
alphaMap_5?: IMapData;
alphaMap_6?: IMapData;
alphaMap_7?: IMapData;
interface IMaterialMultiPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
alphaMap_0?: T;
alphaMap_1?: T;
alphaMap_2?: T;
alphaMap_3?: T;
alphaMap_4?: T;
alphaMap_5?: T;
alphaMap_6?: T;
alphaMap_7?: T;
color_0?: Color;

@@ -67,11 +27,11 @@ color_1?: Color;

color_7?: Color;
map_0?: IMapData;
map_1?: IMapData;
map_2?: IMapData;
map_3?: IMapData;
map_4?: IMapData;
map_5?: IMapData;
map_6?: IMapData;
map_7?: IMapData;
materialIndexDataMap?: IMapData;
map_0?: T;
map_1?: T;
map_2?: T;
map_3?: T;
map_4?: T;
map_5?: T;
map_6?: T;
map_7?: T;
materialIndexDataMap?: T;
materialIndexDataMapSize?: number;

@@ -95,2 +55,3 @@ sizeAttenuation_0?: boolean;

}
export {};
//# sourceMappingURL=IMaterialMultiPointData.d.ts.map

@@ -1,12 +0,14 @@

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
export interface IMaterialPointDataProperties extends IMaterialAbstractDataProperties {
size?: number;
sizeAttenuation?: boolean;
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export declare type IMaterialPointDataProperties = Partial<IMaterialPointDataPropertiesGeneric<IMapData>>;
export declare type IMaterialPointDataPropertiesDefinition = Partial<IMaterialPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialPointData extends IMaterialPointDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
clone(): IMaterialPointData;
copy(source: IMaterialPointData): void;
}
export interface IMaterialPointData extends IMaterialAbstractData {
interface IMaterialPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
size?: number;
sizeAttenuation?: boolean;
clone(): IMaterialPointData;
copy(source: IMaterialPointData): void;
}
export {};
//# sourceMappingURL=IMaterialPointData.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// #endregion Interfaces (2)
//# sourceMappingURL=IMaterialPointData.js.map

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

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
export interface IMaterialShadowDataProperties extends IMaterialAbstractDataProperties {
}
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
export declare type IMaterialShadowDataProperties = IMaterialAbstractDataProperties;
export declare type IMaterialShadowDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
export interface IMaterialShadowData extends IMaterialAbstractData {

@@ -5,0 +5,0 @@ clone(): IMaterialShadowData;

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

@@ -1,22 +0,19 @@

import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
export interface IMaterialSpecularGlossinessDataProperties extends IMaterialAbstractDataProperties {
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export declare type IMaterialSpecularGlossinessDataProperties = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>>;
export declare type IMaterialSpecularGlossinessDataPropertiesDefinition = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialSpecularGlossinessData extends IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
clone(): IMaterialSpecularGlossinessData;
copy(source: IMaterialSpecularGlossinessData): void;
}
interface IMaterialSpecularGlossinessDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
envMap?: string | string[];
glossiness?: number;
glossinessMap?: IMapData;
glossinessMap?: T;
specular?: Color;
specularGlossinessMap?: IMapData;
specularMap?: IMapData;
specularGlossinessMap?: T;
specularMap?: T;
}
export interface IMaterialSpecularGlossinessData extends IMaterialAbstractData {
envMap?: string | string[];
glossiness: number;
glossinessMap?: IMapData;
specular: Color;
specularGlossinessMap?: IMapData;
specularMap?: IMapData;
clone(): IMaterialSpecularGlossinessData;
copy(source: IMaterialSpecularGlossinessData): void;
}
export {};
//# sourceMappingURL=IMaterialSpecularGlossinessDataProperties.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
// #endregion Interfaces (2)
//# sourceMappingURL=IMaterialSpecularGlossinessDataProperties.js.map

@@ -1,46 +0,20 @@

import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
export interface IMaterialStandardDataProperties extends IMaterialAbstractDataProperties {
attenuationColor?: Color;
attenuationDistance?: number;
clearcoat?: number;
clearcoatMap?: IMapData;
clearcoatNormalMap?: IMapData;
clearcoatRoughness?: number;
clearcoatRoughnessMap?: IMapData;
displacementBias?: number;
displacementMap?: IMapData;
displacementScale?: number;
envMap?: string | string[];
ior?: number;
metalness?: number;
metalnessMap?: IMapData;
metalnessRoughnessMap?: IMapData;
roughness?: number;
roughnessMap?: IMapData;
sheen?: number;
sheenColor?: Color;
sheenColorMap?: IMapData;
sheenRoughness?: number;
sheenRoughnessMap?: IMapData;
specularColor?: Color;
specularColorMap?: IMapData;
specularIntensity?: number;
specularIntensityMap?: IMapData;
thickness?: number;
thicknessMap?: IMapData;
transmission?: number;
transmissionMap?: IMapData;
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export declare type IMaterialStandardDataProperties = Partial<IMaterialStandardDataPropertiesGeneric<IMapData>>;
export declare type IMaterialStandardDataPropertiesDefinition = Partial<IMaterialStandardDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialStandardData extends IMaterialStandardDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
clone(): IMaterialStandardData;
copy(source: IMaterialStandardData): void;
}
export interface IMaterialStandardData extends IMaterialAbstractData {
interface IMaterialStandardDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
attenuationColor: Color;
attenuationDistance: number;
clearcoat: number;
clearcoatMap?: IMapData;
clearcoatNormalMap?: IMapData;
clearcoatMap?: T;
clearcoatNormalMap?: T;
clearcoatRoughness: number;
clearcoatRoughnessMap?: IMapData;
clearcoatRoughnessMap?: T;
displacementBias: number;
displacementMap?: IMapData;
displacementMap?: T;
displacementScale: number;

@@ -50,22 +24,21 @@ envMap?: string | string[];

metalness: number;
metalnessMap?: IMapData;
metalnessRoughnessMap?: IMapData;
metalnessMap?: T;
metalnessRoughnessMap?: T;
roughness: number;
roughnessMap?: IMapData;
roughnessMap?: T;
sheen: number;
sheenColor: Color;
sheenColorMap?: IMapData;
sheenColorMap?: T;
sheenRoughness: number;
sheenRoughnessMap?: IMapData;
sheenRoughnessMap?: T;
specularColor: Color;
specularColorMap?: IMapData;
specularColorMap?: T;
specularIntensity: number;
specularIntensityMap?: IMapData;
specularIntensityMap?: T;
thickness: number;
thicknessMap?: IMapData;
thicknessMap?: T;
transmission: number;
transmissionMap?: IMapData;
clone(): IMaterialStandardData;
copy(source: IMaterialStandardData): void;
transmissionMap?: T;
}
export {};
//# sourceMappingURL=IMaterialStandardData.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
// #endregion Interfaces (2)
//# sourceMappingURL=IMaterialStandardData.js.map

@@ -1,10 +0,13 @@

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
export interface IMaterialUnlitDataProperties extends IMaterialAbstractDataProperties {
envMap?: string | string[];
}
export interface IMaterialUnlitData extends IMaterialAbstractData {
envMap?: string | string[];
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export declare type IMaterialUnlitDataProperties = Partial<IMaterialUnlitDataPropertiesGeneric<IMapData>>;
export declare type IMaterialUnlitDataPropertiesDefinition = Partial<IMaterialUnlitDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
export interface IMaterialUnlitData extends IMaterialUnlitDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
clone(): IMaterialUnlitData;
copy(source: IMaterialUnlitData): void;
}
interface IMaterialUnlitDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
envMap?: string | string[];
}
export {};
//# sourceMappingURL=IMaterialUnlitData.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
// #endregion Interfaces (2)
//# sourceMappingURL=IMaterialUnlitData.js.map

@@ -89,2 +89,5 @@ import { z } from 'zod';

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -94,8 +97,8 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
}, {
scale?: number | undefined;
selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
}, {
scale?: number | undefined;
selectionColor?: string | undefined;
enableRotation?: boolean | undefined;

@@ -105,5 +108,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
}>;

@@ -115,2 +115,5 @@ }, "strip", z.ZodTypeAny, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -120,5 +123,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -130,2 +130,5 @@ }, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -135,5 +138,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -202,2 +202,5 @@ }>;

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -207,8 +210,8 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
}, {
scale?: number | undefined;
selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
}, {
scale?: number | undefined;
selectionColor?: string | undefined;
enableRotation?: boolean | undefined;

@@ -218,5 +221,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
}>;

@@ -228,2 +228,5 @@ }, "strip", z.ZodTypeAny, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -233,5 +236,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -243,2 +243,5 @@ }, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -248,5 +251,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -269,2 +269,5 @@ }>]>;

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -274,5 +277,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -294,2 +294,5 @@ }, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -299,5 +302,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -331,2 +331,5 @@ }>;

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -336,5 +339,2 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};

@@ -346,2 +346,5 @@ }, {

selectionColor?: string | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
enableRotation?: boolean | undefined;

@@ -351,7 +354,4 @@ enableScaling?: boolean | undefined;

space?: "local" | "world" | undefined;
hover?: boolean | undefined;
hoverColor?: string | undefined;
nameFilter?: string[] | undefined;
};
}>;
//# sourceMappingURL=IInteractionParameterSettings.d.ts.map
{
"name": "@shapediver/viewer.shared.types",
"version": "3.2.1",
"version": "3.2.2",
"description": "",

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

"@shapediver/sdk.sdtf-v1": "1.5.1",
"@shapediver/viewer.shared.math": "3.2.1",
"@shapediver/viewer.shared.node-tree": "3.2.1",
"@shapediver/viewer.shared.services": "3.2.1",
"@shapediver/viewer.shared.math": "3.2.2",
"@shapediver/viewer.shared.node-tree": "3.2.2",
"@shapediver/viewer.shared.services": "3.2.2",
"gl-matrix": "3.3.0",
"zod": "^3.23.8"
},
"gitHead": "00f87aa21c3616bbabf0d06a93f94491324825c5"
"gitHead": "53949d3be352baa3951ac2e48385472ee7b3b222"
}

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

import { EventResponseMapping } from './interfaces/events/EventResponseMapping';
import { GumballParameterValue, IGumballParameterSettings, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
import {

@@ -33,7 +34,24 @@ HTMLElementAnchorCustomData,

import { ICustomData } from './interfaces/data/ICustomData';
import { IGeneralInteractionParameterSettings, IGumballParameterJsonSchema, IInteractionParameterJsonSchema, IInteractionParameterSettings, InteractionParameterSettingsType, ISelectionParameterJsonSchema, validateGumballParameterSettings, validateInteractionParameterSettings, validateSelectionParameterSettings } from './interfaces/parameter/IInteractionParameterSettings';
import { IMapData, TEXTURE_FILTERING, TEXTURE_WRAPPING } from './interfaces/data/material/IMapData';
import {
IGeneralInteractionParameterSettings,
IGumballParameterJsonSchema,
IInteractionParameterJsonSchema,
IInteractionParameterSettings,
InteractionParameterSettingsType,
ISelectionParameterJsonSchema,
validateGumballParameterSettings,
validateInteractionParameterSettings,
validateSelectionParameterSettings
} from './interfaces/parameter/IInteractionParameterSettings';
import {
IMapData,
IMapDataProperties,
IMapDataPropertiesDefinition,
TEXTURE_FILTERING,
TEXTURE_WRAPPING
} from './interfaces/data/material/IMapData';
import {
IMaterialAbstractData,
IMaterialAbstractDataProperties,
IMaterialAbstractDataPropertiesDefinition,
MATERIAL_ALPHA,

@@ -44,10 +62,10 @@ MATERIAL_SHADING,

} from './interfaces/data/material/IMaterialAbstractData';
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties } from './interfaces/data/material/IMaterialBasicLineData';
import { IMaterialGemData, IMaterialGemDataProperties } from './interfaces/data/material/IMaterialGemDataProperties';
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties } from './interfaces/data/material/IMaterialMultiPointData';
import { IMaterialPointData, IMaterialPointDataProperties } from './interfaces/data/material/IMaterialPointData';
import { IMaterialShadowData, IMaterialShadowDataProperties } from './interfaces/data/material/IMaterialShadowData';
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
import { IMaterialStandardData, IMaterialStandardDataProperties } from './interfaces/data/material/IMaterialStandardData';
import { IMaterialUnlitData, IMaterialUnlitDataProperties } from './interfaces/data/material/IMaterialUnlitData';
import { IMaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition } from './interfaces/data/material/IMaterialBasicLineData';
import { IMaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition } from './interfaces/data/material/IMaterialGemDataProperties';
import { IMaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialMultiPointData';
import { IMaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition } from './interfaces/data/material/IMaterialPointData';
import { IMaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition } from './interfaces/data/material/IMaterialShadowData';
import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition } from './interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
import { IMaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition } from './interfaces/data/material/IMaterialStandardData';
import { IMaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition } from './interfaces/data/material/IMaterialUnlitData';
import { IMaterialVariantsData } from './interfaces/data/material/IMaterialVariantsData';

@@ -83,15 +101,14 @@ import { IOutputEvent } from './interfaces/events/IOutputEvent';

} from './implementation/material/MaterialStandardData';
import { IGumballParameterSettings, GumballParameterValue, isInteractionGumballParameterSettings } from './interfaces/parameter/IGumballParameterSettings';
export {
IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties,
IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData,
IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties,
IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties,
IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties,
IMaterialGemData, MaterialGemData, IMaterialGemDataProperties,
IMaterialPointData, MaterialPointData, IMaterialPointDataProperties,
IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties,
IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties,
IMapData, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING
IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition,
IMaterialAbstractData, IMaterialAbstractDataProperties, AbstractMaterialData, IMaterialAbstractDataPropertiesDefinition,
IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition,
IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition,
IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition,
IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition,
IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition,
IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition,
IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition,
IMapData, IMapDataProperties, IMapDataPropertiesDefinition, MapData, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING
};

@@ -98,0 +115,0 @@

@@ -0,31 +1,32 @@

import { Color } from '../../../types';
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
import { vec2 } from 'gl-matrix';
import { Color } from '../../../types';
export enum TEXTURE_WRAPPING {
REPEAT = 10497,
CLAMP_TO_EDGE = 33071,
MIRRORED_REPEAT = 33648
}
// #region Type aliases (2)
export enum TEXTURE_FILTERING {
NONE = 0,
NEAREST = 9728,
LINEAR = 9729,
NEAREST_MIPMAP_NEAREST = 9984,
LINEAR_MIPMAP_NEAREST = 9985,
NEAREST_MIPMAP_LINEAR = 9986,
LINEAR_MIPMAP_LINEAR = 9987,
export type IMapDataProperties = IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer>;
export type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string>>;
// #endregion Type aliases (2)
// #region Interfaces (2)
export interface IMapData extends ITreeNodeData, IMapDataProperties {
// #region Public Methods (1)
clone(): IMapData;
// #endregion Public Methods (1)
}
export interface IMapData extends ITreeNodeData {
// #region Properties (11)
interface IMapDataPropertiesGeneric<T> {
// #region Properties (15)
asData?: boolean;
data?: number[];
blob?: Blob;
center: vec2;
color?: Color;
data?: number[];
flipY: boolean;
image: HTMLImageElement | ArrayBuffer;
image: T;
magFilter: TEXTURE_FILTERING;

@@ -40,9 +41,25 @@ minFilter: TEXTURE_FILTERING;

// #endregion Properties (11)
// #endregion Properties (15)
}
// #region Public Methods (1)
// #endregion Interfaces (2)
clone(): IMapData;
// #region Enums (2)
// #endregion Public Methods (1)
}
export enum TEXTURE_FILTERING {
NONE = 0,
NEAREST = 9728,
LINEAR = 9729,
NEAREST_MIPMAP_NEAREST = 9984,
LINEAR_MIPMAP_NEAREST = 9985,
NEAREST_MIPMAP_LINEAR = 9986,
LINEAR_MIPMAP_LINEAR = 9987,
}
export enum TEXTURE_WRAPPING {
REPEAT = 10497,
CLAMP_TO_EDGE = 33071,
MIRRORED_REPEAT = 33648
}
// #endregion Enums (2)
import { Color } from '../../../types';
import { IMapData } from './IMapData';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
// #region Type aliases (2)
export type IMaterialAbstractDataProperties = Partial<IMaterialAbstractDataPropertiesGeneric<IMapData>>;
export type IMaterialAbstractDataPropertiesDefinition = Partial<IMaterialAbstractDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Type aliases (2)
// #region Interfaces (2)
export interface IMaterialAbstractData extends ITreeNodeData {
// #region Properties (21)
export interface IMaterialAbstractData extends ITreeNodeData, IMaterialAbstractDataPropertiesGeneric<IMapData> {
// #region Properties (1)
alphaCutoff: number,
alphaMap?: IMapData,
alphaMode: MATERIAL_ALPHA,
aoMap?: IMapData,
aoMapIntensity: number,
bumpMap?: IMapData,
bumpScale: number,
color: Color,
depthTest?: boolean,
depthWrite?: boolean,
emissiveMap?: IMapData,
emissiveness: Color,
map?: IMapData,
materialOutput: boolean;
name?: string,
normalMap?: IMapData,
normalScale: number,
opacity: number,
shading: MATERIAL_SHADING,
side: MATERIAL_SIDE,
transparent?: boolean,
// #endregion Properties (21)
// #endregion Properties (1)

@@ -43,24 +30,24 @@ // #region Public Methods (3)

export interface IMaterialAbstractDataProperties {
export interface IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (21)
alphaCutoff?: number,
alphaMap?: IMapData,
alphaMode?: MATERIAL_ALPHA,
aoMap?: IMapData,
aoMapIntensity?: number,
bumpMap?: IMapData,
bumpScale?: number,
color?: Color,
alphaCutoff: number,
alphaMap?: T,
alphaMode: MATERIAL_ALPHA,
aoMap?: T,
aoMapIntensity: number,
bumpMap?: T,
bumpScale: number,
color: Color,
depthTest?: boolean,
depthWrite?: boolean,
emissiveMap?: IMapData,
emissiveness?: Color,
map?: IMapData,
emissiveMap?: T,
emissiveness: Color,
map?: T,
name?: string,
normalMap?: IMapData,
normalScale?: number,
opacity?: number,
shading?: MATERIAL_SHADING,
side?: MATERIAL_SIDE,
normalMap?: T,
normalScale: number,
opacity: number,
shading: MATERIAL_SHADING,
side: MATERIAL_SIDE,
transparent?: boolean,

@@ -94,8 +81,8 @@ type?: MATERIAL_TYPE

export enum MATERIAL_TYPE {
STANDARD = 'Standard',
SPECULAR_GLOSSINESS = 'SpecularGlossiness',
UNLIT = 'Unlit',
GEM = 'Gem'
STANDARD = 'standard',
SPECULAR_GLOSSINESS = 'specular_glossiness',
UNLIT = 'unlit',
GEM = 'gem'
}
// #endregion Enums (4)

@@ -1,8 +0,9 @@

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
// #region Type aliases (1)
// #region Type aliases (2)
export type IMaterialBasicLineDataProperties = IMaterialAbstractDataProperties;
export type IMaterialBasicLineDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
// #endregion Type aliases (1)
// #endregion Type aliases (2)

@@ -9,0 +10,0 @@ // #region Interfaces (1)

@@ -1,31 +0,27 @@

import { mat3, mat4, vec3 } from "gl-matrix";
import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
import { vec3 } from 'gl-matrix';
export interface IMaterialGemDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (17)
// #region Type aliases (2)
brightness?: number;
center?: vec3;
colorTransferBegin?: Color;
colorTransferEnd?: Color;
contrast?: number;
dispersion?: number;
envMap?: string | string[];
gamma?: number;
impurityMap?: IMapData;
impurityScale?: number;
radius?: number;
refractionIndex?: number;
sphericalNormalMap?: IMapData;
tracingDepth?: number;
tracingOpacity?: number;
export type IMaterialGemDataProperties = Partial<IMaterialGemDataPropertiesGeneric<IMapData>>;
export type IMaterialGemDataPropertiesDefinition = Partial<IMaterialGemDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Properties (17)
};
// #endregion Type aliases (2)
export interface IMaterialGemData extends IMaterialAbstractData {
// #region Properties (17)
// #region Interfaces (2)
export interface IMaterialGemData extends IMaterialAbstractData, IMaterialGemDataPropertiesGeneric<IMapData> {
// #region Public Methods (2)
clone(): IMaterialGemData;
copy(source: IMaterialGemData): void;
// #endregion Public Methods (2)
}
interface IMaterialGemDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (15)
brightness?: number;

@@ -39,18 +35,13 @@ center?: vec3;

gamma?: number;
impurityMap?: IMapData;
impurityMap?: T;
impurityScale?: number;
radius?: number;
refractionIndex?: number;
sphericalNormalMap?: IMapData;
sphericalNormalMap?: T;
tracingDepth?: number;
tracingOpacity?: number;
// #endregion Properties (17)
// #endregion Properties (15)
}
// #region Public Methods (2)
clone(): IMaterialGemData;
copy(source: IMaterialGemData): void;
// #endregion Public Methods (2)
}
// #endregion Interfaces (2)
import { Color } from '../../../types';
import { IMapData } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
// #region Interfaces (2)
// #region Type aliases (2)
export interface IMaterialMultiPointData extends IMaterialAbstractData {
// #region Properties (20)
export type IMaterialMultiPointDataProperties = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapData>>;
export type IMaterialMultiPointDataPropertiesDefinition = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
alphaMap_0?: IMapData;
alphaMap_1?: IMapData;
alphaMap_2?: IMapData;
alphaMap_3?: IMapData;
alphaMap_4?: IMapData;
alphaMap_5?: IMapData;
alphaMap_6?: IMapData;
alphaMap_7?: IMapData;
color_0?: Color;
color_1?: Color;
color_2?: Color;
color_3?: Color;
color_4?: Color;
color_5?: Color;
color_6?: Color;
color_7?: Color;
map_0?: IMapData;
map_1?: IMapData;
map_2?: IMapData;
map_3?: IMapData;
map_4?: IMapData;
map_5?: IMapData;
map_6?: IMapData;
map_7?: IMapData;
materialIndexDataMap?: IMapData;
materialIndexDataMapSize?: number;
sizeAttenuation_0?: boolean;
sizeAttenuation_1?: boolean;
sizeAttenuation_2?: boolean;
sizeAttenuation_3?: boolean;
sizeAttenuation_4?: boolean;
sizeAttenuation_5?: boolean;
sizeAttenuation_6?: boolean;
sizeAttenuation_7?: boolean;
size_0?: number;
size_1?: number;
size_2?: number;
size_3?: number;
size_4?: number;
size_5?: number;
size_6?: number;
size_7?: number;
// #endregion Type aliases (2)
// #endregion Properties (20)
// #region Interfaces (2)
export interface IMaterialMultiPointData extends IMaterialAbstractData, IMaterialMultiPointDataPropertiesGeneric<IMapData> {
// #region Public Methods (2)

@@ -63,13 +23,13 @@

export interface IMaterialMultiPointDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (20)
interface IMaterialMultiPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (42)
alphaMap_0?: IMapData;
alphaMap_1?: IMapData;
alphaMap_2?: IMapData;
alphaMap_3?: IMapData;
alphaMap_4?: IMapData;
alphaMap_5?: IMapData;
alphaMap_6?: IMapData;
alphaMap_7?: IMapData;
alphaMap_0?: T;
alphaMap_1?: T;
alphaMap_2?: T;
alphaMap_3?: T;
alphaMap_4?: T;
alphaMap_5?: T;
alphaMap_6?: T;
alphaMap_7?: T;
color_0?: Color;

@@ -83,11 +43,11 @@ color_1?: Color;

color_7?: Color;
map_0?: IMapData;
map_1?: IMapData;
map_2?: IMapData;
map_3?: IMapData;
map_4?: IMapData;
map_5?: IMapData;
map_6?: IMapData;
map_7?: IMapData;
materialIndexDataMap?: IMapData;
map_0?: T;
map_1?: T;
map_2?: T;
map_3?: T;
map_4?: T;
map_5?: T;
map_6?: T;
map_7?: T;
materialIndexDataMap?: T;
materialIndexDataMapSize?: number;

@@ -111,5 +71,5 @@ sizeAttenuation_0?: boolean;

// #endregion Properties (20)
// #endregion Properties (42)
}
// #endregion Interfaces (2)

@@ -1,13 +0,23 @@

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export interface IMaterialPointDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (2)
// #region Type aliases (2)
size?: number,
sizeAttenuation?: boolean
export type IMaterialPointDataProperties = Partial<IMaterialPointDataPropertiesGeneric<IMapData>>;
export type IMaterialPointDataPropertiesDefinition = Partial<IMaterialPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Properties (2)
// #endregion Type aliases (2)
// #region Interfaces (2)
export interface IMaterialPointData extends IMaterialPointDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
// #region Public Methods (2)
clone(): IMaterialPointData;
copy(source: IMaterialPointData): void;
// #endregion Public Methods (2)
}
export interface IMaterialPointData extends IMaterialAbstractData {
interface IMaterialPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (2)

@@ -19,9 +29,4 @@

// #endregion Properties (2)
}
// #region Public Methods (2)
clone(): IMaterialPointData;
copy(source: IMaterialPointData): void;
// #endregion Public Methods (2)
}
// #endregion Interfaces (2)

@@ -1,6 +0,12 @@

import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
export interface IMaterialShadowDataProperties extends IMaterialAbstractDataProperties {};
// #region Type aliases (2)
export type IMaterialShadowDataProperties = IMaterialAbstractDataProperties;
export type IMaterialShadowDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
// #endregion Type aliases (2)
// #region Interfaces (1)
export interface IMaterialShadowData extends IMaterialAbstractData {

@@ -13,2 +19,4 @@ // #region Public Methods (2)

// #endregion Public Methods (2)
}
}
// #endregion Interfaces (1)

@@ -1,30 +0,15 @@

import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export interface IMaterialSpecularGlossinessDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (6)
// #region Type aliases (2)
envMap?: string | string[];
glossiness?: number,
glossinessMap?: IMapData,
specular?: Color,
specularGlossinessMap?: IMapData,
specularMap?: IMapData,
export type IMaterialSpecularGlossinessDataProperties = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>>;
export type IMaterialSpecularGlossinessDataPropertiesDefinition = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Properties (6)
};
// #endregion Type aliases (2)
export interface IMaterialSpecularGlossinessData extends IMaterialAbstractData {
// #region Properties (6)
// #region Interfaces (2)
envMap?: string | string[];
glossiness: number,
glossinessMap?: IMapData,
specular: Color,
specularGlossinessMap?: IMapData,
specularMap?: IMapData,
// #endregion Properties (6)
export interface IMaterialSpecularGlossinessData extends IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
// #region Public Methods (2)

@@ -36,2 +21,17 @@

// #endregion Public Methods (2)
}
}
interface IMaterialSpecularGlossinessDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (6)
envMap?: string | string[];
glossiness?: number,
glossinessMap?: T,
specular?: Color,
specularGlossinessMap?: T,
specularMap?: T
// #endregion Properties (6)
}
// #endregion Interfaces (2)

@@ -1,43 +0,24 @@

import { Color } from "../../../types";
import { IMapData } from "./IMapData";
import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
import { Color } from '../../../types';
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export interface IMaterialStandardDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (30)
// #region Type aliases (2)
attenuationColor?: Color,
attenuationDistance?: number;
clearcoat?: number;
clearcoatMap?: IMapData;
clearcoatNormalMap?: IMapData;
clearcoatRoughness?: number;
clearcoatRoughnessMap?: IMapData;
displacementBias?: number;
displacementMap?: IMapData;
displacementScale?: number;
envMap?: string | string[];
ior?: number;
metalness?: number,
metalnessMap?: IMapData,
metalnessRoughnessMap?: IMapData,
roughness?: number,
roughnessMap?: IMapData,
sheen?: number,
sheenColor?: Color,
sheenColorMap?: IMapData,
sheenRoughness?: number,
sheenRoughnessMap?: IMapData,
specularColor?: Color,
specularColorMap?: IMapData,
specularIntensity?: number,
specularIntensityMap?: IMapData,
thickness?: number;
thicknessMap?: IMapData;
transmission?: number;
transmissionMap?: IMapData;
export type IMaterialStandardDataProperties = Partial<IMaterialStandardDataPropertiesGeneric<IMapData>>;
export type IMaterialStandardDataPropertiesDefinition = Partial<IMaterialStandardDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Properties (30)
};
// #endregion Type aliases (2)
export interface IMaterialStandardData extends IMaterialAbstractData {
// #region Interfaces (2)
export interface IMaterialStandardData extends IMaterialStandardDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
// #region Public Methods (2)
clone(): IMaterialStandardData;
copy(source: IMaterialStandardData): void;
// #endregion Public Methods (2)
}
interface IMaterialStandardDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (30)

@@ -48,8 +29,8 @@

clearcoat: number;
clearcoatMap?: IMapData;
clearcoatNormalMap?: IMapData;
clearcoatMap?: T;
clearcoatNormalMap?: T;
clearcoatRoughness: number;
clearcoatRoughnessMap?: IMapData;
clearcoatRoughnessMap?: T;
displacementBias: number;
displacementMap?: IMapData;
displacementMap?: T;
displacementScale: number;

@@ -59,28 +40,23 @@ envMap?: string | string[];

metalness: number,
metalnessMap?: IMapData,
metalnessRoughnessMap?: IMapData,
metalnessMap?: T,
metalnessRoughnessMap?: T,
roughness: number,
roughnessMap?: IMapData,
roughnessMap?: T,
sheen: number,
sheenColor: Color,
sheenColorMap?: IMapData,
sheenColorMap?: T,
sheenRoughness: number,
sheenRoughnessMap?: IMapData,
sheenRoughnessMap?: T,
specularColor: Color,
specularColorMap?: IMapData,
specularColorMap?: T,
specularIntensity: number,
specularIntensityMap?: IMapData,
specularIntensityMap?: T,
thickness: number;
thicknessMap?: IMapData;
thicknessMap?: T;
transmission: number;
transmissionMap?: IMapData;
transmissionMap?: T;
// #endregion Properties (30)
}
// #region Public Methods (2)
clone(): IMaterialStandardData;
copy(source: IMaterialStandardData): void;
// #endregion Public Methods (2)
}
// #endregion Interfaces (2)

@@ -1,18 +0,14 @@

import { IMaterialAbstractData, IMaterialAbstractDataProperties } from "./IMaterialAbstractData";
import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
export interface IMaterialUnlitDataProperties extends IMaterialAbstractDataProperties {
// #region Properties (1)
// #region Type aliases (2)
envMap?: string | string[];
export type IMaterialUnlitDataProperties = Partial<IMaterialUnlitDataPropertiesGeneric<IMapData>>;
export type IMaterialUnlitDataPropertiesDefinition = Partial<IMaterialUnlitDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
// #endregion Properties (1)
};
// #endregion Type aliases (2)
export interface IMaterialUnlitData extends IMaterialAbstractData {
// #region Properties (1)
// #region Interfaces (2)
envMap?: string | string[];
// #endregion Properties (1)
export interface IMaterialUnlitData extends IMaterialUnlitDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
// #region Public Methods (2)

@@ -24,2 +20,12 @@

// #endregion Public Methods (2)
}
}
interface IMaterialUnlitDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
// #region Properties (1)
envMap?: string | string[];
// #endregion Properties (1)
}
// #endregion Interfaces (2)

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