three-stdlib 2.22.1 → 2.22.2

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("three");class r extends e.CompressedTexture{constructor(r,s,t,p,o,a){super(r,s,t,o,a),this.isCompressedArrayTexture=!0,this.image.depth=p,this.wrapR=e.ClampToEdgeWrapping}}exports.CompressedArrayTexture=r;
@@ -0,0 +1,13 @@
1
+ import { CompressedTexture, ClampToEdgeWrapping } from 'three';
2
+
3
+ class CompressedArrayTexture extends CompressedTexture {
4
+ constructor(mipmaps, width, height, depth, format, type) {
5
+ super(mipmaps, width, height, format, type);
6
+ this.isCompressedArrayTexture = true;
7
+ this.image.depth = depth;
8
+ this.wrapR = ClampToEdgeWrapping;
9
+ }
10
+
11
+ }
12
+
13
+ export { CompressedArrayTexture };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("three");class t extends e.Texture{constructor(t=null,i=1,r=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:t,width:i,height:r,depth:s},this.magFilter=e.NearestFilter,this.minFilter=e.NearestFilter,this.wrapR=e.ClampToEdgeWrapping,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}exports.Data3DTexture=t;
@@ -0,0 +1,23 @@
1
+ import { Texture, NearestFilter, ClampToEdgeWrapping } from 'three';
2
+
3
+ class Data3DTexture extends Texture {
4
+ constructor(data = null, width = 1, height = 1, depth = 1) {
5
+ super(null);
6
+ this.isData3DTexture = true;
7
+ this.image = {
8
+ data,
9
+ width,
10
+ height,
11
+ depth
12
+ };
13
+ this.magFilter = NearestFilter;
14
+ this.minFilter = NearestFilter;
15
+ this.wrapR = ClampToEdgeWrapping;
16
+ this.generateMipmaps = false;
17
+ this.flipY = false;
18
+ this.unpackAlignment = 1;
19
+ }
20
+
21
+ }
22
+
23
+ export { Data3DTexture };