@arcgis/core 5.1.0-next.122 → 5.1.0-next.124
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/applications/SceneViewer/layerUtils.d.ts +9 -1
- package/applications/SceneViewer/layerUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{1d7e1bbd321d6f99776c.js → 00da56b977a7c61b5c94.js} +1 -1
- package/assets/esri/core/workers/chunks/034a5c55ceeb1f85ccba.js +1 -0
- package/assets/esri/core/workers/chunks/{aef0ac417b282a90d214.js → 03e93c18efc67a25ca63.js} +1 -1
- package/assets/esri/core/workers/chunks/{a043e8c49ac8e4d1d0a6.js → 100130a80bc151f2e493.js} +1 -1
- package/assets/esri/core/workers/chunks/17e68828ca6ff6912d3e.js +1 -0
- package/assets/esri/core/workers/chunks/{688fe64be39e9ac35ffd.js → 1c16f3db1c98da8730b9.js} +1 -1
- package/assets/esri/core/workers/chunks/1e340536d3c5f94920b5.js +1 -0
- package/assets/esri/core/workers/chunks/3c5534c576528c1921d2.js +1 -0
- package/assets/esri/core/workers/chunks/41f12eb7c9b7086528d5.js +1 -0
- package/assets/esri/core/workers/chunks/{bb867fec068e26bb0c8e.js → 47f65ffcf23713f0fd5c.js} +1 -1
- package/assets/esri/core/workers/chunks/{e69d03917e28c8213b27.js → 5bd7ee40a1c469c24013.js} +2 -2
- package/assets/esri/core/workers/chunks/629099f05ca5c9ca1973.js +1 -0
- package/assets/esri/core/workers/chunks/62f78fa455d556008f6a.js +1 -0
- package/assets/esri/core/workers/chunks/{4e293c4006bdc7cc4c08.js → 77214e6081c1c28f1345.js} +1 -1
- package/assets/esri/core/workers/chunks/{e16b7ff4bf24fb99f7ea.js → 7c6f4104f5325ce0afbc.js} +1 -1
- package/assets/esri/core/workers/chunks/{4894997bfa438f66da36.js → 81808c3aead7dfac3049.js} +1 -1
- package/assets/esri/core/workers/chunks/{c357c0a08b99c1e7f290.js → 9331969046f2b277d620.js} +1 -1
- package/assets/esri/core/workers/chunks/{06858a0e1033e4a95337.js → a643a4751bbf4430bde2.js} +3 -3
- package/assets/esri/core/workers/chunks/{9c251f762df7a430cc0c.js → c755bfd90c9654170e67.js} +1 -1
- package/assets/esri/core/workers/chunks/c9fefb6316c51cbdc61f.js +1 -0
- package/assets/esri/core/workers/chunks/cc3e895cff019e811c07.js +1 -0
- package/assets/esri/core/workers/chunks/{4efbe879d06013168f54.js → d36b407f5ad5eabac530.js} +2 -2
- package/assets/esri/core/workers/chunks/{7cb1afb32ec043e23ec2.js → d63f532dd7d60ee8ef2c.js} +1 -1
- package/assets/esri/core/workers/chunks/e2de13810dce01b98520.js +1 -0
- package/assets/esri/core/workers/chunks/f25bb204cf6727f6fdef.js +1 -0
- package/assets/esri/core/workers/chunks/{aa118c1bcd922b8ac328.js → f274a8e8c7ca4294e876.js} +1 -1
- package/assets/esri/core/workers/chunks/f4f642ddd4d5db7cbbb4.js +1 -0
- package/assets/esri/core/workers/chunks/f80613cce68dc3df8303.js +2 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/GaussianSplatComposition.glsl.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +1 -1
- package/chunks/OITBlend.glsl.js +3 -3
- package/chunks/OITBlendEmission.glsl.js +2 -2
- package/chunks/OITDimOpaque.glsl.js +2 -2
- package/chunks/Path.glsl.js +23 -20
- package/chunks/SlicePlaneMaterial.glsl.js +4 -4
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/interfaces.d.ts +1 -0
- package/kernel.js +1 -1
- package/layers/AnnotationLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/fetchService.js +1 -1
- package/package.json +4 -4
- package/portal/support/loadUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/support/types.d.ts +1 -1
- package/renderers/visualVariables/RotationVariable.d.ts +1 -16
- package/renderers/visualVariables/RotationVariable.js +1 -1
- package/rest/support/Query.d.ts +1 -0
- package/support/revision.js +1 -1
- package/undoredo/support/ApplySet.js +1 -1
- package/undoredo/support/ApplySetItem.js +1 -1
- package/views/2d/engine/AFeatureContainer.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/GpuMeshState.js +1 -1
- package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
- package/views/2d/layers/features/aggregation/GridCell.js +1 -1
- package/views/2d/layers/features/aggregation/GridIndexCell.js +1 -1
- package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/DrillDownTileSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/PagedTileSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/emissive/emissions.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RendererBase.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +2 -2
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/renderState.js +1 -1
- package/widgets/Attachments/support/attachmentUtils.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +2 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/assets/esri/core/workers/chunks/04895de94657e7f3d7e1.js +0 -1
- package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +0 -1
- package/assets/esri/core/workers/chunks/3b15933f65f59625a650.js +0 -1
- package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +0 -1
- package/assets/esri/core/workers/chunks/5500dc39e11a0057ae16.js +0 -1
- package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +0 -1
- package/assets/esri/core/workers/chunks/7f5ecb67fa459f92d067.js +0 -1
- package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +0 -1
- package/assets/esri/core/workers/chunks/c49c078be08c38a6088d.js +0 -1
- package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +0 -1
- package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +0 -1
- package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +0 -1
- package/assets/esri/core/workers/chunks/fde12f5b7989c0fac67b.js +0 -2
- /package/assets/esri/core/workers/chunks/{e69d03917e28c8213b27.js.LICENSE.txt → 5bd7ee40a1c469c24013.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fde12f5b7989c0fac67b.js.LICENSE.txt → f80613cce68dc3df8303.js.LICENSE.txt} +0 -0
package/chunks/Path.glsl.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{addNearFar as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js";import{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import{addNearFar as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js";import{Offset as r}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{isColor as i}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as o}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as n}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{PathVertexPosition as l}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js";import{OutputDepth as d}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as s}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{EvaluateAmbientOcclusion as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as c,addAmbientBoostFactor as m,addLightingGlobalFactor as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as u}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{Normals as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js";import{NormalUtils as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{PhysicallyBasedRenderingParameters as w}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMapDrawFragment as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{ColorConversion as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as f,addCameraPosition as x,addViewNormal as y}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3PassUniform as L}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{FloatPassUniform as j}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{If as P,glsl as V}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{SnowCover as S}from"../views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js";import{outputColorHighlightOLID as O}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as C}from"../views/webgl/ShaderBuilder.js";function A(A){const B=new C,{vertex:_,fragment:I,varyings:D}=B;f(_,A),D.add("vpos","vec3",{invariant:!0}),B.include(l,A);const{output:M,spherical:F,pbrMode:k,snowCover:z,offsetBackfaces:E}=A;switch((i(M)||11===M)&&(B.include(o),B.include(b,A),B.include(n,A),E&&(x(_,A),B.include(r)),D.add("vnormal","vec3"),D.add("vcolor","vec4"),_.main.add(V`
|
|
3
|
+
ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
4
|
+
vpos = calculateVPos(extrudedVertex);
|
|
5
|
+
vnormal = normalize(localNormal(extrudedVertex));
|
|
6
|
+
gl_Position = transformPosition(proj, view, vpos);
|
|
7
|
+
${P(E,"gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vnormal, cameraPosition);")}
|
|
8
|
+
|
|
9
|
+
forwardObjectAndLayerIdColor();
|
|
10
|
+
vcolor = getColor();
|
|
11
|
+
forwardLinearDepthToReadShadowMap();`)),M){case 0:case 1:case 2:B.include(w,A),I.include(c,A),I.include(t,A),B.include(v,A),I.include(a,A),B.include(O,A),x(I,A),m(I),g(I),I.uniforms.add(_.uniforms.get("localOrigin"),new L("ambient",e=>e.ambient),new L("diffuse",e=>e.diffuse),new j("opacity",e=>e.opacity)),I.include(h),I.include(S,A),u(I),I.main.add(V`
|
|
9
12
|
discardBySlice(vpos);
|
|
10
13
|
|
|
11
14
|
shadingParams.viewDirection = normalize(vpos - cameraPosition);
|
|
@@ -14,12 +17,12 @@ forwardLinearDepthToReadShadowMap();`)),M){case 0:case 1:case 2:A.include(p,C),B
|
|
|
14
17
|
float ssao = evaluateAmbientOcclusionInverse();
|
|
15
18
|
|
|
16
19
|
vec3 posWorld = vpos + localOrigin;
|
|
17
|
-
vec3 normalGround = ${
|
|
20
|
+
vec3 normalGround = ${F?"normalize(posWorld);":"vec3(0.0, 0.0, 1.0);"}
|
|
18
21
|
|
|
19
22
|
vec3 albedo = vcolor.rgb * max(ambient, diffuse); // combine the old material parameters into a single one
|
|
20
23
|
float combinedOpacity = vcolor.a * opacity;
|
|
21
24
|
|
|
22
|
-
${
|
|
25
|
+
${P(z,V`float snow = getSnow(normal, normalGround);
|
|
23
26
|
albedo = mix(albedo, vec3(1), snow);
|
|
24
27
|
ssao = mix(ssao, 1.0, snow);`)}
|
|
25
28
|
|
|
@@ -27,23 +30,23 @@ forwardLinearDepthToReadShadowMap();`)),M){case 0:case 1:case 2:A.include(p,C),B
|
|
|
27
30
|
vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
28
31
|
float shadow = readShadow(additionalAmbientScale, vpos);
|
|
29
32
|
|
|
30
|
-
${
|
|
33
|
+
${P(2===k,`float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2];\n ${P(z,"mrr = applySnowToMRR(mrr, snow);")}`)}
|
|
31
34
|
|
|
32
|
-
vec3 shadedColor = ${2===
|
|
35
|
+
vec3 shadedColor = ${2===k?"evaluateSceneLightingPBR(normal, albedo, shadow, 1.0 - ssao, additionalLight, shadingParams.viewDirection, normalGround, mrr, additionalAmbientIrradiance);":"evaluateSceneLighting(normal, albedo, shadow, 1.0 - ssao, additionalLight);"}
|
|
33
36
|
vec4 finalColor = vec4(shadedColor, combinedOpacity);
|
|
34
|
-
outputColorHighlightOLID(applySlice(finalColor, vpos), albedo ${
|
|
37
|
+
outputColorHighlightOLID(applySlice(finalColor, vpos), albedo ${P(z,", snow")});`);break;case 3:B.include(o),_.main.add(V`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
35
38
|
vpos = calculateVPos(extrudedVertex);
|
|
36
|
-
gl_Position = transformPosition(proj, view, vpos);`),
|
|
39
|
+
gl_Position = transformPosition(proj, view, vpos);`),B.fragment.include(a,A),I.main.add(V`discardBySlice(vpos);`);break;case 5:case 6:case 7:case 8:B.include(o),e(B),D.add("depth","float"),_.main.add(V`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
37
40
|
vpos = calculateVPos(extrudedVertex);
|
|
38
|
-
gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth);`),
|
|
39
|
-
outputDepth(depth);`);break;case 11:
|
|
40
|
-
outputObjectAndLayerIdColor();`);break;case 4:
|
|
41
|
+
gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth);`),B.fragment.include(a,A),B.include(d,A),I.main.add(V`discardBySlice(vpos);
|
|
42
|
+
outputDepth(depth);`);break;case 11:B.fragment.include(a,A),I.main.add(V`discardBySlice(vpos);
|
|
43
|
+
outputObjectAndLayerIdColor();`);break;case 4:B.include(o),B.include(p,A),y(_),D.add("vnormal","vec3"),_.main.add(V`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
41
44
|
vpos = calculateVPos(extrudedVertex);
|
|
42
45
|
vnormal = normalize((viewNormal * vec4(localNormal(extrudedVertex), 1.0)).xyz);
|
|
43
|
-
gl_Position = transformPosition(proj, view, vpos);`),
|
|
46
|
+
gl_Position = transformPosition(proj, view, vpos);`),B.fragment.include(a,A),I.main.add(V`discardBySlice(vpos);
|
|
44
47
|
vec3 normal = normalize(vnormal);
|
|
45
48
|
if (gl_FrontFacing == false) normal = -normal;
|
|
46
|
-
fragColor = vec4(vec3(0.5) + 0.5 * normal, 1.0);`);break;case 10:
|
|
49
|
+
fragColor = vec4(vec3(0.5) + 0.5 * normal, 1.0);`);break;case 10:B.include(o),B.include(p,A),D.add("vnormal","vec3"),_.main.add(V`ExtrudedVertex extrudedVertex = evaluateVertex();
|
|
47
50
|
vpos = calculateVPos(extrudedVertex);
|
|
48
|
-
gl_Position = transformPosition(proj, view, vpos);`),
|
|
49
|
-
calculateOcclusionAndOutputHighlight();`)}return
|
|
51
|
+
gl_Position = transformPosition(proj, view, vpos);`),B.fragment.include(a,A),B.include(s,A),I.main.add(V`discardBySlice(vpos);
|
|
52
|
+
calculateOcclusionAndOutputHighlight();`)}return B}const B=Object.freeze(Object.defineProperty({__proto__:null,build:A},Symbol.toStringTag,{value:"Module"}));export{B as P,A as b};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{ColorConversion as e}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as i}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as o}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l,If as d}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{
|
|
3
|
-
gl_Position = proj * view * vec4(position, 1.0);`),
|
|
2
|
+
import{ColorConversion as e}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as i}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as o}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l,If as d}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{alphaCutoff as a}from"../views/3d/webgl-engine/shaders/alphaCutoff.glsl.js";import{outputColorHighlightOLID as s}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js";import{ShaderBuilder as g}from"../views/webgl/ShaderBuilder.js";function t(t){const n=new g,{vertex:u,fragment:p,attributes:c,varyings:v}=n;return i(u,t),n.include(s,t),p.include(a),p.include(e),c.add("position","vec3"),c.add("uv0","vec2"),v.add("vUV","vec2"),u.main.add(l`vUV = uv0;
|
|
3
|
+
gl_Position = proj * view * vec4(position, 1.0);`),p.uniforms.add(new r("backgroundColor",e=>e.backgroundColor),new r("gridColor",e=>e.gridColor),new o("gridWidth",e=>e.gridWidth)).main.add(l`
|
|
4
4
|
const float LINE_WIDTH = 1.0;
|
|
5
5
|
|
|
6
6
|
vec2 uvScaled = vUV * gridWidth;
|
|
@@ -18,5 +18,5 @@ gl_Position = proj * view * vec4(position, 1.0);`),u.uniforms.add(new r("backgro
|
|
|
18
18
|
vec4 finalColor =
|
|
19
19
|
premultiplyAlpha(backgroundColor) * (1.0 - gridAlpha) +
|
|
20
20
|
premultiplyAlpha(vec4(gridColor.rgb, gridAlpha));
|
|
21
|
-
${d(t.emissionDimmingPass,"if (finalColor.a >
|
|
22
|
-
outputColorHighlightOLID(finalColor, finalColor.rgb);`),
|
|
21
|
+
${d(t.emissionDimmingPass,"if (finalColor.a > alphaCutoff) { finalColor.rgb /= finalColor.a; }")}
|
|
22
|
+
outputColorHighlightOLID(finalColor, finalColor.rgb);`),n}const n=Object.freeze(Object.defineProperty({__proto__:null,build:t},Symbol.toStringTag,{value:"Module"}));export{n as S,t as b};
|
package/chunks/bundle2.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columndescriptor_free(e,0)}compressedSize(){return Re.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=Re.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}distinctCount(){const e=Re.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return Re.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=Re.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return Re.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return Re.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=Re.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}nullCount(){const e=Re.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return Re.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=Re.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=K(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=Re.columndescriptor_physicalType(this.__wbg_ptr);return R[e]}uncompressedSize(){return Re.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,C.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){Q(e,u);var t=e.__destroy_into_raw();Re.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=Re.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw ze(r[0])}setFullExtent(e){Re.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){Re.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){Re.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=be(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;const n=Re.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=Re.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){Re.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){Re.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=be(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;const n=Re.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}setXColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_extent_free(e,0)}get xmax(){return Re.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return Re.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return Re.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return Re.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){Re.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){Re.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){Re.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){Re.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_fieldmetadata_free(e,0)}get type(){const e=Re.fieldmetadata_esri_type(this.__wbg_ptr);return k[e]}get logicalType(){const e=Re.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=Re.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}get physicalType(){const e=Re.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==Re.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){Re.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ke,s=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),a=ke,c=Re.geometryfield_fromLocation(n,i,s,a,_,r);if(c[2])throw ze(c[1]);return o.__wrap(c[0])}static fromNative(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke,i=Re.geometryfield_fromNative(r,n,t,_);if(i[2])throw ze(i[1]);return o.__wrap(i[0])}static fromWkb(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke,i=Re.geometryfield_fromWkb(r,n,t,_);if(i[2])throw ze(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryinfo_free(e,0)}static new(){const e=Re.geometryinfo_new();if(e[2])throw ze(e[1]);return a.__wrap(e[0])}setGeometry(e){Q(e,o);var t=e.__destroy_into_raw();Re.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){Q(e,r);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}setOptmizationZ(e){Q(e,n);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const c=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_multiscalegeometryfield_free(e,0)}get level(){return Re.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get scale(){return Re.__wbg_get_multiscalegeometryfield_scale(this.__wbg_ptr)}has_field(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;return 0!==Re.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),s=ke,o=ye(r,Re.__wbindgen_malloc),a=ke,c=ye(n,Re.__wbindgen_malloc),l=ke,g=Re.multiscalegeometryfield_new(e,t,i,s,o,a,c,l);return u.__wrap(g)}set level(e){Re.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set scale(e){Re.__wbg_set_multiscalegeometryfield_scale(this.__wbg_ptr,e)}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_pageencodingdescriptor_free(e,0)}count(){return Re.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=Re.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=Re.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=Re.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=Re.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=Re.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=Re.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ke,r=Re.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==Re.parquetchunk_hasColumn(this.__wbg_ptr,e)}insertPatch(e){Q(e,b);var t=e.__destroy_into_raw();Re.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=fe(e,Re.__wbindgen_malloc),_=ke;Re.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return Re.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return Re.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return Re.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return Re.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readX(e){const t=Re.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=Re.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}rowGroup(){return Re.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return Re.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=Re.parquetchunk_serialize(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}size(){return Re.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){Q(e,w);const s=Re.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetfile_free(e,0)}byteLength(){return Re.parquetfile_byteLength(this.__wbg_ptr)}compressionCodecs(){const e=Re.parquetfile_compressionCodecs(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=de(t,Re.__wbindgen_malloc),i=ke,s=he(_,Re.__wbindgen_malloc),o=ke;return Re.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,be(r)?0:Z(r))}createdBy(){const e=Re.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}executeQuery(e,t){Q(e,d);return Re.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,be(t)?0:Z(t))}fields(e){const t=Re.parquetfile_fields(this.__wbg_ptr,e);var _=K(t[0],t[1]).slice();return Re.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=fe(e,Re.__wbindgen_malloc),r=ke;let n=0;be(t)||(Q(t,a),n=t.__destroy_into_raw());return Re.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ke;let s=0;be(r)||(Q(r,a),s=r.__destroy_into_raw());return Re.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke,n=Re.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=Re.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ae(r[0],r[1]).slice(),Re.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=Re.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=K(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return Re.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return Re.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return Re.parquetfile_numRows(this.__wbg_ptr)>>>0}readAttribute(e,t,_){return Re.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=Re.parquetfile_rowGroups(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){Q(e,g);const r=he(t,Re.__wbindgen_malloc),n=ke;return Re.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,be(_)?0:Z(_))}version(){return Re.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ke,r=Re.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=Re.parquetpatchchunk_serialize(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=Re.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return Re.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return Re.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_query_free(e,0)}static new(){const e=Re.query_new();return d.__wrap(e)}setExtent(e){Re.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=de(e,Re.__wbindgen_malloc),_=ke;Re.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=he(e,Re.__wbindgen_malloc),_=ke;Re.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=Re.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw ze(t[0])}setQuantizationTransform(e){Re.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){Re.query_setReturnGeometry(this.__wbg_ptr,e)}setScale(e){Re.query_setScale(this.__wbg_ptr,e)}setWhere(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){Re.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=he(e,Re.__wbindgen_malloc),_=ke;Re.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_querystream_free(e,0)}next(e){return Re.querystream_next(this.__wbg_ptr,be(e)?0:Z(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=Re.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=Re.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke,n=Re.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroupid_free(e,0)}}function z(){Re.enableTracing()}function F(e,t,_,r,n,i,s){const o=Re.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function q(e,t,_,r,n,i,s){const o=Re.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function x(){const t={__proto__:null,__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;re().setFloat64(e+8,be(_)?0:_,!0),re().setInt32(e+0,!be(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=be(_)?0:me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke;re().setInt32(e+4,n,!0),re().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ae(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return pe(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_a24592a6f349a97e:function(){return pe(function(e,t,_){return e.call(t,_)},arguments)},__wbg_call_bb28efe6b2f55b86:function(){return pe(function(e,t,_,r){return e.call(t,_,r)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ae(e,t))}finally{Re.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return pe(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_8360291721e2339f:function(e,t){return e[t>>>0]},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ae(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(J(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array($(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ae(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return S(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(te(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ae(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=me(t.stack,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;re().setInt32(e+4,r,!0),re().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return be(e)?0:Z(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return be(e)?0:Z(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return be(e)?0:Z(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return be(e)?0:Z(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return we(e,t,v)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return $(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ae(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=te(e,t).slice();Re.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=Re.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function v(e,t,_){const r=Re.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw ze(r[0])}function S(e,t,_,r){Re.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const R=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],k=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columndescriptor_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columnid_free(e>>>0,1)),C="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_fieldmetadata_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryfield_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryinfo_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_multiscalegeometryfield_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_pageencodingdescriptor_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetchunk_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetfile_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetpatchchunk_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroupid_free(e>>>0,1));function Z(e){const t=Re.__externref_table_alloc();return Re.__wbindgen_externrefs.set(t,e),t}function Q(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbindgen_destroy_closure(e.a,e.b));function $(e,t){return e>>>=0,ie().subarray(e/8,e/8+t)}function J(e,t){return e>>>=0,oe().subarray(e/2,e/2+t)}function K(e,t){e>>>=0;const _=re(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(Re.__wbindgen_externrefs.get(_.getUint32(n,!0)));return Re.__externref_drop_slice(e,t),r}function ee(e,t){return e>>>=0,ue().subarray(e/4,e/4+t)}function te(e,t){return e>>>=0,ge().subarray(e/1,e/1+t)}let _e=null;function re(){return(null===_e||!0===_e.buffer.detached||void 0===_e.buffer.detached&&_e.buffer!==Re.memory.buffer)&&(_e=new DataView(Re.memory.buffer)),_e}let ne=null;function ie(){return null!==ne&&0!==ne.byteLength||(ne=new Float64Array(Re.memory.buffer)),ne}let se=null;function oe(){return null!==se&&0!==se.byteLength||(se=new Int16Array(Re.memory.buffer)),se}function ae(e,t){return ve(e>>>=0,t)}let ce=null;function ue(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(Re.memory.buffer)),ce}let le=null;function ge(){return null!==le&&0!==le.byteLength||(le=new Uint8Array(Re.memory.buffer)),le}function pe(e,t){try{return e.apply(this,t)}catch(_){const e=Z(_);Re.__wbindgen_exn_store(e)}}function be(e){return null==e}function we(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(Re.__wbindgen_destroy_closure(r.a,r.b),r.a=0,N.unregister(r))},N.register(n,r,r),n}function de(e,t){const _=t(4*e.length,4)>>>0;return ue().set(e,_/4),ke=e.length,_}function fe(e,t){const _=t(1*e.length,1)>>>0;return ge().set(e,_/1),ke=e.length,_}function ye(e,t){const _=t(8*e.length,8)>>>0;return ie().set(e,_/8),ke=e.length,_}function he(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Z(e[r]);re().setUint32(_+4*r,t,!0)}return ke=e.length,_}function me(e,t,_){if(void 0===_){const _=Se.encode(e),r=t(_.length,1)>>>0;return ge().subarray(r,r+_.length).set(_),ke=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=ge();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=ge().subarray(n+s,n+r);s+=Se.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return ke=s,n}function ze(e){const t=Re.__wbindgen_externrefs.get(e);return Re.__externref_table_dealloc(e),t}let Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fe.decode();const qe=2146435072;let xe=0;function ve(e,t){return xe+=t,xe>=qe&&(Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fe.decode(),xe=t),Fe.decode(ge().subarray(e,e+t))}const Se=new TextEncoder;"encodeInto"in Se||(Se.encodeInto=function(e,t){const _=Se.encode(e);return t.set(_),{read:e.length,written:_.length}});let Re,ke=0;function Oe(e,t){return Re=e.exports,_e=null,ne=null,se=null,ce=null,le=null,Re.__wbindgen_start(),Re}async function Te(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Ce(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=x();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Ie(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=x();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Te(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,c as GeometryType,u as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Ie as default,z as enableTracing,Ce as initSync,F as queryIntersectsXYStatistics,q as queryIntersectsXZStatistics};
|
|
2
|
+
class e{static __wrap(t){t>>>=0;const _=Object.create(e.prototype);return _.__wbg_ptr=t,O.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columndescriptor_free(e,0)}compressedSize(){return Re.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=Re.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}distinctCount(){const e=Re.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return Re.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=Re.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return Re.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return Re.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=Re.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}nullCount(){const e=Re.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return Re.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=Re.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=K(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=Re.columndescriptor_physicalType(this.__wbg_ptr);return R[e]}uncompressedSize(){return Re.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);class t{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columnid_free(e,0)}}Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);const _=Object.freeze({PBF:0,0:"PBF"});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){Q(e,u);var t=e.__destroy_into_raw();Re.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=Re.displayoptimizationxzbuilder_new();return r.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw ze(r[0])}setFullExtent(e){Re.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){Re.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){Re.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=be(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;const n=Re.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{static __wrap(e){e>>>=0;const t=Object.create(n.prototype);return t.__wbg_ptr=e,I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=Re.displayoptimizationzbuilder_new();return n.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){Re.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){Re.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=be(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;const n=Re.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,be(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}setXColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_extent_free(e,0)}get xmax(){return Re.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return Re.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return Re.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return Re.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){Re.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){Re.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){Re.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){Re.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_fieldmetadata_free(e,0)}get type(){const e=Re.fieldmetadata_esri_type(this.__wbg_ptr);return k[e]}get logicalType(){const e=Re.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=Re.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}get physicalType(){const e=Re.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==Re.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){Re.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ke,s=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),a=ke,c=Re.geometryfield_fromLocation(n,i,s,a,_,r);if(c[2])throw ze(c[1]);return o.__wrap(c[0])}static fromNative(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke,i=Re.geometryfield_fromNative(r,n,t,_);if(i[2])throw ze(i[1]);return o.__wrap(i[0])}static fromWkb(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke,i=Re.geometryfield_fromWkb(r,n,t,_);if(i[2])throw ze(i[1]);return o.__wrap(i[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{static __wrap(e){e>>>=0;const t=Object.create(a.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryinfo_free(e,0)}static new(){const e=Re.geometryinfo_new();if(e[2])throw ze(e[1]);return a.__wrap(e[0])}setGeometry(e){Q(e,o);var t=e.__destroy_into_raw();Re.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){Q(e,r);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}setOptmizationZ(e){Q(e,n);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);const c=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_multiscalegeometryfield_free(e,0)}get level(){return Re.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get scale(){return Re.__wbg_get_multiscalegeometryfield_scale(this.__wbg_ptr)}has_field(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;return 0!==Re.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),s=ke,o=ye(r,Re.__wbindgen_malloc),a=ke,c=ye(n,Re.__wbindgen_malloc),l=ke,g=Re.multiscalegeometryfield_new(e,t,i,s,o,a,c,l);return u.__wrap(g)}set level(e){Re.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set scale(e){Re.__wbg_set_multiscalegeometryfield_scale(this.__wbg_ptr,e)}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_pageencodingdescriptor_free(e,0)}count(){return Re.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=Re.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=Re.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ae(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class g{static __wrap(e){e>>>=0;const t=Object.create(g.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=Re.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=Re.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=Re.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=Re.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ke,r=Re.parquetchunk_deserialize(t,_);return g.__wrap(r)}hasColumn(e){return 0!==Re.parquetchunk_hasColumn(this.__wbg_ptr,e)}insertPatch(e){Q(e,b);var t=e.__destroy_into_raw();Re.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=fe(e,Re.__wbindgen_malloc),_=ke;Re.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return Re.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return Re.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return Re.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return Re.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return Re.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return Re.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}readX(e){const t=Re.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=Re.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}rowGroup(){return Re.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return Re.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=Re.parquetchunk_serialize(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}size(){return Re.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){Q(e,w);const s=Re.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetfile_free(e,0)}byteLength(){return Re.parquetfile_byteLength(this.__wbg_ptr)}compressionCodecs(){const e=Re.parquetfile_compressionCodecs(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=de(t,Re.__wbindgen_malloc),i=ke,s=he(_,Re.__wbindgen_malloc),o=ke;return Re.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,be(r)?0:Z(r))}createdBy(){const e=Re.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ae(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}executeQuery(e,t){Q(e,d);return Re.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,be(t)?0:Z(t))}fields(e){const t=Re.parquetfile_fields(this.__wbg_ptr,e);var _=K(t[0],t[1]).slice();return Re.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=fe(e,Re.__wbindgen_malloc),r=ke;let n=0;be(t)||(Q(t,a),n=t.__destroy_into_raw());return Re.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ke;let s=0;be(r)||(Q(r,a),s=r.__destroy_into_raw());return Re.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(t){const _=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke,n=Re.parquetfile_getColumnDescriptor(this.__wbg_ptr,_,r);return e.__wrap(n)}getColumnDescriptors(){const e=Re.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke,r=Re.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ae(r[0],r[1]).slice(),Re.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=Re.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=K(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return Re.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return Re.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return Re.parquetfile_numRows(this.__wbg_ptr)>>>0}readAttribute(e,t,_){return Re.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=Re.parquetfile_rowGroups(this.__wbg_ptr);var t=K(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){Q(e,g);const r=he(t,Re.__wbindgen_malloc),n=ke;return Re.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,be(_)?0:Z(_))}version(){return Re.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ke,r=Re.parquetpatchchunk_deserialize(t,_);return b.__wrap(r)}serialize(){const e=Re.parquetpatchchunk_serialize(this.__wbg_ptr);var t=te(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=Re.quantizedgeometrybuffer_new();return w.__wrap(e)}readCoordsUnsafe(){return Re.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return Re.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_query_free(e,0)}static new(){const e=Re.query_new();return d.__wrap(e)}setExtent(e){Re.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=de(e,Re.__wbindgen_malloc),_=ke;Re.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=he(e,Re.__wbindgen_malloc),_=ke;Re.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=Re.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw ze(t[0])}setQuantizationTransform(e){Re.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){Re.query_setReturnGeometry(this.__wbg_ptr,e)}setScale(e){Re.query_setScale(this.__wbg_ptr,e)}setWhere(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ke;Re.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){Re.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=he(e,Re.__wbindgen_malloc),_=ke;Re.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_querystream_free(e,0)}next(e){return Re.querystream_next(this.__wbg_ptr,be(e)?0:Z(e))}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=Re.rangeproviderjs_new(e,t);return y.__wrap(_)}static withFetch(){const e=Re.rangeproviderjs_withFetch();return y.__wrap(e)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(t){const _=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke,n=Re.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,_,r);return e.__wrap(n)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroupid_free(e,0)}}function z(){Re.enableTracing()}function F(e,t,_,r,n,i,s){const o=Re.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function q(e,t,_,r,n,i,s){const o=Re.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function x(){const t={__proto__:null,__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;re().setFloat64(e+8,be(_)?0:_,!0),re().setInt32(e+0,!be(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=be(_)?0:me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ke;re().setInt32(e+4,n,!0),re().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ae(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return pe(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_a24592a6f349a97e:function(){return pe(function(e,t,_){return e.call(t,_)},arguments)},__wbg_call_bb28efe6b2f55b86:function(){return pe(function(e,t,_,r){return e.call(t,_,r)},arguments)},__wbg_columndescriptor_new:function(t){return e.__wrap(t)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ae(e,t))}finally{Re.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return s.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return pe(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_8360291721e2339f:function(e,t){return e[t>>>0]},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ae(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(J(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array($(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ae(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t},r=(e,t)=>{const r=_.a;_.a=0;try{return S(r,_.b,e,t)}finally{_.a=r}};return new Promise(r)}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return l.__wrap(e)},__wbg_parquetchunk_new:function(e){return g.__wrap(e)},__wbg_parquetfile_new:function(e){return p.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return b.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(te(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return f.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return h.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ae(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=me(t.stack,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ke;re().setInt32(e+4,r,!0),re().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e="undefined"==typeof global?null:global;return be(e)?0:Z(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return be(e)?0:Z(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return be(e)?0:Z(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return be(e)?0:Z(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return we(e,t,v)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return $(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return J(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ae(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=te(e,t).slice();Re.__wbindgen_free(e,1*t,1);return _},__wbindgen_init_externref_table:function(){const e=Re.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":t}}function v(e,t,_){const r=Re.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw ze(r[0])}function S(e,t,_,r){Re.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);const R=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],k=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columndescriptor_free(e>>>0,1)),C="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columnid_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_extent_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_fieldmetadata_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryfield_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryinfo_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_multiscalegeometryfield_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_pageencodingdescriptor_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetchunk_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetfile_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetpatchchunk_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_query_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_querystream_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rangeproviderjs_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroup_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroupid_free(e>>>0,1));function Z(e){const t=Re.__externref_table_alloc();return Re.__wbindgen_externrefs.set(t,e),t}function Q(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbindgen_destroy_closure(e.a,e.b));function $(e,t){return e>>>=0,ie().subarray(e/8,e/8+t)}function J(e,t){return e>>>=0,oe().subarray(e/2,e/2+t)}function K(e,t){e>>>=0;const _=re(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(Re.__wbindgen_externrefs.get(_.getUint32(n,!0)));return Re.__externref_drop_slice(e,t),r}function ee(e,t){return e>>>=0,ue().subarray(e/4,e/4+t)}function te(e,t){return e>>>=0,ge().subarray(e/1,e/1+t)}let _e=null;function re(){return(null===_e||!0===_e.buffer.detached||void 0===_e.buffer.detached&&_e.buffer!==Re.memory.buffer)&&(_e=new DataView(Re.memory.buffer)),_e}let ne=null;function ie(){return null!==ne&&0!==ne.byteLength||(ne=new Float64Array(Re.memory.buffer)),ne}let se=null;function oe(){return null!==se&&0!==se.byteLength||(se=new Int16Array(Re.memory.buffer)),se}function ae(e,t){return ve(e>>>=0,t)}let ce=null;function ue(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(Re.memory.buffer)),ce}let le=null;function ge(){return null!==le&&0!==le.byteLength||(le=new Uint8Array(Re.memory.buffer)),le}function pe(e,t){try{return e.apply(this,t)}catch(_){const e=Z(_);Re.__wbindgen_exn_store(e)}}function be(e){return null==e}function we(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(Re.__wbindgen_destroy_closure(r.a,r.b),r.a=0,N.unregister(r))},N.register(n,r,r),n}function de(e,t){const _=t(4*e.length,4)>>>0;return ue().set(e,_/4),ke=e.length,_}function fe(e,t){const _=t(1*e.length,1)>>>0;return ge().set(e,_/1),ke=e.length,_}function ye(e,t){const _=t(8*e.length,8)>>>0;return ie().set(e,_/8),ke=e.length,_}function he(e,t){const _=t(4*e.length,4)>>>0;for(let r=0;r<e.length;r++){const t=Z(e[r]);re().setUint32(_+4*r,t,!0)}return ke=e.length,_}function me(e,t,_){if(void 0===_){const _=Se.encode(e),r=t(_.length,1)>>>0;return ge().subarray(r,r+_.length).set(_),ke=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=ge();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=ge().subarray(n+s,n+r);s+=Se.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return ke=s,n}function ze(e){const t=Re.__wbindgen_externrefs.get(e);return Re.__externref_table_dealloc(e),t}let Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fe.decode();const qe=2146435072;let xe=0;function ve(e,t){return xe+=t,xe>=qe&&(Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fe.decode(),xe=t),Fe.decode(ge().subarray(e,e+t))}const Se=new TextEncoder;"encodeInto"in Se||(Se.encodeInto=function(e,t){const _=Se.encode(e);return t.set(_),{read:e.length,written:_.length}});let Re,ke=0;function Oe(e,t){return Re=e.exports,_e=null,ne=null,se=null,ce=null,le=null,Re.__wbindgen_start(),Re}async function Ce(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(!(e.ok&&_(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}function _(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}}function Te(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=x();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Oe(new WebAssembly.Instance(e,t))}async function Ie(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=x();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await Ce(await e,t);return Oe(_)}export{e as ColumnDescriptor,t as ColumnId,_ as DisplayEncoding,r as DisplayOptimizationXZBuilder,n as DisplayOptimizationZBuilder,i as Extent,s as FieldMetadata,o as GeometryField,a as GeometryInfo,c as GeometryType,u as MultiscaleGeometryField,l as PageEncodingDescriptor,g as ParquetChunk,p as ParquetFile,b as ParquetPatchChunk,w as QuantizedGeometryBuffer,d as Query,f as QueryStream,y as RangeProviderJs,h as RowGroup,m as RowGroupId,Ie as default,z as enableTracing,Te as initSync,F as queryIntersectsXYStatistics,q as queryIntersectsXZStatistics};
|
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.124";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
package/geohash/GeohashCell.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{baseObjectMemory as t,estimateNumberMemory as e}from"../core/memoryEstimations.js";import{getGeohash as o,decodeGeohashXY as s}from"./geohashUtils.js";import r from"../geometry/SpatialReference.js";import{convertFromPolygon as i,quantizeOptimizedGeometry as
|
|
2
|
+
import{baseObjectMemory as t,estimateNumberMemory as e}from"../core/memoryEstimations.js";import{getGeohash as o,decodeGeohashXY as s}from"./geohashUtils.js";import r from"../geometry/SpatialReference.js";import{convertFromPolygon as i,quantizeOptimizedGeometry as h,convertFromPoint as a}from"../layers/graphics/featureConversionUtils.js";import{project as n}from"../layers/graphics/data/projectionSupport.js";import{AAggregateCell as l}from"../views/2d/layers/features/aggregation/AAggregateCell.js";import{AccumulatedStatistics as d}from"../views/2d/layers/features/aggregation/AccumulatedStatistics.js";const c=32;class _ extends l{static create(t,e,o,s){const r=d.create(t),i=new Array(c);for(let h=0;h<i.length;h++)i[h]=null;return new _(r,e,o,s,i)}constructor(t,e,o,s,r){super(t),this.xNode=e,this.yNode=o,this.depth=s,this.children=r,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let o=0;return o+=2*t,o+=e*c,o+=d.estimatedMemory,o}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const t=new _(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._xGeohashTotal=this._xGeohashTotal,t._yGeohashTotal=this._yGeohashTotal,t.next=this.next,t._objectIds=this._objectIds.map(t=>new Set(t)),t}insert(t,e,s,r){let i=0,h=0;if("esriGeometryPoint"===t.geometryType)i=t.readXWorldSpace(),h=t.readYWorldSpace();else{const e=t.readCentroidWorldSpace();if(null==e)return;[i,h]=e.coords}const a=o(i,h,e,s);a&&(this._count+=1,this._xWorldTotal+=i,this._yWorldTotal+=h,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(t,r),this._objectIds[0].add(t.getObjectId()))}merge(t){0!==t._count&&(this._count+=t._count,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._xGeohashTotal+=t._xWorldTotal,this._yGeohashTotal+=t._yWorldTotal,this._statistics.merge(t._statistics),this._objectIds.push(...t._objectIds))}getCentroid(t){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(t,e){const o=this._getLngLatBounds(),[s,a,l,d]=o,c=n({rings:[[[s,a],[s,d],[l,d],[l,a],[s,a]]]},r.WGS84,t),_=i(c);return null!=e?h(_,"esriGeometryPolygon",e,!1,!1):_}getGeometricCentroid(t,e){const o=this._getLngLatBounds(),[s,i,l,d]=o,c=n({x:(s+l)/2,y:(i+d)/2},r.WGS84,t),_=a(c);return null!=e?h(_,"esriGeometryPoint",e,!1,!1):_}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return t.aggregateCount=this._count,t}find(t,e,o,s,r,i){if(s>=o)return this;const h=1-s%2,a=3*h+2*(1-h),n=2*h+3*(1-h),l=30-r-a,d=30-i-n,c=((t&7*h+3*(1-h)<<l)>>l)+((e&3*h+7*(1-h)<<d)>>d)*(8*h+4*(1-h)),_=this.children[c];return null==_?null:_.find(t,e,o,s+1,r+a,i+n)}_getLngLatBounds(){const t=this.depth,e=Math.ceil(t/2),o=Math.floor(t/2),r=30-(3*e+2*o),i=30-(2*e+3*o),h=this.xNode<<r,a=this.yNode<<i;return s({geohashX:h,geohashY:a},this.depth)}}export{_ as GeohashCell};
|
package/interfaces.d.ts
CHANGED
|
@@ -1061,6 +1061,7 @@ declare namespace __esri {
|
|
|
1061
1061
|
interface SceneViewerLayerUtils {
|
|
1062
1062
|
revertLayerProperty: typeof import("./applications/SceneViewer/layerUtils.js").revertLayerProperty;
|
|
1063
1063
|
originOfLayerProperty: typeof import("./applications/SceneViewer/layerUtils.js").originOfLayerProperty;
|
|
1064
|
+
isGaussianSplat3DTiles: typeof import("./applications/SceneViewer/layerUtils.js").isGaussianSplat3DTiles;
|
|
1064
1065
|
}
|
|
1065
1066
|
|
|
1066
1067
|
export const SceneViewerLayerUtils: SceneViewerLayerUtils;
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.
|
|
2
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.124",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__addDisposableResource as e,__disposeResources as r,__decorate as t}from"tslib";import s from"../PopupTemplate.js";import i from"../request.js";import{ClonableMixin as o}from"../core/Clonable.js";import a from"../core/Collection.js";import n from"../core/Error.js";import{disposable as l,makeHandle as p}from"../core/handleUtils.js";import{MultiOriginJSONSupportMixin as u}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,whenOrAbort as m,onAbort as y}from"../core/promiseUtils.js";import{watch as h,sync as c}from"../core/reactiveUtils.js";import{join as f}from"../core/urlUtils.js";import{property as b,subclass as g}from"../core/accessorSupport/decorators.js";import v from"../graphic/AnnotationGraphicOrigin.js";import j from"./Layer.js";import{APIKeyMixin as E}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{BlendLayer as L}from"./mixins/BlendLayer.js";import{CustomParametersMixin as w}from"./mixins/CustomParametersMixin.js";import{FeatureLayerBase as I}from"./mixins/FeatureLayerBase.js";import{OperationalLayer as P}from"./mixins/OperationalLayer.js";import{PortalLayer as x}from"./mixins/PortalLayer.js";import{RefreshableLayer as O}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as T}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as F}from"./mixins/TemporalLayer.js";import A from"./support/AnnotationSublayer.js";import{barrierWeight as _,popupEnabled as q}from"./support/commonProperties.js";import{ensureLayerCredential as C,createQuery as U,getFieldDomain as D,hasDataChanged as G}from"./support/featureLayerUtils.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixTimeInfoFields as Q}from"./support/fieldUtils.js";import{serviceSupportsSpatialReference as H}from"./support/versionUtils.js";import J from"../rest/support/Query.js";import{createPopupTemplate as R}from"../support/popupUtils.js";import{reader as M}from"../core/accessorSupport/decorators/reader.js";const k="annotation-layer",B=N(),K=a.ofType(A);let V=class extends(I(L(F(T(O(S(P(x(u(w(E(o(j))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new v(this),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.source=null,this.supportedSourceTypes=new Set(["Annotation Layer"]),this.type="annotation",this._dataElementPromise=null,this.addHandles(h(()=>this.sublayers,(e,r)=>this._handleSublayersChange(e,r),c))}destroy(){this.source?.destroy()}load(e){const r=e?.signal,t=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(r);null!=e&&(this.layerId=e)}if(!this.url)throw new n(`${k}:missing-url`,"AnnotationLayer must be created with a url");return this.initLayerProperties(await this.createGraphicsSource(r))}).then(()=>C(this,"load",e));return this.addResolvingPromise(t),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,r){const t=new K(r.subtypes.map(({code:e,name:r})=>new A({subtypeCode:e,title:r})).reverse());if(this.visibleLayers){const e=new Set(this.visibleLayers);t.forEach(r=>{r.visible=e.has(r.subtypeCode)})}return t}get visibleLayers(){return this.sublayers?Array.from(new Set(this.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode)??null)):this._get("visibleLayers")??
|
|
2
|
+
import{__addDisposableResource as e,__disposeResources as r,__decorate as t}from"tslib";import s from"../PopupTemplate.js";import i from"../request.js";import{ClonableMixin as o}from"../core/Clonable.js";import a from"../core/Collection.js";import n from"../core/Error.js";import{disposable as l,makeHandle as p}from"../core/handleUtils.js";import{MultiOriginJSONSupportMixin as u}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,whenOrAbort as m,onAbort as y}from"../core/promiseUtils.js";import{watch as h,sync as c}from"../core/reactiveUtils.js";import{join as f}from"../core/urlUtils.js";import{property as b,subclass as g}from"../core/accessorSupport/decorators.js";import v from"../graphic/AnnotationGraphicOrigin.js";import j from"./Layer.js";import{APIKeyMixin as E}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{BlendLayer as L}from"./mixins/BlendLayer.js";import{CustomParametersMixin as w}from"./mixins/CustomParametersMixin.js";import{FeatureLayerBase as I}from"./mixins/FeatureLayerBase.js";import{OperationalLayer as P}from"./mixins/OperationalLayer.js";import{PortalLayer as x}from"./mixins/PortalLayer.js";import{RefreshableLayer as O}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as T}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as F}from"./mixins/TemporalLayer.js";import A from"./support/AnnotationSublayer.js";import{barrierWeight as _,popupEnabled as q}from"./support/commonProperties.js";import{ensureLayerCredential as C,createQuery as U,getFieldDomain as D,hasDataChanged as G}from"./support/featureLayerUtils.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixTimeInfoFields as Q}from"./support/fieldUtils.js";import{serviceSupportsSpatialReference as H}from"./support/versionUtils.js";import J from"../rest/support/Query.js";import{createPopupTemplate as R}from"../support/popupUtils.js";import{reader as M}from"../core/accessorSupport/decorators/reader.js";const k="annotation-layer",B=N(),K=a.ofType(A);let V=class extends(I(L(F(T(O(S(P(x(u(w(E(o(j))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new v(this),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.source=null,this.supportedSourceTypes=new Set(["Annotation Layer"]),this.type="annotation",this._dataElementPromise=null,this.addHandles(h(()=>this.sublayers,(e,r)=>this._handleSublayersChange(e,r),c))}destroy(){this.source?.destroy()}load(e){const r=e?.signal,t=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(r);null!=e&&(this.layerId=e)}if(!this.url)throw new n(`${k}:missing-url`,"AnnotationLayer must be created with a url");return this.initLayerProperties(await this.createGraphicsSource(r))}).then(()=>C(this,"load",e));return this.addResolvingPromise(t),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,r){const t=new K(r.subtypes.map(({code:e,name:r})=>new A({subtypeCode:e,title:r})).reverse());if(this.visibleLayers){const e=new Set(this.visibleLayers);t.forEach(r=>{r.visible=e.has(r.subtypeCode)})}return t}get visibleLayers(){return this.sublayers?Array.from(new Set(this.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,r)=>e-r)??null)):this._get("visibleLayers")??null}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return R(this,e)}async createGraphicsSource(t){const s={stack:[],error:void 0,hasError:!1};try{const{default:r}=await m(import("./graphics/sources/FeatureLayerSource.js"),t),i=new r({layer:this,supportedSourceTypes:this.supportedSourceTypes});e(s,l(y(t,()=>i.cancelLoad())??p()),!1);return await i.load({signal:t}),i}catch(i){s.error=i,s.hasError=!0}finally{r(s)}}createQuery(){const e=U(this);return e.where=this.definitionExpression||"1=1",e}async fetchDataElement(e){if(this._dataElementPromise)return this._dataElementPromise;if(!this.url)throw new Error("InternalError: A URL is required to retrieve the data element for this layer.");const r=f(this.url,"queryDataElements"),t={f:"json",layers:this.layerId};return this._dataElementPromise=i(r,{...e,responseType:"json",query:t}).then(e=>{const r=e.data.layerDataElements,t=this.layerId,s=r.find(e=>e.layerId===t);if(!s)throw new n("fetchDataElement:not-available","A data element for this layer could not be retrieved.");return s.dataElement}),this._dataElementPromise}getFieldDomain(e,r){return D(this,e,r,this.getField(e)?.domain??null)}async queryFeatures(e,r){const t=await this.load(),s=await t.source.queryFeatures(J.from(e)??t.createQuery(),r),i=this.graphicOrigin;if(s?.features)for(const o of s.features)o.layer=o.sourceLayer=t,o.origin=i;return s}async queryObjectIds(e,r){const t=await this.load();return t.source.queryObjectIds(J.from(e)??t.createQuery(),r)}async queryFeatureCount(e,r){const t=await this.load();return t.source.queryFeatureCount(J.from(e)??t.createQuery(),r)}async queryExtent(e,r){const t=await this.load();return t.source.queryExtent(J.from(e)??t.createQuery(),r)}serviceSupportsSpatialReference(e){return this.loaded&&H(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),Q(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return G(this)}_fetchFirstValidLayerId(e){return i(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const r=e.data;if(!r)return;this.applyPreferredHost(r);const t=[...r.layers||[],...r.tables||[]];return t.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}_handleSublayersChange(e,r){r&&(r.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}};t([b(_)],V.prototype,"barrierWeight",void 0),t([b({json:{write:!0}})],V.prototype,"editingEnabled",null),t([b({readOnly:!0})],V.prototype,"effectiveEditingEnabled",null),t([b({...B.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],V.prototype,"fields",void 0),t([b(B.fieldsIndex)],V.prototype,"fieldsIndex",void 0),t([b({readOnly:!0,clonable:!1})],V.prototype,"graphicOrigin",void 0),t([b({type:["ArcGISAnnotationLayer"]})],V.prototype,"operationalLayerType",void 0),t([b(B.outFields)],V.prototype,"outFields",void 0),t([b(q)],V.prototype,"popupEnabled",void 0),t([b({type:s,json:{name:"popupInfo",write:!0}})],V.prototype,"popupTemplate",void 0),t([b({readOnly:!0})],V.prototype,"defaultPopupTemplate",null),t([b({clonable:!1,readOnly:!0})],V.prototype,"source",void 0),t([b({type:K})],V.prototype,"sublayers",void 0),t([M("service","sublayers",["subtypes"])],V.prototype,"readSublayers",null),t([b({json:{read:!1},value:"annotation",readOnly:!0})],V.prototype,"type",void 0),t([b({type:[Number],json:{write:{ignoreOrigin:!0}}})],V.prototype,"visibleLayers",null),V=t([g("esri.layers.AnnotationLayer")],V);const W=V;export{W as default};
|
package/layers/SceneLayer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../Graphic.js";import r from"../PopupTemplate.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import{abortHandle as a}from"../core/handleUtils.js";import n from"../core/Logger.js";import{destroyMaybe as l}from"../core/maybe.js";import{MultiOriginJSONSupportMixin as p}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,throwIfAborted as u,isAbortError as y,throwIfNotAbortError as c}from"../core/promiseUtils.js";import{whenOnce as m}from"../core/reactiveUtils.js";import{property as h,subclass as f}from"../core/accessorSupport/decorators.js";import{getProperties as g}from"../core/accessorSupport/utils.js";import v from"../geometry/Point.js";import{projectAsync as w}from"../geometry/projectionUtils.js";import b from"../graphic/SceneGraphicOrigin.js";import I from"./Layer.js";import{NoModelError as L,MultipleModelsError as j}from"./graphics/sources/support/uploadAssetErrors.js";import{APIKeyMixin as F}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{CustomParametersMixin as T}from"./mixins/CustomParametersMixin.js";import{EditBusLayer as O}from"./mixins/EditBusLayer.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as x}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as P}from"./mixins/ScaleRangeLayer.js";import{SceneService as A}from"./mixins/SceneService.js";import{useViewTimeProperty as E}from"./mixins/TemporalLayer.js";import{isHostedAgolService as U}from"./support/arcgisLayerUrl.js";import{findAssociatedFeatureService as D}from"./support/associatedFeatureServiceUtils.js";import{zeroCapabilities as q}from"./support/capabilities.js";import{elevationInfo as R,labelsVisible as C,legendEnabled as Q,popupEnabled as N,attributeTableTemplate as G,screenSizePerspectiveEnabled as k}from"./support/commonProperties.js";import{getFieldDomain as M,computeEffectiveEditingEnabled as V,getGlobalIdToObjectIdMap as K}from"./support/featureLayerUtils.js";import z from"./support/FeatureReductionSelection.js";import{defineFieldProperties as $}from"./support/fieldProperties.js";import H from"./support/FieldsIndex.js";import{fixRendererFields as W,fixTimeInfoFields as B,unpackFieldNames as Z}from"./support/fieldUtils.js";import{I3SNodePageDefinition as J,I3SMaterialDefinition as X,I3STextureSetDefinition as Y,I3SGeometryDefinition as ee}from"./support/I3SLayerDefinitions.js";import{isFileEditFormat as te,isFileSupported as re}from"./support/infoFor3D.js";import ie from"./support/LabelClass.js";import{reader as se}from"./support/labelingInfo.js";import oe from"./support/LayerFloorInfo.js";import{layersLoaderMap as ae}from"./support/layersLoader.js";import{getMeshTransformForMetersToSpatialReference as ne}from"./support/meshSpatialReferenceScaleUtils.js";import{RangeInfo as le}from"./support/RangeInfo.js";import pe from"./support/SceneFilter.js";import{cacheIsOutOfSync as de}from"./support/sceneLayerCacheUtils.js";import{fetchStatistics as ue}from"./support/sceneLayerStatistics.js";import{SceneServiceTimeInfo as ye}from"./support/SceneServiceTimeInfo.js";import ce from"./support/TimeInfo.js";import{loadStyleRenderer as me}from"../renderers/support/styleUtils.js";import{webSceneRendererTypes as he}from"../renderers/support/typeUtils.js";import fe from"../rest/support/Query.js";import{logInvalidElevationInfoWarning as ge,elevationModeUnsupportedMessage as ve,featureExpressionUnsupportedMessage as we}from"../support/elevationInfoUtils.js";import{createPopupTemplate as be}from"../support/popupUtils.js";import{extractZipFiles as Ie}from"../support/zipUtils.js";import Le from"../time/TimeExtent.js";import je from"../time/TimeInterval.js";import{queryAttributesFromCachedAttributesId as Fe}from"../views/3d/layers/i3s/I3SUtil.js";import{getRequiredFields as Se,getFetchPopupTemplate as Te}from"../views/layers/support/popupUtils.js";import{transparencyToOpacity as Oe}from"../webdoc/support/opacityUtils.js";import{reader as _e}from"../core/accessorSupport/decorators/reader.js";const xe=new Set(["3DObject","Point"]),Pe=$();let Ae=class extends(O(A(S(_(x(P(p(T(F(i(I))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new b(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new s,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=l(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?M(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new H(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:J.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&V(this.associatedLayer)}get geometryType(){return Ue[this.profile]||"mesh"}set renderer(e){W(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:q;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:o,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:n},data:{supportsZ:l,supportsM:p,isVersioned:d,supportsAttachment:u},operations:{supportsEditing:y,supportsAdd:c,supportsUpdate:m,supportsDelete:h,supportsQuery:f,supportsQueryAttachments:g,supportsAsyncConvert3D:v}}=e,w=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:n,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&a,supportsUploadWithItemId:o},data:{supportsAttachment:u,supportsZ:l,supportsM:p,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:f,supportsQueryAttachments:g,supportsEditing:y&&w,supportsAdd:b&&c&&w,supportsDelete:b&&h&&w,supportsUpdate:m&&w,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Ee[r]?Ee[r]:(n.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return B(t,this.fieldsIndex),t}set timeInfo(e){B(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(d),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await me(this,{origin:"service"},t),W(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){n.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new fe;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[r,{queryModels:i}]=await Promise.all([this._getAssociatedLayerForQuery(),import("./scene/modelQuerySupport.js")]);return i(this,r,e,t)}async queryModel(e,t){const[r,{queryModel:i}]=await Promise.all([this._getAssociatedLayerForQuery(),import("./scene/modelQuerySupport.js")]);return i(this,r,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=Z(this.fieldsIndex,await Se(this,Te(this)));return Fe(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,r){const i=await this.queryCachedAttributes(e,[r]);if(!i||0===i.length)throw new o("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new t;return s.attributes=i[0],s.layer=this,s.sourceLayer=this,s.origin=this.graphicOrigin,s}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(n.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return be(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new o("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:r}=await import("./graphics/editingSupport.js");let i=t;await this.load();const s=this.associatedLayer;if(!s)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:a}=s,n=!!s.infoFor3D,l=i?.globalIdUsed??!0;if(n&&null==a)throw new o(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(n&&!l)throw new o(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return U(s.url)&&n&&null!=e.deleteFeatures&&null!=a&&(i={...i,globalIdToObjectId:await K(s,e.deleteFeatures,a)}),r(this,s.source,e,i)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const r=e=>{throw n.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||r(new o("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e);u(t);const s=i.reduce((e,t)=>te(this.infoFor3D,t)?e+1:e,0);0===s&&r(new L),s>1&&r(new j);const a=this.spatialReference,l=t.origin,p=await w(l??t.defaultOrigin??new v({x:0,y:0,z:0,spatialReference:a}),a,t),d=a.isGeographic?"local":"georeferenced",{createWithExternalSource:y}=await import("../geometry/support/meshUtils.js");u(t);const c=y(p,{type:"client",files:i},{vertexSpace:d,transform:ne(a),unitConversionDisabled:!0}),[m]=await this.uploadAssets([c],{...t,useAssetOrigin:!l});return m}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;if(!t)return e;return(await Ie(e)).filter(e=>re(t,e))}validateLayer(e){if(e.layerType&&!xe.has(e.layerType))throw new o("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});function t(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new o("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new o("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}t(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new o("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=g(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");if(null==this.associatedLayer?.infoFor3D||!e||!U(this.associatedLayer?.url)||!de(this))return;g(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await D(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ae.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(t){y(t)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles(a(e));try{await m(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(r){return void c(r)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?n.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):n.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&ge(n.getLogger(this),ve("Mesh scene layers","relative-to-scene",e)),ge(n.getLogger(this),we("Scene layers",e))}async fetchStatistics(e,t){return await ue({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(de({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:o,maxTimeStr:a,max:n}=i,l=t===r?s??o:a??n;return null!=l?new Date(l):null},[o,a]=await Promise.all([s(r),s(i)]);if(null!=r&&null==o||null!=i&&null==a)return;const n=new Le({start:o,end:a});this.setAtOrigin("timeInfo",new ce({endField:i,startField:r,fullTimeExtent:n}),"service")}};e([h({types:{key:"type",base:null,typeMap:{selection:z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Ae.prototype,"featureReduction",void 0),e([h({type:[le],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Ae.prototype,"rangeInfos",void 0),e([h({json:{read:!1}})],Ae.prototype,"associatedLayer",void 0),e([h({type:["show","hide"]})],Ae.prototype,"listMode",void 0),e([h({type:["ArcGISSceneServiceLayer"]})],Ae.prototype,"operationalLayerType",void 0),e([h({json:{read:!1},readOnly:!0})],Ae.prototype,"type",void 0),e([h({...Pe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"fields",void 0),e([h()],Ae.prototype,"types",null),e([h()],Ae.prototype,"typeIdField",null),e([h()],Ae.prototype,"templates",null),e([h()],Ae.prototype,"formTemplate",null),e([h({readOnly:!0})],Ae.prototype,"graphicOrigin",void 0),e([h({readOnly:!0,clonable:!1})],Ae.prototype,"fieldsIndex",null),e([h({type:oe,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ae.prototype,"floorInfo",void 0),e([h(Pe.outFields)],Ae.prototype,"outFields",void 0),e([h({type:J,readOnly:!0,json:{read:!1},clonable:!1})],Ae.prototype,"nodePages",void 0),e([_e("service","nodePages",["nodePages","pointNodePages"])],Ae.prototype,"readNodePages",null),e([h({type:[X],readOnly:!0,clonable:!1})],Ae.prototype,"materialDefinitions",void 0),e([h({type:[Y],readOnly:!0,clonable:!1})],Ae.prototype,"textureSetDefinitions",void 0),e([h({type:[ee],readOnly:!0,clonable:!1})],Ae.prototype,"geometryDefinitions",void 0),e([h({readOnly:!0})],Ae.prototype,"serviceUpdateTimeStamp",void 0),e([h({readOnly:!0})],Ae.prototype,"attributeStorageInfo",void 0),e([h({readOnly:!0})],Ae.prototype,"statisticsInfo",void 0),e([h({type:s.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ae.prototype,"excludeObjectIds",void 0),e([h({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ae.prototype,"definitionExpression",void 0),e([h({type:pe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ae.prototype,"filter",void 0),e([h({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ae.prototype,"path",void 0),e([h(R)],Ae.prototype,"elevationInfo",null),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"effectiveCapabilities",null),e([h({readOnly:!0})],Ae.prototype,"effectiveEditingEnabled",null),e([h({type:String})],Ae.prototype,"geometryType",null),e([h(C)],Ae.prototype,"labelsVisible",void 0),e([h({type:[ie],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:se},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:se},write:!0}})],Ae.prototype,"labelingInfo",void 0),e([h(Q)],Ae.prototype,"legendEnabled",void 0),e([h({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?Oe(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ae.prototype,"opacity",void 0),e([h({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"priority",void 0),e([h({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"semantic",void 0),e([h({types:he,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ae.prototype,"renderer",null),e([h({json:{read:!1}})],Ae.prototype,"cachedDrawingInfo",void 0),e([_e("service","cachedDrawingInfo")],Ae.prototype,"readCachedDrawingInfo",null),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"capabilities",null),e([h({type:Boolean,json:{read:!1}})],Ae.prototype,"editingEnabled",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Ae.prototype,"infoFor3D",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Ae.prototype,"relationships",null),e([h(N)],Ae.prototype,"popupEnabled",void 0),e([h({type:r,json:{name:"popupInfo",write:!0}})],Ae.prototype,"popupTemplate",void 0),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"defaultPopupTemplate",null),e([h(G)],Ae.prototype,"attributeTableTemplate",void 0),e([h({type:String,json:{read:!1}})],Ae.prototype,"objectIdField",void 0),e([_e("service","objectIdField",["objectIdField","fields"])],Ae.prototype,"readObjectIdField",null),e([h({type:String,json:{read:!1}})],Ae.prototype,"globalIdField",void 0),e([_e("service","globalIdField",["globalIdField","fields"])],Ae.prototype,"readGlobalIdField",null),e([h({readOnly:!0,type:String,json:{read:!1}})],Ae.prototype,"displayField",null),e([h({type:String,json:{read:!1}})],Ae.prototype,"profile",void 0),e([_e("service","profile",["store.profile"])],Ae.prototype,"readProfile",null),e([h({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ae.prototype,"normalReferenceFrame",void 0),e([h(k)],Ae.prototype,"screenSizePerspectiveEnabled",void 0),e([h({json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"serviceItemId",void 0),e([h(E)],Ae.prototype,"useViewTime",null),e([h({type:ce,json:{read:!1,write:!1}})],Ae.prototype,"timeInfo",null),e([h({type:Le,json:{read:!1,write:!1}})],Ae.prototype,"timeExtent",null),e([h({type:je,json:{read:!1,write:!1}})],Ae.prototype,"timeOffset",null),e([h({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Ae.prototype,"datesInUnknownTimezone",null),e([h({type:ye,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Ae.prototype,"serviceTimeInfo",void 0),Ae=e([f("esri.layers.SceneLayer")],Ae);const Ee={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Ue={"mesh-pyramids":"mesh",points:"point"},De=Ae;export{De as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../Graphic.js";import r from"../PopupTemplate.js";import{ClonableMixin as i}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import{abortHandle as a}from"../core/handleUtils.js";import n from"../core/Logger.js";import{destroyMaybe as l}from"../core/maybe.js";import{MultiOriginJSONSupportMixin as p}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as d,throwIfAborted as u,isAbortError as y,throwIfNotAbortError as c}from"../core/promiseUtils.js";import{whenOnce as m}from"../core/reactiveUtils.js";import{property as h,subclass as f}from"../core/accessorSupport/decorators.js";import{getProperties as g}from"../core/accessorSupport/utils.js";import v from"../geometry/Point.js";import{projectAsync as w}from"../geometry/projectionUtils.js";import b from"../graphic/SceneGraphicOrigin.js";import I from"./Layer.js";import{NoModelError as L,MultipleModelsError as j}from"./graphics/sources/support/uploadAssetErrors.js";import{APIKeyMixin as F}from"./mixins/APIKeyMixin.js";import{ArcGISService as S}from"./mixins/ArcGISService.js";import{CustomParametersMixin as T}from"./mixins/CustomParametersMixin.js";import{EditBusLayer as O}from"./mixins/EditBusLayer.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as x}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as P}from"./mixins/ScaleRangeLayer.js";import{SceneService as A}from"./mixins/SceneService.js";import{useViewTimeProperty as E}from"./mixins/TemporalLayer.js";import{isHostedAgolService as U}from"./support/arcgisLayerUrl.js";import{findAssociatedFeatureService as D}from"./support/associatedFeatureServiceUtils.js";import{zeroCapabilities as q}from"./support/capabilities.js";import{elevationInfo as R,labelsVisible as C,legendEnabled as Q,popupEnabled as N,attributeTableTemplate as G,screenSizePerspectiveEnabled as k}from"./support/commonProperties.js";import{getFieldDomain as M,computeEffectiveEditingEnabled as V,getGlobalIdToObjectIdMap as K}from"./support/featureLayerUtils.js";import z from"./support/FeatureReductionSelection.js";import{defineFieldProperties as $}from"./support/fieldProperties.js";import H from"./support/FieldsIndex.js";import{fixRendererFields as W,fixTimeInfoFields as B,unpackFieldNames as Z}from"./support/fieldUtils.js";import{I3SNodePageDefinition as J,I3SMaterialDefinition as X,I3STextureSetDefinition as Y,I3SGeometryDefinition as ee}from"./support/I3SLayerDefinitions.js";import{isFileEditFormat as te,isFileSupported as re}from"./support/infoFor3D.js";import ie from"./support/LabelClass.js";import{reader as se}from"./support/labelingInfo.js";import oe from"./support/LayerFloorInfo.js";import{layersLoaderMap as ae}from"./support/layersLoader.js";import{getMeshTransformForMetersToSpatialReference as ne}from"./support/meshSpatialReferenceScaleUtils.js";import{RangeInfo as le}from"./support/RangeInfo.js";import pe from"./support/SceneFilter.js";import{cacheIsOutOfSync as de}from"./support/sceneLayerCacheUtils.js";import{fetchStatistics as ue}from"./support/sceneLayerStatistics.js";import{SceneServiceTimeInfo as ye}from"./support/SceneServiceTimeInfo.js";import ce from"./support/TimeInfo.js";import{loadStyleRenderer as me}from"../renderers/support/styleUtils.js";import{webSceneRendererTypes as he}from"../renderers/support/typeUtils.js";import fe from"../rest/support/Query.js";import{logInvalidElevationInfoWarning as ge,elevationModeUnsupportedMessage as ve,featureExpressionUnsupportedMessage as we}from"../support/elevationInfoUtils.js";import{createPopupTemplate as be}from"../support/popupUtils.js";import{extractZipFiles as Ie}from"../support/zipUtils.js";import Le from"../time/TimeExtent.js";import je from"../time/TimeInterval.js";import{queryAttributesFromCachedAttributesId as Fe}from"../views/3d/layers/i3s/I3SUtil.js";import{getRequiredFields as Se,getFetchPopupTemplate as Te}from"../views/layers/support/popupUtils.js";import{transparencyToOpacity as Oe}from"../webdoc/support/opacityUtils.js";import{reader as _e}from"../core/accessorSupport/decorators/reader.js";const xe=new Set(["3DObject","Point"]),Pe=$();let Ae=class extends(O(A(S(_(x(P(p(T(F(i(I))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new b(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new s,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=l(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?M(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new H(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:J.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&V(this.associatedLayer)}get geometryType(){return Ue[this.profile]||"mesh"}set renderer(e){W(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:q;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:o,supportsGeometryUpdate:a,supportsReturnServiceEditsInSourceSpatialReference:n},data:{supportsZ:l,supportsM:p,isVersioned:d,supportsAttachment:u},operations:{supportsEditing:y,supportsAdd:c,supportsUpdate:m,supportsDelete:h,supportsQuery:f,supportsQueryAttachments:g,supportsAsyncConvert3D:v},attachment:w}=e,b=e.operations.supportsChangeTracking,I=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:n,supportsRollbackOnFailure:s,supportsGeometryUpdate:I&&a,supportsUploadWithItemId:o},data:{supportsAttachment:u,supportsZ:l,supportsM:p,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:f,supportsQueryAttachments:g,supportsEditing:y&&b,supportsAdd:I&&c&&b,supportsDelete:I&&h&&b,supportsUpdate:m&&b,supportsAsyncConvert3D:v},attachment:w}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Ee[r]?Ee[r]:(n.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return B(t,this.fieldsIndex),t}set timeInfo(e){B(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(d),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await me(this,{origin:"service"},t),W(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){n.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new fe;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[r,{queryModels:i}]=await Promise.all([this._getAssociatedLayerForQuery(),import("./scene/modelQuerySupport.js")]);return i(this,r,e,t)}async queryModel(e,t){const[r,{queryModel:i}]=await Promise.all([this._getAssociatedLayerForQuery(),import("./scene/modelQuerySupport.js")]);return i(this,r,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=Z(this.fieldsIndex,await Se(this,Te(this)));return Fe(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,r){const i=await this.queryCachedAttributes(e,[r]);if(!i||0===i.length)throw new o("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new t;return s.attributes=i[0],s.layer=this,s.sourceLayer=this,s.origin=this.graphicOrigin,s}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(n.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return be(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new o("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new o("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:r}=await import("./graphics/editingSupport.js");let i=t;await this.load();const s=this.associatedLayer;if(!s)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:a}=s,n=!!s.infoFor3D,l=i?.globalIdUsed??!0;if(n&&null==a)throw new o(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(n&&!l)throw new o(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return U(s.url)&&n&&null!=e.deleteFeatures&&null!=a&&(i={...i,globalIdToObjectId:await K(s,e.deleteFeatures,a)}),r(this,s.source,e,i)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new o(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const r=e=>{throw n.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||r(new o("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e);u(t);const s=i.reduce((e,t)=>te(this.infoFor3D,t)?e+1:e,0);0===s&&r(new L),s>1&&r(new j);const a=this.spatialReference,l=t.origin,p=await w(l??t.defaultOrigin??new v({x:0,y:0,z:0,spatialReference:a}),a,t),d=a.isGeographic?"local":"georeferenced",{createWithExternalSource:y}=await import("../geometry/support/meshUtils.js");u(t);const c=y(p,{type:"client",files:i},{vertexSpace:d,transform:ne(a),unitConversionDisabled:!0}),[m]=await this.uploadAssets([c],{...t,useAssetOrigin:!l});return m}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;if(!t)return e;return(await Ie(e)).filter(e=>re(t,e))}validateLayer(e){if(e.layerType&&!xe.has(e.layerType))throw new o("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});function t(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new o("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new o("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}t(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new o("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=g(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),o=this.associatedLayer.originIdOf(i);s<o&&(2===o||3===o)&&t.setAtOrigin(i,this.associatedLayer[i],o)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");if(null==this.associatedLayer?.infoFor3D||!e||!U(this.associatedLayer?.url)||!de(this))return;g(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await D(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ae.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(t){y(t)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles(a(e));try{await m(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(r){return void c(r)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?n.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):n.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&ge(n.getLogger(this),ve("Mesh scene layers","relative-to-scene",e)),ge(n.getLogger(this),we("Scene layers",e))}async fetchStatistics(e,t){return await ue({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(de({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:o,maxTimeStr:a,max:n}=i,l=t===r?s??o:a??n;return null!=l?new Date(l):null},[o,a]=await Promise.all([s(r),s(i)]);if(null!=r&&null==o||null!=i&&null==a)return;const n=new Le({start:o,end:a});this.setAtOrigin("timeInfo",new ce({endField:i,startField:r,fullTimeExtent:n}),"service")}};e([h({types:{key:"type",base:null,typeMap:{selection:z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Ae.prototype,"featureReduction",void 0),e([h({type:[le],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Ae.prototype,"rangeInfos",void 0),e([h({json:{read:!1}})],Ae.prototype,"associatedLayer",void 0),e([h({type:["show","hide"]})],Ae.prototype,"listMode",void 0),e([h({type:["ArcGISSceneServiceLayer"]})],Ae.prototype,"operationalLayerType",void 0),e([h({json:{read:!1},readOnly:!0})],Ae.prototype,"type",void 0),e([h({...Pe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"fields",void 0),e([h()],Ae.prototype,"types",null),e([h()],Ae.prototype,"typeIdField",null),e([h()],Ae.prototype,"templates",null),e([h()],Ae.prototype,"formTemplate",null),e([h({readOnly:!0})],Ae.prototype,"graphicOrigin",void 0),e([h({readOnly:!0,clonable:!1})],Ae.prototype,"fieldsIndex",null),e([h({type:oe,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ae.prototype,"floorInfo",void 0),e([h(Pe.outFields)],Ae.prototype,"outFields",void 0),e([h({type:J,readOnly:!0,json:{read:!1},clonable:!1})],Ae.prototype,"nodePages",void 0),e([_e("service","nodePages",["nodePages","pointNodePages"])],Ae.prototype,"readNodePages",null),e([h({type:[X],readOnly:!0,clonable:!1})],Ae.prototype,"materialDefinitions",void 0),e([h({type:[Y],readOnly:!0,clonable:!1})],Ae.prototype,"textureSetDefinitions",void 0),e([h({type:[ee],readOnly:!0,clonable:!1})],Ae.prototype,"geometryDefinitions",void 0),e([h({readOnly:!0})],Ae.prototype,"serviceUpdateTimeStamp",void 0),e([h({readOnly:!0})],Ae.prototype,"attributeStorageInfo",void 0),e([h({readOnly:!0})],Ae.prototype,"statisticsInfo",void 0),e([h({type:s.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ae.prototype,"excludeObjectIds",void 0),e([h({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ae.prototype,"definitionExpression",void 0),e([h({type:pe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ae.prototype,"filter",void 0),e([h({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ae.prototype,"path",void 0),e([h(R)],Ae.prototype,"elevationInfo",null),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"effectiveCapabilities",null),e([h({readOnly:!0})],Ae.prototype,"effectiveEditingEnabled",null),e([h({type:String})],Ae.prototype,"geometryType",null),e([h(C)],Ae.prototype,"labelsVisible",void 0),e([h({type:[ie],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:se},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:se},write:!0}})],Ae.prototype,"labelingInfo",void 0),e([h(Q)],Ae.prototype,"legendEnabled",void 0),e([h({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?Oe(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ae.prototype,"opacity",void 0),e([h({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"priority",void 0),e([h({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"semantic",void 0),e([h({types:he,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ae.prototype,"renderer",null),e([h({json:{read:!1}})],Ae.prototype,"cachedDrawingInfo",void 0),e([_e("service","cachedDrawingInfo")],Ae.prototype,"readCachedDrawingInfo",null),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"capabilities",null),e([h({type:Boolean,json:{read:!1}})],Ae.prototype,"editingEnabled",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Ae.prototype,"infoFor3D",null),e([h({readOnly:!0,json:{write:!1,read:!1}})],Ae.prototype,"relationships",null),e([h(N)],Ae.prototype,"popupEnabled",void 0),e([h({type:r,json:{name:"popupInfo",write:!0}})],Ae.prototype,"popupTemplate",void 0),e([h({readOnly:!0,json:{read:!1}})],Ae.prototype,"defaultPopupTemplate",null),e([h(G)],Ae.prototype,"attributeTableTemplate",void 0),e([h({type:String,json:{read:!1}})],Ae.prototype,"objectIdField",void 0),e([_e("service","objectIdField",["objectIdField","fields"])],Ae.prototype,"readObjectIdField",null),e([h({type:String,json:{read:!1}})],Ae.prototype,"globalIdField",void 0),e([_e("service","globalIdField",["globalIdField","fields"])],Ae.prototype,"readGlobalIdField",null),e([h({readOnly:!0,type:String,json:{read:!1}})],Ae.prototype,"displayField",null),e([h({type:String,json:{read:!1}})],Ae.prototype,"profile",void 0),e([_e("service","profile",["store.profile"])],Ae.prototype,"readProfile",null),e([h({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ae.prototype,"normalReferenceFrame",void 0),e([h(k)],Ae.prototype,"screenSizePerspectiveEnabled",void 0),e([h({json:{read:!1,origins:{service:{read:!0}}}})],Ae.prototype,"serviceItemId",void 0),e([h(E)],Ae.prototype,"useViewTime",null),e([h({type:ce,json:{read:!1,write:!1}})],Ae.prototype,"timeInfo",null),e([h({type:Le,json:{read:!1,write:!1}})],Ae.prototype,"timeExtent",null),e([h({type:je,json:{read:!1,write:!1}})],Ae.prototype,"timeOffset",null),e([h({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Ae.prototype,"datesInUnknownTimezone",null),e([h({type:ye,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Ae.prototype,"serviceTimeInfo",void 0),Ae=e([f("esri.layers.SceneLayer")],Ae);const Ee={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Ue={"mesh-pyramids":"mesh",points:"point"},De=Ae;export{De as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"../../core/Error.js";import{urlToObject as r,getFilename as a}from"../../core/urlUtils.js";import{parse as t,parseNonStandardSublayerUrl as s}from"./arcgisLayerUrl.js";import{findAssociatedFeatureService as n}from"./associatedFeatureServiceUtils.js";import{getLayerModuleType as o,fetchFeatureService as l}from"./fetchService.js";import{layersLoaderMap as i}from"./layersLoader.js";import{getPreferredUrl as c,sceneServiceLayerTypeToClassName as u}from"./layerUtils.js";import{requestServiceJSON as y}from"../../request/serviceJSON.js";const f="KHR_gaussian_splatting",m={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function p(e){const{properties:r,url:a}=e,t={...r,url:a},s=await w(a,r?.customParameters),{Constructor:n,layerId:o,sourceJSON:l,parsedUrl:i,layers:c,tables:u}=s;if(c.length+u.length===0)return null!=o&&(t.layerId=o),null!=l&&(t.sourceJSON=l),new n(t);const y=new(0,(await import("../GroupLayer.js")).default)({title:i.title});return await v(y,s,t),y}function d(e,r){return e?e.find(({id:e})=>e===r):null}function S(e,r,a,t,s){const n={...s,layerId:r};return null!=e&&(n.url=e),null!=a&&(n.sourceJSON=a),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function v(e,r,a){const t=r.sublayerConstructorProvider;for(const{id:s,serverUrl:n}of r.layers){const o=d(r.
|
|
2
|
+
import e from"../../core/Error.js";import{urlToObject as r,getFilename as a}from"../../core/urlUtils.js";import{parse as t,parseNonStandardSublayerUrl as s}from"./arcgisLayerUrl.js";import{findAssociatedFeatureService as n}from"./associatedFeatureServiceUtils.js";import{getLayerModuleType as o,fetchFeatureService as l}from"./fetchService.js";import{layersLoaderMap as i}from"./layersLoader.js";import{getPreferredUrl as c,sceneServiceLayerTypeToClassName as u}from"./layerUtils.js";import{requestServiceJSON as y}from"../../request/serviceJSON.js";const f="KHR_gaussian_splatting",m={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function p(e){const{properties:r,url:a}=e,t={...r,url:a},s=await w(a,r?.customParameters),{Constructor:n,layerId:o,sourceJSON:l,parsedUrl:i,layers:c,tables:u}=s;if(c.length+u.length===0)return null!=o&&(t.layerId=o),null!=l&&(t.sourceJSON=l),new n(t);const y=new(0,(await import("../GroupLayer.js")).default)({title:i.title});return await v(y,s,t),y}function d(e,r){return e?e.find(({id:e})=>e===r):null}function S(e,r,a,t,s){const n={...s,layerId:r};return null!=e&&(n.url=e),null!=a&&(n.sourceJSON=a),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function v(e,r,a){const t=r.sublayerConstructorProvider;for(const{id:s,serverUrl:n}of r.layers){const o=d(r.layerInfos,s),l=S(n,s,o,(o&&t?.(o))??r.Constructor,a);e.add(l)}if(r.tables.length){const t=await g("FeatureLayer");r.tables.forEach(({id:s,serverUrl:n})=>{const o=S(n,s,d(r.tableInfos,s),t,a);e.tables.add(o)})}}async function w(r,a){let s=t(r);if(null==s&&(s=await b(r,a)),null==s)throw new e("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:r});const{serverType:n,sublayer:l}=s;let i;const f={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},p="FeatureServer"===n,d="SceneServer"===n,S={parsedUrl:s,Constructor:null,layerId:p||d?l??void 0:void 0,layers:[],tables:[]};switch(n){case"MapServer":if(null!=l){const{type:t}=await y(r,{customParameters:a});switch(i="FeatureLayer",t){case"Annotation Layer":i="AnnotationLayer";break;case"Dimension Layer":i="DimensionFeatureLayer";break;case"Catalog Layer":i="CatalogLayer";break;case"Annotation SubLayer":case"Catalog Dynamic Group Layer":throw new e("arcgis-layers:unsupported",`fromUrl() not supported for "${t}" layers`)}}else{i=await P(r,a)?"TileLayer":"MapImageLayer"}break;case"ImageServer":{const e=await y(r,{customParameters:a}),{tileInfo:t,cacheType:s}=e;i=t?"LERC"!==t?.format?.toUpperCase()||s&&"elevation"!==s.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await y(s.url.path,{customParameters:a});if(i="SceneLayer",e){const r=e?.layers;if("Voxel"===e?.layerType)i="VoxelLayer";else if(r?.length){const e=r[0]?.layerType;null!=e&&null!=u[e]&&(i=u[e])}}break}case"3DTilesServer":i=await U(r,a)?"GaussianSplatLayer":"IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(i="FeatureLayer",null!=l){const e=await y(r,{customParameters:a});S.sourceJSON=e,S.preferredUrl=c(),i=o(e.type)}break;default:i=f[n]}if(m[i]&&null==l){const e=await L(r,n,a);p&&(S.preferredUrl=e.preferredUrl,S.layerInfos=e.layerInfos,S.tableInfos=e.tableInfos);if(1!==e.layers.length+e.tables.length)S.layers=e.layers,S.tables=e.tables,p&&e.layerInfos?.length&&(S.sublayerConstructorProvider=await O(e.layerInfos));else if(p||d){const r=e.layerInfos?.[0]??e.tableInfos?.[0];if(S.layerId=e.layers[0]?.id??e.tables[0]?.id,S.sourceJSON=r,p){const e=r?.type;i=o(e)}}}return S.Constructor=await g(i),S}async function b(e,t){const n=await y(e,{customParameters:t});let o=null,l=null;const i=n.type;if("Feature Layer"===i||"Table"===i?(o="FeatureServer",l=n.id??null):"indexedVector"===i?o="VectorTileServer":n.hasOwnProperty("mapName")?o="MapServer":n.hasOwnProperty("bandCount")&&n.hasOwnProperty("pixelSizeX")?o="ImageServer":n.hasOwnProperty("maxRecordCount")&&n.hasOwnProperty("allowGeometryUpdates")?o="FeatureServer":n.hasOwnProperty("streamUrls")?o="StreamServer":h(n)?(o="SceneServer",l=n.id):n.hasOwnProperty("layers")&&h(n.layers?.[0])&&(o="SceneServer"),!o)return null;const c=null!=l?s(e):null;return{title:null!=c&&n.name||a(e),serverType:o,sublayer:l,url:{path:null!=c?c.serviceUrl:r(e).path}}}function h(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function L(e,r,a){let t,s,n,o,i;switch(r){case"FeatureServer":{const r=await l(e,{customParameters:a});n=c(e,{preferredHost:r.preferredHost});const s=!!r.layersJSON,u=r.layersJSON||r.serviceJSON;o=s?u?.layers:[],i=s?u?.tables:[],t=u;break}case"SceneServer":{const r=await I(e,a);t=r.serviceInfo,s=r.tableServerUrl;break}default:t=await y(e,{customParameters:a})}return{preferredUrl:n,layers:t?.layers?.map(e=>({id:e.id})).reverse()||[],tables:t?.tables?.map(e=>({serverUrl:s,id:e.id})).reverse()||[],layerInfos:o,tableInfos:i}}async function I(e,r){const a=await y(e,{customParameters:r}),t=a.layers?.[0];if(!t)return{serviceInfo:a};try{const{serverUrl:t}=await n(e),s=await y(t,{customParameters:r}).catch(()=>null);return s&&(a.tables=s.tables),{serviceInfo:a,tableServerUrl:t}}catch{return{serviceInfo:a}}}async function g(e){return(0,i[e])()}async function P(e,r){return(await y(e,{customParameters:r})).tileInfo}async function U(e,r){const a=await y(e,{customParameters:r}),t=a.extensions?.["3DTILES_content_gltf"];return!0===t?.extensionsRequired?.includes(f)}async function O(e){if(!e.length)return;const r=new Set,a=[];for(const{type:n}of e)r.has(n)||(r.add(n),a.push(g(o(n))));const t=await Promise.all(a),s=new Map;return Array.from(r).forEach((e,r)=>{s.set(e,t[r])}),e=>s.get(e.type)}export{p as fromUrl,U as isGaussianSplat3DTilesUrl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{getPreferredHost as e,getPreferredUrl as r}from"./layerUtils.js";import{requestServiceJSON as a}from"../../request/serviceJSON.js";const t=new Set(["
|
|
2
|
+
import{getPreferredHost as e,getPreferredUrl as r}from"./layerUtils.js";import{requestServiceJSON as a}from"../../request/serviceJSON.js";const t=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function n(t,n){const{loadContext:o,...y}=n||{},s=o?await o.fetchServiceMetadata(t,y):await a(t,y),c=e();u(s),i(s);const l={serviceJSON:s,preferredHost:c};if((s.currentVersion??0)<10.5)return l;const L=`${r()??t}/layers`,f=o?await o.fetchServiceMetadata(L,y):await a(L,y);return u(f),i(f),l.layersJSON={layers:f.layers,tables:f.tables},l}function o(e){const{type:r}=e;return!!r&&t.has(r)}function y(e){return"Table"===e.type}function i(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(y)}function s(e){e.type||="Feature Layer"}function c(e){e.type||="Table"}function u(e){e.layers?.forEach(s),e.tables?.forEach(c)}function l(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationLayer"}return"FeatureLayer"}function L(e){switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer"}return null}export{n as fetchFeatureService,L as getFeatureServiceItemLayerType,l as getLayerModuleType};
|