@arcgis/core 6.0.0-next.56 → 6.0.0-next.58
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/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1afc8820c283ef785729.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/2f31766bc0f9d1d70c5a.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
- package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
- package/assets/esri/core/workers/chunks/373b140f92eda3857f82.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/3fc4b7d0ee460fc96176.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/{dfa1b0308e5e82d1ddfe.js → 5e4de4ddd3bdc74100e0.js} +34 -33
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/651e33be8bb3995d749f.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/721f43554b9654481de7.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/8920d0b11951b57d6a66.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/92d97e0fcc20dd5f5ac4.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9ca84fa9423654061d05.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b10c534cbe311d17b7d5.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/cb0e3614b78c78040662.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/d22e3b5d836dffdf91cc.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e42e9dd3c933f5f864ab.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +4 -17
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +2 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +3 -3
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +12 -11
- package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +2 -2
- package/chunks/Terrain.glsl.js +28 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +25 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/memoryEstimations.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +0 -1
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/transferFeatures.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/fieldUtils.d.ts +129 -57
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/networks/Network.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/generateRendererUtils.js +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DBVH.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.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/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +15 -12
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/View.d.ts +27 -1
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
- package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/333140b18aeb5a50b654.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/4761cd436abceee858bf.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/4de08ead94660025075b.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/56f227e1a9e51d1fd742.js +0 -1
- package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
- package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/62ddd3a82864e26f009a.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/703373f529c1c334cfad.js +0 -1
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/733c32d8091427d84de7.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/860552f49f17de2f3353.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/88df1b8b295d3aed649f.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9b727f45dfea84357b57.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a05a2c2aaf0c288f9681.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab76170c374fd67ce8cd.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/aebd12488b4004e207a3.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c7b1c6d57603fa385c54.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/cd8181600623e18f511c.js +0 -1
- package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
- package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/ddbfa664e69612295785.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
- package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/ee70be138831cc2a0f56.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/efd6ea0966f60ab19520.js +0 -1
- package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{fromValues as e}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{MinPriority as t}from"../../../../core/MemCache.js";import{throwIfAborted as n}from"../../../../core/promiseUtils.js";import{create as r}from"../../../../geometry/support/aaBoundingRect.js";import i from"../../tiling/TileInfoViewPOT.js";import a from"../../tiling/TileKey.js";import{tileSizeInPixels as o}from"./constants.js";import{TileHandler as s}from"./TileHandler.js";import{VectorTile as c}from"./VectorTile.js";class l extends s{constructor(e,t,n,r,a){super(e,t,n,e.tileInfo.lods.length-1,r),this._memCache=a,this.type=`TileHandler3D`,this._vectorTiles=new Map,this._ongoingTileRequests=new Map,this._ongoingRequestToController=new Map,this.tilingScheme=new i(e.tileInfo,e.fullExtent)}destroy(){super.destroy(),this._ongoingRequestToController.forEach(e=>e.abort()),this._ongoingRequestToController.clear(),this._ongoingTileRequests.clear(),this._vectorTiles.clear()}async getVectorTile(i,s){let l=new a(i[0],i[1],i[2],0),u=this._vectorTiles.get(l.id)??this._memCache.get(l.id);if(u)return u.retain(),u;let d=await this._getVectorTileData(l);if(n(s),!this._layer||!d)return null;if(u=this._vectorTiles.get(l.id)??this._memCache.get(l.id)
|
|
2
|
+
import{fromValues as e}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{MinPriority as t}from"../../../../core/MemCache.js";import{throwIfAborted as n}from"../../../../core/promiseUtils.js";import{create as r}from"../../../../geometry/support/aaBoundingRect.js";import i from"../../tiling/TileInfoViewPOT.js";import a from"../../tiling/TileKey.js";import{tileSizeInPixels as o}from"./constants.js";import{TileHandler as s}from"./TileHandler.js";import{VectorTile as c}from"./VectorTile.js";class l extends s{constructor(e,t,n,r,a){super(e,t,n,e.tileInfo.lods.length-1,r),this._memCache=a,this.type=`TileHandler3D`,this._vectorTiles=new Map,this._ongoingTileRequests=new Map,this._ongoingRequestToController=new Map,this.tilingScheme=new i(e.tileInfo,e.fullExtent)}destroy(){super.destroy(),this._ongoingRequestToController.forEach(e=>e.abort()),this._ongoingRequestToController.clear(),this._ongoingTileRequests.clear(),this._vectorTiles.clear()}async getVectorTile(i,s){let l=new a(i[0],i[1],i[2],0),u=this._vectorTiles.get(l.id)??this._memCache.get(l.id);if(u)return u.retain(),u;let d=await this._getVectorTileData(l);if(n(s),!this._layer||!d)return null;if(u=this._vectorTiles.get(l.id)??this._memCache.get(l.id))return u.retain(),u;let f=this._layer.tileInfo.getTileBounds(r(),l),p=this.tilingScheme.getTileResolution(i[0]);return u=new c(l,p,f[0],f[3],o,o,this._styleRepository,this),u.setData(d),u.retain(),this._memCache.put(l.id,u,t),this._vectorTiles.set(l.id,u),u.neededForCoverage=!0,u.transforms.tileUnitsToPixels=e(1/8,0,0,0,1/8,0,0,0,1),u}updateTileSize(e){this._memCache.updateSize(e.id)}onDisposeTile(e){this._vectorTiles.get(e.id)===e&&this._vectorTiles.delete(e.id)}_getVectorTileData(e){let t=e.id;if(this._ongoingTileRequests.has(t))return this._ongoingTileRequests.get(t);let n=new AbortController,r={signal:n.signal},i=this._getParsedVectorTileData(e,r).catch(()=>null).finally(()=>{this._ongoingTileRequests.get(t)===i&&(this._ongoingTileRequests.delete(t),this._ongoingRequestToController.delete(t))});return this._ongoingTileRequests.set(t,i),this._ongoingRequestToController.set(t,n),i}_getParsedVectorTileData(e,t){return this.fetchTileData(e,t).then(n=>this.parseTileData({key:e,data:n},t))}}export{l as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../../../../core/BidiEngine.js";import{assertIsSome as t}from"../../../../../core/maybe.js";import{numericHash as n}from"../../../../../core/string.js";import{Point as r}from"../../../../../geometry/support/TileClipper.js";import{tilePixelRatio as i,tileSizeInTileUnits as a}from"../constants.js";import{cDegToRad as o,log2 as s,interpolate as c}from"../GeometryUtils.js";import{Anchor as l}from"../Placement.js";import{getPolygonLabelPlacement as u}from"../style/GeoJSONLabelUtils.js";import{IconLayout as d,TextLayout as f}from"../style/StyleLayer.js";import{sdfGlyphSize as p,TextShaping as m}from"../TextShaping.js";import h from"./BaseBucket.js";function g(e,t){return e.iconMosaicItem&&t.iconMosaicItem?e.iconMosaicItem.page===t.iconMosaicItem.page?0:e.iconMosaicItem.page-t.iconMosaicItem.page:e.iconMosaicItem&&!t.iconMosaicItem?1:!e.iconMosaicItem&&t.iconMosaicItem?-1:0}class _ extends h{constructor(e,t,n,r,i,a,o,s,c){super(t,n,c.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=e,this._iconVertexBuffer=r,this._iconIndexBuffer=i,this._textVertexBuffer=a,this._textIndexBuffer=o,this._placementEngine=s,this._workerTileHandler=c}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new e}getResources(e,t,r){let i=this.layer,a=this.zoom;e&&e.setExtent(this.layerExtent);let o=i.getLayoutProperty(`icon-image`),s=i.getLayoutProperty(`text-field`),c=i.getLayoutProperty(`text-transform`),l=i.getLayoutProperty(`text-font`),u=[],d;o&&!o.isDataDriven&&(d=o.getValue(a));let f;s&&!s.isDataDriven&&(f=s.getValue(a));let p;c&&c.isDataDriven||(p=i.getLayoutValue(`text-transform`,a),c=null);let m;l&&l.isDataDriven||(m=i.getLayoutValue(`text-font`,a),l=null);for(let h of this._features){let g=h.getGeometry(e);if(!g||g.length===0)continue;let v;o&&(v=o.isDataDriven?o.getValue(a,h):this._replaceKeys(d,h.values),v&&t(v));let y,b=!1;if(s&&(y=s.isDataDriven?s.getValue(a,h):this._replaceKeys(f,h.values)
|
|
2
|
+
import e from"../../../../../core/BidiEngine.js";import{assertIsSome as t}from"../../../../../core/maybe.js";import{numericHash as n}from"../../../../../core/string.js";import{Point as r}from"../../../../../geometry/support/TileClipper.js";import{tilePixelRatio as i,tileSizeInTileUnits as a}from"../constants.js";import{cDegToRad as o,log2 as s,interpolate as c}from"../GeometryUtils.js";import{Anchor as l}from"../Placement.js";import{getPolygonLabelPlacement as u}from"../style/GeoJSONLabelUtils.js";import{IconLayout as d,TextLayout as f}from"../style/StyleLayer.js";import{sdfGlyphSize as p,TextShaping as m}from"../TextShaping.js";import h from"./BaseBucket.js";function g(e,t){return e.iconMosaicItem&&t.iconMosaicItem?e.iconMosaicItem.page===t.iconMosaicItem.page?0:e.iconMosaicItem.page-t.iconMosaicItem.page:e.iconMosaicItem&&!t.iconMosaicItem?1:!e.iconMosaicItem&&t.iconMosaicItem?-1:0}class _ extends h{constructor(e,t,n,r,i,a,o,s,c){super(t,n,c.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=e,this._iconVertexBuffer=r,this._iconIndexBuffer=i,this._textVertexBuffer=a,this._textIndexBuffer=o,this._placementEngine=s,this._workerTileHandler=c}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new e}getResources(e,t,r){let i=this.layer,a=this.zoom;e&&e.setExtent(this.layerExtent);let o=i.getLayoutProperty(`icon-image`),s=i.getLayoutProperty(`text-field`),c=i.getLayoutProperty(`text-transform`),l=i.getLayoutProperty(`text-font`),u=[],d;o&&!o.isDataDriven&&(d=o.getValue(a));let f;s&&!s.isDataDriven&&(f=s.getValue(a));let p;c&&c.isDataDriven||(p=i.getLayoutValue(`text-transform`,a),c=null);let m;l&&l.isDataDriven||(m=i.getLayoutValue(`text-font`,a),l=null);for(let h of this._features){let g=h.getGeometry(e);if(!g||g.length===0)continue;let v;o&&(v=o.isDataDriven?o.getValue(a,h):this._replaceKeys(d,h.values),v&&t(v));let y,b=!1;if(s&&(y=s.isDataDriven?s.getValue(a,h):this._replaceKeys(f,h.values))){switch(y=y.replaceAll(`\\n`,`
|
|
3
3
|
`),c&&(p=c.getValue(a,h)),p){case 2:y=y.toLowerCase();break;case 1:y=y.toUpperCase()}if(_._bidiEngine.hasBidiChar(y)){let e=_._bidiEngine.checkContextual(y),t;t=e===`rtl`?`IDNNN`:`ICNNN`,y=_._bidiEngine.bidiTransform(y,t,`VLYSN`),b=!0}if(y.length>0){l&&(m=l.getValue(a,h));for(let e of m){let t=r[e];t||=r[e]=new Set;for(let e of y){let n=e.codePointAt(0);n!=null&&t.add(n)}}}}if(!v&&!y)continue;let x=i.getLayoutValue(`symbol-sort-key`,a,h),S={feature:h,sprite:v,label:y,rtl:b,geometry:g,hash:(y?n(y):0)^(v?n(v):0),priority:x,textFont:m};u.push(S)}this._symbolFeatures=u}processFeatures(e){e&&e.setExtent(this.layerExtent);let n=this.layer,r=this.zoom,s=n.getLayoutValue(`symbol-placement`,r),c=s!==0,u=n.getLayoutValue(`symbol-spacing`,r)*i,h=n.getLayoutProperty(`icon-image`),v=n.getLayoutProperty(`text-field`),y=h?new d(n,r,c):null,b=v?new f(n,r,c):null,x=this._workerTileHandler,S;h&&(S=x.getSpriteItems()),this._iconIndexStart=this._iconIndexBuffer.index*3,this._textIndexStart=this._textIndexBuffer.index*3,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();let C=[],w=1;b?.size&&(w=b.size/p);let T=b?b.maxAngle*o:0,E=b?b.size*i:0;for(let e of this._symbolFeatures){let o;y&&S&&e.sprite&&(o=S[e.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&y.update(r,e.feature);let d,f=0,h=e.label;if(h){t(b),b.update(r,e.feature);let n=c&&b.rotationAlignment===0?b.keepUpright:b.writingMode&&b.writingMode.includes(1),a=.5;switch(b.anchor){case 5:case 1:case 7:a=0;break;case 6:case 2:case 8:a=1}let o=.5;switch(b.anchor){case 5:case 3:case 6:o=0;break;case 7:case 4:case 8:o=1}let s=.5;switch(b.justify){case 0:s=a;break;case 1:s=0;break;case 3:s=1}let l=b.letterSpacing*p,u=c?0:b.maxWidth*p,g=b.lineHeight*p,_=e.textFont.map(e=>x.getGlyphItems(e));if(d=new m(_,u,g,l,a,o,s).getShaping(h,e.rtl,n),d&&d.length>0){let e=1e30,t=-1e30;for(let n of d)e=Math.min(e,n.x),t=Math.max(t,n.x);f=(t-e+p*2)*w*i}}let g=_._getPlacementCandidates(n,s,e.feature,e.geometry);for(let t of g){let{vertices:n}=t,r=[];if(s===1){if(d?.length&&b?.size){let e=b.size*i*(2+Math.min(2,Math.abs(b.offset[1])*4));n=_._smoothVertices(n,e)}_._pushAnchors(r,n,u,f)}else s===2?_._pushCenterAnchor(r,n):e.feature.type===3?t.anchor?r.push(t.anchor):_._pushCentroid(r,n):r.push(new l(n[0].x,n[0].y));for(let t of r){if(t.x<0||t.x>a||t.y<0||t.y>a||c&&f>0&&b?.rotationAlignment===0&&!_._honorsTextMaxAngle(n,t,f,T,E))continue;let r={shaping:d,line:n,iconMosaicItem:o,anchor:t,symbolFeature:e,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};C.push(r),this._processFeature(r,y,b)}}}C.sort(g),this._addPlacedGlyphs(),this._symbolInstances=C}serialize(){let e=14;e+=this.layerUIDs.length,e+=this.markerPageMap.size*3,e+=this.glyphsPageMap.size*3,e+=_._symbolsSerializationLength(this._symbolInstances),e+=this._iconVertexBuffer.array.length,e+=this._iconIndexBuffer.array.length,e+=this._textVertexBuffer.array.length,e+=this._textIndexBuffer.array.length;let t=new Uint32Array(e),n=new Int32Array(t.buffer),r=new Float32Array(t.buffer),[i,a,o]=this._sourceTileKey.split(`/`,3),s=0;t[s++]=this.type,t[s++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[s++]=this.layerUIDs[e];t[s++]=+!!this._isIconSDF,t[s++]=parseFloat(i),t[s++]=parseFloat(a),t[s++]=parseFloat(o),t[s++]=this.markerPageMap.size;for(let[e,[n,r]]of this.markerPageMap)t[s++]=e,t[s++]=n,t[s++]=r;t[s++]=this.glyphsPageMap.size;for(let[e,[n,r]]of this.glyphsPageMap)t[s++]=e,t[s++]=n,t[s++]=r;t[s++]=this._iconVertexBuffer.index/4,t[s++]=this._textVertexBuffer.index/4,s=_.serializeSymbols(t,n,r,s,this._symbolInstances),t[s++]=this._iconVertexBuffer.array.length;for(let e=0;e<this._iconVertexBuffer.array.length;e++)n[s++]=this._iconVertexBuffer.array[e];t[s++]=this._iconIndexBuffer.array.length;for(let e=0;e<this._iconIndexBuffer.array.length;e++)t[s++]=this._iconIndexBuffer.array[e];t[s++]=this._textVertexBuffer.array.length;for(let e=0;e<this._textVertexBuffer.array.length;e++)n[s++]=this._textVertexBuffer.array[e];t[s++]=this._textIndexBuffer.array.length;for(let e=0;e<this._textIndexBuffer.array.length;e++)t[s++]=this._textIndexBuffer.array[e];return t.buffer}static _symbolsSerializationLength(e){let t=0;t+=1;for(let n of e||[]){t+=5,t+=1;for(let e of n.textColliders)t+=10;for(let e of n.iconColliders)t+=10;t+=1,t+=n.textVertexRanges.length*2,t+=1,t+=n.iconVertexRanges.length*2}return t}static serializeSymbols(e,t,n,r,i){i||=[],t[r++]=i.length;for(let e of i){t[r++]=e.anchor.x,t[r++]=e.anchor.y,t[r++]=e.symbolFeature.hash,t[r++]=e.symbolFeature.priority,t[r++]=e.symbolFeature.feature.featureIndex,t[r++]=e.textColliders.length+e.iconColliders.length;for(let i of e.textColliders)t[r++]=i.xTile,t[r++]=i.yTile,t[r++]=i.dxPixels,t[r++]=i.dyPixels,t[r++]=+!!i.hard,t[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,t[r++]=i.width,t[r++]=i.height;for(let i of e.iconColliders)t[r++]=i.xTile,t[r++]=i.yTile,t[r++]=i.dxPixels,t[r++]=i.dyPixels,t[r++]=+!!i.hard,t[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,t[r++]=i.width,t[r++]=i.height;t[r++]=e.textVertexRanges.length;for(let[n,i]of e.textVertexRanges)t[r++]=n,t[r++]=i;t[r++]=e.iconVertexRanges.length;for(let[n,i]of e.iconVertexRanges)t[r++]=n,t[r++]=i}return r}_replaceKeys(e,t){return e.replaceAll(/{([^{}]+)}/g,(e,n)=>n in t?t[n]:``)}_processFeature(e,t,n){let{line:r,iconMosaicItem:i,shaping:a,anchor:o}=e,c=this.zoom,l=this.layer,u=!!i,d=!0;u&&(d=t?.optional||!i);let f=a&&a.length>0,p=!f||n?.optional,m;if(u&&(m=this._placementEngine.getIconPlacement(o,i,t)),!m&&!d)return;let h;if(f&&(h=this._placementEngine.getTextPlacement(o,a,r,n)),h||p){if(m&&h||(!p&&!d?(m=null,h=null):!p&&!h?m=null:!d&&!m&&(h=null)),h){let t=l.hasDataDrivenText?l.textMaterial.encodeAttributes(e.symbolFeature.feature,c,l):null;if(this._storePlacedGlyphs(e,h.shapes,c,n.rotationAlignment,t),h.textColliders){e.textColliders=h.textColliders;for(let e of h.textColliders){e.minLod=Math.max(c+s(e.minLod),0),e.maxLod=Math.min(c+s(e.maxLod),25);let t=e.angle;if(t){let n=Math.cos(t),r=Math.sin(t),i=e.dxPixels*n-e.dyPixels*r,a=e.dxPixels*r+e.dyPixels*n,o=(e.dxPixels+e.width)*n-e.dyPixels*r,s=(e.dxPixels+e.width)*r+e.dyPixels*n,c=e.dxPixels*n-(e.dyPixels+e.height)*r,l=e.dxPixels*r+(e.dyPixels+e.height)*n,u=(e.dxPixels+e.width)*n-(e.dyPixels+e.height)*r,d=(e.dxPixels+e.width)*r+(e.dyPixels+e.height)*n,f=Math.min(i,o,c,u),p=Math.max(i,o,c,u),m=Math.min(a,s,l,d),h=Math.max(a,s,l,d);e.dxPixels=f,e.dyPixels=m,e.width=p-f,e.height=h-m}}}}if(m){let n=l.hasDataDrivenIcon?l.iconMaterial.encodeAttributes(e.symbolFeature.feature,c,l):null;if(this._addPlacedIcons(e,m.shapes,c,i.page,t.rotationAlignment===1,n),m.iconColliders){e.iconColliders=m.iconColliders;for(let e of m.iconColliders){e.minLod=Math.max(c+s(e.minLod),0),e.maxLod=Math.min(c+s(e.maxLod),25);let t=e.angle;if(t){let n=Math.cos(t),r=Math.sin(t),i=e.dxPixels*n-e.dyPixels*r,a=e.dxPixels*r+e.dyPixels*n,o=(e.dxPixels+e.width)*n-e.dyPixels*r,s=(e.dxPixels+e.width)*r+e.dyPixels*n,c=e.dxPixels*n-(e.dyPixels+e.height)*r,l=e.dxPixels*r+(e.dyPixels+e.height)*n,u=(e.dxPixels+e.width)*n-(e.dyPixels+e.height)*r,d=(e.dxPixels+e.width)*r+(e.dyPixels+e.height)*n,f=Math.min(i,o,c,u),p=Math.max(i,o,c,u),m=Math.min(a,s,l,d),h=Math.max(a,s,l,d);e.dxPixels=f,e.dyPixels=m,e.width=p-f,e.height=h-m}}}}}}_addPlacedIcons(e,t,n,r,i,a){let o=Math.max(n-1,0),c=this._iconVertexBuffer,l=this._iconIndexBuffer,u=this._markerMap;for(let d of t){let t=i?0:Math.max(n+s(d.minzoom),o),f=i?25:Math.min(n+s(d.maxzoom),25);if(f<=t)continue;let p=d.tl,m=d.tr,h=d.bl,g=d.br,_=d.mosaicRect,v=d.labelAngle,y=d.minAngle,b=d.maxAngle,x=d.anchor,S=c.index,C=_.x,w=_.y,T=C+_.width,E=w+_.height,D=c.index;c.add(x.x,x.y,p.x,p.y,C,w,v,y,b,t,f,a),c.add(x.x,x.y,m.x,m.y,T,w,v,y,b,t,f,a),c.add(x.x,x.y,h.x,h.y,C,E,v,y,b,t,f,a),c.add(x.x,x.y,g.x,g.y,T,E,v,y,b,t,f,a),e.iconVertexRanges.length>0&&e.iconVertexRanges[0][0]+e.iconVertexRanges[0][1]===D?e.iconVertexRanges[0][1]+=4:e.iconVertexRanges.push([D,4]),l.add(S,S+1,S+2),l.add(S+1,S+2,S+3),u.has(r)?u.get(r)[1]+=6:u.set(r,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){let e=this._textVertexBuffer,t=this._textIndexBuffer,n=this._glyphMap;for(let[r,i]of this._glyphBufferDataStorage)for(let a of i){let i=e.index,o=a.symbolInstance,s=a.ddAttributes,c=e.index;e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.tl[0],a.tl[1],a.xmin,a.ymin,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,s),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.tr[0],a.tr[1],a.xmax,a.ymin,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,s),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.bl[0],a.bl[1],a.xmin,a.ymax,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,s),e.add(a.glyphAnchor[0],a.glyphAnchor[1],a.br[0],a.br[1],a.xmax,a.ymax,a.labelAngle,a.minAngle,a.maxAngle,a.minLod,a.maxLod,s),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===c?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([c,4]),t.add(i,i+1,i+2),t.add(i+1,i+2,i+3),n.has(r)?n.get(r)[1]+=6:n.set(r,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(e,t,n,r,i){let a=Math.max(n-1,0),o=r===1,c,l,u,d,f,p,m,h,g,_,v;for(let r of t)c=o?0:Math.max(n+s(r.minzoom),a),l=o?25:Math.min(n+s(r.maxzoom),25),l<=c||(u=r.tl,d=r.tr,f=r.bl,p=r.br,m=r.labelAngle,h=r.minAngle,g=r.maxAngle,_=r.anchor,v=r.mosaicRect,this._glyphBufferDataStorage.has(r.page)||this._glyphBufferDataStorage.set(r.page,[]),this._glyphBufferDataStorage.get(r.page).push({glyphAnchor:[_.x,_.y],tl:[u.x,u.y],tr:[d.x,d.y],bl:[f.x,f.y],br:[p.x,p.y],xmin:v.x,ymin:v.y,xmax:v.x+v.width,ymax:v.y+v.height,labelAngle:m,minAngle:h,maxAngle:g,minLod:c,maxLod:l,placementLod:a,symbolInstance:e,ddAttributes:i}))}static _pushAnchors(e,t,n,i){n+=i;let a=0,o=t.length-1;for(let e=0;e<o;e++)a+=r.distance(t[e],t[e+1]);let s=i||n;if(s*=.5,a<=s)return;let u=s/a;n=a/Math.max(Math.round(a/n),1);let d=0,f=-n/2,p=t.length-1;for(let r=0;r<p;r++){let i=t[r],a=t[r+1],o=a.x-i.x,s=a.y-i.y,p=Math.sqrt(o*o+s*s),m;for(;f+n<d+p;){f+=n;let t=(f-d)/p,h=c(i.x,a.x,t),g=c(i.y,a.y,t);m===void 0&&(m=Math.atan2(s,o)),e.push(new l(h,g,m,r,u))}d+=p}}static _pushCenterAnchor(e,t){let n=0,i=t.length-1;for(let e=0;e<i;e++)n+=r.distance(t[e],t[e+1]);let a=n/2,o=0,s=t.length-1;for(let n=0;n<s;n++){let r=t[n],i=t[n+1],s=i.x-r.x,u=i.y-r.y,d=Math.sqrt(s*s+u*u);if(a<o+d){let t=(a-o)/d,f=c(r.x,i.x,t),p=c(r.y,i.y,t),m=Math.atan2(u,s);e.push(new l(f,p,m,n,0));return}o+=d}}static _deviation(e,t,n){let r=(t.x-e.x)*(n.x-t.x)+(t.y-e.y)*(n.y-t.y),i=(t.x-e.x)*(n.y-t.y)-(t.y-e.y)*(n.x-t.x);return Math.atan2(i,r)}static _honorsTextMaxAngle(e,t,n,i,a){let o=0,s=n/2,c=new r(t.x,t.y),l=t.segment+1;for(;o>-s;){if(--l,l<0)return!1;o-=r.distance(e[l],c),c=e[l]}o+=r.distance(e[l],e[l+1]);let u=[],d=0,f=e.length;for(;o<s;){let t=e[l],n=l,s;do{if(++n,n===f)return!1;s=e[n]}while(s.isEqual(t));let c=n,p;do{if(++c,c===f)return!1;p=e[c]}while(p.isEqual(s));let m=this._deviation(t,s,p);for(u.push({deviation:m,distToAnchor:o}),d+=m;o-u[0].distToAnchor>a;)d-=u.shift().deviation;if(Math.abs(d)>i)return!1;o+=r.distance(s,p),l=n}return!0}static _smoothVertices(e,t){if(t<=0)return e;let n=e.length;if(n<3)return e;let i=[],a=0,o=0;i.push(0);for(let t=1;t<n;t++){let n=r.distance(e[t],e[t-1]);n>0&&(a+=n,i.push(a),o++,o!==t&&(e[o]=e[t]))}if(n=o+1,n<3)return e;t=Math.min(t,.2*a);let s=e[0].x,c=e[0].y,l=e[n-1].x,u=e[n-1].y,d=r.sub(e[0],e[1]);d.normalize(),e[0].x+=t*d.x,e[0].y+=t*d.y,d.assignSub(e[n-1],e[n-2]),d.normalize(),e[n-1].x+=t*d.x,e[n-1].y+=t*d.y,i[0]-=t,i[n-1]+=t;let f=[];f.push(new r(s,c));let p=1e-6,m=.5*t;for(let a=1;a<n-1;a++){let o=0,s=0,c=0;for(let n=a-1;n>=0;n--){let r=m+i[n+1]-i[a];if(r<0)break;let l=i[n+1]-i[n],u=i[a]-i[n]<m?1:r/l;if(u<p)break;let d=u*u,f=u*r-.5*d*l,h=u*l/t,g=e[n+1],_=e[n].x-g.x,v=e[n].y-g.y;o+=h/f*(g.x*u*r+.5*d*(r*_-l*g.x)-d*u*l*_/3),s+=h/f*(g.y*u*r+.5*d*(r*v-l*g.y)-d*u*l*v/3),c+=h}for(let r=a+1;r<n;r++){let n=m-i[r-1]+i[a];if(n<0)break;let l=i[r]-i[r-1],u=i[r]-i[a]<m?1:n/l;if(u<p)break;let d=u*u,f=u*n-.5*d*l,h=u*l/t,g=e[r-1],_=e[r].x-g.x,v=e[r].y-g.y;o+=h/f*(g.x*u*n+.5*d*(n*_-l*g.x)-d*u*l*_/3),s+=h/f*(g.y*u*n+.5*d*(n*v-l*g.y)-d*u*l*v/3),c+=h}f.push(new r(o/c,s/c))}return f.push(new r(l,u)),e[0].x=s,e[0].y=c,e[n-1].x=l,e[n-1].y=u,f}static _getPlacementCandidates(e,t,n,r){if(t!==0||n.type!==3||e.sourceType!==`geojson`)return r.map(e=>({anchor:null,vertices:e}));let i=u(r);return i?[{anchor:new l(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(e,t){let n=a,r=a,i=t.length-1,o=0,s=0,c=0,u=t[0].x,d=t[0].y;u>n&&(u=n),u<0&&(u=0),d>r&&(d=r),d<0&&(d=0);for(let e=1;e<i;e++){let i=t[e].x,a=t[e].y,l=t[e+1].x,f=t[e+1].y;i>n&&(i=n),i<0&&(i=0),a>r&&(a=r),a<0&&(a=0),l>n&&(l=n),l<0&&(l=0),f>r&&(f=r),f<0&&(f=0);let p=(i-u)*(f-d)-(l-u)*(a-d);o+=p*(u+i+l),s+=p*(d+a+f),c+=p}o/=3*c,s/=3*c,!isNaN(o)&&!isNaN(s)&&e.push(new l(o,s))}}export{_ as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{DataType as e}from"../../../../webgl/enums.js";import{fromLayouts as t,fromLayout as n}from"../../../../webgl/VertexAttributeLocations.js";import{VertexElementDescriptor as r}from"../../../../webgl/VertexElementDescriptor.js";import{i8888to32 as i}from"../../webgl/number.js";import{sortByAlignment as a}from"../../webgl/shaderGraph/techniques/mesh/AlignedVertexSpec.js";class o{constructor(e){this._precisionFactors={},this._key=e}get key(){return this._key}get type(){return this._key&7}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(e,t,n,r){let i=this.propertyInfos,a=this.getEncodingInfos(),o=[],s=Math.ceil(this._ddStrideInBytes/4);for(let e=0;e<s;e++)o.push(0);for(let s of Object.keys(a)){let c=a[s],{type:l,precisionFactor:u,isLayout:d}=i[s],f=d?n.getLayoutProperty(s):n.getPaintProperty(s),p=f.interpolator?.getInterpolationRange(t),m=0;for(let n of c){let{offset:i}=n,a=Math.floor(i/4),s=i%4*8,c=r!=null&&(l===11||l===12)?r:f.getValue(p?p[m]:t,e),d=u||1;switch(l){case 0:case 1:o[a]|=this._encodeByte(c*d,0)<<s;break;case 2:case 3:o[a]|=this._encodeShort(c*d,0)<<s;break;case 4:case 5:{let e=this._encodeByte(c*d,0),t=this._encodeByte(c*d,8);o[a]|=e<<s,o[a]|=t<<s}break;case 6:case 7:o[a]|=this._encodeShort(c*d,0),o[a]|=this._encodeShort(c*d,16);break;case 8:case 9:o[a]|=this._encodeByte(c*d,0),o[a]|=this._encodeByte(c*d,8),o[a]|=this._encodeByte(c*d,16),o[a]|=this._encodeByte(c*d,24);break;case 10:o[a]=this._encodeColor(c);break;case 11:case 12:this._encodePattern(a,o,c);break;default:throw Error(`Unsupported encoding type`)}m++}}return o}getAtributeState(e){let t=0,n=3+2*e;return t|=this._bit(n),t|=this._bit(n+1)<<1
|
|
2
|
+
import{DataType as e}from"../../../../webgl/enums.js";import{fromLayouts as t,fromLayout as n}from"../../../../webgl/VertexAttributeLocations.js";import{VertexElementDescriptor as r}from"../../../../webgl/VertexElementDescriptor.js";import{i8888to32 as i}from"../../webgl/number.js";import{sortByAlignment as a}from"../../webgl/shaderGraph/techniques/mesh/AlignedVertexSpec.js";class o{constructor(e){this._precisionFactors={},this._key=e}get key(){return this._key}get type(){return this._key&7}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(e,t,n,r){let i=this.propertyInfos,a=this.getEncodingInfos(),o=[],s=Math.ceil(this._ddStrideInBytes/4);for(let e=0;e<s;e++)o.push(0);for(let s of Object.keys(a)){let c=a[s],{type:l,precisionFactor:u,isLayout:d}=i[s],f=d?n.getLayoutProperty(s):n.getPaintProperty(s),p=f.interpolator?.getInterpolationRange(t),m=0;for(let n of c){let{offset:i}=n,a=Math.floor(i/4),s=i%4*8,c=r!=null&&(l===11||l===12)?r:f.getValue(p?p[m]:t,e),d=u||1;switch(l){case 0:case 1:o[a]|=this._encodeByte(c*d,0)<<s;break;case 2:case 3:o[a]|=this._encodeShort(c*d,0)<<s;break;case 4:case 5:{let e=this._encodeByte(c*d,0),t=this._encodeByte(c*d,8);o[a]|=e<<s,o[a]|=t<<s}break;case 6:case 7:o[a]|=this._encodeShort(c*d,0),o[a]|=this._encodeShort(c*d,16);break;case 8:case 9:o[a]|=this._encodeByte(c*d,0),o[a]|=this._encodeByte(c*d,8),o[a]|=this._encodeByte(c*d,16),o[a]|=this._encodeByte(c*d,24);break;case 10:o[a]=this._encodeColor(c);break;case 11:case 12:this._encodePattern(a,o,c);break;default:throw Error(`Unsupported encoding type`)}m++}}return o}getAtributeState(e){let t=0,n=3+2*e;return t|=this._bit(n),t|=this._bit(n+1)<<1}static{this._encodingInfo={0:{dataType:e.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:e.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:e.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:e.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:e.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:e.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:e.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:e.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:e.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:e.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:e.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:e.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:e.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(e,t,n){let r=n[e],i=r.name,{count:a,dataType:s,normalized:c}=o._encodingInfo[r.type],{attribueIdx:l,precisionFactor:u}=r,d=u||1,f=[{location:l[0],name:i,propertyName:e,count:a,type:s,normalized:c,precisionFactor:d}];if(this._precisionFactors[i]=d,t===2){let t=`${i}To`;f.push({location:l[1],name:t,propertyName:e,count:a,type:s,normalized:c,precisionFactor:d}),this._precisionFactors[t]=d}return f}_buildMaterialInfo(){let e=[];this._propertyEncodingInfo={};let t={},n=this.properties,r=this.propertyInfos,i=-1;for(let a of n){i++;let n=r[a].name;t[n]=!1,t[`${n}To`]=!1;let o=this.getAtributeState(i);if(o===0||o===3)continue;let s=this._getLayoutElementsForPropertyState(a,o,r);e.push(...s)}for(let n of e)t[n.name]=!0;let a=l(e);this._buildLayout(a),this._buildShaderUniforms(),this._usedAttributes=t}_buildLayout(e){this._locations=this.opacityLayout?t([this.baseGeometryLayout,this.opacityLayout]):n(this.baseGeometryLayout);let i=this.baseGeometryLayout,a=i[0].stride,o=[],l=0;for(let t of e)l+=s(t.type)*t.count;a=c(a+l);for(let e of i)o.push(new r(e.name,e.count,e.type,e.offset,a,e.normalized));let u=0;for(let t of e)o.push(new r(t.name,t.count,t.type,i[0].stride+u,a,t.normalized)),this._propertyEncodingInfo[t.propertyName]===void 0&&(this._propertyEncodingInfo[t.propertyName]=[]),this._propertyEncodingInfo[t.propertyName].push({offset:u}),u+=s(t.type)*t.count;this._ddStrideInBytes=u,this._geometryLayout=o;let d=this._locations;for(let t of e)d.set(t.name,t.location);this._stride=a}_buildShaderUniforms(){let e=[],t=this.properties,n=this.propertyInfos,r=-1;for(let i of t){r++;let{name:t,type:a,isLayout:o}=n[i];switch(this.getAtributeState(r)){case 0:e.push({name:t,getValue:(e,t,n,r)=>{let s=o?e.getLayoutValue(i,t):e.getPaintValue(i,t);switch(a){case 11:{let n=e.getDashKey(s,e.getLayoutValue(`line-cap`,t)),i=r.getMosaicItemPosition(n,!1);if(i==null)return null;let{tl:a,br:o}=i;return[a[0],o[1],o[0],a[1]]}case 12:{let e=r.getMosaicItemPosition(s,!i.includes(`line-`));if(e==null)return null;let{tl:t,br:n}=e;return[t[0],n[1],n[0],t[1]]}case 10:{let e=s[3];return[e*s[0],e*s[1],e*s[2],e]}default:return s}}});break;case 2:{let n=`${t}Mix`;e.push({name:n,getValue:(e,t,n,r)=>(o?e.getLayoutProperty(i):e.getPaintProperty(i)).interpolator.interpolationUniformValue(n,t)})}}}this._uniforms=e}_bit(e){return(this._key&1<<e)>>e}_encodeColor(e){let t=e[3]*255;return i(e[0]*t,e[1]*t,e[2]*t,t)}_encodePattern(e,t,n){if(!n?.rect)return;let r=n.rect,i=n.width,a=n.height;t[e]=this._encodeShort(r.x+2,0),t[e]|=this._encodeShort(r.y+2+a,16),t[e+1]=this._encodeShort(r.x+2+i,0),t[e+1]|=this._encodeShort(r.y+2,16)}_encodeByte(e,t){return(e&255)<<t}_encodeShort(e,t){return(e&65535)<<t}}const s=t=>{switch(t){case e.FLOAT:case e.INT:case e.UNSIGNED_INT:return 4;case e.SHORT:case e.UNSIGNED_SHORT:case e.HALF_FLOAT:return 2;case e.BYTE:case e.UNSIGNED_BYTE:return 1}},c=e=>e+3&-4;function l(e){let t=a(e),n=[],r=0;for(let e of t)n.push({...e,offset:r}),r+=s(e.type)*e.count;return n}export{o as VTLMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{bidiText as e}from"../../../../core/BidiText.js";import{getFullyQualifiedFontName as t}from"../../../../core/fontUtils.js";import has from"../../../../core/has.js";import n from"../../../../core/Logger.js";import{ignoreAbortErrors as r,throwIfNotAbortError as i}from"../../../../core/promiseUtils.js";import{loadTextModule as a}from"../../../../libs/librust-text/loadTextModule.js";import o from"../../../../request.js";import{parseRichTextRuns as s}from"../../../../symbols/cim/richTextUtils.js";import{decorGlyphRect as c}from"./decorGlyphRect.js";import{sdfRadiusComplex as l,sdfBufferGlyphSDFCreator as u,sdfSizeComplex as d,sdfBufferServer as f,sdfRadiusSimple as p,sdfSizeSimple as m}from"./definitions.js";import{GlyphSDFCreator as h}from"./GlyphSDFCreator.js";import g from"./GlyphSource.js";import{createTextureKey as _}from"./materialKeyUtils.js";import v from"./Rect.js";import y from"./RectangleBinPack.js";const b=`arial-unicode-ms-regular`,x=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,S=new Set([`Noto Sans Khmer`,`Noto Sans Lao`,`Noto Sans Myanmar`,`Noto Sans Thai`]),C=()=>n.getLogger(`esri.views.MapView`),w=(e,t=``)=>C().warnOnce(e,t);class T{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new h({sdfSizePx:d,sdfBufferPx:u,radius:l,cutoff:.25})}set remoteClient(e){this._client=e.createInvokeProxy();let t=r(this._client.getOptions());this._inited=this._init(t)}async rasterizeText(e,t,n){await this._inited;let r=t.symbol?s(t):null;return r?{type:`rich-glyphs`,runs:(await Promise.all(r.map(async t=>({fontSize:t.fontSize,characterSpacing:t.characterSpacing,decoration:t.font.decoration,color:t.color,glyphs:await this._rasterizeTextRun(e,t.font,t.text,n)})))).filter(e=>e.glyphs!=null)}:this._rasterizeTextRun(e,t.font,t.textString,n)}async _rasterizeTextRun(e,n,r,i){let a=t(n),o=this._invalidFonts.has(a),s=!!has(`esri-2d-force-complex-shaping`),c=!!has(`esri-2d-complex-shaping`)&&x.test(r),l=S.has(n.family),u=s||c||l,d=o?b:a,f=await this.getGlyphItems(r,u,e,d,!1,i);return f||=(w(`Font ${a} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(a),await this.getGlyphItems(r,u,e,b,!1,i))
|
|
2
|
+
import{bidiText as e}from"../../../../core/BidiText.js";import{getFullyQualifiedFontName as t}from"../../../../core/fontUtils.js";import has from"../../../../core/has.js";import n from"../../../../core/Logger.js";import{ignoreAbortErrors as r,throwIfNotAbortError as i}from"../../../../core/promiseUtils.js";import{loadTextModule as a}from"../../../../libs/librust-text/loadTextModule.js";import o from"../../../../request.js";import{parseRichTextRuns as s}from"../../../../symbols/cim/richTextUtils.js";import{decorGlyphRect as c}from"./decorGlyphRect.js";import{sdfRadiusComplex as l,sdfBufferGlyphSDFCreator as u,sdfSizeComplex as d,sdfBufferServer as f,sdfRadiusSimple as p,sdfSizeSimple as m}from"./definitions.js";import{GlyphSDFCreator as h}from"./GlyphSDFCreator.js";import g from"./GlyphSource.js";import{createTextureKey as _}from"./materialKeyUtils.js";import v from"./Rect.js";import y from"./RectangleBinPack.js";const b=`arial-unicode-ms-regular`,x=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,S=new Set([`Noto Sans Khmer`,`Noto Sans Lao`,`Noto Sans Myanmar`,`Noto Sans Thai`]),C=()=>n.getLogger(`esri.views.MapView`),w=(e,t=``)=>C().warnOnce(e,t);class T{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new h({sdfSizePx:d,sdfBufferPx:u,radius:l,cutoff:.25})}set remoteClient(e){this._client=e.createInvokeProxy();let t=r(this._client.getOptions());this._inited=this._init(t)}async rasterizeText(e,t,n){await this._inited;let r=t.symbol?s(t):null;return r?{type:`rich-glyphs`,runs:(await Promise.all(r.map(async t=>({fontSize:t.fontSize,characterSpacing:t.characterSpacing,decoration:t.font.decoration,color:t.color,glyphs:await this._rasterizeTextRun(e,t.font,t.text,n)})))).filter(e=>e.glyphs!=null)}:this._rasterizeTextRun(e,t.font,t.textString,n)}async _rasterizeTextRun(e,n,r,i){let a=t(n),o=this._invalidFonts.has(a),s=!!has(`esri-2d-force-complex-shaping`),c=!!has(`esri-2d-complex-shaping`)&&x.test(r),l=S.has(n.family),u=s||c||l,d=o?b:a,f=await this.getGlyphItems(r,u,e,d,!1,i);return f||=(w(`Font ${a} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(a),await this.getGlyphItems(r,u,e,b,!1,i))}async getGlyphItems(t,n,r,i,a,o){await this._inited;let s=this._getSource(r),c=n?d:m,h=n?l:p,g=n?u:f,_,v,y;if(has(`esri-2d-stabilize-glyphs`)&&await this.preloadASCIIGlyphCache(s,i).catch(()=>{}),n){let e=await this._getFace(s,i);if(!e)return null;let n=this._glyphCache.get(i);n||(n=new Map,this._glyphCache.set(i,n));let{shaping:r,isRTL:a}=this._shape(e,t);y=a,_=r.map(t=>this._getShapedGlyph(e,n,t)),v={baseline:e.baseline()/c,midline:e.midline()/c}}else{let n=this._pbfGlyphCache.get(i);n||(n=new Map,this._pbfGlyphCache.set(i,n));let[r,c,l]=e(t),u=k(r);try{await this._fetchRanges(s,i,u,o)}catch{return null}y=c,_=u.map(e=>this._getPBFGlyph(n,s,i,e,a)).filter(e=>!!e)}let b=_.filter(e=>e.needsRecord);return b.length>0&&await this._client.recordGlyphs(b),{type:`glyphs`,glyphs:_,faceInfo:v,isRightToLeft:y,sdfSize:c,sdfRadius:h,sdfPadding:g}}async _init(e){let t=await e;if(!t)return;let{width:n,height:r,snapCoords:i}=t;this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._binPack=new y(n,r),this._snapCoords=i,this._currentPage=0,this._initDecorationGlyphs()}_getShapedGlyph(e,t,n){let r,i,a=t.get(n.glyphId);if(!a){r=this._glyphSDFCreator.draw(e,n.glyphId);let o=this._glyphSDFCreator.sdfBufferPx;a={mosaicItem:{rect:this._recordGlyph(r?.rect,o),page:this._currentPage,sdf:!0,textureKey:_(1,this._currentPage,!0)},glyphRect:r?.rect??{width:0,height:0,top:0,left:0}},t.set(n.glyphId,a),i=!0}return{mosaicItem:a.mosaicItem,rect:a.glyphRect,shaping:{xAdvance:n.xAdvance,yAdvance:n.yAdvance,xOffset:n.xOffset,yOffset:n.yOffset},code:n.isNewline?10:n.isWhitespace?32:NaN,sdf:r,needsRecord:i}}_getPBFGlyph(e,t,n,r,i=!1){let a,o,s=e.get(r);if(!s){let c=t.getRange(n,r),l=c?.getRect(r),d=c?.getShaping(r),f=c?.getBitmap(r);if(i&&(!l||!d))return;if(!l||!d)return O(r);let p={rect:f?this._recordGlyph(l,u):new v(0,0,0,0),sdf:!0,page:this._currentPage,textureKey:_(1,this._currentPage,!0)};a=f&&{buffer:f,rect:l},s={mosaicItem:p,rect:l,shaping:d,code:r},o=!0,e.set(r,s)}let{mosaicItem:c,rect:l,shaping:d}=s;return{mosaicItem:c,rect:l,shaping:d,code:r,sdf:a,needsRecord:o}}_shape(t,n){let r=this._glyphSDFCreator.sdfSizePx,[i,a,o]=e(n,!1),s=new Uint32Array(Array.from(i).map((e,t)=>o.levels[o.targetToSource[t]]));return{shaping:t.shape(i,s,r),isRTL:a}}async _getFace(e,t,n){if(this._faces.has(t))return this._faces.get(t);let r=e.woffURL(t);return await D(this._facePromises,t,async()=>{let e=await o(r,{responseType:`array-buffer`,...n}),i=(await a()).Face.parseWoff2(new Uint8Array(e.data));this._faces.set(t,i)}),this._faces.get(t)}_getSource(e){return this._glyphSources.has(e)||this._glyphSources.set(e,new g(e)),this._glyphSources.get(e)}async _fetchRanges(e,t,n,r){let i=E(n),a=[];i.forEach(n=>{a.push(this._fetchRange(e,t,n,r))}),await Promise.all(a)}async _fetchRange(e,t,n,r){if(n>256)return;let i=t+n;return D(this._pbfRangePromises,i,()=>e.fetchRange(t,n,r))}_allocNewPage(){this._currentPage++,this._binPack=new y(this._binPack.width,this._binPack.height),this._initDecorationGlyphs()}_recordGlyph(e,t){let n=this._binPack;if(!e||e.width===0)return new v;let r=e.width+t*2,i=e.height+t*2,a=r,o=i;if(this._snapCoords){let e=r%4?4-r%4:4,t=i%4?4-i%4:4;a+=e,o+=t}let s=n.allocate(a,o);return s.isEmpty?(this._allocNewPage(),n.allocate(a,o)):s}_initDecorationGlyphs(){this._recordGlyph(c,f),this._recordGlyph(c,f)}preloadASCIIGlyphCache(e,t){let n=this._preloadCache[t];if(n!=null)return n;let r=e.preloadASCIIRange(t).then(async()=>{let n=this._pbfGlyphCache.get(t);n||(n=new Map,this._pbfGlyphCache.set(t,n));let r=[];for(let i=0;i<256;i++){let a=this._getPBFGlyph(n,e,t,i);a?.needsRecord&&r.push(a)}await this._client.recordGlyphs(r)},e=>{throw delete this._preloadCache[t],e});return this._preloadCache[t]=r,r}}function E(e){let t=new Set;for(let n of e)t.add(Math.floor(n/256));return t}function D(e,t,n){return e.has(t)||e.set(t,n().finally(()=>{e.delete(t)}).catch(e=>{i(e)})),e.get(t)}const O=e=>({mosaicItem:{rect:new v(0,0,0,0),sdf:!0,page:0,textureKey:_(1,0,!0)},rect:{left:0,width:0,height:0,top:0},shaping:{xAdvance:0,yAdvance:0,xOffset:0,yOffset:0},code:e,needsRecord:!0});function k(e){let t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}export{T as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{destroyMaybe as e}from"../../../../../core/maybe.js";import{i1616to32 as t}from"../number.js";import{unpackDataView as n}from"../shaderGraph/techniques/mesh/dataViewUtils.js";import{CpuBuffer as r}from"./CpuBuffer.js";const i=1e3;class a{constructor(e){if(this._layout=e,this._position=this._layout.attributes.find(e=>e.name===`pos`||e.name===`position`),this._id=this._layout.attributes.find(e=>e.name===`id`&&e.count===3),!this._position||!this._id)throw Error(`InternalError: Unable to find required mesh attributes`);let t=this._layout.stride/Uint32Array.BYTES_PER_ELEMENT;this._indexBuffer=new r(`index`,i,1),this._vertexBuffer=new r(`vertex`,i,t)}destroy(){this._indexBuffer=e(this._indexBuffer),this._vertexBuffer=e(this._vertexBuffer)}get layout(){return this._layout}get usedMemory(){let e=0;return e+=this._indexBuffer.usedMemory,e+=this._vertexBuffer.usedMemory
|
|
2
|
+
import{destroyMaybe as e}from"../../../../../core/maybe.js";import{i1616to32 as t}from"../number.js";import{unpackDataView as n}from"../shaderGraph/techniques/mesh/dataViewUtils.js";import{CpuBuffer as r}from"./CpuBuffer.js";const i=1e3;class a{constructor(e){if(this._layout=e,this._position=this._layout.attributes.find(e=>e.name===`pos`||e.name===`position`),this._id=this._layout.attributes.find(e=>e.name===`id`&&e.count===3),!this._position||!this._id)throw Error(`InternalError: Unable to find required mesh attributes`);let t=this._layout.stride/Uint32Array.BYTES_PER_ELEMENT;this._indexBuffer=new r(`index`,i,1),this._vertexBuffer=new r(`vertex`,i,t)}destroy(){this._indexBuffer=e(this._indexBuffer),this._vertexBuffer=e(this._vertexBuffer)}get layout(){return this._layout}get usedMemory(){let e=0;return e+=this._indexBuffer.usedMemory,e+=this._vertexBuffer.usedMemory}get memoryStats(){return{bytesUsed:this._vertexBuffer.memoryStats.bytesUsed+this._indexBuffer.memoryStats.bytesUsed,bytesReserved:this._vertexBuffer.memoryStats.bytesReserved+this._indexBuffer.memoryStats.bytesReserved,vertex:this._vertexBuffer.memoryStats,index:this._indexBuffer.memoryStats}}get vertexBuffer(){return this._vertexBuffer}get indexBuffer(){return this._indexBuffer}getAttributePrecisionPackFactors(){let e={};for(let t of this.layout.attributes)t.packPrecisionFactor&&(e[t.name]=t.packPrecisionFactor);return e}getDebugVertexInfo(e=!1,t){let r=this._layout,i=r.stride,a=this._vertexBuffer.getView(0,this._vertexBuffer.byteSize),o=this._createComputeDebugAttributes(e,t),s=new DataView(a.slice().buffer),c=a.byteLength/i;e&&(c=this._indexBuffer.fillPointer/3);let l=this._indexBuffer.getView(0,this._indexBuffer.byteSize),u=0,d=[];for(let t=0;t<c;t++){let a=t;e&&(a=l[t*3],u=a*i);let c={};for(let e of[...r.attributes,...o]){let t=`${e.offset} ${e.name}`,r=n(s,e,u);if(e.packPrecisionFactor){if(t+=` (precision: ${e.packPrecisionFactor})`,typeof r==`number`)c[t]=r/e.packPrecisionFactor;else{let n=[...r];for(let t=0;t<n.length;t++)n[t]/=e.packPrecisionFactor;c[t]=n}}else c[t]=r;if(e.name===`id`&&e.count===3&&Array.isArray(r)){let t=r[0]|r[1]<<8|r[2]<<16;c.id=e.packPrecisionFactor?t/e.packPrecisionFactor:t}}u+=i,d.push(c)}return{vertices:d,layout:r}}append(e){let t=e.layout.stride,n=e.indices.byteLength/Uint32Array.BYTES_PER_ELEMENT,r=e.vertices.byteLength/t;this._ensure(n,r);let{vertices:i,indices:a}=e,o=this._vertexBuffer.insert(i,0,i.byteLength/t,0);return{vertexFrom:o,indexFrom:this._indexBuffer.insert(a,0,a.byteLength/4,o)}}setRecordLabelId(e,t,n){let{recordStart:r,recordCount:i}=t;if(r+i>e.length)throw Error(`InternalError: label record range is out of bounds`);for(let t=r;t<r+i;t++){let{vertexStart:r,vertexCount:i}=e[t];this._vertexBuffer.setU24StrideRange(r,r+i,this._id.offset,n)}}getRecordId(e){let t=e.vertexStart*this._vertexBuffer.strideInt+this._id.offset/Uint32Array.BYTES_PER_ELEMENT;return this._vertexBuffer.array[t]&0xffffff}copyRecordFrom(e,n,r,i){let{indexStart:a,indexCount:o,vertexStart:s,vertexCount:c}=n;this._ensure(o,c);let l=e._position,u=r*(l.packPrecisionFactor??1),d=i*(l.packPrecisionFactor??1),f=l.offset,p=t(u,d),m=this._vertexBuffer.copyFrom(e._vertexBuffer,s,c,p,f),h=this._indexBuffer.copyFrom(e._indexBuffer,a,o,m-s,0),g=n.clone();return g.vertexStart=m,g.indexStart=h,g.overlaps=0,g}remove(e,t,n,r){this._indexBuffer.free(e,t),this._vertexBuffer.free(n,r)}reshuffle(e){this._vertexBuffer.reshuffle(e.vertex.count,e.vertex.operations),this._indexBuffer.reshuffle(e.index.count,e.index.operations)}_createComputeDebugAttributes(e,t){let n=[];if(!e)return n;if(t==null)return console.log(`must provide location info to see compute attributes`),n;for(let e of this._layout.attributes){let r=t.computeAttributeMap[e.name];r!=null&&r.length===2&&(n.push({...e,name:r[0],offset:e.offset+this._layout.stride}),n.push({...e,name:r[1],offset:e.offset+2*this._layout.stride}))}return n}_ensure(e,t){this._indexBuffer.ensure(Math.max(e,i)),this._vertexBuffer.ensure(Math.max(t,i))}}export{a as CpuMeshData};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{maxHighlightGroups as t}from"../../../definitions.js";import{Vec3 as n,Float as r,Vec2 as i,Sampler2D as a,float as o,step as s,Vec4 as c,equal as l,ifElse as u,or as d,texture2D as f,and as p,notEqual as m,textureSize as h,Int as g,mod as _}from"../../graph/glsl.js";import{location as v,define as y,option as b,uniform as x,texture as S,VertexInput as C,ComputeVertexInput as w,GraphShaderModule as T,FragmentOutput as E,FragmentInput as D}from"../../GraphShaderModule.js";import{trueHit as O,candidateHit as k,noHit as A,bitsetGenericLabelInstance as j,bitsetTextIsMapAligned as M}from"./constants.js";import{EntityStorage as N,EntityStorageTextures as P}from"./EntityStorage.js";import{ShaderHighlight as F}from"./ShaderHighlight.js";import{ShaderHittest as I}from"./ShaderHittest.js";import{Tile as L}from"./Tile.js";import{TileInfo as R}from"./TileInfo.js";import{getFilterBit as z,getHighlightBit as B,getBit as V,uvToClip as H,unpackDisplayIdTexel as U}from"./utils.js";import{ViewInfo as W}from"./ViewInfo.js";class G extends C{}e([v(0,n)],G.prototype,`id`,void 0),e([v(1,r)],G.prototype,`bitset`,void 0),e([v(2,i)],G.prototype,`pos`,void 0);class K extends w{}e([v(14,i)],K.prototype,`nextPos1`,void 0),e([v(15,i)],K.prototype,`nextPos2`,void 0);class q extends D{}class J extends T{clip(e,t=new r(0),n){let i=new r(0),a=this.getFeatureId(e,t),c=this.getFilterFlags(a);if(i=i.add(o(2).multiply(o(1).subtract(z(c,0)))),this.inside?i=i.add(o(2).multiply(o(1).subtract(z(c,1)))):this.outside?i=i.add(o(2).multiply(z(c,1))):this.highlight&&(i=i.add(o(2).multiply(o(1).subtract(this._checkHighlight(c))))),n!=null){let e=new r(1).subtract(s(n.x,this.tileInfo.currentZoom)),t=s(n.y,this.tileInfo.currentZoom);i=i.add(new r(2).multiply(e.add(t)))}return i=i.add(new r(2).multiply(this.getLabelHidden(e,t)))
|
|
2
|
+
import{__decorate as e}from"tslib";import{maxHighlightGroups as t}from"../../../definitions.js";import{Vec3 as n,Float as r,Vec2 as i,Sampler2D as a,float as o,step as s,Vec4 as c,equal as l,ifElse as u,or as d,texture2D as f,and as p,notEqual as m,textureSize as h,Int as g,mod as _}from"../../graph/glsl.js";import{location as v,define as y,option as b,uniform as x,texture as S,VertexInput as C,ComputeVertexInput as w,GraphShaderModule as T,FragmentOutput as E,FragmentInput as D}from"../../GraphShaderModule.js";import{trueHit as O,candidateHit as k,noHit as A,bitsetGenericLabelInstance as j,bitsetTextIsMapAligned as M}from"./constants.js";import{EntityStorage as N,EntityStorageTextures as P}from"./EntityStorage.js";import{ShaderHighlight as F}from"./ShaderHighlight.js";import{ShaderHittest as I}from"./ShaderHittest.js";import{Tile as L}from"./Tile.js";import{TileInfo as R}from"./TileInfo.js";import{getFilterBit as z,getHighlightBit as B,getBit as V,uvToClip as H,unpackDisplayIdTexel as U}from"./utils.js";import{ViewInfo as W}from"./ViewInfo.js";class G extends C{}e([v(0,n)],G.prototype,`id`,void 0),e([v(1,r)],G.prototype,`bitset`,void 0),e([v(2,i)],G.prototype,`pos`,void 0);class K extends w{}e([v(14,i)],K.prototype,`nextPos1`,void 0),e([v(15,i)],K.prototype,`nextPos2`,void 0);class q extends D{}class J extends T{clip(e,t=new r(0),n){let i=new r(0),a=this.getFeatureId(e,t),c=this.getFilterFlags(a);if(i=i.add(o(2).multiply(o(1).subtract(z(c,0)))),this.inside?i=i.add(o(2).multiply(o(1).subtract(z(c,1)))):this.outside?i=i.add(o(2).multiply(z(c,1))):this.highlight&&(i=i.add(o(2).multiply(o(1).subtract(this._checkHighlight(c))))),n!=null){let e=new r(1).subtract(s(n.x,this.tileInfo.currentZoom)),t=s(n.y,this.tileInfo.currentZoom);i=i.add(new r(2).multiply(e.add(t)))}return i=i.add(new r(2).multiply(this.getLabelHidden(e,t)))}getFragmentOutput(e,t,n=new r(1/255)){let i=new E;return i.fragColor=this._maybeWriteHittest(t)??this._maybeHighlight(e,n)??e,i}_maybeHighlight(e,t){return this.highlight?new c(e.rgb,s(t,e.a)):null}_checkHighlight(e){let n=this._checkHighlightBit(e,0);for(let r=1;r<t;r++)n=n.add(this._checkHighlightBit(e,r));return s(new r(.1),n.add(this.highlight.highlightAll))}_checkHighlightBit(e,t){return B(e,t).multiply(V(this.highlight.activeGroups,t))}computeHittestTriangle(e,t,r){let i=this.tile.getViewScreenMat3(this.view),{nextPos1:a,nextPos2:o}=t,s=this.getCalloutPos(e.pos,e.id,e.bitset),c=this.getCalloutPos(a,e.id,e.bitset),l=this.getCalloutPos(o,e.id,e.bitset);return{pos0:i.multiply(new n(s,1)).xy,pos1:i.multiply(new n(c,1)).xy,pos2:i.multiply(new n(l,1)).xy}}maybeRunHittest(e,t,n){if(this.hittestRequest==null)return null;let i=this.hittest(e,t,n),a=l(i,new r(O)),o=l(i,new r(k)),s=u(o,()=>new c(new r(1/255),0,0,0),u(a,()=>new c(new r(2/255),0,0,0),new c(A))),f=u(d(a,o),new r(0),new r(2)),p=this.getAttributeDataCoords(this.getFeatureId(e.id,e.bitset)),m=H(p);return f=f.add(this.clip(e.id,e.bitset,e.zoomRange)),{glPointSize:new r(1),glPosition:new c(m,f,1),color:s}}_maybeWriteHittest(e){return this.hittestRequest==null?null:e.color}getAttributeDataCoords(e){return this.storage.getAttributeDataCoords(e)}getLabelReferenceSymbolVVOffset(e){return f(this.labelAnchorStoreTexture,this._getLabelStoreCoords(e)).zw}getFeatureId(e,t){let n=V(t,j);return u(l(n,new r(1)),()=>f(this.labelStoreTexture,this._getLabelStoreCoords(e)).rgb.multiply(255),e)}getScreenAnchor(e,t){let a=f(this.labelAnchorStoreTexture,this._getLabelStoreCoords(e)),o=this.tile.getViewScreenMat3(this.view).multiply(new n(a.xy,1)).xy;if(t){let e=l(t.x,new r(0)).and(l(t.y,new r(0)));o=o.add(u(e,new i(0),a.zw))}return o}getCalloutPos(e,t,n){return u(this.isLabelInstance(n),()=>this.getScreenAnchor(t,e).add(e),e)}getLabelTextPos(e,t,n){return u(this.isAnchoredLabel(n),()=>this.getScreenAnchor(t),e)}isLabelInstance(e){return l(V(e,j),new r(1))}isAnchoredLabel(e){return p(this.isLabelInstance(e),m(V(e,M),new r(1)))}getCalloutTransform(e){return u(e,this.view.displayMat3,this.tile.getDisplayViewScreenMat3(this.view))}getLabelHidden(e,t){return u(this.isLabelInstance(t),()=>f(this.labelStoreTexture,this._getLabelStoreCoords(e)).a,new r(0))}getVVData(e){return this.storageTextures.getVVData(this.getAttributeDataCoords(e))}getFilterFlags(e){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(e))}getLocalTimeOrigin(e){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(e))}getSizeValue(e){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(e))}getColorValue(e){return this.storageTextures.getColorValue(this.getAttributeDataCoords(e))}getOpacityValue(e){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(e))}getRotationValue(e){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(e))}_getLabelStoreCoords(e){let t=U(e),n=t.x,r=t.y.multiply(256),a=t.z.multiply(65536),s=n.add(r).add(a),c=o(h(this.labelStoreTexture,new g(0)).x),l=_(s,c),u=s.subtract(l).divide(c);return new i(l,u).add(.5).divide(c)}}e([y],J.prototype,`inside`,void 0),e([y],J.prototype,`outside`,void 0),e([b(F)],J.prototype,`highlight`,void 0),e([x(N)],J.prototype,`storage`,void 0),e([S(P)],J.prototype,`storageTextures`,void 0),e([S(a)],J.prototype,`labelStoreTexture`,void 0),e([S(a)],J.prototype,`labelAnchorStoreTexture`,void 0),e([S(a)],J.prototype,`hittestMaskTexture`,void 0),e([x(W)],J.prototype,`view`,void 0),e([x(R)],J.prototype,`tileInfo`,void 0),e([x(L)],J.prototype,`tile`,void 0),e([b(I)],J.prototype,`hittestRequest`,void 0);export{J as AFeatureShader,K as BaseHittestVertexInput,q as FeatureFragmentInput,G as FeatureVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{Vec2 as e,Float as t,fract as n,texture2D as r,mix as i,Vec4 as a}from"../../graph/glsl.js";function o(e){let n=new t(1/6),r=e.multiply(e),i=r.multiply(e),o=n.multiply(i.multiply(-1).add(new t(3).multiply(r)).subtract(new t(3).multiply(e)).add(1)),s=n.multiply(i.multiply(3).subtract(r.multiply(6)).add(4)),c=n.multiply(i.multiply(-3).add(r.multiply(3)).add(e.multiply(3)).add(1)),l=n.multiply(i);return new a(o,s,c,l)}function s(e){let n=o(e),r=n.x.add(n.y),i=n.z.add(n.w),s=new t(1).subtract(n.y.divide(r)).add(e),c=new t(1).add(n.w.divide(i)).subtract(e);return new a(s,c,r,i)}function c(a,o,c){let l=new e(new t(1).divide(c.x),0),u=new e(0,new t(1).divide(c.y)),d=o.multiply(c).subtract(.5),f=s(n(d).x).xyz,p=s(n(d).y).xyz,m=o.add(f.x.multiply(l)),h=o.subtract(f.y.multiply(l)),g=m.add(p.x.multiply(u)),_=h.add(p.x.multiply(u));m=m.subtract(p.y.multiply(u)),h=h.subtract(p.y.multiply(u));let v=r(a,h),y=r(a,m),b=r(a,_),x=r(a,g);return v=i(v,b,p.z),y=i(y,x,p.z),v=i(v,y,f.z)
|
|
2
|
+
import{Vec2 as e,Float as t,fract as n,texture2D as r,mix as i,Vec4 as a}from"../../graph/glsl.js";function o(e){let n=new t(1/6),r=e.multiply(e),i=r.multiply(e),o=n.multiply(i.multiply(-1).add(new t(3).multiply(r)).subtract(new t(3).multiply(e)).add(1)),s=n.multiply(i.multiply(3).subtract(r.multiply(6)).add(4)),c=n.multiply(i.multiply(-3).add(r.multiply(3)).add(e.multiply(3)).add(1)),l=n.multiply(i);return new a(o,s,c,l)}function s(e){let n=o(e),r=n.x.add(n.y),i=n.z.add(n.w),s=new t(1).subtract(n.y.divide(r)).add(e),c=new t(1).add(n.w.divide(i)).subtract(e);return new a(s,c,r,i)}function c(a,o,c){let l=new e(new t(1).divide(c.x),0),u=new e(0,new t(1).divide(c.y)),d=o.multiply(c).subtract(.5),f=s(n(d).x).xyz,p=s(n(d).y).xyz,m=o.add(f.x.multiply(l)),h=o.subtract(f.y.multiply(l)),g=m.add(p.x.multiply(u)),_=h.add(p.x.multiply(u));m=m.subtract(p.y.multiply(u)),h=h.subtract(p.y.multiply(u));let v=r(a,h),y=r(a,m),b=r(a,_),x=r(a,g);return v=i(v,b,p.z),y=i(y,x,p.z),v=i(v,y,f.z)}export{c as sampleBicubicBSpline};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{Float as t,texture2D as n,Vec2 as r,Vec4 as i,FixedArray as a,sqrt as o,dot as s,Vec3 as c,abs as l,step as u}from"../../../graph/glsl.js";import{uniform as d,UniformGroup as f}from"../../../GraphShaderModule.js";class p extends f{}e([d(a.ofType(t,6))],p.prototype,`sinZcosAs`,void 0),e([d(a.ofType(t,6))],p.prototype,`sinZsinAs`,void 0),e([d(a.ofType(t,6))],p.prototype,`cosZs`,void 0),e([d(a.ofType(t,6))],p.prototype,`weights`,void 0),e([d(t)],p.prototype,`minValue`,void 0),e([d(t)],p.prototype,`maxValue`,void 0),e([d(r)],p.prototype,`factor`,void 0);function m(e){let n=l(e),i=u(n,new r(1,1)).multiply(n),a=new t(2).subtract(n),o=u(new t(1),n).multiply(a);return i.add(o)}function h(e,o,s){let c=new t(1).divide(s),l=n(e,m(c.multiply(new r(-1,-1)).add(o))),u=n(e,m(c.multiply(new r(0,-1)).add(o))),d=n(e,m(c.multiply(new r(1,-1)).add(o))),f=n(e,m(c.multiply(new r(-1,0)).add(o))),p=n(e,m(o)),h=n(e,m(c.multiply(new r(1,0)).add(o))),g=n(e,m(c.multiply(new r(-1,1)).add(o))),_=n(e,m(c.multiply(new r(0,1)).add(o))),v=n(e,m(c.multiply(new r(1,1)).add(o))),y=new i(l.a,u.a,d.a,f.a),b=new i(h.a,g.a,_.a,v.a),x=y.multiply(b),S=x.xy.multiply(x.zw),C=S.x.multiply(S.y).multiply(p.a),w=new a(new t(0),10);return w=w.set(0,l.r),w=w.set(1,u.r),w=w.set(2,d.r),w=w.set(3,f.r),w=w.set(4,p.r),w=w.set(5,h.r),w=w.set(6,g.r),w=w.set(7,_.r),w=w.set(8,v.r),w=w.set(9,C)
|
|
2
|
+
import{__decorate as e}from"tslib";import{Float as t,texture2D as n,Vec2 as r,Vec4 as i,FixedArray as a,sqrt as o,dot as s,Vec3 as c,abs as l,step as u}from"../../../graph/glsl.js";import{uniform as d,UniformGroup as f}from"../../../GraphShaderModule.js";class p extends f{}e([d(a.ofType(t,6))],p.prototype,`sinZcosAs`,void 0),e([d(a.ofType(t,6))],p.prototype,`sinZsinAs`,void 0),e([d(a.ofType(t,6))],p.prototype,`cosZs`,void 0),e([d(a.ofType(t,6))],p.prototype,`weights`,void 0),e([d(t)],p.prototype,`minValue`,void 0),e([d(t)],p.prototype,`maxValue`,void 0),e([d(r)],p.prototype,`factor`,void 0);function m(e){let n=l(e),i=u(n,new r(1,1)).multiply(n),a=new t(2).subtract(n),o=u(new t(1),n).multiply(a);return i.add(o)}function h(e,o,s){let c=new t(1).divide(s),l=n(e,m(c.multiply(new r(-1,-1)).add(o))),u=n(e,m(c.multiply(new r(0,-1)).add(o))),d=n(e,m(c.multiply(new r(1,-1)).add(o))),f=n(e,m(c.multiply(new r(-1,0)).add(o))),p=n(e,m(o)),h=n(e,m(c.multiply(new r(1,0)).add(o))),g=n(e,m(c.multiply(new r(-1,1)).add(o))),_=n(e,m(c.multiply(new r(0,1)).add(o))),v=n(e,m(c.multiply(new r(1,1)).add(o))),y=new i(l.a,u.a,d.a,f.a),b=new i(h.a,g.a,_.a,v.a),x=y.multiply(b),S=x.xy.multiply(x.zw),C=S.x.multiply(S.y).multiply(p.a),w=new a(new t(0),10);return w=w.set(0,l.r),w=w.set(1,u.r),w=w.set(2,d.r),w=w.set(3,f.r),w=w.set(4,p.r),w=w.set(5,h.r),w=w.set(6,g.r),w=w.set(7,_.r),w=w.set(8,v.r),w=w.set(9,C)}function g(e,t){let n=new i(e.get(5),e.get(3),e.get(7),e.get(1)).multiply(2),a=new c(e.get(2),n[0],e.get(8)),o=new c(e.get(0),n[1],e.get(6)),l=s(a.subtract(o),new c(1)),u=new c(e.get(6),n[2],e.get(8)),d=new c(e.get(0),n[3],e.get(2)),f=s(u.subtract(d),new c(1));return new r(l,f).multiply(t)}function _(e,n,r){let{factor:a}=n,l=g(e,a),u=o(s(l,l).add(1)),d=e.get(9),{sinZsinAs:f,sinZcosAs:p,cosZs:m,weights:h}=n;if(!r){let e=v({sinZsinA:f.get(0),sinZcosA:p.get(0),cosZ:m.get(0),weights:new t(1),dzxy:l,dzd:u});return new i(e,e,e,d)}let _=v({sinZsinA:new c(f.get(0),f.get(1),f.get(2)),sinZcosA:new c(p.get(0),p.get(1),p.get(2)),cosZ:new c(m.get(0),m.get(1),m.get(2)),weights:new c(h.get(0),h.get(1),h.get(2)),dzxy:l,dzd:u}),y=v({sinZsinA:new c(f.get(3),f.get(4),f.get(5)),sinZcosA:new c(p.get(3),p.get(5),p.get(5)),cosZ:new c(m.get(3),m.get(4),m.get(5)),weights:new c(h.get(3),h.get(4),h.get(5)),dzxy:l,dzd:u}),b=s(_.add(y),new c(1));return new i(b,b,b,d)}function v(e){let n=e.sinZsinA.multiply(e.dzxy.y),r=e.sinZcosA.multiply(e.dzxy.x),i=n.subtract(r),a=e.cosZ.add(i).divide(e.dzd);return a.multiply(u(new t(0),a)).multiply(e.weights)}function y(e,t){let{pixelSizeFactor:n}=e,r=[e.factor[0]/t[0],e.factor[1]/t[1]];if(n>0){let{zFactor:i,pixelSizePower:a,gcsFactor:o}=e,s=t[0]*o,c=t[1]*o;r[0]=(i+s**a*n)/(8*s),r[1]=(i+c**a*n)/(8*c)}return r}export{p as HillshadeConfig,g as computeDeltaZ,y as computeZFactor,h as getSurfaceValues,_ as hillshade,m as mirror};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{maxHighlightGroups as e}from"../../../definitions.js";import{float as t,vec3 as n,mod as r,floor as i,equal as a,vec4 as o,dot as s,vec2 as c,fract as l,sin as u,greaterThan as d,max as f,Float as p,Vec4 as m,divide as h}from"../../graph/glsl.js";import{nanMagicNumber as g}from"./constants.js";function _(e){let n=t(12.9898),i=t(78.233),a=t(43758.5453),o=s(e,c(n,i)),d=r(o,t(3.14));return l(u(d).multiply(a))}function v(e){return a(e,t(g))}function y(e){return h(e,t(255))}function b(e,t){return e.x.multiply(t.y).subtract(t.x.multiply(e.y))}function x(e){return e.multiply(2).subtract(1)}function S(e){return e.multiply(.5).add(.5)}function C(e,n){let a=t(2**n);return r(i(e.divide(a)),t(2))}function w(e,n){return d(C(e,n),t(.5))}function T(t,n){return C(t,n+e)}function E(e,t){return C(e,t)}function D(e){let r=C(e.z,7),i=t(1).subtract(r),a=e.xyz.subtract(n(0,0,t(128)));return i.multiply(e).add(r.multiply(a))}function O(e){let t=o(255/256,255/65536,255/16777216,255/4294967296);return s(e,t)}function k(e){return f(f(f(e.x,e.y),e.z),e.w)}function A(e){return new p(1).subtract(e)}function j(e){return e.subtract(new p(1))}function M(e){return new p(1).divide(e)}function N(e,t){return new p(e).subtract(t)}function P(e,t){return e.subtract(new p(t))}function F(e,t,n,r){let i=new m(0),a=new m(0);return i=I(i,e,a),i=I(i,t,a),i=I(i,n,a),i=I(i,r,a)
|
|
2
|
+
import{maxHighlightGroups as e}from"../../../definitions.js";import{float as t,vec3 as n,mod as r,floor as i,equal as a,vec4 as o,dot as s,vec2 as c,fract as l,sin as u,greaterThan as d,max as f,Float as p,Vec4 as m,divide as h}from"../../graph/glsl.js";import{nanMagicNumber as g}from"./constants.js";function _(e){let n=t(12.9898),i=t(78.233),a=t(43758.5453),o=s(e,c(n,i)),d=r(o,t(3.14));return l(u(d).multiply(a))}function v(e){return a(e,t(g))}function y(e){return h(e,t(255))}function b(e,t){return e.x.multiply(t.y).subtract(t.x.multiply(e.y))}function x(e){return e.multiply(2).subtract(1)}function S(e){return e.multiply(.5).add(.5)}function C(e,n){let a=t(2**n);return r(i(e.divide(a)),t(2))}function w(e,n){return d(C(e,n),t(.5))}function T(t,n){return C(t,n+e)}function E(e,t){return C(e,t)}function D(e){let r=C(e.z,7),i=t(1).subtract(r),a=e.xyz.subtract(n(0,0,t(128)));return i.multiply(e).add(r.multiply(a))}function O(e){let t=o(255/256,255/65536,255/16777216,255/4294967296);return s(e,t)}function k(e){return f(f(f(e.x,e.y),e.z),e.w)}function A(e){return new p(1).subtract(e)}function j(e){return e.subtract(new p(1))}function M(e){return new p(1).divide(e)}function N(e,t){return new p(e).subtract(t)}function P(e,t){return e.subtract(new p(t))}function F(e,t,n,r){let i=new m(0),a=new m(0);return i=I(i,e,a),i=I(i,t,a),i=I(i,n,a),i=I(i,r,a)}function I(e,t,n){let r=t.subtract(n),i=e.add(r);return n=i.subtract(e).subtract(r),i}export{S as clipToUv,b as cross2,C as getBit,w as getBitBool,T as getFilterBit,E as getHighlightBit,v as isNan,I as kahanSummation,k as max4,j as minusOne,P as minusScalar,y as norm,A as oneMinus,M as oneOver,_ as rand,O as rgba2float,N as scalarMinus,F as sum4,D as unpackDisplayIdTexel,x as uvToClip};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e,__param as t}from"tslib";import{labelU16ZoomPrecisionFactor as n,labelPlacementOffsetPadding as r,packDegreesU8 as i}from"../../../definitions.js";import{Vec4 as a,Vec2 as o,Float as s,Sampler2D as c,mod as l,floor as u,step as d,and as f,lessThan as p,greaterThanEqual as m,Vec3 as h,Mat3 as g,equal as _,ifElse as v,greaterThan as y,Bool as b,texture2D as x,smoothstep as S,Int as C,bitRShift as w,bitAnd as T}from"../../graph/glsl.js";import{location as E,option as D,uniform as O,texture as k,define as A,input as j,ComputeVertexInput as M}from"../../GraphShaderModule.js";import{FeatureVertexInput as N,AFeatureShader as ee,FeatureFragmentInput as te}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as F,noHit as I,trueHit as ne}from"../shaders/constants.js";import{isPointHittest as re,distPointTriangle as ie,isRectHittest as ae,hittestRect as L,isPolygonHittest as R,hittestLabelPolygon as z,hittestPolygon as B}from"../shaders/hittestUtils.js";import{MosaicInfo as V}from"../shaders/MosaicInfo.js";import{getBit as H}from"../shaders/utils.js";import{VisualVariableColor as U}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as W}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as G}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as K}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as oe}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as se}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as J,getVisualVariableRotation as Y}from"../shaders/vvUtils.js";const ce=1/i;class X extends N{}e([E(3,a)],X.prototype,`color`,void 0),e([E(4,o)],X.prototype,`offset`,void 0),e([E(5,o)],X.prototype,`textureUV`,void 0),e([E(6,a)],X.prototype,`fontAndReferenceSize`,void 0),e([E(7,a)],X.prototype,`outlineColor`,void 0),e([E(8,a)],X.prototype,`haloColor`,void 0),e([E(9,o)],X.prototype,`outlineAndHaloSize`,void 0),e([E(10,o)],X.prototype,`zoomRange`,void 0),e([E(11,s)],X.prototype,`clipAngle`,void 0),e([E(12,a)],X.prototype,`referenceSymbol`,void 0);class Z extends M{}e([E(13,o)],Z.prototype,`offsetNextVertex1`,void 0),e([E(14,o)],Z.prototype,`offsetNextVertex2`,void 0);class Q extends te{}class $ extends ee{constructor(){super(...arguments),this.type=`TextShader`,this.computeAttributes={offset:[`offsetNextVertex1`,`offsetNextVertex2`]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(e,t){let{clipAngle:r,zoomRange:i}=e,a=r.multiply(ce),o=l(a.subtract(this.view.getRotation()),new s(360)),c=new s(0),h=n,g=u(this.tileInfo.currentZoom.multiply(h)).divide(h),_=i.x,v=i.y,y=new s(1).subtract(d(_,g)).multiply(2),b=new s(f(m(o,new s(90)),p(o,new s(270)))).multiply(2),x=new s(2).multiply(new s(1).subtract(d(g,v)));return c=c.add(t.multiply(y)),c=c.add(t.multiply(b)),c=c.add(x),c=c.add(new s(2).multiply(this.getLabelHidden(e.id,e.bitset)))
|
|
2
|
+
import{__decorate as e,__param as t}from"tslib";import{labelU16ZoomPrecisionFactor as n,labelPlacementOffsetPadding as r,packDegreesU8 as i}from"../../../definitions.js";import{Vec4 as a,Vec2 as o,Float as s,Sampler2D as c,mod as l,floor as u,step as d,and as f,lessThan as p,greaterThanEqual as m,Vec3 as h,Mat3 as g,equal as _,ifElse as v,greaterThan as y,Bool as b,texture2D as x,smoothstep as S,Int as C,bitRShift as w,bitAnd as T}from"../../graph/glsl.js";import{location as E,option as D,uniform as O,texture as k,define as A,input as j,ComputeVertexInput as M}from"../../GraphShaderModule.js";import{FeatureVertexInput as N,AFeatureShader as ee,FeatureFragmentInput as te}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as F,noHit as I,trueHit as ne}from"../shaders/constants.js";import{isPointHittest as re,distPointTriangle as ie,isRectHittest as ae,hittestRect as L,isPolygonHittest as R,hittestLabelPolygon as z,hittestPolygon as B}from"../shaders/hittestUtils.js";import{MosaicInfo as V}from"../shaders/MosaicInfo.js";import{getBit as H}from"../shaders/utils.js";import{VisualVariableColor as U}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as W}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as G}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as K}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as oe}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as se}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as J,getVisualVariableRotation as Y}from"../shaders/vvUtils.js";const ce=1/i;class X extends N{}e([E(3,a)],X.prototype,`color`,void 0),e([E(4,o)],X.prototype,`offset`,void 0),e([E(5,o)],X.prototype,`textureUV`,void 0),e([E(6,a)],X.prototype,`fontAndReferenceSize`,void 0),e([E(7,a)],X.prototype,`outlineColor`,void 0),e([E(8,a)],X.prototype,`haloColor`,void 0),e([E(9,o)],X.prototype,`outlineAndHaloSize`,void 0),e([E(10,o)],X.prototype,`zoomRange`,void 0),e([E(11,s)],X.prototype,`clipAngle`,void 0),e([E(12,a)],X.prototype,`referenceSymbol`,void 0);class Z extends M{}e([E(13,o)],Z.prototype,`offsetNextVertex1`,void 0),e([E(14,o)],Z.prototype,`offsetNextVertex2`,void 0);class Q extends te{}class $ extends ee{constructor(){super(...arguments),this.type=`TextShader`,this.computeAttributes={offset:[`offsetNextVertex1`,`offsetNextVertex2`]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(e,t){let{clipAngle:r,zoomRange:i}=e,a=r.multiply(ce),o=l(a.subtract(this.view.getRotation()),new s(360)),c=new s(0),h=n,g=u(this.tileInfo.currentZoom.multiply(h)).divide(h),_=i.x,v=i.y,y=new s(1).subtract(d(_,g)).multiply(2),b=new s(f(m(o,new s(90)),p(o,new s(270)))).multiply(2),x=new s(2).multiply(new s(1).subtract(d(g,v)));return c=c.add(t.multiply(y)),c=c.add(t.multiply(b)),c=c.add(x),c=c.add(new s(2).multiply(this.getLabelHidden(e.id,e.bitset)))}vertex(e,t){let n=H(e.bitset,P),i=new s(1).subtract(n),c=this.getFeatureId(e.id,e.bitset),l=e.fontAndReferenceSize[0],u=e.fontAndReferenceSize[1],d=e.fontAndReferenceSize[2],f=e.fontAndReferenceSize[3],p=l.divide(d),m=this.textRenderPassType===1?e.outlineColor:this.textRenderPassType===2?e.haloColor:this._getVertexColor(e,c),x=this.getCalloutTransform(this.isAnchoredLabel(e.bitset)).multiply(new h(this.getLabelTextPos(e.pos,e.id,e.bitset),1)).xy,S=e.offset,C=new s(1),w=g.identity(),T=new o(0);if(this.isLabel){if(!e.referenceSymbol)throw Error(`InternalError: Optional attribute 'referenceSymbol' expected for labels`);let t=e.referenceSymbol,n=t.xy,i=t.z,a=this._unpackDirection(t.w),o=this.getLabelReferenceSymbolVVOffset(e.id),l=_(o.x,new s(0)).and(_(o.y,new s(0))),u=v(l,J(this,c,i).divide(2),i.divide(2)),d=a.multiply(u.add(r)).add(o);T=n.add(d),S=S.add(T)}else C=J(this,c,u).divide(u),l=l.multiply(C),p=p.multiply(C),S=S.multiply(C),w=Y(this,c),S=w.multiply(new h(S,0)).xy;let E=H(e.bitset,F),D=this._getViewRotationMatrix(E).multiply(new h(S,0)).multiply(this.tileInfo.scaleFactor).xy,O=this.isLabel?this.clipLabel(e,E):this.clip(e.id,e.bitset,e.zoomRange);O=this.isBackgroundPass?O.add(i.multiply(2)):O.add(n.multiply(2));let k=new s(0);if(this.textRenderPassType===1&&(O=O.add(v(_(e.outlineAndHaloSize.x,new s(0)),new s(2),new s(0))),k=new s(e.outlineAndHaloSize.x).divide(p).divide(f)),this.textRenderPassType===2){let t=e.outlineAndHaloSize.x,n=new s(e.outlineAndHaloSize.y);O=O.add(v(_(n,new s(0)),new s(2),new s(0))),k=n.add(t).divide(p).divide(f)}let A=this.isLabel?y(O,new s(1)):new b(!1),j=new a(x.add(D),O,1),M=e.textureUV.divide(this.mosaicInfo.size),N=new s(.105).multiply(d).divide(l).divide(this.view.pixelRatio);return{glPosition:j,color:m,size:p,textureUV:M,antialiasingWidth:N,outlineDistanceOffset:k,...this.maybeRunHittest(e,t,{vvSizeAdjustment:C,vvRotation:w,labelOffset:T,labelClipped:A,scaleFactor:this.tileInfo.scaleFactor})}}_getViewRotationMatrix(e){let t=this.view.getDisplayViewMat3(),n=this.view.displayMat3,r=new s(1).subtract(e);return t.multiply(e).add(n.multiply(r))}_getHittestAlignmentMatrix(e){let t=this.tile.getTileMat3(this.view),n=this.view.viewMat3.multiply(t),r=t,i=new s(1).subtract(e);return n.multiply(e).add(r.multiply(i))}fragment(e){let t=new s(.25),n=new s(1).subtract(t),r=x(this.mosaicTexture,e.textureUV).a,i=n.subtract(e.outlineDistanceOffset);this.highlight&&(i=i.divide(2));let a=e.antialiasingWidth,o=S(i.subtract(a),i.add(a),r);return this.getFragmentOutput(e.color.multiply(o),e)}computeHittestTriangle(e,t,{vvSizeAdjustment:n,vvRotation:r,labelOffset:i,scaleFactor:a}){let o,s,c;this.isLabel?(o=new h(e.offset.multiply(a).add(i),0),s=new h(t.offsetNextVertex1.multiply(a).add(i),0),c=new h(t.offsetNextVertex2.multiply(a).add(i),0)):(o=r.multiply(new h(e.offset.multiply(a).multiply(n),0)),s=r.multiply(new h(t.offsetNextVertex1.multiply(a).multiply(n),0)),c=r.multiply(new h(t.offsetNextVertex2.multiply(a).multiply(n),0)));let l=this.tile.getViewScreenMat3(this.view).multiply(new h(e.pos,1)),u=H(e.bitset,F),d=this._getHittestAlignmentMatrix(u);return{pos0:l.add(d.multiply(o)).xy,pos1:l.add(d.multiply(s)).xy,pos2:l.add(d.multiply(c)).xy}}hittest(e,t,n){let{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,labelClipped:o,scaleFactor:c}=n,{pos0:l,pos1:u,pos2:d}=this.computeHittestTriangle(e,t,{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,scaleFactor:c}),f={pos0:l,pos1:u,pos2:d},p=this.isLabel?o:new b(!1);return v(p,new s(I),()=>v(re(this.hittestRequest),()=>{let e=ie(this.hittestRequest.position,l,u,d);return v(y(e,this.hittestRequest.distance),new s(I),new s(ne))},()=>v(ae(this.hittestRequest),L(f,this.hittestRequest.rect.xy,this.hittestRequest.rect.zw),v(R(this.hittestRequest),this.isLabel?z(f,this.hittestRequest.viewSize,this.hittestMaskTexture):B(f,this.hittestRequest.viewSize,this.hittestMaskTexture),new s(I)))))}_unpackDirection(e){let t=new C(e),n=w(t,new C(2)),r=T(t,new C(3));return new o(new s(n).subtract(1),new s(r).subtract(1))}_getVertexColor(e,t){let n=e.color;if(this.visualVariableColor){let r=this.getColorValue(t);n=this.visualVariableColor.getColor(r,e.color,new b(!1))}if(this.visualVariableOpacity){let e=this.getOpacityValue(t),r=this.visualVariableOpacity.getOpacity(e);n=n.multiply(r)}return n}}e([D(U)],$.prototype,`visualVariableColor`,void 0),e([D(W)],$.prototype,`visualVariableOpacity`,void 0),e([D(G)],$.prototype,`visualVariableRotation`,void 0),e([D(K)],$.prototype,`visualVariableSizeMinMaxValue`,void 0),e([D(q)],$.prototype,`visualVariableSizeScaleStops`,void 0),e([D(oe)],$.prototype,`visualVariableSizeStops`,void 0),e([D(se)],$.prototype,`visualVariableSizeUnitValue`,void 0),e([O(V)],$.prototype,`mosaicInfo`,void 0),e([k(c)],$.prototype,`mosaicTexture`,void 0),e([A],$.prototype,`textRenderPassType`,void 0),e([A],$.prototype,`isBackgroundPass`,void 0),e([A],$.prototype,`isLabel`,void 0),e([t(0,j(X)),t(1,j(Z))],$.prototype,`vertex`,null),e([t(0,j(Q))],$.prototype,`fragment`,null);export{Q as TextFragmentInput,$ as TextShader,X as TextVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../core/Error.js";let t=null;function n(){return t??=Promise.all([import(`./webglDeps.js`),import(`./mapViewDeps.js`)])
|
|
2
|
+
import e from"../../core/Error.js";let t=null;function n(){return t??=Promise.all([import(`./webglDeps.js`),import(`./mapViewDeps.js`)])}const r=()=>n().then(()=>import(`./layers/TileLayerView2D.js`)),i={"annotation-feature":async()=>(await n(),await import(`./layers/FeatureLayerView2D.js`),import(`./layers/AnnotationFeatureLayerView2D.js`)),"base-dynamic":()=>n().then(()=>import(`./layers/BaseDynamicLayerView2D.js`)),"base-tile":r,"bing-maps":r,catalog:()=>n().then(()=>import(`./layers/CatalogLayerView2D.js`)),"catalog-dynamic-group":()=>n().then(()=>import(`./layers/CatalogDynamicGroupLayerView2D.js`)),"catalog-footprint":()=>n().then(()=>import(`./layers/CatalogFootprintLayerView2D.js`)),csv:()=>n().then(()=>import(`./layers/CSVLayerView2D.js`)),"geospatial-pdf":()=>n().then(()=>import(`./layers/GeospatialPDFLayerView2D.js`)),"geo-rss":()=>n().then(()=>import(`./layers/GeoRSSLayerView2D.js`)),feature:()=>n().then(()=>import(`./layers/FeatureLayerView2D.js`)),"dimension-feature":async()=>(await n(),await import(`./layers/FeatureLayerView2D.js`),import(`./layers/DimensionFeatureLayerView2D.js`)),geojson:()=>n().then(()=>import(`./layers/GeoJSONLayerView2D.js`)),graphics:()=>n().then(()=>import(`./layers/GraphicsLayerView2D.js`)),group:()=>n().then(()=>import(`./layers/GroupLayerView2D.js`)),imagery:()=>n().then(()=>import(`./layers/ImageryLayerView2D.js`)),"imagery-tile":()=>n().then(()=>import(`./layers/ImageryTileLayerView2D.js`)),kml:()=>n().then(()=>import(`./layers/KMLLayerView2D.js`)),"knowledge-graph":()=>n().then(()=>import(`./layers/KnowledgeGraphLayerView2D.js`)),"link-chart":()=>n().then(()=>import(`./layers/KnowledgeGraphLayerView2D.js`)),"knowledge-graph-sublayer":()=>n().then(()=>import(`./layers/KnowledgeGraphSublayerView2D.js`)),"map-image":()=>n().then(()=>import(`./layers/MapImageLayerView2D.js`)),"map-notes":()=>n().then(()=>import(`./layers/MapNotesLayerView2D.js`)),sketch:()=>n().then(()=>import(`./layers/SketchLayerView2D.js`)),media:()=>n().then(()=>import(`./layers/MediaLayerView2D.js`)),"ogc-feature":()=>n().then(()=>import(`./layers/OGCFeatureLayerView2D.js`)),"open-street-map":r,"oriented-imagery":()=>n().then(()=>import(`./layers/OrientedImageryLayerView2D.js`)),parquet:()=>n().then(()=>import(`./layers/ParquetLayerView2D.js`)),route:()=>n().then(()=>import(`./layers/RouteLayerView2D.js`)),stream:()=>n().then(()=>import(`./layers/StreamLayerView2D.js`)),"subtype-group":()=>n().then(()=>import(`./layers/SubtypeGroupLayerView2D.js`)),tile:r,"vector-tile":()=>n().then(()=>import(`./layers/VectorTileLayerView2D.js`)),video:()=>n().then(()=>import(`./layers/VideoLayerView2D.js`)),wcs:()=>n().then(()=>import(`./layers/ImageryTileLayerView2D.js`)),"web-tile":r,wfs:()=>n().then(()=>import(`./layers/WFSLayerView2D.js`)),wms:()=>n().then(()=>import(`./layers/WMSLayerView2D.js`)),wmts:()=>n().then(()=>import(`./layers/WMTSLayerView2D.js`)),"base-elevation":null,"building-scene":null,dimension:null,elevation:null,"gaussian-splat":null,"integrated-mesh-3dtiles":null,"integrated-mesh":null,"line-of-sight":null,"point-cloud":null,scene:null,unknown:null,unsupported:null,viewshed:null,voxel:null};function a(t){let n=t.declaredClass?t.declaredClass.slice(t.declaredClass.lastIndexOf(`.`)+1):`Unknown`,r=n.replaceAll(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase();return new e(`${r}:view-not-supported`,`${n} is not supported in 2D`)}const o=new Map,s={hasLayerViewModule:e=>i[e.type]!=null,importLayerView:e=>{let t=o.get(e.type);if(t)return t;let n=i[e.type];if(n==null)throw a(e);let r=n(e);return o.set(e.type,r),r}};export{s as layerView2DImporter};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{BitmapTileContainer as n}from"../engine/BitmapTileContainer.js";const r=r=>{let i=r,a=class extends i{attach(){this.view.timeline.record(`${this.layer.title} (BitmapTileLayer) Attach`),this._bitmapView=new n(this._tileInfoView),this.container.addChild(this._bitmapView)}detach(){this.container.removeChild(this._bitmapView),this._bitmapView?.removeAllChildren(),this._bitmapView=null}};return a=e([t(`esri.views.2d.layers.BitmapTileLayerView2D`)],a)
|
|
2
|
+
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{BitmapTileContainer as n}from"../engine/BitmapTileContainer.js";const r=r=>{let i=r,a=class extends i{attach(){this.view.timeline.record(`${this.layer.title} (BitmapTileLayer) Attach`),this._bitmapView=new n(this._tileInfoView),this.container.addChild(this._bitmapView)}detach(){this.container.removeChild(this._bitmapView),this._bitmapView?.removeAllChildren(),this._bitmapView=null}};return a=e([t(`esri.views.2d.layers.BitmapTileLayerView2D`)],a)};export{r as BitmapTileLayerView2D};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import{isSome as r}from"../../../core/arrayUtils.js";import i from"../../../core/Collection.js";import{makeHandle as a}from"../../../core/handleUtils.js";import"../../../core/has.js";import{QueueProcessor as o}from"../../../core/QueueProcessor.js";import{watch as s,sync as c}from"../../../core/reactiveUtils.js";import{isScreenRect as l}from"../../../core/screenUtils.js";import
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import{isSome as r}from"../../../core/arrayUtils.js";import i from"../../../core/Collection.js";import{makeHandle as a}from"../../../core/handleUtils.js";import"../../../core/has.js";import{QueueProcessor as o}from"../../../core/QueueProcessor.js";import{watch as s,sync as c}from"../../../core/reactiveUtils.js";import{isScreenRect as l}from"../../../core/screenUtils.js";import{convertGeometryToMask as u}from"../../../layers/raster/functions/clipUtils.js";import d from"../../../layers/support/FeatureFilter.js";import{isGraphic as f}from"../../../support/graphicInstanceUtils.js";import p from"../../layers/ImageryLayerView.js";import{RefreshableLayerView as m}from"../../layers/RefreshableLayerView.js";import{isPixelHighlightTarget as h,isEmptyPixelRanges as g}from"../../layers/support/highlightUtils.js";import{defaultColor as _}from"../../support/HighlightDefaults.js";import{getHighlightName as v}from"../../support/highlightOptionsUtils.js";import y from"../engine/flow/FlowView2D.js";import b from"./graphics/GraphicsView2D.js";import x from"./graphics/HighlightGraphicContainer.js";import S from"./imagery/ImageryView2D.js";import C from"./imagery/VectorFieldView2D.js";import{LayerView2D as w}from"./LayerView2D.js";let T=class extends m(w(p)){constructor(){super(...arguments),this._exportImageVersion=-1,this._highlightGraphics=new i,this._highlightView=void 0,this._maxPixelSizePromise=null,this._pixelHighlights=[],this.layer=null,this.subview=null}get pixelData(){let{subview:e}=this;return this.updating||!e?null:`getPixelData`in e?e.getPixelData():null}update(e){this.subview?.update(e),this._highlightView?.processUpdate(e),this._updatingHandles.consumePromise(this._updateHighlightVisibility())}attach(){this.layer.increaseRasterJobHandlerUsage(),this._setSubView(),this.view&&(this._highlightView=new b({view:this.view,graphics:this._highlightGraphics,requestUpdateCallback:()=>this.requestUpdate(),container:new x(this.view.featuresTilingScheme)}),this.container.addChild(this._highlightView.container)),this.addAttachHandles([s(()=>this.layer.exportImageServiceParameters.version,e=>{e&&this._exportImageVersion!==e&&(this._exportImageVersion=e,this.requestUpdate())},c),s(()=>this.timeExtent,e=>{let{subview:t}=this;t&&(t.timeExtent=e,`redraw`in t?this.requestUpdate():t.redrawOrRefetch())},c),this.layer.on(`redraw`,()=>{let{subview:e}=this;e&&(`redraw`in e?e.redraw():e.redrawOrRefetch())}),s(()=>this.layer.renderer,()=>this._setSubView()),s(()=>this.view?.highlights.items.map(({name:e,color:t})=>({name:e,color:t})),()=>this._updateHighlightOptions(this.subview))])}detach(){this.layer.decreaseRasterJobHandlerUsage(),this.container.removeAllChildren(),this._detachSubview(this.subview),this.subview?.destroy(),this.subview=null,this._highlightView?.destroy(),this._exportImageVersion=-1}viewChange(){}moveEnd(){this.requestUpdate()}async hitTest(e,t){let{layer:n,subview:r}=this;if(!n.loaded||!this.attached||!r?.attached)return null;l(t)&&(e=this.view.toMap({x:t.x+t.width/2,y:t.y+t.height/2}));let i=await r.hitTest(e);return i==null?null:[{type:`raster`,layer:n,mapPoint:e,...i}]}highlight(e,t){if(h(e))return g(e)?a():this._highlightPixels(e,t);if(this.layer.sourceType===`mosaic-dataset`&&(this._maxPixelSizePromise??=this.layer.fetchMaxPixelSize(this.view.spatialReference).catch(()=>null)),typeof e==`number`||typeof e==`string`)return this._highlightByImageIds([e],t);let n=Array.isArray(e)||i.isCollection(e)?e.at(0):e;if(typeof n==`number`||typeof n==`string`)return this._highlightByImageIds(e,t);if(!f(n))return a();let r=(i.isCollection(e)?e.items:Array.isArray(e)?e:[e]).filter(f),o=v(t),s=this._addHighlightGraphics(r,o);return a(()=>!this.destroyed&&this._removeHighlightGraphics(r,s))}_highlightByImageIds(e,t){let n=v(t),r=new AbortController,{signal:i}=r,s=this.layer.sourceJSON.maxRecordCount??1e3,c=Math.ceil(e.length/s),l=[],u=[],d=new o({concurrency:4,process:e=>this.layer.queryFeatures({objectIds:e.ids,returnGeometry:!0,outSpatialReference:this.view.spatialReference},{signal:i}).then(e=>u.push(...e.features)).catch(()=>{})});for(let t=0;t<c;t++)l.push(d.push({ids:e.slice(t*s,(t+1)*s)}));return Promise.allSettled(l).then(()=>{if(u.length&&!i.aborted){let e=this._addHighlightGraphics(u,n);i.addEventListener(`abort`,()=>{this._removeHighlightGraphics(u,e)})}}),a(()=>r.abort())}_highlightPixels(e,t){let n={target:e,options:t};return this._pixelHighlights.push(n),this._updateHighlightOptions(this.subview),a(()=>{let e=this._pixelHighlights.indexOf(n);e>-1&&(this._pixelHighlights.splice(e,1),this._updateHighlightOptions(this.subview))})}_addHighlightGraphics(e,t){return this._highlightGraphics.addMany(e),this._addHighlightFilter(new d({objectIds:e.map(e=>e.uid)}),t)}_removeHighlightGraphics(e,t){this._highlightGraphics.removeMany(e),this._removeHighlight(t)}async doRefresh(){this.requestUpdate()}isUpdating(){return!this.subview||this.subview.updating||!!this._highlightView?.updating}_onHighlightChange(){let e=this._getHighlightFilterGroups();this._highlightView?.setHighlightFilters(e)}_setSubView(){if(!this.view)return;let e=this.layer.renderer?.type,t=`imagery`;if(e===`vector-field`?t=`imageryVF`:e===`flow`&&(t=`flow`),this.subview){let{type:e}=this.subview;if(e===t){this._attachSubview(this.subview),e===`flow`?this.subview.redrawOrRefetch():e===`imagery`&&this.layer.format===`lerc`?this.subview.redraw():this.requestUpdate();return}this._detachSubview(this.subview),this.subview?.destroy()}t===`imagery`?(this.subview=new S({layer:this.layer,view:this.view,timeExtent:this.timeExtent,updatingHandles:this._updatingHandles}),this._updateHighlightOptions(this.subview)):this.subview=t===`imageryVF`?new C({layer:this.layer,view:this.view,timeExtent:this.timeExtent}):new y({layer:this.layer,layerView:this}),this._attachSubview(this.subview),this.requestUpdate()}_attachSubview(e){e&&!e.attached&&(e.attach(),e.attached=!0,this.container.addChildAt(e.container,0))}_detachSubview(e){e?.attached&&(this.container.removeChild(e.container),e.detach(),e.attached=!1)}async _updateHighlightVisibility(){let e=this._highlightView?.container;if(!e||this.suspended)return;if(this.layer.mosaicRule?.method===`lock-raster`){e.visible=!0;return}let t=await this._maxPixelSizePromise;t!=null&&(e.visible=(t.x+t.y)/2>this.view.resolution)}_updateHighlightOptions(e){let t=this.view.highlights;this._pixelHighlights.sort((e,n)=>t.findIndex(({name:e})=>e===v(n.options))-t.findIndex(({name:t})=>t===v(e.options)));let n=this._pixelHighlights.map(({target:e,options:n})=>E(e,t,n)).filter(r);e?.type===`imagery`&&(e.pixelHighlights=n,e.attached&&(this.layer.format===`lerc`?e.redraw():this.requestUpdate()))}};e([t()],T.prototype,`pixelData`,null),e([t()],T.prototype,`subview`,void 0),T=e([n(`esri.views.2d.layers.ImageryLayerView2D`)],T);function E(e,t,n){let r=v(n),i=(t.find(e=>e.name===r)?.color??_).toArray(),{pixelRanges:a}=e;if(Array.isArray(a))return{ranges:a,bandId:e.bandId??0,color:i};let o=a.type===`extent`?a:a.extent;if(!o)return;let s=[o.xmin,o.xmax],c=[o.ymin,o.ymax],{xBandId:l,yBandId:d}=e,f=1024,p=1024;return{xBandId:l,yBandId:d,xBandRange:s,yBandRange:c,color:i,width:f,height:p,xyMask:a.type===`polygon`?u({srcExtent:o,geometry:a,size:[f,p]}):void 0}}const D=T;export{D as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import r from"../../../core/Collection.js";import{referenceSetter as i}from"../../../core/collectionUtils.js";import a from"../../../core/Error.js";import"../../../core/has.js";import{watch as o,syncAndInitial as s,sync as c}from"../../../core/reactiveUtils.js";import{isInEffectiveScaleRange as l}from"../../../geometry/support/scaleUtils.js";import{isLinkChartView as u}from"../../../linkChart/guards.js";import d from"../../layers/support/ClipRect.js";import f from"../../layers/support/GeometryClipArea.js";import p from"../../layers/support/Path.js";import m from"../../support/HighlightOptions.js";import{Container as h}from"../engine/Container.js";import{ClipMesh as g}from"../engine/webgl/ClipMesh.js";import{maxHighlightGroups as _}from"../engine/webgl/definitions.js";import{HighlightRegistry as v}from"./support/HighlightRegistry.js";import{createOrReuseHighlightGradient as y}from"./support/util.js";const b=r.ofType({key:`type`,base:null,typeMap:{rect:d,path:p,geometry:f}}),x=new(r.ofType(m)),S=d=>{let f=d,p=class extends f{constructor(){super(...arguments),this._clipUpdateId=0,this._highlightRegistry=new v,this.attached=!1,this.clips=new b,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){let e=this.view?.spatialReferenceLocked??!0;this.view?.spatialReference&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new a(`layerview:spatial-reference-incompatible`,`The spatial reference of this layer does not meet the requirements of the view`,{layer:this.layer}))):(this.container||=new h,this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([o(()=>this.suspended,e=>{this.container&&(this.container.visible=!e)},s),o(()=>this.updateSuspended,e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()},s),o(()=>this.layer?.opacity??1,e=>{this.container&&(this.container.opacity=e)},s),o(()=>this.layer&&`blendMode`in this.layer?this.layer.blendMode:`normal`,e=>{this.container&&(this.container.blendMode=e)},s),o(()=>this.layer&&`effect`in this.layer?this.layer.effect:null,e=>{this.container&&(this.container.effect=e)},s),o(()=>this._effectiveHighlightOptions.items.map(e=>({name:e.name,options:{fillColor:e.color,haloColor:e.haloColor,fillOpacity:e.fillOpacity,haloOpacity:e.haloOpacity,haloWidth:e.haloWidth,haloBlur:e.haloBlur}})),()=>{this.container.highlightGradient=y(this.container.highlightGradient,this._effectiveHighlightOptions.items)},s),o(()=>this._getHighlightFilterGroups(),()=>this._onHighlightChange(),c),o(()=>this.clips.map(e=>e.version),async()=>{let e=++this._clipUpdateId;if(this.container&&this.view?.spatialReference){let t=this.view.featuresTilingScheme,n=await this._updatingHandles.addPromise(Promise.all(this.clips.items.map(e=>g.create(e,t))));if(this.destroyed||e!==this._clipUpdateId){for(let e of n)e?.destroy();return}for(let e of this.container.clips)e.destroy();this.container.clips=n.filter(e=>!!e)}},s),o(()=>({scale:this.view?.scale,scaleRange:this.layer&&`effectiveScaleRange`in this.layer?this.layer.effectiveScaleRange:null}),({scale:e,scaleRange:t})=>{let n=l(t,e);n!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=n)},s),o(()=>this.layer?.effectiveVisible,async e=>{this.container.requestDeclutter()})],`constructor`),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then(e=>{e===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}destroy(){this.processDetach(),this.updateRequested=!1;for(let e of this.container?.clips??[])e.destroy()}get hasHighlight(){return this._highlightRegistry.size>0}get _effectiveHighlightOptions(){if(!this.view)return x;if(!this.highlights)return this.view.highlights;let e=this.view.highlights.clone();for(let t of this.highlights){let n=e.find(e=>e.name===t.name);n&&n.assignFrom(t)}return e}get highlightIds(){return this._highlightRegistry.highlightIds}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){let e=this.view?.spatialReference;return e==null||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported?this.attached?this.suspended?!1:this.updateRequested||this.isUpdating()||this._updatingHandles?.updating||this.container.transitioning:!0:!1}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles(`attach`),this.detach(),this.updateRequested=!1)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){this.isFulfilled()&&!this.isResolved()?this.updateRequested=!1:(this._set(`updateParameters`,e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e)))}hitTest(e,t,n){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case`link-chart`:case`knowledge-graph-sublayer`:case`graphics`:break;default:if(u(this.view)&&!this.view.inGeographicLayout)return!1}return super.canResume()?this.visibleAtCurrentScale:!1}getSuspendInfo(){let e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,`attach`)}_addHighlightFilter(e,t){return this._highlightRegistry.register(t,e)}_removeHighlight(e){this._highlightRegistry.unregister(e)}_onHighlightChange(){}_getHighlightFilterGroups(){let e=[];for(let{name:t,filters:n}of this._highlightRegistry.highlightGroups){let r=this._effectiveHighlightOptions.findIndex(e=>e.name===t);r<0||r>=_||e.push({order:r,filters:n})}return e}};return e([t()],p.prototype,`attached`,void 0),e([t({type:b,set(e){let t=i(e,this._get(`clips`),b);this._set(`clips`,t)}})],p.prototype,`clips`,void 0),e([t()],p.prototype,`container`,void 0),e([t({type:r.ofType(m)})],p.prototype,`highlights`,void 0),e([t()],p.prototype,`_effectiveHighlightOptions`,null),e([t()],p.prototype,`moving`,void 0),e([t({readOnly:!0})],p.prototype,`spatialReferenceSupported`,null),e([t({readOnly:!0})],p.prototype,`updateParameters`,void 0),e([t()],p.prototype,`updateRequested`,void 0),e([t()],p.prototype,`updating`,null),e([t()],p.prototype,`view`,void 0),e([t()],p.prototype,`_visibleAtCurrentScale`,void 0),e([t({readOnly:!0})],p.prototype,`visibleAtCurrentScale`,null),p=e([n(`esri.views.2d.layers.LayerView2D`)],p)
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import r from"../../../core/Collection.js";import{referenceSetter as i}from"../../../core/collectionUtils.js";import a from"../../../core/Error.js";import"../../../core/has.js";import{watch as o,syncAndInitial as s,sync as c}from"../../../core/reactiveUtils.js";import{isInEffectiveScaleRange as l}from"../../../geometry/support/scaleUtils.js";import{isLinkChartView as u}from"../../../linkChart/guards.js";import d from"../../layers/support/ClipRect.js";import f from"../../layers/support/GeometryClipArea.js";import p from"../../layers/support/Path.js";import m from"../../support/HighlightOptions.js";import{Container as h}from"../engine/Container.js";import{ClipMesh as g}from"../engine/webgl/ClipMesh.js";import{maxHighlightGroups as _}from"../engine/webgl/definitions.js";import{HighlightRegistry as v}from"./support/HighlightRegistry.js";import{createOrReuseHighlightGradient as y}from"./support/util.js";const b=r.ofType({key:`type`,base:null,typeMap:{rect:d,path:p,geometry:f}}),x=new(r.ofType(m)),S=d=>{let f=d,p=class extends f{constructor(){super(...arguments),this._clipUpdateId=0,this._highlightRegistry=new v,this.attached=!1,this.clips=new b,this.highlights=null,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1,this._visibleAtCurrentScale=!0}initialize(){let e=this.view?.spatialReferenceLocked??!0;this.view?.spatialReference&&e&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new a(`layerview:spatial-reference-incompatible`,`The spatial reference of this layer does not meet the requirements of the view`,{layer:this.layer}))):(this.container||=new h,this.container.fadeTransitionEnabled=!0,this.container.visible=!1,this.container.endTransitions(),this.addHandles([o(()=>this.suspended,e=>{this.container&&(this.container.visible=!e)},s),o(()=>this.updateSuspended,e=>{this.view&&!e&&this.updateRequested&&this.view.requestUpdate()},s),o(()=>this.layer?.opacity??1,e=>{this.container&&(this.container.opacity=e)},s),o(()=>this.layer&&`blendMode`in this.layer?this.layer.blendMode:`normal`,e=>{this.container&&(this.container.blendMode=e)},s),o(()=>this.layer&&`effect`in this.layer?this.layer.effect:null,e=>{this.container&&(this.container.effect=e)},s),o(()=>this._effectiveHighlightOptions.items.map(e=>({name:e.name,options:{fillColor:e.color,haloColor:e.haloColor,fillOpacity:e.fillOpacity,haloOpacity:e.haloOpacity,haloWidth:e.haloWidth,haloBlur:e.haloBlur}})),()=>{this.container.highlightGradient=y(this.container.highlightGradient,this._effectiveHighlightOptions.items)},s),o(()=>this._getHighlightFilterGroups(),()=>this._onHighlightChange(),c),o(()=>this.clips.map(e=>e.version),async()=>{let e=++this._clipUpdateId;if(this.container&&this.view?.spatialReference){let t=this.view.featuresTilingScheme,n=await this._updatingHandles.addPromise(Promise.all(this.clips.items.map(e=>g.create(e,t))));if(this.destroyed||e!==this._clipUpdateId){for(let e of n)e?.destroy();return}for(let e of this.container.clips)e.destroy();this.container.clips=n.filter(e=>!!e)}},s),o(()=>({scale:this.view?.scale,scaleRange:this.layer&&`effectiveScaleRange`in this.layer?this.layer.effectiveScaleRange:null}),({scale:e,scaleRange:t})=>{let n=l(t,e);n!==this._visibleAtCurrentScale&&(this._visibleAtCurrentScale=n)},s),o(()=>this.layer?.effectiveVisible,async e=>{this.container.requestDeclutter()})],`constructor`),this.view?.whenLayerView?this.view.whenLayerView(this.layer).then(e=>{e===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}destroy(){this.processDetach(),this.updateRequested=!1;for(let e of this.container?.clips??[])e.destroy()}get hasHighlight(){return this._highlightRegistry.size>0}get _effectiveHighlightOptions(){if(!this.view)return x;if(!this.highlights)return this.view.highlights;let e=this.view.highlights.clone();for(let t of this.highlights){let n=e.find(e=>e.name===t.name);n&&n.assignFrom(t)}return e}get highlightIds(){return this._highlightRegistry.highlightIds}get scheduler(){return this.view.scheduler}get spatialReferenceSupported(){let e=this.view?.spatialReference;return e==null||this.supportsSpatialReference(e)}get updating(){return this.spatialReferenceSupported?this.attached?this.suspended?!1:this.updateRequested||this.isUpdating()||this._updatingHandles?.updating||this.container.transitioning:!0:!1}get visibleAtCurrentScale(){return this._visibleAtCurrentScale}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.removeHandles(`attach`),this.detach(),this.updateRequested=!1)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.updateSuspended||this.view.requestUpdate())}processUpdate(e){this.isFulfilled()&&!this.isResolved()?this.updateRequested=!1:(this._set(`updateParameters`,e),this.updateRequested&&!this.updateSuspended&&(this.updateRequested=!1,this.update(e)))}hitTest(e,t,n){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){if(!this.spatialReferenceSupported)return!1;switch(this.layer?.type){case`link-chart`:case`knowledge-graph-sublayer`:case`graphics`:break;default:if(u(this.view)&&!this.view.inGeographicLayout)return!1}return super.canResume()?this.visibleAtCurrentScale:!1}getSuspendInfo(){let e=super.getSuspendInfo(),t=!this.spatialReferenceSupported;return t&&(e.spatialReferenceNotSupported=t),e}addAttachHandles(e){this.addHandles(e,`attach`)}_addHighlightFilter(e,t){return this._highlightRegistry.register(t,e)}_removeHighlight(e){this._highlightRegistry.unregister(e)}_onHighlightChange(){}_getHighlightFilterGroups(){let e=[];for(let{name:t,filters:n}of this._highlightRegistry.highlightGroups){let r=this._effectiveHighlightOptions.findIndex(e=>e.name===t);r<0||r>=_||e.push({order:r,filters:n})}return e}};return e([t()],p.prototype,`attached`,void 0),e([t({type:b,set(e){let t=i(e,this._get(`clips`),b);this._set(`clips`,t)}})],p.prototype,`clips`,void 0),e([t()],p.prototype,`container`,void 0),e([t({type:r.ofType(m)})],p.prototype,`highlights`,void 0),e([t()],p.prototype,`_effectiveHighlightOptions`,null),e([t()],p.prototype,`moving`,void 0),e([t({readOnly:!0})],p.prototype,`spatialReferenceSupported`,null),e([t({readOnly:!0})],p.prototype,`updateParameters`,void 0),e([t()],p.prototype,`updateRequested`,void 0),e([t()],p.prototype,`updating`,null),e([t()],p.prototype,`view`,void 0),e([t()],p.prototype,`_visibleAtCurrentScale`,void 0),e([t({readOnly:!0})],p.prototype,`visibleAtCurrentScale`,null),p=e([n(`esri.views.2d.layers.LayerView2D`)],p)};export{S as LayerView2D};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import{makeHandle as
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import r from"../../../core/Collection.js";import{makeHandle as i}from"../../../core/handleUtils.js";import a from"../../../core/Logger.js";import{isAbortError as o}from"../../../core/promiseUtils.js";import{watch as s}from"../../../core/reactiveUtils.js";import c from"../../../layers/support/FeatureFilter.js";import l from"../../layers/LayerView.js";import u from"../../layers/MapImageLayerView.js";import{RefreshableLayerView as d}from"../../layers/RefreshableLayerView.js";import{getHighlightGraphics as f}from"../../layers/support/highlightUtils.js";import{MapServiceLayerViewHelper as p}from"../../layers/support/MapServiceLayerViewHelper.js";import{createQueryGeometry as m}from"../../support/drapedUtils.js";import{getHighlightName as h}from"../../support/highlightOptionsUtils.js";import{BitmapContainer as g}from"../engine/BitmapContainer.js";import _ from"./graphics/GraphicsView2D.js";import v from"./graphics/HighlightGraphicContainer.js";import{LayerView2D as y}from"./LayerView2D.js";import b from"./support/ExportStrategy.js";let x=class extends u(d(y(l))){constructor(){super(...arguments),this._highlightGraphics=new r,this._updateHash=``}fetchPopupFeaturesAtTarget(e,t,n){return this._popupHighlightHelper.fetchPopupFeaturesAtTarget(t,n)}update(e){let t=`${this.exportImageVersion}/${e.state.id}/${e.pixelRatio}/${e.stationary}`;this._updateHash!==t&&(this._updateHash=t,this.strategy.update(e).catch(e=>{o(e)||a.getLogger(this).error(e)}),e.stationary&&this._popupHighlightHelper.updateHighlightedFeatures(e.state.resolution)),this._highlightView.processUpdate(e)}attach(){let{imageMaxWidth:e,imageMaxHeight:t,version:n}=this.layer,r=n>=10.3,i=n>=10;this._bitmapContainer=new g,this.container.addChild(this._bitmapContainer),this._highlightView=new _({view:this.view,graphics:this._highlightGraphics,requestUpdateCallback:()=>this.requestUpdate(),container:new v(this.view.featuresTilingScheme),defaultPointSymbolEnabled:!1}),this.container.addChild(this._highlightView.container),this._popupHighlightHelper=new p({createFetchPopupFeaturesQueryGeometry:(e,t)=>m(e,t,this.view),highlightGraphics:this._highlightGraphics,highlightGraphicUpdated:({graphic:e,property:t})=>this._highlightView.graphicUpdateHandler({graphic:e,property:t}),layerView:this,updatingHandles:this._updatingHandles}),this.strategy=new b({container:this._bitmapContainer,fetchSource:(e,t,n,r)=>this.fetchImageBitmap(e,t,n,r).then(({bitmap:e})=>e),requestUpdate:this.requestUpdate.bind(this),imageMaxWidth:e,imageMaxHeight:t,imageRotationSupported:r,imageNormalizationSupported:i,hidpi:!0}),this.addAttachHandles(s(()=>this.exportImageVersion,()=>this.requestUpdate())),this.requestUpdate()}detach(){this.strategy.destroy(),this.container.removeAllChildren(),this._bitmapContainer.removeAllChildren(),this._highlightView.destroy(),this._popupHighlightHelper.destroy()}viewChange(){}moveEnd(){this.requestUpdate()}supportsSpatialReference(e){return this.layer.serviceSupportsSpatialReference(e)}async doRefresh(){this._updateHash=``,this.requestUpdate()}isUpdating(){return this.strategy.updating||this.updateRequested}fetchImage(e,t,n,r){return this.layer.fetchImage(e,t,n,{timeExtent:this.timeExtent,floors:this.floors,...r})}fetchImageBitmap(e,t,n,r){return this.layer.fetchImageBitmap(e,t,n,{timeExtent:this.timeExtent,floors:this.floors,...r})}highlight(e,t){let n=f(e);if(n.length===0)return i();let r=h(t),a=this._addHighlightGraphics(n,r);return i(()=>!this.destroyed&&this._removeHighlightGraphics(n,a))}_onHighlightChange(){let e=this._getHighlightFilterGroups();this._highlightView?.setHighlightFilters(e)}_addHighlightGraphics(e,t){return this._highlightGraphics.addMany(e),this._addHighlightFilter(new c({objectIds:e.map(e=>e.uid)}),t)}_removeHighlightGraphics(e,t){this._highlightGraphics.removeMany(e),this._removeHighlight(t)}};e([t()],x.prototype,`strategy`,void 0),x=e([n(`esri.views.2d.layers.MapImageLayerView2D`)],x);const S=x;export{S as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import{makeHandle as
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../core/accessorSupport/decorators.js";import r from"../../../core/Collection.js";import{makeHandle as i}from"../../../core/handleUtils.js";import a from"../../../core/Logger.js";import{isAbortError as o,waitTick as s}from"../../../core/promiseUtils.js";import{equals as c}from"../../../geometry/support/spatialReferenceUtils.js";import l from"../../../layers/support/FeatureFilter.js";import u from"../../layers/LayerView.js";import{RefreshableLayerView as d}from"../../layers/RefreshableLayerView.js";import{getHighlightGraphics as f}from"../../layers/support/highlightUtils.js";import{isMapServiceLayerView as p,MapServiceLayerViewHelper as m}from"../../layers/support/MapServiceLayerViewHelper.js";import{createQueryGeometry as h}from"../../support/drapedUtils.js";import{getHighlightName as g}from"../../support/highlightOptionsUtils.js";import{TaskPriority as _}from"../../support/Scheduler.js";import"../engine/Stage.js";import"../../../Color.js";import"../../../core/libs/gl-matrix-2/factories/vec4f32.js";import"../../../chunks/pe.js";import"../../../core/has.js";import"../../../core/units.js";import"../../../geometry/ellipsoidUtils.js";import"../../../core/RandomLCG.js";import"../../../geometry/Point.js";import"../../webgl/enums.js";import"../../webgl/FramebufferObject.js";import"../../webgl/Texture.js";import"../../webgl/Util.js";import"../../../core/Accessor.js";import"../../../core/accessorSupport/ObservableBase.js";import"../engine/transitions/FadeTransition.js";import"../../webgl/BufferObject.js";import"../../webgl/Program.js";import"../../webgl/Renderbuffer.js";import"../../../core/memoryEstimations.js";import"../engine/webgl/meshing/definitions.js";import"../engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js";import"../LabelManager.js";import v from"./graphics/GraphicsView2D.js";import"./support/util.js";import"../../webgl/UniformBufferLayout.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileInfo.js";import"../engine/webgl/AFeatureTile.js";import"../engine/webgl/DisplayEntity.js";import"../../../geometry/Polygon.js";import"../../../core/libs/gl-matrix-2/factories/vec2f32.js";import"../engine/webgl/number.js";import"../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js";import"../engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js";import"../../../layers/effects/EffectView.js";import"../engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js";import"../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import"../../../core/libs/gl-matrix-2/factories/vec3f32.js";import"../../../geometry/support/normalizeUtils.js";import"../navigation/MapViewNavigation.js";import"../../../core/asyncUtils.js";import"../../../core/accessorSupport/watch.js";import"../../../core/accessorSupport/tracking/SimpleTrackingTarget.js";import"../../../core/support/UpdatingHandles.js";import"../../../request.js";import"../../../core/mathUtils.js";import"../../../core/urlUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js";import"../../../geometry/Extent.js";import"../../../geometry/Geometry.js";import"../../../geometry/Multipoint.js";import"../../../geometry/operators/support/GeographicTransformation.js";import"../../../geometry/Polyline.js";import"../../../geometry/projection/projectors.js";import"../../../geometry/SpatialReference.js";import"../../../geometry/spatialReferenceEllipsoidUtils.js";import"../engine/webgl/shaderGraph/techniques/shaders/GridShader.js";import"../../../geometry/support/geodesicConstants.js";import"../../../geometry/support/Ellipsoid.js";import y from"../tiling/TileInfoView.js";import b from"../tiling/TileKey.js";import x from"../tiling/TileQueue.js";import S from"../tiling/TileStrategy.js";import{BitmapTileLayerView2D as C}from"./BitmapTileLayerView2D.js";import w from"./graphics/HighlightGraphicContainer.js";import{LayerView2D as T}from"./LayerView2D.js";import{createBlankImage as E,resampleImage as D}from"./support/imageUtils.js";const O=[0,0];let k=class extends d(C(T(u))){constructor(){super(...arguments),this._fetchQueue=null,this._highlightGraphics=new r,this._highlightView=null,this._popupHighlightHelper=null,this._tileStrategy=null,this.layer=null}get resampling(){return!(`resampling`in this.layer)||this.layer.resampling!==!1}get tilemapCache(){return`tilemapCache`in this.layer?this.layer.tilemapCache:null}update(e){this._fetchQueue.pause(),this._fetchQueue.state=e.state,this._tileStrategy.update(e),this._fetchQueue.resume(),this._highlightView?.processUpdate(e)}attach(){let e=`tileServers`in this.layer?this.layer.tileServers:null,t=this.tilemapCache;if(this._tileInfoView=new y(this.layer.tileInfo,this.layer.fullExtent,t?.effectiveMinLOD,t?.effectiveMaxLOD),this._fetchQueue=new x({tileInfoView:this._tileInfoView,concurrency:e&&e.length*10||10,process:(e,t)=>this.fetchTile(e,t),scheduler:this.scheduler,priority:_.MAPVIEW_FETCH_QUEUE}),this._tileStrategy=new S({cachePolicy:`keep`,resampling:this.resampling,acquireTile:e=>this.acquireTile(e),releaseTile:e=>this.releaseTile(e),tileInfoView:this._tileInfoView}),p(this,this.layer)){let e=this._highlightView=new v({view:this.view,graphics:this._highlightGraphics,requestUpdateCallback:()=>this.requestUpdate(),container:new w(this.view.featuresTilingScheme),defaultPointSymbolEnabled:!1});this.container.addChild(this._highlightView.container),this._popupHighlightHelper=new m({createFetchPopupFeaturesQueryGeometry:(e,t)=>h(e,t,this.view),highlightGraphics:this._highlightGraphics,highlightGraphicUpdated:({graphic:t,property:n})=>e.graphicUpdateHandler({graphic:t,property:n}),layerView:this,updatingHandles:this._updatingHandles})}this.requestUpdate(),this.addAttachHandles(this._updatingHandles.add(()=>this.resampling,()=>{this.doRefresh()})),super.attach()}detach(){super.detach(),this._tileStrategy.destroy(),this._fetchQueue.clear(),this.container.removeAllChildren(),this._popupHighlightHelper?.destroy(),this._highlightView?.destroy(),this._fetchQueue=this._tileStrategy=this._tileInfoView=this._popupHighlightHelper=null}async fetchPopupFeaturesAtTarget(e,t,n){return this._popupHighlightHelper?this._popupHighlightHelper.fetchPopupFeaturesAtTarget(t,n):[]}highlight(e,t){let n=f(e);if(n.length===0)return i();let r=g(t),a=this._addHighlightGraphics(n,r);return i(()=>!this.destroyed&&this._removeHighlightGraphics(n,a))}_onHighlightChange(){let e=this._getHighlightFilterGroups();this._highlightView?.setHighlightFilters(e)}_addHighlightGraphics(e,t){return this._highlightGraphics.addMany(e),this._addHighlightFilter(new l({objectIds:e.map(e=>e.uid)}),t)}_removeHighlightGraphics(e,t){this._highlightGraphics.removeMany(e),this._removeHighlight(t)}viewChange(){this.requestUpdate()}moveEnd(){this.requestUpdate()}supportsSpatialReference(e){return c(this.layer.tileInfo?.spatialReference,e)}async doRefresh(){this.attached&&(this.suspended?(this._tileStrategy.clear(),this.requestUpdate()):(this._fetchQueue.reset(),this._tileStrategy.refresh(e=>this._updatingHandles.addPromise(this._enqueueTileFetch(e)))))}acquireTile(e){let t=this._bitmapView.createTile(e),n=t.bitmap;return[n.x,n.y]=this._tileInfoView.getTileCoords(O,t.key),n.resolution=this._tileInfoView.getTileResolution(t.key),[n.width,n.height]=this._tileInfoView.size,this._updatingHandles.consumePromise(this._enqueueTileFetch(t)),this._bitmapView.addChild(t),this.requestUpdate(),t}releaseTile(e){this._fetchQueue.abort(e.key.id),this._bitmapView.removeChild(e),e.once(`detach`,()=>e.destroy()),this.requestUpdate()}async fetchTile(e,t={}){return this.tilemapCache?this._fetchTileWithTilemapCache(e,t):this._fetchTileWithoutTilemapCache(e,t)}async _fetchTileWithoutTilemapCache(e,t={}){let{signal:n,resamplingLevel:r=0}=t;try{return await this._fetchImage(e,n)}catch(n){if(o(n))throw n;if(!this.resampling)return E(this._tileInfoView.size);if(r<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){let i=new b(n),a=await this._fetchTileWithoutTilemapCache(i,{...t,resamplingLevel:r+1});return D(this._tileInfoView,a,i,e)}}return E(this._tileInfoView.size)}}async _fetchTileWithTilemapCache(e,t={}){let n=this.tilemapCache,{signal:r,resamplingLevel:i=0}=t,a=new b(0,0,0,0),c,l=null;try{if(l=await n.fetchAvailabilityUpsample(e.level,e.row,e.col,a,{signal:r}),!this.resampling&&a.level!==e.level)return await s(t),E(this._tileInfoView.size);c=await this._fetchImage(a,r)}catch(n){if(o(n))throw n;if(this.resampling&&l===`unknown`&&i<3){let n=this._tileInfoView.getTileParentId(e.id);if(n){a.set(n);try{c=await this._fetchTileWithTilemapCache(a,{...t,resamplingLevel:i+1})}catch{}}}}return c?this.resampling?D(this._tileInfoView,c,a,e):c:E(this._tileInfoView.size)}async _enqueueTileFetch(e){if(!this._fetchQueue.has(e.key.id)){try{let t=await this._fetchQueue.push(e.key);e.bitmap.source=t,e.bitmap.width=this._tileInfoView.size[0],e.bitmap.height=this._tileInfoView.size[1],e.once(`attach`,()=>this.requestUpdate()),e.once(`isReady`,()=>this.requestUpdate())}catch(e){o(e)||a.getLogger(this).error(e)}this.requestUpdate()}}async _fetchImage(e,t){return this.layer.fetchImageBitmapTile(e.level,e.row,e.col,{signal:t}).then(({bitmap:e})=>e)}};e([t()],k.prototype,`resampling`,null),e([t()],k.prototype,`tilemapCache`,null),k=e([n(`esri.views.2d.layers.TileLayerView2D`)],k);const A=k;export{A as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import has from"../../../../core/has.js";import{destroyMaybe as e}from"../../../../core/maybe.js";import{throwIfAborted as t}from"../../../../core/promiseUtils.js";import{signal as n}from"../../../../core/signal.js";import r from"../../../layers/support/Path.js";import{AFeatureContainer as i}from"../../engine/AFeatureContainer.js";import{ClipMesh as a}from"../../engine/webgl/ClipMesh.js";import{effectFlag0 as o,filterFlag0 as s}from"../../engine/webgl/definitions.js";import c from"../../engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js";import{Techniques as l}from"../../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import{createHittestQuery as u}from"../../support/hitTestUtils.js";import{renderHighlight as d}from"../support/util.js";import{FeatureTilePresentStrategy as f}from"./FeatureTilePresentStrategy.js";import{RenderState as p}from"./RenderState.js";class m{constructor(e){this.inner=e,this.resolver=Promise.withResolvers()}}class h{constructor(e){this.level=e,this.id=performance.now(),this.messages=[]}}class g{constructor(e,t){this.id=e,this.version=t}}class _ extends i{constructor(e){super(e.view.featuresTilingScheme),this.referenceScale=null,this._updatingChildren=n(!1),this._hitTestsRequests=[],this._firstDrawTime=null,this._renderState=n(null),this._renderStateNext=n(null),this._store=new c,this._subscriptions=new Map,this._presentation=new f,this._updateStatisticsRequests=[],this._lockStatisticUpdates=!1,this._supportsInstanceCleanup=!0,this._shouldUnlockAttributeView=!1,this._layerView=e,this.addTransitionable(this._layerView.featureEffectView)}destroy(){this.removeAllChildren(),this._renderState.value=e(this._renderState.value),this._renderStateNext.value=e(this._renderStateNext.value),super.destroy()}get batching(){return has(`featurelayer-strict-draw-order`)?1:has(`featurelayer-force-marker-text-draw-order`)?2:0}get firstDrawTime(){return this._firstDrawTime}get updating(){let e=this._updatingChildren.value,t=!this._renderState.value||this._renderState.value.updating,n=!!this._renderStateNext.value,r=this.attributeView.updating;return e||t||n||r}subscriptions(){return this._subscriptions.values()}get hasLabels(){return this.labelSchema!==null}get hasHighlight(){return this._layerView.hasHighlight}get children(){return this._renderState.value?this._renderState.value.tiles().filter(e=>e.presenting):[]}get usedMemory(){let e=0;return this._renderState.value&&(e+=this._renderState.value.usedMemory),this._renderStateNext.value&&(e+=this._renderStateNext.value.usedMemory),e+=this.attributeView.usedMemory,e+=this.labelStore.usedMemory,e}get instanceStore(){return this._store}get labelingCollisionInfos(){if(!this._deconflictionInfo)throw Error(`InternalError: DeconflictionInfo not defined. Was update called?`);return this._deconflictionInfo}get labelSchema(){return this._schema?.mesh.factory.labels??null}get layerOrder(){return this._layerView.view.allLayerViews.items.indexOf(this._layerView)}get tiles(){return this._renderState.value?.tiles()}get requiresRefresh(){return!!this._renderState.value?.requiresRefresh}get _instanceStore(){return this._store}_getHeatmapInstance(e){if(this._instanceStore==null||!(e.drawPhase&l.heatmap.drawPhase))return null;for(let e of this._instanceStore.values())if(v(e))return e;return null}update(e,t){this._schema=e,this._deconflictionInfo=t}setCoverage(e){this._presentation.updateCoverage(e)}getPresenting(){let e=new Set;for(let t of this._renderState.value?.tiles()??[])t.presenting&&e.add(t.id);return e}beforeRender(e){if(super.beforeRender(e),this._renderState.value){for(let t of this._renderState.value.tiles())t.setTransform(e.state);if(!e.decluttering){this._presentation.update(this._renderState.value.tiles());for(let e of this._renderState.value.tiles())e.upload(this._instanceStore,this.batching)}this.labelStore.upload(e.context),this._updatingChildren.value=!this.children.every(e=>e.ended&&e.presenting)}}renderChildren(e){switch(super.renderChildren(e),e.drawPhase){case 1:return this._renderMapPhase(e);case 8:return this._renderHighlightPhase(e);case 2:return this._renderLabelPhase(e)}}afterRender(e){super.afterRender(e),e.decluttering||(this._finializeUpdate(),this._updateAttributeView(),this._handleSwapRenderState(),this._renderState.value?.update(this.attributeView.currentEpoch)),this._hitTestsRequests.length&&this.requestRender()}updateStart(e){return this.attributeView.lockTextureUploads(),this._supportsInstanceCleanup=!e&&this._schema?.mesh.factory.symbology.type!==`dictionary`,this.instanceStore.updateStart(this._supportsInstanceCleanup),this.instanceStore}async updateEnd(e,t,n){return this._updateResolver=new m({schema:e,deconflictionInfo:t,invalidateMesh:n}),this.requestRender(),e.mesh.factory.referenceScale&&(this.referenceScale=e.mesh.factory.referenceScale),this._updateResolver.resolver.promise}updateAttributeView(e){this.requestRender(),this.attributeView.requestUpdate(e)}updateSubscriptions(e){for(let{tileId:t,version:n}of e.subscribe)if(this._subscriptions.has(t))this._subscriptions.get(t).version=n;else{let e=new g(t,n);this._subscriptions.set(t,e)}for(let t of e.unsubscribe)this._subscriptions.delete(t),this.removeTile(t)}isFeatureFiltered(e){let t=this.attributeView.getFilterFlags(e),n=t&s,r=this._layerView.featureEffectView.featureEffect==null||this._layerView.featureEffectView.featureEffect.excludedLabelsVisible||t&o;return!(n&&r)}getDisplayStatistics(e,t){let n=this._statisticsByLevel.get(e);return n?n.get(t):null}updateStatistics(e,t){if(this._lockStatisticUpdates){this._updateStatisticsRequests.push({level:e,statistics:t});return}let n=this._statisticsByLevel.get(e);n||(n=new Map,this._statisticsByLevel.set(e,n));for(let e of t)n.set(e.fieldName,{minValue:e.minValue,maxValue:e.maxValue})}beginLevelMeshUpdate(e){if(this._pendingLevelUpdate!=null)throw Error(`InternalError: Pending level mesh update in progress`);return this._pendingLevelUpdate=new h(e),has(`esri-2d-update-debug`)&&console.debug(`FeatureContainer.beginLevelMeshUpdate(level=${e}, id=${this._pendingLevelUpdate.id})`),this._pendingLevelUpdate.id}applyLevelMeshUpdate(e){if(this._pendingLevelUpdate==null)throw Error(`InternalError: No level mesh update to apply`);if(this._pendingLevelUpdate.id!==e)throw Error(`InternalError: Unexpected id`);if(has(`esri-2d-update-debug`)){let{id:e,level:t}=this._pendingLevelUpdate;console.debug(`FeatureContainer.applyLevelMeshUpdate(level=${t}, id=${e})`)}let{level:t,messages:n}=this._pendingLevelUpdate,r=this._renderStateNext.value??this._renderState.value;if(!r)throw Error(`InternalError: No renderState defined`);r.enqueueLevelReplace(t,n),this._pendingLevelUpdate=null,this.requestRender()}lockForOverrides(){this._renderState.value?.lockUploads(),this._lockStatisticUpdates=!0,this.attributeView.locked||(this.attributeView.lockTextureUploads(),this._shouldUnlockAttributeView=!0)}unlockForOverrides(){this._renderState.value?.unlockUploads(),this._shouldUnlockAttributeView&&=(this.attributeView.unlockTextureUploads()&&this.hasLabels&&this.requestDeclutter(),!1),this._lockStatisticUpdates=!1;for(let e of this._updateStatisticsRequests)this.updateStatistics(e.level,e.statistics);this._updateStatisticsRequests=[],this._renderState.value?.flush(this.attributeView.currentEpoch),this.requestRender()}async updateRenderState(e){if(this._renderStateNext.value)throw Error(`InternalError: renderStateNext already exists`);has(`esri-2d-update-debug`)&&console.debug(`Version[${e}] FeatureContainer.updateRenderState`),this._renderStateNext.value=new p(()=>this._stage,e=>this._subscriptions.get(e)?.version,e,this.tilingScheme,this.labelStore)}async swapRenderState(){if(!this._renderStateNext.value)throw Error(`InternalError: renderStateNext not yet created`);if(this._renderStateSwapResolver)throw Error(`InternalError: renderState swap already in progress`);this._renderStateSwapResolver=Promise.withResolvers(),await this._renderStateSwapResolver.promise}async onMessage(e,n){if(t(n),this._pendingLevelUpdate)this._pendingLevelUpdate.messages.push(e);else return this._applyMessage(e)}removeTile(e){(this._renderState.value||this._renderStateNext.value)&&(this._renderState.value&&this._renderState.value.removeTile(e),this._renderStateNext.value&&this._renderStateNext.value.removeTile(e))}async hitTest(e,t){let n=u(e,t);if(!n)return console.warn(`Unexpected hittest input:`,e),{trueHitIds:[],candidateHitIds:[]};let i=this._hitTestsRequests.find(({query:e})=>n.hittestType===e.hittestType&&n.input===e.input&&n.options===e.options),o=Promise.withResolvers();if(i)i.resolvers.push(o);else{if(n.hittestType===`polygon`&&(n.polygonMesh=await a.create(new r({path:[n.input.map(e=>[e.x,e.y])]})),!n.polygonMesh))return o.resolve({trueHitIds:[],candidateHitIds:[]}),o.promise;this._hitTestsRequests.push({query:n,resolvers:[o]})}return this.requestRender(),o.promise}getSortKeys(e){let t=new Set(e),n=new Map;for(let e of this.children)if(e.getSortKeys(t).forEach((e,t)=>n.set(t,e)),n.size===t.size)break;return n}get hasAnimation(){return this.hasLabels}doRender(e){let{minScale:t,maxScale:n}=this._layerView.layer.effectiveScaleRange,r=e.state.scale;r<=(t||1/0)&&r>=n&&super.doRender(e)}setStencilReference(e){if(this._getHeatmapInstance(e)!=null)for(let e of this.children)e.stencilRef=l.heatmap.getStencilReference(e);else super.setStencilReference(e)}createRenderParams(e){let t=super.createRenderParams(e);return t.referenceScale=this.referenceScale,t}_applyMessage(e){let t=e.inner;if(!this._subscriptions.has(t.id))return;let n=this._subscriptions.get(t.id);if(n.version!==t.subscriptionVesrion){if(has(`esri-2d-update-debug`)){let e=`${t.subscriptionVesrion} != ${n.version}`;console.debug(`Version[${e}] Tile[${t.id}] FeatureContainer - Dropping message, outdated version]`,t)}return}let r=this._renderStateNext.value??this._renderState.value;if(!r)throw Error(`InternalError: No renderState defined`);r.version!==t.version&&console.error(`InternalError: Version mismatch. [renderState: ${r.version}, message: ${t.version}]`),r.enqueueUpdate(e),this.requestRender()}_finializeUpdate(){if(!this._updateResolver)return;let{schema:e,deconflictionInfo:t,invalidateMesh:n}=this._updateResolver.inner;this._schema=e,this._deconflictionInfo=t,this.attributeView.unlockTextureUploads(),this.hasLabels&&(this.labelStore.invalidateColliders(),this.requestDeclutter()),this.instanceStore.updateEnd(this._supportsInstanceCleanup),n&&(this.restartAllAnimations(),this.swapRenderState());let r=e.mesh.factory.symbology.type===`heatmap`?`target-defer`:`eager`;this._presentation.updateStrategy(r),this._updateResolver.resolver.resolve(),this._updateResolver=null,this.requestRender()}_handleSwapRenderState(){if(this._renderStateSwapResolver&&this._renderStateNext.value){has(`esri-2d-update-debug`)&&console.debug(`Version[${this._renderStateNext.value}] FeatureContainer.update.swapRenderState`);let e=this._renderState.value,t=new Set,n=new Set;for(let r of e?.tiles()??[])r.decluttering&&t.add(r.id),r.presenting&&n.add(r.id);this._renderState.value=this._renderStateNext.value,this._renderStateNext.value=null,this._renderState.value.flush(this.attributeView.currentEpoch),e?.destroy(),this._renderStateSwapResolver.resolve(),this._renderStateSwapResolver=null;for(let e of this._renderState.value.tiles())t.has(e.id)&&(e.decluttering=!0),n.has(e.id)&&(e.presenting=!0);this.requestRender(),this.hasLabels&&this.requestDeclutter()}}_renderMapPhase(e){this._layerView.featureEffectView.hasEffects?(this._renderOutsideEffect(e),this._renderInsideEffect(e)):this._renderFeatures(e,0),this._hitTestsRequests.length>0&&this._renderHittest(e)}_renderHighlightPhase(e){this.hasHighlight&&d(e,!1,e=>{this._renderFeatures(e,1)})}_renderLabelPhase(e){this._renderFeatures(e,0)}_renderInsideEffect(e){let t=e.painter.effects.insideEffect;t.bind(e),this._renderFeatures(e,2),t.draw(e,this._layerView.featureEffectView.includedEffects),t.unbind()}_renderOutsideEffect(e){let t=e.painter.effects.outsideEffect;t.bind(e),this._renderFeatures(e,3),t.draw(e,this._layerView.featureEffectView.excludedEffects),t.unbind()}_renderHittest(e){let t=e.painter.effects.hittest,n=this._hitTestsRequests.shift(),r=n.query.hittestType;t.prepareResources(e,r),t.render(e,n,e=>{let r=t.getHittestableTiles(e,this.children,n.query);for(let t of r)this._renderTile(t,e,0)}),r===`polygon`&&n.query.polygonMesh&&n.query.polygonMesh.destroy(),t.readback(e,n)}_renderFeatures(e,t){let n=this._getHeatmapInstance(e);n==null?this._renderGeometryFeatures(e,t):this._renderHeatmapFeatures(e,t,n)}_renderGeometryFeatures(e,t){for(let n of this.children)n.visible&&this._renderTile(n,e,t)}_renderHeatmapFeatures(e,t,n){for(let n of this.children)n.visible&&this._renderTile(n,e,t,19);n.techniqueRef.renderResolvePass(e,n)}_renderTile(e,t,n,r){t.selection=n;let i=e.getDisplayList()?.render(t,r)??!1;this._firstDrawTime==null&&i&&t.drawPhase===1&&(this._firstDrawTime=performance.now(),this._layerView.emitFirstDraw(this._firstDrawTime))}}function v(e){return e.techniqueRef.type===19}export{_ as FeatureContainer};
|
|
2
|
+
import has from"../../../../core/has.js";import{destroyMaybe as e}from"../../../../core/maybe.js";import{throwIfAborted as t}from"../../../../core/promiseUtils.js";import{signal as n}from"../../../../core/signal.js";import r from"../../../layers/support/Path.js";import{AFeatureContainer as i}from"../../engine/AFeatureContainer.js";import{ClipMesh as a}from"../../engine/webgl/ClipMesh.js";import{effectFlag0 as o,filterFlag0 as s}from"../../engine/webgl/definitions.js";import c from"../../engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js";import{Techniques as l}from"../../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import{createHittestQuery as u}from"../../support/hitTestUtils.js";import{renderHighlight as d}from"../support/util.js";import{FeatureTilePresentStrategy as f}from"./FeatureTilePresentStrategy.js";import{RenderState as p}from"./RenderState.js";class m{constructor(e){this.inner=e,this.resolver=Promise.withResolvers()}}class h{constructor(e){this.level=e,this.id=performance.now(),this.messages=[]}}class g{constructor(e,t){this.id=e,this.version=t}}class _ extends i{constructor(e){super(e.view.featuresTilingScheme),this.referenceScale=null,this._updatingChildren=n(!1),this._hitTestsRequests=[],this._firstDrawTime=null,this._renderState=n(null),this._renderStateNext=n(null),this._store=new c,this._subscriptions=new Map,this._presentation=new f,this._updateStatisticsRequests=[],this._lockStatisticUpdates=!1,this._supportsInstanceCleanup=!0,this._shouldUnlockAttributeView=!1,this._layerView=e,this.addTransitionable(this._layerView.featureEffectView)}destroy(){this.removeAllChildren(),this._renderState.value=e(this._renderState.value),this._renderStateNext.value=e(this._renderStateNext.value),super.destroy()}get batching(){return has(`featurelayer-strict-draw-order`)?1:has(`featurelayer-force-marker-text-draw-order`)?2:0}get firstDrawTime(){return this._firstDrawTime}get updating(){let e=this._updatingChildren.value,t=!this._renderState.value||this._renderState.value.updating,n=!!this._renderStateNext.value,r=this.attributeView.updating;return e||t||n||r}subscriptions(){return this._subscriptions.values()}get hasLabels(){return this.labelSchema!==null}get hasHighlight(){return this._layerView.hasHighlight}get children(){return this._renderState.value?this._renderState.value.tiles().filter(e=>e.presenting):[]}get usedMemory(){let e=0;return this._renderState.value&&(e+=this._renderState.value.usedMemory),this._renderStateNext.value&&(e+=this._renderStateNext.value.usedMemory),e+=this.attributeView.usedMemory,e+=this.labelStore.usedMemory}get instanceStore(){return this._store}get labelingCollisionInfos(){if(!this._deconflictionInfo)throw Error(`InternalError: DeconflictionInfo not defined. Was update called?`);return this._deconflictionInfo}get labelSchema(){return this._schema?.mesh.factory.labels??null}get layerOrder(){return this._layerView.view.allLayerViews.items.indexOf(this._layerView)}get tiles(){return this._renderState.value?.tiles()}get requiresRefresh(){return!!this._renderState.value?.requiresRefresh}get _instanceStore(){return this._store}_getHeatmapInstance(e){if(this._instanceStore==null||!(e.drawPhase&l.heatmap.drawPhase))return null;for(let e of this._instanceStore.values())if(v(e))return e;return null}update(e,t){this._schema=e,this._deconflictionInfo=t}setCoverage(e){this._presentation.updateCoverage(e)}getPresenting(){let e=new Set;for(let t of this._renderState.value?.tiles()??[])t.presenting&&e.add(t.id);return e}beforeRender(e){if(super.beforeRender(e),this._renderState.value){for(let t of this._renderState.value.tiles())t.setTransform(e.state);if(!e.decluttering){this._presentation.update(this._renderState.value.tiles());for(let e of this._renderState.value.tiles())e.upload(this._instanceStore,this.batching)}this.labelStore.upload(e.context),this._updatingChildren.value=!this.children.every(e=>e.ended&&e.presenting)}}renderChildren(e){switch(super.renderChildren(e),e.drawPhase){case 1:return this._renderMapPhase(e);case 8:return this._renderHighlightPhase(e);case 2:return this._renderLabelPhase(e)}}afterRender(e){super.afterRender(e),e.decluttering||(this._finializeUpdate(),this._updateAttributeView(),this._handleSwapRenderState(),this._renderState.value?.update(this.attributeView.currentEpoch)),this._hitTestsRequests.length&&this.requestRender()}updateStart(e){return this.attributeView.lockTextureUploads(),this._supportsInstanceCleanup=!e&&this._schema?.mesh.factory.symbology.type!==`dictionary`,this.instanceStore.updateStart(this._supportsInstanceCleanup),this.instanceStore}async updateEnd(e,t,n){return this._updateResolver=new m({schema:e,deconflictionInfo:t,invalidateMesh:n}),this.requestRender(),e.mesh.factory.referenceScale&&(this.referenceScale=e.mesh.factory.referenceScale),this._updateResolver.resolver.promise}updateAttributeView(e){this.requestRender(),this.attributeView.requestUpdate(e)}updateSubscriptions(e){for(let{tileId:t,version:n}of e.subscribe)if(this._subscriptions.has(t))this._subscriptions.get(t).version=n;else{let e=new g(t,n);this._subscriptions.set(t,e)}for(let t of e.unsubscribe)this._subscriptions.delete(t),this.removeTile(t)}isFeatureFiltered(e){let t=this.attributeView.getFilterFlags(e),n=t&s,r=this._layerView.featureEffectView.featureEffect==null||this._layerView.featureEffectView.featureEffect.excludedLabelsVisible||t&o;return!(n&&r)}getDisplayStatistics(e,t){let n=this._statisticsByLevel.get(e);return n?n.get(t):null}updateStatistics(e,t){if(this._lockStatisticUpdates){this._updateStatisticsRequests.push({level:e,statistics:t});return}let n=this._statisticsByLevel.get(e);n||(n=new Map,this._statisticsByLevel.set(e,n));for(let e of t)n.set(e.fieldName,{minValue:e.minValue,maxValue:e.maxValue})}beginLevelMeshUpdate(e){if(this._pendingLevelUpdate!=null)throw Error(`InternalError: Pending level mesh update in progress`);return this._pendingLevelUpdate=new h(e),has(`esri-2d-update-debug`)&&console.debug(`FeatureContainer.beginLevelMeshUpdate(level=${e}, id=${this._pendingLevelUpdate.id})`),this._pendingLevelUpdate.id}applyLevelMeshUpdate(e){if(this._pendingLevelUpdate==null)throw Error(`InternalError: No level mesh update to apply`);if(this._pendingLevelUpdate.id!==e)throw Error(`InternalError: Unexpected id`);if(has(`esri-2d-update-debug`)){let{id:e,level:t}=this._pendingLevelUpdate;console.debug(`FeatureContainer.applyLevelMeshUpdate(level=${t}, id=${e})`)}let{level:t,messages:n}=this._pendingLevelUpdate,r=this._renderStateNext.value??this._renderState.value;if(!r)throw Error(`InternalError: No renderState defined`);r.enqueueLevelReplace(t,n),this._pendingLevelUpdate=null,this.requestRender()}lockForOverrides(){this._renderState.value?.lockUploads(),this._lockStatisticUpdates=!0,this.attributeView.locked||(this.attributeView.lockTextureUploads(),this._shouldUnlockAttributeView=!0)}unlockForOverrides(){this._renderState.value?.unlockUploads(),this._shouldUnlockAttributeView&&=(this.attributeView.unlockTextureUploads()&&this.hasLabels&&this.requestDeclutter(),!1),this._lockStatisticUpdates=!1;for(let e of this._updateStatisticsRequests)this.updateStatistics(e.level,e.statistics);this._updateStatisticsRequests=[],this._renderState.value?.flush(this.attributeView.currentEpoch),this.requestRender()}async updateRenderState(e){if(this._renderStateNext.value)throw Error(`InternalError: renderStateNext already exists`);has(`esri-2d-update-debug`)&&console.debug(`Version[${e}] FeatureContainer.updateRenderState`),this._renderStateNext.value=new p(()=>this._stage,e=>this._subscriptions.get(e)?.version,e,this.tilingScheme,this.labelStore)}async swapRenderState(){if(!this._renderStateNext.value)throw Error(`InternalError: renderStateNext not yet created`);if(this._renderStateSwapResolver)throw Error(`InternalError: renderState swap already in progress`);this._renderStateSwapResolver=Promise.withResolvers(),await this._renderStateSwapResolver.promise}async onMessage(e,n){if(t(n),this._pendingLevelUpdate)this._pendingLevelUpdate.messages.push(e);else return this._applyMessage(e)}removeTile(e){(this._renderState.value||this._renderStateNext.value)&&(this._renderState.value&&this._renderState.value.removeTile(e),this._renderStateNext.value&&this._renderStateNext.value.removeTile(e))}async hitTest(e,t){let n=u(e,t);if(!n)return console.warn(`Unexpected hittest input:`,e),{trueHitIds:[],candidateHitIds:[]};let i=this._hitTestsRequests.find(({query:e})=>n.hittestType===e.hittestType&&n.input===e.input&&n.options===e.options),o=Promise.withResolvers();if(i)i.resolvers.push(o);else{if(n.hittestType===`polygon`&&(n.polygonMesh=await a.create(new r({path:[n.input.map(e=>[e.x,e.y])]})),!n.polygonMesh))return o.resolve({trueHitIds:[],candidateHitIds:[]}),o.promise;this._hitTestsRequests.push({query:n,resolvers:[o]})}return this.requestRender(),o.promise}getSortKeys(e){let t=new Set(e),n=new Map;for(let e of this.children)if(e.getSortKeys(t).forEach((e,t)=>n.set(t,e)),n.size===t.size)break;return n}get hasAnimation(){return this.hasLabels}doRender(e){let{minScale:t,maxScale:n}=this._layerView.layer.effectiveScaleRange,r=e.state.scale;r<=(t||1/0)&&r>=n&&super.doRender(e)}setStencilReference(e){if(this._getHeatmapInstance(e)!=null)for(let e of this.children)e.stencilRef=l.heatmap.getStencilReference(e);else super.setStencilReference(e)}createRenderParams(e){let t=super.createRenderParams(e);return t.referenceScale=this.referenceScale,t}_applyMessage(e){let t=e.inner;if(!this._subscriptions.has(t.id))return;let n=this._subscriptions.get(t.id);if(n.version!==t.subscriptionVesrion){if(has(`esri-2d-update-debug`)){let e=`${t.subscriptionVesrion} != ${n.version}`;console.debug(`Version[${e}] Tile[${t.id}] FeatureContainer - Dropping message, outdated version]`,t)}return}let r=this._renderStateNext.value??this._renderState.value;if(!r)throw Error(`InternalError: No renderState defined`);r.version!==t.version&&console.error(`InternalError: Version mismatch. [renderState: ${r.version}, message: ${t.version}]`),r.enqueueUpdate(e),this.requestRender()}_finializeUpdate(){if(!this._updateResolver)return;let{schema:e,deconflictionInfo:t,invalidateMesh:n}=this._updateResolver.inner;this._schema=e,this._deconflictionInfo=t,this.attributeView.unlockTextureUploads(),this.hasLabels&&(this.labelStore.invalidateColliders(),this.requestDeclutter()),this.instanceStore.updateEnd(this._supportsInstanceCleanup),n&&(this.restartAllAnimations(),this.swapRenderState());let r=e.mesh.factory.symbology.type===`heatmap`?`target-defer`:`eager`;this._presentation.updateStrategy(r),this._updateResolver.resolver.resolve(),this._updateResolver=null,this.requestRender()}_handleSwapRenderState(){if(this._renderStateSwapResolver&&this._renderStateNext.value){has(`esri-2d-update-debug`)&&console.debug(`Version[${this._renderStateNext.value}] FeatureContainer.update.swapRenderState`);let e=this._renderState.value,t=new Set,n=new Set;for(let r of e?.tiles()??[])r.decluttering&&t.add(r.id),r.presenting&&n.add(r.id);this._renderState.value=this._renderStateNext.value,this._renderStateNext.value=null,this._renderState.value.flush(this.attributeView.currentEpoch),e?.destroy(),this._renderStateSwapResolver.resolve(),this._renderStateSwapResolver=null;for(let e of this._renderState.value.tiles())t.has(e.id)&&(e.decluttering=!0),n.has(e.id)&&(e.presenting=!0);this.requestRender(),this.hasLabels&&this.requestDeclutter()}}_renderMapPhase(e){this._layerView.featureEffectView.hasEffects?(this._renderOutsideEffect(e),this._renderInsideEffect(e)):this._renderFeatures(e,0),this._hitTestsRequests.length>0&&this._renderHittest(e)}_renderHighlightPhase(e){this.hasHighlight&&d(e,!1,e=>{this._renderFeatures(e,1)})}_renderLabelPhase(e){this._renderFeatures(e,0)}_renderInsideEffect(e){let t=e.painter.effects.insideEffect;t.bind(e),this._renderFeatures(e,2),t.draw(e,this._layerView.featureEffectView.includedEffects),t.unbind()}_renderOutsideEffect(e){let t=e.painter.effects.outsideEffect;t.bind(e),this._renderFeatures(e,3),t.draw(e,this._layerView.featureEffectView.excludedEffects),t.unbind()}_renderHittest(e){let t=e.painter.effects.hittest,n=this._hitTestsRequests.shift(),r=n.query.hittestType;t.prepareResources(e,r),t.render(e,n,e=>{let r=t.getHittestableTiles(e,this.children,n.query);for(let t of r)this._renderTile(t,e,0)}),r===`polygon`&&n.query.polygonMesh&&n.query.polygonMesh.destroy(),t.readback(e,n)}_renderFeatures(e,t){let n=this._getHeatmapInstance(e);n==null?this._renderGeometryFeatures(e,t):this._renderHeatmapFeatures(e,t,n)}_renderGeometryFeatures(e,t){for(let n of this.children)n.visible&&this._renderTile(n,e,t)}_renderHeatmapFeatures(e,t,n){for(let n of this.children)n.visible&&this._renderTile(n,e,t,19);n.techniqueRef.renderResolvePass(e,n)}_renderTile(e,t,n,r){t.selection=n;let i=e.getDisplayList()?.render(t,r)??!1;this._firstDrawTime==null&&i&&t.drawPhase===1&&(this._firstDrawTime=performance.now(),this._layerView.emitFirstDraw(this._firstDrawTime))}}function v(e){return e.techniqueRef.type===19}export{_ as FeatureContainer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n,sqlNotIn as r}from"../../../../../core/sql.js";import{isHostedAgolService as i}from"../../../../../layers/support/arcgisLayerUrl.js";import a from"../../../../../layers/support/FeatureFilter.js";import{
|
|
2
|
+
import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n,sqlNotIn as r}from"../../../../../core/sql.js";import{isHostedAgolService as i}from"../../../../../layers/support/arcgisLayerUrl.js";import a from"../../../../../layers/support/FeatureFilter.js";import{createFeatureIdInfo as o}from"./featureServiceUtils.js";import{addFloorFilter as s,hasFloorFilter as c}from"./floorFilterUtils.js";import{getServiceGeometryType as l}from"./geometryUtils.js";import{ExceedsLimitCache as u}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as d,createFeatureSourceSchema as f}from"../schema/SourceSchema.js";import{createServiceTimeSchema as p}from"../schema/TimeSchema.js";import{getSortKey as m}from"../schema/processor/SimpleProcessorSchema.js";import{createStorageSchema as h}from"../schema/processor/StorageSchema.js";import{getAnnotationMatcherSchema as g}from"../../support/annodime/annotationSchema.js";class _{constructor(e){this.layer=e,this._cache=new u}getLabelingDeconflictionInfo(){return[]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,a=!r&&i,o=d(`isSourceHosted`in n&&n.isSourceHosted,a,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return f(n,o,{definitionExpression:this.layer.definitionExpression,queryScaleRanges:this.layer.sublayers.items.map(e=>({subtypeCode:e.subtypeCode,minScale:e.minScale,maxScale:e.maxScale})).concat({subtypeCode:-1,minScale:0,maxScale:0}),displayFilterEnabled:!1,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null,returnM:!1,returnZ:!1})}async createProcessorSchema(e,t,n){let{objectIdField:r,symbolCollection:i,referenceScale:a}=this.layer,o=await g(i,{cimAnalyzer:e.cimAnalyzer,cimResourceManager:e.cimResourceManager,store:e.store,scaleExpression:null,viewRotation:e.viewRotation}),s=m(null,null,r);return{storage:h(null,t.filters),mesh:{properties:{sortKey:s,timeZone:t.timeZone,returnMeshObjectId:!1,displayRefreshVersion:n,currentUser:t.currentUser},strategy:{type:`feature`},factory:{symbology:o,labels:{type:`label`,classes:[]},referenceScale:a}},expressionProperties:{timeExtent:null}}}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}addFilters(e,t){e=s(this.layer,e,t),this.layer.unplacedAnnotationsVisible||(e??=new a,e.where=n(e?.where,`${this.layer.statusField} = 0`));let i=this.layer.sublayers.filter(e=>!v(e,t)).map(e=>e.subtypeCode);if(!i.length)return e;e??=new a;let o=r(this.layer.subtypeField,i.toArray());return e.where=n(e.where,o),e}getUpdateHashProperties(e){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.unplacedAnnotationsVisible,()=>c(this.layer,e)?e.floors:null,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.outFields,()=>this.layer.sublayers.map(({visible:e,minScale:t,maxScale:n})=>({visible:e,minScale:t,maxScale:n}))]}getRenderer(){return null}setGraphicOrigin(e){let t=this.layer.findSublayerForFeature(e);e.layer=e.sourceLayer=this.layer,e.origin=t?.graphicOrigin??this.layer.graphicOrigin}_createServiceInfo(t){let n=this.layer,{capabilities:r,editingInfo:a,globalIdField:s,datesInUnknownTimezone:c,dateFieldsTimeZone:u,subtypeField:d}=n,f=l(n),m=p(n.timeInfo),h=n.spatialReference.toJSON(),g=e(this.layer.parsedUrl),_=this.layer.objectIdField,v=i(g.path),y=t.spatialReference.toJSON();return{type:`feature-service`,source:g,isSourceHosted:v,orderByFields:_,outSpatialReference:y,metadata:{timeReferenceUnknownClient:c,dateFieldsTimeZone:u,subtypeField:d,globalIdField:s,fieldsIndex:n.fieldsIndex.toJSON(),geometryType:f,featureIdInfo:o(n),timeInfo:m,spatialReference:h,outSpatialReference:y,attributeSpatialReference:this.layer.attributeSpatialReference?.toJSON(),subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null,layerType:n.type,hasM:!1,hasZ:!1},queryMetadata:{supportsCacheHint:r.query.supportsCacheHint,supportsFormatPBF:r.query.supportsFormatPBF,supportsQuantization:!1,maxRecordCount:r.query.maxRecordCount,tileMaxRecordCount:r.query.tileMaxRecordCount,supportsCompactGeometry:r.query.supportsCompactGeometry,supportsDefaultSpatialReference:r.query.supportsDefaultSpatialReference,supportsMaxRecordCountFactor:r.query.supportsMaxRecordCountFactor,supportsCentroidOnDegeneratedQuantizedGeometry:r.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:r.query.supportsDegeneratedQuantizedGeometry,lastEditDate:a?.lastEditDate?.getTime(),supportsReturnExceededLimitGeometries:r.query.supportsReturnExceededLimitGeometries}}}}function v(e,n){return e.visible&&(e.minScale===0||t(n.scale,e.minScale)||n.scale<e.minScale)&&(e.maxScale===0||t(n.scale,e.maxScale)||n.scale>e.maxScale)}export{_ as AnnotationLayerAdapter};
|