@arcgis/core 6.0.0-next.43 → 6.0.0-next.45
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/Basemap.d.ts +2 -1
- package/Camera.d.ts +2 -1
- package/Graphic.d.ts +2 -1
- package/Ground.d.ts +2 -1
- package/Map.d.ts +2 -1
- package/PopupTemplate.d.ts +2 -1
- package/WebDocument2D.d.ts +2 -1
- package/WebMap.d.ts +9 -1
- package/WebMap.js +1 -1
- package/WebScene.d.ts +2 -1
- package/WebScene.js +1 -1
- package/analysis/Analysis.d.ts +2 -1
- package/analysis/DimensionSimpleStyle.d.ts +2 -1
- package/analysis/LengthDimension.d.ts +2 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +2 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +2 -1
- package/analysis/SlicePlane.d.ts +2 -1
- package/analysis/Viewshed.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +2 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -1
- package/applications/Components/OrientedImageryViewer/ImageViewer/utils.d.ts +3 -1
- package/applications/Components/OrientedImageryViewer/ImageViewer/utils.js +1 -1
- package/applications/Components/OrientedImageryViewer/VideoFeatureCache.js +2 -0
- package/applications/Components/OrientedImageryViewer/galleryUtils.d.ts +2 -1
- package/applications/Components/OrientedImageryViewer/galleryUtils.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/imageUtils.d.ts +756 -0
- package/applications/Components/OrientedImageryViewer/imageUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/measurementUtils.d.ts +15 -0
- package/applications/Components/OrientedImageryViewer/measurementUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/queryFeatures.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/ImageMeasurementWorker.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/constants.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/featureCoverage.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/galleryUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/imageMeasurementWorkerUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/navigation/queries.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/navigation/utils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/panoramicImageProperties.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/services/ImageMeasurementService.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/services/SuperimposeService.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/services/TransformationService.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/NonPanoramicMedia.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/dataCaptureUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/geometryUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/panConstraint.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/resolveMediaProps.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/superimposeUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/typeUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/support/urlUtils.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/symbols.js +2 -0
- package/applications/Components/OrientedImageryViewer/shared/utils.js +2 -0
- package/applications/Components/OrientedImageryViewer/videoUtils.d.ts +15 -0
- package/applications/Components/OrientedImageryViewer/videoUtils.js +2 -0
- package/applications/Components/testUtils.d.ts +9 -0
- package/applications/Components/testUtils.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.d.ts +117 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +4 -4
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/compilerUtils.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/hash.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/isSelfIntersecting.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcgisGlobal.d.ts +6 -3
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00620a90b32352bcdc71.js +1 -0
- package/assets/esri/core/workers/chunks/{fdffefd7de540272a8a6.js → 02feb2550b6878e62e2d.js} +1 -1
- package/assets/esri/core/workers/chunks/06326c8cbe0d644eca16.js +1 -0
- package/assets/esri/core/workers/chunks/{3ec3589f6e74d7cb87cf.js → 090a7d0b0128d20879be.js} +1 -1
- package/assets/esri/core/workers/chunks/{c86d3af148b28ded5875.js → 0ac38ca04285cd5ef1a0.js} +40 -46
- package/assets/esri/core/workers/chunks/{a33ba23aee3f8f40200f.js → 0ac4a3029ba17a9e2492.js} +1 -1
- package/assets/esri/core/workers/chunks/0ae2933ab9b4a6ca56f2.js +1 -0
- package/assets/esri/core/workers/chunks/{18dbee576b7b9dbe69fb.js → 0b480583373b69773333.js} +1 -1
- package/assets/esri/core/workers/chunks/0bfc4e7640058811e10c.js +1 -0
- package/assets/esri/core/workers/chunks/{3de07326da4c47cd2aab.js → 0dc1ac5531f7c8854686.js} +1 -1
- package/assets/esri/core/workers/chunks/0e57bac610d41c7c9ad4.js +1 -0
- package/assets/esri/core/workers/chunks/{2294254af2c6afb560ee.js → 11e313dfca2579e68419.js} +1 -1
- package/assets/esri/core/workers/chunks/{cadd60fa4370284c7ae3.js → 13b40a611224ff5f4697.js} +1 -1
- package/assets/esri/core/workers/chunks/15a18c803a3aafa9a65b.js +1 -0
- package/assets/esri/core/workers/chunks/15a7a3264915fc8d3188.js +1 -0
- package/assets/esri/core/workers/chunks/162de06e54c0f9cba012.js +1 -0
- package/assets/esri/core/workers/chunks/1c61ced6079443fc0ce8.js +1 -0
- package/assets/esri/core/workers/chunks/1c94d4d79952dc4067be.js +1 -0
- package/assets/esri/core/workers/chunks/{804606b194dc9e71d088.js → 1ca9f823caff691e964d.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f4fba4d2339c91c8b3f.js → 1d9b0db37d5f3819ffca.js} +1 -1
- package/assets/esri/core/workers/chunks/200da109115eab8b2480.js +1 -0
- package/assets/esri/core/workers/chunks/{edd36a1fc80b1d29907e.js → 21939ef53bc71b42370f.js} +1 -1
- package/assets/esri/core/workers/chunks/230189a28552ab00546d.js +1 -0
- package/assets/esri/core/workers/chunks/{81b9894e81cce3490984.js → 2515ce2ef279cdd4d5fa.js} +1 -1
- package/assets/esri/core/workers/chunks/27a5c6be4f847900d6ed.js +1 -0
- package/assets/esri/core/workers/chunks/{45b5a61c4e9fbd9ca0b3.js → 27f0bbde1e9fa3f06d46.js} +1 -1
- package/assets/esri/core/workers/chunks/{d51bb11baadc741c46bc.js → 29a437a2b7b3a9b3e104.js} +1 -1
- package/assets/esri/core/workers/chunks/{070684943698fa43c2b4.js → 2a224bc845c9bf682c54.js} +1 -1
- package/assets/esri/core/workers/chunks/2c619c50cdcc37652c0b.js +1 -0
- package/assets/esri/core/workers/chunks/2c7f3fb74a076acf9b30.js +1 -0
- package/assets/esri/core/workers/chunks/{bc38def1983089514e4b.js → 2e9d2f0a4e3c84d2ac2e.js} +1 -1
- package/assets/esri/core/workers/chunks/{9fe1812aad6e566aea31.js → 30c5b584e8658b2b3607.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae6dc159be974ca0e8da.js → 32ba94e59b411d3ff063.js} +1 -1
- package/assets/esri/core/workers/chunks/{67efdd296007a809586c.js → 3463b52d633a9336af28.js} +1 -1
- package/assets/esri/core/workers/chunks/{864194927d05ebc4cc31.js → 35426786de409d42a87f.js} +1 -1
- package/assets/esri/core/workers/chunks/{898359be6996fd9763b8.js → 377158a19c9d6ef11387.js} +1 -1
- package/assets/esri/core/workers/chunks/394b329e64d880cdb500.js +1 -0
- package/assets/esri/core/workers/chunks/{ca2adcbcf44454484fd5.js → 3a295fab549ae3caf9df.js} +1 -1
- package/assets/esri/core/workers/chunks/3a3b57abfb92494cac84.js +1 -0
- package/assets/esri/core/workers/chunks/{fd031150d3a7f896e6b3.js → 3cbb3c4e0e60a874ac6d.js} +1 -1
- package/assets/esri/core/workers/chunks/3e67d50a2b2f8f837831.js +29 -0
- package/assets/esri/core/workers/chunks/{50763ea061d5fb3f2e49.js → 4136c4de42b8818e2710.js} +1 -1
- package/assets/esri/core/workers/chunks/41d674e73b57c8abe838.js +1 -0
- package/assets/esri/core/workers/chunks/{0cfdeb53fb7d5532cf01.js → 425347186c279bcc595c.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ccf9535013fe672c93b.js → 434a7ef5b25d83593b50.js} +1 -1
- package/assets/esri/core/workers/chunks/{4fe10650ba3cd30aa9a2.js → 46d0db736c6e7decbcf6.js} +1 -1
- package/assets/esri/core/workers/chunks/{cca8bd07bcd1d267a2e8.js → 489b37c459e1af116aeb.js} +1 -1
- package/assets/esri/core/workers/chunks/49c21c11621ff077e401.js +1 -0
- package/assets/esri/core/workers/chunks/{bfb8fc6b940bd5510e29.js → 4eab4e74c6a479c5f930.js} +1 -1
- package/assets/esri/core/workers/chunks/{5fd4d3cb3c9350131a59.js → 4f8a915795f107b772c5.js} +1 -1
- package/assets/esri/core/workers/chunks/5565b4e7c31d31a7e546.js +1 -0
- package/assets/esri/core/workers/chunks/{344f5334ad95c7974349.js → 5744c7350e4e2eb73aa9.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d3e92a3367a3ddc02bd.js → 57e0bf4be8a166d5b1eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{3dd49f910834a2fb2142.js → 5b3db2c40feaefb7cbc0.js} +1 -1
- package/assets/esri/core/workers/chunks/5ba40e98e9300d1ebc85.js +1 -0
- package/assets/esri/core/workers/chunks/60137300db0e0c3caf13.js +1 -0
- package/assets/esri/core/workers/chunks/63d2645a744dce469bbb.js +1 -0
- package/assets/esri/core/workers/chunks/649e4ecb1d9e6da3fcd7.js +1 -0
- package/assets/esri/core/workers/chunks/6637fb99033bfa7646d4.js +1 -0
- package/assets/esri/core/workers/chunks/68b4ce0b2e754ac2e552.js +1 -0
- package/assets/esri/core/workers/chunks/69c338d1d359075371bc.js +1 -0
- package/assets/esri/core/workers/chunks/{6b4c3411f63a9ad9354c.js → 72020d86e3fc7ecc139f.js} +1 -1
- package/assets/esri/core/workers/chunks/{9630234267098115de4d.js → 73ab4f0275a85b9671ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{449a2dee17b54946f245.js → 7b7208237123e948f170.js} +1 -1
- package/assets/esri/core/workers/chunks/{5529831dd891382c79df.js → 7d866911d1171d25ca78.js} +1 -1
- package/assets/esri/core/workers/chunks/7eddde6c4249f46c67f3.js +1 -0
- package/assets/esri/core/workers/chunks/82160bd873cdb5a23557.js +1 -0
- package/assets/esri/core/workers/chunks/82e238375582f90dc94c.js +1 -0
- package/assets/esri/core/workers/chunks/831d896587d10fb689dc.js +1 -0
- package/assets/esri/core/workers/chunks/{ca204c110438f7315790.js → 834bbda7719b04301f74.js} +1 -1
- package/assets/esri/core/workers/chunks/835ccd95f2d312ecda5a.js +1 -0
- package/assets/esri/core/workers/chunks/8385bede56cc95d1a388.js +1 -0
- package/assets/esri/core/workers/chunks/8a8c9a3969b7016c20d9.js +1 -0
- package/assets/esri/core/workers/chunks/8c1ae93dae934aedc6dc.js +1 -0
- package/assets/esri/core/workers/chunks/{ef274db3fa260eadf371.js → 8cddfdbab3ad3809462f.js} +1 -1
- package/assets/esri/core/workers/chunks/8cec3f48e995aab3d62e.js +1 -0
- package/assets/esri/core/workers/chunks/{076e8d2e08ff2a013736.js → 8f1dd383502432d8a039.js} +1 -1
- package/assets/esri/core/workers/chunks/{78a69594c82d37aecbfb.js → 90a7cd7564f2a92199cc.js} +1 -1
- package/assets/esri/core/workers/chunks/98e3f7ab4bfbabf0b952.js +1 -0
- package/assets/esri/core/workers/chunks/99a72b65afdcd3ee091a.js +1 -0
- package/assets/esri/core/workers/chunks/{be04f40f8b403befd0ef.js → 9bb90097368b200fa730.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7398cfd8bbd041bd635.js → 9bf77f92760aacbd636f.js} +1 -1
- package/assets/esri/core/workers/chunks/{237a1f68a0efbfe5b77c.js → 9e7622379d777ea88018.js} +1 -1
- package/assets/esri/core/workers/chunks/9fb4c10d5b3e32bc86e9.js +1 -0
- package/assets/esri/core/workers/chunks/{564d7f2e58fbc16853c0.js → a8bedc53d4a316953108.js} +1 -1
- package/assets/esri/core/workers/chunks/{f2dab9fcd90ce38ae3d1.js → a8fbef765a6fb68e1115.js} +1 -1
- package/assets/esri/core/workers/chunks/aaac620f93a20fbd3f08.js +1 -0
- package/assets/esri/core/workers/chunks/ab684cce869973ea71cf.js +1 -0
- package/assets/esri/core/workers/chunks/ad787100602e18dde650.js +1 -0
- package/assets/esri/core/workers/chunks/{cb1642ea8b66231cbfb5.js → af70a81620203c030f5b.js} +1 -1
- package/assets/esri/core/workers/chunks/{efff269424d76f1dbb15.js → b10850c48f4eee60b8a9.js} +1 -1
- package/assets/esri/core/workers/chunks/{f11eaab5354cc6aa9569.js → b25104337f2495a4296a.js} +1 -1
- package/assets/esri/core/workers/chunks/{784d6c6949284ed6e10b.js → b3707d2cd2f4b2f70889.js} +1 -1
- package/assets/esri/core/workers/chunks/b3c0c9c91bcdbbb8e719.js +1 -0
- package/assets/esri/core/workers/chunks/b89b634e9d38b5a51d33.js +1 -0
- package/assets/esri/core/workers/chunks/bb6573d794bbe670216a.js +1 -0
- package/assets/esri/core/workers/chunks/{8ebaf5754e86a45b0497.js → be11cec9979ed5e9738e.js} +1 -1
- package/assets/esri/core/workers/chunks/c063de8f57a393280c39.js +1 -0
- package/assets/esri/core/workers/chunks/{14ed0c34b910eba3434e.js → c473c8b480de9802711b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b3dbcf43f136ba2dadc5.js → c67ce7896789ac7275b2.js} +1 -1
- package/assets/esri/core/workers/chunks/c75cc72a306a617d9cd8.js +1 -0
- package/assets/esri/core/workers/chunks/{394ae3199c78a94c6a2a.js → c85336a50a4994a2a7eb.js} +1 -1
- package/assets/esri/core/workers/chunks/ccb0046b883286e65429.js +1 -0
- package/assets/esri/core/workers/chunks/cf684026e7f1ab7df4f7.js +1 -0
- package/assets/esri/core/workers/chunks/d19ac8368bb769fa5fba.js +1 -0
- package/assets/esri/core/workers/chunks/d26c9db8c0a772d0923c.js +1 -0
- package/assets/esri/core/workers/chunks/{58d10e0b35968680fd9f.js → d31f6598b76380e8688a.js} +1 -1
- package/assets/esri/core/workers/chunks/d3cd09b2d78ce9f2ea42.js +1 -0
- package/assets/esri/core/workers/chunks/{ad94f54b4c88b3a047bc.js → d4028536542db8b623cc.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb6fb04fe5c8d90d4196.js → d4fe26716c4eca13d493.js} +1 -1
- package/assets/esri/core/workers/chunks/d7270a2db6f3bfcf0565.js +1 -0
- package/assets/esri/core/workers/chunks/d85d1064ba87ea1b1410.js +1 -0
- package/assets/esri/core/workers/chunks/{7a8ca15271e42b6131ac.js → d8b9d14f8d3e82ad26dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{63c4412c16d8a44a5668.js → d99d5aa04e2d74ef57a7.js} +1 -1
- package/assets/esri/core/workers/chunks/{dfd4782b11d6fdca0492.js → d9e75266ac28f934eb61.js} +1 -1
- package/assets/esri/core/workers/chunks/dbf37b1c4e0567d9fb32.js +1 -0
- package/assets/esri/core/workers/chunks/{0c948ad4572000218afc.js → dc9792b2aa55975b8a95.js} +1 -1
- package/assets/esri/core/workers/chunks/dca0e2505a6cbef6f7f5.js +1 -0
- package/assets/esri/core/workers/chunks/ddaa8f8098e4a663e4e5.js +1 -0
- package/assets/esri/core/workers/chunks/df88bb9117967fe72eb4.js +1 -0
- package/assets/esri/core/workers/chunks/{1c378d489c5402888f76.js → e1f5da51115472347b55.js} +1 -1
- package/assets/esri/core/workers/chunks/e2535c83b97725e89256.js +1 -0
- package/assets/esri/core/workers/chunks/{406f24ec13eb30d43405.js → e2ebf0ea3af2e6907987.js} +1 -1
- package/assets/esri/core/workers/chunks/{ffe2077a9df7c838ea27.js → e7719bfbc5875a515a2b.js} +1 -1
- package/assets/esri/core/workers/chunks/{26ceb0ff8d93dbb9b84f.js → ec88631b5033c19f569e.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2cc53ad1a514167e4b8.js → ef8f9b61b829c3bdf999.js} +1 -1
- package/assets/esri/core/workers/chunks/ef9740c4d1bd808af38a.js +1 -0
- package/assets/esri/core/workers/chunks/{f08a2a262a3b55149396.js → f0b897319ca8578df63f.js} +1 -1
- package/assets/esri/core/workers/chunks/{acea0946049136578354.js → f1e87e3ff65d8594e6b3.js} +1 -1
- package/assets/esri/core/workers/chunks/f36376b126c80d0983fb.js +1 -0
- package/assets/esri/core/workers/chunks/f3ca7fa35eb8d55f5907.js +1 -0
- package/assets/esri/core/workers/chunks/{1f9d6180a96d557838e9.js → f4d714d0a1a513861704.js} +1 -1
- package/assets/esri/core/workers/chunks/{14ded73842154d91ef4e.js → f7f73de8c63924e347ab.js} +1 -1
- package/assets/esri/core/workers/chunks/f91e36a104e84d985517.js +1 -0
- package/assets/esri/core/workers/chunks/{69f6d5997b8ff1326e39.js → fa5d4b9a098441ebf505.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c3db7a7c05fa0e81f0a.js → fc9d66fe2cc9e2d31964.js} +1 -1
- package/basemapGallery/PortalBasemapsSource.d.ts +2 -1
- package/basemapGallery/support/BasemapItem.d.ts +2 -1
- package/chunks/AtmosphereCompositing.glsl.js +24 -6
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +32 -25
- package/chunks/ColorMaterial.glsl.js +26 -16
- package/chunks/Component.glsl.js +0 -1
- package/chunks/CypherParser.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/EdgeShader.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/Jpg.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorAffineTransform.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDistance.js +1 -1
- package/chunks/OperatorEquals.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorRelate.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticTree.glsl.js +1 -1
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/Transformation2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/antlr4.web.js +3 -3
- package/chunks/arcgis-knowledge-client-core-simd.js +3 -3
- package/chunks/arcgis-knowledge-client-core.js +3 -3
- package/chunks/basis_encoder.js +2 -2
- package/chunks/basis_transcoder.js +2 -2
- package/{portal/schemas → chunks}/definitions.js +1 -1
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/earcut.js +1 -1
- package/chunks/i3s.js +2 -2
- package/chunks/index.js +2 -2
- package/chunks/lclayout.js +2 -2
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/libtess-f32.js +1 -1
- package/chunks/libtess-f64.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/parquet.js +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/text.js +1 -1
- package/chunks/urlUtils.js +2 -0
- package/chunks/vxlLayer.js +1 -1
- package/chunks/webScene.js +2 -0
- package/config.js +1 -1
- package/core/Accessor.js +1 -1
- package/core/Clonable.d.ts +2 -1
- package/core/Clonable.js +1 -1
- package/core/Collection.js +1 -1
- package/core/Evented.d.ts +2 -1
- package/core/Identifiable.d.ts +2 -1
- package/core/JSONSupport.d.ts +2 -1
- package/core/Loadable.d.ts +2 -1
- package/core/MD5.js +1 -1
- package/core/MemCache.js +1 -1
- package/core/MultiOriginJSONSupport.d.ts +2 -1
- package/core/ObjectPool.js +1 -1
- package/core/Promise.d.ts +2 -1
- package/core/RandomLCG.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.d.ts +2 -1
- package/core/accessorSupport/decorators/subclass.js +1 -1
- package/core/accessorSupport/diffUtils.js +1 -1
- package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
- package/core/accessorSupport/get.js +1 -1
- package/core/colorUtils.js +1 -1
- package/core/has.js +1 -1
- package/core/image/apng.js +1 -1
- package/core/lang.js +1 -1
- package/core/object.js +1 -1
- package/core/pbf.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/core/string.js +1 -1
- package/core/typedArrayUtil.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/editing/sharedTemplates/SharedTemplate.d.ts +2 -1
- package/editing/sharedTemplates/executor/createTemplateExecutor.js +1 -1
- package/effects/FocusArea.d.ts +2 -1
- package/effects/FocusAreaOutline.d.ts +2 -1
- package/effects/FocusAreas.d.ts +2 -1
- package/form/FormTemplate.d.ts +2 -1
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +2 -1
- package/form/elements/inputs/attachments/Input.d.ts +2 -1
- package/geometry/Circle.js +1 -1
- package/geometry/Mesh.d.ts +2 -1
- package/geometry/SpatialReference.d.ts +12 -3
- package/geometry/geodesicUtils.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/libtess.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBoundary.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorLocateBetween.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +2 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +2 -1
- package/geometry/operators/support/jsonConverter.js +2 -2
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/MeshComponent.d.ts +2 -1
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -1
- package/geometry/support/MeshLocalVertexSpace.d.ts +2 -1
- package/geometry/support/MeshMaterial.d.ts +2 -1
- package/geometry/support/MeshTexture.d.ts +2 -1
- package/geometry/support/MeshTextureTransform.d.ts +2 -1
- package/geometry/support/MeshTransform.d.ts +2 -1
- package/geometry/support/MeshVertexAttributes.d.ts +2 -1
- package/geometry/support/buffer/types.js +1 -1
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/frustumPlanes.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/meshUtils/External.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +16 -123
- package/kernel.js +1 -1
- package/layerList/Item.d.ts +2 -1
- package/layerList/ItemPanel.d.ts +2 -1
- package/layerList/TableItem.d.ts +2 -1
- package/layerList/TableItemPanel.d.ts +2 -1
- package/layers/AnnotationFeatureLayer.d.ts +2 -1
- package/layers/BaseDynamicLayer.d.ts +2 -1
- package/layers/BaseElevationLayer.d.ts +2 -1
- package/layers/BaseTileLayer.d.ts +2 -1
- package/layers/BingMapsLayer.d.ts +2 -1
- package/layers/BuildingSceneLayer.d.ts +2 -1
- package/layers/CSVLayer.d.ts +2 -1
- package/layers/CatalogLayer.d.ts +2 -1
- package/layers/DimensionFeatureLayer.d.ts +2 -1
- package/layers/DimensionLayer.d.ts +2 -1
- package/layers/ElevationLayer.d.ts +2 -1
- package/layers/FeatureLayer.d.ts +2 -1
- package/layers/GaussianSplatLayer.d.ts +3 -10
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +2 -1
- package/layers/GeoRSSLayer.d.ts +2 -1
- package/layers/GeospatialPDFLayer.d.ts +2 -1
- package/layers/GraphicsLayer.d.ts +2 -1
- package/layers/GroupLayer.d.ts +2 -1
- package/layers/ILyr3DWasmPerSceneView.js +1 -1
- package/layers/ImageryLayer.d.ts +2 -1
- package/layers/ImageryTileLayer.d.ts +2 -1
- package/layers/IntegratedMesh3DTilesLayer.d.ts +3 -6
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.d.ts +27 -3
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/KMLLayer.d.ts +2 -1
- package/layers/KnowledgeGraphLayer.d.ts +2 -1
- package/layers/Layer.d.ts +2 -1
- package/layers/LineOfSightLayer.d.ts +2 -1
- package/layers/LinkChartLayer.d.ts +2 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/MapImageLayer.d.ts +2 -1
- package/layers/MapNotesLayer.d.ts +2 -1
- package/layers/MapNotesLayer.js +1 -1
- package/layers/MediaLayer.d.ts +2 -1
- package/layers/OGCFeatureLayer.d.ts +2 -1
- package/layers/ParquetLayer.d.ts +2 -33
- package/layers/ParquetLayer.js +1 -1
- package/layers/PointCloudLayer.d.ts +2 -1
- package/layers/RouteLayer.d.ts +2 -1
- package/layers/SceneLayer.d.ts +2 -1
- package/layers/SketchLayer.d.ts +2 -1
- package/layers/StreamLayer.d.ts +2 -1
- package/layers/SubtypeGroupLayer.d.ts +2 -1
- package/layers/TileLayer.d.ts +2 -1
- package/layers/UnknownLayer.d.ts +2 -1
- package/layers/UnsupportedLayer.d.ts +2 -1
- package/layers/VectorTileLayer.d.ts +2 -1
- package/layers/VideoLayer.d.ts +2 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +2 -1
- package/layers/VoxelLayer.d.ts +2 -1
- package/layers/WCSLayer.d.ts +2 -1
- package/layers/WFSLayer.d.ts +3 -2
- package/layers/WMSLayer.d.ts +2 -1
- package/layers/WMTSLayer.d.ts +2 -1
- package/layers/WebTileLayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +2 -1
- package/layers/buildingSublayers/BuildingSublayer.d.ts +2 -1
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
- package/layers/graphics/OptimizedGeometry.js +1 -1
- package/layers/graphics/applyEditsUtils.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/data/FeatureIdInfo.js +1 -1
- package/layers/graphics/data/StreamFeatureManager.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/graphics/sources/csv/csv.js +2 -2
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -1
- package/layers/mixins/APIKeyMixin.d.ts +2 -1
- package/layers/mixins/ArcGISCachedService.d.ts +2 -1
- package/layers/mixins/ArcGISImageService.d.ts +2 -1
- package/layers/mixins/ArcGISMapService.d.ts +2 -1
- package/layers/mixins/BlendLayer.d.ts +2 -1
- package/layers/mixins/CustomParametersMixin.d.ts +2 -1
- package/layers/mixins/DataSeriesLayer.d.ts +2 -1
- package/layers/mixins/DisplayFilteredLayer.d.ts +2 -1
- package/layers/mixins/EditBusLayer.d.ts +2 -1
- package/layers/mixins/FeatureEffectLayer.d.ts +2 -1
- package/layers/mixins/FeatureLayerBase.d.ts +2 -1
- package/layers/mixins/FeatureReductionLayer.d.ts +2 -1
- package/layers/mixins/OperationalLayer.d.ts +2 -1
- package/layers/mixins/OrderedLayer.d.ts +2 -1
- package/layers/mixins/PortalLayer.d.ts +2 -1
- package/layers/mixins/PublishableLayer.d.ts +2 -1
- package/layers/mixins/RasterPresetRendererMixin.d.ts +2 -1
- package/layers/mixins/RefreshableLayer.d.ts +2 -1
- package/layers/mixins/ReloadableLayer.d.ts +2 -1
- package/layers/mixins/ScaleRangeLayer.d.ts +2 -1
- package/layers/mixins/SceneService.d.ts +2 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.d.ts +2 -1
- package/layers/mixins/TemporalLayer.d.ts +2 -1
- package/layers/mixins/TiledImagery.d.ts +2 -1
- package/layers/mixins/TrackableLayer.d.ts +2 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +2 -1
- package/layers/orientedImagery/core/NavigationNode.js +2 -0
- package/layers/orientedImagery/core/imageNavigationUtils.d.ts +2 -0
- package/layers/orientedImagery/core/imageNavigationUtils.js +2 -0
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
- package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/orientedImagery/types.d.ts +3 -0
- package/layers/raster/datasets/RasterFactory.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/pixelRangeUtils.js +1 -1
- package/layers/raster/functions/convolutionUtils.js +1 -1
- package/layers/raster/functions/customBandIndexUtils.js +1 -1
- package/layers/support/AnnotationFeatureSublayer.d.ts +2 -1
- package/layers/support/BuildingFilterMode.d.ts +2 -1
- package/layers/support/BuildingSummaryStatistics.d.ts +2 -1
- package/layers/support/ControlPointsGeoreference.d.ts +2 -1
- package/layers/support/DisplayFilter.d.ts +2 -1
- package/layers/support/DisplayFilterInfo.d.ts +2 -1
- package/layers/support/EditFieldsInfo.d.ts +2 -1
- package/layers/support/ExpressionInfo.d.ts +2 -1
- package/layers/support/FeatureReductionBinning.d.ts +2 -1
- package/layers/support/FeatureReductionCluster.d.ts +2 -1
- package/layers/support/FeatureTemplate.d.ts +2 -1
- package/layers/support/FeatureType.d.ts +2 -1
- package/layers/support/FieldConfiguration.d.ts +2 -1
- package/layers/support/FieldFormat.d.ts +2 -1
- package/layers/support/GeometryEncodingLocation.d.ts +2 -1
- package/layers/support/GeometryEncodingWkb.d.ts +2 -1
- package/layers/support/GeometryFieldsInfo.d.ts +2 -1
- package/layers/support/I3SIntegratedMeshElevationQuery.js +1 -1
- package/layers/support/KMLSublayer.d.ts +2 -1
- package/layers/support/LocalMediaElementSource.d.ts +2 -1
- package/layers/support/MediaElementBase.d.ts +2 -1
- package/layers/support/MosaicRule.js +1 -1
- package/layers/support/ParquetFilesData.d.ts +2 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -1
- package/layers/support/PixelBlock.js +1 -1
- package/layers/support/PlaybackInfo.d.ts +2 -1
- package/layers/support/PortalItemData.d.ts +2 -1
- package/layers/support/Relationship.d.ts +2 -1
- package/layers/support/SceneModifications.d.ts +2 -1
- package/layers/support/SpriteSource.js +1 -1
- package/layers/support/Sublayer.d.ts +2 -1
- package/layers/support/Subtype.d.ts +2 -1
- package/layers/support/SubtypeSublayer.d.ts +2 -1
- package/layers/support/SymbolLayerDrawing.d.ts +2 -1
- package/layers/support/TelemetryData.d.ts +2 -1
- package/layers/support/TelemetryDisplay.d.ts +2 -1
- package/layers/support/TimeInfo.d.ts +2 -1
- package/layers/support/TimeSeriesCalculationMethod.d.ts +2 -1
- package/layers/support/TimeSeriesFieldTimeMapping.d.ts +2 -1
- package/layers/support/TimeSeriesInfo.d.ts +2 -1
- package/layers/support/TrackInfo.d.ts +2 -1
- package/layers/support/TrackPartInfo.d.ts +2 -1
- package/layers/support/VideoTimeExtent.d.ts +2 -1
- package/layers/support/WMSSublayer.d.ts +2 -1
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/csvUtils.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/floorFilterUtils.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/layers/support/schemaValidator.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/layers/video/VideoController.js +21 -21
- package/layers/voxel/VoxelColorStop.d.ts +2 -1
- package/layers/voxel/VoxelDynamicSection.d.ts +2 -1
- package/layers/voxel/VoxelIsosurface.d.ts +2 -1
- package/layers/voxel/VoxelOpacityStop.d.ts +2 -1
- package/layers/voxel/VoxelRangeFilter.d.ts +2 -1
- package/layers/voxel/VoxelSlice.d.ts +2 -1
- package/layers/voxel/VoxelTransferFunctionStyle.d.ts +2 -1
- package/layers/voxel/VoxelUniqueValue.d.ts +2 -1
- package/libs/ajv/ajv.bundle-wrapper.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +2 -1
- package/linkChart/LayoutSettings.d.ts +2 -1
- package/linkChart/LinkChartProperties.d.ts +2 -1
- package/linkChart/NonspatialDataDisplay.d.ts +2 -1
- package/linkChart/OrganicLayoutSettings.d.ts +2 -1
- package/linkChart/RootedLayoutSettings.d.ts +2 -1
- package/networks/Network.d.ts +2 -1
- package/networks/Network.js +1 -1
- package/networks/support/Circuit.d.ts +2 -1
- package/networks/support/CircuitSection.d.ts +2 -1
- package/networks/support/NamedTraceConfiguration.d.ts +2 -1
- package/networks/support/Subcircuit.d.ts +2 -1
- package/networks/support/TraceConfiguration.d.ts +2 -1
- package/networks/support/UNTraceConfiguration.d.ts +2 -1
- package/networks/support/UtilityNetworkLookupHelper.js +1 -1
- package/package.json +5 -5
- package/parcelFabric/ParcelFabric.d.ts +761 -0
- package/parcelFabric/ParcelFabric.js +2 -0
- package/parcelFabric/support/ParcelJobInfo.d.ts +97 -0
- package/parcelFabric/support/ParcelJobInfo.js +2 -0
- package/parcelFabric/support/ParcelParameters.d.ts +48 -0
- package/parcelFabric/support/ParcelParameters.js +2 -0
- package/popup/FeatureModel.d.ts +4 -3
- package/popup/FeaturesModel.d.ts +4 -3
- package/popup/FieldInfo.d.ts +2 -1
- package/popup/content/AttachmentsContent.d.ts +2 -1
- package/popup/content/RelationshipContent.d.ts +2 -1
- package/popup/content/UtilityNetworkAssociationsContent.d.ts +2 -1
- package/popup/support/AttachmentsOrderByInfo.d.ts +2 -1
- package/popup/support/FieldInfoFormat.d.ts +2 -1
- package/popup/support/UtilityNetworkAssociationType.d.ts +2 -1
- package/popup/support/featureUtils.js +1 -1
- package/portal/Portal.d.ts +2 -1
- package/portal/PortalItem.d.ts +2 -1
- package/portal/support/loadUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/ClassBreaksRenderer.d.ts +2 -1
- package/renderers/DictionaryRenderer.d.ts +2 -1
- package/renderers/DotDensityRenderer.d.ts +2 -1
- package/renderers/FlowRenderer.d.ts +8 -6
- package/renderers/PieChartRenderer.d.ts +2 -1
- package/renderers/SimpleRenderer.d.ts +2 -1
- package/renderers/UniqueValueRenderer.d.ts +2 -1
- package/renderers/VectorFieldRenderer.d.ts +2 -1
- package/renderers/mixins/VisualVariablesMixin.d.ts +2 -1
- package/renderers/support/HeatmapLegendOptions.d.ts +2 -1
- package/renderers/support/OthersCategory.d.ts +2 -1
- package/renderers/support/RasterPresetRenderer.d.ts +2 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/RendererLegendOptions.d.ts +2 -1
- package/renderers/support/UniqueValue.d.ts +2 -1
- package/renderers/support/UniqueValueClass.d.ts +2 -1
- package/renderers/support/UniqueValueGroup.d.ts +2 -1
- package/renderers/support/rendererConversion.js +1 -1
- package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +2 -1
- package/request/queue.js +1 -1
- package/rest/featureService/FeatureService.d.ts +2 -1
- package/rest/geoprocessor/utils.js +1 -1
- package/rest/layerSources/DynamicDataLayer.d.ts +2 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +2 -1
- package/rest/networks/support/TraceLocation.d.ts +2 -1
- package/rest/parcelFabric/analyzeByLeastSquaresAdjustment.js +2 -0
- package/rest/parcelFabric/applyLeastSquaresAdjustment.js +2 -0
- package/rest/parcelFabric/assignFeaturesToRecord.js +2 -0
- package/rest/parcelFabric/build.js +2 -0
- package/rest/parcelFabric/changeParcelType.js +2 -0
- package/rest/parcelFabric/clip.js +2 -0
- package/rest/parcelFabric/copyLinesToParcelType.js +2 -0
- package/rest/parcelFabric/createSeeds.js +2 -0
- package/rest/parcelFabric/deleteParcels.js +2 -0
- package/rest/parcelFabric/divide.js +2 -0
- package/rest/parcelFabric/duplicateParcels.js +2 -0
- package/rest/parcelFabric/merge.js +2 -0
- package/rest/parcelFabric/mergeParcelPoints.js +2 -0
- package/rest/parcelFabric/reassignFeaturesToRecord.js +2 -0
- package/rest/parcelFabric/reconstructFromSeeds.js +2 -0
- package/rest/parcelFabric/setParcelLineLabelPosition.js +2 -0
- package/rest/parcelFabric/shrinkToSeed.js +2 -0
- package/rest/parcelFabric/transferParcel.js +2 -0
- package/rest/parcelFabric/updateParcelHistory.js +2 -0
- package/rest/parcelFabric/utils.js +2 -0
- package/rest/print.js +1 -1
- package/rest/support/AttributeBinsFeatureSet.d.ts +2 -1
- package/rest/support/AttributeBinsGrouping.d.ts +2 -1
- package/rest/support/AttributeBinsQuery.d.ts +2 -1
- package/rest/support/AutoIntervalBinParameters.d.ts +2 -1
- package/rest/support/BinParametersBase.d.ts +2 -1
- package/rest/support/CameraInfo.d.ts +2 -1
- package/rest/support/CameraInfoMixin.d.ts +2 -1
- package/rest/support/ClosestFacilityParameters.d.ts +2 -1
- package/rest/support/DataLayer.d.ts +2 -1
- package/rest/support/DateBinTimeInterval.d.ts +2 -1
- package/rest/support/DirectionLine.d.ts +2 -1
- package/rest/support/DirectionPoint.d.ts +2 -1
- package/rest/support/FindImagesParameters.d.ts +2 -1
- package/rest/support/FixedIntervalBinParameters.d.ts +2 -1
- package/rest/support/ImageBoundaryParameters.d.ts +2 -1
- package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
- package/rest/support/ImageInspectionInfo.d.ts +2 -1
- package/rest/support/ImageToMapMultirayParameters.d.ts +2 -1
- package/rest/support/ImageToMapParameters.d.ts +2 -1
- package/rest/support/ImageUrlParameters.d.ts +2 -1
- package/rest/support/ImageVolumeParameters.d.ts +2 -1
- package/rest/support/JobInfo.js +1 -1
- package/rest/support/LastMileDeliveryParameters.d.ts +2 -1
- package/rest/support/LocateSettingBase.d.ts +2 -1
- package/rest/support/LocateSettingSource.d.ts +2 -1
- package/rest/support/LocateSettings.d.ts +2 -1
- package/rest/support/LocateSettingsOverrides.d.ts +2 -1
- package/rest/support/MapToImageParameters.d.ts +2 -1
- package/rest/support/NetworkUrl.d.ts +2 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +2 -1
- package/rest/support/OutDistance.d.ts +2 -1
- package/rest/support/PointBarrier.d.ts +2 -1
- package/rest/support/PolygonBarrier.d.ts +2 -1
- package/rest/support/PolylineBarrier.d.ts +2 -1
- package/rest/support/RouteInfo.d.ts +2 -1
- package/rest/support/RouteParameters.d.ts +2 -1
- package/rest/support/ServiceAreaParameters.d.ts +2 -1
- package/rest/support/Stop.d.ts +2 -1
- package/rest/support/TravelMode.d.ts +2 -1
- package/rest/support/printTaskUtils.js +1 -1
- package/smartMapping/heuristics/scaleRange.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/LayersMixin.d.ts +2 -1
- package/support/TablesMixin.d.ts +2 -1
- package/support/actions/ActionBase.d.ts +2 -1
- package/support/basemapUtils.js +1 -1
- package/symbols/LineStyleMarker3D.d.ts +2 -1
- package/symbols/cim/utils.js +1 -1
- package/symbols/patterns/LinePattern3D.d.ts +2 -1
- package/symbols/patterns/Pattern3D.d.ts +2 -1
- package/symbols/support/ElevationInfo.d.ts +2 -1
- package/symbols/support/OccludedVisibility.d.ts +2 -1
- package/symbols/support/Symbol3DEmissive.d.ts +2 -1
- package/symbols/support/Symbol3DMaterial.d.ts +2 -1
- package/symbols/support/Symbol3DTextBackground.d.ts +2 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/tables/elements/AttributeTableAttachmentElement.d.ts +2 -1
- package/tables/elements/AttributeTableFieldElement.d.ts +2 -1
- package/tables/elements/AttributeTableGroupElement.d.ts +2 -1
- package/tables/elements/AttributeTableRelationshipElement.d.ts +2 -1
- package/tables/support/FieldOrder.d.ts +2 -1
- package/time/TimeInterval.d.ts +2 -1
- package/undoredo/support/ServiceVersionInfo.js +1 -1
- package/versionManagement/VersionManagementService.d.ts +2 -1
- package/versionManagement/VersioningState.d.ts +2 -1
- package/views/2d/engine/flow/dataUtils.js +1 -1
- package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/number.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
- package/views/2d/engine/webgl/util/createMatcher.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/ComputedAttributeStorage.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
- package/views/2d/layers/features/support/StaticBitSet.js +1 -1
- package/views/2d/layers/features/support/rendererUtils.js +1 -1
- package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
- package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +2 -1
- package/views/3d/environment/VirtualLighting.d.ts +2 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/LabelInfo.js +1 -1
- package/views/3d/layers/graphics/extrudePolygon.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/IDBCache.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
- package/views/3d/support/meshProcessing.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ObjectParameters.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -6
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +16 -15
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +3 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +14 -13
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +14 -4
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +2 -0
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionFader.js +2 -0
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +5 -5
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.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/edgeRendering/EdgeUtil.glsl.js +1 -2
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/IndexLayout.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/BreakpointsOwner.d.ts +2 -1
- package/views/DOMContainer.d.ts +2 -1
- package/views/PopupView.d.ts +2 -1
- package/views/SceneView.d.ts +2 -1
- package/views/Theme.d.ts +2 -1
- package/views/VideoView.d.ts +2 -1
- package/views/View.d.ts +2 -1
- package/views/View2D.d.ts +2 -1
- package/views/Viewport2DMixin.d.ts +2 -1
- package/views/analysis/AnalysisView.d.ts +2 -1
- package/views/draw/DrawAction.d.ts +2 -1
- package/views/draw/DrawManipulator3D.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/draw/support/reshapeUtils.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +5 -3
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +6 -3
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/interactive/snapping/featureSources/symbologySnappingCandidates.js +1 -1
- package/views/layers/FeatureLikeLayerView.d.ts +0 -32
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/GraphicsLayerView.d.ts +0 -32
- package/views/layers/GraphicsLayerView.js +1 -1
- package/views/layers/ImageryLayerView.d.ts +1 -62
- package/views/layers/LayerView.d.ts +2 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/PointCloudLayerView.d.ts +2 -1
- package/views/selection/SelectionOperation.js +1 -1
- package/views/support/GeometryWorker.js +1 -1
- package/views/support/flow/dataUtils.js +1 -1
- package/views/support/screenUtils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/support/waitForResources.js +1 -1
- package/views/ui/UI.d.ts +1 -12
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/Program.js +3 -3
- package/views/webgl/RenderingContext.js +1 -1
- package/webdoc/GeotriggersInfo.d.ts +2 -1
- package/webdoc/IPSInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +2 -1
- package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureFilter.d.ts +2 -1
- package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +2 -1
- package/webdoc/geotriggersInfo/Geotrigger.d.ts +2 -1
- package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +2 -1
- package/webdoc/ips/AppleIPSProperties.d.ts +2 -1
- package/webdoc/ips/Configuration.d.ts +2 -1
- package/webdoc/ips/GNSSProperties.d.ts +2 -1
- package/webdoc/ips/PathSnappingProperties.d.ts +2 -1
- package/webdoc/ips/PositioningService.d.ts +2 -1
- package/webdoc/ips/SmoothingProperties.d.ts +2 -1
- package/webdoc/support/SlideThumbnail.d.ts +2 -1
- package/webdoc/support/webdocLoadUtils.js +1 -1
- package/webmap/Bookmark.d.ts +2 -1
- package/webmap/InitialViewProperties.d.ts +2 -1
- package/webscene/Glow.d.ts +2 -1
- package/webscene/InitialViewProperties.d.ts +2 -1
- package/webscene/Presentation.d.ts +2 -1
- package/webscene/Slide.d.ts +2 -1
- package/webscene/SlideLegendInfo.d.ts +2 -1
- package/webscene/spec-certification/api.js +1 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/webscene/support/Description.d.ts +2 -1
- package/webscene/support/FeatureReference.d.ts +2 -1
- package/webscene/support/FeatureReferenceId.d.ts +2 -1
- package/webscene/support/LayerReference.d.ts +2 -1
- package/webscene/support/SlideElements.d.ts +2 -1
- package/webscene/support/SlideEnvironment.d.ts +2 -1
- package/webscene/support/SlideGround.d.ts +2 -1
- package/webscene/support/SlidePopupInfo.d.ts +2 -1
- package/webscene/support/SlideVisibleLayer.d.ts +2 -1
- package/webscene/support/Title.d.ts +2 -1
- package/webscene/support/schemaValidator.js +1 -1
- package/webscene/version.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +2 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +2 -2
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +2 -2
- package/widgets/BasemapLayerList/types.d.ts +3 -3
- package/widgets/BasemapLayerList.d.ts +4 -3
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +2 -1
- package/widgets/Bookmarks.d.ts +2 -1
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +2 -2
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
- package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +2 -2
- package/widgets/CatalogLayerList/types.d.ts +3 -3
- package/widgets/CatalogLayerList.d.ts +5 -4
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Compass/CompassViewModel.d.ts +2 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +2 -1
- package/widgets/Directions/DirectionsViewModel.d.ts +2 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
- package/widgets/Feature/FeatureViewModel.d.ts +2 -1
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +2 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +2 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +2 -1
- package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +2 -1
- package/widgets/FeatureTable/support/TableTemplate.d.ts +2 -1
- package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +2 -1
- package/widgets/Features/FeaturesViewModel.d.ts +2 -1
- package/widgets/FloorFilter/FloorFilterViewModel.d.ts +2 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LayerList/LayerListVisibleElements.d.ts +2 -2
- package/widgets/LayerList/ListItem.d.ts +3 -2
- package/widgets/LayerList/ListItemPanel.d.ts +3 -2
- package/widgets/LayerList/types.d.ts +1 -1
- package/widgets/LayerList.d.ts +2 -1
- package/widgets/Measurement.js +1 -1
- package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +2 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OverlayLayersListViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/featureCoverage.js +1 -1
- package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementWorkerUtils.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
- package/widgets/OrientedImageryViewer/panoramicImageProperties.js +1 -1
- package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
- package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +1 -1
- package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
- package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/navigationViewStateUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
- package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/typeUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
- package/widgets/OrientedImageryViewer/symbols.js +1 -1
- package/widgets/OrientedImageryViewer/types.d.ts +10 -0
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMedia.js +1 -1
- package/widgets/Print/PrintViewModel.d.ts +2 -1
- package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
- package/widgets/Search/SearchSource.d.ts +2 -1
- package/widgets/Search/SearchViewModel.d.ts +2 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/TableList/ListItem.d.ts +4 -3
- package/widgets/TableList/ListItemPanel.d.ts +6 -5
- package/widgets/TableList/TableListViewModel.d.ts +4 -4
- package/widgets/TableList/TableListViewModel.js +1 -1
- package/widgets/TableList/TableListVisibleElements.d.ts +2 -2
- package/widgets/TableList/types.d.ts +5 -5
- package/widgets/TableList.d.ts +5 -4
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/Widget.d.ts +2 -1
- package/widgets/support/GeolocationPositioning.d.ts +2 -1
- package/widgets/support/GoTo.d.ts +2 -1
- package/widgets/types.d.ts +0 -21
- package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +0 -1
- package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +0 -1
- package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +0 -1
- package/assets/esri/core/workers/chunks/1e5c5029b0653047a769.js +0 -1
- package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +0 -1
- package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +0 -1
- package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +0 -1
- package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +0 -1
- package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +0 -1
- package/assets/esri/core/workers/chunks/361d620b3f91868b1490.js +0 -1
- package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +0 -1
- package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +0 -1
- package/assets/esri/core/workers/chunks/3a90b6eafa92f1a68ac5.js +0 -1
- package/assets/esri/core/workers/chunks/3b552afffaa78bf4fe18.js +0 -1
- package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +0 -1
- package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +0 -1
- package/assets/esri/core/workers/chunks/47f0c717acc2c33ea670.js +0 -1
- package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +0 -1
- package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +0 -1
- package/assets/esri/core/workers/chunks/4e03aa5518d46a36661c.js +0 -1
- package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +0 -1
- package/assets/esri/core/workers/chunks/59295b99bdff4045a0e7.js +0 -1
- package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +0 -1
- package/assets/esri/core/workers/chunks/5d908a823b324bafda1e.js +0 -1
- package/assets/esri/core/workers/chunks/5dea74fe52583e77f3ce.js +0 -1
- package/assets/esri/core/workers/chunks/5f1cb79aec9c4a9b7ddc.js +0 -29
- package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +0 -1
- package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +0 -1
- package/assets/esri/core/workers/chunks/6f3732e7ba2d031ba789.js +0 -1
- package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +0 -1
- package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +0 -1
- package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +0 -1
- package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +0 -1
- package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +0 -1
- package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +0 -1
- package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +0 -1
- package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +0 -1
- package/assets/esri/core/workers/chunks/919a6aedf38e9631ee09.js +0 -1
- package/assets/esri/core/workers/chunks/9869c696e6321c8db0a9.js +0 -1
- package/assets/esri/core/workers/chunks/9d0976f5979c4f9154dc.js +0 -1
- package/assets/esri/core/workers/chunks/a332e31165b65a6fb92e.js +0 -1
- package/assets/esri/core/workers/chunks/a4d3944700f1cc240176.js +0 -1
- package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +0 -1
- package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +0 -1
- package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +0 -1
- package/assets/esri/core/workers/chunks/b5e7475cc5fbf31289d3.js +0 -1
- package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +0 -1
- package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +0 -1
- package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +0 -1
- package/assets/esri/core/workers/chunks/c7f49493bd548d5dc1e0.js +0 -1
- package/assets/esri/core/workers/chunks/cb62326b6526cde429c1.js +0 -1
- package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +0 -1
- package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +0 -1
- package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +0 -1
- package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +0 -1
- package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +0 -1
- package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +0 -1
- package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +0 -1
- package/assets/esri/core/workers/chunks/eaf720dfdf6ceca31249.js +0 -1
- package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +0 -1
- package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +0 -1
- package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +0 -1
- package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +0 -1
- package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/Attribution/t9n/messages.zh-TW.json +0 -1
- package/chunks/CloudsComposition.glsl.js +0 -3
- package/popup/content.d.ts +0 -192
- package/popup/content.js +0 -2
- package/portal/schemas/buildingSceneLayerItem.js +0 -2
- package/portal/schemas/gaussianSplatLayerItem.js +0 -2
- package/portal/schemas/integratedMesh3DTilesLayerItem.js +0 -2
- package/portal/schemas/integratedMeshLayerItem.js +0 -2
- package/portal/schemas/pointCloudLayerItem.js +0 -2
- package/portal/schemas/sceneLayerItem.js +0 -2
- package/portal/schemas/webScene.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +0 -2
- package/views/3d/webgl-engine/effects/clouds/CloudsCompositionTechnique.js +0 -2
- package/widgets/Attribution/AttributionViewModel.d.ts +0 -41
- package/widgets/Attribution/AttributionViewModel.js +0 -2
- package/widgets/Attribution.d.ts +0 -105
- package/widgets/Attribution.js +0 -2
- package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +0 -2
- package/widgets/OrientedImageryViewer/videoViewerUtils.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{MaskedColorDefinition as e,MultiplyMaskedColors as t,CreateMaskedFromNaNColor as n}from"../attributes/MaskedColor.glsl.js";import{Float3PassUniform as r}from"../../shaderModules/Float3PassUniform.js";import{Float4PassUniform as i}from"../../shaderModules/Float4PassUniform.js";import{Float4sPassUniform as a}from"../../shaderModules/Float4sPassUniform.js";import{FloatsPassUniform as o}from"../../shaderModules/FloatsPassUniform.js";import{glsl as s}from"../../shaderModules/glsl.js";import{Matrix3PassUniform as
|
|
2
|
+
import{MaskedColorDefinition as e,MultiplyMaskedColors as t,CreateMaskedFromNaNColor as n}from"../attributes/MaskedColor.glsl.js";import{Float3PassUniform as r}from"../../shaderModules/Float3PassUniform.js";import{Float4PassUniform as i}from"../../shaderModules/Float4PassUniform.js";import{Float4sPassUniform as a}from"../../shaderModules/Float4sPassUniform.js";import{FloatsPassUniform as o}from"../../shaderModules/FloatsPassUniform.js";import{glsl as s,If as c}from"../../shaderModules/glsl.js";import{Matrix3PassUniform as l}from"../../shaderModules/Matrix3PassUniform.js";import{vvColorNumber as u}from"../../../materials/VisualVariablePassParameters.js";function d(d,f){let{vertex:p,attributes:m}=d;f.hasVVInstancing&&(f.hasVVSize||f.hasVVColor)&&m.add(`instanceFeatureAttribute`,`vec4`),f.hasVVSize?(p.uniforms.add(new r(`vvSizeMinSize`,e=>e.vvSize.minSize)),p.uniforms.add(new r(`vvSizeMaxSize`,e=>e.vvSize.maxSize)),p.uniforms.add(new r(`vvSizeOffset`,e=>e.vvSize.offset)),p.uniforms.add(new r(`vvSizeFactor`,e=>e.vvSize.factor)),p.uniforms.add(new r(`vvSizeFallback`,e=>e.vvSize.fallback)),p.uniforms.add(new l(`vvSymbolRotationMatrix`,e=>e.vvSize.symbolRotationMatrix)),p.uniforms.add(new r(`vvSymbolAnchor`,e=>e.vvSize.symbolAnchor)),p.code.add(s`vec3 vvScale(vec4 _featureAttribute) {
|
|
3
3
|
if (isnan(_featureAttribute.x)) {
|
|
4
4
|
return vvSizeFallback;
|
|
5
5
|
}
|
|
@@ -7,25 +7,26 @@ return clamp(vvSizeOffset + _featureAttribute.x * vvSizeFactor, vvSizeMinSize, v
|
|
|
7
7
|
}
|
|
8
8
|
vec4 vvTransformPosition(vec3 position, vec4 _featureAttribute) {
|
|
9
9
|
return vec4(vvSymbolRotationMatrix * ( vvScale(_featureAttribute) * (position + vvSymbolAnchor)), 1.0);
|
|
10
|
-
}`),
|
|
10
|
+
}`),p.code.add(s`
|
|
11
11
|
const float eps = 1.192092896e-07;
|
|
12
12
|
vec4 vvTransformNormal(vec3 _normal, vec4 _featureAttribute) {
|
|
13
13
|
vec3 scale = max(vvScale(_featureAttribute), eps);
|
|
14
14
|
return vec4(vvSymbolRotationMatrix * _normal / scale, 1.0);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
${
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
${c(f.hasVVInstancing,s`
|
|
18
|
+
vec4 vvLocalNormal(vec3 _normal) {
|
|
19
|
+
return vvTransformNormal(_normal, instanceFeatureAttribute);
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
vec4 localPosition() {
|
|
23
|
+
return vvTransformPosition(${p.inputs.get(`position`)}, instanceFeatureAttribute);
|
|
24
|
+
}
|
|
25
|
+
`)}
|
|
26
|
+
`)):p.code.add(s`
|
|
27
|
+
vec4 localPosition() { return vec4(${p.inputs.get(`position`)}, 1.0); }
|
|
27
28
|
vec4 vvLocalNormal(vec3 _normal) { return vec4(_normal, 1.0); }
|
|
28
|
-
`),
|
|
29
|
+
`),d.vertex.include(e),f.hasVVColor?(p.constants.add(`vvColorNumber`,`int`,u),p.uniforms.add(new o(`vvColorValues`,u,e=>e.vvColor.values),new a(`vvColorColors`,u,e=>e.vvColor.colors),new i(`vvColorFallback`,e=>e.vvColor.fallback,{supportsNaN:!0})),f.hasVVInstancing&&(d.vertex.include(t),d.vertex.include(n)),p.code.add(s`
|
|
29
30
|
vec4 interpolateVVColor(float value) {
|
|
30
31
|
if (isnan(value)) {
|
|
31
32
|
return vvColorFallback;
|
|
@@ -48,7 +49,7 @@ return vec4(vvSymbolRotationMatrix * ( vvScale(_featureAttribute) * (position +
|
|
|
48
49
|
return interpolateVVColor(featureAttribute.y);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
${
|
|
52
|
+
${f.hasVVInstancing?s`
|
|
52
53
|
vec4 vvColor() {
|
|
53
54
|
return vvGetColor(instanceFeatureAttribute);
|
|
54
55
|
}
|
|
@@ -65,9 +66,9 @@ return vec4(vvSymbolRotationMatrix * ( vvScale(_featureAttribute) * (position +
|
|
|
65
66
|
return color;
|
|
66
67
|
}
|
|
67
68
|
`}
|
|
68
|
-
`)):
|
|
69
|
+
`)):p.code.add(s`vec4 vvColor() {
|
|
69
70
|
return vec4(1.0);
|
|
70
71
|
}
|
|
71
72
|
MaskedColor applyVVColor(MaskedColor color) {
|
|
72
73
|
return color;
|
|
73
|
-
}`)}export{
|
|
74
|
+
}`)}export{d as VisualVariables};
|
|
@@ -37,7 +37,9 @@ foam = foamIntensity2FoamColor(foamIntensityExternal, foamIntensity, skyZenitCol
|
|
|
37
37
|
}
|
|
38
38
|
float correctionViewingFactor = pow(max(dot(v, localUp), 0.0), correctionViewingPowerFactor);
|
|
39
39
|
vec3 normalCorrectedClouds = mix(localUp, n, correctionViewingFactor);
|
|
40
|
-
vec3 reflectedWorld = normalize(reflect(-v, normalCorrectedClouds));`),g.cloudReflections&&_.uniforms.add(d).code.add(p`
|
|
40
|
+
vec3 reflectedWorld = normalize(reflect(-v, normalCorrectedClouds));`),g.cloudReflections&&_.uniforms.add(d).code.add(p`vec3 emission = vec3(0.0);
|
|
41
|
+
vec4 cloudsColor = renderClouds(reflectedWorld, position, emission);
|
|
42
|
+
cloudsColor.rgb += emission;
|
|
41
43
|
cloudsColor.a = 1.0 - cloudsColor.a;
|
|
42
44
|
cloudsColor = pow(cloudsColor, vec4(GAMMA));
|
|
43
45
|
cloudsColor *= clamp(fresnelModifier.y * cloudFresnelModifier[0] - cloudFresnelModifier[1], 0.0, 1.0) * cloudsOpacity;`),g.screenSpaceReflections?_.uniforms.add(l,e,new f(`fadeFactorSSR`,e=>e.screenSpaceReflections.fadeFactor)).code.add(p`vec3 viewDir = normalize(viewPosition);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{fromValues as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{earth as t}from"../../../../../../geometry/support/Ellipsoid.js";import{cloudsHeight as n}from"../../../../environment/weather.js";import{EvaluateAmbientLighting as r}from"../shading/EvaluateAmbientLighting.glsl.js";import{mainLightDirection as
|
|
2
|
+
import{fromValues as e}from"../../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{earth as t}from"../../../../../../geometry/support/Ellipsoid.js";import{cloudsHeight as n}from"../../../../environment/weather.js";import{EvaluateAmbientLighting as r}from"../shading/EvaluateAmbientLighting.glsl.js";import{Gamma as i}from"../shading/Gamma.glsl.js";import{mainLightDirection as a,mainLightIntensity as o}from"../shading/lightingUniforms.js";import{PiUtils as s}from"../shading/PiUtils.glsl.js";import{LookupCloudsFromTextureArray as c}from"./LookupCloudsFromTextureArray.glsl.js";import{BooleanBindUniform as l}from"../../shaderModules/BooleanBindUniform.js";import{Float3BindUniform as u}from"../../shaderModules/Float3BindUniform.js";import{FloatBindUniform as d}from"../../shaderModules/FloatBindUniform.js";import{glsl as f}from"../../shaderModules/glsl.js";import{Matrix4BindUniform as p}from"../../shaderModules/Matrix4BindUniform.js";import{Texture2DArrayBindUniform as m}from"../../shaderModules/Texture2DArrayBindUniform.js";function h(t){let n=t.fragment;n.constants.add(`radiusCloudsSquared`,`float`,g).code.add(f`vec3 intersectWithCloudLayer(vec3 dir, vec3 cameraPosition, vec3 spherePos) {
|
|
3
3
|
float B = 2.0 * dot(cameraPosition, dir);
|
|
4
4
|
float C = dot(cameraPosition, cameraPosition) - radiusCloudsSquared;
|
|
5
5
|
float det = B * B - 4.0 * C;
|
|
6
6
|
float pointIntDist = max(0.0, 0.5 *(-B + sqrt(det)));
|
|
7
7
|
return (cameraPosition + dir * pointIntDist) - spherePos;
|
|
8
|
-
}`),n.uniforms.add(new
|
|
8
|
+
}`),n.uniforms.add(new d(`radiusCurvatureCorrection`,({clouds:e})=>e.parallax.radiusCurvatureCorrection)).code.add(f`vec3 correctForPlanetCurvature(vec3 dir) {
|
|
9
9
|
dir.z = dir.z * (1.0 - radiusCurvatureCorrection) + radiusCurvatureCorrection;
|
|
10
10
|
return dir;
|
|
11
|
-
}`),n.code.add(
|
|
11
|
+
}`),n.code.add(f`vec3 rotateDirectionToAnchorPoint(mat4 rotMat, vec3 inVec) {
|
|
12
12
|
return (rotMat * vec4(inVec, 0.0)).xyz;
|
|
13
|
-
}`),n.include(r),n.constants.add(`
|
|
13
|
+
}`),n.include(r),n.include(s),n.include(i),n.constants.add(`rimColor`,`vec3`,e(.28,.175,.035)),n.constants.add(`sunsetTransitionFactor`,`float`,.3),n.constants.add(`rimScattering`,`float`,140),n.constants.add(`backlightFactor`,`float`,.2),n.constants.add(`backlightScattering`,`float`,10),n.constants.add(`backlightTransition`,`float`,.3),n.uniforms.add(a,o).code.add(f`vec3 calculateCloudColor(vec3 cameraPosition, vec3 worldSpaceRay, vec4 clouds, out vec3 emission) {
|
|
14
14
|
float upDotLight = dot(cameraPosition, mainLightDirection);
|
|
15
15
|
float dirDotLight = max(dot(worldSpaceRay, mainLightDirection), 0.0);
|
|
16
16
|
float sunsetTransition = clamp(pow(max(upDotLight, 0.0), sunsetTransitionFactor), 0.0, 1.0);
|
|
@@ -19,31 +19,32 @@ vec3 combinedLight = clamp((mainLightIntensity + ambientLight )/PI, vec3(0.0), v
|
|
|
19
19
|
vec3 baseCloudColor = pow(combinedLight * pow(clouds.xyz, vec3(GAMMA)), vec3(INV_GAMMA));
|
|
20
20
|
float scatteringMod = max(clouds.a < 0.5 ? clouds.a / 0.5 : - clouds.a / 0.5 + 2.0, 0.0);
|
|
21
21
|
float rimLightIntensity = 0.5 + 0.5 * pow(max(upDotLight, 0.0), 0.35);
|
|
22
|
-
|
|
22
|
+
emission = rimColor * rimLightIntensity * (pow(dirDotLight, rimScattering)) * scatteringMod;
|
|
23
23
|
float additionalLight = backlightFactor * pow(dirDotLight, backlightScattering) * (1. - pow(sunsetTransition, backlightTransition)) ;
|
|
24
|
-
return
|
|
25
|
-
}`),t.include(
|
|
24
|
+
return baseCloudColor * (1.0 + additionalLight);
|
|
25
|
+
}`),t.include(c),n.uniforms.add(new l(`readChannelsRG`,e=>e.clouds.readChannels===0),new m(`cubeMap`,e=>e.clouds.data?.cubeMap?.colorTexture)).code.add(f`vec4 sampleCloud(vec3 rayDir, bool readOtherChannel) {
|
|
26
26
|
vec4 s = lookupCloudsFromTextureArray(cubeMap, rayDir);
|
|
27
27
|
bool readRG = readChannelsRG ^^ readOtherChannel;
|
|
28
28
|
s = readRG ? vec4(vec3(s.r), s.g) : vec4(vec3(s.b), s.a);
|
|
29
29
|
return length(s) == 0.0 ? vec4(s.rgb, 1.0) : s;
|
|
30
|
-
}`),n.uniforms.add(new
|
|
30
|
+
}`),n.uniforms.add(_,new u(`anchorPoint`,e=>e.clouds.parallax.anchorPoint),new u(`anchorPointNew`,e=>e.clouds.parallaxNew.anchorPoint),new p(`rotationClouds`,e=>e.clouds.parallax.transform),new p(`rotationCloudsNew`,e=>e.clouds.parallaxNew.transform),new d(`fadeFactor`,e=>e.clouds.fadeFactor),new l(`crossFade`,e=>e.clouds.fadeState===3)).code.add(f`vec4 renderClouds(vec3 worldRay, vec3 cameraPosition, out vec3 emission) {
|
|
31
31
|
vec3 intersectionPoint = intersectWithCloudLayer(worldRay, cameraPosition, anchorPoint);
|
|
32
32
|
vec3 worldRayRotated = rotateDirectionToAnchorPoint(rotationClouds, normalize(intersectionPoint));
|
|
33
33
|
vec3 worldRayRotatedCorrected = correctForPlanetCurvature(worldRayRotated);
|
|
34
34
|
vec4 cloudData = sampleCloud(worldRayRotatedCorrected, crossFade);
|
|
35
35
|
vec3 cameraPositionN = normalize(cameraPosition);
|
|
36
|
-
vec4 cloudColor = vec4(calculateCloudColor(cameraPositionN, worldRay, cloudData), cloudData.a);
|
|
36
|
+
vec4 cloudColor = vec4(calculateCloudColor(cameraPositionN, worldRay, cloudData, emission), cloudData.a);
|
|
37
37
|
if(crossFade) {
|
|
38
38
|
intersectionPoint = intersectWithCloudLayer(worldRay, cameraPosition, anchorPointNew);
|
|
39
39
|
worldRayRotated = rotateDirectionToAnchorPoint(rotationCloudsNew, normalize(intersectionPoint));
|
|
40
40
|
worldRayRotatedCorrected = correctForPlanetCurvature(worldRayRotated);
|
|
41
41
|
cloudData = sampleCloud(worldRayRotatedCorrected, false);
|
|
42
|
-
|
|
42
|
+
vec3 emissionNew = vec3(0.0);
|
|
43
|
+
vec4 cloudColorNew = vec4(calculateCloudColor(cameraPositionN, worldRay, cloudData, emissionNew), cloudData.a);
|
|
43
44
|
cloudColor = mix(cloudColor, cloudColorNew, fadeFactor);
|
|
45
|
+
emission = mix(emission, emissionNew, fadeFactor);
|
|
44
46
|
}
|
|
45
47
|
float totalTransmittance = length(cloudColor.rgb) == 0.0 ?
|
|
46
|
-
1.0 :
|
|
47
|
-
clamp(cloudColor.a * cloudsOpacity + (1.0 - cloudsOpacity), 0.0 , 1.0);
|
|
48
|
+
1.0 : clamp(cloudColor.a * cloudsOpacity + (1.0 - cloudsOpacity), 0.0 , 1.0);
|
|
48
49
|
return vec4(cloudColor.rgb, totalTransmittance);
|
|
49
|
-
}`)}const
|
|
50
|
+
}`)}const g=(t.radius+n)**2,_=new d(`cloudsOpacity`,e=>e.clouds.opacity);export{h as CloudsParallaxShading,_ as cloudsOpacity};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{clamp as e}from"../../../../../core/mathUtils.js";import{create as t}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{squaredLength as n}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{earth as
|
|
2
|
+
import{clamp as e}from"../../../../../core/mathUtils.js";import{create as t}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{squaredLength as n,lerp as r}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{earth as a}from"../../../../../geometry/support/Ellipsoid.js";import{cameraPosition as o}from"../../core/shaderLibrary/util/cameraUniforms.js";import{Float2PassUniform as s}from"../../core/shaderModules/Float2PassUniform.js";import{FloatsPassUniform as c}from"../../core/shaderModules/FloatsPassUniform.js";import{glsl as l}from"../../core/shaderModules/glsl.js";import{betaRayleigh as u,betaCombined as d}from"./atmosphereUtils.js";import{maxEmissiveStrength as f}from"../../shaders/floatBlendScale.glsl.js";import{SphereIntersect as p}from"../../shaders/SphereIntersect.glsl.js";import{NoParameters as m}from"../../../../webgl/NoParameters.js";class h extends m{constructor(){super(...arguments),this.radii=t()}}function g(e){e.code.add(l`float chapmanApproximation(float thickness, float height, float cosZenith) {
|
|
3
3
|
float c = sqrt(thickness + height);
|
|
4
4
|
float cExpH = c * exp(-height);
|
|
5
5
|
if (cosZenith >= 0.0) {
|
|
@@ -9,9 +9,19 @@ float x0 = sqrt(1.0 - cosZenith * cosZenith) * (thickness + height);
|
|
|
9
9
|
float c0 = sqrt(x0);
|
|
10
10
|
return 2.0 * c0 * exp(thickness - x0) - cExpH / (1.0 - c * cosZenith);
|
|
11
11
|
}
|
|
12
|
-
}`),e.constants.add(`scaleHeight`,`float`,
|
|
12
|
+
}`),e.constants.add(`scaleHeight`,`float`,a.scaleHeight*a.atmosphereHeight).code.add(l`float getOpticalDepth(vec3 position, vec3 dir, float h) {
|
|
13
13
|
return scaleHeight * chapmanApproximation(radii[0] / scaleHeight, h, dot(normalize(position), dir));
|
|
14
|
-
}`),e.
|
|
14
|
+
}`),e.constants.add(`maxEmissiveStrength`,`float`,f).constants.add(`betaMix`,`vec3`,r(b,d,u,.5)).uniforms.add(o,new s(`radii`,e=>e.radii)).code.add(l`float getGlow(float dist, float radius, float intensity) {
|
|
15
|
+
return pow(radius / max(dist, 1e-6), intensity);
|
|
16
|
+
}
|
|
17
|
+
vec3 getSun(vec3 rayDir, vec3 lightDir){
|
|
18
|
+
float scaleFract = (length(cameraPosition) - radii[0]) / scaleHeight;
|
|
19
|
+
float sunOpticalDepth = getOpticalDepth(cameraPosition, rayDir, max(scaleFract, 0.0));
|
|
20
|
+
vec3 sunTransmittance = exp(-betaMix * max(0.0, sunOpticalDepth));
|
|
21
|
+
float mu = clamp(dot(rayDir, lightDir), 0.0, 1.0);
|
|
22
|
+
float sunDisc = smoothstep(0.0, 128.0, clamp(getGlow(1.0 - mu, 3e-5, 3.0), 0.0, 128.0));
|
|
23
|
+
return min(32.0 * sunTransmittance * sunDisc, vec3(maxEmissiveStrength));
|
|
24
|
+
}`),e.include(p),e.constants.add(`planetRadiusReduction`,`float`,v).uniforms.add(new c(`heightParameters`,5,(e,t)=>_(t,e)),o).code.add(l`vec4 planetIntersect(vec3 rayDir) {
|
|
15
25
|
float rayPlanetDistanceReduced = heightParameters[4];
|
|
16
26
|
vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, rayDir, rayPlanetDistanceReduced);
|
|
17
27
|
vec2 rayAtmosphereIntersect = sphereIntersect(cameraPosition, rayDir, heightParameters[1]);
|
|
@@ -30,4 +40,4 @@ start = rayPlanetIntersect.y;
|
|
|
30
40
|
}
|
|
31
41
|
float end = hitsPlanet ? rayPlanetIntersect.x : rayAtmosphereIntersect.y;
|
|
32
42
|
return vec4(0.0, hitsPlanet ? 1.0 : 0.0, start, end);
|
|
33
|
-
}`)}function
|
|
43
|
+
}`)}function _({camera:t},{radii:r}){let i=n(t.eye),o=Math.sqrt(i);return y[0]=o,y[1]=i-r[1]**2,y[2]=e((o-r[0])/a.atmosphereHeight,0,1),y[3]=i-r[0]**2,y[4]=i-(r[0]-v)**2,y}const v=2e4,y=[],b=i();export{g as ChapmanApproximation,h as ChapmanApproximationPassParameters,_ as getHeightParameters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/
|
|
2
|
+
import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderLibrary/util/CloudsParallaxShading.glsl.js";import"../../core/shaderModules/BooleanPassUniform.js";import"../../core/shaderModules/Float3PassUniform.js";import"../../core/shaderModules/Float4PassUniform.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/FloatsPassUniform.js";import"../../core/shaderModules/glsl.js";import"./ChapmanApproximation.glsl.js";import"./ChapmanRaymarching.glsl.js";import"../../shaders/ditherNoise.glsl.js";import"../../shaders/floatBlendScale.glsl.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/SphereIntersect.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"../../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../../chunks/ChapmanAtmosphere.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{lerp as t}from"../../../../../core/mathUtils.js";import{disposeMaybe as n}from"../../../../../core/maybe.js";import{watch as r,syncAndInitial as i,initial as a}from"../../../../../core/reactiveUtils.js";import{subclass as o}from"../../../../../core/accessorSupport/decorators.js";import{set as
|
|
2
|
+
import{__decorate as e}from"tslib";import has from"../../../../../core/has.js";import{lerp as t}from"../../../../../core/mathUtils.js";import{disposeMaybe as n}from"../../../../../core/maybe.js";import{watch as r,syncAndInitial as i,initial as a}from"../../../../../core/reactiveUtils.js";import{subclass as o}from"../../../../../core/accessorSupport/decorators.js";import{copy as s,set as c}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{set as l,length as u}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as d}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{earth as f}from"../../../../../geometry/support/Ellipsoid.js";import{OpaqueEnvironment as p}from"../OpaqueEnvironment.js";import{computeInnerAltitudeFade as m,innerAtmosphereDepth as h}from"./atmosphereUtils.js";import{ChapmanAtmospherePassParameters as g,ChapmanAtmosphereTechnique as _}from"./ChapmanAtmosphereTechnique.js";import{RealisticAtmosphereConfiguration as v}from"./RealisticAtmosphereConfiguration.js";import{createQuadVAO as y}from"../../lib/glUtil3D.js";import{applyTextureResizeModulo as b}from"../../lib/textureUtils.js";import{A as x}from"../../../../../chunks/AtmosphereCompositing.glsl.js";import{AtmosphereCompositingTechnique as S}from"../../shaders/AtmosphereCompositingTechnique.js";import{DepthStencilAttachment as C,ColorAttachment0 as w,PrimitiveType as T}from"../../../../webgl/enums.js";import E from"../../../../../webscene/background/ColorBackground.js";let D=class extends p{constructor(){super(...arguments),this._emissionDisabled=!!has(`disable-feature:emissive-sun`),this._passParameters=new g,this._compositingPassParameters=new x,this._configuration=new v}initialize(){this.addHandles([r(()=>this.view.environment.background,e=>{let t=e instanceof E?e.color.toUnitRGBA():d;l(this._passParameters.backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3])},i),r(()=>this.view.stage?.renderer?.highResolutionAtmosphere,e=>this._passParameters.reduced=!e,i),r(()=>this.view.map.ground.undergroundColor,e=>{this._passParameters.undergroundColor=e?.toUnitRGBA()??d,this.requestRender(1)},a),r(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),i)])}destroy(){this._vao=n(this._vao)}precompile(){this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this._configuration.hasClouds=!!this.bindParameters.clouds.data?.cubeMap?.colorTexture,this._configuration.hasEmissive=this._hasEmissive&&!this._passParameters.reduced,this.techniques.precompile(_,this._configuration),this._passParameters.reduced&&(this._configuration.hasEmissive=this._hasEmissive,this.techniques.precompile(S,this._configuration))}render(){let e=this.input;if(!this.bindParameters.mainDepth)return e;let n=this.renderingContext,r=e.getAttachment(C);this._update(),this._vao??=y(n,1),this.bindParameters.clouds?.isFading&&this.requestRender(2),this._configuration.hasEmissive=this._hasEmissive&&!this._passParameters.reduced;let i=this.techniques.get(_,this._configuration);if(!this._passParameters.reduced)return e.detachDepth(),n.bindFramebuffer(e.fbo),n.bindTechnique(i,this.bindParameters,this._passParameters),n.bindVAO(this._vao),this._emissionDisabled&&n.setDrawBuffers([w]),n.drawArrays(T.TRIANGLE_STRIP,0,4),e.attachDepth(r),e;let a=n.getViewport(),o=this.bindParameters.camera,c=u(o.eye)-f.radius,l,d=f.atmosphereHeight;if(c<d){let e=Math.min(1,Math.max(0,c/d));l=t(.2,.3,e)}else{let e=Math.min(1,Math.max(0,(c-d)/(15*d)));l=t(.3,.6,e)}let p=this.renderingContext.parameters.maxTextureSize,m=b(Math.round(l*o.fullViewport[2]),p),h=b(Math.round(l*o.fullViewport[3]),p);n.setViewport(0,0,m,h);let g=this.fboCache.acquire(m,h,`chapman`);n.bindFramebuffer(g.fbo),n.clearFramebuffer([0,0,0,1],!0,!0),n.bindTechnique(i,this.bindParameters,this._passParameters),n.bindVAO(this._vao),n.drawArrays(T.TRIANGLE_STRIP,0,4),n.setViewport(a.x,a.y,a.width,a.height),this._configuration.hasEmissive=this.bindParameters.emissions!==0;let v=this.techniques.get(S,this._configuration);return s(this._compositingPassParameters.radii,this._passParameters.radii),this._compositingPassParameters.color=g.getTexture(),e.detachDepth(),n.bindFramebuffer(e.fbo),n.bindTechnique(v,this.bindParameters,this._compositingPassParameters),this._emissionDisabled&&n.setDrawBuffers([w]),n.screen.draw(),e.attachDepth(r),g.release(),e}_update(){let e=this.view.basemapTerrain?.getLowerBoundRadius()??0;c(this._passParameters.radii,e,e+f.atmosphereHeight);let t=u(this.bindParameters.camera.eye);this._passParameters.altitudeFade=m(t-e),this._passParameters.innerFadeDistance=2*Math.sqrt((2*e-h)*h)}get _hasEmissive(){return this.bindParameters.emissions!==0&&!this._emissionDisabled}};D=e([o(`esri.views.3d.webgl-engine.effects.atmosphere.ChapmanAtmosphere`)],D);export{D as ChapmanAtmosphere};
|
|
@@ -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{create as n}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as r}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{ReloadableShader as i}from"../../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as a}from"../../core/shaderTechnique/ShaderTechnique.js";import{ChapmanApproximationPassParameters as o}from"./ChapmanApproximation.glsl.js";import{C as s}from"../../../../../chunks/ChapmanAtmosphere.glsl.js";import{Pos2TexF16 as c}from"../../lib/DefaultVertexBufferLayouts.js";import{makePipelineState as l,defaultColorWrite as u,copySource as d,simpleBlendingParams as f}from"../../../../webgl/renderState.js";class p extends o{constructor(){super(...arguments),this.reduced=!1,this.innerFadeDistance=0,this.altitudeFade=0,this.backgroundColor=n(),this.undergroundColor=r()}}let m=class extends a{constructor(e,t){super(e,t,c),this.shader=new i(s,()=>import(`./ChapmanAtmosphere.glsl.js`)),this._reducedPipeline=l({blending:d,depthTest:{func:519},colorWrite:u})}initializePipeline(){return l({blending:f(
|
|
2
|
+
import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import{create as n}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as r}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{ReloadableShader as i}from"../../core/shaderTechnique/ReloadableShader.js";import{ShaderTechnique as a}from"../../core/shaderTechnique/ShaderTechnique.js";import{ChapmanApproximationPassParameters as o}from"./ChapmanApproximation.glsl.js";import{C as s}from"../../../../../chunks/ChapmanAtmosphere.glsl.js";import{Pos2TexF16 as c}from"../../lib/DefaultVertexBufferLayouts.js";import{makePipelineState as l,defaultColorWrite as u,copySource as d,simpleBlendingParams as f}from"../../../../webgl/renderState.js";class p extends o{constructor(){super(...arguments),this.reduced=!1,this.innerFadeDistance=0,this.altitudeFade=0,this.backgroundColor=n(),this.undergroundColor=r()}}let m=class extends a{constructor(e,t){super(e,t,c),this.shader=new i(s,()=>import(`./ChapmanAtmosphere.glsl.js`)),this._reducedPipeline=l({blending:d,depthTest:{func:519},colorWrite:u})}initializePipeline(){return l({blending:f(1,771),depthTest:{func:515},colorWrite:u})}getPipeline(e,t){return t.reduced?this._reducedPipeline:super.getPipeline(e,t)}};m=e([t(`esri.views.3d.webgl-engine.effects.atmosphere.ChapmanAtmosphereTechnique`)],m);export{p as ChapmanAtmospherePassParameters,m as ChapmanAtmosphereTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{disposeMaybe as t}from"../../../../../core/maybe.js";import{watch as n,initial as r}from"../../../../../core/reactiveUtils.js";import{subclass as i}from"../../../../../core/accessorSupport/decorators.js";import{copy as a}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as o}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{InternalRenderCategory as s}from"../../../webgl.js";import{glLayout as c}from"../../../support/buffer/glUtil.js";import{OpaqueEnvironment as l}from"../OpaqueEnvironment.js";import{S as u}from"../../../../../chunks/SimpleAtmosphere.glsl.js";import{SimpleAtmosphereTechnique as d,layout as f}from"./SimpleAtmosphereTechnique.js";import{SimpleAtmosphereTechniqueConfiguration as p}from"./SimpleAtmosphereTechniqueConfiguration.js";import{earthAtmosphereTextureSimple as m}from"./SimpleAtmosphereTexture.js";import{createPolySphereData as h}from"../../lib/GeometryUtil.js";import{VertexArrayObject as g}from"../../lib/VertexArrayObject.js";import{ColorAttachment0 as _,PrimitiveType as v}from"../../../../webgl/enums.js";import{Texture as y}from"../../../../webgl/Texture.js";import{TextureDescriptor as b}from"../../../../webgl/TextureDescriptor.js";import{VertexBuffer as x}from"../../../../webgl/VertexBuffer.js";let S=class extends l{constructor(){super(...arguments),this._configuration=new p,this._passParameters=new u,this._vao=null,this._vaoCount=0}initialize(){this._configuration.geometry=1,this.addHandles([n(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),r)])}destroy(){this._passParameters.texture=t(this._passParameters.texture),this._vao=t(this._vao)}render(e){let t=e.find(({name:e})=>e===s.OPAQUE_ENVIRONMENT),n=this.techniques.getCompiled(d,this._configuration);if(!n)return this.requestRender(1),t;let r=this.renderingContext;if(this._vao||(this._vao=C(r),this._vaoCount=this._vao.vertexCount(`geometry`)),!this._passParameters.texture){let e=new b(1,512);e.wrapMode=33071,e.flipped=!0,this._passParameters.texture=new y(r,e,m)}let i=r.bindTechnique(n,this.bindParameters,this._passParameters);return r.setDrawBuffers([_]),w(T,this.bindParameters.camera.viewMatrix),i.setUniformMatrix4fv(`view`,T),r.bindVAO(this._vao),i.assertCompatibleVertexAttributeLocations(this._vao),r.drawArrays(v.TRIANGLES,0,this._vaoCount),t}};S=e([i(`esri.views.3d.webgl-engine.effects.atmosphere.LocalAtmosphere`)],S);function C(e){let{data:t,indices:n}=h(1,2
|
|
2
|
+
import{__decorate as e}from"tslib";import{disposeMaybe as t}from"../../../../../core/maybe.js";import{watch as n,initial as r}from"../../../../../core/reactiveUtils.js";import{subclass as i}from"../../../../../core/accessorSupport/decorators.js";import{copy as a}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as o}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{InternalRenderCategory as s}from"../../../webgl.js";import{glLayout as c}from"../../../support/buffer/glUtil.js";import{OpaqueEnvironment as l}from"../OpaqueEnvironment.js";import{S as u}from"../../../../../chunks/SimpleAtmosphere.glsl.js";import{SimpleAtmosphereTechnique as d,layout as f}from"./SimpleAtmosphereTechnique.js";import{SimpleAtmosphereTechniqueConfiguration as p}from"./SimpleAtmosphereTechniqueConfiguration.js";import{earthAtmosphereTextureSimple as m}from"./SimpleAtmosphereTexture.js";import{createPolySphereData as h}from"../../lib/GeometryUtil.js";import{VertexArrayObject as g}from"../../lib/VertexArrayObject.js";import{ColorAttachment0 as _,PrimitiveType as v}from"../../../../webgl/enums.js";import{Texture as y}from"../../../../webgl/Texture.js";import{TextureDescriptor as b}from"../../../../webgl/TextureDescriptor.js";import{VertexBuffer as x}from"../../../../webgl/VertexBuffer.js";let S=class extends l{constructor(){super(...arguments),this._configuration=new p,this._passParameters=new u,this._vao=null,this._vaoCount=0}initialize(){this._configuration.geometry=1,this.addHandles([n(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),r)])}destroy(){this._passParameters.texture=t(this._passParameters.texture),this._vao=t(this._vao)}render(e){let t=e.find(({name:e})=>e===s.OPAQUE_ENVIRONMENT),n=this.techniques.getCompiled(d,this._configuration);if(!n)return this.requestRender(1),t;let r=this.renderingContext;if(this._vao||(this._vao=C(r),this._vaoCount=this._vao.vertexCount(`geometry`)),!this._passParameters.texture){let e=new b(1,512);e.wrapMode=33071,e.flipped=!0,this._passParameters.texture=new y(r,e,m)}let i=r.bindTechnique(n,this.bindParameters,this._passParameters);return r.setDrawBuffers([_]),w(T,this.bindParameters.camera.viewMatrix),i.setUniformMatrix4fv(`view`,T),r.bindVAO(this._vao),i.assertCompatibleVertexAttributeLocations(this._vao),r.drawArrays(v.TRIANGLES,0,this._vaoCount),t}};S=e([i(`esri.views.3d.webgl-engine.effects.atmosphere.LocalAtmosphere`)],S);function C(e){let{data:t,indices:n}=h(1,2)[0][1],r=f.createBuffer(n.length),i=r.position;for(let e=0;e<n.length;++e){let r=n[e%3==0?e+2:e%3==2?e-2:e]*3;i.set(e,0,t[r]),i.set(e,1,t[r+1]),i.set(e,2,t[r+2])}return new g(e,new x(e,c(f),r.buffer))}function w(e,t){a(e,t),e[12]=0,e[13]=0,e[14]=0,e[15]=1}const T=o();export{S as LocalAtmosphere};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{__decorate as e}from"tslib";import{parameter as t}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{EmissiveTechniqueConfiguration as n}from"../../shaders/EmissiveTechniqueConfiguration.js";class r extends n{constructor(){super(...arguments),this.hasClouds=!1}}e([t()],r.prototype,`hasClouds`,void 0);export{r as RealisticAtmosphereConfiguration};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../../core/has.js";import{clamp as e}from"../../../../../core/mathUtils.js";import{signal as t}from"../../../../../core/signal.js";import{rotate as n}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{IDENTITY as r,create as i}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{copy as a,squaredLength as o,normalize as s,scale as c,length as l,subtract as u}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as d,fromValues as f}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as p,fromPoints as m,axis as h}from"../../../../../geometry/support/axisAngleDegrees.js";import{earth as g}from"../../../../../geometry/support/Ellipsoid.js";import{heightLimit as _}from"../../../environment/weather.js";import{ensureClouds as v}from"./Clouds.js";class y{constructor(){this._data=t(null),this._startTime=0,this.coverage=0,this.absorption=0,this._readChannels=0,this.parallax=new b,this.parallaxNew=new b,this._anchorPoint=d(),this._fadeState=t(0),this._fadeFactor=t(1)}get data(){return this._data.value}set data(e){this._data.value=e}get readChannels(){return this._readChannels}needsStationaryAnchorUpdate(e){return E&&this._stationaryAnchorPointDistance(e)>D}get fadeState(){return this._fadeState.value}get fadeFactor(){return this._fadeFactor.value}get opacity(){switch(this.fadeState){case 0:return 0;case 4:return 1-this.fadeFactor;case 1:return this.fadeFactor;case 2:case 3:return 1}}fade(t,n,r,i){if(this.isFading&&this.fadeFactor<1&&(this._fadeFactor.value=r?e((n-this._startTime)/(T*r),0,1):1,this.fadeFactor===1&&this._endFade()),this._evaluateState(t,n),i&&this.needsStationaryAnchorUpdate(t))switch(this.fadeState){case 3:a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 1:case 2:a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint)}this._updateParallax(t)}_evaluateState(e,t){let n=e.relativeElevation,r=this._updateAnchorPoint(e);(Math.abs(n)>1.7*_||r>k)&&this.opacity>0?this._startFade(0,t):this.isFading||(Math.abs(n)>_||r>O*k?this.opacity>0&&this._startFade(4,t):v(this.data)&&(this.opacity===0?this._startFade(1,t):this.data.state===2&&(this.fadeState===2?this._startFade(3,t):this._startFade(2,t))))}_updateParallax(e){let t=o(e.eye);this.parallax.radiusCurvatureCorrection=.84*Math.sqrt(Math.max(t-g.radius*g.radius,0))/Math.sqrt(t),m(x,this.parallax.anchorPoint,S),n(this.parallax.transform,r,S[3],h(S)),m(x,this.parallaxNew.anchorPoint,S),n(this.parallaxNew.transform,r,S[3],h(S))}_updateAnchorPoint(e){return s(this._anchorPoint,e.eye),c(this._anchorPoint,this._anchorPoint,g.radius),this.fadeState===0&&this.data?.state===2?(a(this.parallax.anchorPoint,this._anchorPoint),0):l(u(C,this.parallax.anchorPoint,this._anchorPoint))}_stationaryAnchorPointDistance(e){switch(this.fadeState){case 1:case 2:return s(w,e.eye),c(w,w,g.radius),l(u(C,this.parallax.anchorPoint,w));case 3:return s(w,e.eye),c(w,w,g.radius),l(u(C,this.parallaxNew.anchorPoint,w));case 0:case 4:return 0;default:return this.fadeState,0}}requestFade(){this._fadeFactor.value=0}_startFade(e,t){switch(this._fadeState.value=e,this._startTime=t,e){case 3:this.requestFade(),this._switchReadChannels(),a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 1:this.requestFade(),this._switchReadChannels(),a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 4:this.requestFade();break;case 2:this._switchReadChannels(),a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint),this._endFade();break;case 0:this._endFade()}}_endFade(){switch(this._fadeFactor.value=1,this.data&&this.data.state!==2&&(this.data.state=0),this.fadeState){case 3:a(this.parallax.anchorPoint,this.parallaxNew.anchorPoint),this._fadeState.value=2;break;case 1:this._fadeState.value=2;break;case 4:this._fadeState.value=0;break;case 2:case 0:break;default:this.fadeState}}_switchReadChannels(){this.data?.state===2&&(this._readChannels=1-this._readChannels,this.data.state=3)}get isFading(){return this.fadeState===4||this.fadeState===1||this.fadeState===3}}class b{constructor(){this.anchorPoint=d(),this.radiusCurvatureCorrection=0,this.transform=i()}}const x=f(0,0,1),S=p(),C=d(),w=d(),T=1.25,E=!1,D=1e-6,O=.5,k=2e5;export{y as CloudsParameters};
|
|
2
|
+
import"../../../../../core/has.js";import{clamp as e}from"../../../../../core/mathUtils.js";import{signal as t}from"../../../../../core/signal.js";import{rotate as n}from"../../../../../core/libs/gl-matrix-2/math/mat4.js";import{IDENTITY as r,create as i}from"../../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{copy as a,squaredLength as o,normalize as s,scale as c,length as l,subtract as u}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as d,fromValues as f}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as p,fromPoints as m,axis as h}from"../../../../../geometry/support/axisAngleDegrees.js";import{earth as g}from"../../../../../geometry/support/Ellipsoid.js";import{heightLimit as _}from"../../../environment/weather.js";import{ensureClouds as v}from"./Clouds.js";class y{constructor(){this._data=t(null),this._startTime=0,this.coverage=0,this.absorption=0,this._readChannels=0,this.parallax=new b,this.parallaxNew=new b,this._anchorPoint=d(),this._fadeState=t(0),this._fadeFactor=t(1)}get data(){return this._data.value}set data(e){this._data.value=e}get readChannels(){return this._readChannels}needsStationaryAnchorUpdate(e){return E&&this._stationaryAnchorPointDistance(e)>D}get fadeState(){return this._fadeState.value}get fadeFactor(){return this._fadeFactor.value}get opacity(){switch(this.fadeState){case 0:return 0;case 4:return 1-this.fadeFactor;case 1:return this.fadeFactor;case 2:case 3:return 1}}fade(t,n,r,i){if(!this.data)this._endFade();else{if(this.isFading&&this.fadeFactor<1&&(this._fadeFactor.value=r?e((n-this._startTime)/(T*r),0,1):1,this.fadeFactor===1&&this._endFade()),this._evaluateState(t,n),i&&this.needsStationaryAnchorUpdate(t))switch(this.fadeState){case 3:a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 1:case 2:a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint)}this._updateParallax(t)}}_evaluateState(e,t){let n=e.relativeElevation,r=this._updateAnchorPoint(e);(Math.abs(n)>1.7*_||r>k)&&this.opacity>0?this._startFade(0,t):this.isFading||(Math.abs(n)>_||r>O*k?this.opacity>0&&this._startFade(4,t):v(this.data)&&(this.opacity===0?this._startFade(1,t):this.data.state===2&&(this.fadeState===2?this._startFade(3,t):this._startFade(2,t))))}_updateParallax(e){let t=o(e.eye);this.parallax.radiusCurvatureCorrection=.84*Math.sqrt(Math.max(t-g.radius*g.radius,0))/Math.sqrt(t),m(x,this.parallax.anchorPoint,S),n(this.parallax.transform,r,S[3],h(S)),m(x,this.parallaxNew.anchorPoint,S),n(this.parallaxNew.transform,r,S[3],h(S))}_updateAnchorPoint(e){return s(this._anchorPoint,e.eye),c(this._anchorPoint,this._anchorPoint,g.radius),this.fadeState===0&&this.data?.state===2?(a(this.parallax.anchorPoint,this._anchorPoint),0):l(u(C,this.parallax.anchorPoint,this._anchorPoint))}_stationaryAnchorPointDistance(e){switch(this.fadeState){case 1:case 2:return s(w,e.eye),c(w,w,g.radius),l(u(C,this.parallax.anchorPoint,w));case 3:return s(w,e.eye),c(w,w,g.radius),l(u(C,this.parallaxNew.anchorPoint,w));case 0:case 4:return 0;default:return this.fadeState,0}}requestFade(){this._fadeFactor.value=0}_startFade(e,t){switch(this._fadeState.value=e,this._startTime=t,e){case 3:this.requestFade(),this._switchReadChannels(),a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 1:this.requestFade(),this._switchReadChannels(),a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint);break;case 4:this.requestFade();break;case 2:this._switchReadChannels(),a(this.parallax.anchorPoint,this._anchorPoint),a(this.parallaxNew.anchorPoint,this._anchorPoint),this._endFade();break;case 0:this._endFade()}}_endFade(){switch(this._fadeFactor.value=1,this.data&&this.data.state!==2&&(this.data.state=0),this.fadeState){case 3:a(this.parallax.anchorPoint,this.parallaxNew.anchorPoint),this._fadeState.value=2;break;case 1:this._fadeState.value=2;break;case 4:this._fadeState.value=0;break;case 2:case 0:break;default:this.fadeState}}_switchReadChannels(){this.data?.state===2&&(this._readChannels=1-this._readChannels,this.data.state=3)}get isFading(){return this.fadeState===4||this.fadeState===1||this.fadeState===3}}class b{constructor(){this.anchorPoint=d(),this.radiusCurvatureCorrection=0,this.transform=i()}}const x=f(0,0,1),S=p(),C=d(),w=d(),T=1.25,E=!1,D=1e-6,O=.5,k=2e5;export{y as CloudsParameters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
class e{constructor(e,t,n,r,i,a,o,s,c=.5){this.coverage=e,this.density=t,this.absorption=n,this.cloudSize=r,this.detailSize=i,this.smoothness=a,this.cloudHeight=o,this.raymarchingSteps=s,this.median=c}}const t={sunny:new e([0,.6],[.03,.03],[0,0],[.9,.9],[.8,.8],[.7,.7],[.05,.05],0),cloudy:new e([.3,.65],[.2,.4],[0,0],[.85,.85],[.75,.75],[.3,.4],[1,1],2,.6),rainy:new e([.6,.8],[.5,.8],[.1,.5],[.9,.9],[.75,.75],[.5,.5],[1,1],2,.4),snowy:new e([.25,.75],[.3,.3],[0,0],[.95,.95],[.7,.7],[.69,.75],[.3,1],1,.65),foggy:new e([
|
|
2
|
+
class e{constructor(e,t,n,r,i,a,o,s,c=.5){this.coverage=e,this.density=t,this.absorption=n,this.cloudSize=r,this.detailSize=i,this.smoothness=a,this.cloudHeight=o,this.raymarchingSteps=s,this.median=c}}const t={sunny:new e([0,.6],[.03,.03],[0,0],[.9,.9],[.8,.8],[.7,.7],[.05,.05],0),cloudy:new e([.3,.65],[.2,.4],[0,0],[.85,.85],[.75,.75],[.3,.4],[1,1],2,.6),rainy:new e([.6,.8],[.5,.8],[.1,.5],[.9,.9],[.75,.75],[.5,.5],[1,1],2,.4),snowy:new e([.25,.75],[.3,.3],[0,0],[.95,.95],[.7,.7],[.69,.75],[.3,1],1,.65),foggy:new e([0,0],[.5,.5],[0,0],[.95,.95],[.9,.9],[.55,.55],[.3,.3],0)};t.default=t.sunny;const n=t.cloudy.coverage[0]/t.rainy.coverage[0];export{e as CloudPreset,t as cloudPresets,n as rainyToCloudy};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{FloatBindUniform as i}from"../../core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as a}from"../../core/shaderModules/FloatPassUniform.js";import{glsl as o}from"../../core/shaderModules/glsl.js";import{Texture2DPassUniform as s}from"../../core/shaderModules/Texture2DPassUniform.js";import{parameter as c}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{DistanceFalloffPassParameters as l,getDistanceFalloff as u}from"../raymarching/DistanceFalloff.glsl.js";import{FloatBlendScaleConfiguration as d,floatBlendScale as f}from"../../shaders/floatBlendScale.glsl.js";import{ToneMapping as p}from"../../shaders/ToneMapping.glsl.js";class m extends l{constructor(){super(...arguments),this.mipmapLevels=1,this.boost=1,this.scattering=1e-4}}class h extends d{constructor(){super(...arguments),this.hasFog=!1}}e([c()],h.prototype,`hasFog`,void 0);function g(e,c){e.include(f,c),e.include(u),e.include(r),e.include(p),e.uniforms.add(new s(`emissionTexture`,({emission:e})=>e?.attachment),n,new a(`scattering`,({scattering:e})=>e),new a(`boost`,({boost:e})=>1+e*.5),new a(`levels`,({mipmapLevels:e},{camera:t})=>e+1+Math.log2(t.pixelScale)),new i(`pixelRatioCorrection`,({camera:e})=>Math.log2(e.pixelScale)),new s(`mipmapTexture`,({mipmapTexture:e})=>e?.getTexture())).constants.add(`maxScattering`,`float`,t.maxScattering).constants.add(`maxDispersion`,`float`,c.hasFog?1:.1).code.add(o`vec3 readEmission(float level) {
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{FloatBindUniform as i}from"../../core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as a}from"../../core/shaderModules/FloatPassUniform.js";import{glsl as o}from"../../core/shaderModules/glsl.js";import{Texture2DPassUniform as s}from"../../core/shaderModules/Texture2DPassUniform.js";import{parameter as c}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{DistanceFalloffPassParameters as l,getDistanceFalloff as u}from"../raymarching/DistanceFalloff.glsl.js";import{FloatBlendScaleConfiguration as d,floatBlendScale as f}from"../../shaders/floatBlendScale.glsl.js";import{ToneMapping as p}from"../../shaders/ToneMapping.glsl.js";class m extends l{constructor(){super(...arguments),this.mipmapLevels=1,this.boost=1,this.scattering=1e-4}}class h extends d{constructor(){super(...arguments),this.hasFog=!1}}e([c()],h.prototype,`hasFog`,void 0);function g(e,c){e.include(f,c),e.include(u),e.include(r),e.include(p),e.uniforms.add(new s(`emissionTexture`,({emission:e})=>e?.attachment),new i(`emissionFade`,e=>e.emissionFade),n,new a(`scattering`,({scattering:e})=>e),new a(`boost`,({boost:e})=>1+e*.5),new a(`levels`,({mipmapLevels:e},{camera:t})=>e+1+Math.log2(t.pixelScale)),new i(`pixelRatioCorrection`,({camera:e})=>Math.log2(e.pixelScale)),new s(`mipmapTexture`,({mipmapTexture:e})=>e?.getTexture())).constants.add(`maxScattering`,`float`,t.maxScattering).constants.add(`maxDispersion`,`float`,c.hasFog?1:.1).code.add(o`vec3 readEmission(float level) {
|
|
3
3
|
level *= levels;
|
|
4
4
|
level = max(0.0, level - pixelRatioCorrection);
|
|
5
5
|
return level < 1.0 ?
|
|
@@ -38,5 +38,5 @@ emission += readEmission(point) * weight;
|
|
|
38
38
|
weights += weight;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return emission * boost / weights;
|
|
41
|
+
return emission * boost / weights * emissionFade;
|
|
42
42
|
}`)}export{h as EmissiveGlowConfiguration,m as EmissiveGlowPassParameters,g as applyEmissiveGlow};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../../../core/Logger.js";import{getBasisTranscoder as t}from"../../../../libs/basisu/BasisUTranscoder.js";import{readKTX2TextureMetadata as n,readBasisTextureMetadata as r}from"../../../../libs/basisu/textureMetadata.js";import{CompressedTextureFormat as i,SizedPixelFormat as a}from"../../../webgl/enums.js";import{Texture as o}from"../../../webgl/Texture.js";import{getFormatBytesPerElement as s}from"../../../webgl/Util.js";const c=()=>e.getLogger(`esri.views.3d.webgl-engine.lib.BasisUtil`);let l=null,u=null;async function d(){return u??(u=t(),l=await u),u}function f(e,t){let n=r(e);return n?m(n,t):0}function p(e,t){let r=n(e);return r?m(r,t):0}function m({levels:e,hasAlpha:t,width:n,height:r},a){let o=s(t?i.COMPRESSED_RGBA8_ETC2_EAC:i.COMPRESSED_RGB8_ETC2),c=a&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(n*r*o*c)}function h(e){return e.getNumImages()>=1&&!e.isUASTC()}function g(e){return e.getFaces()>=1&&(e.isETC1S()||e.isUASTC())}function _(e,t,n,r){return e?n?{basisFormat:1,internalFormat:r?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}:{basisFormat:0,internalFormat:r?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2}:t?n?{basisFormat:3,internalFormat:i.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{basisFormat:2,internalFormat:i.COMPRESSED_RGB_S3TC_DXT1_EXT}:{basisFormat:13,internalFormat:r?a.SRGB8_ALPHA8:6408}}async function v(e,t,n){l??=await d();let r=new l.BasisFile(new Uint8Array(n));if(!h(r))return null;r.startTranscoding();let i=b(e,t,r.getNumLevels(0),r.getHasAlpha(),r.getImageWidth(0,0),r.getImageHeight(0,0),(e,t)=>r.getImageTranscodedSizeInBytes(0,e,t),(e,t,n)=>r.transcodeImage(n,0,e,t,0,0));return r.close(),r.delete(),i}async function y(e,t,n,r=!1){l??=await d();let i=new l.KTX2File(new Uint8Array(n));if(!g(i))return null;let a=r&&i.getDFDTransferFunc()===2;i.startTranscoding();let o=b(e,t,i.getLevels(),i.getHasAlpha(),i.getWidth(),i.getHeight(),(e,t)=>i.getImageTranscodedSizeInBytes(e,0,0,t),(e,t,n)=>i.transcodeImage(n,e,0,0,t,0,-1,-1),a);return i.close(),i.delete(),o}function b(e,t,n,r,i,a,s,c,l=!1){let{compressedTextureETC:u,compressedTextureS3TC:d}=e.capabilities,{basisFormat:f,internalFormat:p}=_(u!=null,d!=null,r,l),m=t.hasMipmap?n:Math.min(1,n),h=[];for(let e=0;e<m;e++)h.push(new Uint8Array(s(e,f))),c(e,f,h[e]);return t.internalFormat=p,t.hasMipmap=h.length>1,t.samplingMode=t.hasMipmap?9987:9729,t.width=i,t.height=a,new o(e,t,{type:`compressed`,levels:h})}function x(e,t,n){let r=S(n,t.hasMipmap??!1);if(r==null)throw Error(`KTX1 texture data is null`);let{textureData:i,internalFormat:a,width:s,height:c}=r;return t.samplingMode=i.levels.length>1?9987:9729,t.hasMipmap=i.levels.length>1,t.internalFormat=a,t.width=s,t.height=c,new o(e,t,i)}function S(e,t){let n=new Uint32Array(e.buffer,e.byteOffset,16);if(n[0]!==
|
|
2
|
+
import e from"../../../../core/Logger.js";import{getBasisTranscoder as t}from"../../../../libs/basisu/BasisUTranscoder.js";import{readKTX2TextureMetadata as n,readBasisTextureMetadata as r}from"../../../../libs/basisu/textureMetadata.js";import{CompressedTextureFormat as i,SizedPixelFormat as a}from"../../../webgl/enums.js";import{Texture as o}from"../../../webgl/Texture.js";import{getFormatBytesPerElement as s}from"../../../webgl/Util.js";const c=()=>e.getLogger(`esri.views.3d.webgl-engine.lib.BasisUtil`);let l=null,u=null;async function d(){return u??(u=t(),l=await u),u}function f(e,t){let n=r(e);return n?m(n,t):0}function p(e,t){let r=n(e);return r?m(r,t):0}function m({levels:e,hasAlpha:t,width:n,height:r},a){let o=s(t?i.COMPRESSED_RGBA8_ETC2_EAC:i.COMPRESSED_RGB8_ETC2),c=a&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(n*r*o*c)}function h(e){return e.getNumImages()>=1&&!e.isUASTC()}function g(e){return e.getFaces()>=1&&(e.isETC1S()||e.isUASTC())}function _(e,t,n,r){return e?n?{basisFormat:1,internalFormat:r?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}:{basisFormat:0,internalFormat:r?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2}:t?n?{basisFormat:3,internalFormat:i.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{basisFormat:2,internalFormat:i.COMPRESSED_RGB_S3TC_DXT1_EXT}:{basisFormat:13,internalFormat:r?a.SRGB8_ALPHA8:6408}}async function v(e,t,n){l??=await d();let r=new l.BasisFile(new Uint8Array(n));if(!h(r))return null;r.startTranscoding();let i=b(e,t,r.getNumLevels(0),r.getHasAlpha(),r.getImageWidth(0,0),r.getImageHeight(0,0),(e,t)=>r.getImageTranscodedSizeInBytes(0,e,t),(e,t,n)=>r.transcodeImage(n,0,e,t,0,0));return r.close(),r.delete(),i}async function y(e,t,n,r=!1){l??=await d();let i=new l.KTX2File(new Uint8Array(n));if(!g(i))return null;let a=r&&i.getDFDTransferFunc()===2;i.startTranscoding();let o=b(e,t,i.getLevels(),i.getHasAlpha(),i.getWidth(),i.getHeight(),(e,t)=>i.getImageTranscodedSizeInBytes(e,0,0,t),(e,t,n)=>i.transcodeImage(n,e,0,0,t,0,-1,-1),a);return i.close(),i.delete(),o}function b(e,t,n,r,i,a,s,c,l=!1){let{compressedTextureETC:u,compressedTextureS3TC:d}=e.capabilities,{basisFormat:f,internalFormat:p}=_(u!=null,d!=null,r,l),m=t.hasMipmap?n:Math.min(1,n),h=[];for(let e=0;e<m;e++)h.push(new Uint8Array(s(e,f))),c(e,f,h[e]);return t.internalFormat=p,t.hasMipmap=h.length>1,t.samplingMode=t.hasMipmap?9987:9729,t.width=i,t.height=a,new o(e,t,{type:`compressed`,levels:h})}function x(e,t,n){let r=S(n,t.hasMipmap??!1);if(r==null)throw Error(`KTX1 texture data is null`);let{textureData:i,internalFormat:a,width:s,height:c}=r;return t.samplingMode=i.levels.length>1?9987:9729,t.hasMipmap=i.levels.length>1,t.internalFormat=a,t.width=s,t.height=c,new o(e,t,i)}function S(e,t){let n=new Uint32Array(e.buffer,e.byteOffset,16);if(n[0]!==0x58544bab||n[1]!==0xbb313120||n[2]!==0xa1a0a0d)return c().error(`Invalid magic number in KTX1 header`),null;if(n[3]!==67305985||n[5]!==1||n[7]!==i.COMPRESSED_RGB8_ETC2||n[8]!==6407)return c().error(`Unsupported KTX1 image`),null;let r=n[7],a=1,o=n[9],s=n[10];if(o&3||s&3)return null;let l=o,u=s;t!==!1&&(a=Math.max(1,n[14]));let d,f,p=e.byteOffset+64,m=[];for(let t=0;t<a;++t)f=(e[p]|e[p+1]<<8|e[p+2]<<16|e[p+3]<<24)>>>0,p+=4,d=new Uint8Array(e.buffer,p,f),m.push(d),p+=f,o=Math.max(1,o>>1),s=Math.max(1,s>>1);return{textureData:{type:`compressed`,levels:m},internalFormat:r,width:l,height:u}}export{g as checkKTX2,S as createKTX1TextureData,v as createTextureBasis,x as createTextureKTX1,y as createTextureKTX2,f as estimateMemoryBasis,p as estimateMemoryKTX2,d as loadBasisTranscoder,_ as selectBasisTextureFormats};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{releaseMaybe as e}from"../../../../core/maybe.js";import{signal as t}from"../../../../core/signal.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import r from"../../webgl/RenderCamera.js";import{isColor as i}from"../core/shaderLibrary/ShaderOutput.js";import{CloudsParameters as a}from"../effects/clouds/CloudsParameters.js";import{enableOITOffset as o}from"./OrderIndependentTransparency.js";import{ReprojectionUniforms as s}from"./ReprojectionUniforms.js";import{ScreenSpaceReflectionsUniforms as c}from"./ScreenSpaceReflectionsUniforms.js";import{SceneLighting as l}from"../lighting/SceneLighting.js";class u{constructor(e,t){this.width=e,this.height=t}}class d{constructor(e){this.shadowMap=e,this.output=0,this.slot=2,this.planarDistanceToGroundRatio=1,this.metersPerRenderUnit=1,this.hasOccludees=!1,this._emissions=t(0),this.transparentWithoutDepthEmissionDimmingPass=!1,this.useFloatBlend=t(!0),this.enableFillLights=!0,this.alignPixelEnabled=!1,this.decorations=!0,this.frameRendererTarget=0,this.overlayStretch=1,this.viewshedEnabled=!1,this.laserlinesEnabled=!1,this.shadowAnalysisEnabled=!1,this.cutFillComputationEnabled=!1,this.cutFillVisualizationEnabled=!1,this._camera=t(new r),this._inverseViewport=n(),this._oldLighting=new l,this._newLighting=new l,this._fadedLighting=new l,this._lighting=this._newLighting,this.screenSpaceReflections=new c,this.reprojection=new s,this.highlights=[],this.highlightMixOrigin=n(),this.globalIlluminationEnabled=!1,this.hudRenderStyle=0,this.snowCover=0,this.clouds=new a,this.hasShadowHighlights=!1}destroy(){this._camera=this.contentCamera=null,this.mainDepth=this.overlay=this.ssao=this.shadowHighlight=null,this.depth=e(this.depth),this.shadowMap?.dispose()}get emissions(){return this._emissions.value}set emissions(e){this._emissions.value=e}get hasEmission(){switch(this.output){case 0:return this.hasOpaqueEmission;case 1:case 2:return this.hasTransparentEmission;default:return!1}}get hasOpaqueEmission(){return this.emissions===1||this.emissions===3}get hasTransparentEmission(){return this.emissions===2||this.emissions===3}get hasEmissions(){return this.emissions!==0}get camera(){return this._camera.value}set camera(e){this._camera.value=e,this._inverseViewport[0]=1/e.fullViewport[2],this._inverseViewport[1]=1/e.fullViewport[3]}get enableOITOffset(){return o(this.output,this.camera)}get inverseViewport(){return this._inverseViewport}get lighting(){return this._lighting}fadeLighting(){switch(this.clouds.fadeFactor){case 0:this._lighting=this._oldLighting;break;default:this._fadedLighting.lerpLighting(this._oldLighting,this._newLighting,this.clouds.fadeFactor),this._lighting=this._fadedLighting;break;case 1:this._lighting=this._newLighting,this._oldLighting.copyFrom(this._newLighting)}}updateLighting(e,t,n,r){this._oldLighting.copyFrom(this.lighting),this._newLighting.noonFactor=t,this._newLighting.globalFactor=n,this._newLighting.set(e),this._oldLighting.updateLegacy(),r===1&&this.clouds.requestFade(),this.fadeLighting()}get hasScreenSpaceReflections(){return this.frameRendererTarget!==3&&i(this.output)&&this.screenSpaceReflections.enabled&&this.reprojection.lastFrameColor!=null}get highlight(){return this.highlightLevel==null?null:this.highlights[this.highlightLevel]}get depth(){return this._depth}set depth(e){e&&(e.name=`geometry depth`),this._depth=e}get occluder(){return this.slot===10||this.slot===11?this.slot:null}}export{d as BindParameters,u as ViewportSize};
|
|
2
|
+
import{releaseMaybe as e}from"../../../../core/maybe.js";import{signal as t}from"../../../../core/signal.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import r from"../../webgl/RenderCamera.js";import{isColor as i}from"../core/shaderLibrary/ShaderOutput.js";import{CloudsParameters as a}from"../effects/clouds/CloudsParameters.js";import{enableOITOffset as o}from"./OrderIndependentTransparency.js";import{ReprojectionUniforms as s}from"./ReprojectionUniforms.js";import{ScreenSpaceReflectionsUniforms as c}from"./ScreenSpaceReflectionsUniforms.js";import{SceneLighting as l}from"../lighting/SceneLighting.js";class u{constructor(e,t){this.width=e,this.height=t}}class d{constructor(e){this.shadowMap=e,this.output=0,this.slot=2,this.planarDistanceToGroundRatio=1,this.metersPerRenderUnit=1,this.hasOccludees=!1,this._emissions=t(0),this.emissionFade=1,this.transparentWithoutDepthEmissionDimmingPass=!1,this.useFloatBlend=t(!0),this.enableFillLights=!0,this.alignPixelEnabled=!1,this.decorations=!0,this.frameRendererTarget=0,this.overlayStretch=1,this.viewshedEnabled=!1,this.laserlinesEnabled=!1,this.shadowAnalysisEnabled=!1,this.cutFillComputationEnabled=!1,this.cutFillVisualizationEnabled=!1,this._camera=t(new r),this._inverseViewport=n(),this._oldLighting=new l,this._newLighting=new l,this._fadedLighting=new l,this._lighting=this._newLighting,this.screenSpaceReflections=new c,this.reprojection=new s,this.highlights=[],this.highlightMixOrigin=n(),this.globalIlluminationEnabled=!1,this.hudRenderStyle=0,this.snowCover=0,this.clouds=new a,this.hasShadowHighlights=!1}destroy(){this._camera=this.contentCamera=null,this.mainDepth=this.overlay=this.ssao=this.shadowHighlight=null,this.depth=e(this.depth),this.shadowMap?.dispose()}get emissions(){return this._emissions.value}set emissions(e){this._emissions.value=e}get hasEmission(){switch(this.output){case 0:return this.hasOpaqueEmission;case 1:case 2:return this.hasTransparentEmission;default:return!1}}get hasOpaqueEmission(){return this.emissions===1||this.emissions===3}get hasTransparentEmission(){return this.emissions===2||this.emissions===3}get hasEmissions(){return this.emissions!==0}get camera(){return this._camera.value}set camera(e){this._camera.value=e,this._inverseViewport[0]=1/e.fullViewport[2],this._inverseViewport[1]=1/e.fullViewport[3]}get enableOITOffset(){return o(this.output,this.camera)}get inverseViewport(){return this._inverseViewport}get lighting(){return this._lighting}fadeLighting(){switch(this.clouds.fadeFactor){case 0:this._lighting=this._oldLighting;break;default:this._fadedLighting.lerpLighting(this._oldLighting,this._newLighting,this.clouds.fadeFactor),this._lighting=this._fadedLighting;break;case 1:this._lighting=this._newLighting,this._oldLighting.copyFrom(this._newLighting)}}updateLighting(e,t,n,r){this._oldLighting.copyFrom(this.lighting),this._newLighting.noonFactor=t,this._newLighting.globalFactor=n,this._newLighting.set(e),this._oldLighting.updateLegacy(),r===1&&this.clouds.requestFade(),this.fadeLighting()}get hasScreenSpaceReflections(){return this.frameRendererTarget!==3&&i(this.output)&&this.screenSpaceReflections.enabled&&this.reprojection.lastFrameColor!=null}get highlight(){return this.highlightLevel==null?null:this.highlights[this.highlightLevel]}get depth(){return this._depth}set depth(e){e&&(e.name=`geometry depth`),this._depth=e}get occluder(){return this.slot===10||this.slot===11?this.slot:null}}export{d as BindParameters,u as ViewportSize};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{releaseMaybe as t}from"../../../../core/maybe.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as a}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as o}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{RenderNodeOutput as s}from"../../webgl.js";import{BlurEmission as c}from"../effects/glow/BlurEmission.js";import{E as l,a as u}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as d}from"./EmissionCompositeTechnique.js";import{ColorAttachment1 as f,ColorAttachment0 as p}from"../../../webgl/enums.js";let m=class extends c{constructor(){super(...arguments),this.produces=s.COMPOSITE,this.consumes={required:[s.COMPOSITE]},this._configuration=new l,this._passParameters=new u}initialize(){this.addHandles([n(()=>this.bindParameters.emissions!==0,e=>this.produces=e?s.COMPOSITE:`disabled`,r)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.
|
|
2
|
+
import{__decorate as e}from"tslib";import{releaseMaybe as t}from"../../../../core/maybe.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as a}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as o}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{RenderNodeOutput as s}from"../../webgl.js";import{BlurEmission as c}from"../effects/glow/BlurEmission.js";import{E as l,a as u}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as d}from"./EmissionCompositeTechnique.js";import{ColorAttachment1 as f,ColorAttachment0 as p}from"../../../webgl/enums.js";let m=class extends c{constructor(){super(...arguments),this.produces=s.COMPOSITE,this.consumes={required:[s.COMPOSITE]},this._configuration=new l,this._passParameters=new u}initialize(){this.addHandles([n(()=>this.bindParameters.emissions!==0,e=>this.produces=e?s.COMPOSITE:`disabled`,r)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.hasFog=!!this.view.stage.renderView.fog?.renders,this._configuration.applyBlur=!this._configuration.hasFog&&this._hasBlur,super.precompile(),this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(d,this._configuration))}get _needsEmissionBlur(){return this._configuration.applyBlur}render(){let e=this.input,n=e.getAttachment(f);if(!n?.attachment)return e;let r=o(this.bindParameters.camera.eye);this._passParameters.atmosphereC=r**2-this._atmosphereRadius**2,this._passParameters.color=e.getAttachment(p)?.attachment,this._passParameters.emission=n,this._passParameters.scattering=this._configuration.applyBlur&&this.view.environmentView.weather?this.view.stage.renderView.fog?.strength??this.view.environment.weather.scattering:0,this._configuration.applyBlur&&this._renderEmissionMipMap();let i=this.renderingContext,a=this.techniques.get(d,this._configuration),s=this.acquireOutputFramebuffer();return i.clear(16384),i.bindTechnique(a,this.bindParameters,this._passParameters),i.screen.draw(),this._passParameters.mipmapTexture=t(this._passParameters.mipmapTexture),s.moveAttachments(e),s}};e([i()],m.prototype,`produces`,void 0),e([i()],m.prototype,`consumes`,void 0),m=e([a(`esri.views.3d.webgl-engine.lib.EmissionComposite`)],m);export{m as EmissionComposite};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{clamp as e,lerp as t}from"../../../../core/mathUtils.js";class n{constructor(){this._startFactor=0}update(n,r,i,a){let o=r===0?0:1;if(this._target==null?n.emissionFade=o:o!==this._target&&(this._startFactor=n.emissionFade,this._startTime=i),this._target=o,this._startTime!=null){let r=a>0?e((i-this._startTime)/a,0,1):1;n.emissionFade=t(this._startFactor,o,r),r===1&&(this._startTime=null)}return n.emissions=r===0&&n.emissionFade>0?1:r,n.emissionFade!==o}}export{n as EmissionFader};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import"../../../../core/has.js";import{disposeMaybe as t,destroyMaybe as n}from"../../../../core/maybe.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import{multiply as a,fromTranslation as o}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{set as c,sub as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{RenderNodeOutput as d}from"../../webgl.js";import{debugFlags as f}from"../../support/debugFlags.js";import{glLayout as p}from"../../support/buffer/glUtil.js";import{newLayout as m}from"../../support/buffer/InterleavedLayout.js";import h from"../../webgl/RenderNode.js";import{Pos2Locations as g}from"./DefaultVertexBufferLayouts.js";import{VertexArrayObject as _}from"./VertexArrayObject.js";import{TaskPriority as v}from"../../../support/Scheduler.js";import{Yield as y}from"../../../support/Yield.js";import{BufferObject as b}from"../../../webgl/BufferObject.js";import{PrimitiveType as x,DataType as S,PixelType as C}from"../../../webgl/enums.js";import{makePipelineState as w,defaultColorWrite as T}from"../../../webgl/renderState.js";import{Sync as E}from"../../../webgl/Sync.js";import{Texture as D}from"../../../webgl/Texture.js";import{TextureDescriptor as O}from"../../../webgl/TextureDescriptor.js";import{getFormatComponents as k}from"../../../webgl/Util.js";import{fromLayout as A}from"../../../webgl/VertexAttributeLocations.js";import{VertexBuffer as j}from"../../../webgl/VertexBuffer.js";let
|
|
2
|
+
import{__decorate as e}from"tslib";import"../../../../core/has.js";import{disposeMaybe as t,destroyMaybe as n}from"../../../../core/maybe.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import{multiply as a,fromTranslation as o}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{set as c,sub as l}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as u}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{RenderNodeOutput as d}from"../../webgl.js";import{debugFlags as f}from"../../support/debugFlags.js";import{glLayout as p}from"../../support/buffer/glUtil.js";import{newLayout as m}from"../../support/buffer/InterleavedLayout.js";import h from"../../webgl/RenderNode.js";import{Pos2Locations as g}from"./DefaultVertexBufferLayouts.js";import{VertexArrayObject as _}from"./VertexArrayObject.js";import{TaskPriority as v}from"../../../support/Scheduler.js";import{Yield as y}from"../../../support/Yield.js";import{BufferObject as b}from"../../../webgl/BufferObject.js";import{PrimitiveType as x,DataType as S,PixelType as C}from"../../../webgl/enums.js";import{makePipelineState as w,defaultColorWrite as T}from"../../../webgl/renderState.js";import{Sync as E}from"../../../webgl/Sync.js";import{Texture as D}from"../../../webgl/Texture.js";import{TextureDescriptor as O}from"../../../webgl/TextureDescriptor.js";import{getFormatComponents as k}from"../../../webgl/Util.js";import{fromLayout as A}from"../../../webgl/VertexAttributeLocations.js";import{VertexBuffer as j}from"../../../webgl/VertexBuffer.js";var M;let N=new Map,P=new Map,F=null,I=class extends h{static{M=this}constructor(e){super(e),this.category=d.COMPOSITE,this._debugVao=null,this._debugVaoLength=0,this.readyToRun=!1,this.done=!0,this._start=!1,this._origin=u(),this._textureWidth=256,this._uploadBuffer=new Float32Array(this._textureWidth*3),this._counter=0,this._width=0,this._height=0,this._pipeline=w({colorWrite:T})}initialize(){this.addHandles(this.view.resourceController.scheduler.registerTask(v.OCCLUSION_QUERY,this)),this.produces=`disabled`,this.consumes.required=[this.category]}destroy(){this._debugVao=t(this._debugVao),this.cancel(),this._pixelBuffer=t(this._pixelBuffer),this._texture=t(this._texture)}precompile(){this._ensureProgram(this.renderingContext),this._debug&&this._ensureDebugProgram(this.renderingContext)}render(){let e=this.input,t=this.renderingContext;if(this._debug){let n=this._ensureDebugProgram(t);t.useProgram(n),V(n,this.camera,this._origin),t.bindTexture(this._texture,1),n.setUniform1i(`positionTex`,1),t.bindFramebuffer(e.fbo),t.bindVAO(this._ensureDebugVao(t,this._width*this._height)),t.setDepthWriteEnabled(!1),t.setDepthTestEnabled(!1),n.setUniform4f(`color`,1,0,0,1),t.drawArrays(x.POINTS,0,this._counter),t.setDepthTestEnabled(!0),n.setUniform4f(`color`,0,1,0,1),t.drawArrays(x.POINTS,0,this._counter)}let n=this.gl,r=e.getTexture(n.DEPTH_STENCIL_ATTACHMENT),i=this.view.stage?.renderer.fboCache;if(!r||!i||this._sync||!this._start)return e;this._start=!1,this.produces=f.OCCLUSION_QUERY_DEBUG_PIXEL?this.category:`disabled`;let a=i.acquire(this._width,this._height,`hud visibility`,10);t.bindFramebuffer(a.fbo),t.setPipelineState(this._pipeline);let o=this._ensureProgram(t);return t.useProgram(o),V(o,this.camera,this._origin),t.bindTexture(r,0),o.setUniform1i(`depthTex`,0),t.bindTexture(this._texture,1),o.setUniform1i(`positionTex`,1),o.setUniform1i(`count`,this._counter),t.screen.draw(),this.pixelFormat??=n.getParameter(n.IMPLEMENTATION_COLOR_READ_FORMAT)===6403&&n.getParameter(n.IMPLEMENTATION_COLOR_READ_TYPE)===S.FLOAT?6403:6408,this._pixelBuffer??=b.createPixelPack(t,n.STREAM_READ),this._pixelBuffer.setSize(this._width*this._height*this._formatComponents*4),t.bindBuffer(this._pixelBuffer),n.readPixels(0,0,this._width,this._height,this.pixelFormat,S.FLOAT,0),t.unbindBuffer(35051),t.bindFramebuffer(null),a.release(),this._sync=new E(n),N.set(this,this._sync),F??=setTimeout(M._makeQueriesReady,0),e}get _debug(){return!1}get _formatComponents(){return this.pixelFormat?k(this.pixelFormat):1}runTask(){if(!this._sync||!this._pixelBuffer)this.readyToRun=!1;else{try{if(!this._sync.poll())return y}catch{this.readyToRun=!1,this._sync=n(this._sync);return}this.readyToRun=!1,this._sync=n(this._sync),this._cpuBuffer=new Float32Array(this._width*this._height*this._formatComponents),this._pixelBuffer.getSubData(this._cpuBuffer),this.done=!0}}cancel(){this._start=!1,this.readyToRun=!1,this._sync=n(this._sync),N.delete(this)&&N.size===0&&F!=null&&(clearTimeout(F),F=null)}init(e,t){this.cancel();let n=this._textureWidth;if(this._width=n,this._height=Math.ceil(e/n),this._counter=0,this._texture?.dispose(),this._height===0)return;let r=new O(this._width,this._height);r.pixelFormat=6407,r.dataType=C.FLOAT,r.samplingMode=9728,this._texture=new D(this.renderingContext,r),this.done=!1,c(this._origin,Math.fround(t[0]),Math.fround(t[1]),Math.fround(t[2]))}addPosition(e){let t=this._width;if(this._counter>=t*this._height)return-1;let n=this._counter%t;return l(H,e,this._origin),this._uploadBuffer[n*3+0]=H[0],this._uploadBuffer[n*3+1]=H[1],this._uploadBuffer[n*3+2]=H[2],n===t-1&&this._flush(),this._counter++}start(){if(this._width===0||this._height===0){this.done=!0;return}let e=this._width;this._counter%e>0&&this._flush(),this.produces=this.category,this._start=!0,this.requestRender(1)}getOcclusion(e){return this._cpuBuffer?.[e*this._formatComponents]??-1}get usedMemory(){return(this._texture?.usedMemory??0)+(this._pixelBuffer?.usedMemory??0)+(this._uploadBuffer?.length??0)*4+(this._cpuBuffer?.length??0)*4}_flush(){let e=this._width,t=Math.floor(this._counter/e);this._texture?.updateData(0,0,t,e,1,this._uploadBuffer)}static{this._makeQueriesReady=()=>{let e=N;N=P,P=e,F=null;try{for(let[t,n]of e)!t.destroyed&&t._sync===n&&(t.readyToRun=!0)}finally{e.clear()}}}_ensureProgram(e){return this._program??=e.programCache.get(z,B,g),this._program}_ensureDebugProgram(e){return this._debugProgram??=e.programCache.get(L,R,G),this._debugProgram}_ensureDebugVao(e,n){if(!this._debugVao||this._debugVaoLength<n){let r=new Float32Array(n);for(let e=0;e<n;e++)r[e]=e;this._debugVao=t(this._debugVao),this._debugVao=new _(e,new j(e,W,r))}return this._debugVao}};e([r()],I.prototype,`category`,void 0),e([r()],I.prototype,`pixelFormat`,void 0),e([r()],I.prototype,`_formatComponents`,null),e([r()],I.prototype,`readyToRun`,void 0),e([r()],I.prototype,`done`,void 0),I=M=e([i(`esri.views.3d.webgl-engine.lib.GPUPointOcclusionQuery`)],I);const L=`#version 300 es
|
|
3
3
|
precision highp float;
|
|
4
4
|
precision highp int;
|
|
5
5
|
|
|
@@ -21,19 +21,19 @@ void main() {
|
|
|
21
21
|
|
|
22
22
|
gl_Position = projected;
|
|
23
23
|
gl_PointSize = 1.0;
|
|
24
|
-
}`,
|
|
24
|
+
}`,R=`#version 300 es
|
|
25
25
|
out highp vec4 fragColor;
|
|
26
26
|
uniform lowp vec4 color;
|
|
27
27
|
void main() {
|
|
28
28
|
fragColor = color;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,z=`#version 300 es
|
|
31
31
|
precision highp float;
|
|
32
32
|
in vec2 position;
|
|
33
33
|
|
|
34
34
|
void main() {
|
|
35
35
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
36
|
-
}`,
|
|
36
|
+
}`,B=`#version 300 es
|
|
37
37
|
precision highp float;
|
|
38
38
|
out highp vec4 fragColor;
|
|
39
39
|
|
|
@@ -81,4 +81,4 @@ void main() {
|
|
|
81
81
|
|
|
82
82
|
fragColor = vec4(linearizeDepth(depth) - linearizeDepth(uvDepth.z));
|
|
83
83
|
}
|
|
84
|
-
`;function
|
|
84
|
+
`;function V(e,t,n){a(U,t.viewMatrix,o(U,n)),e.setUniformMatrix4fv(`view`,U),e.setUniformMatrix4fv(`proj`,t.projectionMatrix)}const H=u(),U=s(),W=p(m().f32(`componentIndex`)),G=A(W);export{I as GPUPointOcclusionQuery};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{set as e,transformMat4 as t,subtract as n,normalize as r,scale as i,add as a,dot as o,cross as s,copy as c}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as l,fromValues as u,create as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f32.js";import{ZEROS as f,UNIT_Z as p,create as m}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{newDoubleArray as h}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as g,floatArrayFrom as _}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as v,getZeroIndexArray as y}from"../../../../geometry/support/Indices.js";import{create as b,fromPositionAndNormal as x,intersectRay as S}from"../../../../geometry/support/plane.js";import{wrap as C}from"../../../../geometry/support/ray.js";import{timeStampsToAttribute as w,numTimeStampValuesPerVertex as T}from"../../support/engineContent/line.js";import{Attribute as E}from"./Attribute.js";import{BufferGeometry as D}from"./BufferGeometry.js";import{Buffers as O}from"./Buffers.js";import{scale as k,length as A,normalize as j,add as M}from"./bufferVectorMath.js";import{Geometry as N}from"./Geometry.js";import{assert as P}from"./Util.js";import{getHUDMaterialBufferBaseInstance as F}from"../materials/HUDMaterialBaseInstance.js";import{getInstanceLayout as I}from"../shaders/hudMaterialLayouts.js";const L=[[-.5,-.5,.5],[.5,-.5,.5],[.5,.5,.5],[-.5,.5,.5],[-.5,-.5,-.5],[.5,-.5,-.5],[.5,.5,-.5],[-.5,.5,-.5]],R=[0,0,1,-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1],z=[0,0,1,0,1,1,0,1],ee=[0,1,2,2,3,0,4,0,3,3,7,4,1,5,6,6,2,1,1,0,4,4,5,1,3,2,6,6,7,3,5,4,7,7,6,5],B=Array(36);for(let e=0;e<6;e++)for(let t=0;t<6;t++)B[e*6+t]=e;const V=Array(36);for(let e=0;e<6;e++)V[e*6]=0,V[e*6+1]=1,V[e*6+2]=2,V[e*6+3]=2,V[e*6+4]=3,V[e*6+5]=0;function te(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(24);for(let e=0;e<8;e++)n[e*3]=L[e][0]*t[0],n[e*3+1]=L[e][1]*t[1],n[e*3+2]=L[e][2]*t[2];return new N(e,[[`position`,new E(n,ee,3,!0)],[`normal`,new E(R,B,3)],[`uv0`,new E(z,V,2)]])}const H=[[-.5,0,-.5],[.5,0,-.5],[.5,0,.5],[-.5,0,.5],[0,-.5,0],[0,.5,0]],ne=[0,1,-1,1,1,0,0,1,1,-1,1,0,0,-1,-1,1,-1,0,0,-1,1,-1,-1,0],re=[5,1,0,5,2,1,5,3,2,5,0,3,4,0,1,4,1,2,4,2,3,4,3,0],U=[0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7];function W(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(18);for(let e=0;e<6;e++)n[e*3]=H[e][0]*t[0],n[e*3+1]=H[e][1]*t[1],n[e*3+2]=H[e][2]*t[2];return new N(e,[[`position`,new E(n,re,3,!0)],[`normal`,new E(ne,U,3)]])}const G=u(-.5,0,-.5),ie=u(.5,0,-.5),K=u(0,0,.5),q=u(0,.5,0),J=d(),Y=d(),X=d(),Z=d(),Q=d();n(J,G,q),n(Y,G,ie),s(X,J,Y),r(X,X),n(J,ie,q),n(Y,ie,K),s(Z,J,Y),r(Z,Z),n(J,K,q),n(Y,K,G),s(Q,J,Y),r(Q,Q);const ae=[G,ie,K,q],oe=[0,-1,0,X[0],X[1],X[2],Z[0],Z[1],Z[2],Q[0],Q[1],Q[2]],se=[0,1,2,3,1,0,3,2,1,3,0,2],ce=[0,0,0,1,1,1,2,2,2,3,3,3];function le(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(12);for(let e=0;e<4;e++)n[e*3]=ae[e][0]*t[0],n[e*3+1]=ae[e][1]*t[1],n[e*3+2]=ae[e][2]*t[2];return new N(e,[[`position`,new E(n,se,3,!0)],[`normal`,new E(oe,ce,3)]])}function ue(e,t,n,r,i={uv:!0}){let a=-Math.PI,o=Math.PI*2,s=-Math.PI/2,c=Math.PI,l=Math.max(3,Math.floor(n)),u=Math.max(2,Math.floor(r)),d=(l+1)*(u+1),f=g(d*3),p=g(d*3),m=g(d*2),h=[],_=0;for(let e=0;e<=u;e++){let n=[],r=e/u,i=s+r*c,d=Math.cos(i);for(let e=0;e<=l;e++){let s=e/l,c=a+s*o,u=Math.cos(c)*d,h=Math.sin(i),g=-Math.sin(c)*d;f[3*_]=u*t,f[3*_+1]=h*t,f[3*_+2]=g*t,p[3*_]=u,p[3*_+1]=h,p[3*_+2]=g,m[2*_]=s,m[2*_+1]=r,n.push(_),++_}h.push(n)}let v=[];for(let e=0;e<u;e++)for(let t=0;t<l;t++){let n=h[e][t],r=h[e][t+1],i=h[e+1][t+1],a=h[e+1][t];e===0?(v.push(n),v.push(i),v.push(a)):e===u-1?(v.push(n),v.push(r),v.push(i)):(v.push(n),v.push(r),v.push(i),v.push(i),v.push(a),v.push(n))}let b=[[`position`,new E(f,v,3,!0)],[`normal`,new E(p,v,3,!0)]];return i.uv&&b.push([`uv0`,new E(m,v,2,!0)]),i.offset&&(b[0][0]=`offset`,b.push([`position`,new E(Float64Array.from(i.offset),y(v.length),3,!0)])),new N(e,b)}function de(e,t,n,r){let i=fe(t,n,r);return new N(e,i)}function fe(e,t,n){let r=e,i,a;if(n)i=[0,-1,0,1,0,0,0,0,1,-1,0,0,0,0,-1,0,1,0],a=[0,1,2,0,2,3,0,3,4,0,4,1,1,5,2,2,5,3,3,5,4,4,5,1];else{let e=r*(1+Math.sqrt(5))/2;i=[-r,e,0,r,e,0,-r,-e,0,r,-e,0,0,-r,e,0,r,e,0,-r,-e,0,r,-e,e,0,-r,e,0,r,-e,0,-r,-e,0,r],a=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1]}for(let t=0;t<i.length;t+=3)k(i,t,e/A(i,t));let o={};function s(t,n){t>n&&([t,n]=[n,t]);let r=t.toString()+`.`+n.toString();if(o[r])return o[r];let a=i.length;return i.length+=3,M(i,t*3,i,n*3,i,a),k(i,a,e/A(i,a)),a/=3,o[r]=a,a}for(let e=0;e<t;e++){let e=a.length,t=Array(e*4);for(let n=0;n<e;n+=3){let e=a[n],r=a[n+1],i=a[n+2],o=s(e,r),c=s(r,i),l=s(i,e),u=n*4;t[u]=e,t[u+1]=o,t[u+2]=l,t[u+3]=r,t[u+4]=c,t[u+5]=o,t[u+6]=i,t[u+7]=l,t[u+8]=c,t[u+9]=o,t[u+10]=c,t[u+11]=l}a=t,o={}}let c=_(i);for(let e=0;e<c.length;e+=3)j(c,e);return[[`position`,new E(_(i),a,3,!0)],[`normal`,new E(c,a,3,!0)]]}function pe(e,t,{position:r,normal:i,groundDistance:a,size:o,rotation:s,color:c,uvi:l,centerOffset:u,featureAttribute:d,olidColor:m}={}){let h=I(e.parameters).createBuffer(1);return n($,r??f,t.vec3),h.position.setVec(0,$),h.normal.setVec(0,i??p),h.groundDistance.set(0,a??1),o!=null&&h.size?.setVec(0,o),s!=null&&h.rotation?.set(0,s),c!=null&&h.color?.setVec(0,c),l!=null&&h.uvi?.setVec(0,l),u!=null&&h.centerOffset?.setVec(0,u),d!=null&&h.featureAttribute?.setVec(0,d),m!=null&&h.olidColor?.setVec(0,m),new D(e,new O(h),t,null,F())}const me=[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0]];function he(e,t=me){let n=Array(12);for(let e=0;e<4;e++)for(let r=0;r<3;r++)n[e*3+r]=t[e][r];let r=[0,1,2,2,3,0],i=[0,0,1],a=[0,0,0,0,0,0],o=[[`position`,new E(n,r,3,!0)],[`normal`,new E(i,a,3,!0)],[`uv0`,new E([0,0,1,0,1,1,0,1],r,2,!0)],[`color`,new E([255,255,255,255],a,4,!0)]];return new N(e,o)}function ge(e,t,n,r,i=!0,a=!0){let o=0,s=t,c=e,l=u(0,o,0),d=u(0,o+c,0),f=u(0,-1,0),p=u(0,1,0);r&&(o=c,d=u(0,0,0),l=u(0,o,0),f=u(0,1,0),p=u(0,-1,0));let m=[d,l],h=[f,p],_=n+2,v=Math.sqrt(c*c+s*s);if(r)for(let e=n-1;e>=0;e--){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/v,-s/v,c*Math.sin(t)/v);h.push(i)}else for(let e=0;e<n;e++){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/v,s/v,c*Math.sin(t)/v);h.push(i)}let y=[],b=[];if(i){for(let e=3;e<m.length;e++)y.push(1),y.push(e-1),y.push(e),b.push(0),b.push(0),b.push(0);y.push(m.length-1),y.push(2),y.push(1),b.push(0),b.push(0),b.push(0)}if(a){for(let e=3;e<m.length;e++)y.push(e),y.push(e-1),y.push(0),b.push(e),b.push(e-1),b.push(1);y.push(0),y.push(2),y.push(m.length-1),b.push(1),b.push(2),b.push(h.length-1)}let x=g(_*3);for(let e=0;e<_;e++)x[e*3]=m[e][0],x[e*3+1]=m[e][1],x[e*3+2]=m[e][2];let S=g(_*3);for(let e=0;e<_;e++)S[e*3]=h[e][0],S[e*3+1]=h[e][1],S[e*3+2]=h[e][2];return[[`position`,new E(x,y,3,!0)],[`normal`,new E(S,b,3,!0)]]}function _e(e,t,n,r,i,a=!0,o=!0){return new N(e,ge(t,n,r,i,a,o))}function ve(t,n,c,f,p,m,h){let _=p?l(p):u(1,0,0),v=m?l(m):u(0,0,0);h??=!0;let y=d();r(y,_);let b=d();i(b,y,Math.abs(n));let x=d();i(x,b,-.5),a(x,x,v);let S=u(0,1,0);Math.abs(1-o(y,S))<.2&&e(S,0,0,1);let C=d();s(C,y,S),r(C,C),s(S,C,y);let w=f*2+(h?2:0),T=f+(h?2:0),D=g(w*3),O=g(T*3),k=g(w*2),A=Array(f*3*(h?4:2)),j=Array(f*3*(h?4:2));h&&(D[(w-2)*3]=x[0],D[(w-2)*3+1]=x[1],D[(w-2)*3+2]=x[2],k[(w-2)*2]=0,k[(w-2)*2+1]=0,D[(w-1)*3]=D[(w-2)*3]+b[0],D[(w-1)*3+1]=D[(w-2)*3+1]+b[1],D[(w-1)*3+2]=D[(w-2)*3+2]+b[2],k[(w-1)*2]=1,k[(w-1)*2+1]=1,O[(T-2)*3]=-y[0],O[(T-2)*3+1]=-y[1],O[(T-2)*3+2]=-y[2],O[(T-1)*3]=y[0],O[(T-1)*3+1]=y[1],O[(T-1)*3+2]=y[2]);let M=(e,t,n)=>{A[e]=t,j[e]=n},P=0,F=d(),I=d();for(let e=0;e<f;e++){let t=2*Math.PI/f*e;i(F,S,Math.sin(t)),i(I,C,Math.cos(t)),a(F,F,I),O[e*3]=F[0],O[e*3+1]=F[1],O[e*3+2]=F[2],i(F,F,c),a(F,F,x),D[e*3]=F[0],D[e*3+1]=F[1],D[e*3+2]=F[2],k[e*2]=e/f,k[e*2+1]=0,D[(e+f)*3]=D[e*3]+b[0],D[(e+f)*3+1]=D[e*3+1]+b[1],D[(e+f)*3+2]=D[e*3+2]+b[2],k[(e+f)*2]=e/f,k[e*2+1]=1;let n=(e+1)%f;M(P++,e,e),M(P++,e+f,e),M(P++,n,n),M(P++,n,n),M(P++,e+f,e),M(P++,n+f,n)}if(h){for(let e=0;e<f;e++){let t=(e+1)%f;M(P++,w-2,T-2),M(P++,e,T-2),M(P++,t,T-2)}for(let e=0;e<f;e++){let t=(e+1)%f;M(P++,e+f,T-1),M(P++,w-1,T-1),M(P++,t+f,T-1)}}let L=[[`position`,new E(D,A,3,!0)],[`normal`,new E(O,j,3,!0)],[`uv0`,new E(k,A,2,!0)]];return new N(t,L)}function ye(e,t,n,r,i,a){r||=10,i??=!0,P(t.length>1);let o=[[0,0,0]],s=[],c=[];for(let e=0;e<r;e++){s.push([0,-e-1,-((e+1)%r)-1]);let t=e/r*2*Math.PI;c.push([Math.cos(t)*n,Math.sin(t)*n])}return be(e,c,t,o,s,i,a)}function be(t,o,l,d,f,p,h=u(0,0,0)){let _=o.length,v=g(l.length*_*3+(d.length*6||0)),y=g(l.length*_*3+(d?6:0)),w=[],T=[],D=0,O=0,k=m(),A=m(),j=m(),M=m(),P=m(),F=m(),I=m(),L=m(),R=m(),z=m(),ee=m(),B=m(),V=m(),te=b();e(R,0,1,0),n(A,l[1],l[0]),r(A,A),p?(a(L,l[0],h),r(j,L)):e(j,0,0,1),Ee(A,j,R,R,P,j,De),c(M,j),c(B,P);for(let e=0;e<d.length;e++)i(F,P,d[e][0]),i(L,j,d[e][2]),a(F,F,L),a(F,F,l[0]),v[D++]=F[0],v[D++]=F[1],v[D++]=F[2];y[O++]=-A[0],y[O++]=-A[1],y[O++]=-A[2];for(let e=0;e<f.length;e++)w.push(f[e][0]>0?f[e][0]:-f[e][0]-1+d.length),w.push(f[e][1]>0?f[e][1]:-f[e][1]-1+d.length),w.push(f[e][2]>0?f[e][2]:-f[e][2]-1+d.length),T.push(0),T.push(0),T.push(0);let H=d.length,ne=d.length-1;for(let e=0;e<l.length;e++){let t=!1;e>0&&(c(k,A),e<l.length-1?(n(A,l[e+1],l[e]),r(A,A)):t=!0,a(z,k,A),r(z,z),a(ee,l[e-1],M),x(l[e],z,te),S(te,C(ee,k),L)?(n(L,L,l[e]),r(j,L),s(P,z,j),r(P,P)):Ee(z,M,B,R,P,j,De),c(M,j),c(B,P)),p&&(a(L,l[e],h),r(V,L));for(let n=0;n<_;n++)if(i(F,P,o[n][0]),i(L,j,o[n][1]),a(F,F,L),r(I,F),y[O++]=I[0],y[O++]=I[1],y[O++]=I[2],a(F,F,l[e]),v[D++]=F[0],v[D++]=F[1],v[D++]=F[2],!t){let e=(n+1)%_;w.push(H+n),w.push(H+_+n),w.push(H+e),w.push(H+e),w.push(H+_+n),w.push(H+_+e);for(let e=0;e<6;e++){let t=w.length-6;T.push(w[t+e]-ne)}}H+=_}let re=l[l.length-1];for(let e=0;e<d.length;e++)i(F,P,d[e][0]),i(L,j,d[e][1]),a(F,F,L),a(F,F,re),v[D++]=F[0],v[D++]=F[1],v[D++]=F[2];let U=O/3;y[O++]=A[0],y[O++]=A[1],y[O++]=A[2];let W=H-_;for(let e=0;e<f.length;e++)w.push(f[e][0]>=0?H+f[e][0]:-f[e][0]-1+W),w.push(f[e][2]>=0?H+f[e][2]:-f[e][2]-1+W),w.push(f[e][1]>=0?H+f[e][1]:-f[e][1]-1+W),T.push(U),T.push(U),T.push(U);let G=[[`position`,new E(v,w,3,!0)],[`normal`,new E(y,T,3,!0)]];return new N(t,G)}function xe(e,t,n,r,i){let a=h(t.length*3),o=Array(2*(t.length-1)),s=0,c=0;for(let e=0;e<t.length;e++){for(let n=0;n<3;n++)a[s++]=t[e][n];e>0&&(o[c++]=e-1,o[c++]=e)}let l=[[`position`,new E(a,o,3,!0)]];if(n?.length===t.length&&n[0].length===3){let e=g(n.length*3),r=0;for(let i=0;i<t.length;i++)for(let t=0;t<3;t++)e[r++]=n[i][t];l.push([`normal`,new E(e,o,3,!0)])}if(r&&l.push([`color`,new E(r,v(r.length/4),4)]),i?.length===t.length){let e=w(i,1);l.push([`timeStamps`,new E(e,o,T,!0)])}return new N(e,l,null)}function Se(e,t,n,r,i,a=0){let o=Array(18),s=[[-n,a,i/2],[r,a,i/2],[0,t+a,i/2],[-n,a,-i/2],[r,a,-i/2],[0,t+a,-i/2]],c=[0,1,2,3,0,2,2,5,3,1,4,5,5,2,1,1,0,3,3,4,1,4,3,5];for(let e=0;e<6;e++)o[e*3]=s[e][0],o[e*3+1]=s[e][1],o[e*3+2]=s[e][2];return new N(e,[[`position`,new E(o,c,3,!0)]])}function Ce(n,r){let i=n.getMutableAttribute(`position`).data;for(let n=0;n<i.length;n+=3){let a=i[n],o=i[n+1],s=i[n+2];e($,a,o,s),t($,$,r),i[n]=$[0],i[n+1]=$[1],i[n+2]=$[2]}}function we(e,t=e){let n=e.attributes,r=n.get(`position`).data,i=n.get(`normal`).data;if(i){let e=t.getMutableAttribute(`normal`).data;for(let t=0;t<i.length;t+=3){let n=i[t+1];e[t+1]=-i[t+2],e[t+2]=n}}if(r){let e=t.getMutableAttribute(`position`).data;for(let t=0;t<r.length;t+=3){let n=r[t+1];e[t+1]=-r[t+2],e[t+2]=n}}}function Te(e,t,n,i,a){return Math.abs(o(t,e))>a?!1:(s(n,e,t),r(n,n),s(i,n,e),r(i,i),!0)}function Ee(e,t,n,r,i,a,o){return Te(e,t,i,a,o)||Te(e,n,i,a,o)||Te(e,r,i,a,o)}const De=.99619469809,$=m();export{we as cgToGIS,te as createBoxGeometry,_e as createConeGeometry,ge as createConeGeometryData,ve as createCylinderGeometry,W as createDiamondGeometry,Se as createExtrudedTriangle,be as createPathExtrusionGeometry,pe as createPointBufferGeometry,fe as createPolySphereData,de as createPolySphereGeometry,xe as createPolylineGeometry,ue as createSphereGeometry,he as createSquareGeometry,le as createTetrahedronGeometry,ye as createTubeGeometry,Ee as makeOrthoBasisDirUpFallback,Ce as transformInPlace};
|
|
2
|
+
import{set as e,transformMat4 as t,subtract as n,normalize as r,scale as i,add as a,dot as o,cross as s,copy as c}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as l,fromValues as u,create as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f32.js";import{ZEROS as f,UNIT_Z as p,create as m}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{newDoubleArray as h}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as g,floatArrayFrom as _}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as v,getZeroIndexArray as y}from"../../../../geometry/support/Indices.js";import{create as b,fromPositionAndNormal as x,intersectRay as S}from"../../../../geometry/support/plane.js";import{wrap as C}from"../../../../geometry/support/ray.js";import{timeStampsToAttribute as w,numTimeStampValuesPerVertex as T}from"../../support/engineContent/line.js";import{Attribute as E}from"./Attribute.js";import{BufferGeometry as D}from"./BufferGeometry.js";import{Buffers as O}from"./Buffers.js";import{scale as k,length as A,normalize as j,add as M}from"./bufferVectorMath.js";import{Geometry as N}from"./Geometry.js";import{compressNormals as P,decompressNormal as F,compressNormal as I}from"./Normals.js";import{assert as L}from"./Util.js";import{getHUDMaterialBufferBaseInstance as R}from"../materials/HUDMaterialBaseInstance.js";import{getInstanceLayout as z}from"../shaders/hudMaterialLayouts.js";const B=[[-.5,-.5,.5],[.5,-.5,.5],[.5,.5,.5],[-.5,.5,.5],[-.5,-.5,-.5],[.5,-.5,-.5],[.5,.5,-.5],[-.5,.5,-.5]],ee=P([0,0,1,-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1]),te=[0,0,1,0,1,1,0,1],ne=[0,1,2,2,3,0,4,0,3,3,7,4,1,5,6,6,2,1,1,0,4,4,5,1,3,2,6,6,7,3,5,4,7,7,6,5],V=Array(36);for(let e=0;e<6;e++)for(let t=0;t<6;t++)V[e*6+t]=e;const H=Array(36);for(let e=0;e<6;e++)H[e*6]=0,H[e*6+1]=1,H[e*6+2]=2,H[e*6+3]=2,H[e*6+4]=3,H[e*6+5]=0;function re(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(24);for(let e=0;e<8;e++)n[e*3]=B[e][0]*t[0],n[e*3+1]=B[e][1]*t[1],n[e*3+2]=B[e][2]*t[2];return e.setParameters({normalType:1}),new N(e,[[`position`,new E(n,ne,3,!0)],[`normalCompressed`,new E(ee,V,2)],[`uv0`,new E(te,H,2)]])}const U=[[-.5,0,-.5],[.5,0,-.5],[.5,0,.5],[-.5,0,.5],[0,-.5,0],[0,.5,0]],ie=P([0,1,-1,1,1,0,0,1,1,-1,1,0,0,-1,-1,1,-1,0,0,-1,1,-1,-1,0]),ae=[5,1,0,5,2,1,5,3,2,5,0,3,4,0,1,4,1,2,4,2,3,4,3,0],oe=[0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7];function se(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(18);for(let e=0;e<6;e++)n[e*3]=U[e][0]*t[0],n[e*3+1]=U[e][1]*t[1],n[e*3+2]=U[e][2]*t[2];return e.setParameters({normalType:1}),new N(e,[[`position`,new E(n,ae,3,!0)],[`normalCompressed`,new E(ie,oe,2)]])}const W=u(-.5,0,-.5),G=u(.5,0,-.5),K=u(0,0,.5),q=u(0,.5,0),J=d(),Y=d(),X=d(),Z=d(),Q=d();n(J,W,q),n(Y,W,G),s(X,J,Y),r(X,X),n(J,G,q),n(Y,G,K),s(Z,J,Y),r(Z,Z),n(J,K,q),n(Y,K,W),s(Q,J,Y),r(Q,Q);const ce=[W,G,K,q],le=P([0,-1,0,X[0],X[1],X[2],Z[0],Z[1],Z[2],Q[0],Q[1],Q[2]]),ue=[0,1,2,3,1,0,3,2,1,3,0,2],de=[0,0,0,1,1,1,2,2,2,3,3,3];function fe(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(12);for(let e=0;e<4;e++)n[e*3]=ce[e][0]*t[0],n[e*3+1]=ce[e][1]*t[1],n[e*3+2]=ce[e][2]*t[2];return e.setParameters({normalType:1}),new N(e,[[`position`,new E(n,ue,3,!0)],[`normalCompressed`,new E(le,de,2)]])}function pe(e,t,n,r,i={uv:!0}){let a=-Math.PI,o=Math.PI*2,s=-Math.PI/2,c=Math.PI,l=Math.max(3,Math.floor(n)),u=Math.max(2,Math.floor(r)),d=(l+1)*(u+1),f=g(d*3),p=g(d*3),m=g(d*2),h=[],_=0;for(let e=0;e<=u;e++){let n=[],r=e/u,i=s+r*c,d=Math.cos(i);for(let e=0;e<=l;e++){let s=e/l,c=a+s*o,u=Math.cos(c)*d,h=Math.sin(i),g=-Math.sin(c)*d;f[3*_]=u*t,f[3*_+1]=h*t,f[3*_+2]=g*t,p[3*_]=u,p[3*_+1]=h,p[3*_+2]=g,m[2*_]=s,m[2*_+1]=r,n.push(_),++_}h.push(n)}let v=[];for(let e=0;e<u;e++)for(let t=0;t<l;t++){let n=h[e][t],r=h[e][t+1],i=h[e+1][t+1],a=h[e+1][t];e===0?(v.push(n),v.push(i),v.push(a)):e===u-1?(v.push(n),v.push(r),v.push(i)):(v.push(n),v.push(r),v.push(i),v.push(i),v.push(a),v.push(n))}let b=[[`position`,new E(f,v,3,!0)],[`normalCompressed`,new E(P(p),v,2,!0)]];return i.uv&&b.push([`uv0`,new E(m,v,2,!0)]),i.offset&&(b[0][0]=`offset`,b.push([`position`,new E(Float64Array.from(i.offset),y(v.length),3,!0)])),new N(e,b)}function me(e,t,n){let r=he(t,n);return e.setParameters({normalType:1}),new N(e,r)}function he(e,t){let n=[0,-1,0,1,0,0,0,0,1,-1,0,0,0,0,-1,0,1,0],r=[0,1,2,0,2,3,0,3,4,0,4,1,1,5,2,2,5,3,3,5,4,4,5,1];for(let t=0;t<n.length;t+=3)k(n,t,e/A(n,t));let i={};function a(t,r){t>r&&([t,r]=[r,t]);let a=t.toString()+`.`+r.toString();if(i[a])return i[a];let o=n.length;return n.length+=3,M(n,t*3,n,r*3,n,o),k(n,o,e/A(n,o)),o/=3,i[a]=o,o}for(let e=0;e<t;e++){let e=r.length,t=Array(e*4);for(let n=0;n<e;n+=3){let e=r[n],i=r[n+1],o=r[n+2],s=a(e,i),c=a(i,o),l=a(o,e),u=n*4;t[u]=e,t[u+1]=s,t[u+2]=l,t[u+3]=i,t[u+4]=c,t[u+5]=s,t[u+6]=o,t[u+7]=l,t[u+8]=c,t[u+9]=s,t[u+10]=c,t[u+11]=l}r=t,i={}}let o=_(n);for(let e=0;e<o.length;e+=3)j(o,e);return[[`position`,new E(_(n),r,3,!0)],[`normalCompressed`,new E(P(o),r,2,!0)]]}function ge(e,t,{position:r,normal:i,groundDistance:a,size:o,rotation:s,color:c,uvi:l,centerOffset:u,featureAttribute:d,olidColor:m}={}){let h=z(e.parameters).createBuffer(1);return n($,r??f,t.vec3),h.position.setVec(0,$),h.normal.setVec(0,i??p),h.groundDistance.set(0,a??1),o!=null&&h.size?.setVec(0,o),s!=null&&h.rotation?.set(0,s),c!=null&&h.color?.setVec(0,c),l!=null&&h.uvi?.setVec(0,l),u!=null&&h.centerOffset?.setVec(0,u),d!=null&&h.featureAttribute?.setVec(0,d),m!=null&&h.olidColor?.setVec(0,m),new D(e,new O(h),t,null,R())}const _e=[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0]];function ve(e,t=_e){let n=Array(12);for(let e=0;e<4;e++)for(let r=0;r<3;r++)n[e*3+r]=t[e][r];let r=[0,1,2,2,3,0],i=[0,0,1],a=[0,0,0,0,0,0],o=[[`position`,new E(n,r,3,!0)],[`normal`,new E(i,a,3,!0)],[`uv0`,new E([0,0,1,0,1,1,0,1],r,2,!0)],[`color`,new E([255,255,255,255],a,4,!0)]];return new N(e,o)}function ye(e,t,n,r,i,a=!0,o=!0){let s=0,c=n,l=t,d=u(0,s,0),f=u(0,s+l,0),p=u(0,-1,0),m=u(0,1,0);i&&(s=l,f=u(0,0,0),d=u(0,s,0),p=u(0,1,0),m=u(0,-1,0));let h=[f,d],_=[p,m],v=Math.sqrt(l*l+c*c);if(i)for(let e=r-1;e>=0;e--){let t=2*Math.PI/r*e,n=u(Math.cos(t)*c,s,Math.sin(t)*c);h.push(n);let i=u(l*Math.cos(t)/v,-c/v,l*Math.sin(t)/v);_.push(i)}else for(let e=0;e<r;e++){let t=2*Math.PI/r*e,n=u(Math.cos(t)*c,s,Math.sin(t)*c);h.push(n);let i=u(l*Math.cos(t)/v,c/v,l*Math.sin(t)/v);_.push(i)}let y=[],b=[];if(a){for(let e=3;e<h.length;e++)y.push(1),y.push(e-1),y.push(e),b.push(0),b.push(0),b.push(0);y.push(h.length-1),y.push(2),y.push(1),b.push(0),b.push(0),b.push(0)}if(o){for(let e=3;e<h.length;e++)y.push(e),y.push(e-1),y.push(0),b.push(e),b.push(e-1),b.push(1);y.push(0),y.push(2),y.push(h.length-1),b.push(1),b.push(2),b.push(_.length-1)}let x=r+2,S=g(x*3);for(let e=0;e<x;e++)S[e*3]=h[e][0],S[e*3+1]=h[e][1],S[e*3+2]=h[e][2];let C=g(x*3);for(let e=0;e<x;e++)C[e*3]=_[e][0],C[e*3+1]=_[e][1],C[e*3+2]=_[e][2];e.setParameters({normalType:1});let w=[[`position`,new E(S,y,3,!0)],[`normalCompressed`,new E(P(C),b,2,!0)]];return new N(e,w)}function be(t,n,c,f,p,m,h){let _=p?l(p):u(1,0,0),v=m?l(m):u(0,0,0);h??=!0;let y=d();r(y,_);let b=d();i(b,y,Math.abs(n));let x=d();i(x,b,-.5),a(x,x,v);let S=u(0,1,0);Math.abs(1-o(y,S))<.2&&e(S,0,0,1);let C=d();s(C,y,S),r(C,C),s(S,C,y);let w=f*2+(h?2:0),T=f+(h?2:0),D=g(w*3),O=g(T*3),k=g(w*2),A=Array(f*3*(h?4:2)),j=Array(f*3*(h?4:2));h&&(D[(w-2)*3]=x[0],D[(w-2)*3+1]=x[1],D[(w-2)*3+2]=x[2],k[(w-2)*2]=0,k[(w-2)*2+1]=0,D[(w-1)*3]=D[(w-2)*3]+b[0],D[(w-1)*3+1]=D[(w-2)*3+1]+b[1],D[(w-1)*3+2]=D[(w-2)*3+2]+b[2],k[(w-1)*2]=1,k[(w-1)*2+1]=1,O[(T-2)*3]=-y[0],O[(T-2)*3+1]=-y[1],O[(T-2)*3+2]=-y[2],O[(T-1)*3]=y[0],O[(T-1)*3+1]=y[1],O[(T-1)*3+2]=y[2]);let M=(e,t,n)=>{A[e]=t,j[e]=n},F=0,I=d(),L=d();for(let e=0;e<f;e++){let t=2*Math.PI/f*e;i(I,S,Math.sin(t)),i(L,C,Math.cos(t)),a(I,I,L),O[e*3]=I[0],O[e*3+1]=I[1],O[e*3+2]=I[2],i(I,I,c),a(I,I,x),D[e*3]=I[0],D[e*3+1]=I[1],D[e*3+2]=I[2],k[e*2]=e/f,k[e*2+1]=0,D[(e+f)*3]=D[e*3]+b[0],D[(e+f)*3+1]=D[e*3+1]+b[1],D[(e+f)*3+2]=D[e*3+2]+b[2],k[(e+f)*2]=e/f,k[e*2+1]=1;let n=(e+1)%f;M(F++,e,e),M(F++,e+f,e),M(F++,n,n),M(F++,n,n),M(F++,e+f,e),M(F++,n+f,n)}if(h){for(let e=0;e<f;e++){let t=(e+1)%f;M(F++,w-2,T-2),M(F++,e,T-2),M(F++,t,T-2)}for(let e=0;e<f;e++){let t=(e+1)%f;M(F++,e+f,T-1),M(F++,w-1,T-1),M(F++,t+f,T-1)}}t.setParameters({normalType:1});let R=[[`position`,new E(D,A,3,!0)],[`normalCompressed`,new E(P(O),j,2,!0)],[`uv0`,new E(k,A,2,!0)]];return new N(t,R)}function xe(e,t,n,r,i,a){r||=10,i??=!0,L(t.length>1);let o=[[0,0,0]],s=[],c=[];for(let e=0;e<r;e++){s.push([0,-e-1,-((e+1)%r)-1]);let t=e/r*2*Math.PI;c.push([Math.cos(t)*n,Math.sin(t)*n])}return Se(e,c,t,o,s,i,a)}function Se(t,o,l,d,f,p,h=u(0,0,0)){let _=o.length,v=g(l.length*_*3+(d.length*6||0)),y=g(l.length*_*3+(d?6:0)),w=[],T=[],D=0,O=0,k=m(),A=m(),j=m(),M=m(),F=m(),I=m(),L=m(),R=m(),z=m(),B=m(),ee=m(),te=m(),ne=m(),V=b();e(z,0,1,0),n(A,l[1],l[0]),r(A,A),p?(a(R,l[0],h),r(j,R)):e(j,0,0,1),ke(A,j,z,z,F,j,Ae),c(M,j),c(te,F);for(let e=0;e<d.length;e++)i(I,F,d[e][0]),i(R,j,d[e][2]),a(I,I,R),a(I,I,l[0]),v[D++]=I[0],v[D++]=I[1],v[D++]=I[2];y[O++]=-A[0],y[O++]=-A[1],y[O++]=-A[2];for(let e=0;e<f.length;e++)w.push(f[e][0]>0?f[e][0]:-f[e][0]-1+d.length),w.push(f[e][1]>0?f[e][1]:-f[e][1]-1+d.length),w.push(f[e][2]>0?f[e][2]:-f[e][2]-1+d.length),T.push(0),T.push(0),T.push(0);let H=d.length,re=d.length-1;for(let e=0;e<l.length;e++){let t=!1;e>0&&(c(k,A),e<l.length-1?(n(A,l[e+1],l[e]),r(A,A)):t=!0,a(B,k,A),r(B,B),a(ee,l[e-1],M),x(l[e],B,V),S(V,C(ee,k),R)?(n(R,R,l[e]),r(j,R),s(F,B,j),r(F,F)):ke(B,M,te,z,F,j,Ae),c(M,j),c(te,F)),p&&(a(R,l[e],h),r(ne,R));for(let n=0;n<_;n++)if(i(I,F,o[n][0]),i(R,j,o[n][1]),a(I,I,R),r(L,I),y[O++]=L[0],y[O++]=L[1],y[O++]=L[2],a(I,I,l[e]),v[D++]=I[0],v[D++]=I[1],v[D++]=I[2],!t){let e=(n+1)%_;w.push(H+n),w.push(H+_+n),w.push(H+e),w.push(H+e),w.push(H+_+n),w.push(H+_+e);for(let e=0;e<6;e++){let t=w.length-6;T.push(w[t+e]-re)}}H+=_}let U=l[l.length-1];for(let e=0;e<d.length;e++)i(I,F,d[e][0]),i(R,j,d[e][1]),a(I,I,R),a(I,I,U),v[D++]=I[0],v[D++]=I[1],v[D++]=I[2];let ie=O/3;y[O++]=A[0],y[O++]=A[1],y[O++]=A[2];let ae=H-_;for(let e=0;e<f.length;e++)w.push(f[e][0]>=0?H+f[e][0]:-f[e][0]-1+ae),w.push(f[e][2]>=0?H+f[e][2]:-f[e][2]-1+ae),w.push(f[e][1]>=0?H+f[e][1]:-f[e][1]-1+ae),T.push(ie),T.push(ie),T.push(ie);let oe=[[`position`,new E(v,w,3,!0)],[`normalCompressed`,new E(P(y),T,2,!0)]];return new N(t,oe)}function Ce(e,t,n,r,i){let a=h(t.length*3),o=Array(2*(t.length-1)),s=0,c=0;for(let e=0;e<t.length;e++){for(let n=0;n<3;n++)a[s++]=t[e][n];e>0&&(o[c++]=e-1,o[c++]=e)}let l=[[`position`,new E(a,o,3,!0)]];if(n?.length===t.length&&n[0].length===3){let e=g(n.length*3),r=0;for(let i=0;i<t.length;i++)for(let t=0;t<3;t++)e[r++]=n[i][t];l.push([`normal`,new E(e,o,3,!0)])}if(r&&l.push([`color`,new E(r,v(r.length/4),4)]),i?.length===t.length){let e=w(i,1);l.push([`timeStamps`,new E(e,o,T,!0)])}return new N(e,l,null)}function we(e,t,n,r,i,a=0){let o=Array(18),s=[[-n,a,i/2],[r,a,i/2],[0,t+a,i/2],[-n,a,-i/2],[r,a,-i/2],[0,t+a,-i/2]],c=[0,1,2,3,0,2,2,5,3,1,4,5,5,2,1,1,0,3,3,4,1,4,3,5];for(let e=0;e<6;e++)o[e*3]=s[e][0],o[e*3+1]=s[e][1],o[e*3+2]=s[e][2];return new N(e,[[`position`,new E(o,c,3,!0)]])}function Te(n,r){let i=n.getMutableAttribute(`position`).data;for(let n=0;n<i.length;n+=3){let a=i[n],o=i[n+1],s=i[n+2];e($,a,o,s),t($,$,r),i[n]=$[0],i[n+1]=$[1],i[n+2]=$[2]}}function Ee(e,t=e){let n=e.attributes,r=n.get(`position`)?.data;if(r){let e=t.getMutableAttribute(`position`).data;for(let t=0;t<r.length;t+=3){let n=r[t+1];e[t+1]=-r[t+2],e[t+2]=n}}let i=n.get(`normal`)?.data;if(i){let e=t.getMutableAttribute(`normal`).data;for(let t=0;t<i.length;t+=3){let n=i[t+1];e[t+1]=-i[t+2],e[t+2]=n}}let a=n.get(`normalCompressed`)?.data;if(a){let e=t.getMutableAttribute(`normalCompressed`).data;for(let t=0;t<a.length;t+=2)F(De,a,t,1),I(e,t,De[0],-De[2],De[1],1)}}const De=m();function Oe(e,t,n,i,a){return Math.abs(o(t,e))>a?!1:(s(n,e,t),r(n,n),s(i,n,e),r(i,i),!0)}function ke(e,t,n,r,i,a,o){return Oe(e,t,i,a,o)||Oe(e,n,i,a,o)||Oe(e,r,i,a,o)}const Ae=.99619469809,$=m();export{Ee as cgToGIS,re as createBoxGeometry,ye as createConeGeometry,be as createCylinderGeometry,se as createDiamondGeometry,we as createExtrudedTriangle,Se as createPathExtrusionGeometry,ge as createPointBufferGeometry,he as createPolySphereData,me as createPolySphereGeometry,Ce as createPolylineGeometry,pe as createSphereGeometry,ve as createSquareGeometry,fe as createTetrahedronGeometry,xe as createTubeGeometry,ke as makeOrthoBasisDirUpFallback,Te as transformInPlace};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import has from"../../../../core/has.js";import{NestedMap as e}from"../../../../core/NestedMap.js";import{fromValues as t}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{BufferViewVec4u8 as n}from"../../../../geometry/support/buffer/BufferView.js";class r{constructor(){this.declaredClass=`esri.views.3d.webgl-engine.lib.ObjectAndLayerIdRenderHelper`,this.colorZero=new n(new ArrayBuffer(4)),this._layerToOidToColor=new e,this._colorToUID=new Map,this._layerViewUidToGraphicsUidToObjectId=new e,this._layerViewUidToLayerId=new Map,this._layerViewUidToPopupEnabled=new Map}setUidToObjectAndLayerId(e,t,n,r,i,a=null,o=null,s=null){e&&t&&n&&r&&(this._layerViewUidToLayerId.set(r,n),this._layerViewUidToPopupEnabled.set(r,i),i&&this._layerViewUidToGraphicsUidToObjectId.set(r,t,{objectId:e,attributeNodeId:a,attributeIndex:o,subLayerId:s}))}getObjectAndLayerIdColor(e){let n=this.getObjectAndLayerIdColorArray(e);return t(n.get(0,1),n.get(0,2),n.get(0,3),255)}getObjectAndLayerIdColorArray(e){if(!e.layerViewUid||!e.graphicUid)return this.colorZero;let t=this._layerViewUidToPopupEnabled.get(e.layerViewUid);if(t===void 0||t===!1)return this.colorZero;let r=this._layerViewUidToGraphicsUidToObjectId.get(e.layerViewUid,e.graphicUid)?.objectId;if(!r)return this.colorZero;let i=this._layerToOidToColor.get(e.layerViewUid,r);if(!i){if(has(`enable-feature:objectAndLayerId-screenshot-testing`))i=r;else for(;!i;){let e=Math.floor(Math.random()*
|
|
2
|
+
import has from"../../../../core/has.js";import{NestedMap as e}from"../../../../core/NestedMap.js";import{fromValues as t}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{BufferViewVec4u8 as n}from"../../../../geometry/support/buffer/BufferView.js";class r{constructor(){this.declaredClass=`esri.views.3d.webgl-engine.lib.ObjectAndLayerIdRenderHelper`,this.colorZero=new n(new ArrayBuffer(4)),this._layerToOidToColor=new e,this._colorToUID=new Map,this._layerViewUidToGraphicsUidToObjectId=new e,this._layerViewUidToLayerId=new Map,this._layerViewUidToPopupEnabled=new Map}setUidToObjectAndLayerId(e,t,n,r,i,a=null,o=null,s=null){e&&t&&n&&r&&(this._layerViewUidToLayerId.set(r,n),this._layerViewUidToPopupEnabled.set(r,i),i&&this._layerViewUidToGraphicsUidToObjectId.set(r,t,{objectId:e,attributeNodeId:a,attributeIndex:o,subLayerId:s}))}getObjectAndLayerIdColor(e){let n=this.getObjectAndLayerIdColorArray(e);return t(n.get(0,1),n.get(0,2),n.get(0,3),255)}getObjectAndLayerIdColorArray(e){if(!e.layerViewUid||!e.graphicUid)return this.colorZero;let t=this._layerViewUidToPopupEnabled.get(e.layerViewUid);if(t===void 0||t===!1)return this.colorZero;let r=this._layerViewUidToGraphicsUidToObjectId.get(e.layerViewUid,e.graphicUid)?.objectId;if(!r)return this.colorZero;let i=this._layerToOidToColor.get(e.layerViewUid,r);if(!i){if(has(`enable-feature:objectAndLayerId-screenshot-testing`))i=r;else for(;!i;){let e=Math.floor(Math.random()*0xfffffe)+1;this._colorToUID.has(e)||(i=e)}if(i>0xffffff)throw Error(`Object ID Overflow`);this._layerToOidToColor.set(e.layerViewUid,r,i),this._colorToUID.set(i,e)}let a=new ArrayBuffer(4);return new DataView(a).setUint32(0,i,!1),new n(a)}getColorToObjectAndLayerIdMapping(){let e=new Map;for(let[t,n]of this._colorToUID.entries()){let r=this._layerViewUidToGraphicsUidToObjectId.get(n.layerViewUid,n.graphicUid),i=this._layerViewUidToLayerId.get(n.layerViewUid);r&&i&&e.set(t,r.attributeNodeId?{type:`object-and-layer-and-i3s-id`,olid:r.objectId,lid:i,attrId:r.attributeNodeId,attrIdx:r.attributeIndex,subLayerId:r.subLayerId}:{type:`object-and-layer-id`,olid:r.objectId,lid:i})}return e}}export{r as ObjectAndLayerIdRenderHelper};
|