@arcgis/core 5.2.0-next.129 → 5.2.0-next.130
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/arcade/Feature.js +1 -1
- package/arcade/Voxel.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/051ccfea4268b357c44a.js +1 -0
- package/assets/esri/core/workers/chunks/1012cd1dff551025e605.js +1 -0
- package/assets/esri/core/workers/chunks/1538cfa272658871a3ad.js +1 -0
- package/assets/esri/core/workers/chunks/15f0cb6af89bafea61dc.js +1 -0
- package/assets/esri/core/workers/chunks/{8cb216404a6254bc695c.js → 18d5bad86ea3ef3ec747.js} +47 -47
- package/assets/esri/core/workers/chunks/{f652d1db26fbdea1a79b.js → 19fd46743daecd1f2dcb.js} +1 -1
- package/assets/esri/core/workers/chunks/{81327e10200065a0ccef.js → 1b5e0ab7e4f64a3aae09.js} +1 -1
- package/assets/esri/core/workers/chunks/1e66240ef0ae351d3275.js +1 -0
- package/assets/esri/core/workers/chunks/260fb3e021fe1a8e7ef1.js +1 -0
- package/assets/esri/core/workers/chunks/276cc95ae152ecf3048e.js +1 -0
- package/assets/esri/core/workers/chunks/34b6307fdd0226914dc4.js +1 -0
- package/assets/esri/core/workers/chunks/353acc00762b5ca450ef.js +1 -0
- package/assets/esri/core/workers/chunks/3df58dc89f2160893c66.js +1 -0
- package/assets/esri/core/workers/chunks/{1a02c68de65a67ab6a67.js → 550d8631450bb5eb7a6f.js} +1 -1
- package/assets/esri/core/workers/chunks/{f92178ac6dc9abff304f.js → 5f610ccf07bc73942b28.js} +1 -1
- package/assets/esri/core/workers/chunks/650618e7bfd932b9c5ff.js +1 -0
- package/assets/esri/core/workers/chunks/{cd1821bf601949674e02.js → 6ca2898aa500c81c7a8e.js} +1 -1
- package/assets/esri/core/workers/chunks/6fbc76b6e3494a09814e.js +1 -0
- package/assets/esri/core/workers/chunks/7185de70abe4face6f6e.js +1 -0
- package/assets/esri/core/workers/chunks/8048ce97ce22b32c454d.js +1 -0
- package/assets/esri/core/workers/chunks/9238409c942c24e26a0f.js +1 -0
- package/assets/esri/core/workers/chunks/{540acf6abdee9dbd453e.js → 92ec93287d4598377def.js} +1 -1
- package/assets/esri/core/workers/chunks/{88610ebfdf9c93ada781.js → 9c87a7f14298fd5e6c1d.js} +1 -1
- package/assets/esri/core/workers/chunks/a12773419465999fafe7.js +1 -0
- package/assets/esri/core/workers/chunks/{a3a5cb664bdb1db190dd.js → a61395db617fd26f048f.js} +1 -1
- package/assets/esri/core/workers/chunks/a826b7d9e6c59e951cb2.js +1 -0
- package/assets/esri/core/workers/chunks/a84cac7963ca3258bd75.js +1 -0
- package/assets/esri/core/workers/chunks/{c94bdfed831c775e04c0.js → abdb34cfaff49472223c.js} +1 -1
- package/assets/esri/core/workers/chunks/ba1d9d3cb90636dc9814.js +1 -0
- package/assets/esri/core/workers/chunks/bcab8bcb1fb1fd2aa65a.js +1 -0
- package/assets/esri/core/workers/chunks/d713c8d36cb7ed943003.js +1 -0
- package/assets/esri/core/workers/chunks/da8c881ea2dfcad8bbba.js +1 -0
- package/assets/esri/core/workers/chunks/ddafe5dfe178288ed721.js +1 -0
- package/assets/esri/core/workers/chunks/e5d2247187764c149854.js +1 -0
- package/assets/esri/core/workers/chunks/e706296a91780c665ab7.js +1 -0
- package/assets/esri/core/workers/chunks/e8a1abc881decf66e260.js +1 -0
- package/assets/esri/core/workers/chunks/ef527a7ea65fe6530a3e.js +1 -0
- package/assets/esri/core/workers/chunks/f5e24f1c38fe494585a8.js +1 -0
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ar.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.bg.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.bs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ca.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.cs.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.da.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.de.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.el.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.es.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.et.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.fi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.fr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.he.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.hr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.hu.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.id.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.it.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ja.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ko.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.lt.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.lv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.nl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.no.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.pl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ro.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.ru.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.sk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.sl.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.sr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.sv.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.th.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.tr.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.uk.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.vi.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.en.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +1 -1
- package/config.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getArcadeFeatureSource.js +2 -0
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/package.json +3 -3
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/selection/types.d.ts +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/support/SelectionList/FeatureItem.d.ts +14 -0
- package/widgets/support/SelectionList/FeatureItem.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +0 -1
- package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +0 -1
- package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +0 -1
- package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +0 -1
- package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +0 -1
- package/assets/esri/core/workers/chunks/237795866c075880531b.js +0 -1
- package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +0 -1
- package/assets/esri/core/workers/chunks/28a04887ecaee5445d14.js +0 -1
- package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +0 -1
- package/assets/esri/core/workers/chunks/323451ef52d0c2805f1d.js +0 -1
- package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +0 -1
- package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +0 -1
- package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +0 -1
- package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +0 -1
- package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +0 -1
- package/assets/esri/core/workers/chunks/88e11b645a1361f1bdbe.js +0 -1
- package/assets/esri/core/workers/chunks/8b0d6205ceeec1ab446f.js +0 -1
- package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +0 -1
- package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +0 -1
- package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +0 -1
- package/assets/esri/core/workers/chunks/bb831d23422acfb00ae2.js +0 -1
- package/assets/esri/core/workers/chunks/bd231bc0624eb889ac14.js +0 -1
- package/assets/esri/core/workers/chunks/cf7b7e54cd87422ca62a.js +0 -1
- package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +0 -1
- package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +0 -1
- package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +0 -1
- package/assets/esri/core/workers/chunks/fe1787a8d499832996b3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"attachments":{"addFile":"添加文件","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"附件编辑已禁用。","attachmentLimitExceeded":"超出附件限制","attachmentLimitReached":"已达到附件数量上限","attachmentMustBeShorterThan":"附件时长必须短于 {maxDuration}","attachmentsMustBeShorterThan":"附件时长必须短于 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必须小于 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必须小于 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"捕获","captureMethodNotSupported":"不支持捕获方法","captureUnsupportedAdd":"此设备不支持捕获。","captureUnsupportedDetail":"此设备不支持捕获。","chooseFile":"选择文件","count":"计数:{count}","deleted":"已删除","download":"下载","dragAndDropFile":"拖放文件。","fileExceedsMaximumSize":"文件超过最大大小限制","fileName":"文件名","fileSelected":"已选择文件","fileToBeReplaced":"要替换的文件","imageResizedToMeetRequirements":"已按要求调整图像大小","maximumAudioLength":"音频时长上限:{maxDuration}","maximumFileSize":"最大文件大小:{maxSize}","maximumNumberOfFiles":"最大文件数:{count}","maximumVideoLength":"视频时长上限:{maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已达到最大数量。 请移除附件以继续。","maxAttachmentsShort":"最大值:{count}","maxAttachments":"最大附件数:{count}","minimumNotMet":"未满足最小附件数要求","minimumNumberOfFiles":"最小文件数:{count}","minAttachmentsShort":"最小值:{count}","minAttachments":"最小附件数:{count}","noAttachments":"无附件","noPreviewAvailable":"无可用预览","remove":"移除","replace":"替换","recordAudio":"录音","takePhoto":"拍照","takeVideo":"录像","searchAttachments":"搜索附件","replaceFile":"替换文件","selectFile":"选择文件","size":"大小","type":"类型","unableToAddAttachment":"无法添加附件","unableToAddAttachments":"无法添加附件","unsupportedDevice":"不支持的设备","unsupportedDeviceCaptureMessage":"此设备不支持所需的捕获方法。","viewAll":"查看全部","youCanAddUpToOneAttachment":"最多可以添加 1 个附件","youCanAddUpToAttachments":"最多可以添加 {count} 个附件"},"addFeature":"添加要素","addRecord":"添加记录","unsupportedDomainGroupTitle":"不支持的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"没有值","otherOptionLabel":"其他","expressionEvaluationFailed":"表单计算失败","failedToCalculateValues":"无法计算值","footerButtons":{"add":"添加","delete":"删除","discard":"放弃","done":"完成","replace":"替换","reset":"重置","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"删除已禁用。 此功能需要满足最小附件数要求。"},"formFailedToLoad":"表单加载失败。","formFailedToLoadTooManyComplexFeatures":"此表单使用的功能可将属性编辑限制为 {num} 个要素。","formFailedToLoadTooManyFeatures":"最多选择 {num} 个要素以编辑属性。","noVisibleFields":{"allElementsHidden":"所选要素没有任何可显示的字段","elementsHiddenInSome":"所选要素的共享字段因可见性表达式未显示","noElements":"所选要素没有可显示的字段","noElementsInCommon":"所选要素没有共享字段"},"other":"其他","recommended":"推荐","relatedRecords":{"noOriginKeyFeature":"输入 {originKeyField} 后,才可以将要素添加到 {relatedLayerName}。","noOriginKeyRecord":"输入 {originKeyField} 后,才可以将记录添加到 {relatedLayerName}。","noRecordsFound":"未找到记录。","noRelatedRecordsFound":"未找到相关记录。","relatedRecordsTitle":"相关记录","untitledLayer":"无标题图层"},"requiredFieldBatchMode":"此字段为一个或多个要素的必填项。","requiredFieldLabel":"{name} - 为必填字段","deselectAllLabel":"取消全选","selectAllLabel":"全选","showAll":"显示全部","showAllOptions":"显示所有选项","titles":{"addAttachments":"添加附件","attachments":"附件","editFeature":"编辑要素","editFeatures":"编辑要素","editAttachment":"编辑附件","replaceAttachment":"替换附件"},"totalCount":"总计:{count}","unsupported":"不支持","unsupportedContingentValues":"编辑多个要素的属性不适用于具有条件值的图层。","validationErrors":{"cannotBeNull":"请输入一个值","invalidCodedValue":"值应为下列某个值。","invalidType":"不是有效值","invalidBatchFormType":"一个或多个要素包含无效值。 检查各个要素。","featuresInError":"一个或多个要素具有错误。 检查各个要素。","featuresWithInvalidValues":"一个或多个要素具有无效值","nonVisibleError_changeValues":"所选要素的隐藏字段具有无效值。 修改这些值,使其可见。","nonVisibleError_checkIndividualFeatures":"一个或多个要素的隐藏字段具有无效值。 请检查单个要素并解决该问题。","outsideRange":"值应该介于 {min} 到 {max} 之间","outsideRangeMax":"值应小于或等于 {max}","outsideRangeMin":"值应大于或等于 {min}","tooFewSelectedChoices":"至少选择其中 {min} 个选项","tooManySelectedChoices":"最多选择其中 {max} 个选项","tooShort":"此字段至少需要 {min} 个字符。","valuesIncompatible":"值与其他所选值不兼容"},"valueExpressionError":"计算值失败","viewAll":"查看全部","subtypes":{"changeWarning":"子类型 {newType} 可能具有不同的 {originalType} 默认值。 保留当前值可能会导致意外结果。","changeWarningTitle":"更改子类型","useDefaultValuesOption":"使用默认值","keepCurrentValuesOption":"保留当前值","unsupportedDomainGroupTitle":"不支持","fieldOutOfSubtypeDomainWarning":"此字段的值超出了其域的范围。"}}
|
|
1
|
+
{"attachments":{"addFile":"添加文件","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"附件编辑已禁用。","attachmentLimitExceeded":"超出附件限制","attachmentLimitReached":"已达到附件数量上限","attachmentMustBeShorterThan":"附件时长必须短于 {maxDuration}","attachmentsMustBeShorterThan":"附件时长必须短于 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必须小于 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必须小于 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"捕获","captureMethodNotSupported":"不支持捕获方法","captureUnsupportedAdd":"此设备不支持捕获。","captureUnsupportedDetail":"此设备不支持捕获。","chooseFile":"选择文件","count":"计数:{count}","deleted":"已删除","download":"下载","dragAndDropFile":"拖放文件。","fileExceedsMaximumSize":"文件超过最大大小限制","fileName":"文件名","fileSelected":"已选择文件","fileToBeReplaced":"要替换的文件","imageResizedToMeetRequirements":"已按要求调整图像大小","maximumAudioLength":"音频时长上限:{maxDuration}","maximumFileSize":"最大文件大小:{maxSize}","maximumNumberOfFiles":"最大文件数:{count}","maximumVideoLength":"视频时长上限:{maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已达到最大数量。 请移除附件以继续。","maxAttachmentsShort":"最大值:{count}","maxAttachments":"最大附件数:{count}","minimumNotMet":"未满足最小附件数要求","minimumNumberOfFiles":"最小文件数:{count}","minAttachmentsShort":"最小值:{count}","minAttachments":"最小附件数:{count}","noAttachments":"无附件","noPreviewAvailable":"无可用预览","remove":"移除","replace":"替换","recordAudio":"录音","takePhoto":"拍照","takeVideo":"录像","searchAttachments":"搜索附件","replaceFile":"替换文件","selectFile":"选择文件","size":"大小","type":"类型","unableToAddAttachment":"无法添加附件","unableToAddAttachments":"无法添加附件","unsupportedDevice":"不支持的设备","unsupportedDeviceCaptureMessage":"此设备不支持所需的捕获方法。","viewAll":"查看全部","youCanAddUpToOneAttachment":"最多可以添加 1 个附件","youCanAddUpToAttachments":"最多可以添加 {count} 个附件"},"addFeature":"添加要素","addRecord":"添加记录","unsupportedDomainGroupTitle":"不支持的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"没有值","noDynamicChoices":"试_No choices were returned for this field_____________________验","otherOptionLabel":"其他","expressionEvaluationFailed":"表单计算失败","failedToCalculateValues":"无法计算值","footerButtons":{"add":"添加","delete":"删除","discard":"放弃","done":"完成","replace":"替换","reset":"重置","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"删除已禁用。 此功能需要满足最小附件数要求。"},"formFailedToLoad":"表单加载失败。","formFailedToLoadTooManyComplexFeatures":"此表单使用的功能可将属性编辑限制为 {num} 个要素。","formFailedToLoadTooManyFeatures":"最多选择 {num} 个要素以编辑属性。","noVisibleFields":{"allElementsHidden":"所选要素没有任何可显示的字段","elementsHiddenInSome":"所选要素的共享字段因可见性表达式未显示","noElements":"所选要素没有可显示的字段","noElementsInCommon":"所选要素没有共享字段"},"other":"其他","recommended":"推荐","relatedRecords":{"noOriginKeyFeature":"输入 {originKeyField} 后,才可以将要素添加到 {relatedLayerName}。","noOriginKeyRecord":"输入 {originKeyField} 后,才可以将记录添加到 {relatedLayerName}。","noRecordsFound":"未找到记录。","noRelatedRecordsFound":"未找到相关记录。","relatedRecordsTitle":"相关记录","untitledLayer":"无标题图层"},"requiredFieldBatchMode":"此字段为一个或多个要素的必填项。","requiredFieldLabel":"{name} - 为必填字段","deselectAllLabel":"取消全选","selectAllLabel":"全选","showAll":"显示全部","showAllOptions":"显示所有选项","titles":{"addAttachments":"添加附件","attachments":"附件","editFeature":"编辑要素","editFeatures":"编辑要素","editAttachment":"编辑附件","replaceAttachment":"替换附件"},"totalCount":"总计:{count}","unsupported":"不支持","unsupportedContingentValues":"编辑多个要素的属性不适用于具有条件值的图层。","validationErrors":{"cannotBeNull":"请输入一个值","invalidCodedValue":"值应为下列某个值。","invalidType":"不是有效值","invalidBatchFormType":"一个或多个要素包含无效值。 检查各个要素。","featuresInError":"一个或多个要素具有错误。 检查各个要素。","featuresWithInvalidValues":"一个或多个要素具有无效值","nonVisibleError_changeValues":"所选要素的隐藏字段具有无效值。 修改这些值,使其可见。","nonVisibleError_checkIndividualFeatures":"一个或多个要素的隐藏字段具有无效值。 请检查单个要素并解决该问题。","outsideRange":"值应该介于 {min} 到 {max} 之间","outsideRangeMax":"值应小于或等于 {max}","outsideRangeMin":"值应大于或等于 {min}","tooFewSelectedChoices":"至少选择其中 {min} 个选项","tooManySelectedChoices":"最多选择其中 {max} 个选项","tooShort":"此字段至少需要 {min} 个字符。","valuesIncompatible":"值与其他所选值不兼容"},"valueExpressionError":"计算值失败","viewAll":"查看全部","subtypes":{"changeWarning":"子类型 {newType} 可能具有不同的 {originalType} 默认值。 保留当前值可能会导致意外结果。","changeWarningTitle":"更改子类型","useDefaultValuesOption":"使用默认值","keepCurrentValuesOption":"保留当前值","unsupportedDomainGroupTitle":"不支持","fieldOutOfSubtypeDomainWarning":"此字段的值超出了其域的范围。"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"attachments":{"addFile":"新增檔案","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"已停用附件編輯。","attachmentLimitExceeded":"已超過附件限制","attachmentLimitReached":"已達到附件限制","attachmentMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentsMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必須小於 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必須小於 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"擷取","captureMethodNotSupported":"不支援的擷取方法","captureUnsupportedAdd":"此裝置不支援擷取。","captureUnsupportedDetail":"此裝置不支援擷取。","chooseFile":"選擇檔案","count":"計數: {count}","deleted":"已刪除","download":"下載","dragAndDropFile":"拖放檔案。","fileExceedsMaximumSize":"檔案超過大小上限","fileName":"檔案名稱","fileSelected":"選擇的檔案","fileToBeReplaced":"要取代的檔案","imageResizedToMeetRequirements":"圖像大小已調整為符合需求","maximumAudioLength":"音訊長度上限: {maxDuration}","maximumFileSize":"檔案大小上限: {maxSize}","maximumNumberOfFiles":"檔案數上限: {count}","maximumVideoLength":"視訊長度上限: {maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已達到最大數量。 移除附件以繼續。","maxAttachmentsShort":"最大值: {count}","maxAttachments":"附件數上限: {count}","minimumNotMet":"未滿足最低附件需求","minimumNumberOfFiles":"檔案數下限: {count}","minAttachmentsShort":"最小值: {count}","minAttachments":"附件數下限: {count}","noAttachments":"無附件","noPreviewAvailable":"無法預覽","remove":"移除","replace":"取代","recordAudio":"錄音","takePhoto":"拍照","takeVideo":"錄影","searchAttachments":"搜尋附件","replaceFile":"取代檔案","selectFile":"選擇檔案","size":"大小","type":"類型","unableToAddAttachment":"無法新增附件","unableToAddAttachments":"無法新增附件","unsupportedDevice":"不支援的裝置","unsupportedDeviceCaptureMessage":"此裝置不支援必要的擷取方法。","viewAll":"檢視所有","youCanAddUpToOneAttachment":"最多可新增 1 個附件","youCanAddUpToAttachments":"最多可新增 {count} 個附件"},"addFeature":"新增圖徵","addRecord":"新增記錄","unsupportedDomainGroupTitle":"不支援的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"沒有值","otherOptionLabel":"其他","expressionEvaluationFailed":"表格無法執行計算","failedToCalculateValues":"無法計算值","footerButtons":{"add":"新增","delete":"刪除","discard":"放棄","done":"完成","replace":"取代","reset":"重設","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"已停用刪除。 此功能需要的附件數下限。"},"formFailedToLoad":"無法載入表格。","formFailedToLoadTooManyComplexFeatures":"此表格使用將屬性編輯限制為 {num} 個圖徵的功能。","formFailedToLoadTooManyFeatures":"選擇最多 {num} 個圖徵以編輯屬性。","noVisibleFields":{"allElementsHidden":"所選圖徵沒有要顯示的欄位","elementsHiddenInSome":"所選圖徵具有分享的欄位,由於可見性表達式而未顯示","noElements":"所選圖徵沒有要顯示的欄位","noElementsInCommon":"所選圖徵沒有分享的欄位"},"other":"其他","recommended":"建議","relatedRecords":{"noOriginKeyFeature":"輸入 '{originKeyField}' 後才能將圖徵新增至 '{relatedLayerName}'。","noOriginKeyRecord":"輸入 '{originKeyField}' 後才能將記錄新增至 '{relatedLayerName}'。","noRecordsFound":"找不到記錄。","noRelatedRecordsFound":"找不到相關記錄。","relatedRecordsTitle":"相關記錄","untitledLayer":"未命名的圖層"},"requiredFieldBatchMode":"此欄位對於一或多個圖徵是必要的。","requiredFieldLabel":"{name} - 必要欄位","deselectAllLabel":"取消全選","selectAllLabel":"全選","showAll":"顯示全部","showAllOptions":"顯示所有選項","titles":{"addAttachments":"新增附件","attachments":"附件","editFeature":"編輯圖徵","editFeatures":"編輯圖徵","editAttachment":"編輯附件","replaceAttachment":"取代附件"},"totalCount":"總計: {count}","unsupported":"不支援","unsupportedContingentValues":"對於具有意外值的圖層,無法編輯多個圖徵的屬性。","validationErrors":{"cannotBeNull":"請輸入一個值","invalidCodedValue":"值必須是其中一個列出值。","invalidType":"非有效值","invalidBatchFormType":"一或多個圖徵包含無效值。 檢查個別圖徵。","featuresInError":"一或多個圖徵發生錯誤。 檢查個別圖徵。","featuresWithInvalidValues":"一或多個圖徵具有無效值","nonVisibleError_changeValues":"所選圖徵具有包含無效值的隱藏欄位。 變更值以使欄位可見。","nonVisibleError_checkIndividualFeatures":"一或多個圖徵具有包含無效值的隱藏欄位。 檢查個別圖徵並更正問題。","outsideRange":"值應該介於 {min} 到 {max}","outsideRangeMax":"值必須小於或等於 {max}","outsideRangeMin":"值必須大於或等於 {min}","tooFewSelectedChoices":"選擇至少 {min} 個選項","tooManySelectedChoices":"選擇至多 {max} 個選項","tooShort":"此欄位至少需要 {min} 個字元","valuesIncompatible":"值與其他選定值不相容"},"valueExpressionError":"無法計算值。","viewAll":"檢視所有","subtypes":{"changeWarning":"子類型 {newType} 可能具有與 {originalType} 不同的預設值。 保留目前值可能會導致非預期的結果。","changeWarningTitle":"子類型已變更","useDefaultValuesOption":"使用預設值","keepCurrentValuesOption":"保留目前值","unsupportedDomainGroupTitle":"不支援","fieldOutOfSubtypeDomainWarning":"此欄位的值超出其網域的範圍。"}}
|
|
1
|
+
{"attachments":{"addFile":"新增檔案","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"已停用附件編輯。","attachmentLimitExceeded":"已超過附件限制","attachmentLimitReached":"已達到附件限制","attachmentMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentsMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必須小於 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必須小於 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"擷取","captureMethodNotSupported":"不支援的擷取方法","captureUnsupportedAdd":"此裝置不支援擷取。","captureUnsupportedDetail":"此裝置不支援擷取。","chooseFile":"選擇檔案","count":"計數: {count}","deleted":"已刪除","download":"下載","dragAndDropFile":"拖放檔案。","fileExceedsMaximumSize":"檔案超過大小上限","fileName":"檔案名稱","fileSelected":"選擇的檔案","fileToBeReplaced":"要取代的檔案","imageResizedToMeetRequirements":"圖像大小已調整為符合需求","maximumAudioLength":"音訊長度上限: {maxDuration}","maximumFileSize":"檔案大小上限: {maxSize}","maximumNumberOfFiles":"檔案數上限: {count}","maximumVideoLength":"視訊長度上限: {maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已達到最大數量。 移除附件以繼續。","maxAttachmentsShort":"最大值: {count}","maxAttachments":"附件數上限: {count}","minimumNotMet":"未滿足最低附件需求","minimumNumberOfFiles":"檔案數下限: {count}","minAttachmentsShort":"最小值: {count}","minAttachments":"附件數下限: {count}","noAttachments":"無附件","noPreviewAvailable":"無法預覽","remove":"移除","replace":"取代","recordAudio":"錄音","takePhoto":"拍照","takeVideo":"錄影","searchAttachments":"搜尋附件","replaceFile":"取代檔案","selectFile":"選擇檔案","size":"大小","type":"類型","unableToAddAttachment":"無法新增附件","unableToAddAttachments":"無法新增附件","unsupportedDevice":"不支援的裝置","unsupportedDeviceCaptureMessage":"此裝置不支援必要的擷取方法。","viewAll":"檢視所有","youCanAddUpToOneAttachment":"最多可新增 1 個附件","youCanAddUpToAttachments":"最多可新增 {count} 個附件"},"addFeature":"新增圖徵","addRecord":"新增記錄","unsupportedDomainGroupTitle":"不支援的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"沒有值","noDynamicChoices":"試_No choices were returned for this field_____________________驗","otherOptionLabel":"其他","expressionEvaluationFailed":"表格無法執行計算","failedToCalculateValues":"無法計算值","footerButtons":{"add":"新增","delete":"刪除","discard":"放棄","done":"完成","replace":"取代","reset":"重設","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"已停用刪除。 此功能需要的附件數下限。"},"formFailedToLoad":"無法載入表格。","formFailedToLoadTooManyComplexFeatures":"此表格使用將屬性編輯限制為 {num} 個圖徵的功能。","formFailedToLoadTooManyFeatures":"選擇最多 {num} 個圖徵以編輯屬性。","noVisibleFields":{"allElementsHidden":"所選圖徵沒有要顯示的欄位","elementsHiddenInSome":"所選圖徵具有分享的欄位,由於可見性表達式而未顯示","noElements":"所選圖徵沒有要顯示的欄位","noElementsInCommon":"所選圖徵沒有分享的欄位"},"other":"其他","recommended":"建議","relatedRecords":{"noOriginKeyFeature":"輸入 '{originKeyField}' 後才能將圖徵新增至 '{relatedLayerName}'。","noOriginKeyRecord":"輸入 '{originKeyField}' 後才能將記錄新增至 '{relatedLayerName}'。","noRecordsFound":"找不到記錄。","noRelatedRecordsFound":"找不到相關記錄。","relatedRecordsTitle":"相關記錄","untitledLayer":"未命名的圖層"},"requiredFieldBatchMode":"此欄位對於一或多個圖徵是必要的。","requiredFieldLabel":"{name} - 必要欄位","deselectAllLabel":"取消全選","selectAllLabel":"全選","showAll":"顯示全部","showAllOptions":"顯示所有選項","titles":{"addAttachments":"新增附件","attachments":"附件","editFeature":"編輯圖徵","editFeatures":"編輯圖徵","editAttachment":"編輯附件","replaceAttachment":"取代附件"},"totalCount":"總計: {count}","unsupported":"不支援","unsupportedContingentValues":"對於具有意外值的圖層,無法編輯多個圖徵的屬性。","validationErrors":{"cannotBeNull":"請輸入一個值","invalidCodedValue":"值必須是其中一個列出值。","invalidType":"非有效值","invalidBatchFormType":"一或多個圖徵包含無效值。 檢查個別圖徵。","featuresInError":"一或多個圖徵發生錯誤。 檢查個別圖徵。","featuresWithInvalidValues":"一或多個圖徵具有無效值","nonVisibleError_changeValues":"所選圖徵具有包含無效值的隱藏欄位。 變更值以使欄位可見。","nonVisibleError_checkIndividualFeatures":"一或多個圖徵具有包含無效值的隱藏欄位。 檢查個別圖徵並更正問題。","outsideRange":"值應該介於 {min} 到 {max}","outsideRangeMax":"值必須小於或等於 {max}","outsideRangeMin":"值必須大於或等於 {min}","tooFewSelectedChoices":"選擇至少 {min} 個選項","tooManySelectedChoices":"選擇至多 {max} 個選項","tooShort":"此欄位至少需要 {min} 個字元","valuesIncompatible":"值與其他選定值不相容"},"valueExpressionError":"無法計算值。","viewAll":"檢視所有","subtypes":{"changeWarning":"子類型 {newType} 可能具有與 {originalType} 不同的預設值。 保留目前值可能會導致非預期的結果。","changeWarningTitle":"子類型已變更","useDefaultValuesOption":"使用預設值","keepCurrentValuesOption":"保留目前值","unsupportedDomainGroupTitle":"不支援","fieldOutOfSubtypeDomainWarning":"此欄位的值超出其網域的範圍。"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"attachments":{"addFile":"新增檔案","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"已停用附件編輯。","attachmentLimitExceeded":"已超過附件限制","attachmentLimitReached":"已達到附件限制","attachmentMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentsMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必須小於 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必須小於 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"擷取","captureMethodNotSupported":"不支援的擷取方法","captureUnsupportedAdd":"此裝置不支援擷取。","captureUnsupportedDetail":"此裝置不支援擷取。","chooseFile":"選擇檔案","count":"計數: {count}","deleted":"已刪除","download":"下載","dragAndDropFile":"拖放檔案。","fileExceedsMaximumSize":"檔案超過大小上限","fileName":"檔案名稱","fileSelected":"選擇的檔案","fileToBeReplaced":"要取代的檔案","imageResizedToMeetRequirements":"圖像大小已調整為符合需求","maximumAudioLength":"音訊長度上限: {maxDuration}","maximumFileSize":"檔案大小上限: {maxSize}","maximumNumberOfFiles":"檔案數上限: {count}","maximumVideoLength":"視訊長度上限: {maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已達到最大數量。 移除附件以繼續。","maxAttachmentsShort":"最大值: {count}","maxAttachments":"附件數上限: {count}","minimumNotMet":"未滿足最低附件需求","minimumNumberOfFiles":"檔案數下限: {count}","minAttachmentsShort":"最小值: {count}","minAttachments":"附件數下限: {count}","noAttachments":"無附件","noPreviewAvailable":"無法預覽","remove":"移除","replace":"取代","recordAudio":"錄音","takePhoto":"拍照","takeVideo":"錄影","searchAttachments":"搜尋附件","replaceFile":"取代檔案","selectFile":"選擇檔案","size":"大小","type":"類型","unableToAddAttachment":"無法新增附件","unableToAddAttachments":"無法新增附件","unsupportedDevice":"不支援的裝置","unsupportedDeviceCaptureMessage":"此裝置不支援必要的擷取方法。","viewAll":"檢視所有","youCanAddUpToOneAttachment":"最多可新增 1 個附件","youCanAddUpToAttachments":"最多可新增 {count} 個附件"},"addFeature":"新增圖徵","addRecord":"新增記錄","unsupportedDomainGroupTitle":"不支援的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"沒有值","otherOptionLabel":"其他","expressionEvaluationFailed":"表格無法執行計算","failedToCalculateValues":"無法計算值","footerButtons":{"add":"新增","delete":"刪除","discard":"放棄","done":"完成","replace":"取代","reset":"重設","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"已停用刪除。 此功能需要的附件數下限。"},"formFailedToLoad":"無法載入表格。","formFailedToLoadTooManyComplexFeatures":"此表格使用將屬性編輯限制為 {num} 個圖徵的功能。","formFailedToLoadTooManyFeatures":"選擇最多 {num} 個圖徵以編輯屬性。","noVisibleFields":{"allElementsHidden":"所選圖徵沒有要顯示的欄位","elementsHiddenInSome":"所選圖徵具有分享的欄位,由於可見性表達式而未顯示","noElements":"所選圖徵沒有要顯示的欄位","noElementsInCommon":"所選圖徵沒有分享的欄位"},"other":"其他","recommended":"建議","relatedRecords":{"noOriginKeyFeature":"輸入 '{originKeyField}' 後才能將圖徵新增至 '{relatedLayerName}'。","noOriginKeyRecord":"輸入 '{originKeyField}' 後才能將記錄新增至 '{relatedLayerName}'。","noRecordsFound":"找不到記錄。","noRelatedRecordsFound":"找不到相關記錄。","relatedRecordsTitle":"相關記錄","untitledLayer":"未命名的圖層"},"requiredFieldBatchMode":"此欄位對於一或多個圖徵是必要的。","requiredFieldLabel":"{name} - 必要欄位","deselectAllLabel":"取消全選","selectAllLabel":"全選","showAll":"顯示全部","showAllOptions":"顯示所有選項","titles":{"addAttachments":"新增附件","attachments":"附件","editFeature":"編輯圖徵","editFeatures":"編輯圖徵","editAttachment":"編輯附件","replaceAttachment":"取代附件"},"totalCount":"總計: {count}","unsupported":"不支援","unsupportedContingentValues":"對於具有意外值的圖層,無法編輯多個圖徵的屬性。","validationErrors":{"cannotBeNull":"請輸入一個值","invalidCodedValue":"值必須是其中一個列出值。","invalidType":"非有效值","invalidBatchFormType":"一或多個圖徵包含無效值。 檢查個別圖徵。","featuresInError":"一或多個圖徵發生錯誤。 檢查個別圖徵。","featuresWithInvalidValues":"一或多個圖徵具有無效值","nonVisibleError_changeValues":"所選圖徵具有包含無效值的隱藏欄位。 變更值以使欄位可見。","nonVisibleError_checkIndividualFeatures":"一或多個圖徵具有包含無效值的隱藏欄位。 檢查個別圖徵並更正問題。","outsideRange":"值應該介於 {min} 到 {max}","outsideRangeMax":"值必須小於或等於 {max}","outsideRangeMin":"值必須大於或等於 {min}","tooFewSelectedChoices":"選擇至少 {min} 個選項","tooManySelectedChoices":"選擇至多 {max} 個選項","tooShort":"此欄位至少需要 {min} 個字元","valuesIncompatible":"值與其他選定值不相容"},"valueExpressionError":"無法計算值。","viewAll":"檢視所有","subtypes":{"changeWarning":"子類型 {newType} 可能具有與 {originalType} 不同的預設值。 保留目前值可能會導致非預期的結果。","changeWarningTitle":"子類型已變更","useDefaultValuesOption":"使用預設值","keepCurrentValuesOption":"保留目前值","unsupportedDomainGroupTitle":"不支援","fieldOutOfSubtypeDomainWarning":"此欄位的值超出其網域的範圍。"}}
|
|
1
|
+
{"attachments":{"addFile":"新增檔案","attachmentNumberedLabel":"附件 {index}","attach":"附加","attachmentEditingDisabled":"已停用附件編輯。","attachmentLimitExceeded":"已超過附件限制","attachmentLimitReached":"已達到附件限制","attachmentMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentsMustBeShorterThan":"附件長度必須短於 {maxDuration}","attachmentMustBeSmallerThan":"附件大小必須小於 {maxSize}","attachmentsMustBeSmallerThan":"附件大小必須小於 {maxSize}","durationInSecond":"{count} 秒","durationInSeconds":"{count} 秒","capture":"擷取","captureMethodNotSupported":"不支援的擷取方法","captureUnsupportedAdd":"此裝置不支援擷取。","captureUnsupportedDetail":"此裝置不支援擷取。","chooseFile":"選擇檔案","count":"計數: {count}","deleted":"已刪除","download":"下載","dragAndDropFile":"拖放檔案。","fileExceedsMaximumSize":"檔案超過大小上限","fileName":"檔案名稱","fileSelected":"選擇的檔案","fileToBeReplaced":"要取代的檔案","imageResizedToMeetRequirements":"圖像大小已調整為符合需求","maximumAudioLength":"音訊長度上限: {maxDuration}","maximumFileSize":"檔案大小上限: {maxSize}","maximumNumberOfFiles":"檔案數上限: {count}","maximumVideoLength":"視訊長度上限: {maxDuration}","maximize":"最大化","maximumNumberReachedRemoveToContinue":"已達到最大數量。 移除附件以繼續。","maxAttachmentsShort":"最大值: {count}","maxAttachments":"附件數上限: {count}","minimumNotMet":"未滿足最低附件需求","minimumNumberOfFiles":"檔案數下限: {count}","minAttachmentsShort":"最小值: {count}","minAttachments":"附件數下限: {count}","noAttachments":"無附件","noPreviewAvailable":"無法預覽","remove":"移除","replace":"取代","recordAudio":"錄音","takePhoto":"拍照","takeVideo":"錄影","searchAttachments":"搜尋附件","replaceFile":"取代檔案","selectFile":"選擇檔案","size":"大小","type":"類型","unableToAddAttachment":"無法新增附件","unableToAddAttachments":"無法新增附件","unsupportedDevice":"不支援的裝置","unsupportedDeviceCaptureMessage":"此裝置不支援必要的擷取方法。","viewAll":"檢視所有","youCanAddUpToOneAttachment":"最多可新增 1 個附件","youCanAddUpToAttachments":"最多可新增 {count} 個附件"},"addFeature":"新增圖徵","addRecord":"新增記錄","unsupportedDomainGroupTitle":"不支援的值","differentValues":"不同值","differentValuesPlaceholder":"(不同值)","empty":"沒有值","noDynamicChoices":"試_No choices were returned for this field_____________________驗","otherOptionLabel":"其他","expressionEvaluationFailed":"表格無法執行計算","failedToCalculateValues":"無法計算值","footerButtons":{"add":"新增","delete":"刪除","discard":"放棄","done":"完成","replace":"取代","reset":"重設","update":"更新"},"footerNotices":{"deleteDisabledMinimumAttachments":"已停用刪除。 此功能需要的附件數下限。"},"formFailedToLoad":"無法載入表格。","formFailedToLoadTooManyComplexFeatures":"此表格使用將屬性編輯限制為 {num} 個圖徵的功能。","formFailedToLoadTooManyFeatures":"選擇最多 {num} 個圖徵以編輯屬性。","noVisibleFields":{"allElementsHidden":"所選圖徵沒有要顯示的欄位","elementsHiddenInSome":"所選圖徵具有分享的欄位,由於可見性表達式而未顯示","noElements":"所選圖徵沒有要顯示的欄位","noElementsInCommon":"所選圖徵沒有分享的欄位"},"other":"其他","recommended":"建議","relatedRecords":{"noOriginKeyFeature":"輸入 '{originKeyField}' 後才能將圖徵新增至 '{relatedLayerName}'。","noOriginKeyRecord":"輸入 '{originKeyField}' 後才能將記錄新增至 '{relatedLayerName}'。","noRecordsFound":"找不到記錄。","noRelatedRecordsFound":"找不到相關記錄。","relatedRecordsTitle":"相關記錄","untitledLayer":"未命名的圖層"},"requiredFieldBatchMode":"此欄位對於一或多個圖徵是必要的。","requiredFieldLabel":"{name} - 必要欄位","deselectAllLabel":"取消全選","selectAllLabel":"全選","showAll":"顯示全部","showAllOptions":"顯示所有選項","titles":{"addAttachments":"新增附件","attachments":"附件","editFeature":"編輯圖徵","editFeatures":"編輯圖徵","editAttachment":"編輯附件","replaceAttachment":"取代附件"},"totalCount":"總計: {count}","unsupported":"不支援","unsupportedContingentValues":"對於具有意外值的圖層,無法編輯多個圖徵的屬性。","validationErrors":{"cannotBeNull":"請輸入一個值","invalidCodedValue":"值必須是其中一個列出值。","invalidType":"非有效值","invalidBatchFormType":"一或多個圖徵包含無效值。 檢查個別圖徵。","featuresInError":"一或多個圖徵發生錯誤。 檢查個別圖徵。","featuresWithInvalidValues":"一或多個圖徵具有無效值","nonVisibleError_changeValues":"所選圖徵具有包含無效值的隱藏欄位。 變更值以使欄位可見。","nonVisibleError_checkIndividualFeatures":"一或多個圖徵具有包含無效值的隱藏欄位。 檢查個別圖徵並更正問題。","outsideRange":"值應該介於 {min} 到 {max}","outsideRangeMax":"值必須小於或等於 {max}","outsideRangeMin":"值必須大於或等於 {min}","tooFewSelectedChoices":"選擇至少 {min} 個選項","tooManySelectedChoices":"選擇至多 {max} 個選項","tooShort":"此欄位至少需要 {min} 個字元","valuesIncompatible":"值與其他選定值不相容"},"valueExpressionError":"無法計算值。","viewAll":"檢視所有","subtypes":{"changeWarning":"子類型 {newType} 可能具有與 {originalType} 不同的預設值。 保留目前值可能會導致非預期的結果。","changeWarningTitle":"子類型已變更","useDefaultValuesOption":"使用預設值","keepCurrentValuesOption":"保留目前值","unsupportedDomainGroupTitle":"不支援","fieldOutOfSubtypeDomainWarning":"此欄位的值超出其網域的範圍。"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"widgetLabel":"Sketch","undo":"Undo","redo":"Redo","draw":{"point":"Draw a point","polygon":"Draw a polygon","polyline":"Draw a polyline","circle":"Draw a circle","rectangle":"Draw a rectangle","multipoint":"Draw a multipoint","mesh":"Draw a mesh","freehandPolyline":"Draw a polyline (
|
|
1
|
+
{"widgetLabel":"Sketch","undo":"Undo","redo":"Redo","draw":{"point":"Draw a point","polygon":"Draw a polygon","polyline":"Draw a polyline","circle":"Draw a circle","rectangle":"Draw a rectangle","multipoint":"Draw a multipoint","mesh":"Draw a mesh","freehandPolyline":"Draw a polyline (stream)","freehandPolygon":"Draw a polygon (stream)","text":"Add text"},"digitizers":{"root-point":"Draw a point","root-polygon":"Draw a polygon","root-polyline":"Draw a polyline","root-circle":"Draw a circle or ellipse","root-rectangle":"Draw a rectangle or square","root-multipoint":"Draw a multipoint","root-mesh":"Draw a mesh","root-text":"Add text","leaf-point":"Point","leaf-distance-distance":"Distance-distance (circle-circle intersection)","leaf-direction-distance":"Direction-distance (circle-line intersection)","leaf-direction-direction":"Direction-direction (line-line intersection)","leaf-point-segment":"Line segment","leaf-autocomplete":"Autocomplete","leaf-right-angle":"Right angle segment","leaf-freehand":"Freehand segment","leaf-stream":"Stream segment","leaf-tangent-arc":"Tangent curve segment","leaf-circular-arc":"Arc segment","leaf-endpoint-arc":"Endpoint arc segment","leaf-bezier":"Bezier curve segment"},"partActions":{"completePart":"Finish part","completeInput":"Finish current input","releaseManipulator":"Stop following cursor","captureManipulator":"Follow cursor","completeDrawing":"Finish","cancelDrawing":"Cancel"},"keyboardFeedback":{"tooltip":"Keyboard movement speed: {value}{unit}","value":"{value}{unitCompact}"},"tooltips":{"shortcutMessage":"{originalTooltip} (shortcutKey)"},"advancedSettings":{"keyboardInput":"Enable advanced keyboard shortcuts"},"settings":{"toolOptionsHeading":"Drawing options","freehandSnappingEnabledTitle":"Freehand snaps when not streaming","freehandSnappingEnabledDescription":"When enabled, the Freehand segment tool applies snapping while not actively dragging.","bezierEnableSplineBehaviorTitle":"Bezier draws splines","bezierEnableSplineBehaviorDescription":"When enabled, the Bezier segment tool infers the first control point of each subsequent segment from the previous segment."},"selectedCount":"Selection: {count}","selectedCountTruncated":"{truncated}+","finalizingDrawing":"Processing","finalizingDrawingHint":"Your drawing is being simplified for performance and compatibility. For faster processing, avoid self-intersecting and overlapping segments.","finalizingDrawingCompleteHint":"The drawing created earlier required simplification for performance and compatibility. To avoid this step in the future, don't draw polygons with overlapping and self-intersecting sections.","deleteFeature":"Delete feature","deleteFeatures":"Delete features","selectFeature":"Select feature","duplicateFeature":"Duplicate feature","duplicateFeatures":"Duplicate features","finalizingDrawingTitle":"Processing geometry..."}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepthLastFrame as a}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepthLastFrame.glsl.js";import{Gamma as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{mainLightDirection as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{ScreenSpaceRayMarching as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js";import{CameraSpace as r}from"../views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js";import{viewMatrix as l}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{FloatBindUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as c}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as s,If as h}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix4BindUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js";import{Texture2DBindUniform as m}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as u}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{GlobalIlluminationColorQuantization as p}from"../views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js";import{floatBlendReductionFactor as g}from"../views/3d/webgl-engine/shaders/floatBlendScale.glsl.js";import{ToneMapping as f}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ColorAttachment1 as y,SizedPixelFormat as x}from"../views/webgl/enums.js";import{NoParameters as v}from"../views/webgl/NoParameters.js";import{ShaderBuilder as M}from"../views/webgl/ShaderBuilder.js";const b=.01,w=.008,B=.0028,S=.45,j=.5,F=.02,W=.1,D=.008,R=.3,I=.008,C=150,z=.095,O=.008,T=60,P=2,G=.0039,E=.25,L=.012,Q=6,H=2.5,V=.15,k=25,U=.15,N=.5,q=1,_=1,$=16;class A extends v{constructor(){super(...arguments),this.projScale=1,this.resolutionScale=1,this.accumulatedFrames=0,this.temporalSampleFrame=0,this.rayMarchMinReach=U,this.rayMarchMaxReach=N,this.rayMarchWorldReach=k,this.rayMarchMinReachEmissionWeight=q,this.rayMarchMaxReachEmissionWeight=_,this.rayMarchMaxSteps=$,this.colorBleedWeight=V,this.highQualityIdleColorBlendStart=R,this.emissionBoostFactor=H}}function K(v){const R=new M,H=R.fragment;R.include(e),R.include(r),H.include(a),H.include(t),H.include(p),H.include(f),R.include(i,v),H.uniforms.add(o,l,new u("normalMap",e=>e.normalTexture),new u("depthMap",e=>e.depthTexture),new
|
|
2
|
+
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepthLastFrame as a}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepthLastFrame.glsl.js";import{Gamma as t}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{mainLightDirection as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{ScreenSpaceRayMarching as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js";import{CameraSpace as r}from"../views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js";import{viewMatrix as l}from"../views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js";import{FloatBindUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as c}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as s,If as h}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix4BindUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js";import{Texture2DBindUniform as m}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as u}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{GlobalIlluminationColorQuantization as p}from"../views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js";import{floatBlendReductionFactor as g}from"../views/3d/webgl-engine/shaders/floatBlendScale.glsl.js";import{ToneMapping as f}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ColorAttachment1 as y,SizedPixelFormat as x}from"../views/webgl/enums.js";import{NoParameters as v}from"../views/webgl/NoParameters.js";import{ShaderBuilder as M}from"../views/webgl/ShaderBuilder.js";const b=.01,w=.008,B=.0028,S=.45,j=.5,F=.02,W=.1,D=.008,R=.3,I=.008,C=150,z=.095,O=.008,T=60,P=2,G=.0039,E=.25,L=.012,Q=6,H=2.5,V=.15,k=25,U=.15,N=.5,q=1,_=1,$=16;class A extends v{constructor(){super(...arguments),this.projScale=1,this.resolutionScale=1,this.accumulatedFrames=0,this.temporalSampleFrame=0,this.rayMarchMinReach=U,this.rayMarchMaxReach=N,this.rayMarchWorldReach=k,this.rayMarchMinReachEmissionWeight=q,this.rayMarchMaxReachEmissionWeight=_,this.rayMarchMaxSteps=$,this.colorBleedWeight=V,this.highQualityIdleColorBlendStart=R,this.emissionBoostFactor=H}}function K(v){const R=new M,H=R.fragment;R.include(e),R.include(r),H.include(a),H.include(t),H.include(p),H.include(f),R.include(i,v),H.uniforms.add(o,l,new u("normalMap",e=>e.normalTexture),new u("depthMap",e=>e.depthTexture),new u("lastFrameGlobalIlluminationTexture",(e,a)=>e.globalIllumination??a.globalIllumination?.getTexture()),new u("lastFrameGlobalIlluminationWeightTexture",(e,a)=>e.globalIlluminationWeights??a.globalIllumination?.getTexture(y)),new m("lastFrameColorTexture",e=>e.reprojection.lastFrameColor?.getTexture()),new m("lastFrameDepthTexture",e=>e.reprojection.lastFrameDepth?.attachment),new d("reprojectionProjectionMatrix",e=>e.reprojection.lastFrameCamera.projectionMatrix),new d("reprojectionViewMatrix",e=>e.reprojection.viewMatrix),new c("accumulatedFrames",e=>e.accumulatedFrames),new c("temporalSampleFrame",e=>e.temporalSampleFrame),new c("resolutionScale",e=>e.resolutionScale)),H.uniforms.add(new c("rayMarchMinReach",e=>e.rayMarchMinReach),new c("rayMarchMaxReach",e=>e.rayMarchMaxReach),new c("rayMarchWorldReach",e=>e.rayMarchWorldReach),new c("rayMarchMinReachEmissionWeight",e=>e.rayMarchMinReachEmissionWeight),new c("rayMarchMaxReachEmissionWeight",e=>e.rayMarchMaxReachEmissionWeight),new c("rayMarchMaxSteps",e=>e.rayMarchMaxSteps),new c("colorBleedWeight",e=>e.colorBleedWeight),new c("highQualityIdleColorBlendStart",e=>e.highQualityIdleColorBlendStart),new c("emissionBoostFactor",e=>e.emissionBoostFactor));const{hasEmission:V,hasColor:k}=v;return V&&(H.uniforms.add(new n("inputScale",e=>e.reprojection.lastFrameEmission?.getTexture()?.descriptor.internalFormat===x.RGBA8?g:1),new m("lastFrameEmissionTexture",e=>e.reprojection.lastFrameEmission?.getTexture())),H.code.add(s`bool hasHitReprojectionMismatch(vec3 hit, vec2 hitReprojectedCoordinate, float colorBlendWeight) {
|
|
3
3
|
if (colorBlendWeight != 1.0) {
|
|
4
4
|
return false;
|
|
5
5
|
}
|
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.2.0-next.130";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"../../core/Error.js";import{getDefaultVerticalUnitStringForSR as t}from"../../core/units.js";import
|
|
2
|
+
import e from"../../core/Error.js";import{getDefaultVerticalUnitStringForSR as t}from"../../core/units.js";import a from"../HeightModelInfo.js";import{parse as i}from"../../layers/support/arcgisLayerUrl.js";function n(a,i){if(!a)return null;if(!o(a))return new e("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:a});const n=a.heightUnit,s=t(i);return n!==s?new e("webscene:incompatible-height-unit",`The vertical units of the scene (${n}) must match the horizontal units of the scene (${s})`,{verticalUnit:n,horizontalUnit:s}):null}function s(a,i,n){const s=h(a),o=i,l=r(s,o,n);if(s){const i=t(a.spatialReference);if(!n&&i!==s.heightUnit){const t=new e("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${i})`,{horizontalUnit:i});return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:s,error:t})}}if(!c(a)||4===l)return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:s});switch(l){case 1:{const t=s?.heightUnit||"unknown",a=o?.heightUnit||"unknown",i=new e("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${a})`,{layerUnit:t,sceneUnit:a});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:o,error:i})}case 2:{const t=s?.heightModel||"unknown",a=o?.heightModel||"unknown",i=new e("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${a})`,{layerHeightModel:t,sceneHeightModel:a});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:o,error:i})}case 3:{const t=s?.vertCRS||"unknown",a=o?.vertCRS||"unknown",i=new e("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${a})`,{layerDatum:t,sceneDatum:a});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:s,sceneHeightModelInfo:o,error:i})}}return null}function r(e,t,a){if(!o(e)||!o(t))return 4;if(null==e||null==t)return 0;if(!a&&e.heightUnit!==t.heightUnit)return 1;if(e.heightModel!==t.heightModel)return 2;switch(e.heightModel){case"gravity-related-height":return 0;case"ellipsoidal":return e.associatedSpatialReference&&t.associatedSpatialReference&&(e.associatedSpatialReference.vcsWkid===t.associatedSpatialReference.vcsWkid||e.associatedSpatialReference.latestVcsWkid===t.associatedSpatialReference.vcsWkid||e.associatedSpatialReference.vcsWkid===t.associatedSpatialReference.latestVcsWkid||e.associatedSpatialReference.latestVcsWkid===t.associatedSpatialReference.latestVcsWkid)||e.vertCRS===t.vertCRS?0:3;default:return 4}}function o(e){return null==e||null!=e.heightModel&&null!=e.heightUnit}function c(e){return"heightModelInfo"in e&&null!=e.heightModelInfo||null!=e.spatialReference||!d(e)}function l(e){const t=e.url?i(e.url):void 0,a=e.spatialReference?.vcsWkid;return!(null==a&&null!=t&&"ImageServer"===t.serverType)&&u(e)&&e.heightModelInfo?e.heightModelInfo:null}function h(e,i){const n=l(e);if(n)return n;if(!d(e))return null;const s=i??e.spatialReference,r=s&&a.fromSpatialReference(s);if(r)return r;const o=t(s);return o?new a({heightModel:"gravity-related-height",heightUnit:o,origin:4,associatedSpatialReference:s}):null}function u(e){return"heightModelInfo"in e}function f(e){if("unknown"===e.type||!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"feature":case"dimension-feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":case"knowledge-graph-sublayer":return!0;default:return!1}}function d(e){return f(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):p(e)}function g(e){return null!=e.layers||p(e)||f(e)||u(e)}function p(e){switch(e.type){case"annotation-feature":case"building-scene":case"elevation":case"gaussian-splat":case"integrated-mesh":case"integrated-mesh-3dtiles":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"catalog":case"catalog-footprint":case"catalog-dynamic-group":case"csv":case"dimension":case"dimension-feature":case"geojson":case"feature":case"subtype-group":case"geospatial-pdf":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"knowledge-graph":case"link-chart":case"knowledge-graph-sublayer":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"parquet":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"video":case"viewshed":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}export{h as deriveHeightModelInfoFromLayer,l as getLayerHeightModelInfo,r as isCompatible,s as rejectLayerError,g as supportsHeightModelInfo,n as validateWebSceneError};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as e}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";class i extends t{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get id(){return this.featureReductionProvider.id}get[r](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}get[e](){return this.featureReductionProvider}}export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as t}from"./getIdFieldsProvider.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isAnnotationFeatureGraphicOriginSymbol as o}from"./isAnnotationFeatureGraphicOrigin.js";var a;class n extends s{get[(a=o,e)](){return this.layer}get[t](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r,t){super(),this[a]=!0,this.type="annotation-feature",this.layer=r,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isBuildingGraphicOriginSymbol as u}from"./isBuildingGraphicOrigin.js";var a;class o extends s{get[(a=u,t)](){return this.sublayer}get[e](){return this.sublayer}get[i](){return this.sublayer}get[r](){return this.sublayer}constructor(r){super(),this[a]=!0,this.type="building",this.sublayer=r}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isCSVGraphicOriginSymbol as o}from"./isCSVGraphicOrigin.js";var a;class p extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="csv",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as t}from"./getIdFieldsProvider.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import o from"./GraphicOrigin.js";import{isCatalogGraphicOriginSymbol as s}from"./isCatalogGraphicOrigin.js";var a;class g extends o{get[(a=s,e)](){return this.layer}get[t](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="catalog",this.layer=r}get id(){return this.layer.id}}export{g as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isDimensionFeatureGraphicOriginSymbol as o}from"./isDimensionFeatureGraphicOrigin.js";var a;class n extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="dimension-feature",this.layer=r}get id(){return this.layer.id}}export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isFeatureGraphicOriginSymbol as o}from"./isFeatureGraphicOrigin.js";var a;class p extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="feature",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import o from"./GraphicOrigin.js";import{isGeoJSONGraphicOriginSymbol as s}from"./isGeoJSONGraphicOrigin.js";var a;class p extends o{get[(a=s,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="geojson",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isImageryGraphicOriginSymbol as o}from"./isImageryGraphicOrigin.js";var a;class m extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="imagery",this.layer=r}get id(){return this.layer.id}}export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as t}from"./getSliceableContainer.js";import i from"./GraphicOrigin.js";import{isImageryTileGraphicOriginSymbol as s}from"./isImageryTileGraphicOrigin.js";var a;class o extends i{get[(a=s,e)](){return this.layer}get[t](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="imagery-tile",this.layer=r}get id(){return this.layer.id}}export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isKnowledgeGraphGraphicOriginSymbol as o}from"./isKnowledgeGraphGraphicOrigin.js";var a;class u extends s{get[(a=o,t)](){return this.sublayer}get[e](){return this.sublayer}get[i](){return this.sublayer}get[r](){return this.sublayer}constructor(r,e){super(),this[a]=!0,this.type="knowledge-graph",this.layer=r,this.sublayer=e}get id(){return this.layer.id}}export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as t}from"./getIdFieldsProvider.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isLinkChartGraphicOriginSymbol as a}from"./isLinkChartGraphicOrigin.js";var o;class u extends s{get[(o=a,e)](){return this.sublayer}get[t](){return this.sublayer}get[i](){return this.sublayer}get[r](){return this.sublayer}constructor(r,t){super(),this[o]=!0,this.type="link-chart",this.layer=r,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as t}from"./getSliceableContainer.js";import i from"./GraphicOrigin.js";import{isMapImageGraphicOriginSymbol as s}from"./isMapImageGraphicOrigin.js";var a;class o extends i{get[(a=s,e)](){return this.sublayer}get[t](){return this.layer}get[r](){return this.sublayer}constructor(r,e){super(),this[a]=!0,this.type="map-image",this.layer=r,this.sublayer=e}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isOGCFeatureGraphicOriginSymbol as o}from"./isOGCFeatureGraphicOrigin.js";var a;class p extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="ogc-feature",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isOrientedImageryGraphicOriginSymbol as o}from"./isOrientedImageryGraphicOrigin.js";var a;class m extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="oriented-imagery",this.layer=r}get id(){return this.layer.id}}export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isParquetGraphicOriginSymbol as o}from"./isParquetGraphicOrigin.js";var a;class p extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="parquet",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as e}from"./getSliceableContainer.js";import i from"./GraphicOrigin.js";import{isPointCloudGraphicOriginSymbol as o}from"./isPointCloudGraphicOrigin.js";var s;class a extends i{get[(s=o,t)](){return this.layer}get[e](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[s]=!0,this.type="point-cloud",this.layer=r}get id(){return this.layer.id}}export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isSceneGraphicOriginSymbol as o}from"./isSceneGraphicOrigin.js";var a;class n extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="scene",this.layer=r}get id(){return this.layer.id}}export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isStreamGraphicOriginSymbol as o}from"./isStreamGraphicOrigin.js";var a;class m extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="stream",this.layer=r}get id(){return this.layer.id}}export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isSubtypeGroupGraphicOriginSymbol as o}from"./isSubtypeGroupGraphicOrigin.js";var u;class a extends s{get[(u=o,t)](){return this.sublayer}get[e](){return this.sublayer}get[i](){return this.layer}get[r](){return this.sublayer}constructor(r){super(),this[u]=!0,this.type="subtype-group",this.sublayer=r}get layer(){return this.sublayer.parent}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as e}from"./getPopupProvider.js";import{getSliceableContainerSymbol as t}from"./getSliceableContainer.js";import i from"./GraphicOrigin.js";import{isTileGraphicOriginSymbol as s}from"./isTileGraphicOrigin.js";var a;class o extends i{get[(a=s,e)](){return this.sublayer}get[t](){return this.layer}get[r](){return this.sublayer}constructor(r,e){super(),this[a]=!0,this.type="tile",this.layer=r,this.sublayer=e}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import e from"./GraphicOrigin.js";class o extends e{constructor(r){super(),this.type="track",this.trackInfoProvider=r}get id(){return this.trackInfoProvider.id}get[t](){return this.trackInfoProvider.trackInfo}get[r](){return this.trackInfoProvider}}export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as e}from"./getSliceableContainer.js";import i from"./GraphicOrigin.js";import{isWCSGraphicOriginSymbol as s}from"./isWCSGraphicOrigin.js";var o;class a extends i{get[(o=s,t)](){return this.layer}get[e](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[o]=!0,this.type="wcs",this.layer=r}get id(){return this.layer.id}}export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{getArcadeFeatureSourceSymbol as r}from"./getArcadeFeatureSource.js";import{idFieldsProviderSymbol as e}from"./getIdFieldsProvider.js";import{popupProviderSymbol as t}from"./getPopupProvider.js";import{getSliceableContainerSymbol as i}from"./getSliceableContainer.js";import s from"./GraphicOrigin.js";import{isWFSGraphicOriginSymbol as o}from"./isWFSGraphicOrigin.js";var a;class p extends s{get[(a=o,t)](){return this.layer}get[e](){return this.layer}get[i](){return this.layer}get[r](){return this.layer}constructor(r){super(),this[a]=!0,this.type="wfs",this.layer=r}get id(){return this.layer.id}}export{p as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
const n=Symbol("arcadeFeatureSource");function r(r){return null!=r&&n in r}function u(u){return r(u)?u[n]:null}export{u as getArcadeFeatureSource,n as getArcadeFeatureSourceSymbol,r as isArcadeFeatureSourceGraphicOrigin};
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.
|
|
2
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.2";let r,s=e;function i(o){r=o}function t(e){const s=r?.findCredential(e);return s?.token?o(e,"token",s.token):e}s="5.2.0-next.130",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,s as fullVersion,r as id,i as setId,e as version};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../request.js";import{has}from"../applications/Components/baUtils.js";import i from"../core/Accessor.js";import s from"../core/Error.js";import r from"../core/Logger.js";import{someMap as a}from"../core/MapUtils.js";import{createAbortError as n,isAborted as o,isAbortError as l}from"../core/promiseUtils.js";import d from"../core/ReactiveMap.js";import{watch as h}from"../core/reactiveUtils.js";import{signal as _}from"../core/signal.js";import{property as y,subclass as u}from"../core/accessorSupport/decorators.js";import c from"../geometry/SpatialReference.js";import{isGeographic as g}from"../geometry/support/spatialReferenceUtils.js";import m from"../geometry/support/WKIDUnitConversion.js";import{wasmFailedToInit as p,elevQueriesFull as f,elevQueriesGenericFail as w,invalidLayerView as b}from"./ILyr3DWasmPerSceneView.js";import{Lyr3DWorkerHandle as v}from"./Lyr3DWorkerHandle.js";import{getVCSFromHeightModelInfo as L}from"./support/tiles3DUtils.js";import{loadLyr3DMainWASM as D}from"../libs/lyr3d/Lyr3DModule.js";import{getElevationOffsetInMeters as C}from"../support/elevationInfoUtils.js";import{makeScheduleFunction as M}from"../views/3d/layers/support/makeScheduleFunction.js";import{TaskPriority as R}from"../views/support/Scheduler.js";import{Yield as k}from"../views/support/Yield.js";const S=3857,V=32662,I=4326,W=5773;let j=class extends i{get _frozen(){return this._frozenLayerViewCount>0}constructor(e){super(e),this._lyr3DMainPromise=null,this._lyr3DMain=null,this._layers=new Map,this._viewSR=null,this._haveAddedViewSRForNoOpPrj=!1,this._lyr3DBusyCount=0,this._lyr3DInternalMemoryBytes=0,this._isTerrainReady=!1,this._hasLayerThatReplacesTerrain=!1,this._frozenLayerViewCount=0,this._elevationQueries=new d,this._pendingJobCompleted=new Array,this._pendingJobFailed=new Array,this._pendingRenderableCreated=new Array,this._pulseDeferred=_(!1),this._jobDataBufferPtr=0,this._jobDataBufferCapacity=0,this._debugFlags=new Set,this._debugLevel=2,this._wasmNotLoaded="method requiring WASM was called when WASM isn't loaded",this._pulseTaskHandle=null,this._cameraDirty=!0,this._cameraElevationDirty=!0,this._debugFlags.add(0),this._debugFlags.add(1),this._debugFlags.add(2)}_debugLog(e,t,i,s=!0){if(this._debugFlags.has(e)&&this._debugLevel>=t){const e=s?`[js] ${i}`:`${i}`;0===t||1===t?r.getLogger(this).error(e):2===t&&r.getLogger(this).warn(e),r.getLogger(this).info(e)}}get viewSR(){return this._viewSR}get lyr3DInternalMemoryBytes(){return this._lyr3DInternalMemoryBytes}initialize(){this._debugLevel>2&&(r.getLogger(this).level="info"),this._debugLog(0,3,"Lyr3DWasmPerSceneView.initialize()"),this.addHandles([h(()=>this.view.state?.contentCamera,()=>this._updateWasmCamera()),h(()=>this.view.state?.contentCamera.relativeElevation,()=>this._updateWasmCameraElevation()),this.view.resourceController.addUpdatingObject(this)]),this._pulseTaskHandle=this.view.resourceController.scheduler.registerTask(R.LYR3D,this)}destroy(){this._debugLog(0,3,"Lyr3DWasmPerSceneView.destroy()"),this._lyr3DMain&&(this._jobDataBufferPtr&&(this._lyr3DMain._free(this._jobDataBufferPtr),this._jobDataBufferPtr=0,this._jobDataBufferCapacity=0),this._layers.forEach(e=>{e.abortController.abort()}),this._elevationQueries.forEach((e,t)=>{this._lyr3DMain.cancel_elevation_query(t),e.rejectCallback(n())}),this._elevationQueries.clear(),this._lyr3DMain.uninitialize_lyr3d_wasm(),this._lyr3DMain=null),this._pendingJobCompleted.length=0,this._pendingJobFailed.length=0,this._pendingRenderableCreated.length=0;const e=this._workerHandle;e&&e.destroyWasm().then(()=>{this._workerHandle?.destroy(),this._workerHandle=null}),this._pulseTaskHandle?.remove(),this._pulseTaskHandle=null}get readyToRun(){return this._hasPendingPulseWork()}get updating(){return this._elevationQueries.size>0}runTask(e){return this._pulseTask(e),k}_hasPendingPulseWork(){return!!this._lyr3DMain&&(!this._frozen&&this._cameraDirty||!this._frozen&&this._cameraElevationDirty||this._pendingJobCompleted.length>0||this._pendingJobFailed.length>0||this._pendingRenderableCreated.length>0||this._elevationQueries.size>0||a(this._layers,e=>this._isUpdating(e)))}addLayerView(e){return this._lyr3DMain?this._addLayerView(e):(this._debugLog(0,1,"Lyr3DWasmPerSceneView.add3DTilesLayerView() called when WASM wasn't initialized"),{wasmLayerId:p})}removeLayerView(e){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),0;this._is3DTilesIMLayerView(e)&&e.freeze&&this.decrementFrozenLayerViewCount(e),this._doRemoveLayerView(e);const t=this._layers.size;return 0===t&&(this._debugLog(0,3,"Lyr3DWasmPerSceneView.remove3DTilesLayerView() no Lyr3D layers left after removing a layer, destroying"),this.destroy()),t}getValidLayerViewCount(){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),0;let e=0;return this._layers.forEach(t=>{t.layerView.wasmLayerId>=0&&++e}),e}setEnabled(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);if(i){this._lyr3DMain.set_enabled(e.wasmLayerId,t),i.needMemoryUsageUpdate=!0;const s=this._isUpdating(i);i.needFrame=!0,s||i.layerView.updatingFlagChanged()}}setLayerOffset(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);i&&(this._lyr3DMain.set_carto_offset_z(e.wasmLayerId,t),i.needFrame=!0,i.layerView.updatingFlagChanged())}getAttributionText(){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),[];return this._lyr3DMain.get_current_attribution_text().split("|")}onRenderableEvicted(e,t,i){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);this._layers.get(e.wasmLayerId)&&this._lyr3DMain.on_renderable_evicted(e.wasmLayerId,t,i)}setMeshModifications(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);if(i){this._lyr3DMain.set_mesh_modification_polygons(e.wasmLayerId,t);const s=this._isUpdating(i);i.needFrame=!0,s||i.layerView.updatingFlagChanged()}}isUpdating(e){if(!this._lyr3DMain&&this._lyr3DMainPromise)return!0;const t=this._layers.get(e);return!!t&&this._isUpdating(t)}incrementFrozenLayerViewCount(e){this._layers.has(e.wasmLayerId)&&(this._frozenLayerViewCount+=1)}decrementFrozenLayerViewCount(e){this._layers.has(e.wasmLayerId)&&(this._frozenLayerViewCount-=1)}initializeWasm(e,t){return this._lyr3DMain?Promise.resolve():this.view.renderSpatialReference?(this._debugLog(0,3,"Lyr3DWasmPerSceneView.initializeWasm()"),this._lyr3DMainPromise||(this._lyr3DMainPromise=D().then(i=>{this._lyr3DMain=i,this._lyr3DMainPromise=null;const s=this._lyr3DMain.addFunction(this._onNewJob.bind(this),"vi"),r=this._lyr3DMain.addFunction(this._onNewRenderable.bind(this),"vi"),a=this._lyr3DMain.addFunction(this._freeRenderables.bind(this),"vi"),n=this._lyr3DMain.addFunction(this._setRenderableVisibility.bind(this),"vi"),o=this._lyr3DMain.addFunction(this._onWasmError.bind(this),"viiii"),l=this._lyr3DMain.addFunction(this._onElevQueryComplete.bind(this),"vi");if(!this.view.renderSpatialReference)return void(this._lyr3DMain=null);this._viewSR=this.view.renderSpatialReference?.toJSON();let d="global"===this.view.viewingMode?6:4;6===d?(this._viewSR.wkid=this._viewSR.latestWkid=I,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W,this._viewSR.wkt=""):(this._viewSR.vcsWkid||(this._viewSR.vcsWkid=L(this.view.heightModelInfo)),this.view.renderSpatialReference?.isWebMercator?(this._viewSR.wkid=this._viewSR.latestWkid=S,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W):this.view.renderSpatialReference?.wkid===V?(this._viewSR.wkid=this._viewSR.latestWkid=I,d=3,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W):this._viewSR.vcsWkid||this._viewSR.latestVcsWkid||(this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=-1));const h=has("esri-lyr3D-max-concurrent-requests")??16;return this._lyr3DMain.initialize_lyr3d_wasm(o,s,r,a,n,l,e,t,d,this._cleanUpSR(this._makeSRWasmSerializable(this._viewSR)),Math.max(this._debugLevel,0),h)?(this._workerHandle=new v(M(this.view.resourceController)),this._workerHandle.promise?this._workerHandle.promise:void 0):(this._lyr3DMain=null,void this._debugLog(0,0,"Lyr3d Main WASM failed to initialize",!1))}).catch(e=>{this._debugLog(0,0,`Lyr3d WASM failed to download error = ${e}`,!1)})),this._lyr3DMainPromise):Promise.reject()}get isTerrainReady(){return this._isTerrainReady}setLodPixelThreshold(e,t){this._lyr3DMain?.set_lod_pixel_threshold(t);const i=this._layers.get(e.wasmLayerId);i&&(i.needFrame=!0,i.layerView.updatingFlagChanged())}setMaximumGaussianSplatCount(e){this._lyr3DMain.set_maximum_splat_count(e),this._layers.forEach(e=>{"gaussian-splat-3d"===e.layerView.type&&(e.needFrame=!0,e.layerView.updatingFlagChanged())})}queryElevation(e,t,i){if(!this._lyr3DMain)return Promise.reject(this._wasmNotLoaded);if(0===t.coordinates.length)return Promise.reject("no coordinates for elevation query");const s="global"===this.view.viewingMode?c.WGS84:this._viewSR.wkid===S?c.WebMercator:c.PlateCarree,r=t.projectSync(s);r&&(t=r);const a=2*t.coordinates.length,n=this._lyr3DMain._malloc(8*a),o=new Float64Array(this._lyr3DMain.HEAPF64.buffer,n,a);for(let y=0;y<t.coordinates.length;++y){const e=t.coordinates[y];o[2*y]=e.x,o[2*y+1]=e.y}const l=i?.maxGeometricError??0,d=this._lyr3DMain.create_elevation_query(e.wasmLayerId,l,n,a);if(this._lyr3DMain._free(n),d===f)return Promise.reject("max mesh elevation query limit exceeded");if(d===w)return Promise.reject("elevation query failed");const h={wasmLayerId:e.wasmLayerId,descriptor:t,signal:i?.signal,resolveCallback:null,rejectCallback:null},_=new Promise((e,t)=>{h.resolveCallback=e,h.rejectCallback=t});return this._elevationQueries.set(d,h),_}_checkForAbortedElevationQueries(){const e=[];this._elevationQueries.forEach((t,i)=>{o(t.signal)&&(this._lyr3DMain.cancel_elevation_query(i),t.rejectCallback(n()),e.push(i))});for(let t=0;t<e.length;++t)this._elevationQueries.delete(e[t])}_cancelElevationQueriesForLayer(e){const t=new Array;this._elevationQueries.forEach((i,s)=>{i.wasmLayerId===e&&(this._lyr3DMain.cancel_elevation_query(s),i.rejectCallback(n()),t.push(s))}),t.forEach(e=>this._elevationQueries.delete(e))}_pulseTask(e){const t=this._lyr3DMain;if(t){if(this._frozen)return this._checkForAbortedElevationQueries(),void this._flushPendingWasmCalls(e);if(this._cameraDirty){const e=this.view.state?.contentCamera;if(e){const{eye:i,center:s,up:r,near:a,far:n,fovY:o}=e,l=[e.screenViewport[2],e.screenViewport[3]],d={eye:i,center:s,up:r,near:a,far:n,fov:o,aspectRatio:e.width/e.height,viewport:l};t.set_camera_parameters(d),this._cameraDirty=!1}}if(this._cameraElevationDirty){const e=this.view.state?.contentCamera.relativeElevation;t.set_camera_elevation(e),this._cameraElevationDirty=!1}if(this._checkForAbortedElevationQueries(),!this._pulseDeferred.value&&(this._flushPendingWasmCalls(e),e.done))return;let i=0,s=0;this._layers.forEach(e=>{i+=e.layerView.usedMemory,s+=e.layerView.cachedMemory}),i/=1048576,s/=1048576;const r=this.view.resourceController.memoryController,a=r.usedMemory*r.maxMemory-i-this._lyr3DInternalMemoryBytes/1048576;this._lyr3DBusyCount=this._lyr3DMain.frame_pulse(r.memoryFactor,i,s,a,r.maxMemory),this._pulseDeferred.value=!1,this._lyr3DInternalMemoryBytes=this._lyr3DMain.get_index_memory_bytes(),this._layers.forEach(e=>{this._cameraElevationDirty||(e.needFrame=!1),e.layerView.updatingFlagChanged()}),this._hasLayerThatReplacesTerrain&&!this._isTerrainReady&&(this._isTerrainReady=this._lyr3DMain.is_terrain_ready(),this._isTerrainReady&&this.notifyChange("isTerrainReady")),e.madeProgress(),this._flushPendingWasmCalls(e)}}_isUpdating(e){return e.outstandingJobCount>0||e.outstandingRenderableCount>0||!this._frozen&&(e.needFrame||this._cameraDirty||this._cameraElevationDirty||this._pulseDeferred.value||this._lyr3DBusyCount>0)}_incrementJobCount(e,t){if(t.isForElevationQuery)return;const i=this._isUpdating(e);e.outstandingJobCount+=1,i||e.layerView.updatingFlagChanged()}_decrementJobCount(e,t){if(t.isForElevationQuery)return;const i=this._isUpdating(e);e.outstandingJobCount-=1;i!==this._isUpdating(e)&&e.layerView.updatingFlagChanged()}_incrementRenderableCount(e){const t=this._isUpdating(e);e.outstandingRenderableCount+=1,t||e.layerView.updatingFlagChanged()}_decrementRenderableCount(e){const t=this._isUpdating(e);e.outstandingRenderableCount-=1;t!==this._isUpdating(e)&&e.layerView.updatingFlagChanged()}_flushPendingWasmCalls(e){this._lyr3DMain&&(this._flushPendingCalls(this._pendingJobFailed,e),this._flushPendingCalls(this._pendingJobCompleted,e),this._flushPendingCalls(this._pendingRenderableCreated,e))}_flushPendingCalls(e,t){for(;!t.done&&e.length>0;){const i=e.shift();this._pulseDeferred.value=!0,i(this._lyr3DMain),t.madeProgress()}}_decrementJobCountIfLayerExists(e,t){this._layers.get(e.layerView.wasmLayerId)===e&&this._decrementJobCount(e,t)}_decrementRenderableCountIfLayerExists(e){this._layers.get(e.layerView.wasmLayerId)===e&&this._decrementRenderableCount(e)}_onJobFailed(e,t,i){t.error.length&&this._debugLog(1,1,t.error,!1),this._lyr3DMain&&!e.layerView.destroyed?this._pendingJobFailed.push(t=>{try{t.on_job_failed(i.jobId,i.desc)}finally{this._decrementJobCountIfLayerExists(e,i)}}):this._decrementJobCountIfLayerExists(e,i)}_onJobSucceeded(e,t,i){if(e.layerView.destroyed)return void(this._lyr3DMain?this._pendingJobFailed.push(t=>{try{t.on_job_failed(i.jobId,i.desc)}finally{this._decrementJobCountIfLayerExists(e,i)}}):this._decrementJobCountIfLayerExists(e,i));const{data:s}=t;if(this._lyr3DMain){const r=r=>{try{const e=s.byteLength,a=this._ensureJobDataBuffer(e);new Uint8Array(r.HEAPU8.buffer,a,e).set(s),r.on_job_completed(i.jobId,t.jobDescJson,a,e)}finally{this._decrementJobCountIfLayerExists(e,i)}};this._pendingJobCompleted.push(r)}else this._decrementJobCountIfLayerExists(e,i)}_ensureJobDataBuffer(e){return e<=this._jobDataBufferCapacity&&this._jobDataBufferPtr||(this._jobDataBufferPtr&&this._lyr3DMain._free(this._jobDataBufferPtr),this._jobDataBufferPtr=this._lyr3DMain._malloc(e),this._jobDataBufferCapacity=e),this._jobDataBufferPtr}_getRequestPromises(e,i,s,r){const a=[];for(const n of e){const e=new URL(n);if("integrated-mesh-3dtiles"===r.type){if(e.origin===s.origin&&e.pathname===s.pathname){if(r.rootTileset){a.push(Promise.resolve(r.rootTileset.slice()));continue}}else r.session&&e.searchParams.set("session",r.session)}a.push(t(e.toString(),i).then(e=>e.data))}return a}_getInitialPromise(e,t,i,s,r,a,n){const o=this._getRequestPromises(e.urls,t,i,s);return Promise.all(o).then(e=>(r.inputs=e,this._workerHandle.invoke(r,a))).then(e=>e).catch(t=>{let i=1;return l(t)?this._debugLog(1,2,`job ${e.jobId} was cancelled.`):n&&400===t.details?.httpStatus?(i=3,this._debugLog(1,2,"Session expired, trying to create new Session.")):this._debugLog(1,1,`job ${e.jobId} failed with error ${t}.`),{status:i,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[],inputs:[]}})}async _onNewJob(e){let t;try{t=this._lyr3DMain.Emval.toValue(e);const s=this._layers.get(t.layerId);if(!s)return;this._incrementJobCount(s,t);const r=s.abortController.signal,a=s.layerView.layer,n="integrated-mesh-3dtiles"===a.type?a.key:null,o="integrated-mesh-3dtiles"===a.type?a.session:null,d={responseType:"array-buffer",signal:r,query:{...s.customParameters,token:s.apiKey,key:n}},h={id:t.jobId,inputs:[],jobDescJson:t.desc.slice(),isMissingResourceCase:!1},_=new URL(a.url),y=e=>{if(1===e.status)this._onJobFailed(s,e,t);else if(0===e.status)this._onJobSucceeded(s,e,t);else if(2===e.status){const i=this._getRequestPromises(e.missingInputUrls,d,_,a);Promise.all(i).then(t=>{h.jobDescJson=e.jobDescJson,e.originalInputs?h.inputs=e.originalInputs:h.inputs=[],h.isMissingResourceCase=!0;for(const e of t)h.inputs.push(e);return this._workerHandle.invoke(h,r)}).then(e=>{1===e.status?this._onJobFailed(s,e,t):0===e.status&&this._onJobSucceeded(s,e,t)}).catch(e=>{l(e)?this._debugLog(1,2,`job ${t.jobId} was cancelled.`):this._debugLog(1,1,`job ${t.jobId} failed with error ${e}.`),this._lyr3DMain?this._pendingJobFailed.push(e=>{try{e.on_job_failed(t.jobId,t.desc)}finally{this._decrementJobCountIfLayerExists(s,t)}}):this._decrementJobCountIfLayerExists(s,t)})}};try{const e=await this._getInitialPromise(t,d,_,a,h,r,o);if(3===e.status&&"integrated-mesh-3dtiles"===a.type){o===a.session&&null!==a.session&&await a.requestRootAndSession(r);y(await this._getInitialPromise(t,d,_,a,h,r,a.session))}else y(e)}catch(i){i&&this._debugLog(1,1,i.toString(),!1),this._lyr3DMain?this._pendingJobFailed.push(e=>{try{e.on_job_failed(t.jobId,t.desc)}finally{this._decrementJobCountIfLayerExists(s,t)}}):this._decrementJobCountIfLayerExists(s,t)}}catch(i){i&&this._debugLog(1,1,i.toString(),!1)}}_onNewRenderable(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);i&&(this._incrementRenderableCount(i),i.layerView.createRenderable(t).then(e=>{!this._lyr3DMain||i.layerView.destroyed?this._decrementRenderableCountIfLayerExists(i):this._pendingRenderableCreated.push(s=>{try{const{layerId:i,handle:r}=t,a=e();s.on_renderable_created(!0,i,r,a.memUsageBytes,a.numGaussians??0)}finally{this._decrementRenderableCountIfLayerExists(i)}})}).catch(e=>{l(e)||this._debugLog(2,1,`createRenderable failed with error ${e}.`),!this._lyr3DMain||i.layerView.destroyed?this._decrementRenderableCountIfLayerExists(i):this._pendingRenderableCreated.push(e=>{try{const{layerId:i,handle:s}=t;e.on_renderable_created(!1,i,s,0,0)}finally{this._decrementRenderableCountIfLayerExists(i)}})}))}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_freeRenderables(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);if(t.handles.length<1||!i)return;const s=i.layerView;for(let e=0;e<t.handles.length;++e)s.freeRenderable(t.handles[e])}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_setRenderableVisibility(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);if(t.handles.length<1||t.visibility.length!==t.handles.length||!i)return;const s=i.layerView,r=[],a=[];for(let e=0;e<t.handles.length;++e)r.push(t.handles[e]),a.push(!!(1&t.visibility[e]));s.setRenderableVisibility(r,a,t.handles.length)}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_onWasmError(e,t,i,s){if(this._lyr3DMain)try{this._debugLog(i,s,this._lyr3DMain.UTF8ToString(e,t),!1)}catch(r){}}_onElevQueryComplete(e){try{const t=this._lyr3DMain.Emval.toValue(e),{queryId:i}=t,r=this._elevationQueries.get(i);if(!r)return void this._debugLog(2,1,`_onElevQueryComplete called for unknown queryId ${i}.`);if(t.succeeded&&t.zs){const{zs:e}=t,s=r.descriptor.clone();for(let t=0;t<e.length;++t)s.coordinates[t].z=e[t];this._debugLog(2,3,`Success EQ ${i}, number points ${e.length}.`),r.resolveCallback(s),this._elevationQueries.delete(i)}else r.rejectCallback(new s("elevation-query:error",t?.error??"Elevation query failed")),this._elevationQueries.delete(i)}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_doRemoveLayerView(e){const t=this._layers.get(e.wasmLayerId);return!!t&&(t.abortController.abort(),this._cancelElevationQueriesForLayer(e.wasmLayerId),this._lyr3DMain.remove_layer(e.wasmLayerId),this._is3DTilesIMLayerView(e)&&e.layer.replacesTerrain&&(this._hasLayerThatReplacesTerrain=!1,this._isTerrainReady=!1,this.notifyChange("isTerrainReady")),this._layers.delete(e.wasmLayerId),!0)}_is3DTilesIMLayerView(e){return"integrated-mesh-3dtiles"===e.layer.type}_is3DTilesIMLayer(e){return"integrated-mesh-3dtiles"===e.type}_isGaussianSplatLayerView(e){return"gaussian-splat"===e.layer.type}_isGaussianSplatLayer(e){return"gaussian-splat"===e.type}_toWasmQuality(e){switch(e){case"low":return 1;case"medium":return 2;case"high":return 3}}_addLayerView(e){const t=e.layer;if(!t.url||!t.rootTilesetJSON)return{wasmLayerId:b};const i="integrated-mesh-3dtiles"===t.type?0:2,s=this._lyr3DMain.validate_root_tileset(JSON.stringify(t.rootTilesetJSON),i);if(0!==s.errorCode)return{wasmLayerId:b,check:s};const a=this._lyr3DMain.get_next_layer_id(),n=new AbortController;this._layers.set(a,{layerView:e,abortController:n,needMemoryUsageUpdate:!1,outstandingJobCount:0,outstandingRenderableCount:0,customParameters:t.customParameters,apiKey:t.apiKey,needFrame:!0});const o=C(t.elevationInfo),l=this._toWasmQuality(this.view?.qualityProfile),d=e=>r.getLogger(this).error("add-spatial-reference-error","Error when adding SR:",e);let h=!1;if(this._isGaussianSplatLayerView(e)&&this._isGaussianSplatLayer(t)||this._is3DTilesIMLayerView(e)&&this._is3DTilesIMLayer(t)){let i=t.spatialReference;if(e.useEsriCrs&&t.esriCrsSpatialReference){i=t.esriCrsSpatialReference;const s=g(i);let r=1,a=1;!s&&i.wkid&&-1!==i.wkid&&(r=m.values[m[i.wkid]],a=e.metersPerVCSUnit),this._workerHandle.addSpatialReferenceInfo(this._cleanUpSR(this._makeSRWasmSerializable(i)),s,r,a).catch(d),!this._haveAddedViewSRForNoOpPrj&&i.vcsWkid&&this._viewSR.vcsWkid&&-1!==this._viewSR.vcsWkid&&this._viewSR.vcsWkid!==i.vcsWkid&&(this._workerHandle.addSpatialReferenceInfo(this._cleanUpSR(this._makeSRWasmSerializable(this._viewSR)),!1,1,1).catch(d),this._haveAddedViewSRForNoOpPrj=!0)}this._isGaussianSplatLayerView(e)?h=this._lyr3DMain.add_gaussian_splat_layer(l,t.url,a,o):this._is3DTilesIMLayerView(e)&&(h=this._lyr3DMain.add_3dtiles_layer(l,t.url,a,o,e.layer.replacesTerrain),h&&e.layer.replacesTerrain&&(this._hasLayerThatReplacesTerrain=!0,this._isTerrainReady=!1,this.notifyChange("isTerrainReady")))}return h?(this._updateWasmCamera(),this._is3DTilesIMLayerView(e)&&e.freeze&&this.incrementFrozenLayerViewCount(e),e.updatingFlagChanged(),{wasmLayerId:a}):(this._layers.delete(a),{wasmLayerId:b})}_updateWasmCamera(){const e=this.view.state?.contentCamera;e&&this._lyr3DMain&&(this._cameraDirty=!0,this._frozen||this._markAllLayerViewsUpdating())}_updateWasmCameraElevation(){this._cameraElevationDirty=!0,this._frozen||this._markAllLayerViewsUpdating()}_markAllLayerViewsUpdating(){this._layers.forEach(e=>{const t=this._isUpdating(e);e.needFrame=!0,t||e.layerView.updatingFlagChanged()})}_makeSRWasmSerializable(e){return{wkid:e?.wkid??-1,latestWkid:e?.latestWkid??-1,vcsWkid:e?.vcsWkid??-1,latestVcsWkid:e?.latestVcsWkid??-1,wkt:e?.wkt??""}}_cleanUpSR(e){return-1===e?.wkid&&e.latestWkid&&-1!==e.latestWkid?e.wkid=e.latestWkid:-1===e?.latestWkid&&e.wkid&&-1!==e.wkid&&(e.latestWkid=e.wkid),-1===e?.vcsWkid&&e.latestVcsWkid&&-1!==e.latestVcsWkid?e.vcsWkid=e.latestVcsWkid:-1===e?.latestVcsWkid&&e.vcsWkid&&-1!==e.vcsWkid&&(e.latestVcsWkid=e.vcsWkid),e}};e([y({constructOnly:!0})],j.prototype,"view",void 0),e([y()],j.prototype,"updating",null),e([y({readOnly:!0})],j.prototype,"isTerrainReady",null),j=e([u("esri.layers.Lyr3DWasmPerSceneView")],j);const E=j;export{E as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../request.js";import{has}from"../applications/Components/baUtils.js";import i from"../core/Accessor.js";import s from"../core/Error.js";import r from"../core/Logger.js";import{someMap as a}from"../core/MapUtils.js";import{createAbortError as n,isAborted as o,isAbortError as l}from"../core/promiseUtils.js";import d from"../core/ReactiveMap.js";import{watch as h}from"../core/reactiveUtils.js";import{signal as _}from"../core/signal.js";import{property as y,subclass as u}from"../core/accessorSupport/decorators.js";import c from"../geometry/SpatialReference.js";import{isGeographic as g}from"../geometry/support/spatialReferenceUtils.js";import m from"../geometry/support/WKIDUnitConversion.js";import{wasmFailedToInit as p,elevQueriesFull as f,elevQueriesGenericFail as w,invalidLayerView as b}from"./ILyr3DWasmPerSceneView.js";import{Lyr3DWorkerHandle as v}from"./Lyr3DWorkerHandle.js";import{getVCSFromHeightModelInfo as L}from"./support/tiles3DUtils.js";import{loadLyr3DMainWASM as D}from"../libs/lyr3d/Lyr3DModule.js";import{getElevationOffsetInMeters as C}from"../support/elevationInfoUtils.js";import{makeScheduleFunction as M}from"../views/3d/layers/support/makeScheduleFunction.js";import{TaskPriority as R}from"../views/support/Scheduler.js";import{Yield as k}from"../views/support/Yield.js";const S=3857,V=32662,I=4326,W=5773;let j=class extends i{get _frozen(){return this._frozenLayerViewCount>0}constructor(e){super(e),this._lyr3DMainPromise=null,this._lyr3DMain=null,this._layers=new Map,this._viewSR=null,this._haveAddedViewSRForNoOpPrj=!1,this._lyr3DBusyCount=0,this._lyr3DInternalMemoryBytes=0,this._isTerrainReady=!1,this._hasLayerThatReplacesTerrain=!1,this._frozenLayerViewCount=0,this._elevationQueries=new d,this._pendingJobCompleted=new Array,this._pendingJobFailed=new Array,this._pendingRenderableCreated=new Array,this._pulseDeferred=_(!1),this._jobDataBufferPtr=0,this._jobDataBufferCapacity=0,this._debugFlags=new Set,this._debugLevel=2,this._wasmNotLoaded="method requiring WASM was called when WASM isn't loaded",this._pulseTaskHandle=null,this._cameraDirty=!0,this._cameraElevationDirty=!0,this._debugFlags.add(0),this._debugFlags.add(1),this._debugFlags.add(2)}_debugLog(e,t,i,s=!0){if(this._debugFlags.has(e)&&this._debugLevel>=t){const e=s?`[js] ${i}`:`${i}`;0===t||1===t?r.getLogger(this).error(e):2===t&&r.getLogger(this).warn(e),r.getLogger(this).info(e)}}get viewSR(){return this._viewSR}get lyr3DInternalMemoryBytes(){return this._lyr3DInternalMemoryBytes}initialize(){this._debugLevel>2&&(r.getLogger(this).level="info"),this._debugLog(0,3,"Lyr3DWasmPerSceneView.initialize()"),this.addHandles([h(()=>this.view.state?.contentCamera,()=>this._updateWasmCamera()),h(()=>this.view.state?.contentCamera.relativeElevation,()=>this._updateWasmCameraElevation()),this.view.resourceController.addUpdatingObject(this)]),this._pulseTaskHandle=this.view.resourceController.scheduler.registerTask(R.LYR3D,this)}destroy(){this._debugLog(0,3,"Lyr3DWasmPerSceneView.destroy()"),this._lyr3DMain&&(this._jobDataBufferPtr&&(this._lyr3DMain._free(this._jobDataBufferPtr),this._jobDataBufferPtr=0,this._jobDataBufferCapacity=0),this._layers.forEach(e=>{e.abortController.abort()}),this._elevationQueries.forEach((e,t)=>{this._lyr3DMain.cancel_elevation_query(t),e.rejectCallback(n())}),this._elevationQueries.clear(),this._lyr3DMain.uninitialize_lyr3d_wasm(),this._lyr3DMain=null),this._pendingJobCompleted.length=0,this._pendingJobFailed.length=0,this._pendingRenderableCreated.length=0;const e=this._workerHandle;e&&e.destroyWasm().then(()=>{this._workerHandle?.destroy(),this._workerHandle=null}),this._pulseTaskHandle?.remove(),this._pulseTaskHandle=null}get readyToRun(){return this._hasPendingPulseWork()}get updating(){return this._elevationQueries.size>0}runTask(e){return this._pulseTask(e),k}_hasPendingPulseWork(){return!!this._lyr3DMain&&(!this._frozen&&this._cameraDirty||!this._frozen&&this._cameraElevationDirty||this._pendingJobCompleted.length>0||this._pendingJobFailed.length>0||this._pendingRenderableCreated.length>0||this._elevationQueries.size>0||a(this._layers,e=>this._isUpdating(e)))}addLayerView(e){return this._lyr3DMain?this._addLayerView(e):(this._debugLog(0,1,"Lyr3DWasmPerSceneView.add3DTilesLayerView() called when WASM wasn't initialized"),{wasmLayerId:p})}removeLayerView(e){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),0;this._is3DTilesIMLayerView(e)&&e.freeze&&this.decrementFrozenLayerViewCount(e),this._doRemoveLayerView(e);const t=this._layers.size;return 0===t&&(this._debugLog(0,3,"Lyr3DWasmPerSceneView.remove3DTilesLayerView() no Lyr3D layers left after removing a layer, destroying"),this.destroy()),t}getValidLayerViewCount(){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),0;let e=0;return this._layers.forEach(t=>{t.layerView.wasmLayerId>=0&&++e}),e}setEnabled(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);if(i){this._lyr3DMain.set_enabled(e.wasmLayerId,t),i.needMemoryUsageUpdate=!0;const s=this._isUpdating(i);i.needFrame=!0,s||i.layerView.updatingFlagChanged()}}setLayerOffset(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);i&&(this._lyr3DMain.set_carto_offset_z(e.wasmLayerId,t),i.needFrame=!0,i.layerView.updatingFlagChanged())}getAttributionText(){if(!this._lyr3DMain)return this._debugLog(0,1,this._wasmNotLoaded),[];return this._lyr3DMain.get_current_attribution_text().split("|")}onRenderableEvicted(e,t,i){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);this._layers.get(e.wasmLayerId)&&this._lyr3DMain.on_renderable_evicted(e.wasmLayerId,t,i)}setMeshModifications(e,t){if(!this._lyr3DMain)return void this._debugLog(0,1,this._wasmNotLoaded);const i=this._layers.get(e.wasmLayerId);if(i){this._lyr3DMain.set_mesh_modification_polygons(e.wasmLayerId,t);const s=this._isUpdating(i);i.needFrame=!0,s||i.layerView.updatingFlagChanged()}}isUpdating(e){if(!this._lyr3DMain&&this._lyr3DMainPromise)return!0;const t=this._layers.get(e);return!!t&&this._isUpdating(t)}incrementFrozenLayerViewCount(e){this._layers.has(e.wasmLayerId)&&(this._frozenLayerViewCount+=1)}decrementFrozenLayerViewCount(e){this._layers.has(e.wasmLayerId)&&(this._frozenLayerViewCount-=1)}initializeWasm(e,t){return this._lyr3DMain?Promise.resolve():this.view.renderSpatialReference?(this._debugLog(0,3,"Lyr3DWasmPerSceneView.initializeWasm()"),this._lyr3DMainPromise||(this._lyr3DMainPromise=D().then(i=>{this._lyr3DMain=i,this._lyr3DMainPromise=null;const s=this._lyr3DMain.addFunction(this._onNewJob.bind(this),"vi"),r=this._lyr3DMain.addFunction(this._onNewRenderable.bind(this),"vi"),a=this._lyr3DMain.addFunction(this._freeRenderables.bind(this),"vi"),n=this._lyr3DMain.addFunction(this._setRenderableVisibility.bind(this),"vi"),o=this._lyr3DMain.addFunction(this._onWasmError.bind(this),"viiii"),l=this._lyr3DMain.addFunction(this._onElevQueryComplete.bind(this),"vi");if(!this.view.renderSpatialReference)return void(this._lyr3DMain=null);this._viewSR=this.view.renderSpatialReference?.toJSON();let d="global"===this.view.viewingMode?6:4;6===d?(this._viewSR.wkid=this._viewSR.latestWkid=I,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W,this._viewSR.wkt=""):(this._viewSR.vcsWkid||(this._viewSR.vcsWkid=L(this.view.heightModelInfo)),this.view.renderSpatialReference?.isWebMercator?(this._viewSR.wkid=this._viewSR.latestWkid=S,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W):this.view.renderSpatialReference?.wkid===V?(this._viewSR.wkid=this._viewSR.latestWkid=I,d=3,this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=W):this._viewSR.vcsWkid||this._viewSR.latestVcsWkid||(this._viewSR.vcsWkid=this._viewSR.latestVcsWkid=-1));const h=has("esri-lyr3D-max-concurrent-requests")??16;return this._lyr3DMain.initialize_lyr3d_wasm(o,s,r,a,n,l,e,t,d,this._cleanUpSR(this._makeSRWasmSerializable(this._viewSR)),Math.max(this._debugLevel,0),h)?(this._workerHandle=new v(M(this.view.resourceController)),this._workerHandle.promise?this._workerHandle.promise:void 0):(this._lyr3DMain=null,void this._debugLog(0,0,"Lyr3d Main WASM failed to initialize",!1))}).catch(e=>{this._debugLog(0,0,`Lyr3d WASM failed to download error = ${e}`,!1)})),this._lyr3DMainPromise):Promise.reject()}get isTerrainReady(){return this._isTerrainReady}setLodPixelThreshold(e,t){this._lyr3DMain?.set_lod_pixel_threshold(t);const i=this._layers.get(e.wasmLayerId);i&&(i.needFrame=!0,i.layerView.updatingFlagChanged())}setMaximumGaussianSplatCount(e){this._lyr3DMain.set_maximum_splat_count(e),this._layers.forEach(e=>{"gaussian-splat-3d"===e.layerView.type&&(e.needFrame=!0,e.layerView.updatingFlagChanged())})}queryElevation(e,t,i){if(!this._lyr3DMain)return Promise.reject(this._wasmNotLoaded);if(0===t.coordinates.length)return Promise.reject("no coordinates for elevation query");const s="global"===this.view.viewingMode?c.WGS84:this._viewSR.wkid===S?c.WebMercator:c.PlateCarree,r=t.projectSync(s);r&&(t=r);const a=2*t.coordinates.length,n=this._lyr3DMain._malloc(8*a),o=new Float64Array(this._lyr3DMain.HEAPF64.buffer,n,a);for(let y=0;y<t.coordinates.length;++y){const e=t.coordinates[y];o[2*y]=e.x,o[2*y+1]=e.y}const l=i?.maxGeometricError??0,d=this._lyr3DMain.create_elevation_query(e.wasmLayerId,l,n,a);if(this._lyr3DMain._free(n),d===f)return Promise.reject("max mesh elevation query limit exceeded");if(d===w)return Promise.reject("elevation query failed");const h={wasmLayerId:e.wasmLayerId,descriptor:t,signal:i?.signal,resolveCallback:null,rejectCallback:null},_=new Promise((e,t)=>{h.resolveCallback=e,h.rejectCallback=t});return this._elevationQueries.set(d,h),_}_checkForAbortedElevationQueries(){const e=[];this._elevationQueries.forEach((t,i)=>{o(t.signal)&&(this._lyr3DMain.cancel_elevation_query(i),t.rejectCallback(n()),e.push(i))});for(let t=0;t<e.length;++t)this._elevationQueries.delete(e[t])}_cancelElevationQueriesForLayer(e){const t=new Array;this._elevationQueries.forEach((i,s)=>{i.wasmLayerId===e&&(this._lyr3DMain.cancel_elevation_query(s),i.rejectCallback(n()),t.push(s))}),t.forEach(e=>this._elevationQueries.delete(e))}_pulseTask(e){const t=this._lyr3DMain;if(t){if(this._frozen)return this._checkForAbortedElevationQueries(),void this._flushPendingWasmCalls(e);if(this._cameraDirty){const e=this.view.state?.contentCamera;if(e){const{eye:i,center:s,up:r,near:a,far:n,fovY:o}=e,l=[e.screenViewport[2],e.screenViewport[3]],d={eye:i,center:s,up:r,near:a,far:n,fov:o,aspectRatio:e.width/e.height,viewport:l};t.set_camera_parameters(d),this._cameraDirty=!1}}if(this._cameraElevationDirty){const e=this.view.state?.contentCamera.relativeElevation;t.set_camera_elevation(e),this._cameraElevationDirty=!1}if(this._checkForAbortedElevationQueries(),!this._pulseDeferred.value&&(this._flushPendingWasmCalls(e),e.done))return;let i=0,s=0;this._layers.forEach(e=>{i+=e.layerView.usedMemory,s+=e.layerView.cachedMemory}),i/=1048576,s/=1048576;const r=this.view.resourceController.memoryController,a=r.usedMemory*r.maxMemory-i-this._lyr3DInternalMemoryBytes/1048576;this._lyr3DBusyCount=this._lyr3DMain.frame_pulse(r.memoryFactor,i,s,a,r.maxMemory),this._pulseDeferred.value=!1,this._lyr3DInternalMemoryBytes=this._lyr3DMain.get_index_memory_bytes(),this._layers.forEach(e=>{this._cameraElevationDirty||(e.needFrame=!1),e.layerView.updatingFlagChanged()}),this._hasLayerThatReplacesTerrain&&!this._isTerrainReady&&(this._isTerrainReady=this._lyr3DMain.is_terrain_ready(),this._isTerrainReady&&this.notifyChange("isTerrainReady")),e.madeProgress(),this._flushPendingWasmCalls(e)}}_isUpdating(e){return e.outstandingJobCount>0||e.outstandingRenderableCount>0||!this._frozen&&(e.needFrame||this._cameraDirty||this._cameraElevationDirty||this._pulseDeferred.value||this._lyr3DBusyCount>0)}_incrementJobCount(e,t){if(t.isForElevationQuery)return;const i=this._isUpdating(e);e.outstandingJobCount+=1,i||e.layerView.updatingFlagChanged()}_decrementJobCount(e,t){if(t.isForElevationQuery)return;const i=this._isUpdating(e);e.outstandingJobCount-=1;i!==this._isUpdating(e)&&e.layerView.updatingFlagChanged()}_incrementRenderableCount(e){const t=this._isUpdating(e);e.outstandingRenderableCount+=1,t||e.layerView.updatingFlagChanged()}_decrementRenderableCount(e){const t=this._isUpdating(e);e.outstandingRenderableCount-=1;t!==this._isUpdating(e)&&e.layerView.updatingFlagChanged()}_flushPendingWasmCalls(e){this._lyr3DMain&&(this._flushPendingCalls(this._pendingJobFailed,e),this._flushPendingCalls(this._pendingJobCompleted,e),this._flushPendingCalls(this._pendingRenderableCreated,e))}_flushPendingCalls(e,t){for(;!t.done&&e.length>0;){const i=e.shift();this._pulseDeferred.value=!0,i(this._lyr3DMain),t.madeProgress()}}_decrementJobCountIfLayerExists(e,t){this._layers.get(e.layerView.wasmLayerId)===e&&this._decrementJobCount(e,t)}_decrementRenderableCountIfLayerExists(e){this._layers.get(e.layerView.wasmLayerId)===e&&this._decrementRenderableCount(e)}_onJobFailed(e,t,i){t.error.length&&this._debugLog(1,1,t.error,!1),this._lyr3DMain&&!e.layerView.destroyed?this._pendingJobFailed.push(t=>{try{t.on_job_failed(i.jobId,i.desc)}finally{this._decrementJobCountIfLayerExists(e,i)}}):this._decrementJobCountIfLayerExists(e,i)}_onJobSucceeded(e,t,i){if(e.layerView.destroyed)return void(this._lyr3DMain?this._pendingJobFailed.push(t=>{try{t.on_job_failed(i.jobId,i.desc)}finally{this._decrementJobCountIfLayerExists(e,i)}}):this._decrementJobCountIfLayerExists(e,i));const{data:s}=t;if(this._lyr3DMain){const r=r=>{try{const e=s.byteLength,a=this._ensureJobDataBuffer(e);new Uint8Array(r.HEAPU8.buffer,a,e).set(s),r.on_job_completed(i.jobId,t.jobDescJson,a,e)}finally{this._decrementJobCountIfLayerExists(e,i)}};this._pendingJobCompleted.push(r)}else this._decrementJobCountIfLayerExists(e,i)}_ensureJobDataBuffer(e){return e<=this._jobDataBufferCapacity&&this._jobDataBufferPtr||(this._jobDataBufferPtr&&this._lyr3DMain._free(this._jobDataBufferPtr),this._jobDataBufferPtr=this._lyr3DMain._malloc(e),this._jobDataBufferCapacity=e),this._jobDataBufferPtr}_getRequestPromises(e,i,s,r){const a=[];for(const n of e){const e=new URL(n);if("integrated-mesh-3dtiles"===r.type){if(e.origin===s.origin&&e.pathname===s.pathname){if(r.rootTileset){a.push(Promise.resolve(r.rootTileset.slice()));continue}}else r.session&&e.searchParams.set("session",r.session)}a.push(t(e.toString(),i).then(e=>e.data))}return a}_getInitialPromise(e,t,i,s,r,a,n){const o=this._getRequestPromises(e.urls,t,i,s);return Promise.all(o).then(e=>(r.inputs=e,this._workerHandle.invoke(r,a))).then(e=>e).catch(t=>{let i=1;return l(t)?this._debugLog(1,2,`job ${e.jobId} was cancelled.`):n&&400===t.details?.httpStatus?(i=3,this._debugLog(1,2,"Session expired, trying to create new Session.")):this._debugLog(1,1,`job ${e.jobId} failed with error ${t}.`),{status:i,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[],inputs:[]}})}async _onNewJob(e){let t;try{t=this._lyr3DMain.Emval.toValue(e);const s=this._layers.get(t.layerId);if(!s)return;this._incrementJobCount(s,t);const r=s.abortController.signal,a=s.layerView.layer,n="integrated-mesh-3dtiles"===a.type?a.key:null,o="integrated-mesh-3dtiles"===a.type?a.session:null,d={responseType:"array-buffer",signal:r,query:{...s.customParameters,token:s.apiKey,key:n}},h={id:t.jobId,inputs:[],jobDescJson:t.desc.slice(),isMissingResourceCase:!1},_=new URL(a.url),y=e=>{if(1===e.status)this._onJobFailed(s,e,t);else if(0===e.status)this._onJobSucceeded(s,e,t);else if(2===e.status){const i=this._getRequestPromises(e.missingInputUrls,d,_,a);Promise.all(i).then(t=>{h.jobDescJson=e.jobDescJson,e.originalInputs?h.inputs=e.originalInputs:h.inputs=[],h.isMissingResourceCase=!0;for(const e of t)h.inputs.push(e);return this._workerHandle.invoke(h,r)}).then(e=>{1===e.status?this._onJobFailed(s,e,t):0===e.status&&this._onJobSucceeded(s,e,t)}).catch(e=>{l(e)?this._debugLog(1,2,`job ${t.jobId} was cancelled.`):this._debugLog(1,1,`job ${t.jobId} failed with error ${e}.`),this._lyr3DMain?this._pendingJobFailed.push(e=>{try{e.on_job_failed(t.jobId,t.desc)}finally{this._decrementJobCountIfLayerExists(s,t)}}):this._decrementJobCountIfLayerExists(s,t)})}};try{const e=await this._getInitialPromise(t,d,_,a,h,r,o);if(3===e.status&&"integrated-mesh-3dtiles"===a.type){o===a.session&&null!==a.session&&await a.requestRootAndSession(r);y(await this._getInitialPromise(t,d,_,a,h,r,a.session))}else y(e)}catch(i){i&&this._debugLog(1,1,i.toString(),!1),this._lyr3DMain?this._pendingJobFailed.push(e=>{try{e.on_job_failed(t.jobId,t.desc)}finally{this._decrementJobCountIfLayerExists(s,t)}}):this._decrementJobCountIfLayerExists(s,t)}}catch(i){i&&this._debugLog(1,1,i.toString(),!1)}}_onNewRenderable(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);i&&(this._incrementRenderableCount(i),i.layerView.createRenderable(t).then(e=>{!this._lyr3DMain||i.layerView.destroyed?this._decrementRenderableCountIfLayerExists(i):this._pendingRenderableCreated.push(s=>{try{const{layerId:i,handle:r}=t,a=e();s.on_renderable_created(!0,i,r,a.memUsageBytes,a.numGaussians??0)}finally{this._decrementRenderableCountIfLayerExists(i)}})}).catch(e=>{l(e)||this._debugLog(2,1,`createRenderable failed with error ${e}.`),!this._lyr3DMain||i.layerView.destroyed?this._decrementRenderableCountIfLayerExists(i):this._pendingRenderableCreated.push(e=>{try{const{layerId:i,handle:s}=t;e.on_renderable_created(!1,i,s,0,0)}finally{this._decrementRenderableCountIfLayerExists(i)}})}))}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_freeRenderables(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);if(t.handles.length<1||!i)return;const s=i.layerView;for(let e=0;e<t.handles.length;++e)s.freeRenderable(t.handles[e])}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_setRenderableVisibility(e){try{const t=this._lyr3DMain.Emval.toValue(e),i=this._layers.get(t.layerId);if(t.handles.length<1||t.visibility.length!==t.handles.length||!i)return;const s=i.layerView,r=[],a=[];for(let e=0;e<t.handles.length;++e)r.push(t.handles[e]),a.push(!!(1&t.visibility[e]));s.setRenderableVisibility(r,a,t.handles.length)}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_onWasmError(e,t,i,s){if(this._lyr3DMain)try{this._debugLog(i,s,this._lyr3DMain.UTF8ToString(e,t),!1)}catch(r){}}_onElevQueryComplete(e){try{const t=this._lyr3DMain.Emval.toValue(e),{queryId:i}=t,r=this._elevationQueries.get(i);if(!r)return void this._debugLog(2,1,`_onElevQueryComplete called for unknown queryId ${i}.`);if(t.succeeded&&t.zs){const{zs:e}=t,s=r.descriptor.clone();for(let t=0;t<e.length;++t)s.coordinates[t].z=e[t];this._debugLog(2,3,`Success EQ ${i}, number points ${e.length}.`),r.resolveCallback(s),this._elevationQueries.delete(i)}else r.rejectCallback(new s("elevation-query:error",t?.error??"Elevation query failed")),this._elevationQueries.delete(i)}catch(t){t&&this._debugLog(1,1,t.toString(),!1)}}_doRemoveLayerView(e){const t=this._layers.get(e.wasmLayerId);return!!t&&(t.abortController.abort(),this._cancelElevationQueriesForLayer(e.wasmLayerId),this._lyr3DMain.remove_layer(e.wasmLayerId),this._is3DTilesIMLayerView(e)&&e.replacesTerrain&&(this._hasLayerThatReplacesTerrain=!1,this._isTerrainReady=!1,this.notifyChange("isTerrainReady")),this._layers.delete(e.wasmLayerId),!0)}_is3DTilesIMLayerView(e){return"integrated-mesh-3dtiles"===e.layer.type}_is3DTilesIMLayer(e){return"integrated-mesh-3dtiles"===e.type}_isGaussianSplatLayerView(e){return"gaussian-splat"===e.layer.type}_isGaussianSplatLayer(e){return"gaussian-splat"===e.type}_toWasmQuality(e){switch(e){case"low":return 1;case"medium":return 2;case"high":return 3}}_addLayerView(e){const t=e.layer;if(!t.url||!t.rootTilesetJSON)return{wasmLayerId:b};const i="integrated-mesh-3dtiles"===t.type?0:2,s=this._lyr3DMain.validate_root_tileset(JSON.stringify(t.rootTilesetJSON),i);if(0!==s.errorCode)return{wasmLayerId:b,check:s};const a=this._lyr3DMain.get_next_layer_id(),n=new AbortController;this._layers.set(a,{layerView:e,abortController:n,needMemoryUsageUpdate:!1,outstandingJobCount:0,outstandingRenderableCount:0,customParameters:t.customParameters,apiKey:t.apiKey,needFrame:!0});const o=C(t.elevationInfo),l=this._toWasmQuality(this.view?.qualityProfile),d=e=>r.getLogger(this).error("add-spatial-reference-error","Error when adding SR:",e);let h=!1;if(this._isGaussianSplatLayerView(e)&&this._isGaussianSplatLayer(t)||this._is3DTilesIMLayerView(e)&&this._is3DTilesIMLayer(t)){let i=t.spatialReference;if(e.useEsriCrs&&t.esriCrsSpatialReference){i=t.esriCrsSpatialReference;const s=g(i);let r=1,a=1;!s&&i.wkid&&-1!==i.wkid&&(r=m.values[m[i.wkid]],a=e.metersPerVCSUnit),this._workerHandle.addSpatialReferenceInfo(this._cleanUpSR(this._makeSRWasmSerializable(i)),s,r,a).catch(d),!this._haveAddedViewSRForNoOpPrj&&i.vcsWkid&&this._viewSR.vcsWkid&&-1!==this._viewSR.vcsWkid&&this._viewSR.vcsWkid!==i.vcsWkid&&(this._workerHandle.addSpatialReferenceInfo(this._cleanUpSR(this._makeSRWasmSerializable(this._viewSR)),!1,1,1).catch(d),this._haveAddedViewSRForNoOpPrj=!0)}this._isGaussianSplatLayerView(e)?h=this._lyr3DMain.add_gaussian_splat_layer(l,t.url,a,o):this._is3DTilesIMLayerView(e)&&(h=this._lyr3DMain.add_3dtiles_layer(l,t.url,a,o,e.replacesTerrain),h&&e.replacesTerrain&&(this._hasLayerThatReplacesTerrain=!0,this._isTerrainReady=!1,this.notifyChange("isTerrainReady")))}return h?(this._updateWasmCamera(),this._is3DTilesIMLayerView(e)&&e.freeze&&this.incrementFrozenLayerViewCount(e),e.updatingFlagChanged(),{wasmLayerId:a}):(this._layers.delete(a),{wasmLayerId:b})}_updateWasmCamera(){const e=this.view.state?.contentCamera;e&&this._lyr3DMain&&(this._cameraDirty=!0,this._frozen||this._markAllLayerViewsUpdating())}_updateWasmCameraElevation(){this._cameraElevationDirty=!0,this._frozen||this._markAllLayerViewsUpdating()}_markAllLayerViewsUpdating(){this._layers.forEach(e=>{const t=this._isUpdating(e);e.needFrame=!0,t||e.layerView.updatingFlagChanged()})}_makeSRWasmSerializable(e){return{wkid:e?.wkid??-1,latestWkid:e?.latestWkid??-1,vcsWkid:e?.vcsWkid??-1,latestVcsWkid:e?.latestVcsWkid??-1,wkt:e?.wkt??""}}_cleanUpSR(e){return-1===e?.wkid&&e.latestWkid&&-1!==e.latestWkid?e.wkid=e.latestWkid:-1===e?.latestWkid&&e.wkid&&-1!==e.wkid&&(e.latestWkid=e.wkid),-1===e?.vcsWkid&&e.latestVcsWkid&&-1!==e.latestVcsWkid?e.vcsWkid=e.latestVcsWkid:-1===e?.latestVcsWkid&&e.vcsWkid&&-1!==e.vcsWkid&&(e.latestVcsWkid=e.vcsWkid),e}};e([y({constructOnly:!0})],j.prototype,"view",void 0),e([y()],j.prototype,"updating",null),e([y({readOnly:!0})],j.prototype,"isTerrainReady",null),j=e([u("esri.layers.Lyr3DWasmPerSceneView")],j);const E=j;export{E as default};
|