Skip to content

Commit f4aab16

Browse files
authored
Export BatchTable, complementing some types (#1434)
* export BatchTable, complement some typings * undo types for utils
1 parent 9c0d92d commit f4aab16

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/core/renderer/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ export { LRUCache } from './utilities/LRUCache.js';
1111
export * from './utilities/PriorityQueue.js';
1212
export * as TraversalUtils from './utilities/TraversalUtils.js';
1313
export * as LoaderUtils from './utilities/LoaderUtils.js';
14+
export { BatchTable } from './utilities/BatchTable.js';
15+
export { FeatureTable } from './utilities/FeatureTable.js';

src/core/renderer/utilities/BatchTable.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export class BatchTable {
1+
import { FeatureTable } from './FeatureTable.js';
2+
3+
export class BatchTable extends FeatureTable {
24

35
count : number;
46

src/core/renderer/utilities/FeatureTable.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ interface FeatureTableHeader {
77

88
export class FeatureTable {
99

10-
header: FeatureTableHeader;
10+
buffer : ArrayBuffer;
11+
binOffset : number;
12+
binLength : number;
13+
header : FeatureTableHeader;
1114

1215
constructor(
1316
buffer : ArrayBuffer,

0 commit comments

Comments
 (0)