mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
Add encoding type 4 to bundle
This commit is contained in:
@@ -273,6 +273,31 @@ function bundle (json, opts = {}) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return encode.sequential(json, el => el.sequence, el => el.point, deltas, values, type)
|
return encode.sequential(json, el => el.sequence, el => el.point, deltas, values, type)
|
||||||
|
} else if (type == 4) {
|
||||||
|
/* Bare final positions
|
||||||
|
*
|
||||||
|
* Δelem 0: Sequence no. (Uint16Array, Uint8Array)
|
||||||
|
* elem 0‒1: Float32Array, Float32Array – Final positions (x, y)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
deltas.push({
|
||||||
|
key: el => el[2],
|
||||||
|
baseType: Uint16Array,
|
||||||
|
incrType: Int8Array
|
||||||
|
});
|
||||||
|
|
||||||
|
values.push({
|
||||||
|
key: el => el[3],
|
||||||
|
type: Float32Array
|
||||||
|
});
|
||||||
|
|
||||||
|
values.push({
|
||||||
|
key: el => el[4],
|
||||||
|
type: Float32Array
|
||||||
|
});
|
||||||
|
|
||||||
|
return encode.sequential(json, el => el[0], el => el[1], deltas, values, type)
|
||||||
} else if (type == 0xa) {
|
} else if (type == 0xa) {
|
||||||
/* 4D comparison data:
|
/* 4D comparison data:
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user