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

star_mod_renderer

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

star_mod_renderer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

helper/calculate.js

2

helper/modelHelper/model.js

@@ -6,3 +6,3 @@ import * as THREE from 'three';

getGlobalSettingsByFile
} from '../filesHelper';
} from '../../../helper/filesHelper';

@@ -9,0 +9,0 @@ export class ModelProcessor {

import * as THREE from 'three';
type Good = {
id: string;
fileNames: Record<string, string>;
materialParams: any;
extraMaterialParams?: any[];
previewData: any;
};
type GoodsPackageDetailInfo = {
goodsPackageId: string;
publishUserId: string;
};
type Texture = {
[key: string]: any;
};
type MaterialTexture = {
channel: number;
texture: Texture;
};
type MaterialLoadedList = Array<Record<string, boolean>>;
interface RenderAuxiliarySignals {
allMaterialRenderSuccess: {
dispatch(): void;
};
}
export declare class RenderAuxiliary {
render: any | null;
statusCode: number;
materialLoadedList: MaterialLoadedList;
statusCodeDescDom: any | null;
good: Good;
goodsPackageDetailInfo: GoodsPackageDetailInfo;
period: number;
type: number;
signals: RenderAuxiliarySignals;
constructor(render: any, type: number);
setGood(good: Good): void;
setGoodsPackageDetailInfo(detailInfo: GoodsPackageDetailInfo): void;
setStatusCode(statusCode: number): void;
setTextureLoadStatusCode(key: string): void;
setTextureLoadSuccessStatusCode(key: string): void;
getCurrStatusDesc(): string;
loadModelFile(key: string, url: string): Promise<any>;
getEncryptModelFile(fileName: string): Promise<any>;
getDecryptModelFile(encryptFile: any): Promise<any>;
loadModelTextureFileSuccess({
channelIndex,
key,
file,
}: {
channelIndex: number;
key: string;
file: any;
}): void;
loadModelFBXFile(): Promise<any>;
loadModelTextureFile(
channelIndex: number,
key: string
): Promise<{
channelIndex: number;
key: string;
file: any;
}>;
loadAllMaterialFile(): void;
getMaterialTextureList(): MaterialTexture[];
updateMaterialTexture({ channel, texture }: MaterialTexture): void;
updateMaterialParams(): void;
judgeRenderSuccess(): void;
createStatusCodeDescDom(): void;
showCurrLoadingStatus(): void;
getCurrFrameUrl(): Promise<string>;
startRender(): Promise<void>;
}
declare const SCENE_BACKGROUND_COLOR: string;

@@ -83,0 +4,0 @@ declare const AMBIENT_LIGHT_COLOR: string;

export * from './render.js';
export * from './renderAuxiliary.js';
export * from './render.base.js';
export * from './default.js';
{
"name": "star_mod_renderer",
"version": "1.0.3",
"version": "1.0.4",
"description": "star mod project render auxiliary ",

@@ -5,0 +5,0 @@ "main": "index.js",

import * as THREE from "three";
import { Signal } from './assets/signals.min.js';
import { EditorControls } from './assets/EditorControls';
import { EditorControls } from './assets/EditorControls.js';
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js';
import { ViewHelper } from 'three/examples/jsm/helpers/ViewHelper.js';
import { SCENE_BACKGROUND_COLOR, AMBIENT_LIGHT_COLOR, DIRECTION_LIGHT_COLOR } from './default';
import { SCENE_BACKGROUND_COLOR, AMBIENT_LIGHT_COLOR, DIRECTION_LIGHT_COLOR } from './default.js';

@@ -8,0 +8,0 @@ export class RenderBase {

import { RenderBase } from './render.base';
import { ModelProcessor } from './helper/modelHelper/index';
import { getEnvMapByName } from "@/renderer/default";
import { getEnvMapByName } from "./default";
import TgaLoader from "tga-js";

@@ -5,0 +5,0 @@ import {

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