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

fozmo-3d-preview

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fozmo-3d-preview - npm Package Compare versions

Comparing version 1.0.42 to 1.0.43

1

lib/scenes/MainScene.d.ts

@@ -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;

21

lib/scenes/MainScene.js

@@ -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",

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