fozmo-3d-preview
Advanced tools
Comparing version 1.0.42 to 1.0.43
@@ -33,2 +33,3 @@ import { BaseScene, BaseSceneConfig } from '../Base/BaseScene'; | ||
init(url: string, config: LaunchConfig): Promise<boolean>; | ||
private setExtraParams; | ||
private _textureImageContainer; | ||
@@ -35,0 +36,0 @@ private createTextureImageContainer; |
@@ -350,5 +350,17 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager'; | ||
this.setDirectionalLight(this._params.DLEnable); | ||
this.setExtraParams(); | ||
this.onResize(); | ||
return true; | ||
} | ||
setExtraParams() { | ||
this._wireframes.visible = this._params.wireframeEnabled; | ||
if (this._wireframes.visible) { | ||
this._wireframes.children.forEach((child) => { | ||
child.material.color.set(this._params.wireframeColor); | ||
}); | ||
} | ||
this._normals.visible = this._params.normalsEnabled; | ||
this._model.visible = !this._params.normalsEnabled; | ||
this._textureImageContainer.style.display = this._params.textureEnabled ? 'block' : 'none'; | ||
} | ||
_textureImageContainer; | ||
@@ -940,10 +952,3 @@ createTextureImageContainer() { | ||
if (this._params.wireframeEnabled !== undefined) { | ||
this._wireframes.visible = Boolean(this._params.wireframeEnabled); | ||
if (this._wireframes.visible) { | ||
this._wireframes.children.forEach((child) => { | ||
child.material.color.set(this._params.wireframeColor); | ||
}); | ||
} | ||
this._normals.visible = Boolean(this._params.normalsEnabled); | ||
this._textureImageContainer.style.display = Boolean(this._params.textureEnabled) ? 'block' : 'none'; | ||
this.setExtraParams(); | ||
} | ||
@@ -950,0 +955,0 @@ if (this._gui) { |
{ | ||
"name": "fozmo-3d-preview", | ||
"version": "1.0.42", | ||
"version": "1.0.43", | ||
"description": "风之末 作品预览", | ||
@@ -5,0 +5,0 @@ "main": "lib/Fozmo3DPreview.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200577
5938