lythreeframe 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.cjs.js
CHANGED
|
@@ -1230,6 +1230,39 @@ class AssetManager {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
|
+
var AssetType;
|
|
1234
|
+
(function (AssetType) {
|
|
1235
|
+
AssetType[AssetType["geometry"] = 1] = "geometry";
|
|
1236
|
+
AssetType[AssetType["material"] = 2] = "material";
|
|
1237
|
+
AssetType[AssetType["texture"] = 3] = "texture";
|
|
1238
|
+
AssetType[AssetType["undefined"] = -1] = "undefined";
|
|
1239
|
+
})(AssetType || (AssetType = {}));
|
|
1240
|
+
exports.MaterialTextureType = void 0;
|
|
1241
|
+
(function (MaterialTextureType) {
|
|
1242
|
+
MaterialTextureType["ClearcoatMap"] = "clearcoatMap";
|
|
1243
|
+
MaterialTextureType["ClearcoatRoughnessMap"] = "clearcoatRoughnessMap";
|
|
1244
|
+
MaterialTextureType["ClearcoatNormalMap"] = "clearcoatNormalMap";
|
|
1245
|
+
MaterialTextureType["IridescenceMap"] = "iridescenceMap";
|
|
1246
|
+
MaterialTextureType["IridescenceThicknessMap"] = "iridescenceThicknessMap";
|
|
1247
|
+
MaterialTextureType["Map"] = "map";
|
|
1248
|
+
MaterialTextureType["AlphaMap"] = "alphaMap";
|
|
1249
|
+
MaterialTextureType["LightMap"] = "lightMap";
|
|
1250
|
+
MaterialTextureType["AoMap"] = "aoMap";
|
|
1251
|
+
MaterialTextureType["BumpMap"] = "bumpMap";
|
|
1252
|
+
MaterialTextureType["NormalMap"] = "normalMap";
|
|
1253
|
+
MaterialTextureType["DisplacementMap"] = "displacementMap";
|
|
1254
|
+
MaterialTextureType["RoughnessMap"] = "roughnessMap";
|
|
1255
|
+
MaterialTextureType["MetalnessMap"] = "metalnessMap";
|
|
1256
|
+
MaterialTextureType["EmissiveMap"] = "emissiveMap";
|
|
1257
|
+
MaterialTextureType["SpecularMap"] = "specularMap";
|
|
1258
|
+
MaterialTextureType["SpecularColorMap"] = "specularColorMap";
|
|
1259
|
+
MaterialTextureType["EnvMap"] = "envMap";
|
|
1260
|
+
MaterialTextureType["GradientMap"] = "gradientMap";
|
|
1261
|
+
MaterialTextureType["TransmissionMap"] = "transmissionMap";
|
|
1262
|
+
MaterialTextureType["ThicknessMap"] = "thicknessMap";
|
|
1263
|
+
})(exports.MaterialTextureType || (exports.MaterialTextureType = {}));
|
|
1264
|
+
const MaterialTextureTypes = Object.values(exports.MaterialTextureType);
|
|
1265
|
+
|
|
1233
1266
|
class Delegate {
|
|
1234
1267
|
constructor() {
|
|
1235
1268
|
this.functions = [];
|
|
@@ -2818,13 +2851,15 @@ class ThreeJsApp {
|
|
|
2818
2851
|
this.viewport.renderer.setAnimationLoop(() => {
|
|
2819
2852
|
this.tick();
|
|
2820
2853
|
});
|
|
2821
|
-
this.
|
|
2854
|
+
this.postConstruct();
|
|
2822
2855
|
}
|
|
2823
|
-
|
|
2856
|
+
postConstruct() {
|
|
2824
2857
|
this.controller.init();
|
|
2825
2858
|
this.world.init();
|
|
2826
2859
|
this.viewport.init();
|
|
2827
2860
|
}
|
|
2861
|
+
init() {
|
|
2862
|
+
}
|
|
2828
2863
|
tick() {
|
|
2829
2864
|
const delta = this._clock.getDelta();
|
|
2830
2865
|
this._controller.tick(delta);
|
|
@@ -3354,6 +3389,7 @@ exports.LabelComponent = LabelComponent;
|
|
|
3354
3389
|
exports.LevelActor = LevelActor;
|
|
3355
3390
|
exports.LevelComponent = LevelComponent;
|
|
3356
3391
|
exports.MaterialAssetPointer = MaterialAssetPointer;
|
|
3392
|
+
exports.MaterialTextureTypes = MaterialTextureTypes;
|
|
3357
3393
|
exports.MeshComponent = MeshComponent;
|
|
3358
3394
|
exports.Orbital = Orbital;
|
|
3359
3395
|
exports.PlaneActor = PlaneActor;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -1228,6 +1228,39 @@ class AssetManager {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
+
var AssetType;
|
|
1232
|
+
(function (AssetType) {
|
|
1233
|
+
AssetType[AssetType["geometry"] = 1] = "geometry";
|
|
1234
|
+
AssetType[AssetType["material"] = 2] = "material";
|
|
1235
|
+
AssetType[AssetType["texture"] = 3] = "texture";
|
|
1236
|
+
AssetType[AssetType["undefined"] = -1] = "undefined";
|
|
1237
|
+
})(AssetType || (AssetType = {}));
|
|
1238
|
+
var MaterialTextureType;
|
|
1239
|
+
(function (MaterialTextureType) {
|
|
1240
|
+
MaterialTextureType["ClearcoatMap"] = "clearcoatMap";
|
|
1241
|
+
MaterialTextureType["ClearcoatRoughnessMap"] = "clearcoatRoughnessMap";
|
|
1242
|
+
MaterialTextureType["ClearcoatNormalMap"] = "clearcoatNormalMap";
|
|
1243
|
+
MaterialTextureType["IridescenceMap"] = "iridescenceMap";
|
|
1244
|
+
MaterialTextureType["IridescenceThicknessMap"] = "iridescenceThicknessMap";
|
|
1245
|
+
MaterialTextureType["Map"] = "map";
|
|
1246
|
+
MaterialTextureType["AlphaMap"] = "alphaMap";
|
|
1247
|
+
MaterialTextureType["LightMap"] = "lightMap";
|
|
1248
|
+
MaterialTextureType["AoMap"] = "aoMap";
|
|
1249
|
+
MaterialTextureType["BumpMap"] = "bumpMap";
|
|
1250
|
+
MaterialTextureType["NormalMap"] = "normalMap";
|
|
1251
|
+
MaterialTextureType["DisplacementMap"] = "displacementMap";
|
|
1252
|
+
MaterialTextureType["RoughnessMap"] = "roughnessMap";
|
|
1253
|
+
MaterialTextureType["MetalnessMap"] = "metalnessMap";
|
|
1254
|
+
MaterialTextureType["EmissiveMap"] = "emissiveMap";
|
|
1255
|
+
MaterialTextureType["SpecularMap"] = "specularMap";
|
|
1256
|
+
MaterialTextureType["SpecularColorMap"] = "specularColorMap";
|
|
1257
|
+
MaterialTextureType["EnvMap"] = "envMap";
|
|
1258
|
+
MaterialTextureType["GradientMap"] = "gradientMap";
|
|
1259
|
+
MaterialTextureType["TransmissionMap"] = "transmissionMap";
|
|
1260
|
+
MaterialTextureType["ThicknessMap"] = "thicknessMap";
|
|
1261
|
+
})(MaterialTextureType || (MaterialTextureType = {}));
|
|
1262
|
+
const MaterialTextureTypes = Object.values(MaterialTextureType);
|
|
1263
|
+
|
|
1231
1264
|
class Delegate {
|
|
1232
1265
|
constructor() {
|
|
1233
1266
|
this.functions = [];
|
|
@@ -2816,13 +2849,15 @@ class ThreeJsApp {
|
|
|
2816
2849
|
this.viewport.renderer.setAnimationLoop(() => {
|
|
2817
2850
|
this.tick();
|
|
2818
2851
|
});
|
|
2819
|
-
this.
|
|
2852
|
+
this.postConstruct();
|
|
2820
2853
|
}
|
|
2821
|
-
|
|
2854
|
+
postConstruct() {
|
|
2822
2855
|
this.controller.init();
|
|
2823
2856
|
this.world.init();
|
|
2824
2857
|
this.viewport.init();
|
|
2825
2858
|
}
|
|
2859
|
+
init() {
|
|
2860
|
+
}
|
|
2826
2861
|
tick() {
|
|
2827
2862
|
const delta = this._clock.getDelta();
|
|
2828
2863
|
this._controller.tick(delta);
|
|
@@ -3324,4 +3359,4 @@ class TransformGizmo extends Pawn {
|
|
|
3324
3359
|
}
|
|
3325
3360
|
}
|
|
3326
3361
|
|
|
3327
|
-
export { Actor, AssetManager, AttachmentRules, BoxActor, BoxComponent, Controller, DefaultAppParam, DefaultBloomParam, DefaultCameraParam, DefaultDOFParam, DefaultDenoiseParam, DefaultGTAOParam, DefaultOutlineParams, DefaultPostProcessParam, DefaultRenderParam, DefaultSSRParam, DefaultSkyParam, DefaultToneMappingParams, DefaultViewportParam, DefaultWorldParam, Delegate, DirectionalLightActor, DirectionalLightComponent, FirstPerson, GeometryAssetPointer, LabelComponent, LevelActor, LevelComponent, MaterialAssetPointer, MeshComponent, Orbital, PlaneActor, PlaneComponent, SceneComponent, SkyActor, SkyComponent, SphereComponent, TAssetPointer, TSmartPointer, TextureAssetPointer, ThreeJsApp, ThreeObjectLibrary, ToneMappingOptions, TransformGizmo, Viewport, WebGPUPostProcessFactory, World };
|
|
3362
|
+
export { Actor, AssetManager, AttachmentRules, BoxActor, BoxComponent, Controller, DefaultAppParam, DefaultBloomParam, DefaultCameraParam, DefaultDOFParam, DefaultDenoiseParam, DefaultGTAOParam, DefaultOutlineParams, DefaultPostProcessParam, DefaultRenderParam, DefaultSSRParam, DefaultSkyParam, DefaultToneMappingParams, DefaultViewportParam, DefaultWorldParam, Delegate, DirectionalLightActor, DirectionalLightComponent, FirstPerson, GeometryAssetPointer, LabelComponent, LevelActor, LevelComponent, MaterialAssetPointer, MaterialTextureType, MaterialTextureTypes, MeshComponent, Orbital, PlaneActor, PlaneComponent, SceneComponent, SkyActor, SkyComponent, SphereComponent, TAssetPointer, TSmartPointer, TextureAssetPointer, ThreeJsApp, ThreeObjectLibrary, ToneMappingOptions, TransformGizmo, Viewport, WebGPUPostProcessFactory, World };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { TSmartPointer } from './lythreeframe/Container/SmartPointer';
|
|
|
4
4
|
export { MaterialAssetPointer } from "./lythreeframe/AssetManagement/AssetPointer/Assets/MaterialAssetPointer";
|
|
5
5
|
export { GeometryAssetPointer } from "./lythreeframe/AssetManagement/AssetPointer/Assets/GeometryAssetPointer";
|
|
6
6
|
export { TextureAssetPointer } from "./lythreeframe/AssetManagement/AssetPointer/Assets/TextureAssetPointer";
|
|
7
|
+
export { MaterialTextureType, MaterialTextureTypes } from "./lythreeframe/AssetManagement/AssetDefines";
|
|
7
8
|
export { AttachmentRules } from "./lythreeframe/Defines";
|
|
8
9
|
export { Delegate } from "./lythreeframe/Delegate";
|
|
9
10
|
export { ThreeJsApp } from "./lythreeframe/ThreeJsApp";
|
|
@@ -4,3 +4,27 @@ export declare enum AssetType {
|
|
|
4
4
|
texture = 3,
|
|
5
5
|
undefined = -1
|
|
6
6
|
}
|
|
7
|
+
export declare enum MaterialTextureType {
|
|
8
|
+
ClearcoatMap = "clearcoatMap",
|
|
9
|
+
ClearcoatRoughnessMap = "clearcoatRoughnessMap",
|
|
10
|
+
ClearcoatNormalMap = "clearcoatNormalMap",
|
|
11
|
+
IridescenceMap = "iridescenceMap",
|
|
12
|
+
IridescenceThicknessMap = "iridescenceThicknessMap",
|
|
13
|
+
Map = "map",
|
|
14
|
+
AlphaMap = "alphaMap",
|
|
15
|
+
LightMap = "lightMap",
|
|
16
|
+
AoMap = "aoMap",
|
|
17
|
+
BumpMap = "bumpMap",
|
|
18
|
+
NormalMap = "normalMap",
|
|
19
|
+
DisplacementMap = "displacementMap",
|
|
20
|
+
RoughnessMap = "roughnessMap",
|
|
21
|
+
MetalnessMap = "metalnessMap",
|
|
22
|
+
EmissiveMap = "emissiveMap",
|
|
23
|
+
SpecularMap = "specularMap",
|
|
24
|
+
SpecularColorMap = "specularColorMap",
|
|
25
|
+
EnvMap = "envMap",
|
|
26
|
+
GradientMap = "gradientMap",
|
|
27
|
+
TransmissionMap = "transmissionMap",
|
|
28
|
+
ThicknessMap = "thicknessMap"
|
|
29
|
+
}
|
|
30
|
+
export declare const MaterialTextureTypes: MaterialTextureType[];
|
|
@@ -24,6 +24,7 @@ export declare class ThreeJsApp {
|
|
|
24
24
|
get onCameraChangedDelegate(): Delegate<[void]>;
|
|
25
25
|
protected _onCameraChangedDelegate: Delegate<[void]>;
|
|
26
26
|
constructor(appParam?: AppParam);
|
|
27
|
+
protected postConstruct(): void;
|
|
27
28
|
init(): void;
|
|
28
29
|
tick(): void;
|
|
29
30
|
destroy(): void;
|