star_mod_renderer
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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 { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2
47399
11
1268
2
0