@loaders.gl/tiles-3d 5.0.0-beta.2 → 5.0.0-beta.5

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 (61) hide show
  1. package/README.md +1 -1
  2. package/dist/3d-tiles/3d-tiles-archive-loader.js +1 -1
  3. package/dist/3d-tiles/dist.dev.js +1393 -962
  4. package/dist/3d-tiles/dist.min.js +37 -37
  5. package/dist/3d-tiles/index.cjs +989 -987
  6. package/dist/3d-tiles/index.cjs.map +3 -3
  7. package/dist/3d-tiles/lib/classes/tile-3d-batch-table.d.ts.map +1 -1
  8. package/dist/3d-tiles/lib/classes/tile-3d-batch-table.js +12 -8
  9. package/dist/3d-tiles/lib/classes/tile-3d-batch-table.js.map +1 -1
  10. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +5 -1
  11. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
  12. package/dist/3d-tiles/lib/utils/version.js +1 -1
  13. package/dist/3d-tiles-archive-writer.cjs +1 -1
  14. package/dist/cesium-ion-loader-with-parser.cjs +983 -981
  15. package/dist/cesium-ion-loader-with-parser.cjs.map +3 -3
  16. package/dist/copc/copc-source-loader.js +2 -2
  17. package/dist/copc/copc-source-loader.js.map +1 -1
  18. package/dist/copc/copc-writer.js +1 -1
  19. package/dist/copc/index.cjs +365 -170
  20. package/dist/copc/index.cjs.map +3 -3
  21. package/dist/dist.dev.js +231 -38
  22. package/dist/dist.min.js +10 -10
  23. package/dist/i3s/arcgis-webscene-loader.js +1 -1
  24. package/dist/i3s/dist.dev.js +6591 -1184
  25. package/dist/i3s/dist.min.js +55 -47
  26. package/dist/i3s/i3s-attribute-loader.js +1 -1
  27. package/dist/i3s/i3s-building-scene-layer-loader.js +1 -1
  28. package/dist/i3s/i3s-content-loader.js +1 -1
  29. package/dist/i3s/i3s-lepcc-loader-types.js +1 -1
  30. package/dist/i3s/i3s-loader.js +1 -1
  31. package/dist/i3s/i3s-node-page-loader.js +1 -1
  32. package/dist/i3s/i3s-slpk-loader.js +1 -1
  33. package/dist/i3s/i3s-slpk-writer.js +1 -1
  34. package/dist/i3s/index.cjs +4763 -1136
  35. package/dist/i3s/index.cjs.map +3 -3
  36. package/dist/i3s-content-worker-node.js +11 -11
  37. package/dist/i3s-content-worker-node.js.map +4 -4
  38. package/dist/i3s-content-worker.js +1148 -391
  39. package/dist/i3s-lepcc-worker-node.js +609 -44
  40. package/dist/i3s-lepcc-worker-node.js.map +4 -4
  41. package/dist/i3s-lepcc-worker.js +575 -40
  42. package/dist/i3s-mesh-writer.cjs +8880 -5253
  43. package/dist/i3s-mesh-writer.cjs.map +3 -3
  44. package/dist/i3s-slpk-writer.cjs +1 -1
  45. package/dist/index.cjs +1 -1
  46. package/dist/point-cloud-tile-source-loader-types.js +1 -1
  47. package/dist/point-cloud-tile-source-loader.cjs +1 -1
  48. package/dist/potree/dist.dev.js +310 -110
  49. package/dist/potree/dist.min.js +31 -31
  50. package/dist/potree/index.cjs +19 -166
  51. package/dist/potree/index.cjs.map +3 -3
  52. package/dist/potree/potree-bin-loader.js +1 -1
  53. package/dist/potree/potree-hierarchy-chunk-loader.js +1 -1
  54. package/dist/potree/potree-loader-types.js +1 -1
  55. package/dist/potree/potree-source-loader.js +1 -1
  56. package/dist/potree/potree-writer.js +1 -1
  57. package/dist/potree-loader.cjs +1 -1
  58. package/package.json +13 -13
  59. package/src/3d-tiles/lib/classes/tile-3d-batch-table.ts +12 -8
  60. package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +4 -1
  61. package/src/copc/copc-source-loader.ts +1 -1
package/dist/dist.dev.js CHANGED
@@ -2158,6 +2158,35 @@ var __exports__ = (() => {
2158
2158
  out[15] = 1;
2159
2159
  return out;
2160
2160
  }
2161
+ function affineComponents(matrix) {
2162
+ if (matrix.length !== 16 || Array.from(matrix).some((x) => !Number.isFinite(x)) || matrix[3] !== 0 || matrix[7] !== 0 || matrix[11] !== 0 || matrix[15] !== 1) {
2163
+ throw new RangeError("Expected a finite affine matrix");
2164
+ }
2165
+ const scale6 = [
2166
+ Math.hypot(matrix[0], matrix[1], matrix[2]),
2167
+ Math.hypot(matrix[4], matrix[5], matrix[6]),
2168
+ Math.hypot(matrix[8], matrix[9], matrix[10])
2169
+ ];
2170
+ if (scale6.some((x) => x === 0 || !Number.isFinite(x)))
2171
+ throw new RangeError("Singular transform");
2172
+ const rotation2 = Array.from({ length: 9 }, (_, i) => matrix[Math.floor(i / 3) * 4 + i % 3] / scale6[Math.floor(i / 3)]);
2173
+ for (const [a, b] of [
2174
+ [0, 3],
2175
+ [0, 6],
2176
+ [3, 6]
2177
+ ]) {
2178
+ if (Math.abs(rotation2[a] * rotation2[b] + rotation2[a + 1] * rotation2[b + 1] + rotation2[a + 2] * rotation2[b + 2]) > 1e-7) {
2179
+ throw new RangeError("Sheared transforms do not have a TRS decomposition");
2180
+ }
2181
+ }
2182
+ const determinant3 = rotation2[0] * (rotation2[4] * rotation2[8] - rotation2[5] * rotation2[7]) - rotation2[3] * (rotation2[1] * rotation2[8] - rotation2[2] * rotation2[7]) + rotation2[6] * (rotation2[1] * rotation2[5] - rotation2[2] * rotation2[4]);
2183
+ if (determinant3 < 0) {
2184
+ scale6[0] = -scale6[0];
2185
+ for (let i = 0; i < 3; i++)
2186
+ rotation2[i] = -rotation2[i];
2187
+ }
2188
+ return { rotation: rotation2, scale: scale6, translation: [matrix[12], matrix[13], matrix[14]] };
2189
+ }
2161
2190
  var perspective, ortho;
2162
2191
  var init_mat4 = __esm({
2163
2192
  "../../node_modules/@math.gl/core/dist/gl-matrix/mat4.js"() {
@@ -2291,6 +2320,7 @@ var __exports__ = (() => {
2291
2320
  var init_matrix4 = __esm({
2292
2321
  "../../node_modules/@math.gl/core/dist/classes/matrix4.js"() {
2293
2322
  init_matrix();
2323
+ init_mat4();
2294
2324
  init_validators();
2295
2325
  init_gl_matrix_extras();
2296
2326
  init_mat4();
@@ -2575,27 +2605,15 @@ var __exports__ = (() => {
2575
2605
  * @returns self
2576
2606
  */
2577
2607
  getRotation(result, scaleResult) {
2578
- result = result || [-0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0, -0];
2579
- scaleResult = scaleResult || [-0, -0, -0];
2580
- const scale6 = this.getScale(scaleResult);
2581
- const inverseScale0 = 1 / scale6[0];
2582
- const inverseScale1 = 1 / scale6[1];
2583
- const inverseScale2 = 1 / scale6[2];
2584
- result[0] = this[0] * inverseScale0;
2585
- result[1] = this[1] * inverseScale1;
2586
- result[2] = this[2] * inverseScale2;
2587
- result[3] = 0;
2588
- result[4] = this[4] * inverseScale0;
2589
- result[5] = this[5] * inverseScale1;
2590
- result[6] = this[6] * inverseScale2;
2591
- result[7] = 0;
2592
- result[8] = this[8] * inverseScale0;
2593
- result[9] = this[9] * inverseScale1;
2594
- result[10] = this[10] * inverseScale2;
2595
- result[11] = 0;
2596
- result[12] = 0;
2597
- result[13] = 0;
2598
- result[14] = 0;
2608
+ const { rotation: rotation2, scale: scale6 } = affineComponents(this);
2609
+ result = result || new Array(16);
2610
+ if (scaleResult)
2611
+ for (let i = 0; i < 3; i++)
2612
+ scaleResult[i] = scale6[i];
2613
+ for (let i = 0; i < 16; i++)
2614
+ result[i] = 0;
2615
+ for (let i = 0; i < 9; i++)
2616
+ result[Math.floor(i / 3) * 4 + i % 3] = rotation2[i];
2599
2617
  result[15] = 1;
2600
2618
  return result;
2601
2619
  }
@@ -2606,21 +2624,13 @@ var __exports__ = (() => {
2606
2624
  * @returns self
2607
2625
  */
2608
2626
  getRotationMatrix3(result, scaleResult) {
2609
- result = result || [-0, -0, -0, -0, -0, -0, -0, -0, -0];
2610
- scaleResult = scaleResult || [-0, -0, -0];
2611
- const scale6 = this.getScale(scaleResult);
2612
- const inverseScale0 = 1 / scale6[0];
2613
- const inverseScale1 = 1 / scale6[1];
2614
- const inverseScale2 = 1 / scale6[2];
2615
- result[0] = this[0] * inverseScale0;
2616
- result[1] = this[1] * inverseScale1;
2617
- result[2] = this[2] * inverseScale2;
2618
- result[3] = this[4] * inverseScale0;
2619
- result[4] = this[5] * inverseScale1;
2620
- result[5] = this[6] * inverseScale2;
2621
- result[6] = this[8] * inverseScale0;
2622
- result[7] = this[9] * inverseScale1;
2623
- result[8] = this[10] * inverseScale2;
2627
+ const { rotation: rotation2, scale: scale6 } = affineComponents(this);
2628
+ result = result || new Array(9);
2629
+ if (scaleResult)
2630
+ for (let i = 0; i < 3; i++)
2631
+ scaleResult[i] = scale6[i];
2632
+ for (let i = 0; i < 9; i++)
2633
+ result[i] = rotation2[i];
2624
2634
  return result;
2625
2635
  }
2626
2636
  // Modifiers
@@ -2933,6 +2943,28 @@ var __exports__ = (() => {
2933
2943
  }
2934
2944
  return out;
2935
2945
  }
2946
+ function rotateTowards(out, a, b, step) {
2947
+ if (a.length !== 4 || b.length !== 4 || [...Array.from(a), ...Array.from(b), step].some((x) => !Number.isFinite(x))) {
2948
+ throw new RangeError("Expected finite quaternions and step");
2949
+ }
2950
+ if (a.length !== 4 || step < 0)
2951
+ throw new RangeError("Expected quaternions and a nonnegative step");
2952
+ const aScale = Math.max(...Array.from(a, Math.abs)), bScale = Math.max(...Array.from(b, Math.abs));
2953
+ if (!aScale || !bScale)
2954
+ throw new RangeError("Zero quaternion");
2955
+ const an = Array.from(a, (x) => x / aScale), bn = Array.from(b, (x) => x / bScale);
2956
+ const al = Math.hypot(...an), bl = Math.hypot(...bn);
2957
+ for (let i = 0; i < 4; i++) {
2958
+ an[i] /= al;
2959
+ bn[i] /= bl;
2960
+ }
2961
+ const dot5 = an.reduce((sum, x, i) => sum + x * bn[i], 0);
2962
+ const angle2 = 2 * Math.acos(Math.min(1, Math.abs(dot5)));
2963
+ if (out.length < 4)
2964
+ throw new RangeError("Result buffer is too short");
2965
+ slerp(out, an, bn, angle2 === 0 ? 0 : Math.min(1, step / angle2));
2966
+ return out;
2967
+ }
2936
2968
  var add2, scale4, dot3, lerp2, length3, squaredLength2, normalize3, rotationTo;
2937
2969
  var init_quat = __esm({
2938
2970
  "../../node_modules/@math.gl/core/dist/gl-matrix/quat.js"() {
@@ -2981,6 +3013,7 @@ var __exports__ = (() => {
2981
3013
  var Quaternion;
2982
3014
  var init_quaternion = __esm({
2983
3015
  "../../node_modules/@math.gl/core/dist/classes/quaternion.js"() {
3016
+ init_quat();
2984
3017
  init_math_array();
2985
3018
  init_validators();
2986
3019
  init_quat();
@@ -3054,6 +3087,9 @@ var __exports__ = (() => {
3054
3087
  return this.check();
3055
3088
  }
3056
3089
  /** Set a quat to the identity quaternion */
3090
+ rotateTowards(target, step) {
3091
+ return rotateTowards(this, this, target, step);
3092
+ }
3057
3093
  identity() {
3058
3094
  identity2(this);
3059
3095
  return this.check();
@@ -3551,6 +3587,19 @@ var __exports__ = (() => {
3551
3587
  }
3552
3588
  });
3553
3589
 
3590
+ // ../../node_modules/@math.gl/core/dist/projections.js
3591
+ function getProjectionDepthRange(options = {}) {
3592
+ const range = options.depthRange ?? "negative-one-to-one";
3593
+ if (range !== "negative-one-to-one" && range !== "zero-to-one")
3594
+ throw new RangeError("Unknown depth range");
3595
+ const low = range === "zero-to-one" ? 0 : -1;
3596
+ return options.reversedDepth ? [1, low] : [low, 1];
3597
+ }
3598
+ var init_projections = __esm({
3599
+ "../../node_modules/@math.gl/core/dist/projections.js"() {
3600
+ }
3601
+ });
3602
+
3554
3603
  // ../../node_modules/@math.gl/core/dist/index.js
3555
3604
  var init_dist = __esm({
3556
3605
  "../../node_modules/@math.gl/core/dist/index.js"() {
@@ -3572,6 +3621,7 @@ var __exports__ = (() => {
3572
3621
  init_vec32();
3573
3622
  init_vec42();
3574
3623
  init_mat42();
3624
+ init_projections();
3575
3625
  }
3576
3626
  });
3577
3627
 
@@ -4524,11 +4574,49 @@ var __exports__ = (() => {
4524
4574
  }
4525
4575
  });
4526
4576
 
4577
+ // ../../node_modules/@math.gl/geometry/dist/culling/frustum-planes.js
4578
+ function extractFrustumPlanes(matrix, options = {}) {
4579
+ if (matrix.length !== 16 || Array.from(matrix).some((x2) => !Number.isFinite(x2)))
4580
+ throw new RangeError("Expected a finite view-projection matrix");
4581
+ const [near, far] = getProjectionDepthRange(options);
4582
+ const low = Math.min(near, far), high = Math.max(near, far);
4583
+ const row = (i) => [matrix[i], matrix[i + 4], matrix[i + 8], matrix[i + 12]];
4584
+ const x = row(0), y = row(1), z = row(2), w = row(3);
4585
+ const combine = (a, b, factor) => a.map((v, i) => v + factor * b[i]);
4586
+ const lo = combine(z, w, -low), hi = w.map((v, i) => high * v - z[i]);
4587
+ const coefficients = [
4588
+ combine(w, x, 1),
4589
+ combine(w, x, -1),
4590
+ combine(w, y, 1),
4591
+ combine(w, y, -1),
4592
+ ...options.reversedDepth ? [hi, lo] : [lo, hi]
4593
+ ];
4594
+ const planes = [];
4595
+ for (const [a, b, c, d] of coefficients) {
4596
+ const length4 = Math.hypot(a, b, c);
4597
+ if (length4 === 0) {
4598
+ if (d < 0)
4599
+ throw new RangeError("Empty clipping volume");
4600
+ } else
4601
+ planes.push(new Plane([a / length4, b / length4, c / length4], d / length4));
4602
+ }
4603
+ if (planes.length < 4)
4604
+ throw new RangeError("Degenerate clipping volume");
4605
+ return planes;
4606
+ }
4607
+ var init_frustum_planes = __esm({
4608
+ "../../node_modules/@math.gl/geometry/dist/culling/frustum-planes.js"() {
4609
+ init_dist();
4610
+ init_plane();
4611
+ }
4612
+ });
4613
+
4527
4614
  // ../../node_modules/@math.gl/geometry/dist/culling/lib/culling-volume.js
4528
4615
  var faces, scratchPlaneCenter, scratchPlaneNormal, CullingVolume;
4529
4616
  var init_culling_volume = __esm({
4530
4617
  "../../node_modules/@math.gl/geometry/dist/culling/lib/culling-volume.js"() {
4531
4618
  init_dist();
4619
+ init_frustum_planes();
4532
4620
  init_plane();
4533
4621
  faces = [new Vector3([1, 0, 0]), new Vector3([0, 1, 0]), new Vector3([0, 0, 1])];
4534
4622
  scratchPlaneCenter = new Vector3();
@@ -4568,6 +4656,12 @@ var __exports__ = (() => {
4568
4656
  }
4569
4657
  return this;
4570
4658
  }
4659
+ /** Replace planes from a view-projection matrix; validates before mutating. */
4660
+ fromViewProjection(matrix, options = {}) {
4661
+ const planes = extractFrustumPlanes(matrix, options);
4662
+ this.planes.splice(0, this.planes.length, ...planes);
4663
+ return this;
4664
+ }
4571
4665
  /** Determines whether a bounding volume intersects the culling volume. */
4572
4666
  computeVisibility(boundingVolume) {
4573
4667
  let intersect = "inside";
@@ -34947,6 +35041,55 @@ return true;`);
34947
35041
  };
34948
35042
  }
34949
35043
 
35044
+ // ../../node_modules/@math.gl/geospatial/dist/projection/experimental/transform-description.js
35045
+ function describeCRS(crs) {
35046
+ const ellipsoid = Object.freeze({ ...crs.ellipsoid });
35047
+ return Object.freeze({
35048
+ kind: crs.kind,
35049
+ projection: crs.projection,
35050
+ parameters: Object.freeze(Object.fromEntries(Object.entries(crs.parameters).map(([name, value2]) => [name, value2 ?? null]))),
35051
+ ellipsoid,
35052
+ datum: Object.freeze({
35053
+ ellipsoid: Object.freeze({ ...crs.datum.ellipsoid }),
35054
+ towgs84: crs.datum.towgs84 && Object.freeze([...crs.datum.towgs84]),
35055
+ grids: crs.datum.grids && Object.freeze(crs.datum.grids.map((reference) => Object.freeze({
35056
+ name: reference.name,
35057
+ optional: reference.optional,
35058
+ loaded: Boolean(reference.grid)
35059
+ })))
35060
+ }),
35061
+ angularUnit: crs.angularUnit,
35062
+ toMeter: crs.toMeter,
35063
+ verticalUnit: crs.verticalUnit,
35064
+ primeMeridian: crs.primeMeridian,
35065
+ axis: crs.axis,
35066
+ storedAxis: crs.storedAxis,
35067
+ longitudeWrap: crs.longitudeWrap,
35068
+ areaOfUse: crs.areaOfUse && Object.freeze([...crs.areaOfUse]),
35069
+ lossy: crs.lossy,
35070
+ algorithm: crs.algorithm && Object.freeze({ ...crs.algorithm })
35071
+ });
35072
+ }
35073
+ function describeTransform(source, target, forward33, inverse33) {
35074
+ const opaqueReasons = [];
35075
+ if (!source.algorithm)
35076
+ opaqueReasons.push("source-algorithm");
35077
+ if (!target.algorithm)
35078
+ opaqueReasons.push("target-algorithm");
35079
+ if (source.datum.grids || target.datum.grids || source.parameters["geoidgrids"] || target.parameters["geoidgrids"])
35080
+ opaqueReasons.push("grid-resource");
35081
+ return Object.freeze({
35082
+ version: 1,
35083
+ source,
35084
+ target,
35085
+ forward: forward33,
35086
+ inverse: inverse33,
35087
+ lossy: source.lossy || target.lossy,
35088
+ complete: opaqueReasons.length === 0,
35089
+ opaqueReasons: Object.freeze(opaqueReasons)
35090
+ });
35091
+ }
35092
+
34950
35093
  // ../../node_modules/@math.gl/geospatial/dist/projection/experimental/typescript-projection.js
34951
35094
  var ProjectionTransform = class _ProjectionTransform {
34952
35095
  /** Resolve required descriptors once, then return an ordinary synchronous instance. */
@@ -34961,6 +35104,10 @@ return true;`);
34961
35104
  getTargetRenderingProfile(coverage) {
34962
35105
  return this.targetRenderingProfile && resolveRenderingProfile(this.targetRenderingProfile, coverage);
34963
35106
  }
35107
+ /** Deferred transforms expose metadata only once their implementations are prepared. */
35108
+ get description() {
35109
+ return this.deferred?.implementation?.description ?? this.resolvedDescription;
35110
+ }
34964
35111
  constructor(options = {}) {
34965
35112
  this.coordinateScratch = new ProjectionScratch();
34966
35113
  this.targetLongitudeOrigin = 0;
@@ -34986,6 +35133,7 @@ return true;`);
34986
35133
  unsupportedStage("Horizontal extraction cannot be combined with vertical grids");
34987
35134
  this.forwardTransform = compileTransform(from, to, Boolean(options.enforceAxis));
34988
35135
  this.inverseTransform = compileTransform(to, from, Boolean(options.enforceAxis));
35136
+ this.resolvedDescription = describeTransform(describeCRS(from), describeCRS(to), this.forwardTransform.description, this.inverseTransform.description);
34989
35137
  }
34990
35138
  this.project = this.project.bind(this);
34991
35139
  this.unproject = this.unproject.bind(this);
@@ -35163,7 +35311,8 @@ return true;`);
35163
35311
  const verticalGrid = compileVerticalGrid(crs.parameters["geoidgrids"], options.verticalGrids);
35164
35312
  if (verticalGrid && (crs.kind === "geocentric" || crs.kind === "identity" || crs.lossy))
35165
35313
  unsupportedStage("Vertical grids require a non-lossy geographic or projected CRS");
35166
- return { ...crs, datum, implementation, verticalGrid };
35314
+ const algorithm = plugin ? plugin.semantics : { id: "@math.gl/geospatial/" + crs.kind, version: 1 };
35315
+ return { ...crs, datum, implementation, verticalGrid, algorithm };
35167
35316
  }
35168
35317
  function finite(point) {
35169
35318
  return Number.isFinite(point.x) && Number.isFinite(point.y) && Number.isFinite(point.z);
@@ -35206,9 +35355,51 @@ return true;`);
35206
35355
  if (from.kind === "projected" && to.kind === "geographic")
35207
35356
  flat = from.implementation?.createInverseFlat?.(context);
35208
35357
  }
35358
+ const requiresInputZ = Boolean(from.verticalGrid || to.verticalGrid) || from.kind === "geocentric" || /[ud]/.test(fromAxis.slice(0, 2)) || /[ud]/.test(toAxis.slice(0, 2));
35359
+ const stages = [];
35360
+ if (inputAxis)
35361
+ stages.push("input-axis");
35362
+ if (horizontalOnly)
35363
+ stages.push("discard-height");
35364
+ if (inputScale !== 1)
35365
+ stages.push("input-scale");
35366
+ if (source)
35367
+ stages.push("source-inverse");
35368
+ if (inputVerticalScale !== 1)
35369
+ stages.push("input-height-scale");
35370
+ stages.push("geographic-domain-check");
35371
+ if (fromPrime)
35372
+ stages.push("source-prime-meridian");
35373
+ if (from.verticalGrid)
35374
+ stages.push("source-vertical-grid");
35375
+ if (datum)
35376
+ stages.push("datum");
35377
+ if (to.verticalGrid)
35378
+ stages.push("target-vertical-grid");
35379
+ if (toPrime)
35380
+ stages.push("target-prime-meridian");
35381
+ if (longitudeWrap !== void 0)
35382
+ stages.push("longitude-wrap");
35383
+ if (target)
35384
+ stages.push("target-forward");
35385
+ if (outputScale !== 1)
35386
+ stages.push("output-scale");
35387
+ if (outputVerticalScale !== 1)
35388
+ stages.push("output-height-scale");
35389
+ if (horizontalOnly)
35390
+ stages.push("restore-height");
35391
+ if (outputAxis)
35392
+ stages.push("output-axis");
35209
35393
  return {
35394
+ description: Object.freeze({
35395
+ inputAxis: fromAxis,
35396
+ outputAxis: toAxis,
35397
+ requiresInputZ,
35398
+ geocentricOutput: to.kind === "geocentric",
35399
+ stages: Object.freeze(stages)
35400
+ }),
35210
35401
  flat,
35211
- requiresInputZ: Boolean(from.verticalGrid || to.verticalGrid) || from.kind === "geocentric" || /[ud]/.test(fromAxis.slice(0, 2)) || /[ud]/.test(toAxis.slice(0, 2)),
35402
+ requiresInputZ,
35212
35403
  geocentricOutput: to.kind === "geocentric",
35213
35404
  run(point) {
35214
35405
  if (!finite(point))
@@ -35658,6 +35849,7 @@ return true;`);
35658
35849
  init_rendering_bounds();
35659
35850
  var mercator = {
35660
35851
  name: "merc",
35852
+ semantics: { id: "@math.gl/geospatial/merc", version: 1 },
35661
35853
  aliases: [
35662
35854
  "Mercator",
35663
35855
  "Popular Visualisation Pseudo Mercator",
@@ -35746,6 +35938,7 @@ return true;`);
35746
35938
  init_rendering_bounds();
35747
35939
  var equidistantCylindrical = {
35748
35940
  name: "eqc",
35941
+ semantics: { id: "@math.gl/geospatial/eqc", version: 1 },
35749
35942
  aliases: ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical"],
35750
35943
  parameters: ["lon_0", "lat_0", "lat_ts", "x_0", "y_0"],
35751
35944
  create({ semiMajorAxis: a, parameters, primeMeridian: primeMeridian2 = 0 }) {