Skip to content

Commit 1dd2200

Browse files
committed
fix: restore texture_dtype mapping to prevent crash when dragging T Time slider; closes #67
1 parent 3bc2a49 commit 1dd2200

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/utils/preview.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ const bjdata = window.bjdata;
88
const uPlot = window.uPlot;
99
const Buffer = window.buffer_module.Buffer;
1010

11+
const texture_dtype = {
12+
uint8: THREE.UnsignedByteType,
13+
uint16: THREE.UnsignedShortType,
14+
uint32: THREE.UnsignedIntType,
15+
int8: THREE.ByteType,
16+
int16: THREE.ShortType,
17+
int32: THREE.IntType,
18+
float32: THREE.FloatType,
19+
};
20+
1121
var urldata = {};
1222
const niitype = {
1323
2: "uint8",

0 commit comments

Comments
 (0)