@shapediver/viewer.settings
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -26,7 +26,7 @@ import { IGlobalSettings } from "./interfaces/IGlobalSettings"; | ||
import { IAmbientLightProperties as IAmbientLightPropertiesV3_4, IDirectionalLightProperties as IDirectionalLightPropertiesV3_4, IHemisphereLightProperties as IHemisphereLightPropertiesV3_4, ILightSceneSettings as ILightSceneSettingsV3_4, IPointLightProperties as IPointLightPropertiesV3_4, ISpotLightProperties as ISpotLightPropertiesV3_4 } from "./versions/v3/ILightSceneSettings"; | ||
import { ISettings as ISettingsV4_0 } from "./versions/v4_0/ISettings"; | ||
import { Defaults as DefaultsV4_0 } from "./versions/v4_0/Defaults"; | ||
import { ISettings as ISettingsV4_0 } from "./versions/v4/ISettings"; | ||
import { Defaults as DefaultsV4_0 } from "./versions/v4/Defaults"; | ||
import { ICameraSettings as ICameraSettingsV4_0, IOrbitControlsSettings as IOrbitControlsSettingsV4_0, IOrthographicCameraSettings as IOrthographicCameraSettingsV4_0, IOrthographicControlsSettings as IOrthographicControlsSettingsV4_0, IPerspectiveCameraSettings as IPerspectiveCameraSettingsV4_0 } from "./versions/v3/ICameraSettings"; | ||
import { IAmbientLightProperties as IAmbientLightPropertiesV4_0, IDirectionalLightProperties as IDirectionalLightPropertiesV4_0, IHemisphereLightProperties as IHemisphereLightPropertiesV4_0, ILightSceneSettings as ILightSceneSettingsV4_0, IPointLightProperties as IPointLightPropertiesV4_0, ISpotLightProperties as ISpotLightPropertiesV4_0 } from "./versions/v3/ILightSceneSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV4_0 } from "./versions/v4_0/IPostProcessingEffectSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV4_0 } from "./versions/v4/IPostProcessingEffectSettings"; | ||
import { ISettings as ISettingsV4_1 } from "./versions/v4_1/ISettings"; | ||
@@ -36,3 +36,3 @@ import { Defaults as DefaultsV4_1 } from "./versions/v4_1/Defaults"; | ||
import { IAmbientLightProperties as IAmbientLightPropertiesV4_1, IDirectionalLightProperties as IDirectionalLightPropertiesV4_1, IHemisphereLightProperties as IHemisphereLightPropertiesV4_1, ILightSceneSettings as ILightSceneSettingsV4_1, IPointLightProperties as IPointLightPropertiesV4_1, ISpotLightProperties as ISpotLightPropertiesV4_1 } from "./versions/v3/ILightSceneSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV4_1 } from "./versions/v4_0/IPostProcessingEffectSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV4_1 } from "./versions/v4/IPostProcessingEffectSettings"; | ||
import { ISettings as ISettingsV5 } from "./versions/v5/ISettings"; | ||
@@ -42,3 +42,7 @@ import { Defaults as DefaultsV5 } from "./versions/v5/Defaults"; | ||
import { IAmbientLightProperties as IAmbientLightPropertiesV5, IDirectionalLightProperties as IDirectionalLightPropertiesV5, IHemisphereLightProperties as IHemisphereLightPropertiesV5, ILightSceneSettings as ILightSceneSettingsV5, IPointLightProperties as IPointLightPropertiesV5, ISpotLightProperties as ISpotLightPropertiesV5 } from "./versions/v3/ILightSceneSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV5 } from "./versions/v4_0/IPostProcessingEffectSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV5 } from "./versions/v4/IPostProcessingEffectSettings"; | ||
import { ISettings as ISettingsV6 } from "./versions/v6/ISettings"; | ||
import { ICameraSettings as ICameraSettingsV6, ICameraControlsSettings as ICameraControlsSettingsV6, IOrthographicCameraSettings as IOrthographicCameraSettingsV6, IPerspectiveCameraSettings as IPerspectiveCameraSettingsV6 } from "./versions/v5/ICameraSettings"; | ||
import { IAmbientLightProperties as IAmbientLightPropertiesV6, IDirectionalLightProperties as IDirectionalLightPropertiesV6, IHemisphereLightProperties as IHemisphereLightPropertiesV6, ILightSceneSettings as ILightSceneSettingsV6, IPointLightProperties as IPointLightPropertiesV6, ISpotLightProperties as ISpotLightPropertiesV6 } from "./versions/v3/ILightSceneSettings"; | ||
import { IPostProcessingEffectsArray as IPostProcessingEffectsArrayV6 } from "./versions/v4/IPostProcessingEffectSettings"; | ||
export { ISettingsV1, DefaultsV1 }; | ||
@@ -54,9 +58,31 @@ export { ISettingsV2, DefaultsV2 }; | ||
export { ISettingsV5, DefaultsV5, ICameraSettingsV5, IOrthographicCameraSettingsV5, IPerspectiveCameraSettingsV5, ICameraControlsSettingsV5, ILightSceneSettingsV5, IAmbientLightPropertiesV5, IDirectionalLightPropertiesV5, IHemisphereLightPropertiesV5, IPointLightPropertiesV5, ISpotLightPropertiesV5, IPostProcessingEffectsArrayV5 }; | ||
export { ISettingsV5 as ISettings, DefaultsV5 as Defaults, ICameraSettingsV5 as ICameraSettings, IOrthographicCameraSettingsV5 as IOrthographicCameraSettings, IPerspectiveCameraSettingsV5 as IPerspectiveCameraSettings, ICameraControlsSettingsV5 as ICameraControlsSettings, ILightSceneSettingsV5 as ILightSceneSettings, IAmbientLightPropertiesV5 as IAmbientLightProperties, IDirectionalLightPropertiesV5 as IDirectionalLightProperties, IHemisphereLightPropertiesV5 as IHemisphereLightProperties, IPointLightPropertiesV5 as IPointLightProperties, ISpotLightPropertiesV5 as ISpotLightProperties, IPostProcessingEffectsArrayV5 as IPostProcessingEffectsArray }; | ||
export declare type versions = '1.0' | '2.0' | '3.0' | '3.1' | '3.2' | '3.3' | '3.4' | '4.0' | '4.1' | '5.0'; | ||
export { ISettingsV6, ICameraSettingsV6, IOrthographicCameraSettingsV6, IPerspectiveCameraSettingsV6, ICameraControlsSettingsV6, ILightSceneSettingsV6, IAmbientLightPropertiesV6, IDirectionalLightPropertiesV6, IHemisphereLightPropertiesV6, IPointLightPropertiesV6, ISpotLightPropertiesV6, IPostProcessingEffectsArrayV6 }; | ||
export { ISettingsV6 as ISettings, ICameraSettingsV6 as ICameraSettings, IOrthographicCameraSettingsV6 as IOrthographicCameraSettings, IPerspectiveCameraSettingsV6 as IPerspectiveCameraSettings, ICameraControlsSettingsV6 as ICameraControlsSettings, ILightSceneSettingsV6 as ILightSceneSettings, IAmbientLightPropertiesV6 as IAmbientLightProperties, IDirectionalLightPropertiesV6 as IDirectionalLightProperties, IHemisphereLightPropertiesV6 as IHemisphereLightProperties, IPointLightPropertiesV6 as IPointLightProperties, ISpotLightPropertiesV6 as ISpotLightProperties, IPostProcessingEffectsArrayV6 as IPostProcessingEffectsArray }; | ||
export declare type versions = '1.0' | '2.0' | '3.0' | '3.1' | '3.2' | '3.3' | '3.4' | '4.0' | '4.1' | '5.0' | '6.0'; | ||
export declare const previousVersion: versions[]; | ||
/** | ||
* Convert the provided settings to the target version provided. | ||
* The settings object will be validate beforehand, an error will be thrown if the validation was not successful. | ||
* | ||
* @param settings | ||
* @param targetVersion | ||
* @returns | ||
*/ | ||
export declare const convert: (settings: any, targetVersion: versions) => IGlobalSettings; | ||
/** | ||
* Validate the provided settings. If not target version is specified, an extraction of the version from the settings object is attempted. | ||
* If the validation is not successful, an error is thrown with the necessary information on why the validation failed. | ||
* | ||
* @param settings | ||
* @param targetVersion | ||
*/ | ||
export declare const validate: (settings: any, targetVersion?: versions | undefined) => void; | ||
/** | ||
* Evaluate which settings version to use by using the viewer version. | ||
* | ||
* @param viewerVersion | ||
* @returns | ||
*/ | ||
export declare const evaluateSettingsVersion: (viewerVersion?: string | undefined) => versions; | ||
export declare const latestVersion = "5.0"; | ||
export declare const latestVersion = "6.0"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.latestVersion = exports.evaluateSettingsVersion = exports.validate = exports.convert = exports.previousVersion = exports.Defaults = exports.DefaultsV5 = exports.DefaultsV4_1 = exports.DefaultsV4_0 = exports.DefaultsV3_4 = exports.DefaultsV3_3 = exports.DefaultsV3_2 = exports.DefaultsV3_1 = exports.DefaultsV3 = exports.DefaultsV2 = exports.DefaultsV1 = void 0; | ||
exports.latestVersion = exports.evaluateSettingsVersion = exports.validate = exports.convert = exports.previousVersion = exports.DefaultsV5 = exports.DefaultsV4_1 = exports.DefaultsV4_0 = exports.DefaultsV3_4 = exports.DefaultsV3_3 = exports.DefaultsV3_2 = exports.DefaultsV3_1 = exports.DefaultsV3 = exports.DefaultsV2 = exports.DefaultsV1 = void 0; | ||
const Defaults_1 = require("./versions/v1/Defaults"); | ||
@@ -31,6 +31,6 @@ Object.defineProperty(exports, "DefaultsV1", { enumerable: true, get: function () { return Defaults_1.Defaults; } }); | ||
const Converter_6 = require("./versions/v3_4/Converter"); | ||
const Defaults_8 = require("./versions/v4_0/Defaults"); | ||
const Defaults_8 = require("./versions/v4/Defaults"); | ||
Object.defineProperty(exports, "DefaultsV4_0", { enumerable: true, get: function () { return Defaults_8.Defaults; } }); | ||
const Validator_8 = require("./versions/v4_0/Validator"); | ||
const Converter_7 = require("./versions/v4_0/Converter"); | ||
const Validator_8 = require("./versions/v4/Validator"); | ||
const Converter_7 = require("./versions/v4/Converter"); | ||
const Defaults_9 = require("./versions/v4_1/Defaults"); | ||
@@ -42,6 +42,7 @@ Object.defineProperty(exports, "DefaultsV4_1", { enumerable: true, get: function () { return Defaults_9.Defaults; } }); | ||
Object.defineProperty(exports, "DefaultsV5", { enumerable: true, get: function () { return Defaults_10.Defaults; } }); | ||
Object.defineProperty(exports, "Defaults", { enumerable: true, get: function () { return Defaults_10.Defaults; } }); | ||
const Validator_10 = require("./versions/v5/Validator"); | ||
const Converter_9 = require("./versions/v5/Converter"); | ||
exports.previousVersion = ['1.0', '2.0', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', '4.1']; | ||
const Validator_11 = require("./versions/v6/Validator"); | ||
const Converter_10 = require("./versions/v6/Converter"); | ||
exports.previousVersion = ['1.0', '2.0', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', '4.1', '5.0']; | ||
let settingsUtilities = []; | ||
@@ -118,2 +119,16 @@ settingsUtilities.push({ | ||
}); | ||
settingsUtilities.push({ | ||
version: '6.0', | ||
convertToPrevious: Converter_10.convertToPrevious, | ||
convertFromPrevious: Converter_10.convertFromPrevious, | ||
validate: Validator_11.validate | ||
}); | ||
/** | ||
* Convert the provided settings to the target version provided. | ||
* The settings object will be validate beforehand, an error will be thrown if the validation was not successful. | ||
* | ||
* @param settings | ||
* @param targetVersion | ||
* @returns | ||
*/ | ||
const convert = (settings, targetVersion) => { | ||
@@ -141,2 +156,9 @@ const original_version = settings.settings_version || '1.0'; | ||
exports.convert = convert; | ||
/** | ||
* Validate the provided settings. If not target version is specified, an extraction of the version from the settings object is attempted. | ||
* If the validation is not successful, an error is thrown with the necessary information on why the validation failed. | ||
* | ||
* @param settings | ||
* @param targetVersion | ||
*/ | ||
const validate = (settings, targetVersion) => { | ||
@@ -160,5 +182,13 @@ const settings_version = settings.settings_version || '1.0'; | ||
exports.validate = validate; | ||
/** | ||
* Evaluate which settings version to use by using the viewer version. | ||
* | ||
* @param viewerVersion | ||
* @returns | ||
*/ | ||
const evaluateSettingsVersion = (viewerVersion) => { | ||
// case 1: no version, return 1.0 | ||
if (!viewerVersion || viewerVersion.startsWith('1')) | ||
return '1.0'; | ||
// case 2: starts with 2, if higher or equal than 2.18.0, return 2.0 | ||
if (viewerVersion.startsWith('2')) { | ||
@@ -177,2 +207,3 @@ const upgradeVersions = viewerVersion | ||
} | ||
// case 3: starts with 3, return 3.0 or higher | ||
if (viewerVersion.startsWith('3')) { | ||
@@ -184,21 +215,24 @@ const upgradeVersions = viewerVersion | ||
.map(match => parseInt(match)); | ||
if (upgradeVersions[1] >= 3) { | ||
if (upgradeVersions[1] >= 3 && upgradeVersions[2] >= 8) { // starting from 3.3.8.0 | ||
return '6.0'; | ||
} | ||
else if (upgradeVersions[1] >= 3) { // starting from 3.3.0.0 | ||
return '5.0'; | ||
} | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 11) || upgradeVersions[1] > 2) { | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 11)) { // starting from 3.2.11.0 | ||
return '4.1'; | ||
} | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 10) || upgradeVersions[1] > 2) { | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 10)) { // starting from 3.2.10.0 | ||
return '4.0'; | ||
} | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 9) || upgradeVersions[1] > 2) { | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 9)) { // starting from 3.2.9.0 | ||
return '3.4'; | ||
} | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 7) || upgradeVersions[1] > 2) { | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 7)) { // starting from 3.2.7.0 | ||
return '3.3'; | ||
} | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 6) || upgradeVersions[1] > 2) { | ||
else if ((upgradeVersions[1] === 2 && upgradeVersions[2] >= 6)) { // starting from 3.2.6.0 | ||
return '3.2'; | ||
} | ||
else if ((upgradeVersions[1] === 1 && upgradeVersions[2] >= 12) || upgradeVersions[1] > 1) { | ||
else if ((upgradeVersions[1] === 1 && upgradeVersions[2] >= 12) || upgradeVersions[1] > 1) { // starting from 3.1.12.0 | ||
return '3.1'; | ||
@@ -210,6 +244,7 @@ } | ||
} | ||
// should not happen | ||
return '1.0'; | ||
}; | ||
exports.evaluateSettingsVersion = evaluateSettingsVersion; | ||
exports.latestVersion = '5.0'; | ||
exports.latestVersion = '6.0'; | ||
//# sourceMappingURL=index.js.map |
@@ -148,6 +148,6 @@ "use strict"; | ||
settings.controlDamping = newSettings.viewer.scene.camera.controls.orbit.damping; | ||
if (newSettings.parameters && newSettings.parameters.controlNames) { | ||
if (newSettings.parameters && newSettings.parameters.controlNames) { // important to keep this, because old viewers will not work properly if this property is null | ||
settings.controlNames = newSettings.parameters.controlNames; | ||
} | ||
if (newSettings.parameters && newSettings.parameters.controlOrder) { | ||
if (newSettings.parameters && newSettings.parameters.controlOrder) { // important to keep this, because old viewers will not work properly if this property is null | ||
settings.controlOrder = newSettings.parameters.controlOrder; | ||
@@ -166,3 +166,3 @@ } | ||
settings.panSpeed = newSettings.viewer.scene.camera.controls.orbit.panSpeed; | ||
if (newSettings.parameters && newSettings.parameters.parametersHidden) { | ||
if (newSettings.parameters && newSettings.parameters.parametersHidden) { // important to keep this, because old viewers will not work properly if this property is null | ||
settings.parametersHidden = newSettings.parameters.parametersHidden; | ||
@@ -169,0 +169,0 @@ } |
@@ -9,2 +9,5 @@ "use strict"; | ||
const oldSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = oldSettings.ar; | ||
@@ -17,2 +20,5 @@ settings.build_date = oldSettings.build_date; | ||
settings.session = oldSettings.session; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.environment.clearAlpha = oldSettings.environment.clearAlpha; | ||
@@ -43,2 +49,5 @@ settings.environment.clearColor = oldSettings.environment.clearColor; | ||
const newSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = newSettings.ar; | ||
@@ -51,2 +60,5 @@ settings.build_date = newSettings.build_date; | ||
settings.session = newSettings.session; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.environment.clearAlpha = newSettings.environment.clearAlpha; | ||
@@ -53,0 +65,0 @@ settings.environment.clearColor = newSettings.environment.clearColor; |
@@ -9,2 +9,5 @@ "use strict"; | ||
const oldSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = oldSettings.ar; | ||
@@ -19,2 +22,5 @@ settings.build_date = oldSettings.build_date; | ||
settings.environmentGeometry = oldSettings.environmentGeometry; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.rendering.ambientOcclusion = oldSettings.rendering.ambientOcclusion; | ||
@@ -37,2 +43,5 @@ settings.rendering.ambientOcclusionIntensity = oldSettings.rendering.ambientOcclusionIntensity; | ||
const newSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = newSettings.ar; | ||
@@ -47,2 +56,5 @@ settings.build_date = newSettings.build_date; | ||
settings.environmentGeometry = newSettings.environmentGeometry; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.rendering.ambientOcclusion = newSettings.rendering.ambientOcclusion; | ||
@@ -49,0 +61,0 @@ settings.rendering.ambientOcclusionIntensity = newSettings.rendering.ambientOcclusionIntensity; |
@@ -9,2 +9,5 @@ "use strict"; | ||
const oldSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = oldSettings.ar; | ||
@@ -14,6 +17,11 @@ settings.build_date = oldSettings.build_date; | ||
settings.camera = oldSettings.camera; | ||
// settings.general = oldSettings.general; | ||
settings.light = oldSettings.light; | ||
settings.session = oldSettings.session; | ||
// settings.environment = oldSettings.environment; | ||
settings.environmentGeometry = oldSettings.environmentGeometry; | ||
settings.rendering = oldSettings.rendering; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.general.transformation = oldSettings.general.transformation; | ||
@@ -40,2 +48,5 @@ settings.general.blurWhenBusy = oldSettings.general.blurWhenBusy; | ||
const newSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = newSettings.ar; | ||
@@ -45,6 +56,11 @@ settings.build_date = newSettings.build_date; | ||
settings.camera = newSettings.camera; | ||
// settings.general = newSettings.general; | ||
settings.light = newSettings.light; | ||
settings.session = newSettings.session; | ||
// settings.environment = newSettings.environment; | ||
settings.environmentGeometry = newSettings.environmentGeometry; | ||
settings.rendering = newSettings.rendering; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.general.transformation = newSettings.general.transformation; | ||
@@ -51,0 +67,0 @@ settings.general.blurWhenBusy = newSettings.general.blurWhenBusy; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convertToPrevious = exports.convertFromPrevious = void 0; | ||
const Defaults_1 = require("../v4_0/Defaults"); | ||
const Defaults_1 = require("../v4/Defaults"); | ||
const Defaults_2 = require("./Defaults"); | ||
@@ -9,2 +9,5 @@ const convertFromPrevious = (s, v) => { | ||
const oldSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = oldSettings.ar; | ||
@@ -20,2 +23,5 @@ settings.build_date = oldSettings.build_date; | ||
settings.rendering = oldSettings.rendering; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.postprocessing.antiAliasingTechnique = oldSettings.postprocessing.antiAliasingTechnique; | ||
@@ -27,2 +33,3 @@ settings.postprocessing.antiAliasingTechniqueMobile = oldSettings.postprocessing.antiAliasingTechniqueMobile; | ||
const ssaoEffect = settings.postprocessing.effects.find(e => e.type === "ssao"); | ||
// if no ssaoEffect, add it | ||
if (!ssaoEffect) | ||
@@ -36,2 +43,5 @@ settings.postprocessing.effects.push(Defaults_2.Defaults().postprocessing.effects.find(e => e.type === "ssao")); | ||
const newSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = newSettings.ar; | ||
@@ -48,2 +58,5 @@ settings.build_date = newSettings.build_date; | ||
settings.postprocessing = newSettings.postprocessing; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
return settings; | ||
@@ -50,0 +63,0 @@ }; |
@@ -1,3 +0,3 @@ | ||
import { ISettings } from "../v4_0/ISettings"; | ||
import { ISettings } from "../v4/ISettings"; | ||
export { ISettings }; | ||
//# sourceMappingURL=ISettings.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import { validate } from "../v4_0/Validator"; | ||
import { validate } from "../v4/Validator"; | ||
export { validate }; | ||
//# sourceMappingURL=Validator.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validate = void 0; | ||
const Validator_1 = require("../v4_0/Validator"); | ||
const Validator_1 = require("../v4/Validator"); | ||
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return Validator_1.validate; } }); | ||
//# sourceMappingURL=Validator.js.map |
@@ -9,2 +9,5 @@ "use strict"; | ||
const oldSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = oldSettings.ar; | ||
@@ -20,2 +23,5 @@ settings.build_date = oldSettings.build_date; | ||
settings.postprocessing = oldSettings.postprocessing; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.camera.cameraId = oldSettings.camera.cameraId; | ||
@@ -119,2 +125,5 @@ for (let key in oldSettings.camera.cameras) { | ||
const newSettings = s; | ||
/** | ||
* SETTINGS OBJECTS THAT DID NOT CHANGE | ||
*/ | ||
settings.ar = newSettings.ar; | ||
@@ -130,2 +139,5 @@ settings.build_date = newSettings.build_date; | ||
settings.postprocessing = newSettings.postprocessing; | ||
/** | ||
* SETTINGS OBJECTS THAT DID CHANGE | ||
*/ | ||
settings.camera.cameraId = newSettings.camera.cameraId; | ||
@@ -132,0 +144,0 @@ for (let key in newSettings.camera.cameras) { |
@@ -8,3 +8,3 @@ "use strict"; | ||
build_version: '', | ||
settings_version: '4.1', | ||
settings_version: '5.0', | ||
ar: { | ||
@@ -11,0 +11,0 @@ enable: true, |
"use strict"; | ||
// #region Interfaces (5) | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// #endregion Interfaces (5) | ||
//# sourceMappingURL=ICameraSettings.js.map |
import { IGlobalSettings } from "../../interfaces/IGlobalSettings"; | ||
import { ILightSceneSettings } from "../v3/ILightSceneSettings"; | ||
import { IPostProcessingEffectsArray } from "../v4_0/IPostProcessingEffectSettings"; | ||
import { IPostProcessingEffectsArray } from "../v4/IPostProcessingEffectSettings"; | ||
import { ICameraSettings } from "./ICameraSettings"; | ||
@@ -5,0 +5,0 @@ export interface ISettings extends IGlobalSettings { |
{ | ||
"name": "@shapediver/viewer.settings", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "", | ||
"keywords": [], | ||
"author": "Michael Oppitz <michael@shapediver.com>", | ||
"license": "polyform-noncommercial-1.0.0", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "jest __tests__", | ||
"build": "rm -rf ./dist && tsc -b", | ||
"publish-patch": "npm run build && npm run test && npm version patch && npm publish --access public --registry https://registry.npmjs.org/ && npm publish --registry https://npm.pkg.github.com/", | ||
"publish-minor": "npm run build && npm run test && npm version minor && npm publish --access public --registry https://registry.npmjs.org/ && npm publish --registry https://npm.pkg.github.com/", | ||
"publish-major": "npm run build && npm run test && npm version major && npm publish --access public --registry https://registry.npmjs.org/ && npm publish --registry https://npm.pkg.github.com//" | ||
"directories": { | ||
"test": "__tests__" | ||
}, | ||
"files": [ | ||
"dist" | ||
"package.json", | ||
"dist/", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/shapediver/ViewerSettings.git" | ||
"url": "git+https://github.com/shapediver/Viewer.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"scripts": { | ||
"test": "jest __tests__", | ||
"check": "tsc --noEmit", | ||
"build": "bash ../../scripts/building/build.sh", | ||
"build-watch": "bash ../../scripts/building/build-watch.sh", | ||
"build-dep": "bash ../../scripts/building/build-dep.sh", | ||
"build-all": "npm run build" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/shapediver/ViewerSettings/issues" | ||
"url": "https://github.com/shapediver/Viewer/issues" | ||
}, | ||
"homepage": "https://github.com/shapediver/ViewerSettings#readme", | ||
"homepage": "https://github.com/shapediver/Viewer#readme", | ||
"typings": "dist/index.d.ts", | ||
"jest": { | ||
@@ -29,0 +39,0 @@ "preset": "ts-jest", |
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
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
514257
194
5700
1