New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fozmo-3d-preview

Package Overview
Dependencies
Maintainers
0
Versions
74
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.41 to 1.0.42

58

lib/scenes/MainScene.js

@@ -271,2 +271,8 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager';

}
if (this._params.wireframeEnabled === undefined) {
this._params.wireframeEnabled = false;
this._params.wireframeColor = 0xff0000;
this._params.normalsEnabled = false;
this._params.textureEnabled = false;
}
/* tslint:disable:no-string-literal */

@@ -687,20 +693,22 @@ await this.loadHDR(this._params.HDR);

// 新增
const wireframeFolder = gui.addFolder('线框');
wireframeFolder.add(this._params, 'wireframeEnabled').onChange((v) => {
this._wireframes.visible = v;
});
wireframeFolder.addColor(this._params, 'wireframeColor').onChange((v) => {
this._wireframes.children.forEach((child) => {
child.material.color.set(v);
if (this._params.wireframeEnabled !== undefined) {
const wireframeFolder = gui.addFolder('线框');
wireframeFolder.add(this._params, 'wireframeEnabled').onChange((v) => {
this._wireframes.visible = v;
});
});
const normalsFolder = gui.addFolder('法线');
normalsFolder.add(this._params, 'normalsEnabled').onChange((v) => {
this._normals.visible = v;
this._model.visible = !v;
});
const textureFolder = gui.addFolder('纹理');
textureFolder.add(this._params, 'textureEnabled').onChange((v) => {
this._textureImageContainer.style.display = v ? 'block' : 'none';
});
wireframeFolder.addColor(this._params, 'wireframeColor').onChange((v) => {
this._wireframes.children.forEach((child) => {
child.material.color.set(v);
});
});
const normalsFolder = gui.addFolder('法线');
normalsFolder.add(this._params, 'normalsEnabled').onChange((v) => {
this._normals.visible = v;
this._model.visible = !v;
});
const textureFolder = gui.addFolder('纹理');
textureFolder.add(this._params, 'textureEnabled').onChange((v) => {
this._textureImageContainer.style.display = v ? 'block' : 'none';
});
}
if (this._saveCallback !== undefined) {

@@ -932,10 +940,12 @@ const save = {

}
this._wireframes.visible = Boolean(this._params.wireframeEnabled);
if (this._wireframes.visible) {
this._wireframes.children.forEach((child) => {
child.material.color.set(this._params.wireframeColor);
});
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._normals.visible = Boolean(this._params.normalsEnabled);
this._textureImageContainer.style.display = Boolean(this._params.textureEnabled) ? 'block' : 'none';
if (this._gui) {

@@ -942,0 +952,0 @@ this._gui.updateDisplay();

{
"name": "fozmo-3d-preview",
"version": "1.0.41",
"version": "1.0.42",
"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