@manycore/aholo-splat-transform 1.2.7 → 1.2.9

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.
Files changed (98) hide show
  1. package/CHANGELOG.md +120 -106
  2. package/COPYRIGHT.md +17 -0
  3. package/README.md +39 -39
  4. package/THIRD_PARTY_LICENSES.txt +1373 -0
  5. package/bin/cli.js +125 -118
  6. package/dist/SplatData.d.ts +67 -67
  7. package/dist/SplatData.js +167 -156
  8. package/dist/constant.d.ts +3 -3
  9. package/dist/constant.js +13 -13
  10. package/dist/file/IFile.d.ts +5 -5
  11. package/dist/file/IFile.js +1 -1
  12. package/dist/file/esz.d.ts +11 -0
  13. package/dist/file/esz.js +337 -0
  14. package/dist/file/index.d.ts +8 -7
  15. package/dist/file/index.js +7 -6
  16. package/dist/file/ksplat.d.ts +12 -12
  17. package/dist/file/ksplat.js +293 -232
  18. package/dist/file/lcc.d.ts +11 -11
  19. package/dist/file/lcc.js +161 -157
  20. package/dist/file/ply.d.ts +13 -13
  21. package/dist/file/ply.js +439 -388
  22. package/dist/file/sog.d.ts +80 -80
  23. package/dist/file/sog.js +525 -504
  24. package/dist/file/splat.d.ts +6 -6
  25. package/dist/file/splat.js +119 -99
  26. package/dist/file/spz.d.ts +11 -8
  27. package/dist/file/spz.js +597 -400
  28. package/dist/file/voxel.d.ts +43 -37
  29. package/dist/file/voxel.js +411 -280
  30. package/dist/index.d.ts +33 -33
  31. package/dist/index.js +54 -54
  32. package/dist/native/index.d.ts +54 -54
  33. package/dist/native/index.js +122 -128
  34. package/dist/native/utils.d.ts +1 -0
  35. package/dist/native/utils.js +54 -0
  36. package/dist/tasks/AutoChunkLodTask.d.ts +13 -13
  37. package/dist/tasks/AutoChunkLodTask.js +117 -117
  38. package/dist/tasks/AutoLodTask.d.ts +10 -10
  39. package/dist/tasks/AutoLodTask.js +20 -20
  40. package/dist/tasks/BaseTask.d.ts +15 -15
  41. package/dist/tasks/BaseTask.js +5 -5
  42. package/dist/tasks/FlexLodTask.d.ts +12 -12
  43. package/dist/tasks/FlexLodTask.js +54 -44
  44. package/dist/tasks/ModifyTask.d.ts +9 -9
  45. package/dist/tasks/ModifyTask.js +166 -156
  46. package/dist/tasks/ReadTask.d.ts +9 -9
  47. package/dist/tasks/ReadTask.js +29 -29
  48. package/dist/tasks/SkeletonLodTask.d.ts +10 -10
  49. package/dist/tasks/SkeletonLodTask.js +176 -156
  50. package/dist/tasks/VoxelTask.d.ts +35 -30
  51. package/dist/tasks/VoxelTask.js +40 -37
  52. package/dist/tasks/WriteTask.d.ts +12 -11
  53. package/dist/tasks/WriteTask.js +70 -70
  54. package/dist/utils/BufferReader.d.ts +12 -12
  55. package/dist/utils/BufferReader.js +45 -47
  56. package/dist/utils/Logger.d.ts +11 -11
  57. package/dist/utils/Logger.js +40 -38
  58. package/dist/utils/StreamChunkDecoder.d.ts +16 -16
  59. package/dist/utils/StreamChunkDecoder.js +31 -36
  60. package/dist/utils/index.d.ts +27 -27
  61. package/dist/utils/index.js +101 -101
  62. package/dist/utils/k-means.d.ts +4 -4
  63. package/dist/utils/k-means.js +340 -350
  64. package/dist/utils/math.d.ts +46 -46
  65. package/dist/utils/math.js +350 -351
  66. package/dist/utils/quantize-1d.d.ts +4 -4
  67. package/dist/utils/quantize-1d.js +164 -164
  68. package/dist/utils/sh-rotate.d.ts +2 -2
  69. package/dist/utils/sh-rotate.js +236 -175
  70. package/dist/utils/splat.d.ts +21 -20
  71. package/dist/utils/splat.js +397 -378
  72. package/dist/utils/voxel/binary.d.ts +8 -0
  73. package/dist/utils/voxel/binary.js +176 -0
  74. package/dist/utils/voxel/common.d.ts +178 -162
  75. package/dist/utils/voxel/common.js +1752 -1700
  76. package/dist/utils/voxel/coplanar-merge.d.ts +63 -63
  77. package/dist/utils/voxel/coplanar-merge.js +818 -819
  78. package/dist/utils/voxel/filter-cluster.d.ts +20 -0
  79. package/dist/utils/voxel/filter-cluster.js +628 -0
  80. package/dist/utils/voxel/gpu-dilation.d.ts +2 -2
  81. package/dist/utils/voxel/gpu-dilation.js +677 -665
  82. package/dist/utils/voxel/marching-cubes.d.ts +42 -42
  83. package/dist/utils/voxel/marching-cubes.js +1645 -1657
  84. package/dist/utils/voxel/mesh.d.ts +3 -3
  85. package/dist/utils/voxel/mesh.js +130 -130
  86. package/dist/utils/voxel/nav.d.ts +29 -29
  87. package/dist/utils/voxel/nav.js +1068 -1043
  88. package/dist/utils/voxel/postprocess.d.ts +23 -23
  89. package/dist/utils/voxel/postprocess.js +408 -375
  90. package/dist/utils/voxel/voxel-faces.d.ts +18 -18
  91. package/dist/utils/voxel/voxel-faces.js +662 -663
  92. package/dist/utils/voxel/voxelize.d.ts +34 -33
  93. package/dist/utils/voxel/voxelize.js +1208 -1193
  94. package/dist/utils/webgpu.d.ts +8 -8
  95. package/dist/utils/webgpu.js +122 -122
  96. package/package.json +37 -30
  97. package/dist/native/cpp/bin/linux/binding.node +0 -0
  98. package/dist/native/cpp/bin/windows/binding.node +0 -0
@@ -1,156 +1,166 @@
1
- import fs from 'node:fs';
2
- import { createSHRotateFn, fastDeleteSplat, Matrix3, Matrix4, Quaternion, Vector3 } from '../utils/index.js';
3
- import { BaseTask } from './BaseTask.js';
4
- async function createSplatModify(path, counts) {
5
- if (!path) {
6
- return undefined;
7
- }
8
- const { isRowMatrix = true, transform, deletedIndices: deletedIndicesBitMap = [], indicesTransform = [], } = JSON.parse(fs.readFileSync(path, 'utf-8'));
9
- const used = new Uint8Array(counts);
10
- let usedCounts = 0;
11
- const deletedIndices = [];
12
- for (let i = 0; i < deletedIndicesBitMap.length; i++) {
13
- const v = deletedIndicesBitMap[i];
14
- for (let j = 0; j < 8; j++) {
15
- if (v & (1 << j)) {
16
- const idx = i * 8 + j;
17
- deletedIndices.push(idx);
18
- used[idx] = 1;
19
- usedCounts++;
20
- }
21
- }
22
- }
23
- const groupIndices = [];
24
- const groupTransforms = [];
25
- const modelMatrix = new Matrix4(transform, isRowMatrix);
26
- const transforms = indicesTransform.map(v => new Matrix4(v.transform, isRowMatrix).multiply(modelMatrix));
27
- for (let i = 0; i < transforms.length; i++) {
28
- const { indices } = indicesTransform[i];
29
- for (let j = 0; j < indices.length; j++) {
30
- used[indices[j]] = 1;
31
- }
32
- usedCounts += indices.length;
33
- const matrix = transforms[i];
34
- if (matrix.equals(Matrix4.ONE)) {
35
- continue;
36
- }
37
- const scale = new Vector3(1, 1, 1);
38
- const quat = new Quaternion(0, 0, 0, 1);
39
- matrix.decompose(new Vector3(1, 1, 1), quat, scale);
40
- groupIndices.push(indices);
41
- groupTransforms.push({
42
- isScale: !scale.equals(Vector3.ONE),
43
- isRotate: !quat.equals(Quaternion.ONE),
44
- matrix,
45
- scale,
46
- quat,
47
- shRotateFn: createSHRotateFn(new Matrix3().setFromMatrix4(new Matrix4().compose(new Vector3(0, 0, 0), quat, new Vector3(1, 1, 1)))),
48
- });
49
- }
50
- if (!modelMatrix.equals(Matrix4.ONE)) {
51
- const indices = new Array(counts - usedCounts);
52
- for (let i = 0; i < used.length; i++) {
53
- if (used[i]) {
54
- continue;
55
- }
56
- indices.push(i);
57
- }
58
- const matrix = modelMatrix;
59
- const scale = new Vector3(1, 1, 1);
60
- const quat = new Quaternion(0, 0, 0, 1);
61
- matrix.decompose(new Vector3(1, 1, 1), quat, scale);
62
- groupIndices.unshift(indices);
63
- groupTransforms.unshift({
64
- isScale: !scale.equals(Vector3.ONE),
65
- isRotate: !quat.equals(Quaternion.ONE),
66
- matrix,
67
- scale,
68
- quat,
69
- shRotateFn: createSHRotateFn(new Matrix3().setFromMatrix4(new Matrix4().compose(new Vector3(0, 0, 0), quat, new Vector3(1, 1, 1)))),
70
- });
71
- }
72
- return {
73
- deletedIndices,
74
- groupIndices,
75
- groupTransforms,
76
- };
77
- }
78
- export class ModifyTask extends BaseTask {
79
- async exec(config, { logger, resources }) {
80
- const { input, modifyPaths = [], output } = config;
81
- const splat = resources.get(input);
82
- logger.info(`loaded -> "${input}"`);
83
- const modifies = await Promise.all(modifyPaths.map((p, i) => createSplatModify(p, splat.blockContentCounts[i])));
84
- const tempVec = new Vector3(0, 0, 0);
85
- const tempQuat = new Quaternion(0, 0, 0, 1);
86
- const single = {
87
- x: 0, y: 0, z: 0,
88
- sx: 0, sy: 0, sz: 0,
89
- qx: 0, qy: 0, qz: 0, qw: 0,
90
- r: 0, g: 0, b: 0, a: 0,
91
- shN: new Array(splat.shCounts),
92
- };
93
- const shN = single.shN;
94
- const shCoeffs = new Array(splat.shCounts / 3).fill(0);
95
- const deletedTotalIndices = [];
96
- for (let i = 0; i < modifies.length; i++) {
97
- const modify = modifies[i];
98
- if (!modify) {
99
- logger.info(`modify[${i}] is null, skip`);
100
- continue;
101
- }
102
- const offset = splat.blockOffsets[i];
103
- const { deletedIndices, groupIndices, groupTransforms } = modify;
104
- logger.info(`modify[${i}] offset=${offset} groups=${groupIndices.length} delete=${deletedIndices.length}`);
105
- for (let j = 0; j < groupIndices.length; j++) {
106
- const indices = groupIndices[j];
107
- const { isScale, isRotate, matrix, scale, quat, shRotateFn } = groupTransforms[j];
108
- logger.info(`group[${i}:${j}] size=${indices.length} scale=${isScale} rotate=${isRotate}`);
109
- for (let k = 0; k < indices.length; k++) {
110
- const idx = offset + indices[k];
111
- splat.get(idx, single);
112
- tempVec.set(single.x, single.y, single.z).applyMatrix4(matrix);
113
- single.x = tempVec.x;
114
- single.y = tempVec.y;
115
- single.z = tempVec.z;
116
- if (isScale) {
117
- tempVec.set(single.sx, single.sy, single.sz).mul(scale);
118
- single.sx = tempVec.x;
119
- single.sy = tempVec.y;
120
- single.sz = tempVec.z;
121
- }
122
- if (isRotate) {
123
- tempQuat.set(single.qx, single.qy, single.qz, single.qw).premultiply(quat);
124
- single.qx = tempQuat.x;
125
- single.qy = tempQuat.y;
126
- single.qz = tempQuat.z;
127
- single.qw = tempQuat.w;
128
- }
129
- splat.set(idx, single);
130
- if (isRotate) {
131
- splat.getShN(idx, shN);
132
- for (let m = 0; m < 3; m++) {
133
- for (let n = 0; n < shCoeffs.length; n++) {
134
- shCoeffs[n] = shN[n * 3 + m];
135
- }
136
- shRotateFn(shCoeffs);
137
- for (let n = 0; n < shCoeffs.length; n++) {
138
- shN[n * 3 + m] = shCoeffs[n];
139
- }
140
- }
141
- splat.setShN(idx, shN);
142
- }
143
- }
144
- }
145
- for (let j = 0; j < deletedIndices.length; j++) {
146
- deletedTotalIndices.push(offset + deletedIndices[j]);
147
- }
148
- }
149
- if (deletedTotalIndices.length > 0) {
150
- fastDeleteSplat(splat, deletedTotalIndices);
151
- logger.info(`delete ${deletedTotalIndices.length} splat`);
152
- }
153
- resources.set(output, splat);
154
- logger.info(`stored -> key="${output}"`);
155
- }
156
- }
1
+ import fs from 'node:fs';
2
+ import { createSHRotateFn, fastDeleteSplat, Matrix3, Matrix4, Quaternion, Vector3 } from '../utils/index.js';
3
+ import { BaseTask } from './BaseTask.js';
4
+ async function createSplatModify(path, counts) {
5
+ if (!path) {
6
+ return undefined;
7
+ }
8
+ const { isRowMatrix = true, transform, deletedIndices: deletedIndicesBitMap = [], indicesTransform = [], } = JSON.parse(fs.readFileSync(path, 'utf-8'));
9
+ const used = new Uint8Array(counts);
10
+ let usedCounts = 0;
11
+ const deletedIndices = [];
12
+ for (let i = 0; i < deletedIndicesBitMap.length; i++) {
13
+ const v = deletedIndicesBitMap[i];
14
+ for (let j = 0; j < 8; j++) {
15
+ if (v & (1 << j)) {
16
+ const idx = i * 8 + j;
17
+ deletedIndices.push(idx);
18
+ used[idx] = 1;
19
+ usedCounts++;
20
+ }
21
+ }
22
+ }
23
+ const groupIndices = [];
24
+ const groupTransforms = [];
25
+ const modelMatrix = new Matrix4(transform, isRowMatrix);
26
+ const transforms = indicesTransform.map(v => new Matrix4(v.transform, isRowMatrix).multiply(modelMatrix));
27
+ for (let i = 0; i < transforms.length; i++) {
28
+ const { indices } = indicesTransform[i];
29
+ for (let j = 0; j < indices.length; j++) {
30
+ used[indices[j]] = 1;
31
+ }
32
+ usedCounts += indices.length;
33
+ const matrix = transforms[i];
34
+ if (matrix.equals(Matrix4.ONE)) {
35
+ continue;
36
+ }
37
+ const scale = new Vector3(1, 1, 1);
38
+ const quat = new Quaternion(0, 0, 0, 1);
39
+ matrix.decompose(new Vector3(1, 1, 1), quat, scale);
40
+ groupIndices.push(indices);
41
+ groupTransforms.push({
42
+ isScale: !scale.equals(Vector3.ONE),
43
+ isRotate: !quat.equals(Quaternion.ONE),
44
+ matrix,
45
+ scale,
46
+ quat,
47
+ shRotateFn: createSHRotateFn(new Matrix3().setFromMatrix4(new Matrix4().compose(new Vector3(0, 0, 0), quat, new Vector3(1, 1, 1)))),
48
+ });
49
+ }
50
+ if (!modelMatrix.equals(Matrix4.ONE)) {
51
+ const indices = new Array(counts - usedCounts);
52
+ for (let i = 0; i < used.length; i++) {
53
+ if (used[i]) {
54
+ continue;
55
+ }
56
+ indices.push(i);
57
+ }
58
+ const matrix = modelMatrix;
59
+ const scale = new Vector3(1, 1, 1);
60
+ const quat = new Quaternion(0, 0, 0, 1);
61
+ matrix.decompose(new Vector3(1, 1, 1), quat, scale);
62
+ groupIndices.unshift(indices);
63
+ groupTransforms.unshift({
64
+ isScale: !scale.equals(Vector3.ONE),
65
+ isRotate: !quat.equals(Quaternion.ONE),
66
+ matrix,
67
+ scale,
68
+ quat,
69
+ shRotateFn: createSHRotateFn(new Matrix3().setFromMatrix4(new Matrix4().compose(new Vector3(0, 0, 0), quat, new Vector3(1, 1, 1)))),
70
+ });
71
+ }
72
+ return {
73
+ deletedIndices,
74
+ groupIndices,
75
+ groupTransforms,
76
+ };
77
+ }
78
+ export class ModifyTask extends BaseTask {
79
+ async exec(config, { logger, resources }) {
80
+ const { input, modifyPaths = [], output } = config;
81
+ const splat = resources.get(input);
82
+ logger.info(`loaded -> "${input}"`);
83
+ const modifies = await Promise.all(modifyPaths.map((p, i) => createSplatModify(p, splat.blockContentCounts[i])));
84
+ const tempVec = new Vector3(0, 0, 0);
85
+ const tempQuat = new Quaternion(0, 0, 0, 1);
86
+ const single = {
87
+ x: 0,
88
+ y: 0,
89
+ z: 0,
90
+ sx: 0,
91
+ sy: 0,
92
+ sz: 0,
93
+ qx: 0,
94
+ qy: 0,
95
+ qz: 0,
96
+ qw: 0,
97
+ r: 0,
98
+ g: 0,
99
+ b: 0,
100
+ a: 0,
101
+ shN: new Array(splat.shCounts),
102
+ };
103
+ const shN = single.shN;
104
+ const shCoeffs = new Array(splat.shCounts / 3).fill(0);
105
+ const deletedTotalIndices = [];
106
+ for (let i = 0; i < modifies.length; i++) {
107
+ const modify = modifies[i];
108
+ if (!modify) {
109
+ logger.info(`modify[${i}] is null, skip`);
110
+ continue;
111
+ }
112
+ const offset = splat.blockOffsets[i];
113
+ const { deletedIndices, groupIndices, groupTransforms } = modify;
114
+ logger.info(`modify[${i}] offset=${offset} groups=${groupIndices.length} delete=${deletedIndices.length}`);
115
+ for (let j = 0; j < groupIndices.length; j++) {
116
+ const indices = groupIndices[j];
117
+ const { isScale, isRotate, matrix, scale, quat, shRotateFn } = groupTransforms[j];
118
+ logger.info(`group[${i}:${j}] size=${indices.length} scale=${isScale} rotate=${isRotate}`);
119
+ for (let k = 0; k < indices.length; k++) {
120
+ const idx = offset + indices[k];
121
+ splat.get(idx, single);
122
+ tempVec.set(single.x, single.y, single.z).applyMatrix4(matrix);
123
+ single.x = tempVec.x;
124
+ single.y = tempVec.y;
125
+ single.z = tempVec.z;
126
+ if (isScale) {
127
+ tempVec.set(single.sx, single.sy, single.sz).mul(scale);
128
+ single.sx = tempVec.x;
129
+ single.sy = tempVec.y;
130
+ single.sz = tempVec.z;
131
+ }
132
+ if (isRotate) {
133
+ tempQuat.set(single.qx, single.qy, single.qz, single.qw).premultiply(quat);
134
+ single.qx = tempQuat.x;
135
+ single.qy = tempQuat.y;
136
+ single.qz = tempQuat.z;
137
+ single.qw = tempQuat.w;
138
+ }
139
+ splat.set(idx, single);
140
+ if (isRotate) {
141
+ splat.getShN(idx, shN);
142
+ for (let m = 0; m < 3; m++) {
143
+ for (let n = 0; n < shCoeffs.length; n++) {
144
+ shCoeffs[n] = shN[n * 3 + m];
145
+ }
146
+ shRotateFn(shCoeffs);
147
+ for (let n = 0; n < shCoeffs.length; n++) {
148
+ shN[n * 3 + m] = shCoeffs[n];
149
+ }
150
+ }
151
+ splat.setShN(idx, shN);
152
+ }
153
+ }
154
+ }
155
+ for (let j = 0; j < deletedIndices.length; j++) {
156
+ deletedTotalIndices.push(offset + deletedIndices[j]);
157
+ }
158
+ }
159
+ if (deletedTotalIndices.length > 0) {
160
+ fastDeleteSplat(splat, deletedTotalIndices);
161
+ logger.info(`delete ${deletedTotalIndices.length} splat`);
162
+ }
163
+ resources.set(output, splat);
164
+ logger.info(`stored -> key="${output}"`);
165
+ }
166
+ }
@@ -1,9 +1,9 @@
1
- import { Context, BaseTask } from './BaseTask.js';
2
- export interface Config {
3
- inputs: string[];
4
- output: string;
5
- maxShDegree?: number;
6
- }
7
- export declare class ReadTask extends BaseTask<Config> {
8
- exec(config: Config, { logger, resources }: Context): Promise<void>;
9
- }
1
+ import { type Context, BaseTask } from './BaseTask.js';
2
+ export interface Config {
3
+ inputs: string[];
4
+ output: string;
5
+ maxShDegree?: number;
6
+ }
7
+ export declare class ReadTask extends BaseTask<Config> {
8
+ exec(config: Config, { logger, resources }: Context): Promise<void>;
9
+ }
@@ -1,29 +1,29 @@
1
- import fs from 'node:fs';
2
- import { Readable } from 'node:stream';
3
- import { SplatData } from '../SplatData.js';
4
- import { createSplatFile } from '../utils/index.js';
5
- import { BaseTask } from './BaseTask.js';
6
- export class ReadTask extends BaseTask {
7
- async exec(config, { logger, resources }) {
8
- const { inputs, output, maxShDegree } = config;
9
- const splat = new SplatData(inputs.length, maxShDegree);
10
- const promises = [];
11
- let totalBytes = 0;
12
- for (let i = 0; i < inputs.length; i++) {
13
- const path = inputs[i];
14
- const { size } = fs.statSync(path);
15
- totalBytes += size;
16
- const stream = Readable.toWeb(fs.createReadStream(path));
17
- const promise = createSplatFile(path).read(stream, size, splat);
18
- promises.push(promise);
19
- }
20
- await Promise.all(promises);
21
- logger.info(`load: ${inputs.length} files | sizes=${(totalBytes / 1024 / 1024).toFixed(2)}MB`);
22
- for (let i = 0; i < inputs.length; i++) {
23
- logger.info(` - ${inputs[i]}`);
24
- }
25
- logger.info(`counts: ${splat.counts}, SH: ${splat.shDegree}`);
26
- resources.set(output, splat);
27
- logger.info(`stored -> "${output}"`);
28
- }
29
- }
1
+ import fs from 'node:fs';
2
+ import { Readable } from 'node:stream';
3
+ import { SplatData } from '../SplatData.js';
4
+ import { createSplatFile } from '../utils/index.js';
5
+ import { BaseTask } from './BaseTask.js';
6
+ export class ReadTask extends BaseTask {
7
+ async exec(config, { logger, resources }) {
8
+ const { inputs, output, maxShDegree } = config;
9
+ const splat = new SplatData(inputs.length, maxShDegree);
10
+ const promises = [];
11
+ let totalBytes = 0;
12
+ for (let i = 0; i < inputs.length; i++) {
13
+ const path = inputs[i];
14
+ const { size } = fs.statSync(path);
15
+ totalBytes += size;
16
+ const stream = Readable.toWeb(fs.createReadStream(path));
17
+ const promise = createSplatFile(path).read(stream, size, splat);
18
+ promises.push(promise);
19
+ }
20
+ await Promise.all(promises);
21
+ logger.info(`load: ${inputs.length} files | sizes=${(totalBytes / 1024 / 1024).toFixed(2)}MB`);
22
+ for (let i = 0; i < inputs.length; i++) {
23
+ logger.info(` - ${inputs[i]}`);
24
+ }
25
+ logger.info(`counts: ${splat.counts}, SH: ${splat.shDegree}`);
26
+ resources.set(output, splat);
27
+ logger.info(`stored -> "${output}"`);
28
+ }
29
+ }
@@ -1,10 +1,10 @@
1
- import { Context, BaseTask } from './BaseTask.js';
2
- export interface Config {
3
- input: string;
4
- output: string;
5
- counts?: number;
6
- ratio?: number;
7
- }
8
- export declare class SkeletonLodTask extends BaseTask<Config> {
9
- exec(config: Config, { logger, resources }: Context): Promise<void>;
10
- }
1
+ import { type Context, BaseTask } from './BaseTask.js';
2
+ export interface Config {
3
+ input: string;
4
+ output: string;
5
+ counts?: number;
6
+ ratio?: number;
7
+ }
8
+ export declare class SkeletonLodTask extends BaseTask<Config> {
9
+ exec(config: Config, { logger, resources }: Context): Promise<void>;
10
+ }