@loaders.gl/tiles-3d 5.0.0-beta.10 → 5.0.0-beta.11
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.
- package/dist/3d-tiles/3d-tiles-archive-loader.js +1 -1
- package/dist/3d-tiles/dist.dev.js +169 -581
- package/dist/3d-tiles/dist.min.js +16 -16
- package/dist/3d-tiles/index.cjs +115 -390
- package/dist/3d-tiles/index.cjs.map +3 -3
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.d.ts +1 -2
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.js +3 -4
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.js.map +1 -1
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.d.ts +4 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.d.ts.map +1 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.js +36 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.js.map +1 -0
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.js +3 -4
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.js.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table.d.ts +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.d.ts +9 -5
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.js +15 -12
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.d.ts +0 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.js +2 -4
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.d.ts +1 -2
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.js +7 -7
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.js +0 -2
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.js +1 -2
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +13 -13
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.js +22 -23
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.js.map +1 -1
- package/dist/3d-tiles/lib/utils/version.js +1 -1
- package/dist/3d-tiles/types.d.ts +7 -3
- package/dist/3d-tiles/types.d.ts.map +1 -1
- package/dist/3d-tiles-archive-writer.cjs +1 -1
- package/dist/copc/copc-loader.d.ts.map +1 -1
- package/dist/copc/copc-loader.js +10 -7
- package/dist/copc/copc-loader.js.map +1 -1
- package/dist/copc/copc-writer.d.ts +5 -4
- package/dist/copc/copc-writer.d.ts.map +1 -1
- package/dist/copc/copc-writer.js +1 -1
- package/dist/copc/copc-writer.js.map +1 -1
- package/dist/copc/index.cjs +809 -124
- package/dist/copc/index.cjs.map +3 -3
- package/dist/dist.dev.js +45 -77
- package/dist/dist.min.js +10 -10
- package/dist/i3s/arcgis-webscene-loader.js +1 -1
- package/dist/i3s/dist.dev.js +11915 -12119
- package/dist/i3s/dist.min.js +25 -25
- package/dist/i3s/i3s-attribute-loader.js +1 -1
- package/dist/i3s/i3s-building-scene-layer-loader.js +1 -1
- package/dist/i3s/i3s-content-loader.js +1 -1
- package/dist/i3s/i3s-lepcc-loader-types.js +1 -1
- package/dist/i3s/i3s-loader.js +1 -1
- package/dist/i3s/i3s-mesh-attributes.d.ts +2 -2
- package/dist/i3s/i3s-mesh-attributes.d.ts.map +1 -1
- package/dist/i3s/i3s-mesh-attributes.js +6 -11
- package/dist/i3s/i3s-mesh-attributes.js.map +1 -1
- package/dist/i3s/i3s-mesh-writer.js +2 -3
- package/dist/i3s/i3s-mesh-writer.js.map +1 -1
- package/dist/i3s/i3s-node-page-loader.js +1 -1
- package/dist/i3s/i3s-slpk-loader.js +1 -1
- package/dist/i3s/i3s-slpk-writer.js +1 -1
- package/dist/i3s/index.cjs +314 -442
- package/dist/i3s/index.cjs.map +3 -3
- package/dist/i3s/lib/parsers/constants.d.ts +0 -3
- package/dist/i3s/lib/parsers/constants.d.ts.map +1 -1
- package/dist/i3s/lib/parsers/constants.js +0 -8
- package/dist/i3s/lib/parsers/constants.js.map +1 -1
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -1
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.js +1 -2
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.js.map +1 -1
- package/dist/i3s/types.d.ts +0 -1
- package/dist/i3s/types.d.ts.map +1 -1
- package/dist/i3s-content-worker-node.js +11 -11
- package/dist/i3s-content-worker-node.js.map +4 -4
- package/dist/i3s-content-worker.js +485 -879
- package/dist/i3s-lepcc-worker-node.js +2 -2
- package/dist/i3s-lepcc-worker.js +2 -2
- package/dist/i3s-mesh-writer.cjs +87 -206
- package/dist/i3s-mesh-writer.cjs.map +3 -3
- package/dist/i3s-slpk-writer.cjs +1 -1
- package/dist/index.cjs +44 -41
- package/dist/index.cjs.map +1 -1
- package/dist/point-cloud-tile-loader-types.js +1 -1
- package/dist/point-cloud-tile-loader.cjs +17 -28
- package/dist/point-cloud-tile-loader.cjs.map +1 -1
- package/dist/point-cloud-tile-source.cjs +16 -27
- package/dist/point-cloud-tile-source.cjs.map +1 -1
- package/dist/point-cloud-tile-source.js +2 -2
- package/dist/point-cloud-tile-source.js.map +1 -1
- package/dist/potree/dist.dev.js +985 -139
- package/dist/potree/dist.min.js +28 -28
- package/dist/potree/index.cjs +813 -140
- package/dist/potree/index.cjs.map +3 -3
- package/dist/potree/lib/potree-node-source.d.ts.map +1 -1
- package/dist/potree/lib/potree-node-source.js +2 -14
- package/dist/potree/lib/potree-node-source.js.map +1 -1
- package/dist/potree/parsers/parse-potree-bin.js +3 -3
- package/dist/potree/parsers/parse-potree-bin.js.map +1 -1
- package/dist/potree/potree-bin-loader.js +1 -1
- package/dist/potree/potree-hierarchy-chunk-loader.js +1 -1
- package/dist/potree/potree-loader-types.js +1 -1
- package/dist/potree/potree-writer.d.ts +3 -3
- package/dist/potree/potree-writer.d.ts.map +1 -1
- package/dist/potree/potree-writer.js +2 -2
- package/dist/potree/potree-writer.js.map +1 -1
- package/dist/potree/potree2-source.d.ts +1 -1
- package/dist/potree/potree2-source.d.ts.map +1 -1
- package/dist/potree/potree2-source.js +6 -3
- package/dist/potree/potree2-source.js.map +1 -1
- package/dist/potree-loader.cjs +817 -153
- package/dist/potree-loader.cjs.map +3 -3
- package/dist/tileset-3d/helpers/frame-state.d.ts +2 -1
- package/dist/tileset-3d/helpers/frame-state.d.ts.map +1 -1
- package/dist/tileset-3d/helpers/frame-state.js +41 -15
- package/dist/tileset-3d/helpers/frame-state.js.map +1 -1
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.ts +3 -4
- package/src/3d-tiles/lib/classes/helpers/tile-component-types.ts +39 -0
- package/src/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.ts +3 -4
- package/src/3d-tiles/lib/classes/tile-3d-feature-table.ts +38 -14
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.ts +2 -5
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.ts +10 -10
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.ts +0 -2
- package/src/3d-tiles/lib/parsers/parse-3d-tile-batched-model.ts +1 -2
- package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +19 -19
- package/src/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.ts +22 -23
- package/src/3d-tiles/types.ts +4 -3
- package/src/copc/copc-loader.ts +8 -8
- package/src/copc/copc-writer.ts +6 -5
- package/src/i3s/i3s-mesh-attributes.ts +9 -17
- package/src/i3s/i3s-mesh-writer.ts +4 -3
- package/src/i3s/lib/parsers/constants.ts +0 -9
- package/src/i3s/lib/parsers/parse-i3s-tile-content.ts +1 -2
- package/src/i3s/types.ts +0 -1
- package/src/point-cloud-tile-source.ts +2 -2
- package/src/potree/lib/potree-node-source.ts +2 -15
- package/src/potree/parsers/parse-potree-bin.ts +3 -3
- package/src/potree/potree-writer.ts +6 -11
- package/src/potree/potree2-source.ts +6 -3
- package/src/tileset-3d/helpers/frame-state.ts +43 -15
- package/src/types.ts +15 -0
|
@@ -5990,7 +5990,7 @@ var __exports__ = (() => {
|
|
|
5990
5990
|
}
|
|
5991
5991
|
return IDENTITY_MATRIX3;
|
|
5992
5992
|
}
|
|
5993
|
-
var
|
|
5993
|
+
var IDENTITY_MATRIX, Matrix3, ZERO_MATRIX3, IDENTITY_MATRIX3;
|
|
5994
5994
|
var init_matrix3 = __esm({
|
|
5995
5995
|
"../../node_modules/@math.gl/core/dist/classes/matrix3.js"() {
|
|
5996
5996
|
init_matrix();
|
|
@@ -5999,17 +5999,6 @@ var __exports__ = (() => {
|
|
|
5999
5999
|
init_mat3();
|
|
6000
6000
|
init_vec2();
|
|
6001
6001
|
init_vec3();
|
|
6002
|
-
(function(INDICES3) {
|
|
6003
|
-
INDICES3[INDICES3["COL0ROW0"] = 0] = "COL0ROW0";
|
|
6004
|
-
INDICES3[INDICES3["COL0ROW1"] = 1] = "COL0ROW1";
|
|
6005
|
-
INDICES3[INDICES3["COL0ROW2"] = 2] = "COL0ROW2";
|
|
6006
|
-
INDICES3[INDICES3["COL1ROW0"] = 3] = "COL1ROW0";
|
|
6007
|
-
INDICES3[INDICES3["COL1ROW1"] = 4] = "COL1ROW1";
|
|
6008
|
-
INDICES3[INDICES3["COL1ROW2"] = 5] = "COL1ROW2";
|
|
6009
|
-
INDICES3[INDICES3["COL2ROW0"] = 6] = "COL2ROW0";
|
|
6010
|
-
INDICES3[INDICES3["COL2ROW1"] = 7] = "COL2ROW1";
|
|
6011
|
-
INDICES3[INDICES3["COL2ROW2"] = 8] = "COL2ROW2";
|
|
6012
|
-
})(INDICES || (INDICES = {}));
|
|
6013
6002
|
IDENTITY_MATRIX = Object.freeze([1, 0, 0, 0, 1, 0, 0, 0, 1]);
|
|
6014
6003
|
Matrix3 = class extends Matrix {
|
|
6015
6004
|
static get IDENTITY() {
|
|
@@ -6024,9 +6013,6 @@ var __exports__ = (() => {
|
|
|
6024
6013
|
get RANK() {
|
|
6025
6014
|
return 3;
|
|
6026
6015
|
}
|
|
6027
|
-
get INDICES() {
|
|
6028
|
-
return INDICES;
|
|
6029
|
-
}
|
|
6030
6016
|
constructor(array3) {
|
|
6031
6017
|
super(-0, -0, -0, -0, -0, -0, -0, -0, -0);
|
|
6032
6018
|
if (arguments.length === 1 && Array.isArray(array3)) {
|
|
@@ -6960,7 +6946,7 @@ var __exports__ = (() => {
|
|
|
6960
6946
|
result[15] = 0;
|
|
6961
6947
|
return result;
|
|
6962
6948
|
}
|
|
6963
|
-
var
|
|
6949
|
+
var DEFAULT_FOVY, DEFAULT_ASPECT, DEFAULT_NEAR, DEFAULT_FAR, IDENTITY_MATRIX2, Matrix4, ZERO2, IDENTITY;
|
|
6964
6950
|
var init_matrix4 = __esm({
|
|
6965
6951
|
"../../node_modules/@math.gl/core/dist/classes/matrix4.js"() {
|
|
6966
6952
|
init_matrix();
|
|
@@ -6971,24 +6957,6 @@ var __exports__ = (() => {
|
|
|
6971
6957
|
init_vec2();
|
|
6972
6958
|
init_vec3();
|
|
6973
6959
|
init_vec4();
|
|
6974
|
-
(function(INDICES3) {
|
|
6975
|
-
INDICES3[INDICES3["COL0ROW0"] = 0] = "COL0ROW0";
|
|
6976
|
-
INDICES3[INDICES3["COL0ROW1"] = 1] = "COL0ROW1";
|
|
6977
|
-
INDICES3[INDICES3["COL0ROW2"] = 2] = "COL0ROW2";
|
|
6978
|
-
INDICES3[INDICES3["COL0ROW3"] = 3] = "COL0ROW3";
|
|
6979
|
-
INDICES3[INDICES3["COL1ROW0"] = 4] = "COL1ROW0";
|
|
6980
|
-
INDICES3[INDICES3["COL1ROW1"] = 5] = "COL1ROW1";
|
|
6981
|
-
INDICES3[INDICES3["COL1ROW2"] = 6] = "COL1ROW2";
|
|
6982
|
-
INDICES3[INDICES3["COL1ROW3"] = 7] = "COL1ROW3";
|
|
6983
|
-
INDICES3[INDICES3["COL2ROW0"] = 8] = "COL2ROW0";
|
|
6984
|
-
INDICES3[INDICES3["COL2ROW1"] = 9] = "COL2ROW1";
|
|
6985
|
-
INDICES3[INDICES3["COL2ROW2"] = 10] = "COL2ROW2";
|
|
6986
|
-
INDICES3[INDICES3["COL2ROW3"] = 11] = "COL2ROW3";
|
|
6987
|
-
INDICES3[INDICES3["COL3ROW0"] = 12] = "COL3ROW0";
|
|
6988
|
-
INDICES3[INDICES3["COL3ROW1"] = 13] = "COL3ROW1";
|
|
6989
|
-
INDICES3[INDICES3["COL3ROW2"] = 14] = "COL3ROW2";
|
|
6990
|
-
INDICES3[INDICES3["COL3ROW3"] = 15] = "COL3ROW3";
|
|
6991
|
-
})(INDICES2 || (INDICES2 = {}));
|
|
6992
6960
|
DEFAULT_FOVY = 45 * Math.PI / 180;
|
|
6993
6961
|
DEFAULT_ASPECT = 1;
|
|
6994
6962
|
DEFAULT_NEAR = 0.1;
|
|
@@ -7007,9 +6975,6 @@ var __exports__ = (() => {
|
|
|
7007
6975
|
get RANK() {
|
|
7008
6976
|
return 4;
|
|
7009
6977
|
}
|
|
7010
|
-
get INDICES() {
|
|
7011
|
-
return INDICES2;
|
|
7012
|
-
}
|
|
7013
6978
|
constructor(array3) {
|
|
7014
6979
|
super(-0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0);
|
|
7015
6980
|
if (arguments.length === 1 && Array.isArray(array3)) {
|
|
@@ -11464,110 +11429,6 @@ var __exports__ = (() => {
|
|
|
11464
11429
|
}
|
|
11465
11430
|
});
|
|
11466
11431
|
|
|
11467
|
-
// ../../node_modules/@math.gl/geometry/dist/utils/constants.js
|
|
11468
|
-
var GL_PRIMITIVE_MODE, GL_TYPE, GL;
|
|
11469
|
-
var init_constants3 = __esm({
|
|
11470
|
-
"../../node_modules/@math.gl/geometry/dist/utils/constants.js"() {
|
|
11471
|
-
GL_PRIMITIVE_MODE = {
|
|
11472
|
-
POINTS: 0,
|
|
11473
|
-
LINES: 1,
|
|
11474
|
-
LINE_LOOP: 2,
|
|
11475
|
-
LINE_STRIP: 3,
|
|
11476
|
-
TRIANGLES: 4,
|
|
11477
|
-
TRIANGLE_STRIP: 5,
|
|
11478
|
-
TRIANGLE_FAN: 6
|
|
11479
|
-
};
|
|
11480
|
-
GL_TYPE = {
|
|
11481
|
-
BYTE: 5120,
|
|
11482
|
-
UNSIGNED_BYTE: 5121,
|
|
11483
|
-
SHORT: 5122,
|
|
11484
|
-
UNSIGNED_SHORT: 5123,
|
|
11485
|
-
INT: 5124,
|
|
11486
|
-
UNSIGNED_INT: 5125,
|
|
11487
|
-
FLOAT: 5126,
|
|
11488
|
-
DOUBLE: 5130,
|
|
11489
|
-
UNSIGNED_SHORT_4_4_4_4: 32819,
|
|
11490
|
-
UNSIGNED_SHORT_5_5_5_1: 32820,
|
|
11491
|
-
UNSIGNED_SHORT_5_6_5: 33635
|
|
11492
|
-
};
|
|
11493
|
-
GL = {
|
|
11494
|
-
...GL_PRIMITIVE_MODE,
|
|
11495
|
-
...GL_TYPE
|
|
11496
|
-
};
|
|
11497
|
-
}
|
|
11498
|
-
});
|
|
11499
|
-
|
|
11500
|
-
// ../../node_modules/@math.gl/geometry/dist/utils/gl-type.js
|
|
11501
|
-
var GL_TYPE_TO_ARRAY_TYPE, NAME_TO_GL_TYPE, TYPE_CONVERSION_ERROR, GLType;
|
|
11502
|
-
var init_gl_type = __esm({
|
|
11503
|
-
"../../node_modules/@math.gl/geometry/dist/utils/gl-type.js"() {
|
|
11504
|
-
init_constants3();
|
|
11505
|
-
GL_TYPE_TO_ARRAY_TYPE = {
|
|
11506
|
-
[GL_TYPE.DOUBLE]: Float64Array,
|
|
11507
|
-
[GL_TYPE.FLOAT]: Float32Array,
|
|
11508
|
-
[GL_TYPE.UNSIGNED_SHORT]: Uint16Array,
|
|
11509
|
-
[GL_TYPE.UNSIGNED_INT]: Uint32Array,
|
|
11510
|
-
[GL_TYPE.UNSIGNED_BYTE]: Uint8Array,
|
|
11511
|
-
[GL_TYPE.BYTE]: Int8Array,
|
|
11512
|
-
[GL_TYPE.SHORT]: Int16Array,
|
|
11513
|
-
[GL_TYPE.INT]: Int32Array,
|
|
11514
|
-
[GL_TYPE.UNSIGNED_SHORT_4_4_4_4]: Uint16Array,
|
|
11515
|
-
[GL_TYPE.UNSIGNED_SHORT_5_5_5_1]: Uint16Array,
|
|
11516
|
-
[GL_TYPE.UNSIGNED_SHORT_5_6_5]: Uint16Array
|
|
11517
|
-
};
|
|
11518
|
-
NAME_TO_GL_TYPE = Object.fromEntries(Object.entries(GL_TYPE).map(([name22, glType]) => [name22, glType]));
|
|
11519
|
-
TYPE_CONVERSION_ERROR = "Failed to convert GL type";
|
|
11520
|
-
GLType = class _GLType {
|
|
11521
|
-
/** Returns the WebGL component constant for a typed array or typed-array constructor. */
|
|
11522
|
-
static fromTypedArray(arrayOrType) {
|
|
11523
|
-
const arrayType = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
|
|
11524
|
-
if (arrayType === Uint8ClampedArray) {
|
|
11525
|
-
return GL_TYPE.UNSIGNED_BYTE;
|
|
11526
|
-
}
|
|
11527
|
-
for (const [glType, candidateArrayType] of Object.entries(GL_TYPE_TO_ARRAY_TYPE)) {
|
|
11528
|
-
if (candidateArrayType === arrayType) {
|
|
11529
|
-
return Number(glType);
|
|
11530
|
-
}
|
|
11531
|
-
}
|
|
11532
|
-
throw new Error(TYPE_CONVERSION_ERROR);
|
|
11533
|
-
}
|
|
11534
|
-
/** Returns a WebGL component constant from its uppercase name. */
|
|
11535
|
-
static fromName(name22) {
|
|
11536
|
-
const glType = NAME_TO_GL_TYPE[name22];
|
|
11537
|
-
if (glType === void 0) {
|
|
11538
|
-
throw new Error(TYPE_CONVERSION_ERROR);
|
|
11539
|
-
}
|
|
11540
|
-
return glType;
|
|
11541
|
-
}
|
|
11542
|
-
/** Returns the typed-array constructor for a WebGL component constant. */
|
|
11543
|
-
static getArrayType(glType) {
|
|
11544
|
-
const ArrayType = GL_TYPE_TO_ARRAY_TYPE[glType];
|
|
11545
|
-
if (!ArrayType) {
|
|
11546
|
-
throw new Error(TYPE_CONVERSION_ERROR);
|
|
11547
|
-
}
|
|
11548
|
-
return ArrayType;
|
|
11549
|
-
}
|
|
11550
|
-
/** Returns the size in bytes of one element of a WebGL component type. */
|
|
11551
|
-
static getByteSize(glType) {
|
|
11552
|
-
return _GLType.getArrayType(glType).BYTES_PER_ELEMENT;
|
|
11553
|
-
}
|
|
11554
|
-
/** Returns whether a value is a supported WebGL component type. */
|
|
11555
|
-
static validate(glType) {
|
|
11556
|
-
return Boolean(GL_TYPE_TO_ARRAY_TYPE[glType]);
|
|
11557
|
-
}
|
|
11558
|
-
/** Creates a typed view over an ArrayBuffer or an existing ArrayBuffer view. */
|
|
11559
|
-
static createTypedArray(glType, buffer, byteOffset = 0, length4) {
|
|
11560
|
-
const ArrayType = _GLType.getArrayType(glType);
|
|
11561
|
-
const arrayBuffer = ArrayBuffer.isView(buffer) ? buffer.buffer : buffer;
|
|
11562
|
-
const viewByteOffset = ArrayBuffer.isView(buffer) ? buffer.byteOffset : 0;
|
|
11563
|
-
const resolvedByteOffset = viewByteOffset + byteOffset;
|
|
11564
|
-
const resolvedLength = length4 ?? Math.floor((buffer.byteLength - byteOffset) / ArrayType.BYTES_PER_ELEMENT);
|
|
11565
|
-
return new ArrayType(arrayBuffer, resolvedByteOffset, resolvedLength);
|
|
11566
|
-
}
|
|
11567
|
-
};
|
|
11568
|
-
}
|
|
11569
|
-
});
|
|
11570
|
-
|
|
11571
11432
|
// ../../node_modules/@math.gl/geometry/dist/utils/rgb565.js
|
|
11572
11433
|
function decodeRGB565(rgb565, target = [0, 0, 0]) {
|
|
11573
11434
|
const red = rgb565 >> 11 & 31;
|
|
@@ -11624,8 +11485,6 @@ var __exports__ = (() => {
|
|
|
11624
11485
|
// ../../node_modules/@math.gl/geometry/dist/utils/index.js
|
|
11625
11486
|
var init_utils = __esm({
|
|
11626
11487
|
"../../node_modules/@math.gl/geometry/dist/utils/index.js"() {
|
|
11627
|
-
init_constants3();
|
|
11628
|
-
init_gl_type();
|
|
11629
11488
|
init_rgb565();
|
|
11630
11489
|
init_attribute_compression();
|
|
11631
11490
|
}
|
|
@@ -12371,7 +12230,7 @@ var __exports__ = (() => {
|
|
|
12371
12230
|
|
|
12372
12231
|
// ../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/constants.js
|
|
12373
12232
|
var EPSLN, HALF_PI, FORTPI, TWO_PI2, SPI, D2R, R2D, SEC_TO_RAD;
|
|
12374
|
-
var
|
|
12233
|
+
var init_constants3 = __esm({
|
|
12375
12234
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/constants.js"() {
|
|
12376
12235
|
EPSLN = 1e-10;
|
|
12377
12236
|
HALF_PI = Math.PI / 2;
|
|
@@ -12402,7 +12261,7 @@ var __exports__ = (() => {
|
|
|
12402
12261
|
}
|
|
12403
12262
|
var init_adjust_lon = __esm({
|
|
12404
12263
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/adjust_lon.js"() {
|
|
12405
|
-
|
|
12264
|
+
init_constants3();
|
|
12406
12265
|
init_sign();
|
|
12407
12266
|
}
|
|
12408
12267
|
});
|
|
@@ -12599,7 +12458,7 @@ var __exports__ = (() => {
|
|
|
12599
12458
|
var init_pj_inv_mlfn = __esm({
|
|
12600
12459
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/pj_inv_mlfn.js"() {
|
|
12601
12460
|
init_pj_mlfn();
|
|
12602
|
-
|
|
12461
|
+
init_constants3();
|
|
12603
12462
|
MAX_ITER = 20;
|
|
12604
12463
|
}
|
|
12605
12464
|
});
|
|
@@ -12724,7 +12583,7 @@ var __exports__ = (() => {
|
|
|
12724
12583
|
init_pj_mlfn();
|
|
12725
12584
|
init_pj_inv_mlfn();
|
|
12726
12585
|
init_adjust_lon();
|
|
12727
|
-
|
|
12586
|
+
init_constants3();
|
|
12728
12587
|
init_sign();
|
|
12729
12588
|
}
|
|
12730
12589
|
});
|
|
@@ -13147,7 +13006,7 @@ var __exports__ = (() => {
|
|
|
13147
13006
|
}
|
|
13148
13007
|
var init_phi2z = __esm({
|
|
13149
13008
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/phi2z.js"() {
|
|
13150
|
-
|
|
13009
|
+
init_constants3();
|
|
13151
13010
|
}
|
|
13152
13011
|
});
|
|
13153
13012
|
|
|
@@ -13305,7 +13164,7 @@ var __exports__ = (() => {
|
|
|
13305
13164
|
var init_stere = __esm({
|
|
13306
13165
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/stere.js"() {
|
|
13307
13166
|
init_inverse_spherical_latitude();
|
|
13308
|
-
|
|
13167
|
+
init_constants3();
|
|
13309
13168
|
init_sign();
|
|
13310
13169
|
init_msfnz();
|
|
13311
13170
|
init_tsfnz();
|
|
@@ -40740,7 +40599,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
40740
40599
|
|
|
40741
40600
|
// ../../node_modules/flatbuffers/mjs/constants.js
|
|
40742
40601
|
var SIZEOF_SHORT, SIZEOF_INT, FILE_IDENTIFIER_LENGTH, SIZE_PREFIX_LENGTH;
|
|
40743
|
-
var
|
|
40602
|
+
var init_constants4 = __esm({
|
|
40744
40603
|
"../../node_modules/flatbuffers/mjs/constants.js"() {
|
|
40745
40604
|
SIZEOF_SHORT = 2;
|
|
40746
40605
|
SIZEOF_INT = 4;
|
|
@@ -40775,7 +40634,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
40775
40634
|
var ByteBuffer;
|
|
40776
40635
|
var init_byte_buffer = __esm({
|
|
40777
40636
|
"../../node_modules/flatbuffers/mjs/byte-buffer.js"() {
|
|
40778
|
-
|
|
40637
|
+
init_constants4();
|
|
40779
40638
|
init_encoding();
|
|
40780
40639
|
init_utils2();
|
|
40781
40640
|
ByteBuffer = class _ByteBuffer {
|
|
@@ -41028,7 +40887,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
41028
40887
|
var init_builder = __esm({
|
|
41029
40888
|
"../../node_modules/flatbuffers/mjs/builder.js"() {
|
|
41030
40889
|
init_byte_buffer();
|
|
41031
|
-
|
|
40890
|
+
init_constants4();
|
|
41032
40891
|
Builder = class _Builder {
|
|
41033
40892
|
/**
|
|
41034
40893
|
* Create a FlatBufferBuilder.
|
|
@@ -41530,7 +41389,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
41530
41389
|
// ../../node_modules/flatbuffers/mjs/flatbuffers.js
|
|
41531
41390
|
var init_flatbuffers = __esm({
|
|
41532
41391
|
"../../node_modules/flatbuffers/mjs/flatbuffers.js"() {
|
|
41533
|
-
|
|
41392
|
+
init_constants4();
|
|
41534
41393
|
init_utils2();
|
|
41535
41394
|
init_builder();
|
|
41536
41395
|
init_byte_buffer();
|
|
@@ -52650,7 +52509,7 @@ return true;`);
|
|
|
52650
52509
|
|
|
52651
52510
|
// ../../node_modules/apache-arrow/ipc/compression/constants.mjs
|
|
52652
52511
|
var LENGTH_NO_COMPRESSED_DATA, COMPRESS_LENGTH_PREFIX;
|
|
52653
|
-
var
|
|
52512
|
+
var init_constants5 = __esm({
|
|
52654
52513
|
"../../node_modules/apache-arrow/ipc/compression/constants.mjs"() {
|
|
52655
52514
|
LENGTH_NO_COMPRESSED_DATA = -1;
|
|
52656
52515
|
COMPRESS_LENGTH_PREFIX = 8;
|
|
@@ -52735,7 +52594,7 @@ return true;`);
|
|
|
52735
52594
|
init_registry();
|
|
52736
52595
|
init_bigint();
|
|
52737
52596
|
init_flatbuffers();
|
|
52738
|
-
|
|
52597
|
+
init_constants5();
|
|
52739
52598
|
RecordBatchReader = class _RecordBatchReader extends ReadableInterop {
|
|
52740
52599
|
constructor(impl) {
|
|
52741
52600
|
super();
|
|
@@ -53903,7 +53762,7 @@ return true;`);
|
|
|
53903
53762
|
init_compat2();
|
|
53904
53763
|
init_compression_type();
|
|
53905
53764
|
init_registry();
|
|
53906
|
-
|
|
53765
|
+
init_constants5();
|
|
53907
53766
|
init_flatbuffers();
|
|
53908
53767
|
RecordBatchWriter = class extends ReadableInterop {
|
|
53909
53768
|
/** @nocollapse */
|
|
@@ -54942,6 +54801,20 @@ return true;`);
|
|
|
54942
54801
|
}
|
|
54943
54802
|
});
|
|
54944
54803
|
|
|
54804
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js
|
|
54805
|
+
function isArrowTable2(value2) {
|
|
54806
|
+
const table = value2;
|
|
54807
|
+
return Boolean(table && Number.isInteger(table.numRows) && Array.isArray(table.batches) && Array.isArray(table.schema?.fields) && typeof table.get === "function" && typeof table.getChild === "function");
|
|
54808
|
+
}
|
|
54809
|
+
function isArrowRecordBatch2(value2) {
|
|
54810
|
+
const batch = value2;
|
|
54811
|
+
return Boolean(batch && Number.isInteger(batch.numRows) && Array.isArray(batch.schema?.fields) && Array.isArray(batch.data?.children) && typeof batch.get === "function" && typeof batch.getChild === "function");
|
|
54812
|
+
}
|
|
54813
|
+
var init_arrow_column_utils = __esm({
|
|
54814
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js"() {
|
|
54815
|
+
}
|
|
54816
|
+
});
|
|
54817
|
+
|
|
54945
54818
|
// ../../node_modules/@math.gl/arrow/dist/arrow/split-arrow-buffers.js
|
|
54946
54819
|
function splitArrowBuffers(input2, options = {}) {
|
|
54947
54820
|
const retainedBuffers = /* @__PURE__ */ new Set();
|
|
@@ -54963,12 +54836,6 @@ return true;`);
|
|
|
54963
54836
|
}
|
|
54964
54837
|
return splitArrowDataBuffers(input2, context);
|
|
54965
54838
|
}
|
|
54966
|
-
function isArrowTable2(input2) {
|
|
54967
|
-
return "batches" in input2;
|
|
54968
|
-
}
|
|
54969
|
-
function isArrowRecordBatch2(input2) {
|
|
54970
|
-
return "schema" in input2 && "data" in input2 && !Array.isArray(input2.data);
|
|
54971
|
-
}
|
|
54972
54839
|
function isArrowVector2(input2) {
|
|
54973
54840
|
return "data" in input2 && Array.isArray(input2.data);
|
|
54974
54841
|
}
|
|
@@ -55040,6 +54907,7 @@ return true;`);
|
|
|
55040
54907
|
init_Arrow_dom();
|
|
55041
54908
|
init_arrow_record_batch();
|
|
55042
54909
|
init_arrow_data();
|
|
54910
|
+
init_arrow_column_utils();
|
|
55043
54911
|
}
|
|
55044
54912
|
});
|
|
55045
54913
|
|
|
@@ -55152,12 +55020,6 @@ return true;`);
|
|
|
55152
55020
|
}
|
|
55153
55021
|
});
|
|
55154
55022
|
|
|
55155
|
-
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js
|
|
55156
|
-
var init_arrow_column_utils = __esm({
|
|
55157
|
-
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js"() {
|
|
55158
|
-
}
|
|
55159
|
-
});
|
|
55160
|
-
|
|
55161
55023
|
// ../../node_modules/@math.gl/arrow/dist/arrow/index.js
|
|
55162
55024
|
var init_arrow = __esm({
|
|
55163
55025
|
"../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
|
|
@@ -55182,16 +55044,6 @@ return true;`);
|
|
|
55182
55044
|
});
|
|
55183
55045
|
|
|
55184
55046
|
// ../core/src/arrow-worker-transport.ts
|
|
55185
|
-
function deserializeArrowWorkerTable(result) {
|
|
55186
|
-
if (isArrowWorkerEnvelope(result)) {
|
|
55187
|
-
return { ...result.metadata, shape: "arrow-table", data: hydrateWorkerTable(result) };
|
|
55188
|
-
}
|
|
55189
|
-
if (isLegacyArrowWorkerEnvelope(result)) {
|
|
55190
|
-
const { arrowBatchMetadata: _snapshots, data: _columns, ...metadata } = result;
|
|
55191
|
-
return { ...metadata, data: hydrateWorkerTable(result) };
|
|
55192
|
-
}
|
|
55193
|
-
throw new Error("Workers require Arrow column transport");
|
|
55194
|
-
}
|
|
55195
55047
|
function serializeNativeArrowWorkerResult(result, options = { copy: "all" }) {
|
|
55196
55048
|
const batch = result instanceof RecordBatch3;
|
|
55197
55049
|
if (!batch && !(result instanceof Table)) {
|
|
@@ -55215,62 +55067,26 @@ return true;`);
|
|
|
55215
55067
|
}
|
|
55216
55068
|
function serializeArrowWorkerResult(result, options) {
|
|
55217
55069
|
const workerOptions = options;
|
|
55218
|
-
const
|
|
55219
|
-
|
|
55220
|
-
return serializeNativeArrowWorkerResult(result, { copy: bufferCopyMode ?? "all" });
|
|
55221
|
-
}
|
|
55222
|
-
if (!isArrowTableWrapper(result)) {
|
|
55223
|
-
return result;
|
|
55224
|
-
}
|
|
55225
|
-
const { data, shape: _shape, ...metadata } = result;
|
|
55226
|
-
return {
|
|
55227
|
-
transport: "arrow-column-envelope",
|
|
55228
|
-
metadata: structuredClone(metadata),
|
|
55229
|
-
...serializeWorkerColumns(data, bufferCopyMode ? { copy: bufferCopyMode } : void 0)
|
|
55230
|
-
};
|
|
55070
|
+
const copy3 = workerOptions?.core?.workerTransferBufferCopy ?? workerOptions?.workerTransferBufferCopy;
|
|
55071
|
+
return result instanceof Table || result instanceof RecordBatch3 ? serializeNativeArrowWorkerResult(result, { copy: copy3 ?? "all" }) : result;
|
|
55231
55072
|
}
|
|
55232
55073
|
function deserializeArrowWorkerResult(result) {
|
|
55233
55074
|
const transport = result?.transport;
|
|
55234
|
-
|
|
55235
|
-
return deserializeNativeArrowWorkerResult(result);
|
|
55236
|
-
}
|
|
55237
|
-
return isArrowWorkerEnvelope(result) || isLegacyArrowWorkerEnvelope(result) ? deserializeArrowWorkerTable(result) : result;
|
|
55238
|
-
}
|
|
55239
|
-
function isArrowTableWrapper(value2) {
|
|
55240
|
-
const table = value2;
|
|
55241
|
-
return Boolean(
|
|
55242
|
-
table && table.shape === "arrow-table" && table.data && typeof table.data === "object" && "batches" in table.data
|
|
55243
|
-
);
|
|
55075
|
+
return transport === "arrow-table-columns" || transport === "arrow-record-batch" ? deserializeNativeArrowWorkerResult(result) : result;
|
|
55244
55076
|
}
|
|
55245
55077
|
function hasArrowWorkerColumns(value2) {
|
|
55246
55078
|
const columns = value2;
|
|
55247
55079
|
return columns?.data?.transport === "arrow-js" && Array.isArray(columns.data.batches);
|
|
55248
55080
|
}
|
|
55249
|
-
function isArrowWorkerEnvelope(value2) {
|
|
55250
|
-
return value2?.transport === "arrow-column-envelope" && hasArrowWorkerColumns(value2);
|
|
55251
|
-
}
|
|
55252
|
-
function isLegacyArrowWorkerEnvelope(value2) {
|
|
55253
|
-
return value2?.shape === "arrow-table" && hasArrowWorkerColumns(value2);
|
|
55254
|
-
}
|
|
55255
55081
|
function serializeWorkerColumns(table, options) {
|
|
55256
55082
|
return {
|
|
55257
55083
|
arrowBatchMetadata: snapshotBatchMetadata(table),
|
|
55258
|
-
data:
|
|
55084
|
+
data: dehydrateArrowTable(table, options)
|
|
55259
55085
|
};
|
|
55260
55086
|
}
|
|
55261
|
-
function dehydrateWorkerTable(table, options) {
|
|
55262
|
-
const payload = dehydrateArrowTable(table, options);
|
|
55263
|
-
if (table.numCols === 0) {
|
|
55264
|
-
for (const [index, batch] of table.batches.entries()) {
|
|
55265
|
-
payload.batches[index].length = batch.numRows;
|
|
55266
|
-
}
|
|
55267
|
-
}
|
|
55268
|
-
return payload;
|
|
55269
|
-
}
|
|
55270
55087
|
function snapshotBatchMetadata(table) {
|
|
55271
55088
|
return table.batches.map((batch) => ({
|
|
55272
|
-
schema: tableToIPC(new Table(batch.schema, []))
|
|
55273
|
-
metadata: Array.from(batch.metadata)
|
|
55089
|
+
schema: tableToIPC(new Table(batch.schema, []))
|
|
55274
55090
|
}));
|
|
55275
55091
|
}
|
|
55276
55092
|
function hydrateWorkerTable(result) {
|
|
@@ -55278,18 +55094,11 @@ return true;`);
|
|
|
55278
55094
|
const table = hydrateArrowTable(data);
|
|
55279
55095
|
const batches = table.batches.map((batch, index) => {
|
|
55280
55096
|
const snapshot = arrowBatchMetadata?.[index];
|
|
55281
|
-
|
|
55097
|
+
return snapshot ? createRecordBatchWithMetadata(
|
|
55282
55098
|
tableFromIPC(snapshot.schema).schema,
|
|
55283
55099
|
batch.data,
|
|
55284
|
-
new Map(snapshot.metadata)
|
|
55100
|
+
snapshot.metadata ? new Map(snapshot.metadata) : getRecordBatchMetadata(batch)
|
|
55285
55101
|
) : batch;
|
|
55286
|
-
const rowCount = data.batches[index].length;
|
|
55287
|
-
if (restored.numCols === 0 && restored.numRows !== rowCount) {
|
|
55288
|
-
Object.defineProperty(restored, "data", {
|
|
55289
|
-
value: new Data(new Struct([]), 0, rowCount, 0, void 0, [])
|
|
55290
|
-
});
|
|
55291
|
-
}
|
|
55292
|
-
return restored;
|
|
55293
55102
|
});
|
|
55294
55103
|
return new Table(table.schema, batches);
|
|
55295
55104
|
}
|
|
@@ -55653,26 +55462,9 @@ return true;`);
|
|
|
55653
55462
|
});
|
|
55654
55463
|
|
|
55655
55464
|
// ../core/src/schema-utils/lib/schema/convert-arrow-schema.ts
|
|
55656
|
-
function serializeArrowSchema(arrowSchema) {
|
|
55657
|
-
return {
|
|
55658
|
-
fields: arrowSchema.fields.map((arrowField) => serializeArrowField(arrowField)),
|
|
55659
|
-
metadata: serializeArrowMetadata(arrowSchema.metadata)
|
|
55660
|
-
};
|
|
55661
|
-
}
|
|
55662
|
-
function serializeArrowMetadata(arrowMetadata) {
|
|
55663
|
-
return Object.fromEntries(arrowMetadata);
|
|
55664
|
-
}
|
|
55665
55465
|
function deserializeArrowMetadata(metadata) {
|
|
55666
55466
|
return metadata ? new Map(Object.entries(metadata)) : /* @__PURE__ */ new Map();
|
|
55667
55467
|
}
|
|
55668
|
-
function serializeArrowField(field) {
|
|
55669
|
-
return {
|
|
55670
|
-
name: field.name,
|
|
55671
|
-
type: serializeArrowType(field.type),
|
|
55672
|
-
nullable: field.nullable,
|
|
55673
|
-
metadata: serializeArrowMetadata(field.metadata)
|
|
55674
|
-
};
|
|
55675
|
-
}
|
|
55676
55468
|
function deserializeArrowField(field, options) {
|
|
55677
55469
|
return new Field2(
|
|
55678
55470
|
field.name,
|
|
@@ -55681,193 +55473,6 @@ return true;`);
|
|
|
55681
55473
|
deserializeArrowMetadata(field.metadata)
|
|
55682
55474
|
);
|
|
55683
55475
|
}
|
|
55684
|
-
function serializeArrowType(arrowType) {
|
|
55685
|
-
if (isArrowViewType(arrowType, "BinaryView")) {
|
|
55686
|
-
return "binary-view";
|
|
55687
|
-
}
|
|
55688
|
-
if (isArrowViewType(arrowType, "Utf8View")) {
|
|
55689
|
-
return "utf8-view";
|
|
55690
|
-
}
|
|
55691
|
-
if (isOptionalArrowType(arrowType, "LargeList")) {
|
|
55692
|
-
const largeListType = arrowType;
|
|
55693
|
-
return {
|
|
55694
|
-
type: "large-list",
|
|
55695
|
-
children: [serializeArrowField(largeListType.valueField)]
|
|
55696
|
-
};
|
|
55697
|
-
}
|
|
55698
|
-
switch (arrowType.constructor) {
|
|
55699
|
-
case Null2:
|
|
55700
|
-
return "null";
|
|
55701
|
-
case Binary2:
|
|
55702
|
-
return "binary";
|
|
55703
|
-
case FixedSizeBinary2:
|
|
55704
|
-
return {
|
|
55705
|
-
type: "fixed-size-binary",
|
|
55706
|
-
byteWidth: arrowType.byteWidth
|
|
55707
|
-
};
|
|
55708
|
-
case Bool2:
|
|
55709
|
-
return "bool";
|
|
55710
|
-
case Int_:
|
|
55711
|
-
const intType = arrowType;
|
|
55712
|
-
return `${intType.isSigned ? "" : "u"}int${intType.bitWidth}`;
|
|
55713
|
-
case Int8:
|
|
55714
|
-
return "int8";
|
|
55715
|
-
case Int16:
|
|
55716
|
-
return "int16";
|
|
55717
|
-
case Int32:
|
|
55718
|
-
return "int32";
|
|
55719
|
-
case Int64:
|
|
55720
|
-
return "int64";
|
|
55721
|
-
case Uint8:
|
|
55722
|
-
return "uint8";
|
|
55723
|
-
case Uint16:
|
|
55724
|
-
return "uint16";
|
|
55725
|
-
case Uint32:
|
|
55726
|
-
return "uint32";
|
|
55727
|
-
case Uint64:
|
|
55728
|
-
return "uint64";
|
|
55729
|
-
case Float:
|
|
55730
|
-
const precision = arrowType.precision;
|
|
55731
|
-
switch (precision) {
|
|
55732
|
-
case Precision.HALF:
|
|
55733
|
-
return "float16";
|
|
55734
|
-
case Precision.SINGLE:
|
|
55735
|
-
return "float32";
|
|
55736
|
-
case Precision.DOUBLE:
|
|
55737
|
-
return "float64";
|
|
55738
|
-
default:
|
|
55739
|
-
return "float16";
|
|
55740
|
-
}
|
|
55741
|
-
case Float16:
|
|
55742
|
-
return "float16";
|
|
55743
|
-
case Float32:
|
|
55744
|
-
return "float32";
|
|
55745
|
-
case Float64:
|
|
55746
|
-
return "float64";
|
|
55747
|
-
case Utf82:
|
|
55748
|
-
return "utf8";
|
|
55749
|
-
case Decimal2:
|
|
55750
|
-
const decimal = arrowType;
|
|
55751
|
-
return {
|
|
55752
|
-
type: "decimal",
|
|
55753
|
-
bitWidth: decimal.bitWidth,
|
|
55754
|
-
precision: decimal.precision,
|
|
55755
|
-
scale: decimal.scale
|
|
55756
|
-
};
|
|
55757
|
-
case Date_:
|
|
55758
|
-
const dateUnit = arrowType.unit;
|
|
55759
|
-
return dateUnit === DateUnit.DAY ? "date-day" : "date-millisecond";
|
|
55760
|
-
case DateDay:
|
|
55761
|
-
return "date-day";
|
|
55762
|
-
case DateMillisecond:
|
|
55763
|
-
return "date-millisecond";
|
|
55764
|
-
case Time_:
|
|
55765
|
-
const timeUnit = arrowType.unit;
|
|
55766
|
-
switch (timeUnit) {
|
|
55767
|
-
case TimeUnit.SECOND:
|
|
55768
|
-
return "time-second";
|
|
55769
|
-
case TimeUnit.MILLISECOND:
|
|
55770
|
-
return "time-millisecond";
|
|
55771
|
-
case TimeUnit.MICROSECOND:
|
|
55772
|
-
return "time-microsecond";
|
|
55773
|
-
case TimeUnit.NANOSECOND:
|
|
55774
|
-
return "time-nanosecond";
|
|
55775
|
-
default:
|
|
55776
|
-
return "time-second";
|
|
55777
|
-
}
|
|
55778
|
-
case TimeMillisecond:
|
|
55779
|
-
return "time-millisecond";
|
|
55780
|
-
case TimeSecond:
|
|
55781
|
-
return "time-second";
|
|
55782
|
-
case TimeMicrosecond:
|
|
55783
|
-
return "time-microsecond";
|
|
55784
|
-
case TimeNanosecond:
|
|
55785
|
-
return "time-nanosecond";
|
|
55786
|
-
case Timestamp_:
|
|
55787
|
-
const timeStampUnit = arrowType.unit;
|
|
55788
|
-
switch (timeStampUnit) {
|
|
55789
|
-
case TimeUnit.SECOND:
|
|
55790
|
-
return "timestamp-second";
|
|
55791
|
-
case TimeUnit.MILLISECOND:
|
|
55792
|
-
return "timestamp-millisecond";
|
|
55793
|
-
case TimeUnit.MICROSECOND:
|
|
55794
|
-
return "timestamp-microsecond";
|
|
55795
|
-
case TimeUnit.NANOSECOND:
|
|
55796
|
-
return "timestamp-nanosecond";
|
|
55797
|
-
default:
|
|
55798
|
-
return "timestamp-second";
|
|
55799
|
-
}
|
|
55800
|
-
case TimestampSecond:
|
|
55801
|
-
return "timestamp-second";
|
|
55802
|
-
case TimestampMillisecond:
|
|
55803
|
-
return "timestamp-millisecond";
|
|
55804
|
-
case TimestampMicrosecond:
|
|
55805
|
-
return "timestamp-microsecond";
|
|
55806
|
-
case TimestampNanosecond:
|
|
55807
|
-
return "timestamp-nanosecond";
|
|
55808
|
-
case Interval_:
|
|
55809
|
-
const intervalUnit = arrowType.unit;
|
|
55810
|
-
switch (intervalUnit) {
|
|
55811
|
-
case IntervalUnit.DAY_TIME:
|
|
55812
|
-
return "interval-daytime";
|
|
55813
|
-
case IntervalUnit.YEAR_MONTH:
|
|
55814
|
-
return "interval-yearmonth";
|
|
55815
|
-
default:
|
|
55816
|
-
return "interval-daytime";
|
|
55817
|
-
}
|
|
55818
|
-
case IntervalDayTime:
|
|
55819
|
-
return "interval-daytime";
|
|
55820
|
-
case IntervalYearMonth:
|
|
55821
|
-
return "interval-yearmonth";
|
|
55822
|
-
case Map_:
|
|
55823
|
-
const mapType = arrowType;
|
|
55824
|
-
return {
|
|
55825
|
-
type: "map",
|
|
55826
|
-
keysSorted: mapType.keysSorted,
|
|
55827
|
-
children: mapType.children.map((arrowField) => serializeArrowField(arrowField))
|
|
55828
|
-
};
|
|
55829
|
-
case List2:
|
|
55830
|
-
const listType = arrowType;
|
|
55831
|
-
const listField = listType.valueField;
|
|
55832
|
-
return {
|
|
55833
|
-
type: "list",
|
|
55834
|
-
children: [serializeArrowField(listField)]
|
|
55835
|
-
};
|
|
55836
|
-
case FixedSizeList2:
|
|
55837
|
-
const fixedSizeList = arrowType;
|
|
55838
|
-
return {
|
|
55839
|
-
type: "fixed-size-list",
|
|
55840
|
-
listSize: fixedSizeList.listSize,
|
|
55841
|
-
children: [serializeArrowField(fixedSizeList.children[0])]
|
|
55842
|
-
};
|
|
55843
|
-
case Struct:
|
|
55844
|
-
const structType = arrowType;
|
|
55845
|
-
return {
|
|
55846
|
-
type: "struct",
|
|
55847
|
-
children: structType.children.map((arrowField) => serializeArrowField(arrowField))
|
|
55848
|
-
};
|
|
55849
|
-
case SparseUnion:
|
|
55850
|
-
case DenseUnion:
|
|
55851
|
-
const unionType = arrowType;
|
|
55852
|
-
return {
|
|
55853
|
-
type: unionType instanceof DenseUnion ? "dense-union" : "sparse-union",
|
|
55854
|
-
typeIds: unionType.typeIds,
|
|
55855
|
-
children: unionType.children.map((arrowField) => serializeArrowField(arrowField)),
|
|
55856
|
-
typeIdToChildIndex: { ...unionType.typeIdToChildIndex }
|
|
55857
|
-
};
|
|
55858
|
-
case Dictionary:
|
|
55859
|
-
const dictionaryType = arrowType;
|
|
55860
|
-
return {
|
|
55861
|
-
type: "dictionary",
|
|
55862
|
-
id: dictionaryType.id,
|
|
55863
|
-
indices: serializeArrowDictionaryKeyType(dictionaryType.indices),
|
|
55864
|
-
dictionary: serializeArrowType(dictionaryType.dictionary),
|
|
55865
|
-
isOrdered: dictionaryType.isOrdered
|
|
55866
|
-
};
|
|
55867
|
-
default:
|
|
55868
|
-
throw new Error(`arrow type not supported: ${arrowType.constructor.name}`);
|
|
55869
|
-
}
|
|
55870
|
-
}
|
|
55871
55476
|
function deserializeArrowType(dataType, options) {
|
|
55872
55477
|
if (typeof dataType === "object") {
|
|
55873
55478
|
switch (dataType.type) {
|
|
@@ -55990,19 +55595,6 @@ return true;`);
|
|
|
55990
55595
|
function getOptionalArrowConstructor(typeName) {
|
|
55991
55596
|
return Arrow_dom_exports[typeName];
|
|
55992
55597
|
}
|
|
55993
|
-
function isArrowViewType(arrowType, viewTypeName) {
|
|
55994
|
-
const constructor = getOptionalArrowConstructor(viewTypeName);
|
|
55995
|
-
if (constructor && arrowType instanceof constructor) {
|
|
55996
|
-
return true;
|
|
55997
|
-
}
|
|
55998
|
-
const guards = DataType;
|
|
55999
|
-
const guard = viewTypeName === "BinaryView" ? guards.isBinaryView : guards.isUtf8View;
|
|
56000
|
-
return Boolean(guard?.(arrowType));
|
|
56001
|
-
}
|
|
56002
|
-
function isOptionalArrowType(arrowType, typeName) {
|
|
56003
|
-
const constructor = getOptionalArrowConstructor(typeName);
|
|
56004
|
-
return Boolean(constructor && arrowType instanceof constructor);
|
|
56005
|
-
}
|
|
56006
55598
|
function makeVariableWidthArrowType(viewTypeName, fallbackType, options) {
|
|
56007
55599
|
const viewTypeMode = options?.viewTypes || "never";
|
|
56008
55600
|
if (viewTypeMode === "never") {
|
|
@@ -56028,34 +55620,6 @@ return true;`);
|
|
|
56028
55620
|
}
|
|
56029
55621
|
return new constructor();
|
|
56030
55622
|
}
|
|
56031
|
-
function serializeArrowDictionaryKeyType(arrowType) {
|
|
56032
|
-
if (arrowType instanceof Int_) {
|
|
56033
|
-
const prefix = arrowType.isSigned ? "int" : "uint";
|
|
56034
|
-
const keyType = `${prefix}${arrowType.bitWidth}`;
|
|
56035
|
-
if (isSchemaDictionaryKeyType(keyType)) {
|
|
56036
|
-
return keyType;
|
|
56037
|
-
}
|
|
56038
|
-
}
|
|
56039
|
-
switch (arrowType.constructor) {
|
|
56040
|
-
case Int8:
|
|
56041
|
-
return "int8";
|
|
56042
|
-
case Int16:
|
|
56043
|
-
return "int16";
|
|
56044
|
-
case Int32:
|
|
56045
|
-
return "int32";
|
|
56046
|
-
case Uint8:
|
|
56047
|
-
return "uint8";
|
|
56048
|
-
case Uint16:
|
|
56049
|
-
return "uint16";
|
|
56050
|
-
case Uint32:
|
|
56051
|
-
return "uint32";
|
|
56052
|
-
default:
|
|
56053
|
-
throw new Error(`arrow dictionary index type not supported: ${arrowType.constructor.name}`);
|
|
56054
|
-
}
|
|
56055
|
-
}
|
|
56056
|
-
function isSchemaDictionaryKeyType(keyType) {
|
|
56057
|
-
return ["int8", "int16", "int32", "uint8", "uint16", "uint32"].includes(keyType);
|
|
56058
|
-
}
|
|
56059
55623
|
function deserializeArrowDictionaryKeyType(keyType) {
|
|
56060
55624
|
switch (keyType) {
|
|
56061
55625
|
case "int8":
|
|
@@ -56260,7 +55824,7 @@ return true;`);
|
|
|
56260
55824
|
});
|
|
56261
55825
|
|
|
56262
55826
|
// ../core/src/schema-utils/lib/mesh/convert-mesh-to-table.ts
|
|
56263
|
-
function
|
|
55827
|
+
function convertMeshToArrowTable(mesh) {
|
|
56264
55828
|
return makeMeshArrowTable(mesh.attributes, {
|
|
56265
55829
|
schema: mesh.schema,
|
|
56266
55830
|
topology: mesh.topology,
|
|
@@ -56281,22 +55845,14 @@ return true;`);
|
|
|
56281
55845
|
fields.push(
|
|
56282
55846
|
getAttributeArrowField(options.schema, attributeName, column, attribute.componentType)
|
|
56283
55847
|
);
|
|
56284
|
-
if (attributeName ===
|
|
55848
|
+
if (attributeName === attributeNames[0] && options.indices?.value?.length) {
|
|
56285
55849
|
const indicesField = indexedMeshArrowSchema.fields.find((field) => field.name === "indices");
|
|
56286
55850
|
columns.indices = getIndicesVector(options.indices.value, column.length, indicesField.type);
|
|
56287
55851
|
fields.push(indicesField);
|
|
56288
55852
|
}
|
|
56289
55853
|
}
|
|
56290
55854
|
const arrowSchema = new Schema2(fields, getMeshArrowMetadata(options));
|
|
56291
|
-
|
|
56292
|
-
const schema = serializeArrowSchema(table.schema);
|
|
56293
|
-
return {
|
|
56294
|
-
shape: "arrow-table",
|
|
56295
|
-
schema,
|
|
56296
|
-
data: table,
|
|
56297
|
-
topology: options.topology || "point-list",
|
|
56298
|
-
indices: options.indices
|
|
56299
|
-
};
|
|
55855
|
+
return columns[attributeNames[0]]?.length === 0 ? new Table(arrowSchema) : new Table(arrowSchema, columns);
|
|
56300
55856
|
}
|
|
56301
55857
|
function getAttributeArrowVector(value2, size, componentType) {
|
|
56302
55858
|
if (componentType === "float16") {
|
|
@@ -57112,7 +56668,7 @@ return true;`);
|
|
|
57112
56668
|
const mesh = dracoParser.parseSync(arrayBuffer, options?.draco);
|
|
57113
56669
|
reportProgress?.({ phase: "decode", completed: 1, total: 1, unit: "tasks" });
|
|
57114
56670
|
if (options?.draco?.shape === "arrow") {
|
|
57115
|
-
return
|
|
56671
|
+
return convertMeshToArrowTable(mesh);
|
|
57116
56672
|
}
|
|
57117
56673
|
return mesh;
|
|
57118
56674
|
} finally {
|
|
@@ -60842,7 +60398,7 @@ return true;`);
|
|
|
60842
60398
|
|
|
60843
60399
|
// src/constants.ts
|
|
60844
60400
|
var TILE_CONTENT_STATE, TILE3D_OPTIMIZATION_HINT;
|
|
60845
|
-
var
|
|
60401
|
+
var init_constants6 = __esm({
|
|
60846
60402
|
"src/constants.ts"() {
|
|
60847
60403
|
"use strict";
|
|
60848
60404
|
TILE_CONTENT_STATE = {
|
|
@@ -62129,7 +61685,7 @@ return true;`);
|
|
|
62129
61685
|
init_dist();
|
|
62130
61686
|
init_culling();
|
|
62131
61687
|
init_tile_3d_contracts();
|
|
62132
|
-
|
|
61688
|
+
init_constants6();
|
|
62133
61689
|
init_bounding_volume();
|
|
62134
61690
|
init_tiles_3d_lod();
|
|
62135
61691
|
init_i3s_lod();
|
|
@@ -63076,7 +62632,7 @@ return true;`);
|
|
|
63076
62632
|
var init_tileset_3d_traverser = __esm({
|
|
63077
62633
|
"src/tileset-3d/format-3d-tiles/tileset-3d-traverser.ts"() {
|
|
63078
62634
|
"use strict";
|
|
63079
|
-
|
|
62635
|
+
init_constants6();
|
|
63080
62636
|
init_tileset_traverser();
|
|
63081
62637
|
Tileset3DTraverser = class extends TilesetTraverser {
|
|
63082
62638
|
/** Pending implicit subtree requests keyed by viewport and tile identity. */
|
|
@@ -65820,7 +65376,7 @@ return true;`);
|
|
|
65820
65376
|
init_tsfnz();
|
|
65821
65377
|
init_adjust_lon();
|
|
65822
65378
|
init_phi2z();
|
|
65823
|
-
|
|
65379
|
+
init_constants3();
|
|
65824
65380
|
}
|
|
65825
65381
|
});
|
|
65826
65382
|
|
|
@@ -65912,7 +65468,7 @@ return true;`);
|
|
|
65912
65468
|
}
|
|
65913
65469
|
var init_iqsfnz = __esm({
|
|
65914
65470
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/iqsfnz.js"() {
|
|
65915
|
-
|
|
65471
|
+
init_constants3();
|
|
65916
65472
|
}
|
|
65917
65473
|
});
|
|
65918
65474
|
|
|
@@ -66023,7 +65579,7 @@ return true;`);
|
|
|
66023
65579
|
init_qsfnz();
|
|
66024
65580
|
init_adjust_lon();
|
|
66025
65581
|
init_iqsfnz();
|
|
66026
|
-
|
|
65582
|
+
init_constants3();
|
|
66027
65583
|
}
|
|
66028
65584
|
});
|
|
66029
65585
|
|
|
@@ -66060,7 +65616,7 @@ return true;`);
|
|
|
66060
65616
|
}
|
|
66061
65617
|
var init_adjust_lat = __esm({
|
|
66062
65618
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/adjust_lat.js"() {
|
|
66063
|
-
|
|
65619
|
+
init_constants3();
|
|
66064
65620
|
init_sign();
|
|
66065
65621
|
}
|
|
66066
65622
|
});
|
|
@@ -66165,7 +65721,7 @@ return true;`);
|
|
|
66165
65721
|
init_msfnz();
|
|
66166
65722
|
init_adjust_lon();
|
|
66167
65723
|
init_adjust_lat();
|
|
66168
|
-
|
|
65724
|
+
init_constants3();
|
|
66169
65725
|
}
|
|
66170
65726
|
});
|
|
66171
65727
|
|
|
@@ -66492,7 +66048,7 @@ return true;`);
|
|
|
66492
66048
|
var S_POLE, N_POLE, EQUIT, OBLIQ;
|
|
66493
66049
|
var init_laea = __esm({
|
|
66494
66050
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/laea.js"() {
|
|
66495
|
-
|
|
66051
|
+
init_constants3();
|
|
66496
66052
|
init_qsfnz();
|
|
66497
66053
|
init_adjust_lon();
|
|
66498
66054
|
init_authalic_latitude();
|
|
@@ -66588,7 +66144,7 @@ return true;`);
|
|
|
66588
66144
|
var init_gauss = __esm({
|
|
66589
66145
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/gauss.js"() {
|
|
66590
66146
|
init_srat();
|
|
66591
|
-
|
|
66147
|
+
init_constants3();
|
|
66592
66148
|
MAX_ITER2 = 20;
|
|
66593
66149
|
}
|
|
66594
66150
|
});
|
|
@@ -66946,7 +66502,7 @@ return true;`);
|
|
|
66946
66502
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/aeqd.js"() {
|
|
66947
66503
|
init_inverse_spherical_latitude();
|
|
66948
66504
|
init_adjust_lon();
|
|
66949
|
-
|
|
66505
|
+
init_constants3();
|
|
66950
66506
|
init_meridian_distance();
|
|
66951
66507
|
init_vincenty();
|
|
66952
66508
|
}
|
|
@@ -67126,7 +66682,7 @@ return true;`);
|
|
|
67126
66682
|
init_spherical_rendering_domain();
|
|
67127
66683
|
init_rendering_bounds();
|
|
67128
66684
|
init_tsfnz();
|
|
67129
|
-
|
|
66685
|
+
init_constants3();
|
|
67130
66686
|
}
|
|
67131
66687
|
});
|
|
67132
66688
|
|
|
@@ -67285,7 +66841,7 @@ return true;`);
|
|
|
67285
66841
|
init_pj_enfn();
|
|
67286
66842
|
init_pj_inv_mlfn();
|
|
67287
66843
|
init_pj_mlfn();
|
|
67288
|
-
|
|
66844
|
+
init_constants3();
|
|
67289
66845
|
EPS10 = 1e-10;
|
|
67290
66846
|
}
|
|
67291
66847
|
});
|
|
@@ -67432,7 +66988,7 @@ return true;`);
|
|
|
67432
66988
|
init_gN();
|
|
67433
66989
|
init_adjust_lon();
|
|
67434
66990
|
init_adjust_lat();
|
|
67435
|
-
|
|
66991
|
+
init_constants3();
|
|
67436
66992
|
}
|
|
67437
66993
|
});
|
|
67438
66994
|
|
|
@@ -67641,7 +67197,7 @@ return true;`);
|
|
|
67641
67197
|
init_pj_enfn();
|
|
67642
67198
|
init_pj_mlfn();
|
|
67643
67199
|
init_pj_inv_mlfn();
|
|
67644
|
-
|
|
67200
|
+
init_constants3();
|
|
67645
67201
|
init_asinz();
|
|
67646
67202
|
MAX_ITER3 = 20;
|
|
67647
67203
|
}
|
|
@@ -68327,7 +67883,7 @@ return true;`);
|
|
|
68327
67883
|
init_ellipsoidal_gnomonic();
|
|
68328
67884
|
init_adjust_lon();
|
|
68329
67885
|
init_asinz();
|
|
68330
|
-
|
|
67886
|
+
init_constants3();
|
|
68331
67887
|
}
|
|
68332
67888
|
});
|
|
68333
67889
|
|
|
@@ -68358,7 +67914,7 @@ return true;`);
|
|
|
68358
67914
|
}
|
|
68359
67915
|
var init_fL = __esm({
|
|
68360
67916
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/fL.js"() {
|
|
68361
|
-
|
|
67917
|
+
init_constants3();
|
|
68362
67918
|
}
|
|
68363
67919
|
});
|
|
68364
67920
|
|
|
@@ -68399,7 +67955,7 @@ return true;`);
|
|
|
68399
67955
|
}
|
|
68400
67956
|
var init_latiso = __esm({
|
|
68401
67957
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/common/latiso.js"() {
|
|
68402
|
-
|
|
67958
|
+
init_constants3();
|
|
68403
67959
|
}
|
|
68404
67960
|
});
|
|
68405
67961
|
|
|
@@ -68959,7 +68515,7 @@ return true;`);
|
|
|
68959
68515
|
}
|
|
68960
68516
|
var init_nzmg = __esm({
|
|
68961
68517
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/nzmg.js"() {
|
|
68962
|
-
|
|
68518
|
+
init_constants3();
|
|
68963
68519
|
}
|
|
68964
68520
|
});
|
|
68965
68521
|
|
|
@@ -69220,7 +68776,7 @@ return true;`);
|
|
|
69220
68776
|
init_tsfnz();
|
|
69221
68777
|
init_adjust_lon();
|
|
69222
68778
|
init_phi2z();
|
|
69223
|
-
|
|
68779
|
+
init_constants3();
|
|
69224
68780
|
TOL = 1e-7;
|
|
69225
68781
|
}
|
|
69226
68782
|
});
|
|
@@ -69506,7 +69062,7 @@ return true;`);
|
|
|
69506
69062
|
var init_poly = __esm({
|
|
69507
69063
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/poly.js"() {
|
|
69508
69064
|
init_adjust_lon();
|
|
69509
|
-
|
|
69065
|
+
init_constants3();
|
|
69510
69066
|
init_gN();
|
|
69511
69067
|
init_meridian_distance();
|
|
69512
69068
|
MAX_ITER4 = 20;
|
|
@@ -69788,7 +69344,7 @@ return true;`);
|
|
|
69788
69344
|
var FACE_ENUM, AREA_ENUM;
|
|
69789
69345
|
var init_qsc = __esm({
|
|
69790
69346
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/qsc.js"() {
|
|
69791
|
-
|
|
69347
|
+
init_constants3();
|
|
69792
69348
|
FACE_ENUM = {
|
|
69793
69349
|
FRONT: 1,
|
|
69794
69350
|
RIGHT: 2,
|
|
@@ -69959,7 +69515,7 @@ return true;`);
|
|
|
69959
69515
|
var COEFS_X, COEFS_Y, FXC, FYC, C1, RC1, NODES, poly3_val, poly3_der;
|
|
69960
69516
|
var init_robin = __esm({
|
|
69961
69517
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/robin.js"() {
|
|
69962
|
-
|
|
69518
|
+
init_constants3();
|
|
69963
69519
|
init_adjust_lon();
|
|
69964
69520
|
COEFS_X = [
|
|
69965
69521
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
|
@@ -70291,7 +69847,7 @@ return true;`);
|
|
|
70291
69847
|
var mode;
|
|
70292
69848
|
var init_tpers = __esm({
|
|
70293
69849
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/tpers.js"() {
|
|
70294
|
-
|
|
69850
|
+
init_constants3();
|
|
70295
69851
|
init_hypot();
|
|
70296
69852
|
mode = {
|
|
70297
69853
|
N_POLE: 0,
|
|
@@ -70443,7 +69999,7 @@ return true;`);
|
|
|
70443
69999
|
var init_vandg = __esm({
|
|
70444
70000
|
"../../node_modules/@math.gl/geospatial/dist/projection/experimental/kernels/vandg.js"() {
|
|
70445
70001
|
init_adjust_lon();
|
|
70446
|
-
|
|
70002
|
+
init_constants3();
|
|
70447
70003
|
init_asinz();
|
|
70448
70004
|
}
|
|
70449
70005
|
});
|
|
@@ -75248,7 +74804,7 @@ return true;`);
|
|
|
75248
74804
|
|
|
75249
74805
|
// src/3d-tiles/lib/constants.ts
|
|
75250
74806
|
var TILE3D_TYPE, TILE3D_TYPES, MAGIC_ARRAY;
|
|
75251
|
-
var
|
|
74807
|
+
var init_constants7 = __esm({
|
|
75252
74808
|
"src/3d-tiles/lib/constants.ts"() {
|
|
75253
74809
|
"use strict";
|
|
75254
74810
|
TILE3D_TYPE = {
|
|
@@ -75305,12 +74861,50 @@ return true;`);
|
|
|
75305
74861
|
}
|
|
75306
74862
|
});
|
|
75307
74863
|
|
|
74864
|
+
// src/3d-tiles/lib/classes/helpers/tile-component-types.ts
|
|
74865
|
+
function getTileComponentArrayType(componentType) {
|
|
74866
|
+
if (!Object.hasOwn(TILE_COMPONENT_ARRAYS, componentType)) {
|
|
74867
|
+
throw new Error(`Unsupported 3D Tiles component type: ${componentType}`);
|
|
74868
|
+
}
|
|
74869
|
+
return TILE_COMPONENT_ARRAYS[componentType];
|
|
74870
|
+
}
|
|
74871
|
+
var TILE_COMPONENT_ARRAYS;
|
|
74872
|
+
var init_tile_component_types = __esm({
|
|
74873
|
+
"src/3d-tiles/lib/classes/helpers/tile-component-types.ts"() {
|
|
74874
|
+
"use strict";
|
|
74875
|
+
TILE_COMPONENT_ARRAYS = {
|
|
74876
|
+
BYTE: Int8Array,
|
|
74877
|
+
UNSIGNED_BYTE: Uint8Array,
|
|
74878
|
+
SHORT: Int16Array,
|
|
74879
|
+
UNSIGNED_SHORT: Uint16Array,
|
|
74880
|
+
INT: Int32Array,
|
|
74881
|
+
UNSIGNED_INT: Uint32Array,
|
|
74882
|
+
FLOAT: Float32Array,
|
|
74883
|
+
DOUBLE: Float64Array,
|
|
74884
|
+
UNSIGNED_SHORT_4_4_4_4: Uint16Array,
|
|
74885
|
+
UNSIGNED_SHORT_5_5_5_1: Uint16Array,
|
|
74886
|
+
UNSIGNED_SHORT_5_6_5: Uint16Array,
|
|
74887
|
+
5120: Int8Array,
|
|
74888
|
+
5121: Uint8Array,
|
|
74889
|
+
5122: Int16Array,
|
|
74890
|
+
5123: Uint16Array,
|
|
74891
|
+
5124: Int32Array,
|
|
74892
|
+
5125: Uint32Array,
|
|
74893
|
+
5126: Float32Array,
|
|
74894
|
+
5130: Float64Array,
|
|
74895
|
+
32819: Uint16Array,
|
|
74896
|
+
32820: Uint16Array,
|
|
74897
|
+
33635: Uint16Array
|
|
74898
|
+
};
|
|
74899
|
+
}
|
|
74900
|
+
});
|
|
74901
|
+
|
|
75308
74902
|
// src/3d-tiles/lib/classes/tile-3d-feature-table.ts
|
|
75309
74903
|
var Tile3DFeatureTable;
|
|
75310
74904
|
var init_tile_3d_feature_table = __esm({
|
|
75311
74905
|
"src/3d-tiles/lib/classes/tile-3d-feature-table.ts"() {
|
|
75312
74906
|
"use strict";
|
|
75313
|
-
|
|
74907
|
+
init_tile_component_types();
|
|
75314
74908
|
Tile3DFeatureTable = class {
|
|
75315
74909
|
json;
|
|
75316
74910
|
buffer;
|
|
@@ -75326,7 +74920,8 @@ return true;`);
|
|
|
75326
74920
|
hasProperty(propertyName) {
|
|
75327
74921
|
return Boolean(this.json[propertyName]);
|
|
75328
74922
|
}
|
|
75329
|
-
|
|
74923
|
+
/** Reads a global property, using the component type for binary storage. */
|
|
74924
|
+
getGlobalProperty(propertyName, componentType = Uint32Array, componentLength = 1) {
|
|
75330
74925
|
const jsonValue = this.json[propertyName];
|
|
75331
74926
|
if (jsonValue && Number.isFinite(jsonValue.byteOffset)) {
|
|
75332
74927
|
return this._getTypedArrayFromBinary(
|
|
@@ -75339,11 +74934,12 @@ return true;`);
|
|
|
75339
74934
|
}
|
|
75340
74935
|
return jsonValue;
|
|
75341
74936
|
}
|
|
74937
|
+
/** Reads a property for all features as a typed array. */
|
|
75342
74938
|
getPropertyArray(propertyName, componentType, componentLength) {
|
|
75343
74939
|
const jsonValue = this.json[propertyName];
|
|
75344
74940
|
if (jsonValue && Number.isFinite(jsonValue.byteOffset)) {
|
|
75345
74941
|
if ("componentType" in jsonValue) {
|
|
75346
|
-
componentType =
|
|
74942
|
+
componentType = getTileComponentArrayType(jsonValue.componentType);
|
|
75347
74943
|
}
|
|
75348
74944
|
return this._getTypedArrayFromBinary(
|
|
75349
74945
|
propertyName,
|
|
@@ -75355,6 +74951,7 @@ return true;`);
|
|
|
75355
74951
|
}
|
|
75356
74952
|
return this._getTypedArrayFromArray(propertyName, componentType, jsonValue);
|
|
75357
74953
|
}
|
|
74954
|
+
/** Reads a single feature property, writing vector components to result. */
|
|
75358
74955
|
getProperty(propertyName, componentType, componentLength, featureId, result) {
|
|
75359
74956
|
const jsonValue = this.json[propertyName];
|
|
75360
74957
|
if (!jsonValue) {
|
|
@@ -75374,8 +74971,8 @@ return true;`);
|
|
|
75374
74971
|
const cachedTypedArrays = this._cachedTypedArrays;
|
|
75375
74972
|
let typedArray = cachedTypedArrays[propertyName];
|
|
75376
74973
|
if (!typedArray) {
|
|
75377
|
-
|
|
75378
|
-
|
|
74974
|
+
const ArrayType = typeof componentType === "number" ? getTileComponentArrayType(componentType) : componentType;
|
|
74975
|
+
typedArray = new ArrayType(
|
|
75379
74976
|
this.buffer.buffer,
|
|
75380
74977
|
this.buffer.byteOffset + byteOffset,
|
|
75381
74978
|
count * componentLength
|
|
@@ -75388,15 +74985,13 @@ return true;`);
|
|
|
75388
74985
|
const cachedTypedArrays = this._cachedTypedArrays;
|
|
75389
74986
|
let typedArray = cachedTypedArrays[propertyName];
|
|
75390
74987
|
if (!typedArray) {
|
|
74988
|
+
const ArrayType = typeof componentType === "number" ? getTileComponentArrayType(componentType) : componentType;
|
|
75391
74989
|
if (ArrayBuffer.isView(array3)) {
|
|
75392
74990
|
const byteOffset = array3.byteOffset;
|
|
75393
74991
|
const byteLength = array3.byteLength;
|
|
75394
|
-
const elementCount = byteLength /
|
|
75395
|
-
typedArray =
|
|
75396
|
-
} else if (array3 instanceof ArrayBuffer) {
|
|
75397
|
-
typedArray = GLType.createTypedArray(componentType, array3);
|
|
74992
|
+
const elementCount = byteLength / ArrayType.BYTES_PER_ELEMENT;
|
|
74993
|
+
typedArray = new ArrayType(array3.buffer, byteOffset, elementCount);
|
|
75398
74994
|
} else {
|
|
75399
|
-
const ArrayType = GLType.getArrayType(componentType);
|
|
75400
74995
|
typedArray = new ArrayType(array3);
|
|
75401
74996
|
}
|
|
75402
74997
|
cachedTypedArrays[propertyName] = typedArray;
|
|
@@ -75411,15 +75006,14 @@ return true;`);
|
|
|
75411
75006
|
function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length4) {
|
|
75412
75007
|
const { componentType } = tile3DAccessor;
|
|
75413
75008
|
assert(tile3DAccessor.componentType);
|
|
75414
|
-
const
|
|
75009
|
+
const ArrayType = getTileComponentArrayType(componentType);
|
|
75415
75010
|
const size = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
|
|
75416
75011
|
const unpacker = UNPACKER[tile3DAccessor.type];
|
|
75417
75012
|
const packer = PACKER[tile3DAccessor.type];
|
|
75418
75013
|
byteOffset += tile3DAccessor.byteOffset;
|
|
75419
|
-
const values =
|
|
75014
|
+
const values = new ArrayType(buffer, byteOffset, size * length4);
|
|
75420
75015
|
return {
|
|
75421
75016
|
values,
|
|
75422
|
-
type,
|
|
75423
75017
|
size,
|
|
75424
75018
|
unpacker,
|
|
75425
75019
|
packer
|
|
@@ -75429,7 +75023,7 @@ return true;`);
|
|
|
75429
75023
|
var init_tile_3d_accessor_utils = __esm({
|
|
75430
75024
|
"src/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.ts"() {
|
|
75431
75025
|
"use strict";
|
|
75432
|
-
|
|
75026
|
+
init_tile_component_types();
|
|
75433
75027
|
init_loader_utils();
|
|
75434
75028
|
COMPONENTS_PER_ATTRIBUTE = {
|
|
75435
75029
|
SCALAR: 1,
|
|
@@ -75586,7 +75180,7 @@ return true;`);
|
|
|
75586
75180
|
let parentIds = hierarchyJson.parentIds;
|
|
75587
75181
|
let parentIdsLength = instancesLength;
|
|
75588
75182
|
if (defined3(classIds.byteOffset)) {
|
|
75589
|
-
classIds.componentType ??=
|
|
75183
|
+
classIds.componentType ??= "UNSIGNED_SHORT";
|
|
75590
75184
|
classIds.type = "SCALAR";
|
|
75591
75185
|
classIds = createTypedArrayFromAccessor(
|
|
75592
75186
|
classIds,
|
|
@@ -75598,7 +75192,7 @@ return true;`);
|
|
|
75598
75192
|
let parentIndexes;
|
|
75599
75193
|
if (defined3(parentCounts)) {
|
|
75600
75194
|
if (defined3(parentCounts.byteOffset)) {
|
|
75601
|
-
parentCounts.componentType ??=
|
|
75195
|
+
parentCounts.componentType ??= "UNSIGNED_SHORT";
|
|
75602
75196
|
parentCounts.type = "SCALAR";
|
|
75603
75197
|
parentCounts = createTypedArrayFromAccessor(
|
|
75604
75198
|
parentCounts,
|
|
@@ -75615,7 +75209,7 @@ return true;`);
|
|
|
75615
75209
|
}
|
|
75616
75210
|
}
|
|
75617
75211
|
if (defined3(parentIds) && defined3(parentIds.byteOffset)) {
|
|
75618
|
-
parentIds.componentType ??=
|
|
75212
|
+
parentIds.componentType ??= "UNSIGNED_SHORT";
|
|
75619
75213
|
parentIds.type = "SCALAR";
|
|
75620
75214
|
parentIds = createTypedArrayFromAccessor(
|
|
75621
75215
|
parentIds,
|
|
@@ -75750,7 +75344,6 @@ return true;`);
|
|
|
75750
75344
|
"src/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.ts"() {
|
|
75751
75345
|
"use strict";
|
|
75752
75346
|
init_loader_utils();
|
|
75753
|
-
init_dist2();
|
|
75754
75347
|
init_tile_3d_accessor_utils();
|
|
75755
75348
|
defined3 = (x) => x !== void 0;
|
|
75756
75349
|
scratchVisited = [];
|
|
@@ -76154,7 +75747,6 @@ return true;`);
|
|
|
76154
75747
|
function makeColorAttribute(colors, size, colorFormat) {
|
|
76155
75748
|
if (colorFormat === "float16") {
|
|
76156
75749
|
return {
|
|
76157
|
-
type: 5131,
|
|
76158
75750
|
value: convertColorArrayToFloat16(colors, 255),
|
|
76159
75751
|
size,
|
|
76160
75752
|
normalized: false,
|
|
@@ -76163,13 +75755,12 @@ return true;`);
|
|
|
76163
75755
|
}
|
|
76164
75756
|
if (colorFormat === "float32") {
|
|
76165
75757
|
return {
|
|
76166
|
-
type: GL.FLOAT,
|
|
76167
75758
|
value: Float32Array.from(colors, (color) => color / 255),
|
|
76168
75759
|
size,
|
|
76169
75760
|
normalized: false
|
|
76170
75761
|
};
|
|
76171
75762
|
}
|
|
76172
|
-
return {
|
|
75763
|
+
return { value: colors, size, normalized: true };
|
|
76173
75764
|
}
|
|
76174
75765
|
var init_normalize_3d_tile_colors = __esm({
|
|
76175
75766
|
"src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.ts"() {
|
|
@@ -76185,20 +75776,19 @@ return true;`);
|
|
|
76185
75776
|
return null;
|
|
76186
75777
|
}
|
|
76187
75778
|
if (tile.isOctEncoded16P) {
|
|
76188
|
-
const
|
|
76189
|
-
|
|
75779
|
+
const pointCount = normals.length / 2;
|
|
75780
|
+
const decodedArray = new Float32Array(pointCount * 3);
|
|
75781
|
+
for (let i = 0; i < pointCount; i++) {
|
|
76190
75782
|
octDecode(normals[i * 2], normals[i * 2 + 1], scratchNormal3);
|
|
76191
75783
|
scratchNormal3.toArray(decodedArray, i * 3);
|
|
76192
75784
|
}
|
|
76193
75785
|
return {
|
|
76194
|
-
|
|
76195
|
-
size: 2,
|
|
75786
|
+
size: 3,
|
|
76196
75787
|
value: decodedArray
|
|
76197
75788
|
};
|
|
76198
75789
|
}
|
|
76199
75790
|
return {
|
|
76200
|
-
|
|
76201
|
-
size: 2,
|
|
75791
|
+
size: 3,
|
|
76202
75792
|
value: normals
|
|
76203
75793
|
};
|
|
76204
75794
|
}
|
|
@@ -76222,7 +75812,6 @@ return true;`);
|
|
|
76222
75812
|
return decodeQuantizedPositions(tile, positions);
|
|
76223
75813
|
}
|
|
76224
75814
|
return {
|
|
76225
|
-
type: GL.UNSIGNED_SHORT,
|
|
76226
75815
|
value: positions,
|
|
76227
75816
|
size: 3,
|
|
76228
75817
|
normalized: true
|
|
@@ -76240,7 +75829,6 @@ return true;`);
|
|
|
76240
75829
|
"src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.ts"() {
|
|
76241
75830
|
"use strict";
|
|
76242
75831
|
init_dist();
|
|
76243
|
-
init_dist2();
|
|
76244
75832
|
}
|
|
76245
75833
|
});
|
|
76246
75834
|
|
|
@@ -76258,6 +75846,7 @@ return true;`);
|
|
|
76258
75846
|
return byteOffset;
|
|
76259
75847
|
}
|
|
76260
75848
|
function initializeTile(tile) {
|
|
75849
|
+
tile.topology = "point-list";
|
|
76261
75850
|
tile.attributes = {
|
|
76262
75851
|
positions: null,
|
|
76263
75852
|
colors: null,
|
|
@@ -76279,7 +75868,7 @@ return true;`);
|
|
|
76279
75868
|
tile.featuresLength = pointsLength;
|
|
76280
75869
|
tile.pointsLength = pointsLength;
|
|
76281
75870
|
tile.pointCount = pointsLength;
|
|
76282
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
75871
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
76283
75872
|
const batchTable = parseBatchIds(tile, featureTable);
|
|
76284
75873
|
return { featureTable, batchTable };
|
|
76285
75874
|
}
|
|
@@ -76292,14 +75881,14 @@ return true;`);
|
|
|
76292
75881
|
};
|
|
76293
75882
|
if (!tile.attributes.positions) {
|
|
76294
75883
|
if (featureTable.hasProperty("POSITION")) {
|
|
76295
|
-
tile.attributes.positions = featureTable.getPropertyArray("POSITION",
|
|
75884
|
+
tile.attributes.positions = featureTable.getPropertyArray("POSITION", Float32Array, 3);
|
|
76296
75885
|
} else if (featureTable.hasProperty("POSITION_QUANTIZED")) {
|
|
76297
|
-
const positions = featureTable.getPropertyArray("POSITION_QUANTIZED",
|
|
75886
|
+
const positions = featureTable.getPropertyArray("POSITION_QUANTIZED", Uint16Array, 3);
|
|
76298
75887
|
tile.isQuantized = true;
|
|
76299
75888
|
tile.quantizedRange = (1 << 16) - 1;
|
|
76300
75889
|
tile.quantizedVolumeScale = featureTable.getGlobalProperty(
|
|
76301
75890
|
"QUANTIZED_VOLUME_SCALE",
|
|
76302
|
-
|
|
75891
|
+
Float32Array,
|
|
76303
75892
|
3
|
|
76304
75893
|
);
|
|
76305
75894
|
if (!tile.quantizedVolumeScale) {
|
|
@@ -76307,7 +75896,7 @@ return true;`);
|
|
|
76307
75896
|
}
|
|
76308
75897
|
tile.quantizedVolumeOffset = featureTable.getGlobalProperty(
|
|
76309
75898
|
"QUANTIZED_VOLUME_OFFSET",
|
|
76310
|
-
|
|
75899
|
+
Float32Array,
|
|
76311
75900
|
3
|
|
76312
75901
|
);
|
|
76313
75902
|
if (!tile.quantizedVolumeOffset) {
|
|
@@ -76330,18 +75919,18 @@ return true;`);
|
|
|
76330
75919
|
if (!tile.attributes.colors) {
|
|
76331
75920
|
let colors = null;
|
|
76332
75921
|
if (featureTable.hasProperty("RGBA")) {
|
|
76333
|
-
colors = featureTable.getPropertyArray("RGBA",
|
|
75922
|
+
colors = featureTable.getPropertyArray("RGBA", Uint8Array, 4);
|
|
76334
75923
|
tile.isTranslucent = true;
|
|
76335
75924
|
} else if (featureTable.hasProperty("RGB")) {
|
|
76336
|
-
colors = featureTable.getPropertyArray("RGB",
|
|
75925
|
+
colors = featureTable.getPropertyArray("RGB", Uint8Array, 3);
|
|
76337
75926
|
} else if (featureTable.hasProperty("RGB565")) {
|
|
76338
|
-
colors = featureTable.getPropertyArray("RGB565",
|
|
75927
|
+
colors = featureTable.getPropertyArray("RGB565", Uint16Array, 1);
|
|
76339
75928
|
tile.isRGB565 = true;
|
|
76340
75929
|
}
|
|
76341
75930
|
tile.attributes.colors = normalize3DTileColorAttribute(tile, colors, batchTable, colorFormat);
|
|
76342
75931
|
}
|
|
76343
75932
|
if (featureTable.hasProperty("CONSTANT_RGBA")) {
|
|
76344
|
-
tile.constantRGBA = featureTable.getGlobalProperty("CONSTANT_RGBA",
|
|
75933
|
+
tile.constantRGBA = featureTable.getGlobalProperty("CONSTANT_RGBA", Uint8Array, 4);
|
|
76345
75934
|
}
|
|
76346
75935
|
}
|
|
76347
75936
|
function parseNormals(tile, featureTable) {
|
|
@@ -76354,9 +75943,9 @@ return true;`);
|
|
|
76354
75943
|
if (!tile.attributes.normals) {
|
|
76355
75944
|
let normals = null;
|
|
76356
75945
|
if (featureTable.hasProperty("NORMAL")) {
|
|
76357
|
-
normals = featureTable.getPropertyArray("NORMAL",
|
|
75946
|
+
normals = featureTable.getPropertyArray("NORMAL", Float32Array, 3);
|
|
76358
75947
|
} else if (featureTable.hasProperty("NORMAL_OCT16P")) {
|
|
76359
|
-
normals = featureTable.getPropertyArray("NORMAL_OCT16P",
|
|
75948
|
+
normals = featureTable.getPropertyArray("NORMAL_OCT16P", Uint8Array, 2);
|
|
76360
75949
|
tile.isOctEncoded16P = true;
|
|
76361
75950
|
}
|
|
76362
75951
|
tile.attributes.normals = normalize3DTileNormalAttribute(tile, normals);
|
|
@@ -76365,7 +75954,7 @@ return true;`);
|
|
|
76365
75954
|
function parseBatchIds(tile, featureTable) {
|
|
76366
75955
|
let batchTable = null;
|
|
76367
75956
|
if (!tile.batchIds && featureTable.hasProperty("BATCH_ID")) {
|
|
76368
|
-
tile.batchIds = featureTable.getPropertyArray("BATCH_ID",
|
|
75957
|
+
tile.batchIds = featureTable.getPropertyArray("BATCH_ID", Uint16Array, 1);
|
|
76369
75958
|
if (tile.batchIds) {
|
|
76370
75959
|
const batchFeatureLength = featureTable.getGlobalProperty("BATCH_LENGTH");
|
|
76371
75960
|
if (!batchFeatureLength) {
|
|
@@ -76479,7 +76068,6 @@ return true;`);
|
|
|
76479
76068
|
"use strict";
|
|
76480
76069
|
init_src3();
|
|
76481
76070
|
init_loader_utils();
|
|
76482
|
-
init_dist2();
|
|
76483
76071
|
init_dist();
|
|
76484
76072
|
init_tile_3d_feature_table();
|
|
76485
76073
|
init_tile_3d_batch_table();
|
|
@@ -76592,13 +76180,12 @@ return true;`);
|
|
|
76592
76180
|
byteOffset = parse3DTileTablesSync(tile, arrayBuffer, byteOffset, options);
|
|
76593
76181
|
byteOffset = parse3DTileGLTFViewSync(tile, arrayBuffer, byteOffset, options);
|
|
76594
76182
|
const featureTable = new Tile3DFeatureTable(tile.featureTableJson, tile.featureTableBinary);
|
|
76595
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
76183
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
76596
76184
|
return byteOffset;
|
|
76597
76185
|
}
|
|
76598
76186
|
var init_parse_3d_tile_batched_model = __esm({
|
|
76599
76187
|
"src/3d-tiles/lib/parsers/parse-3d-tile-batched-model.ts"() {
|
|
76600
76188
|
"use strict";
|
|
76601
|
-
init_dist2();
|
|
76602
76189
|
init_tile_3d_feature_table();
|
|
76603
76190
|
init_parse_3d_tile_header();
|
|
76604
76191
|
init_parse_3d_tile_tables();
|
|
@@ -76633,7 +76220,7 @@ return true;`);
|
|
|
76633
76220
|
throw new Error("i3dm parser: INSTANCES_LENGTH must be defined");
|
|
76634
76221
|
}
|
|
76635
76222
|
tile.eastNorthUp = featureTable.getGlobalProperty("EAST_NORTH_UP");
|
|
76636
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
76223
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
76637
76224
|
const batchTable = new Tile3DBatchTableParser(
|
|
76638
76225
|
tile.batchTableJson,
|
|
76639
76226
|
tile.batchTableBinary,
|
|
@@ -76661,18 +76248,18 @@ return true;`);
|
|
|
76661
76248
|
for (let i = 0; i < instancesLength; i++) {
|
|
76662
76249
|
let position;
|
|
76663
76250
|
if (featureTable.hasProperty("POSITION")) {
|
|
76664
|
-
position = featureTable.getProperty("POSITION",
|
|
76251
|
+
position = featureTable.getProperty("POSITION", Float32Array, 3, i, instancePosition);
|
|
76665
76252
|
} else if (featureTable.hasProperty("POSITION_QUANTIZED")) {
|
|
76666
76253
|
position = featureTable.getProperty(
|
|
76667
76254
|
"POSITION_QUANTIZED",
|
|
76668
|
-
|
|
76255
|
+
Uint16Array,
|
|
76669
76256
|
3,
|
|
76670
76257
|
i,
|
|
76671
76258
|
instancePosition
|
|
76672
76259
|
);
|
|
76673
76260
|
const quantizedVolumeOffset = featureTable.getGlobalProperty(
|
|
76674
76261
|
"QUANTIZED_VOLUME_OFFSET",
|
|
76675
|
-
|
|
76262
|
+
Float32Array,
|
|
76676
76263
|
3
|
|
76677
76264
|
);
|
|
76678
76265
|
if (!quantizedVolumeOffset) {
|
|
@@ -76682,7 +76269,7 @@ return true;`);
|
|
|
76682
76269
|
}
|
|
76683
76270
|
const quantizedVolumeScale = featureTable.getGlobalProperty(
|
|
76684
76271
|
"QUANTIZED_VOLUME_SCALE",
|
|
76685
|
-
|
|
76272
|
+
Float32Array,
|
|
76686
76273
|
3
|
|
76687
76274
|
);
|
|
76688
76275
|
if (!quantizedVolumeScale) {
|
|
@@ -76700,8 +76287,8 @@ return true;`);
|
|
|
76700
76287
|
}
|
|
76701
76288
|
instancePosition.copy(position);
|
|
76702
76289
|
instanceTranslationRotationScale.translation = instancePosition;
|
|
76703
|
-
const normalUp = featureTable.getProperty("NORMAL_UP",
|
|
76704
|
-
const normalRight = featureTable.getProperty("NORMAL_RIGHT",
|
|
76290
|
+
const normalUp = featureTable.getProperty("NORMAL_UP", Float32Array, 3, i, scratch1);
|
|
76291
|
+
const normalRight = featureTable.getProperty("NORMAL_RIGHT", Float32Array, 3, i, scratch2);
|
|
76705
76292
|
tile.normalUp = normalUp;
|
|
76706
76293
|
tile.normalRight = normalRight;
|
|
76707
76294
|
let hasCustomOrientation = false;
|
|
@@ -76714,16 +76301,10 @@ return true;`);
|
|
|
76714
76301
|
tile.hasCustomOrientation = true;
|
|
76715
76302
|
hasCustomOrientation = true;
|
|
76716
76303
|
} else {
|
|
76717
|
-
const octNormalUp = featureTable.getProperty(
|
|
76718
|
-
"NORMAL_UP_OCT32P",
|
|
76719
|
-
GL.UNSIGNED_SHORT,
|
|
76720
|
-
2,
|
|
76721
|
-
i,
|
|
76722
|
-
scratch1
|
|
76723
|
-
);
|
|
76304
|
+
const octNormalUp = featureTable.getProperty("NORMAL_UP_OCT32P", Uint16Array, 2, i, scratch1);
|
|
76724
76305
|
const octNormalRight = featureTable.getProperty(
|
|
76725
76306
|
"NORMAL_RIGHT_OCT32P",
|
|
76726
|
-
|
|
76307
|
+
Uint16Array,
|
|
76727
76308
|
2,
|
|
76728
76309
|
i,
|
|
76729
76310
|
scratch2
|
|
@@ -76757,16 +76338,22 @@ return true;`);
|
|
|
76757
76338
|
instanceQuaternion.fromMatrix3(instanceRotation);
|
|
76758
76339
|
instanceTranslationRotationScale.rotation = instanceQuaternion;
|
|
76759
76340
|
instanceScale.set(1, 1, 1);
|
|
76760
|
-
const scale6 = featureTable.getProperty("SCALE",
|
|
76341
|
+
const scale6 = featureTable.getProperty("SCALE", Float32Array, 1, i, scratch3);
|
|
76761
76342
|
if (Number.isFinite(scale6)) {
|
|
76762
76343
|
instanceScale.multiplyByScalar(scale6);
|
|
76763
76344
|
}
|
|
76764
|
-
const nonUniformScale = featureTable.getProperty(
|
|
76345
|
+
const nonUniformScale = featureTable.getProperty(
|
|
76346
|
+
"SCALE_NON_UNIFORM",
|
|
76347
|
+
Float32Array,
|
|
76348
|
+
3,
|
|
76349
|
+
i,
|
|
76350
|
+
scratch1
|
|
76351
|
+
);
|
|
76765
76352
|
if (nonUniformScale) {
|
|
76766
76353
|
instanceScale.scale(nonUniformScale);
|
|
76767
76354
|
}
|
|
76768
76355
|
instanceTranslationRotationScale.scale = instanceScale;
|
|
76769
|
-
let batchId = featureTable.getProperty("BATCH_ID",
|
|
76356
|
+
let batchId = featureTable.getProperty("BATCH_ID", Uint16Array, 1, i, scratch4);
|
|
76770
76357
|
if (batchId === void 0) {
|
|
76771
76358
|
batchId = i;
|
|
76772
76359
|
}
|
|
@@ -77077,7 +76664,7 @@ return true;`);
|
|
|
77077
76664
|
var init_parse_3d_tile = __esm({
|
|
77078
76665
|
"src/3d-tiles/lib/parsers/parse-3d-tile.ts"() {
|
|
77079
76666
|
"use strict";
|
|
77080
|
-
|
|
76667
|
+
init_constants7();
|
|
77081
76668
|
init_parse_utils();
|
|
77082
76669
|
init_parse_3d_tile_point_cloud();
|
|
77083
76670
|
init_parse_3d_tile_batched_model();
|
|
@@ -77398,7 +76985,7 @@ return true;`);
|
|
|
77398
76985
|
var init_preprocess_3d_tile_content = __esm({
|
|
77399
76986
|
"src/3d-tiles/lib/parsers/preprocess-3d-tile-content.ts"() {
|
|
77400
76987
|
"use strict";
|
|
77401
|
-
|
|
76988
|
+
init_constants7();
|
|
77402
76989
|
BINARY_CONTENT_TYPES = /* @__PURE__ */ new Set([
|
|
77403
76990
|
TILE3D_TYPE.BATCHED_3D_MODEL,
|
|
77404
76991
|
TILE3D_TYPE.INSTANCED_3D_MODEL,
|
|
@@ -82182,6 +81769,7 @@ return true;`);
|
|
|
82182
81769
|
_selectSource: () => import_core45._selectSource,
|
|
82183
81770
|
_unregisterLoaders: () => import_core45._unregisterLoaders,
|
|
82184
81771
|
assert: () => import_core45.assert,
|
|
81772
|
+
compareLoaderOptions: () => import_core45.compareLoaderOptions,
|
|
82185
81773
|
concatenateArrayBuffersAsync: () => import_core45.concatenateArrayBuffersAsync,
|
|
82186
81774
|
coreApi: () => import_core45.coreApi,
|
|
82187
81775
|
createDataSource: () => import_core45.createDataSource,
|
|
@@ -82290,11 +81878,11 @@ return true;`);
|
|
|
82290
81878
|
init_version5();
|
|
82291
81879
|
|
|
82292
81880
|
// src/3d-tiles/lib/encoders/encode-3d-tile.ts
|
|
82293
|
-
|
|
81881
|
+
init_constants7();
|
|
82294
81882
|
init_loader_utils();
|
|
82295
81883
|
|
|
82296
81884
|
// src/3d-tiles/lib/encoders/encode-3d-tile-composite.ts
|
|
82297
|
-
|
|
81885
|
+
init_constants7();
|
|
82298
81886
|
|
|
82299
81887
|
// src/3d-tiles/lib/encoders/helpers/encode-3d-tile-header.ts
|
|
82300
81888
|
init_loader_utils();
|
|
@@ -82339,7 +81927,7 @@ return true;`);
|
|
|
82339
81927
|
|
|
82340
81928
|
// src/3d-tiles/lib/encoders/encode-3d-tile-batched-model.ts
|
|
82341
81929
|
init_loader_utils();
|
|
82342
|
-
|
|
81930
|
+
init_constants7();
|
|
82343
81931
|
function encodeBatchedModel3DTile(tile, dataView, byteOffset, options) {
|
|
82344
81932
|
const { featuresLength = 0, batchTable } = tile;
|
|
82345
81933
|
const featureTableJson = {
|
|
@@ -82373,7 +81961,7 @@ return true;`);
|
|
|
82373
81961
|
|
|
82374
81962
|
// src/3d-tiles/lib/encoders/encode-3d-tile-instanced-model.ts
|
|
82375
81963
|
init_loader_utils();
|
|
82376
|
-
|
|
81964
|
+
init_constants7();
|
|
82377
81965
|
function encodeInstancedModel3DTile(tile, dataView, byteOffset, options) {
|
|
82378
81966
|
const { featuresLength = 1, gltfFormat = 1, gltfUri = "" } = tile;
|
|
82379
81967
|
const gltfUriByteLength = gltfUri.length;
|
|
@@ -82406,7 +81994,7 @@ return true;`);
|
|
|
82406
81994
|
}
|
|
82407
81995
|
|
|
82408
81996
|
// src/3d-tiles/lib/encoders/encode-3d-tile-point-cloud.ts
|
|
82409
|
-
|
|
81997
|
+
init_constants7();
|
|
82410
81998
|
init_loader_utils();
|
|
82411
81999
|
var DEFAULT_FEATURE_TABLE_JSON = {
|
|
82412
82000
|
POINTS_LENGTH: 1,
|
|
@@ -82655,7 +82243,7 @@ return true;`);
|
|
|
82655
82243
|
// src/3d-tiles/index.ts
|
|
82656
82244
|
init_tile_3d_feature_table();
|
|
82657
82245
|
init_tile_3d_batch_table();
|
|
82658
|
-
|
|
82246
|
+
init_constants7();
|
|
82659
82247
|
|
|
82660
82248
|
// src/3d-tiles/lib/ion/ion.ts
|
|
82661
82249
|
init_loader_utils();
|