@arcgis/core 5.0.0-next.38 → 5.0.0-next.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/Color.js +1 -1
  2. package/analysis/DimensionSimpleStyle.js +1 -1
  3. package/analysis/ElevationProfileAnalysis.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/02a65563779b4c64b2cf.js +1 -0
  6. package/assets/esri/core/workers/chunks/{328106e181e5957ceaa5.js → 09ac2bbc7327e6e6b5a2.js} +1 -1
  7. package/assets/esri/core/workers/chunks/1a9ed3c59a9a8bafb251.js +1 -0
  8. package/assets/esri/core/workers/chunks/{b96af22ec1470905e4fb.js → 1c857191e5898aba50fe.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{3904f8732c9953cb177d.js → 28b235b56a83c498d73f.js} +1 -1
  10. package/assets/esri/core/workers/chunks/36d15c35fbbd4dedd5cb.js +1 -0
  11. package/assets/esri/core/workers/chunks/48f805929fe6241952f5.js +1 -0
  12. package/assets/esri/core/workers/chunks/4c278fb2d51ca6226050.js +1 -0
  13. package/assets/esri/core/workers/chunks/6052eccb9395c8efb295.js +1 -0
  14. package/assets/esri/core/workers/chunks/{50ffb22c48fadd36c748.js → 613cbac9cb925cd20b48.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{febce0d80f019dc2a427.js → 646f58b69d2354f1ef27.js} +1 -1
  16. package/assets/esri/core/workers/chunks/7eab0bb42f9f062522ef.js +1 -0
  17. package/assets/esri/core/workers/chunks/{5e34a183420e7007a989.js → 8e8d5422f57269d8c8d2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/9100330ed4b4437c819d.js +1 -0
  19. package/assets/esri/core/workers/chunks/95cb062cae4c31c07124.js +1 -0
  20. package/assets/esri/core/workers/chunks/{7ab237d19b84d89ff483.js → 96f798ee286b59396131.js} +50 -50
  21. package/assets/esri/core/workers/chunks/{e9bc3c6482ba778c9349.js → 9d95f38da21f97214f83.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ad4fcb73cfe9a1e4b710.js +1 -0
  23. package/assets/esri/core/workers/chunks/{a8a017d7969562d21d2e.js → b48aceaeefa07214e430.js} +1 -1
  24. package/assets/esri/core/workers/chunks/c1a4d1ec0125617374b4.js +1 -0
  25. package/assets/esri/core/workers/chunks/{d2a6f035022a3f060ffa.js → c320a29df40e85fb4a8e.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{27ec791318e81285c222.js → dca6a61fd239cf1ff90c.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{2f9129003f77bfeab2f9.js → e66bcdfd75e0113d1cec.js} +1 -1
  28. package/assets/esri/core/workers/chunks/f1381c5a2a1de1ef9139.js +1 -0
  29. package/assets/esri/core/workers/chunks/f21cb5b34d4d1e3af1a9.js +1 -0
  30. package/chunks/ChapmanAtmosphere.glsl.js +20 -20
  31. package/chunks/HUDMaterial.glsl.js +38 -38
  32. package/chunks/Haze.glsl.js +23 -23
  33. package/config.js +1 -1
  34. package/core/Collection.js +1 -1
  35. package/core/CollectionFlattener.js +1 -1
  36. package/core/arrayUtils.js +1 -1
  37. package/interfaces.d.ts +50 -0
  38. package/kernel.js +1 -1
  39. package/layers/ImageryTileLayer.js +1 -1
  40. package/layers/RouteLayer.js +1 -1
  41. package/layers/support/FeatureReductionCluster.js +1 -1
  42. package/layers/support/LabelClass.js +1 -1
  43. package/package.json +3 -3
  44. package/renderers/FlowRenderer.js +1 -1
  45. package/renderers/HeatmapRenderer.js +1 -1
  46. package/renderers/PieChartRenderer.js +1 -1
  47. package/rest/route/utils.js +1 -1
  48. package/rest/support/PointBarrier.js +1 -1
  49. package/rest/support/Stop.js +1 -1
  50. package/support/revision.js +1 -1
  51. package/symbols/Font.js +1 -1
  52. package/symbols/IconSymbol3DLayer.js +1 -1
  53. package/symbols/LineSymbol.js +1 -1
  54. package/symbols/LineSymbol3DLayer.js +1 -1
  55. package/symbols/MarkerSymbol.js +1 -1
  56. package/symbols/PictureFillSymbol.js +1 -1
  57. package/symbols/PictureMarkerSymbol.js +1 -1
  58. package/symbols/TextSymbol.js +1 -1
  59. package/symbols/TextSymbol3DLayer.js +1 -1
  60. package/symbols/callouts/LineCallout3D.js +1 -1
  61. package/symbols/edges/Edges3D.js +1 -1
  62. package/symbols/support/Symbol3DIconOutline.js +1 -1
  63. package/symbols/support/Symbol3DOutline.js +1 -1
  64. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  65. package/views/2d/layers/RouteLayerView2D.js +1 -1
  66. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  67. package/views/2d/layers/support/util.js +1 -1
  68. package/views/3d/camera/intersectionUtils.js +1 -1
  69. package/views/3d/environment/ChapmanApproximation.glsl.js +8 -8
  70. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  71. package/views/3d/environment/ChapmanRaymarching.glsl.js +16 -15
  72. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  73. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  74. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  75. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  76. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  77. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  78. package/views/3d/state/NearFarHeuristic.js +1 -1
  79. package/views/3d/terrain/OverlayRenderer.js +1 -1
  80. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +12 -12
  81. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  82. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  83. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferLayout.js +1 -1
  84. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferUtils.js +5 -0
  85. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +5 -0
  86. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  87. package/views/View.js +1 -1
  88. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  89. package/views/draw/support/Reshape.js +1 -1
  90. package/views/layers/GroupLayerView.js +1 -1
  91. package/views/support/Scheduler.js +1 -1
  92. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  93. package/widgets/ScaleRangeSlider.js +1 -1
  94. package/widgets/Slider.js +1 -1
  95. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  96. package/assets/esri/core/workers/chunks/1d877c3c96c40eab906c.js +0 -1
  97. package/assets/esri/core/workers/chunks/22f745539ca54d8cd30d.js +0 -1
  98. package/assets/esri/core/workers/chunks/42f3e83826b3a3dedaaa.js +0 -1
  99. package/assets/esri/core/workers/chunks/44471962c30344dfafdf.js +0 -1
  100. package/assets/esri/core/workers/chunks/8ca83a9af9d24b192128.js +0 -1
  101. package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +0 -1
  102. package/assets/esri/core/workers/chunks/ad3a4d139613b4c0e0b4.js +0 -1
  103. package/assets/esri/core/workers/chunks/c1c77a00f639eaee9c0d.js +0 -1
  104. package/assets/esri/core/workers/chunks/c8d2cce4a426c72ab173.js +0 -1
  105. package/assets/esri/core/workers/chunks/e3be67c762af672ec602.js +0 -1
  106. package/assets/esri/core/workers/chunks/eefad79be500667af96e.js +0 -1
  107. package/assets/esri/core/workers/chunks/f8caceeaa14d99c35526.js +0 -1
  108. package/assets/esri/core/workers/chunks/f919f0db9f9ec0c649b9.js +0 -1
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../Graphic.js";import i from"../../PopupTemplate.js";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as a}from"../../core/JSONSupport.js";import{property as s,subclass as o}from"../../core/accessorSupport/decorators.js";import u from"../../geometry/Point.js";import{getTimezoneOffset as n,getPrefixedProperties as p,setPrefixedProperties as l,toKebabImpedanceAttributes as m,fromKebabImpedanceAttributes as d}from"../route/utils.js";import{statusJsonMap as c,locationTypeJsonMap as v,curbApproachJsonMap as y,sideOfEdgeJsonMap as T}from"./networkEnums.js";import{symbolTypes as b}from"../../symbols/support/typeUtils.js";import{reader as h}from"../../core/accessorSupport/decorators/reader.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var C;let S=class extends(r(a)){static{C=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.geometry=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.posAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return n(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return p(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return n(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}readServiceCosts(e,t){return p(t.attributes,"Attr_")}writeServiceCosts(e,t){l(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return p(t.attributes,"Violation_")}readWait(e,t){return p(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger"},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate"},{name:"ArrivalUTCOffset",alias:"Arrival Time",type:"esriFieldTypeInteger"},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString"},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble"},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble"},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate"},{name:"DepartureUTCOffset",alias:"Departure Time",type:"esriFieldTypeInteger"},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble"},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString"},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger"},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString"},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble"},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble"},{name:"Status",alias:"Status",type:"esriFieldTypeInteger"},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate"},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger"},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate"},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger"},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble"}]}static fromGraphic(e){return new C({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?y.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?m(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?y.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?y.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?v.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?m(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?c.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?y.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(d(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?y.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?y.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?v.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(d(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?c.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new t({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};e([s({type:y.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:y.read}}})],S.prototype,"arriveCurbApproach",void 0),e([s({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],S.prototype,"arriveTime",void 0),e([s()],S.prototype,"arriveTimeOffset",void 0),e([h("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],S.prototype,"readArriveTimeOffset",null),e([s({json:{name:"attributes.Bearing",read:!1,write:!0}})],S.prototype,"bearing",void 0),e([s({json:{name:"attributes.BearingTol",read:!1,write:!0}})],S.prototype,"bearingTol",void 0),e([s()],S.prototype,"cumulativeCosts",void 0),e([h("cumulativeCosts",["attributes"])],S.prototype,"readCumulativeCosts",null),e([s()],S.prototype,"cumulativeDistance",void 0),e([s()],S.prototype,"cumulativeDuration",void 0),e([s({type:y.apiValues,json:{name:"attributes.CurbApproach",read:{reader:y.read},write:{writer:y.write}}})],S.prototype,"curbApproach",void 0),e([s({type:y.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:y.read}}})],S.prototype,"departCurbApproach",void 0),e([s({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],S.prototype,"departTime",void 0),e([s()],S.prototype,"departTimeOffset",void 0),e([h("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],S.prototype,"readDepartTimeOffset",null),e([s({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],S.prototype,"distanceToNetworkInMeters",void 0),e([s({type:u,json:{write:!0}})],S.prototype,"geometry",void 0),e([s()],S.prototype,"lateDuration",void 0),e([s({type:v.apiValues,json:{name:"attributes.LocationType",read:{reader:v.read},write:{writer:v.write}}})],S.prototype,"locationType",void 0),e([s({json:{name:"attributes.Name"}})],S.prototype,"name",void 0),e([s({json:{name:"attributes.NavLatency",read:!1,write:!0}})],S.prototype,"navLatency",void 0),e([s({json:{name:"attributes.ObjectID"}})],S.prototype,"objectId",void 0),e([s({type:i})],S.prototype,"popupTemplate",void 0),e([s({json:{read:{source:"attributes.PosAlong"}}})],S.prototype,"posAlong",void 0),e([s({json:{name:"attributes.RouteName"}})],S.prototype,"routeName",void 0),e([s()],S.prototype,"serviceCosts",void 0),e([h("serviceCosts",["attributes"])],S.prototype,"readServiceCosts",null),e([f("serviceCosts")],S.prototype,"writeServiceCosts",null),e([s()],S.prototype,"serviceDistance",void 0),e([s()],S.prototype,"serviceDuration",void 0),e([s({json:{name:"attributes.Sequence"}})],S.prototype,"sequence",void 0),e([s({type:T.apiValues,json:{read:{source:"attributes.SideOfEdge",reader:T.read}}})],S.prototype,"sideOfEdge",void 0),e([s({json:{read:{source:"attributes.SnapX"}}})],S.prototype,"snapX",void 0),e([s({json:{read:{source:"attributes.SnapY"}}})],S.prototype,"snapY",void 0),e([s({json:{read:{source:"attributes.SnapZ"}}})],S.prototype,"snapZ",void 0),e([s({json:{read:{source:"attributes.SourceID"}}})],S.prototype,"sourceId",void 0),e([s({json:{read:{source:"attributes.SourceOID"}}})],S.prototype,"sourceOid",void 0),e([s({type:c.apiValues,json:{read:{source:"attributes.Status",reader:c.read}}})],S.prototype,"status",void 0),e([s({types:b})],S.prototype,"symbol",void 0),e([s({type:Date,json:{name:"attributes.TimeWindowEnd"}})],S.prototype,"timeWindowEnd",void 0),e([f("timeWindowEnd")],S.prototype,"writeTimeWindowEnd",null),e([s()],S.prototype,"timeWindowEndOffset",void 0),e([s({type:Date,json:{name:"attributes.TimeWindowStart"}})],S.prototype,"timeWindowStart",void 0),e([f("timeWindowStart")],S.prototype,"writeTimeWindowStart",null),e([s()],S.prototype,"timeWindowStartOffset",void 0),e([s({readOnly:!0,json:{read:!1}})],S.prototype,"type",void 0),e([s()],S.prototype,"violations",void 0),e([h("violations",["attributes"])],S.prototype,"readViolations",null),e([s()],S.prototype,"waitDuration",void 0),e([s()],S.prototype,"wait",void 0),e([h("wait",["attributes"])],S.prototype,"readWait",null),S=C=e([o("esri.rest.support.Stop")],S);export{S as default};
5
+ import{__decorate as t}from"tslib";import e from"../../Graphic.js";import i from"../../PopupTemplate.js";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as a}from"../../core/JSONSupport.js";import{property as s,subclass as o}from"../../core/accessorSupport/decorators.js";import u from"../../geometry/Point.js";import{getTimezoneOffset as n,getPrefixedProperties as p,setPrefixedProperties as l,toKebabImpedanceAttributes as m,fromKebabImpedanceAttributes as d}from"../route/utils.js";import{statusJsonMap as c,locationTypeJsonMap as y,curbApproachJsonMap as v,sideOfEdgeJsonMap as T}from"./networkEnums.js";import{symbolTypes as b}from"../../symbols/support/typeUtils.js";import{reader as h}from"../../core/accessorSupport/decorators/reader.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var C;let w=class extends(r(a)){static{C=this}constructor(t){super(t),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(t,e){return n(e.attributes.ArriveTime,e.attributes.ArriveTimeUTC)}readCumulativeCosts(t,e){return p(e.attributes,"Cumul_")}readDepartTimeOffset(t,e){return n(e.attributes.DepartTime,e.attributes.DepartTimeUTC)}set geometry(t){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",t)}readServiceCosts(t,e){return p(e.attributes,"Attr_")}writeServiceCosts(t,e){l(t,e,"Attr_")}writeTimeWindowEnd(t,e){null!=t&&(e.attributes||(e.attributes={}),e.attributes.TimeWindowEnd=t.getTime())}writeTimeWindowStart(t,e){null!=t&&(e.attributes||(e.attributes={}),e.attributes.TimeWindowStart=t.getTime())}readViolations(t,e){return p(e.attributes,"Violation_")}readWait(t,e){return p(e.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID"},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger"},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate"},{name:"ArrivalUTCOffset",alias:"Arrival Time",type:"esriFieldTypeInteger"},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString"},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble"},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble"},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger"},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate"},{name:"DepartureUTCOffset",alias:"Departure Time",type:"esriFieldTypeInteger"},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble"},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger"},{name:"Name",alias:"Name",type:"esriFieldTypeString"},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString"},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger"},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString"},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble"},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble"},{name:"Status",alias:"Status",type:"esriFieldTypeInteger"},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate"},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger"},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate"},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger"},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble"}]}static fromGraphic(t){return new C({arriveCurbApproach:null!=t.attributes.ArrivalCurbApproach?v.fromJSON(t.attributes.ArrivalCurbApproach):null,arriveTime:null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null,arriveTimeOffset:t.attributes.ArrivalUTCOffset,cumulativeCosts:null!=t.attributes.CumulativeCosts?m(JSON.parse(t.attributes.CumulativeCosts)):null,cumulativeDistance:t.attributes.CumulativeMeters??null,cumulativeDuration:t.attributes.CumulativeMinutes??null,curbApproach:null!=t.attributes.CurbApproach?v.fromJSON(t.attributes.CurbApproach):null,departCurbApproach:null!=t.attributes.DepartureCurbApproach?v.fromJSON(t.attributes.DepartureCurbApproach):null,departTime:null!=t.attributes.DepartureTime?new Date(t.attributes.DepartureTime):null,departTimeOffset:t.attributes.DepartureUTCOffset??null,geometry:t.geometry,lateDuration:t.attributes.LateMinutes??null,locationType:null!=t.attributes.LocationType?y.fromJSON(t.attributes.LocationType):null,name:t.attributes.Name,objectId:t.attributes.ObjectID??t.attributes.__OBJECTID,popupTemplate:t.popupTemplate,routeName:t.attributes.RouteName,sequence:t.attributes.Sequence??null,serviceCosts:null!=t.attributes.ServiceCosts?m(JSON.parse(t.attributes.ServiceCosts)):null,serviceDistance:t.attributes.ServiceMeters??null,serviceDuration:t.attributes.ServiceMinutes??null,status:null!=t.attributes.Status?c.fromJSON(t.attributes.Status):null,symbol:t.symbol,timeWindowEnd:null!=t.attributes.TimeWindowEnd?new Date(t.attributes.TimeWindowEnd):null,timeWindowEndOffset:t.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=t.attributes.TimeWindowStart?new Date(t.attributes.TimeWindowStart):null,timeWindowStartOffset:t.attributes.TimeWindowStartUTCOffset??null,waitDuration:t.attributes.WaitMinutes??null})}toGraphic(){const t={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?v.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(d(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?v.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?v.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?y.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(d(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?c.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new e({geometry:this.geometry,attributes:t,symbol:this.symbol,popupTemplate:this.popupTemplate})}};t([s({type:v.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:v.read}}})],w.prototype,"arriveCurbApproach",void 0),t([s({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],w.prototype,"arriveTime",void 0),t([s()],w.prototype,"arriveTimeOffset",void 0),t([h("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],w.prototype,"readArriveTimeOffset",null),t([s({json:{name:"attributes.Bearing",read:!1,write:!0}})],w.prototype,"bearing",void 0),t([s({json:{name:"attributes.BearingTol",read:!1,write:!0}})],w.prototype,"bearingTol",void 0),t([s()],w.prototype,"cumulativeCosts",void 0),t([h("cumulativeCosts",["attributes"])],w.prototype,"readCumulativeCosts",null),t([s()],w.prototype,"cumulativeDistance",void 0),t([s()],w.prototype,"cumulativeDuration",void 0),t([s({type:v.apiValues,json:{name:"attributes.CurbApproach",read:{reader:v.read},write:{writer:v.write}}})],w.prototype,"curbApproach",void 0),t([s({type:v.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:v.read}}})],w.prototype,"departCurbApproach",void 0),t([s({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],w.prototype,"departTime",void 0),t([s()],w.prototype,"departTimeOffset",void 0),t([h("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],w.prototype,"readDepartTimeOffset",null),t([s({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],w.prototype,"distanceToNetworkInMeters",void 0),t([s({type:u,json:{write:!0},value:null})],w.prototype,"geometry",null),t([s()],w.prototype,"lateDuration",void 0),t([s({type:y.apiValues,json:{name:"attributes.LocationType",read:{reader:y.read},write:{writer:y.write}}})],w.prototype,"locationType",void 0),t([s({json:{name:"attributes.Name"}})],w.prototype,"name",void 0),t([s({json:{name:"attributes.NavLatency",read:!1,write:!0}})],w.prototype,"navLatency",void 0),t([s({json:{name:"attributes.ObjectID"}})],w.prototype,"objectId",void 0),t([s({type:i})],w.prototype,"popupTemplate",void 0),t([s({json:{name:"attributes.PosAlong"}})],w.prototype,"positionAlong",void 0),t([s({json:{name:"attributes.RouteName"}})],w.prototype,"routeName",void 0),t([s()],w.prototype,"serviceCosts",void 0),t([h("serviceCosts",["attributes"])],w.prototype,"readServiceCosts",null),t([f("serviceCosts")],w.prototype,"writeServiceCosts",null),t([s()],w.prototype,"serviceDistance",void 0),t([s()],w.prototype,"serviceDuration",void 0),t([s({json:{name:"attributes.Sequence"}})],w.prototype,"sequence",void 0),t([s({type:T.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:T.read},write:{writer:T.write}}})],w.prototype,"sideOfEdge",void 0),t([s({json:{read:{source:"attributes.SnapX"}}})],w.prototype,"snapX",void 0),t([s({json:{read:{source:"attributes.SnapY"}}})],w.prototype,"snapY",void 0),t([s({json:{read:{source:"attributes.SnapZ"}}})],w.prototype,"snapZ",void 0),t([s({json:{name:"attributes.SourceID"}})],w.prototype,"sourceId",void 0),t([s({json:{name:"attributes.SourceOID"}})],w.prototype,"sourceOid",void 0),t([s({type:c.apiValues,json:{name:"attributes.Status",read:{reader:c.read},write:{writer:c.write}}})],w.prototype,"status",void 0),t([s({types:b})],w.prototype,"symbol",void 0),t([s({type:Date,json:{name:"attributes.TimeWindowEnd"}})],w.prototype,"timeWindowEnd",void 0),t([f("timeWindowEnd")],w.prototype,"writeTimeWindowEnd",null),t([s()],w.prototype,"timeWindowEndOffset",void 0),t([s({type:Date,json:{name:"attributes.TimeWindowStart"}})],w.prototype,"timeWindowStart",void 0),t([f("timeWindowStart")],w.prototype,"writeTimeWindowStart",null),t([s()],w.prototype,"timeWindowStartOffset",void 0),t([s({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),t([s()],w.prototype,"violations",void 0),t([h("violations",["attributes"])],w.prototype,"readViolations",null),t([s()],w.prototype,"waitDuration",void 0),t([s()],w.prototype,"wait",void 0),t([h("wait",["attributes"])],w.prototype,"readWait",null),w=C=t([o("esri.rest.support.Stop")],w);export{w as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- const c="20251113",d="47c76123e885a306881d2d0c77bcf14a9389b2d5";export{c as buildDate,d as commitHash};
5
+ const e="20251114",a="f525e36d108da4edf50f50ba2312e859c0304e0a";export{e as buildDate,a as commitHash};
package/symbols/Font.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{JSONSupport as e}from"../core/JSONSupport.js";import{toPt as o}from"../core/screenUtils.js";import{property as i,cast as s,subclass as r}from"../core/accessorSupport/decorators.js";import{fontDecorations as n,fontStyles as l,fontWeights as p}from"./support/textUtils.js";var a;let y=a=class extends e{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return o(t)}clone(){return new a({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};t([i({type:n,json:{default:"none",write:!0}})],y.prototype,"decoration",void 0),t([i({type:String,json:{write:!0}})],y.prototype,"family",void 0),t([i({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],y.prototype,"size",void 0),t([s("size")],y.prototype,"castSize",null),t([i({type:l,json:{default:"normal",write:!0}})],y.prototype,"style",void 0),t([i({type:p,json:{default:"normal",write:!0}})],y.prototype,"weight",void 0),y=a=t([r("esri.symbols.Font")],y);export{y as default};
5
+ import{__decorate as t}from"tslib";import{JSONSupport as e}from"../core/JSONSupport.js";import{toPt as o}from"../core/screenUtils.js";import{property as i,cast as s,subclass as r}from"../core/accessorSupport/decorators.js";import{fontDecorations as n,fontStyles as l,fontWeights as p}from"./support/textUtils.js";var a;let y=a=class extends e{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return o(t)}clone(){return new a({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};t([i({type:n,json:{default:"none",write:!0}})],y.prototype,"decoration",void 0),t([i({type:String,json:{write:!0}})],y.prototype,"family",void 0),t([i({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],y.prototype,"size",null),t([s("size")],y.prototype,"castSize",null),t([i({type:l,json:{default:"normal",write:!0}})],y.prototype,"style",void 0),t([i({type:p,json:{default:"normal",write:!0}})],y.prototype,"weight",void 0),y=a=t([r("esri.symbols.Font")],y);export{y as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import{clone as t}from"../core/lang.js";import e from"../core/Logger.js";import{makeData as r}from"../core/urlUtils.js";import{property as i,subclass as s}from"../core/accessorSupport/decorators.js";import n from"./Symbol3DLayer.js";import{white as l,isBlack as c}from"./support/colors.js";import{IconSymbol3DLayerResource as a}from"./support/IconSymbol3DLayerResource.js";import{screenSizeProperty as p}from"./support/materialUtils.js";import u from"./support/OccludedVisibility.js";import{Symbol3DAnchorPosition2D as m}from"./support/Symbol3DAnchorPosition2D.js";import{Symbol3DIconOutline as h}from"./support/Symbol3DIconOutline.js";import{Symbol3DMaterial as d}from"./support/Symbol3DMaterial.js";import{enumeration as y}from"../core/accessorSupport/decorators/enumeration.js";var f;let b=class extends n{static{f=this}constructor(o){super(o),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null,this.angle=0,this.occludedVisibility=null}clone(){return new f({anchor:this.anchor,anchorPosition:t(this.anchorPosition),enabled:this.enabled,material:t(this.material),outline:t(this.outline),resource:t(this.resource),angle:this.angle,size:this.size,occludedVisibility:t(this.occludedVisibility)})}static fromSimpleMarkerSymbol(o){const t=o.color||l,r=g(o),i=o.outline&&o.outline.width>0?{size:o.outline.width,color:(o.outline.color||l).clone()}:null;return new f({size:o.size,angle:o.angle,resource:{primitive:w(()=>e.getLogger(this.prototype),o.style)},material:{color:t},outline:i,anchor:r?"relative":void 0,anchorPosition:r})}static fromPictureMarkerSymbol(o){const t=!o.color||c(o.color)?l:o.color,e=g(o);return new f({size:o.width<=o.height?o.height:o.width,angle:o.angle,resource:{href:o.url},material:{color:t.clone()},anchor:e?"relative":void 0,anchorPosition:e})}static fromCIMSymbol(o){return new f({resource:{href:r({mediaType:"application/json",data:JSON.stringify(o.data)})}})}};function g(o){const t="width"in o?o.width:o.size,e="height"in o?o.height:o.size,r=j(o.xoffset),i=j(o.yoffset);return(r||i)&&t&&e?{x:-r/t,y:i/e}:null}function j(o){return isFinite(o)?o:0}o([i({type:d,json:{write:!0}})],b.prototype,"material",void 0),o([i({type:a,json:{write:!0}})],b.prototype,"resource",void 0),o([y({Icon:"icon"},{readOnly:!0})],b.prototype,"type",void 0),o([i({...p,json:{write:{isRequired:!0}}})],b.prototype,"size",void 0),o([y({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"},{default:"center"})],b.prototype,"anchor",void 0),o([i({type:m,json:{type:[Number],read:{reader:o=>new m({x:o[0],y:o[1]})},write:{writer:(o,t)=>{t.anchorPosition=[o.x,o.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],b.prototype,"anchorPosition",void 0),o([i({type:h,json:{write:!0}})],b.prototype,"outline",void 0),o([i({type:Number,json:{write:!0,default:0}})],b.prototype,"angle",void 0),o([i({type:u})],b.prototype,"occludedVisibility",void 0),b=f=o([s("esri.symbols.IconSymbol3DLayer")],b);const v={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function w(o,t){const e=v[t];return e||(o().warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}export{b as default};
5
+ import{__decorate as o}from"tslib";import{clone as t}from"../core/lang.js";import e from"../core/Logger.js";import{makeData as r}from"../core/urlUtils.js";import{property as i,subclass as s}from"../core/accessorSupport/decorators.js";import n from"./Symbol3DLayer.js";import{white as l,isBlack as c}from"./support/colors.js";import{IconSymbol3DLayerResource as a}from"./support/IconSymbol3DLayerResource.js";import{screenSizeProperty as p}from"./support/materialUtils.js";import u from"./support/OccludedVisibility.js";import{Symbol3DAnchorPosition2D as m}from"./support/Symbol3DAnchorPosition2D.js";import{Symbol3DIconOutline as h}from"./support/Symbol3DIconOutline.js";import{Symbol3DMaterial as y}from"./support/Symbol3DMaterial.js";import{enumeration as d}from"../core/accessorSupport/decorators/enumeration.js";var f;let b=class extends n{static{f=this}constructor(o){super(o),this.material=null,this.resource=null,this.type="icon",this.anchor="center",this.anchorPosition=null,this.outline=null,this.angle=0,this.occludedVisibility=null}get size(){return this._get("size")??12}set size(o){this._set("size",o)}clone(){return new f({anchor:this.anchor,anchorPosition:t(this.anchorPosition),enabled:this.enabled,material:t(this.material),outline:t(this.outline),resource:t(this.resource),angle:this.angle,size:this.size,occludedVisibility:t(this.occludedVisibility)})}static fromSimpleMarkerSymbol(o){const t=o.color||l,r=g(o),i=o.outline&&o.outline.width>0?{size:o.outline.width,color:(o.outline.color||l).clone()}:null;return new f({size:o.size,angle:o.angle,resource:{primitive:v(()=>e.getLogger(this.prototype),o.style)},material:{color:t},outline:i,anchor:r?"relative":void 0,anchorPosition:r})}static fromPictureMarkerSymbol(o){const t=!o.color||c(o.color)?l:o.color,e=g(o);return new f({size:o.width<=o.height?o.height:o.width,angle:o.angle,resource:{href:o.url},material:{color:t.clone()},anchor:e?"relative":void 0,anchorPosition:e})}static fromCIMSymbol(o){return new f({resource:{href:r({mediaType:"application/json",data:JSON.stringify(o.data)})}})}};function g(o){const t="width"in o?o.width:o.size,e="height"in o?o.height:o.size,r=j(o.xoffset),i=j(o.yoffset);return(r||i)&&t&&e?{x:-r/t,y:i/e}:null}function j(o){return isFinite(o)?o:0}o([i({type:y,json:{write:!0}})],b.prototype,"material",void 0),o([i({type:a,json:{write:!0}})],b.prototype,"resource",void 0),o([d({Icon:"icon"},{readOnly:!0})],b.prototype,"type",void 0),o([i({...p,json:{write:{isRequired:!0}}})],b.prototype,"size",null),o([d({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"},{default:"center"})],b.prototype,"anchor",void 0),o([i({type:m,json:{type:[Number],read:{reader:o=>new m({x:o[0],y:o[1]})},write:{writer:(o,t)=>{t.anchorPosition=[o.x,o.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],b.prototype,"anchorPosition",void 0),o([i({type:h,json:{write:!0}})],b.prototype,"outline",void 0),o([i({type:Number,json:{write:!0,default:0}})],b.prototype,"angle",void 0),o([i({type:u})],b.prototype,"occludedVisibility",void 0),b=f=o([s("esri.symbols.IconSymbol3DLayer")],b);const w={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function v(o,t){const e=w[t];return e||(o().warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}export{b as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as r}from"tslib";import{toPt as t}from"../core/screenUtils.js";import{property as o,subclass as e}from"../core/accessorSupport/decorators.js";import s from"./Symbol.js";import{enumeration as i}from"../core/accessorSupport/decorators/enumeration.js";let p=class extends s{constructor(r){super(r),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};r([i({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),r([o({type:Number,cast:t,json:{write:!0}})],p.prototype,"width",void 0),p=r([e("esri.symbols.LineSymbol")],p);export{p as default};
5
+ import{__decorate as t}from"tslib";import{toPt as e}from"../core/screenUtils.js";import{property as r,subclass as s}from"../core/accessorSupport/decorators.js";import o from"./Symbol.js";import{enumeration as i}from"../core/accessorSupport/decorators/enumeration.js";let p=class extends o{constructor(t){super(t),this.type="simple-line"}get width(){return this._get("width")??.75}set width(t){this._set("width",t)}hash(){return`${this.type}.${this.width}`}};t([i({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),t([r({type:Number,cast:e,json:{write:!0}})],p.prototype,"width",null),p=t([s("esri.symbols.LineSymbol")],p);export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{px2pt as e}from"../core/screenUtils.js";import{property as r,subclass as o}from"../core/accessorSupport/decorators.js";import i from"./LineStyleMarker3D.js";import s from"./Symbol3DLayer.js";import l from"./patterns/LineStylePattern3D.js";import{symbol3dLinePatternProperty as a}from"./patterns/utils.js";import{white as p}from"./support/colors.js";import{screenSizeProperty as n}from"./support/materialUtils.js";import{Symbol3DMaterial as m}from"./support/Symbol3DMaterial.js";import{lineJoins as c,lineCaps as y}from"./support/symbolLayerUtils3D.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";var j;let d=class extends s{static{j=this}constructor(t){super(t),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=e(1),this.pattern=null,this.marker=null}clone(){const t={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new j(t)}static fromSimpleLineSymbol(t){const r={enabled:!0,size:t.width??e(1),cap:t.cap||"butt",join:t.join||"miter",pattern:t.style?new l({style:t.style}):null,material:new m({color:(t.color||p).clone()}),marker:t.marker?new i({placement:t.marker.placement,style:t.marker.style,color:t.marker.color?.clone()??null}):null};return new j(r)}};t([r({type:m,json:{write:!0}})],d.prototype,"material",void 0),t([u({Line:"line"},{readOnly:!0})],d.prototype,"type",void 0),t([r({type:c,json:{write:!0,default:"miter"}})],d.prototype,"join",void 0),t([r({type:y,json:{write:!0,default:"butt"}})],d.prototype,"cap",void 0),t([r({...n,json:{write:{isRequired:!0}}})],d.prototype,"size",void 0),t([r(a)],d.prototype,"pattern",void 0),t([r({types:{key:"type",base:i,typeMap:{style:i}},json:{write:!0}})],d.prototype,"marker",void 0),d=j=t([o("esri.symbols.LineSymbol3DLayer")],d);export{d as default};
5
+ import{__decorate as t}from"tslib";import{px2pt as e}from"../core/screenUtils.js";import{property as r,subclass as o}from"../core/accessorSupport/decorators.js";import i from"./LineStyleMarker3D.js";import s from"./Symbol3DLayer.js";import l from"./patterns/LineStylePattern3D.js";import{symbol3dLinePatternProperty as n}from"./patterns/utils.js";import{white as a}from"./support/colors.js";import{screenSizeProperty as p}from"./support/materialUtils.js";import{Symbol3DMaterial as m}from"./support/Symbol3DMaterial.js";import{lineJoins as c,lineCaps as y}from"./support/symbolLayerUtils3D.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";var j;let h=class extends s{static{j=this}constructor(t){super(t),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.pattern=null,this.marker=null}get size(){return this._get("size")??e(1)}set size(t){this._set("size",t)}clone(){const t={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new j(t)}static fromSimpleLineSymbol(t){const r={enabled:!0,size:t.width??e(1),cap:t.cap||"butt",join:t.join||"miter",pattern:t.style?new l({style:t.style}):null,material:new m({color:(t.color||a).clone()}),marker:t.marker?new i({placement:t.marker.placement,style:t.marker.style,color:t.marker.color?.clone()??null}):null};return new j(r)}};t([r({type:m,json:{write:!0}})],h.prototype,"material",void 0),t([u({Line:"line"},{readOnly:!0})],h.prototype,"type",void 0),t([r({type:c,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0),t([r({type:y,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0),t([r({...p,json:{write:{isRequired:!0}}})],h.prototype,"size",null),t([r(n)],h.prototype,"pattern",void 0),t([r({types:{key:"type",base:i,typeMap:{style:i}},json:{write:!0}})],h.prototype,"marker",void 0),h=j=t([o("esri.symbols.LineSymbol3DLayer")],h);export{h as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{toPt as e}from"../core/screenUtils.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import{ensureNumber as r}from"../core/accessorSupport/ensureType.js";import i from"./Symbol.js";let p=class extends i{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};t([o({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],p.prototype,"angle",void 0),t([o({type:["simple-marker","picture-marker"],readOnly:!0})],p.prototype,"type",void 0),t([o({type:Number,cast:e,json:{write:!0}})],p.prototype,"xoffset",void 0),t([o({type:Number,cast:e,json:{write:!0}})],p.prototype,"yoffset",void 0),t([o({cast:t=>"auto"===t?t:r(e(t)),json:{write:!0}})],p.prototype,"size",void 0),p=t([s("esri.symbols.MarkerSymbol")],p);export{p as default};
5
+ import{__decorate as t}from"tslib";import{toPt as e}from"../core/screenUtils.js";import{property as s,subclass as o}from"../core/accessorSupport/decorators.js";import{ensureNumber as r}from"../core/accessorSupport/ensureType.js";import i from"./Symbol.js";let p=class extends i{constructor(t){super(t),this.angle=0,this.type=null,this.size=9}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};t([s({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],p.prototype,"angle",void 0),t([s({type:["simple-marker","picture-marker"],readOnly:!0})],p.prototype,"type",void 0),t([s({type:Number,cast:e,json:{write:!0}})],p.prototype,"xoffset",null),t([s({type:Number,cast:e,json:{write:!0}})],p.prototype,"yoffset",null),t([s({cast:t=>"auto"===t?t:r(e(t)),json:{write:!0}})],p.prototype,"size",void 0),p=t([o("esri.symbols.MarkerSymbol")],p);export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{clone as e}from"../core/lang.js";import{toPt as s}from"../core/screenUtils.js";import{property as o,subclass as r}from"../core/accessorSupport/decorators.js";import i from"./FillSymbol.js";import{urlPropertyDefinition as l,sourcePropertyDefinition as h}from"./support/urlUtils.js";import{enumeration as p}from"../core/accessorSupport/decorators/enumeration.js";var c;let u=c=class extends i{constructor(...t){super(...t),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const i={};return t&&(i.url=t),e&&(i.outline=e),null!=o&&(i.width=s(o)),null!=r&&(i.height=s(r)),i}clone(){const t=new c({color:e(this.color),height:this.height,outline:e(this.outline),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return t._set("source",e(this.source)),t}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};t([p({esriPFS:"picture-fill"},{readOnly:!0})],u.prototype,"type",void 0),t([o(l)],u.prototype,"url",void 0),t([o({type:Number,json:{write:!0}})],u.prototype,"xscale",void 0),t([o({type:Number,json:{write:!0}})],u.prototype,"yscale",void 0),t([o({type:Number,cast:s,json:{write:!0}})],u.prototype,"width",void 0),t([o({type:Number,cast:s,json:{write:!0}})],u.prototype,"height",void 0),t([o({type:Number,cast:s,json:{write:!0}})],u.prototype,"xoffset",void 0),t([o({type:Number,cast:s,json:{write:!0}})],u.prototype,"yoffset",void 0),t([o(h)],u.prototype,"source",void 0),u=c=t([r("esri.symbols.PictureFillSymbol")],u);export{u as default};
5
+ import{__decorate as t}from"tslib";import{clone as e}from"../core/lang.js";import{toPt as s}from"../core/screenUtils.js";import{property as o,subclass as r}from"../core/accessorSupport/decorators.js";import i from"./FillSymbol.js";import{urlPropertyDefinition as h,sourcePropertyDefinition as l}from"./support/urlUtils.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";var p;let f=p=class extends i{constructor(...t){super(...t),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.source=null}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const i={};return t&&(i.url=t),e&&(i.outline=e),null!=o&&(i.width=s(o)),null!=r&&(i.height=s(r)),i}get width(){return this._get("width")??12}set width(t){this._set("width",t)}get height(){return this._get("height")??12}set height(t){this._set("height",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}clone(){const t=new p({color:e(this.color),height:this.height,outline:e(this.outline),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return t._set("source",e(this.source)),t}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};t([u({esriPFS:"picture-fill"},{readOnly:!0})],f.prototype,"type",void 0),t([o(h)],f.prototype,"url",void 0),t([o({type:Number,json:{write:!0}})],f.prototype,"xscale",void 0),t([o({type:Number,json:{write:!0}})],f.prototype,"yscale",void 0),t([o({type:Number,cast:s,json:{write:!0}})],f.prototype,"width",null),t([o({type:Number,cast:s,json:{write:!0}})],f.prototype,"height",null),t([o({type:Number,cast:s,json:{write:!0}})],f.prototype,"xoffset",null),t([o({type:Number,cast:s,json:{write:!0}})],f.prototype,"yoffset",null),t([o(l)],f.prototype,"source",void 0),f=p=t([r("esri.symbols.PictureFillSymbol")],f);export{f as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{clone as r}from"../core/lang.js";import{toPt as e}from"../core/screenUtils.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import i from"./MarkerSymbol.js";import{urlPropertyDefinition as h,sourcePropertyDefinition as p}from"./support/urlUtils.js";import{enumeration as l}from"../core/accessorSupport/decorators/enumeration.js";import{reader as u}from"../core/accessorSupport/decorators/reader.js";var n;let c=n=class extends i{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,r,o){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),null!=r&&(s.width=e(r)),null!=o&&(s.height=e(o)),s}readHeight(t,r){return r.size||t}readWidth(t,r){return r.size||t}clone(){const t=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",r(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};t([o({json:{write:!1}})],c.prototype,"color",void 0),t([l({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),t([o(h)],c.prototype,"url",void 0),t([o(p)],c.prototype,"source",void 0),t([o({type:Number,cast:e,json:{write:!0}})],c.prototype,"height",void 0),t([u("height",["height","size"])],c.prototype,"readHeight",null),t([o({type:Number,cast:e,json:{write:!0}})],c.prototype,"width",void 0),t([o({json:{write:!1}})],c.prototype,"size",void 0),c=n=t([s("esri.symbols.PictureMarkerSymbol")],c);export{c as default};
5
+ import{__decorate as t}from"tslib";import{clone as r}from"../core/lang.js";import{toPt as e}from"../core/screenUtils.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import i from"./MarkerSymbol.js";import{urlPropertyDefinition as h,sourcePropertyDefinition as l}from"./support/urlUtils.js";import{enumeration as u}from"../core/accessorSupport/decorators/enumeration.js";import{reader as p}from"../core/accessorSupport/decorators/reader.js";var n;let c=n=class extends i{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.size=null}normalizeCtorArgs(t,r,o){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),null!=r&&(s.width=e(r)),null!=o&&(s.height=e(o)),s}get height(){return this._get("height")??12}set height(t){this._set("height",t)}readHeight(t,r){return r.size||t}get width(){return this._get("width")??12}set width(t){this._set("width",t)}readWidth(t,r){return r.size||t}clone(){const t=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",r(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};t([o({json:{write:!1}})],c.prototype,"color",void 0),t([u({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),t([o(h)],c.prototype,"url",void 0),t([o(l)],c.prototype,"source",void 0),t([o({type:Number,cast:e,json:{write:!0}})],c.prototype,"height",null),t([p("height",["height","size"])],c.prototype,"readHeight",null),t([o({type:Number,cast:e,json:{write:!0}})],c.prototype,"width",null),t([o({json:{write:!1}})],c.prototype,"size",void 0),c=n=t([s("esri.symbols.PictureMarkerSymbol")],c);export{c as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import o from"../Color.js";import{clone as e}from"../core/lang.js";import{toPt as i}from"../core/screenUtils.js";import{property as r,cast as n,subclass as s}from"../core/accessorSupport/decorators.js";import h from"./Font.js";import l from"./Symbol.js";import{horizontalAlignmentProperty as p,verticalAlignmentProperty as a,lineHeightProperty as d}from"./support/textUtils.js";import{enumeration as y}from"../core/accessorSupport/decorators/enumeration.js";import{writer as f}from"../core/accessorSupport/decorators/writer.js";var g;let c=g=class extends l{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new h,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,o,e){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.text=t),o&&(i.font=o),e&&(i.color=e),i}writeLineWidth(t,o,e,i){i&&"string"!=typeof i?i.origin:o[e]=t}castLineWidth(t){return i(t)}writeLineHeight(t,o,e,i){i&&"string"!=typeof i?i.origin:o[e]=t}clone(){return new g({angle:this.angle,backgroundColor:e(this.backgroundColor),borderLineColor:e(this.borderLineColor),borderLineSize:this.borderLineSize,color:e(this.color),font:this.font&&this.font.clone(),haloColor:e(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};t([r({type:o,json:{write:!0}})],c.prototype,"backgroundColor",void 0),t([r({type:o,json:{write:!0}})],c.prototype,"borderLineColor",void 0),t([r({type:Number,json:{write:!0},cast:i})],c.prototype,"borderLineSize",void 0),t([r({type:h,json:{write:!0}})],c.prototype,"font",void 0),t([r({...p,json:{write:!0}})],c.prototype,"horizontalAlignment",void 0),t([r({type:Boolean,json:{write:!0}})],c.prototype,"kerning",void 0),t([r({type:o,json:{write:!0}})],c.prototype,"haloColor",void 0),t([r({type:Number,cast:i,json:{write:!0}})],c.prototype,"haloSize",void 0),t([r({type:Boolean,json:{write:!0}})],c.prototype,"rightToLeft",void 0),t([r({type:Boolean,json:{write:!0}})],c.prototype,"rotated",void 0),t([r({type:String,json:{write:!0}})],c.prototype,"text",void 0),t([y({esriTS:"text"},{readOnly:!0})],c.prototype,"type",void 0),t([r({...a,json:{write:!0}})],c.prototype,"verticalAlignment",void 0),t([r({type:Number,cast:i,json:{write:!0}})],c.prototype,"xoffset",void 0),t([r({type:Number,cast:i,json:{write:!0}})],c.prototype,"yoffset",void 0),t([r({type:Number,json:{read:t=>t&&-1*t,write:(t,o)=>o.angle=t&&-1*t}})],c.prototype,"angle",void 0),t([r({type:Number,json:{write:!0}})],c.prototype,"width",void 0),t([r({type:Number})],c.prototype,"lineWidth",void 0),t([f("lineWidth")],c.prototype,"writeLineWidth",null),t([n("lineWidth")],c.prototype,"castLineWidth",null),t([r(d)],c.prototype,"lineHeight",void 0),t([f("lineHeight")],c.prototype,"writeLineHeight",null),c=g=t([s("esri.symbols.TextSymbol")],c);export{c as default};
5
+ import{__decorate as t}from"tslib";import e from"../Color.js";import{clone as o}from"../core/lang.js";import{toPt as i}from"../core/screenUtils.js";import{property as r,cast as s,subclass as n}from"../core/accessorSupport/decorators.js";import h from"./Font.js";import l from"./Symbol.js";import{horizontalAlignmentProperty as p,verticalAlignmentProperty as a,lineHeightProperty as d}from"./support/textUtils.js";import{enumeration as f}from"../core/accessorSupport/decorators/enumeration.js";import{writer as g}from"../core/accessorSupport/decorators/writer.js";var y;let u=y=class extends l{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new h,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.text=t),e&&(i.font=e),o&&(i.color=o),i}get haloSize(){return this._get("haloSize")??null}set haloSize(t){this._set("haloSize",t)}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(t){this._set("lineWidth",t)}writeLineWidth(t,e,o,i){i&&"string"!=typeof i?i.origin:e[o]=t}castLineWidth(t){return i(t)}writeLineHeight(t,e,o,i){i&&"string"!=typeof i?i.origin:e[o]=t}clone(){return new y({angle:this.angle,backgroundColor:o(this.backgroundColor),borderLineColor:o(this.borderLineColor),borderLineSize:this.borderLineSize,color:o(this.color),font:this.font&&this.font.clone(),haloColor:o(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};t([r({type:e,json:{write:!0}})],u.prototype,"backgroundColor",void 0),t([r({type:e,json:{write:!0}})],u.prototype,"borderLineColor",void 0),t([r({type:Number,json:{write:!0},cast:i})],u.prototype,"borderLineSize",void 0),t([r({type:h,json:{write:!0}})],u.prototype,"font",void 0),t([r({...p,json:{write:!0}})],u.prototype,"horizontalAlignment",void 0),t([r({type:Boolean,json:{write:!0}})],u.prototype,"kerning",void 0),t([r({type:e,json:{write:!0}})],u.prototype,"haloColor",void 0),t([r({type:Number,cast:i,json:{write:!0}})],u.prototype,"haloSize",null),t([r({type:Boolean,json:{write:!0}})],u.prototype,"rightToLeft",void 0),t([r({type:Boolean,json:{write:!0}})],u.prototype,"rotated",void 0),t([r({type:String,json:{write:!0}})],u.prototype,"text",void 0),t([f({esriTS:"text"},{readOnly:!0})],u.prototype,"type",void 0),t([r({...a,json:{write:!0}})],u.prototype,"verticalAlignment",void 0),t([r({type:Number,cast:i,json:{write:!0}})],u.prototype,"xoffset",null),t([r({type:Number,cast:i,json:{write:!0}})],u.prototype,"yoffset",null),t([r({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),t([r({type:Number,json:{write:!0}})],u.prototype,"width",void 0),t([r({type:Number})],u.prototype,"lineWidth",null),t([g("lineWidth")],u.prototype,"writeLineWidth",null),t([s("lineWidth")],u.prototype,"castLineWidth",null),t([r(d)],u.prototype,"lineHeight",void 0),t([g("lineHeight")],u.prototype,"writeLineHeight",null),u=y=t([n("esri.symbols.TextSymbol")],u);export{u as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{clone as e}from"../core/lang.js";import{property as o,subclass as i}from"../core/accessorSupport/decorators.js";import r from"./Font.js";import l from"./Symbol3DLayer.js";import{screenSizeProperty as n}from"./support/materialUtils.js";import s from"./support/OccludedVisibility.js";import{Symbol3DHalo as a}from"./support/Symbol3DHalo.js";import{Symbol3DMaterial as p}from"./support/Symbol3DMaterial.js";import{Symbol3DTextBackground as u}from"./support/Symbol3DTextBackground.js";import{horizontalAlignmentProperty as c,lineHeightProperty as h,verticalAlignmentProperty as m}from"./support/textUtils.js";import{writer as d}from"../core/accessorSupport/decorators/writer.js";import{enumeration as f}from"../core/accessorSupport/decorators/enumeration.js";var y;let g=class extends l{static{y=this}constructor(t){super(t),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline",this.occludedVisibility=null}get font(){return this._get("font")||null}set font(t){null!=t&&null!=this._userSize&&(t.size=this._userSize),this._set("font",t)}writeFont(t,e,o,i){const r={...i,textSymbol3D:!0};e.font=t.write({},r),delete e.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(t){this._userSize=t,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const t=new y({enabled:this.enabled,font:e(this.font),halo:e(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:e(this.background),occludedVisibility:e(this.occludedVisibility)});return t._userSize=this._userSize,t}static fromTextSymbol(t){return new y({font:null!=t.font?t.font.clone():new r,halo:z(t.haloColor,t.haloSize),horizontalAlignment:t.horizontalAlignment,lineHeight:t.lineHeight,material:t.color?new p({color:t.color.clone()}):null,text:t.text,verticalAlignment:t.verticalAlignment,background:t.backgroundColor?new u({color:t.backgroundColor.clone()}):null})}};function z(t,o){return t&&null!=o&&o>0?new a({color:e(t),size:o}):null}t([o({type:r,json:{write:!0}})],g.prototype,"font",null),t([d("font")],g.prototype,"writeFont",null),t([o({type:a,json:{write:!0}})],g.prototype,"halo",void 0),t([o({...c,json:{default:"center",write:!0}})],g.prototype,"horizontalAlignment",void 0),t([o({...h,json:{default:1,write:!0}})],g.prototype,"lineHeight",void 0),t([o({type:p,json:{write:!0}})],g.prototype,"material",void 0),t([o({type:u,json:{write:!0}})],g.prototype,"background",void 0),t([o(n)],g.prototype,"size",null),t([o({type:String,json:{write:!0}})],g.prototype,"text",void 0),t([f({Text:"text"},{readOnly:!0})],g.prototype,"type",void 0),t([o({...m,json:{default:"baseline",write:!0}})],g.prototype,"verticalAlignment",void 0),t([o({type:s})],g.prototype,"occludedVisibility",void 0),g=y=t([i("esri.symbols.TextSymbol3DLayer")],g);export{g as default};
5
+ import{__decorate as t}from"tslib";import{clone as e}from"../core/lang.js";import{property as o,subclass as i}from"../core/accessorSupport/decorators.js";import r from"./Font.js";import l from"./Symbol3DLayer.js";import{screenSizeProperty as n}from"./support/materialUtils.js";import s from"./support/OccludedVisibility.js";import{Symbol3DHalo as a}from"./support/Symbol3DHalo.js";import{Symbol3DMaterial as u}from"./support/Symbol3DMaterial.js";import{Symbol3DTextBackground as p}from"./support/Symbol3DTextBackground.js";import{horizontalAlignmentProperty as c,lineHeightProperty as h,verticalAlignmentProperty as m}from"./support/textUtils.js";import{writer as d}from"../core/accessorSupport/decorators/writer.js";import{enumeration as f}from"../core/accessorSupport/decorators/enumeration.js";var y;let g=class extends l{static{y=this}constructor(t){super(t),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline",this.occludedVisibility=null}get font(){return this._get("font")||null}set font(t){null!=t&&null!=this._userSize&&(t.size=this._userSize),this._set("font",t)}writeFont(t,e,o,i){const r={...i,textSymbol3D:!0};e.font=t.write({},r),delete e.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(t){this._userSize=Number(t),null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const t=new y({enabled:this.enabled,font:e(this.font),halo:e(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:e(this.background),occludedVisibility:e(this.occludedVisibility)});return t._userSize=this._userSize,t}static fromTextSymbol(t){return new y({font:null!=t.font?t.font.clone():new r,halo:b(t.haloColor,t.haloSize),horizontalAlignment:t.horizontalAlignment,lineHeight:t.lineHeight,material:t.color?new u({color:t.color.clone()}):null,text:t.text,verticalAlignment:t.verticalAlignment,background:t.backgroundColor?new p({color:t.backgroundColor.clone()}):null})}};function b(t,o){return t&&null!=o&&o>0?new a({color:e(t),size:o}):null}t([o({type:r,json:{write:!0}})],g.prototype,"font",null),t([d("font")],g.prototype,"writeFont",null),t([o({type:a,json:{write:!0}})],g.prototype,"halo",void 0),t([o({...c,json:{default:"center",write:!0}})],g.prototype,"horizontalAlignment",void 0),t([o({...h,json:{default:1,write:!0}})],g.prototype,"lineHeight",void 0),t([o({type:u,json:{write:!0}})],g.prototype,"material",void 0),t([o({type:p,json:{write:!0}})],g.prototype,"background",void 0),t([o(n)],g.prototype,"size",null),t([o({type:String,json:{write:!0}})],g.prototype,"text",void 0),t([f({Text:"text"},{readOnly:!0})],g.prototype,"type",void 0),t([o({...m,json:{default:"baseline",write:!0}})],g.prototype,"verticalAlignment",void 0),t([o({type:s})],g.prototype,"occludedVisibility",void 0),g=y=t([i("esri.symbols.TextSymbol3DLayer")],g);export{g as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import r from"../../Color.js";import{clone as e}from"../../core/lang.js";import{px2pt as t}from"../../core/screenUtils.js";import{property as i,subclass as s}from"../../core/accessorSupport/decorators.js";import l from"./Callout3D.js";import p from"./LineCallout3DBorder.js";import{colorAndTransparencyProperty as c,screenSizeProperty as n}from"../support/materialUtils.js";import{enumeration as m}from"../../core/accessorSupport/decorators/enumeration.js";var a;let u=a=class extends l{constructor(o){super(o),this.type="line",this.color=new r([0,0,0,1]),this.size=t(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new a({color:e(this.color),size:this.size,border:e(this.border)})}};o([m({line:"line"})],u.prototype,"type",void 0),o([i(c({colorRequiredOnWrite:!0}))],u.prototype,"color",void 0),o([i({...n,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),o([i({type:p,json:{write:!0}})],u.prototype,"border",void 0),o([i({readOnly:!0})],u.prototype,"visible",null),u=a=o([s("esri.symbols.callouts.LineCallout3D")],u);export{u as default};
5
+ import{__decorate as o}from"tslib";import r from"../../Color.js";import{clone as e}from"../../core/lang.js";import{px2pt as t}from"../../core/screenUtils.js";import{property as s,subclass as i}from"../../core/accessorSupport/decorators.js";import l from"./Callout3D.js";import p from"./LineCallout3DBorder.js";import{colorAndTransparencyProperty as n,screenSizeProperty as c}from"../support/materialUtils.js";import{enumeration as m}from"../../core/accessorSupport/decorators/enumeration.js";var u;let a=u=class extends l{constructor(o){super(o),this.type="line",this.color=new r([0,0,0,1]),this.border=null}get size(){return this._get("size")??t(1)}set size(o){this._set("size",o)}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new u({color:e(this.color),size:this.size,border:e(this.border)})}};o([m({line:"line"})],a.prototype,"type",void 0),o([s(n({colorRequiredOnWrite:!0}))],a.prototype,"color",void 0),o([s({...c,json:{write:{isRequired:!0}}})],a.prototype,"size",null),o([s({type:p,json:{write:!0}})],a.prototype,"border",void 0),o([s({readOnly:!0})],a.prototype,"visible",null),a=u=o([i("esri.symbols.callouts.LineCallout3D")],a);export{a as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import e from"../../Color.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as t}from"../../core/lang.js";import{px2pt as s}from"../../core/screenUtils.js";import{property as i,subclass as n}from"../../core/accessorSupport/decorators.js";import{colorAndTransparencyProperty as p,screenSizeProperty as c}from"../support/materialUtils.js";let l=class extends r{constructor(o){super(o),this.color=new e([0,0,0,1]),this.extensionLength=0,this.size=s(1)}clone(){}cloneProperties(){return{color:t(this.color),size:this.size,extensionLength:this.extensionLength}}};o([i({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],l.prototype,"type",void 0),o([i(p({colorRequiredOnWrite:!0}))],l.prototype,"color",void 0),o([i({...c,json:{write:{overridePolicy:o=>({enabled:!!o})}}})],l.prototype,"extensionLength",void 0),o([i(c)],l.prototype,"size",void 0),l=o([n("esri.symbols.edges.Edges3D")],l);const d=l;export{d as default};
5
+ import{__decorate as e}from"tslib";import o from"../../Color.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{px2pt as s}from"../../core/screenUtils.js";import{property as i,subclass as n}from"../../core/accessorSupport/decorators.js";import{colorAndTransparencyProperty as p,screenSizeProperty as l}from"../support/materialUtils.js";let c=class extends t{constructor(e){super(e),this.color=new o([0,0,0,1]),this.size=s(1)}get extensionLength(){return this._get("extensionLength")??0}set extensionLength(e){this._set("extensionLength",e)}clone(){}cloneProperties(){return{color:r(this.color),size:this.size,extensionLength:this.extensionLength}}};e([i({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],c.prototype,"type",void 0),e([i(p({colorRequiredOnWrite:!0}))],c.prototype,"color",void 0),e([i({...l,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],c.prototype,"extensionLength",null),e([i(l)],c.prototype,"size",void 0),c=e([n("esri.symbols.edges.Edges3D")],c);const m=c;export{m as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import r from"../../Color.js";import{JSONSupport as s}from"../../core/JSONSupport.js";import{px2pt as e}from"../../core/screenUtils.js";import{property as t,subclass as i}from"../../core/accessorSupport/decorators.js";import{colorAndTransparencyProperty as l,screenSizeProperty as c}from"./materialUtils.js";var n;let p=n=class extends s{constructor(o){super(o),this.color=new r([0,0,0,1]),this.size=e(1)}clone(){const o={color:null!=this.color?this.color.clone():null,size:this.size};return new n(o)}equals(o){return o.size===this.size&&(null==this.color?null==o.color:this.color.equals(o.color))}};o([t(l({colorRequiredOnWrite:!0}))],p.prototype,"color",void 0),o([t({...c,json:{write:{isRequired:!0}}})],p.prototype,"size",void 0),p=n=o([i("esri.symbols.support.Symbol3DIconOutline")],p);export{p as Symbol3DIconOutline};
5
+ import{__decorate as o}from"tslib";import r from"../../Color.js";import{JSONSupport as s}from"../../core/JSONSupport.js";import{px2pt as e}from"../../core/screenUtils.js";import{property as t,subclass as i}from"../../core/accessorSupport/decorators.js";import{colorAndTransparencyProperty as l,screenSizeProperty as c}from"./materialUtils.js";var n;let p=n=class extends s{constructor(o){super(o),this.color=new r([0,0,0,1])}get size(){return this._get("size")??e(1)}set size(o){this._set("size",o)}clone(){const o={color:null!=this.color?this.color.clone():null,size:this.size};return new n(o)}equals(o){return o.size===this.size&&(null==this.color?null==o.color:this.color.equals(o.color))}};o([t(l({colorRequiredOnWrite:!0}))],p.prototype,"color",void 0),o([t({...c,json:{write:{isRequired:!0}}})],p.prototype,"size",null),p=n=o([i("esri.symbols.support.Symbol3DIconOutline")],p);export{p as Symbol3DIconOutline};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import r from"../../Color.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{px2pt as e}from"../../core/screenUtils.js";import{property as s,subclass as i}from"../../core/accessorSupport/decorators.js";import{symbol3dLinePatternProperty as p}from"../patterns/utils.js";import{colorAndTransparencyProperty as l,screenSizeProperty as n}from"./materialUtils.js";import{lineCaps as a}from"./symbolLayerUtils3D.js";var c;let m=c=class extends o{constructor(t){super(t),this.color=new r([0,0,0,1]),this.size=e(1),this.pattern=null,this.patternCap="butt"}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new c(t)}};t([s(l({colorRequiredOnWrite:!0}))],m.prototype,"color",void 0),t([s({...n,json:{write:{isRequired:!0}}})],m.prototype,"size",void 0),t([s(p)],m.prototype,"pattern",void 0),t([s({type:a,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],m.prototype,"patternCap",void 0),m=c=t([i("esri.symbols.support.Symbol3DOutline")],m);export{m as Symbol3DOutline};
5
+ import{__decorate as t}from"tslib";import r from"../../Color.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{px2pt as e}from"../../core/screenUtils.js";import{property as s,subclass as i}from"../../core/accessorSupport/decorators.js";import{symbol3dLinePatternProperty as p}from"../patterns/utils.js";import{colorAndTransparencyProperty as l,screenSizeProperty as n}from"./materialUtils.js";import{lineCaps as a}from"./symbolLayerUtils3D.js";var u;let c=u=class extends o{constructor(t){super(t),this.color=new r([0,0,0,1]),this.pattern=null,this.patternCap="butt"}get size(){return this._get("size")??e(1)}set size(t){this._set("size",t)}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new u(t)}};t([s(l({colorRequiredOnWrite:!0}))],c.prototype,"color",void 0),t([s({...n,json:{write:{isRequired:!0}}})],c.prototype,"size",null),t([s(p)],c.prototype,"pattern",void 0),t([s({type:a,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],c.prototype,"patternCap",void 0),c=u=t([i("esri.symbols.support.Symbol3DOutline")],c);export{c as Symbol3DOutline};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as r,subclass as o}from"../../core/accessorSupport/decorators.js";import{screenSizeProperty as s}from"./materialUtils.js";var n;let i=n=class extends t{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new n({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};e([r({...s,json:{write:{isRequired:!0}}})],i.prototype,"screenLength",void 0),e([r({type:Number,nonNullable:!0,json:{write:!0,default:0}})],i.prototype,"minWorldLength",void 0),e([r({type:Number,json:{write:!0}})],i.prototype,"maxWorldLength",void 0),i=n=e([o("esri.symbols.support.Symbol3DVerticalOffset")],i);export{i as default};
5
+ import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as r,subclass as o}from"../../core/accessorSupport/decorators.js";import{screenSizeProperty as n}from"./materialUtils.js";var s;let i=s=class extends t{constructor(e){super(e),this.minWorldLength=0,this.maxWorldLength=null}get screenLength(){return this._get("screenLength")??0}set screenLength(e){this._set("screenLength",e)}clone(){return new s({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};e([r({...n,json:{write:{isRequired:!0}}})],i.prototype,"screenLength",null),e([r({type:Number,nonNullable:!0,json:{write:!0,default:0}})],i.prototype,"minWorldLength",void 0),e([r({type:Number,json:{write:!0}})],i.prototype,"maxWorldLength",void 0),i=s=e([o("esri.symbols.support.Symbol3DVerticalOffset")],i);export{i as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{isSome as e}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import i from"../../../core/CollectionFlattener.js";import{makeHandle as s}from"../../../core/handleUtils.js";import{watch as a,syncAndInitial as o,initial as n}from"../../../core/reactiveUtils.js";import{property as h,subclass as p}from"../../../core/accessorSupport/decorators.js";import c from"../../../rest/support/DirectionLine.js";import l from"../../../rest/support/DirectionPoint.js";import u from"../../../rest/support/PointBarrier.js";import d from"../../../rest/support/PolygonBarrier.js";import _ from"../../../rest/support/PolylineBarrier.js";import g from"../../../rest/support/RouteInfo.js";import m from"../../../rest/support/Stop.js";import{LayerView2DMixin as w}from"./LayerView2D.js";import y from"./graphics/GraphicContainer.js";import f from"./graphics/GraphicsView2D.js";import v from"../../layers/LayerView.js";import{getHighlightName as k}from"../../support/highlightOptionsUtils.js";const M=["route-info","direction-line","direction-point","polygon-barrier","polyline-barrier","point-barrier","stop"],F={graphic:null,property:null,oldValue:null,newValue:null};function V(t){return t instanceof c||t instanceof l||t instanceof u||t instanceof d||t instanceof _||t instanceof g||t instanceof m}function G(t){return r.isCollection(t)&&t.length&&V(t.at(0))}function I(t){return Array.isArray(t)&&t.length>0&&V(t[0])}let j=class extends(w(v)){constructor(){super(...arguments),this._graphics=new r,this._networkFeatureMap=new Map,this._networkGraphicMap=new Map,this._interaction=null,this._loadInteractionPromise=null,this.interactive=!1}get _routeItems(){return new i({getCollections:()=>null==this.layer||this.destroyed?[]:[null!=this.layer.routeInfo?new r([this.layer.routeInfo]):null,this.layer.directionLines,this.layer.directionPoints,this.layer.polygonBarriers,this.layer.polylineBarriers,this.layer.pointBarriers,this.layer.stops]})}initialize(){this.addHandles(a(()=>{const{interactive:t,suspended:e}=this;return{interactive:t,suspended:e}},({interactive:t,suspended:e})=>{const r=t&&!e;r&&this._getInteractionLoadPromise().then(t=>{t.enabled=this.interactive&&!this.suspended}),this._interaction&&(this._interaction.enabled=r)},o)),this._updatingHandles.addOnCollectionChange(()=>this._routeItems,t=>this._routeItemsChanged(t),n)}destroy(){this._networkFeatureMap.clear(),this._networkGraphicMap.clear(),this._graphics.removeAll(),this._get("_routeItems")?.destroy()}attach(){this._createGraphicsView()}detach(){this._destroyGraphicsView(),this._interaction?.enabled&&(this._interaction.enabled=!1)}get selectedNetworkFeatures(){return this._interaction?.selectedNetworkFeatures??null}async create(t){if(!this.interactive)return;return(await this._getInteractionLoadPromise()).create(t)}async fetchPopupFeaturesAtLocation(t,e){return this._graphicsView.hitTest(t).filter(({popupTemplate:t})=>!!t)}highlight(t,r){let i;i=V(t)?[this._getNetworkFeatureUid(t)]:I(t)?t.map(t=>this._getNetworkFeatureUid(t)):G(t)?t.map(t=>this._getNetworkFeatureUid(t)).toArray():[t.uid];const a=i.filter(e);if(!a.length)return s();const o=k(r);return this._addHighlights(a,o),s(()=>this._removeHighlights(a,o))}async hitTest(t,r){if(this.suspended)return null;const i=this._graphicsView.hitTest(t).filter(e).map(t=>this._networkGraphicMap.get(t));if(!i.length)return null;const{layer:s}=this;return i.reverse().map(e=>({type:"route",layer:s,mapPoint:t,networkFeature:e}))}isUpdating(){return this._graphicsView.updating}moveEnd(){}remove(t){this._interaction?.remove(t)}update(t){this._graphicsView.processUpdate(t)}viewChange(){this._graphicsView.viewChange()}_createGraphic(t){const e=t.toGraphic();return e.layer=this.layer,e.sourceLayer=this.layer,e}_createGraphicsView(){const t=this.view,e=()=>this.requestUpdate(),r=new y(t.featuresTilingScheme);this._graphicsView=new f({container:r,graphics:this._graphics,requestUpdateCallback:e,view:t}),this.container.addChild(r),this._processHighlight()}_destroyGraphicsView(){this.container.removeChild(this._graphicsView.container),this._graphicsView.destroy()}_getDrawOrder(t){const e=this._networkGraphicMap.get(t);return M.indexOf(e.type)}_getInteractionLoadPromise(){return this._loadInteractionPromise||(this._loadInteractionPromise=this._loadInteraction(),this._updatingHandles.addPromise(this._loadInteractionPromise)),this._loadInteractionPromise}_getNetworkFeatureUid(t){return this._networkFeatureMap.has(t)?this._networkFeatureMap.get(t).uid:null}async _loadInteraction(){const{layer:t,view:e}=this,{RouteLayerInteraction:r}=await import("./support/RouteLayerInteraction.js");return this._interaction=new r({view:e,layer:t}),this._interaction}_routeItemsChanged(t){if(t.removed.length){this._graphics.removeMany(t.removed.map(t=>{const e=this._networkFeatureMap.get(t);return this._networkFeatureMap.delete(t),this._networkGraphicMap.delete(e),e}));for(const e of t.removed)this.removeHandles(e)}if(t.added.length){this._graphics.addMany(t.added.map(t=>{const e=this._createGraphic(t);return null==e.symbol?null:(this._networkFeatureMap.set(t,e),this._networkGraphicMap.set(e,t),e)}).filter(e));for(const e of t.added)this.addHandles([a(()=>e.geometry,(t,r)=>{this._updateGraphic(e,"geometry",t,r)}),a(()=>e.symbol,(t,r)=>{this._updateGraphic(e,"symbol",t,r)}),a(()=>e.popupTemplate,t=>{this._networkFeatureMap.has(e)&&(this._networkFeatureMap.get(e).popupTemplate=t)}),a(()=>e.toGraphic().attributes,t=>{this._networkFeatureMap.has(e)&&(this._networkFeatureMap.get(e).attributes=t)})],e);this._graphics.sort((t,e)=>this._getDrawOrder(t)-this._getDrawOrder(e))}}_updateGraphic(t,e,r,i){if(!this._networkFeatureMap.has(t)){const e=this._createGraphic(t);return this._networkFeatureMap.set(t,e),this._networkGraphicMap.set(e,t),void this._graphics.add(e)}const s=this._networkFeatureMap.get(t);s[e]=r,F.graphic=s,F.property=e,F.oldValue=i,F.newValue=r,this._graphicsView.graphicUpdateHandler(F)}_processHighlight(){const t=this._getHighlights();this._graphicsView?.setHighlight(t)}};t([h()],j.prototype,"_graphics",void 0),t([h()],j.prototype,"_routeItems",null),t([h()],j.prototype,"_interaction",void 0),t([h()],j.prototype,"interactive",void 0),t([h({readOnly:!0})],j.prototype,"selectedNetworkFeatures",null),j=t([p("esri.views.2d.layers.RouteLayerView2D")],j);const P=j;export{P as default};
5
+ import{__decorate as t}from"tslib";import{isSome as e}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import i from"../../../core/CollectionFlattener.js";import{makeHandle as s}from"../../../core/handleUtils.js";import{watch as a,syncAndInitial as o,initial as n}from"../../../core/reactiveUtils.js";import{property as h,subclass as p}from"../../../core/accessorSupport/decorators.js";import c from"../../../rest/support/DirectionLine.js";import l from"../../../rest/support/DirectionPoint.js";import u from"../../../rest/support/PointBarrier.js";import d from"../../../rest/support/PolygonBarrier.js";import _ from"../../../rest/support/PolylineBarrier.js";import g from"../../../rest/support/RouteInfo.js";import m from"../../../rest/support/Stop.js";import{LayerView2DMixin as w}from"./LayerView2D.js";import y from"./graphics/GraphicContainer.js";import f from"./graphics/GraphicsView2D.js";import k from"../../layers/LayerView.js";import{getHighlightName as v}from"../../support/highlightOptionsUtils.js";const M=["route-info","direction-line","direction-point","polygon-barrier","polyline-barrier","point-barrier","stop"],F={graphic:null,property:null,oldValue:null,newValue:null};function V(t){return t instanceof c||t instanceof l||t instanceof u||t instanceof d||t instanceof _||t instanceof g||t instanceof m}function G(t){return r.isCollection(t)&&t.length&&V(t.at(0))}function I(t){return Array.isArray(t)&&t.length>0&&V(t[0])}let j=class extends(w(k)){constructor(){super(...arguments),this._graphics=new r,this._networkFeatureMap=new Map,this._networkGraphicMap=new Map,this._interaction=null,this._loadInteractionPromise=null,this.interactive=!1}get _routeItems(){return new i({getCollections:()=>this.layer&&!this.destroyed?[this.layer.routeInfo?new r([this.layer.routeInfo]):null,this.layer.directionLines,this.layer.directionPoints,this.layer.polygonBarriers,this.layer.polylineBarriers,this.layer.pointBarriers,this.layer.stops]:[]})}initialize(){this.addHandles(a(()=>{const{interactive:t,suspended:e}=this;return{interactive:t,suspended:e}},({interactive:t,suspended:e})=>{const r=t&&!e;r&&this._getInteractionLoadPromise().then(t=>{t.enabled=this.interactive&&!this.suspended}),this._interaction&&(this._interaction.enabled=r)},o)),this._updatingHandles.addOnCollectionChange(()=>this._routeItems,t=>this._routeItemsChanged(t),n)}destroy(){this._networkFeatureMap.clear(),this._networkGraphicMap.clear(),this._graphics.removeAll(),this._get("_routeItems")?.destroy()}attach(){this._createGraphicsView()}detach(){this._destroyGraphicsView(),this._interaction?.enabled&&(this._interaction.enabled=!1)}get selectedNetworkFeatures(){return this._interaction?.selectedNetworkFeatures??null}async create(t){if(!this.interactive)return;return(await this._getInteractionLoadPromise()).create(t)}async fetchPopupFeaturesAtLocation(t,e){return this._graphicsView.hitTest(t).filter(({popupTemplate:t})=>!!t)}highlight(t,r){let i;i=V(t)?[this._getNetworkFeatureUid(t)]:I(t)?t.map(t=>this._getNetworkFeatureUid(t)):G(t)?t.map(t=>this._getNetworkFeatureUid(t)).toArray():[t.uid];const a=i.filter(e);if(!a.length)return s();const o=v(r);return this._addHighlights(a,o),s(()=>this._removeHighlights(a,o))}async hitTest(t,r){if(this.suspended)return null;const i=this._graphicsView.hitTest(t).filter(e).map(t=>this._networkGraphicMap.get(t));if(!i.length)return null;const{layer:s}=this;return i.reverse().map(e=>({type:"route",layer:s,mapPoint:t,networkFeature:e}))}isUpdating(){return this._graphicsView.updating}moveEnd(){}remove(t){this._interaction?.remove(t)}update(t){this._graphicsView.processUpdate(t)}viewChange(){this._graphicsView.viewChange()}_createGraphic(t){const e=t.toGraphic();return e.layer=this.layer,e.sourceLayer=this.layer,e}_createGraphicsView(){const t=this.view,e=()=>this.requestUpdate(),r=new y(t.featuresTilingScheme);this._graphicsView=new f({container:r,graphics:this._graphics,requestUpdateCallback:e,view:t}),this.container.addChild(r),this._processHighlight()}_destroyGraphicsView(){this.container.removeChild(this._graphicsView.container),this._graphicsView.destroy()}_getDrawOrder(t){const e=this._networkGraphicMap.get(t);return M.indexOf(e.type)}_getInteractionLoadPromise(){return this._loadInteractionPromise||(this._loadInteractionPromise=this._loadInteraction(),this._updatingHandles.addPromise(this._loadInteractionPromise)),this._loadInteractionPromise}_getNetworkFeatureUid(t){return this._networkFeatureMap.has(t)?this._networkFeatureMap.get(t).uid:null}async _loadInteraction(){const{layer:t,view:e}=this,{RouteLayerInteraction:r}=await import("./support/RouteLayerInteraction.js");return this._interaction=new r({view:e,layer:t}),this._interaction}_routeItemsChanged(t){if(t.removed.length){this._graphics.removeMany(t.removed.map(t=>{const e=this._networkFeatureMap.get(t);return this._networkFeatureMap.delete(t),this._networkGraphicMap.delete(e),e}));for(const e of t.removed)this.removeHandles(e)}if(t.added.length){this._graphics.addMany(t.added.map(t=>{const e=this._createGraphic(t);return null==e.symbol?null:(this._networkFeatureMap.set(t,e),this._networkGraphicMap.set(e,t),e)}).filter(e));for(const e of t.added)this.addHandles([a(()=>e.geometry,(t,r)=>{this._updateGraphic(e,"geometry",t,r)}),a(()=>e.symbol,(t,r)=>{this._updateGraphic(e,"symbol",t,r)}),a(()=>e.popupTemplate,t=>{this._networkFeatureMap.has(e)&&(this._networkFeatureMap.get(e).popupTemplate=t)}),a(()=>e.toGraphic().attributes,t=>{this._networkFeatureMap.has(e)&&(this._networkFeatureMap.get(e).attributes=t)})],e);this._graphics.sort((t,e)=>this._getDrawOrder(t)-this._getDrawOrder(e))}}_updateGraphic(t,e,r,i){if(!this._networkFeatureMap.has(t)){const e=this._createGraphic(t);return this._networkFeatureMap.set(t,e),this._networkGraphicMap.set(e,t),void this._graphics.add(e)}const s=this._networkFeatureMap.get(t);s[e]=r,F.graphic=s,F.property=e,F.oldValue=i,F.newValue=r,this._graphicsView.graphicUpdateHandler(F)}_processHighlight(){const t=this._getHighlights();this._graphicsView?.setHighlight(t)}};t([h()],j.prototype,"_routeItems",null),t([h()],j.prototype,"_interaction",void 0),t([h()],j.prototype,"interactive",void 0),t([h({readOnly:!0})],j.prototype,"selectedNetworkFeatures",null),j=t([p("esri.views.2d.layers.RouteLayerView2D")],j);const P=j;export{P as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import r from"../../../../core/Accessor.js";import{destroyHandle as t}from"../../../../core/handleUtils.js";import{destroyMaybe as o}from"../../../../core/maybe.js";import{watch as i,initial as s}from"../../../../core/reactiveUtils.js";import{property as a,subclass as l}from"../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as n}from"../../../../core/support/UpdatingHandles.js";import p from"../../../../layers/GraphicsLayer.js";import c from"../../../../rest/support/PointBarrier.js";import h from"../../../../rest/support/PolygonBarrier.js";import y from"../../../../rest/support/PolylineBarrier.js";import d from"../../../../rest/support/Stop.js";import m from"../../../../widgets/Sketch/SketchViewModel.js";function g(e,r){e.networkFeature=r}function u(e){const r=w(e.graphic);return{...e,networkFeature:r}}function b(e){const r=e.graphics.map(e=>w(e));return{...e,networkFeatures:r}}function w(e){return e.networkFeature}function k(e){return"point"===e?.type||"polyline"===e?.type||"polygon"===e?.type}let _=class extends r{constructor(e){super(e),this._createMode=null,this._graphicsLayer=new p({internal:!0,listMode:"hide",title:"RouteLayerInteraction layer"}),this._updatingHandles=new n,this.enabled=!0,this._handleSketchViewModelEvents=async e=>{switch(e.type){case"update":switch(e.state){case"active":case"complete":for(const r of e.graphics){w(r).geometry=k(r.geometry)?r.geometry.clone():null}}break;case"undo":case"redo":break;case"delete":for(const r of e.graphics){const e=w(r);this._removeNetworkFeature(e)}break;case"create":if(e.graphic&&"complete"===e.state&&this._createMode){const r=e.graphic.geometry?.clone(),t=e.graphic.symbol?.clone();if(!r)break;switch(this._createMode){case"stop":{if("point"!==r.type)break;const{stops:t}=this.layer;if(t.length>0&&t.every(({geometry:e})=>!e)){t.at(0).geometry=r;break}if(t.length>1&&t.filter((e,r)=>0!==r).every(({geometry:e})=>!e)){t.at(1).geometry=r;break}const o=new d({geometry:r});t.add(o),g(e.graphic,o);break}case"point-barrier":{if("point"!==r.type)break;const o=new c({geometry:r,symbol:t});this.layer.pointBarriers.add(o),g(e.graphic,o);break}case"polyline-barrier":{if("polyline"!==r.type)break;const o=new y({geometry:r,symbol:t});this.layer.polylineBarriers.add(o),g(e.graphic,o);break}case"polygon-barrier":{if("polygon"!==r.type)break;const o=new h({geometry:r,symbol:t});this.layer.polygonBarriers.add(o),g(e.graphic,o);break}}}}(await this.view.whenLayerView(this.layer)).emit(e.type,"create"===e.type?u(e):b(e))}}initialize(){this._sketchViewModel=new m({layer:this._graphicsLayer,view:this.view}),this.addHandles([i(()=>this.enabled,e=>{e?this._activate():this._deactivate()},s),i(()=>{const{stops:e,pointBarriers:r,polylineBarriers:t,polygonBarriers:o}=this.layer;return{stops:e,pointBarriers:r,polylineBarriers:t,polygonBarriers:o}},()=>{this.enabled&&this._loadClonedGraphics()}),this._sketchViewModel.on(["create","delete","redo","undo","update"],this._handleSketchViewModelEvents),t(this._updatingHandles)])}destroy(){this.view.map.remove(this._graphicsLayer),this._graphicsLayer.removeAll(),this._graphicsLayer=o(this._graphicsLayer),this._sketchViewModel=o(this._sketchViewModel)}get selectedNetworkFeatures(){return this._sketchViewModel.updateGraphics.map(e=>w(e))}get updating(){return this._updatingHandles.updating}create(e){switch(this._createMode=e,e){case"stop":this.layer.defaultSymbols.stops?.unlocated&&(this._sketchViewModel.pointSymbol=this.layer.defaultSymbols.stops.unlocated.clone());break;case"point-barrier":this.layer.defaultSymbols.pointBarriers&&(this._sketchViewModel.pointSymbol=this.layer.defaultSymbols.pointBarriers.clone());break;case"polyline-barrier":this.layer.defaultSymbols.polylineBarriers&&(this._sketchViewModel.polylineSymbol=this.layer.defaultSymbols.polylineBarriers.clone());break;case"polygon-barrier":this.layer.defaultSymbols.polygonBarriers&&(this._sketchViewModel.polygonSymbol=this.layer.defaultSymbols.polygonBarriers.clone())}switch(e){case"stop":case"point-barrier":return this._sketchViewModel.create("point");case"polyline-barrier":return this._sketchViewModel.create("polyline");case"polygon-barrier":return this._sketchViewModel.create("polygon")}}remove(e){const r=this._graphicsLayer.graphics.find(r=>w(r)===e);r&&this._graphicsLayer.remove(r),this._removeNetworkFeature(e)}_activate(){this._loadClonedGraphics(),this.view.map.add(this._graphicsLayer)}_deactivate(){this._sketchViewModel.cancel(),this.view.map?.remove(this._graphicsLayer),this._graphicsLayer.removeAll()}_loadClonedGraphics(){const e=[this.layer.stops,this.layer.pointBarriers,this.layer.polylineBarriers,this.layer.polygonBarriers].flatMap(e=>e.toArray().map(e=>{const r=e.toGraphic();return r.networkFeature=e,r}));this._graphicsLayer.removeAll().addMany(e)}_removeNetworkFeature(e){switch(e.type){case"stop":this.layer.stops.remove(e);break;case"point-barrier":this.layer.pointBarriers.remove(e);break;case"polyline-barrier":this.layer.polylineBarriers.remove(e);break;case"polygon-barrier":this.layer.polygonBarriers.remove(e)}}};e([a()],_.prototype,"enabled",void 0),e([a({constructOnly:!0})],_.prototype,"layer",void 0),e([a({readOnly:!0})],_.prototype,"selectedNetworkFeatures",null),e([a()],_.prototype,"updating",null),e([a({constructOnly:!0})],_.prototype,"view",void 0),_=e([l("esri.views.2d.layers.support.RouteLayerInteraction")],_);export{_ as RouteLayerInteraction};
5
+ import{__decorate as e}from"tslib";import r from"../../../../core/Accessor.js";import{destroyHandle as t}from"../../../../core/handleUtils.js";import{watch as o,initial as s}from"../../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as l}from"../../../../core/support/UpdatingHandles.js";import n from"../../../../layers/GraphicsLayer.js";import p from"../../../../rest/support/PointBarrier.js";import c from"../../../../rest/support/PolygonBarrier.js";import h from"../../../../rest/support/PolylineBarrier.js";import y from"../../../../rest/support/Stop.js";import d from"../../../../widgets/Sketch/SketchViewModel.js";function m(e,r){e.networkFeature=r}function g(e){const r=b(e.graphic);return{...e,networkFeature:r}}function u(e){const r=e.graphics.map(e=>b(e));return{...e,networkFeatures:r}}function b(e){return e.networkFeature}function w(e){return"point"===e?.type||"polyline"===e?.type||"polygon"===e?.type}let k=class extends r{constructor(e){super(e),this._createMode=null,this._graphicsLayer=new n({internal:!0,listMode:"hide"}),this._sketchViewModel=new d({layer:this._graphicsLayer}),this._updatingHandles=new l,this.enabled=!0,this._handleSketchViewModelEvents=async e=>{switch(e.type){case"update":switch(e.state){case"active":case"complete":for(const r of e.graphics){b(r).geometry=w(r.geometry)?r.geometry.clone():null}}break;case"undo":case"redo":break;case"delete":for(const r of e.graphics){const e=b(r);this._removeNetworkFeature(e)}break;case"create":if(e.graphic&&"complete"===e.state&&this._createMode){const r=e.graphic.geometry?.clone(),t=e.graphic.symbol?.clone();if(!r)break;switch(this._createMode){case"stop":{if("point"!==r.type)break;const{stops:t}=this.layer;if(t.length>0&&t.every(({geometry:e})=>!e)){t.at(0).geometry=r;break}if(t.length>1&&t.filter((e,r)=>0!==r).every(({geometry:e})=>!e)){t.at(1).geometry=r;break}const o=new y({geometry:r});t.add(o),m(e.graphic,o);break}case"point-barrier":{if("point"!==r.type)break;const o=new p({geometry:r,symbol:t});this.layer.pointBarriers.add(o),m(e.graphic,o);break}case"polyline-barrier":{if("polyline"!==r.type)break;const o=new h({geometry:r,symbol:t});this.layer.polylineBarriers.add(o),m(e.graphic,o);break}case"polygon-barrier":{if("polygon"!==r.type)break;const o=new c({geometry:r,symbol:t});this.layer.polygonBarriers.add(o),m(e.graphic,o);break}}}}(await this.view.whenLayerView(this.layer)).emit(e.type,"create"===e.type?g(e):u(e))}}initialize(){this._sketchViewModel.view=this.view,this.addHandles([o(()=>this.enabled,e=>{e?this._activate():this._deactivate()},s),o(()=>{const{stops:e,pointBarriers:r,polylineBarriers:t,polygonBarriers:o}=this.layer;return{stops:e,pointBarriers:r,polylineBarriers:t,polygonBarriers:o}},()=>{this.enabled&&this._loadClonedGraphics()}),this._sketchViewModel.on(["create","delete","redo","undo","update"],this._handleSketchViewModelEvents),t(this._updatingHandles)])}destroy(){this._graphicsLayer.removeFromParent(),this._graphicsLayer.graphics.destroyAll(),this._graphicsLayer.destroy(),this._sketchViewModel.destroy(),this._updatingHandles.destroy()}get selectedNetworkFeatures(){return this._sketchViewModel.updateGraphics.map(e=>b(e))}get updating(){return this._updatingHandles.updating}create(e){switch(this._createMode=e,e){case"stop":this.layer.defaultSymbols.stops?.unlocated&&(this._sketchViewModel.pointSymbol=this.layer.defaultSymbols.stops.unlocated.clone());break;case"point-barrier":this.layer.defaultSymbols.pointBarriers&&(this._sketchViewModel.pointSymbol=this.layer.defaultSymbols.pointBarriers.clone());break;case"polyline-barrier":this.layer.defaultSymbols.polylineBarriers&&(this._sketchViewModel.polylineSymbol=this.layer.defaultSymbols.polylineBarriers.clone());break;case"polygon-barrier":this.layer.defaultSymbols.polygonBarriers&&(this._sketchViewModel.polygonSymbol=this.layer.defaultSymbols.polygonBarriers.clone())}switch(e){case"stop":case"point-barrier":return this._sketchViewModel.create("point");case"polyline-barrier":return this._sketchViewModel.create("polyline");case"polygon-barrier":return this._sketchViewModel.create("polygon")}}remove(e){const r=this._graphicsLayer.graphics.find(r=>b(r)===e);r&&this._graphicsLayer.remove(r),this._removeNetworkFeature(e)}_activate(){this._loadClonedGraphics(),this.view.map.add(this._graphicsLayer)}_deactivate(){this._sketchViewModel.cancel(),this.view.map?.remove(this._graphicsLayer),this._graphicsLayer.removeAll()}_loadClonedGraphics(){const e=[this.layer.stops,this.layer.pointBarriers,this.layer.polylineBarriers,this.layer.polygonBarriers].flatMap(e=>e.toArray().map(e=>{const r=e.toGraphic();return r.networkFeature=e,r}));this._graphicsLayer.removeAll().addMany(e)}_removeNetworkFeature(e){switch(e.type){case"stop":this.layer.stops.remove(e);break;case"point-barrier":this.layer.pointBarriers.remove(e);break;case"polyline-barrier":this.layer.polylineBarriers.remove(e);break;case"polygon-barrier":this.layer.polygonBarriers.remove(e)}}};e([i()],k.prototype,"enabled",void 0),e([i({constructOnly:!0})],k.prototype,"layer",void 0),e([i({readOnly:!0})],k.prototype,"selectedNetworkFeatures",null),e([i()],k.prototype,"updating",null),e([i({constructOnly:!0})],k.prototype,"view",void 0),k=e([a("esri.views.2d.layers.support.RouteLayerInteraction")],k);export{k as RouteLayerInteraction};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{JSONMap as t}from"../../../../core/jsonMap.js";import e from"../../engine/webgl/effects/highlight/HighlightGradient.js";import{MultiHighlightGradient as i}from"../../engine/webgl/effects/highlight/MultiHighlightGradient.js";import{getFeaturePipelineState as n}from"../../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";const s=new t({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch",mesh:"mesh"});function r(t){return s.toJSON(t)}function l(t,e,i){const n=[],s=[];let r=0,l=0;for(const o of t){const t=l;let a=o[0][0],h=o[0][1];n[l++]=a,n[l++]=h;let p=0;for(let e=1;e<o.length;++e){const t=a,i=h;a=o[e][0],h=o[e][1],p+=h*t-a*i,n[l++]=a,n[l++]=h}e(p/2),p>0?(t-r>0&&(i(r,t,n,s),r=t),s.length=0):p<0&&t-r>0?s.push(.5*(t-r)):l=t}l-r>0&&i(r,l,n,s)}function o(t){const{bandCount:e,attributeTable:i,colormap:n,pixelType:s}=t.raster.rasterInfo;return 1===e&&(null!=i||null!=n||"u8"===s||"s8"===s)}function a(t,n){return null==n?(t?.destroy(),null):("single"===t?.type&&Array.isArray(n)&&(t.destroy(),t=null),"multi"!==t?.type||Array.isArray(n)||(t.destroy(),t=null),t||(t=Array.isArray(n)?new i:new e),Array.isArray(n)?"multi"===t.type&&t.setHighlightOptions(n):"single"===t.type&&t.setHighlightOptions(n),t)}function h(t,e,i,s){const{painter:r,highlightGradient:l}=t,{highlight:o}=r.effects;if(!l)return;const a=t.passOptions,h=l.getReasonsWithGradients();for(let p=0;p<h.length;p++){const l={...t,passOptions:{type:"highlight",activeGradient:null!=s?h[s].activeGradient:h[p].activeGradient,activeReasons:h[p].activeReasons,stepType:"burn",highlightAll:e}};if(o.bind(l),i(l),p<h.length-1){let n=0;for(let t=p+1;t<h.length;t++)n|=h[t].activeReasons;i({...t,passOptions:{type:"highlight",activeGradient:null!=s?h[s].activeGradient:h[p].activeGradient,activeReasons:n,stepType:"clear",highlightAll:e}})}const a={...t,passOptions:{type:"highlight",activeGradient:null!=s?h[s].activeGradient:h[p].activeGradient,activeReasons:h[p].activeReasons,stepType:"draw",highlightAll:e}};r.setPipelineState(n(t)),r.updatePipelineState(t.context),o.draw(a),o.unbind()}t.passOptions=a}export{l as analyzeRings,o as canUseMajorityInterpolationOnDataSource,a as createOrReuseHighlightGradient,h as renderHighlight,r as toJSONGeometryType};
5
+ import{isArrayWithReadonly as t}from"../../../../core/arrayUtils.js";import{JSONMap as e}from"../../../../core/jsonMap.js";import i from"../../engine/webgl/effects/highlight/HighlightGradient.js";import{MultiHighlightGradient as n}from"../../engine/webgl/effects/highlight/MultiHighlightGradient.js";import{getFeaturePipelineState as s}from"../../engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js";const r=new e({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch",mesh:"mesh"});function l(t){return r.toJSON(t)}function o(t,e,i){const n=[],s=[];let r=0,l=0;for(const o of t){const t=l;let a=o[0][0],h=o[0][1];n[l++]=a,n[l++]=h;let p=0;for(let e=1;e<o.length;++e){const t=a,i=h;a=o[e][0],h=o[e][1],p+=h*t-a*i,n[l++]=a,n[l++]=h}e(p/2),p>0?(t-r>0&&(i(r,t,n,s),r=t),s.length=0):p<0&&t-r>0?s.push(.5*(t-r)):l=t}l-r>0&&i(r,l,n,s)}function a(t){const{bandCount:e,attributeTable:i,colormap:n,pixelType:s}=t.raster.rasterInfo;return 1===e&&(null!=i||null!=n||"u8"===s||"s8"===s)}function h(e,s){return null==s?(e?.destroy(),null):("single"===e?.type&&Array.isArray(s)&&(e.destroy(),e=null),"multi"!==e?.type||Array.isArray(s)||(e.destroy(),e=null),e||(e=Array.isArray(s)?new n:new i),t(s)?"multi"===e.type&&e.setHighlightOptions(s):"single"===e.type&&e.setHighlightOptions(s),e)}function p(t,e,i,n){const{painter:r,highlightGradient:l}=t,{highlight:o}=r.effects;if(!l)return;const a=t.passOptions,h=l.getReasonsWithGradients();for(let p=0;p<h.length;p++){const l={...t,passOptions:{type:"highlight",activeGradient:null!=n?h[n].activeGradient:h[p].activeGradient,activeReasons:h[p].activeReasons,stepType:"burn",highlightAll:e}};if(o.bind(l),i(l),p<h.length-1){let s=0;for(let t=p+1;t<h.length;t++)s|=h[t].activeReasons;i({...t,passOptions:{type:"highlight",activeGradient:null!=n?h[n].activeGradient:h[p].activeGradient,activeReasons:s,stepType:"clear",highlightAll:e}})}const a={...t,passOptions:{type:"highlight",activeGradient:null!=n?h[n].activeGradient:h[p].activeGradient,activeReasons:h[p].activeReasons,stepType:"draw",highlightAll:e}};r.setPipelineState(s(t)),r.updatePipelineState(t.context),o.draw(a),o.unbind()}t.passOptions=a}export{o as analyzeRings,a as canUseMajorityInterpolationOnDataSource,h as createOrReuseHighlightGradient,p as renderHighlight,l as toJSONGeometryType};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{d as e,s as r,j as t,e as n,i,g as o,b as s}from"../../../chunks/vec32.js";import{create as a}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as c}from"../../../geometry/ellipsoidUtils.js";import{containsPoint as l}from"../../../geometry/support/aaBoundingRect.js";import d from"../webgl/RenderCamera.js";import{DepthRange as g}from"../webgl-engine/lib/DepthRange.js";import{Intersector as u}from"../webgl-engine/lib/Intersector.js";function f(e,r,t,n){return null!=e.renderCoordsHelper.fromRenderCoords(r.eye,j,n)&&l(t,j)}function m(e,r){return e.elevationProvider?e.elevationProvider.getElevation(r[0],r[1],r[2],e.renderCoordsHelper.spatialReference,"ground")??0:0}function p(o,s,a,c){const l=o.state.camera.clone();s&&a&&c&&(l.eye=s,l.center=a,l.up=c),v(o,l.ray,R)||e(R,l.center);const d=o.state.constraints,g=d.minimumPoiDistance;if(r(l.eye,R)<g){const r=d.collision.enabled;e(C,l.viewForward),t(C,C,g),r?l.eye=n(j,R,C):i(R,l.eye,C);const s=o.renderCoordsHelper,a=s.getAltitude(l.eye),c=d.collision.elevationMargin;r&&a<c&&(n(C,R,l.eye),l.eye=s.setAltitude(j,c,l.eye),i(R,l.eye,C))}return l.center=R,l}function y(e,t,n){if(!e.state.isGlobal||!e.stateManager.constraintsManager)return!1;const i=m(e,t),o=e.stateManager.constraintsManager.nearFarHeuristic;let s=H.get(e);void 0===s&&(s=new d,H.set(e,s)),s.eye=t,s.center=n;const{far:a}=o.compute(s,e.renderDataExtent,g.Infinite,i),c=a*a;return r(t,n)>c}function v(e,r,t){let n=w[e.viewingMode];n||(n=new u(e.state.viewingMode),n.options.backfacesTerrain=!e.state.isGlobal,n.options.invisibleTerrain=!0,w[e.viewingMode]=n);const{isGlobal:i}=e.state;return!(!e.sceneIntersectionHelper.intersectRay(r,n,t)||y(e,r.origin,t))||(!(!e.renderCoordsHelper.intersectManifold(r,0,t)||y(e,r.origin,t))||!!i&&b(r,t,c(e.spatialReference).radius))}function b(e,r,n){const a=o(e.origin,e.origin)-n*n,c=a>0?Math.sqrt(a)/3:1;return t(r,e.direction,c/s(e.direction)),i(r,r,e.origin),!0}let w={};function M(){w={}}const j=a(),R=a(),C=a(),H=new WeakMap;export{p as cameraOnContentAlongViewDirection,M as cleanupIntersectionUtils,f as eyeWithinExtent,m as surfaceElevationBelowRenderLocation};
5
+ import{d as e,s as r,j as t,e as n,i,g as o,b as s}from"../../../chunks/vec32.js";import{create as a}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as c}from"../../../geometry/ellipsoidUtils.js";import{containsPoint as l}from"../../../geometry/support/aaBoundingRect.js";import{Intersector as d}from"../webgl-engine/lib/Intersector.js";function u(e,r,t,n){return null!=e.renderCoordsHelper.fromRenderCoords(r.eye,M,n)&&l(t,M)}function g(e,r){return e.elevationProvider?e.elevationProvider.getElevation(r[0],r[1],r[2],e.renderCoordsHelper.spatialReference,"ground")??0:0}function f(o,s,a,c){const l=o.state.camera.clone();s&&a&&c&&(l.eye=s,l.center=a,l.up=c),m(o,l.ray,w)||e(w,l.center);const d=o.state.constraints,u=d.minimumPoiDistance;if(r(l.eye,w)<u){const r=d.collision.enabled;e(j,l.viewForward),t(j,j,u),r?l.eye=n(M,w,j):i(w,l.eye,j);const s=o.renderCoordsHelper,a=s.getAltitude(l.eye),c=d.collision.elevationMargin;r&&a<c&&(n(j,w,l.eye),l.eye=s.setAltitude(M,c,l.eye),i(w,l.eye,j))}return l.center=w,l}function p(e,t,n){if(!e.state.isGlobal||!e.stateManager.constraintsManager)return!1;const i=g(e,t),o=e.stateManager.constraintsManager.nearFarHeuristic.computeFarDistance(t,i),s=o*o;return r(t,n)>s}function m(e,r,t){let n=v[e.viewingMode];n||(n=new d(e.state.viewingMode),n.options.backfacesTerrain=!e.state.isGlobal,n.options.invisibleTerrain=!0,v[e.viewingMode]=n);const{isGlobal:i}=e.state;return!(!e.sceneIntersectionHelper.intersectRay(r,n,t)||p(e,r.origin,t))||(!(!e.renderCoordsHelper.intersectManifold(r,0,t)||p(e,r.origin,t))||!!i&&y(r,t,c(e.spatialReference).radius))}function y(e,r,n){const a=o(e.origin,e.origin)-n*n,c=a>0?Math.sqrt(a)/3:1;return t(r,e.direction,c/s(e.direction)),i(r,r,e.origin),!0}let v={};function b(){v={}}const M=a(),w=a(),j=a();export{f as cameraOnContentAlongViewDirection,b as cleanupIntersectionUtils,u as eyeWithinExtent,g as surfaceElevationBelowRenderLocation};
@@ -2,7 +2,7 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{create as e}from"../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{earth as r}from"../../../geometry/support/Ellipsoid.js";import{Float2PassUniform as a}from"../webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as s}from"../webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as i}from"../webgl-engine/core/shaderModules/glsl.js";import{NoParameters as o}from"../../webgl/NoParameters.js";class c extends o{constructor(){super(...arguments),this.radii=e(),this.heightParameters=t()}}function n(e){e.uniforms.add(new a("radii",e=>e.radii),new s("heightParameters",e=>e.heightParameters)),e.constants.add("scaleHeight","float",r.scaleHeight*r.atmosphereHeight),e.code.add(i`float chapmanApproximation(float thickness, float height, float cosZenith) {
5
+ import{create as e}from"../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{earth as r}from"../../../geometry/support/Ellipsoid.js";import{Float2PassUniform as a}from"../webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float3BindUniform as s}from"../webgl-engine/core/shaderModules/Float3BindUniform.js";import{Float4PassUniform as i}from"../webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as o}from"../webgl-engine/core/shaderModules/glsl.js";import{NoParameters as n}from"../../webgl/NoParameters.js";class c extends n{constructor(){super(...arguments),this.radii=e(),this.heightParameters=t()}}function h(e){e.code.add(o`float chapmanApproximation(float thickness, float height, float cosZenith) {
6
6
  float c = sqrt(thickness + height);
7
7
  float cExpH = c * exp(-height);
8
8
  if (cosZenith >= 0.0) {
@@ -12,26 +12,26 @@ float x0 = sqrt(1.0 - cosZenith * cosZenith) * (thickness + height);
12
12
  float c0 = sqrt(x0);
13
13
  return 2.0 * c0 * exp(thickness - x0) - cExpH / (1.0 - c * cosZenith);
14
14
  }
15
- }`),e.code.add(i`float getOpticalDepth(vec3 position, vec3 dir, float h) {
15
+ }`),e.constants.add("scaleHeight","float",r.scaleHeight*r.atmosphereHeight).uniforms.add(new a("radii",e=>e.radii)).code.add(o`float getOpticalDepth(vec3 position, vec3 dir, float h) {
16
16
  return scaleHeight * chapmanApproximation(radii[0] / scaleHeight, h, dot(normalize(position), dir));
17
- }`),e.code.add(i`vec4 planetIntersect(vec3 cameraPos, vec3 rayDir) {
17
+ }`),e.uniforms.add(new i("heightParameters",e=>e.heightParameters),new s("cameraPosition",e=>e.camera.eye)).code.add(o`vec4 planetIntersect(vec3 rayDir) {
18
18
  float reducedPlanetRadius = radii[0] - 20000.0;
19
19
  float rayPlanetDistance = heightParameters[1] - reducedPlanetRadius * reducedPlanetRadius;
20
- vec2 rayPlanetIntersect = sphereIntersect(cameraPos, rayDir, rayPlanetDistance);
21
- vec2 rayAtmosphereIntersect = sphereIntersect(cameraPos, rayDir, heightParameters[2]);
20
+ vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, rayDir, rayPlanetDistance);
21
+ vec2 rayAtmosphereIntersect = sphereIntersect(cameraPosition, rayDir, heightParameters[2]);
22
22
  bool hitsAtmosphere = (rayAtmosphereIntersect.x <= rayAtmosphereIntersect.y) && rayAtmosphereIntersect.x > 0.0;
23
23
  bool insideAtmosphere = heightParameters[0] < radii[1];
24
- if (!(hitsAtmosphere || insideAtmosphere)) {
24
+ if (!hitsAtmosphere && !insideAtmosphere) {
25
25
  return vec4(1.0, 0.0, 0.0, 0.0);
26
26
  }
27
27
  bool hitsPlanet = (rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.x > 0.0;
28
28
  float start = insideAtmosphere ? 0.0 : rayAtmosphereIntersect.x;
29
29
  if (heightParameters[0] < reducedPlanetRadius) {
30
- if (dot(rayDir, normalize(cameraPos)) < -0.025) {
30
+ if (dot(rayDir, normalize(cameraPosition)) < -0.025) {
31
31
  return vec4(1.0, 0.0, 0.0, 0.0);
32
32
  }
33
33
  start = rayPlanetIntersect.y;
34
34
  }
35
35
  float end = hitsPlanet ? rayPlanetIntersect.x : rayAtmosphereIntersect.y;
36
36
  return vec4(0.0, hitsPlanet ? 1.0 : 0.0, start, end);
37
- }`)}export{n as ChapmanApproximation,c as ChapmanApproximationParameters};
37
+ }`)}export{h as ChapmanApproximation,c as ChapmanApproximationParameters};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import"./ChapmanRaymarching.glsl.js";import"../webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import"../webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import"../webgl-engine/core/shaderModules/Float3PassUniform.js";import"../webgl-engine/core/shaderModules/FloatPassUniform.js";import"../webgl-engine/core/shaderModules/glsl.js";import"../webgl-engine/core/shaderModules/Texture2DBindUniform.js";import"../webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import"../webgl-engine/shaders/SphereIntersect.glsl.js";import"../webgl-engine/shaders/ToneMapping.glsl.js";import"../../webgl/ShaderBuilder.js";export{b as build}from"../../../chunks/ChapmanAtmosphere.glsl.js";
5
+ import"./ChapmanRaymarching.glsl.js";import"../webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import"../webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import"../webgl-engine/core/shaderModules/Float2PassUniform.js";import"../webgl-engine/core/shaderModules/Float3BindUniform.js";import"../webgl-engine/core/shaderModules/Float3PassUniform.js";import"../webgl-engine/core/shaderModules/Float4PassUniform.js";import"../webgl-engine/core/shaderModules/FloatPassUniform.js";import"../webgl-engine/core/shaderModules/glsl.js";import"../webgl-engine/core/shaderModules/Texture2DBindUniform.js";import"../webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import"../webgl-engine/shaders/SphereIntersect.glsl.js";import"../webgl-engine/shaders/ToneMapping.glsl.js";import"../../webgl/ShaderBuilder.js";export{b as build}from"../../../chunks/ChapmanAtmosphere.glsl.js";
@@ -2,37 +2,37 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{betaRayleigh as e,betaCombined as a,betaMie as t}from"./atmosphereUtils.js";import{ChapmanApproximation as i}from"./ChapmanApproximation.glsl.js";import{Float3BindUniform as l}from"../webgl-engine/core/shaderModules/Float3BindUniform.js";import{If as r,glsl as o}from"../webgl-engine/core/shaderModules/glsl.js";function s(s,c){s.include(i);const p=6;s.uniforms.add(new l("cameraPosition",e=>e.camera.eye)),s.constants.add("betaRayleigh","vec3",e),s.constants.add("betaCombined","vec3",a),s.constants.add("betaMie","float",t),s.code.add(o`
6
- vec3 raymarchAtmosphere(vec3 cameraPos, vec3 rayDir, vec3 lightDir, float terrainDepth) {
7
- vec4 ray = planetIntersect(cameraPos, rayDir);
5
+ import{betaRayleigh as e,betaCombined as t,betaMie as a}from"./atmosphereUtils.js";import{ChapmanApproximation as i}from"./ChapmanApproximation.glsl.js";import{Float3BindUniform as l}from"../webgl-engine/core/shaderModules/Float3BindUniform.js";import{If as r,glsl as s}from"../webgl-engine/core/shaderModules/glsl.js";function o(o,p){o.include(i),o.constants.add("betaRayleigh","vec3",e),o.constants.add("betaCombined","vec3",t),o.constants.add("betaMie","float",a),o.constants.add("steps","int",6),o.uniforms.add(new l("cameraPosition",e=>e.camera.eye)).code.add(s`
6
+ vec3 raymarchAtmosphere(vec3 rayDir, vec3 lightDir, float terrainDepth) {
7
+ vec4 ray = planetIntersect(rayDir);
8
8
  if(ray.x == 1.0) {
9
9
  return vec3(0);
10
10
  }
11
- ${r(c,"if (terrainDepth != -1.0) { ray.w = terrainDepth; }")}
11
+ ${r(p,"if (terrainDepth != -1.0) { ray.w = terrainDepth; }")}
12
12
 
13
- vec3 samplePoint = cameraPos + rayDir * ray.w;
13
+ vec3 samplePoint = cameraPosition + rayDir * ray.w;
14
14
  float multiplier = ray.y == 1.0 ? -1.0 : 1.0;
15
15
 
16
16
  vec3 scattering = vec3(0);
17
17
  float scaleFract = (length(samplePoint) - radii[0]) / scaleHeight;
18
18
  float lastOpticalDepth = getOpticalDepth(samplePoint, rayDir, scaleFract);
19
- float stepSize = (ray.w - ray.z) / ${o.float(p)};
19
+ float stepSize = (ray.w - ray.z) / float(steps);
20
20
 
21
- for (int i = 0; i < ${o.int(p)}; i++) {
21
+ for (int i = 0; i < steps; i++) {
22
22
  samplePoint -= stepSize * rayDir;
23
23
  scaleFract = (length(samplePoint) - radii[0]) / scaleHeight;
24
24
  float opticalDepth = multiplier * getOpticalDepth(samplePoint, rayDir * multiplier, scaleFract);
25
25
 
26
26
  if (i > 0) {
27
27
  scattering *= exp(-(mix(betaCombined, betaRayleigh, 0.5) + betaMie) * max(0.0, (opticalDepth - lastOpticalDepth)));
28
- ${r(!c,"scattering *= mix(2.5, 1.0, clamp((length(cameraPos) - radii[0]) / 50e3, 0.0, 1.0))")};
28
+ ${r(!p,"scattering *= mix(2.5, 1.0, clamp((length(cameraPosition) - radii[0]) / 50e3, 0.0, 1.0))")};
29
29
  }
30
30
 
31
31
  if (dot(normalize(samplePoint), lightDir) > -0.3) {
32
32
  float scale = exp(-scaleFract);
33
33
  float lightDepth = getOpticalDepth(samplePoint, lightDir, scaleFract);
34
34
  scattering += scale * exp(-(betaCombined + betaMie) * lightDepth);
35
- ${r(!c,"scattering += scale * exp(-(0.25 * betaCombined ) * lightDepth);")}
35
+ ${r(!p,"scattering += scale * exp(-(0.25 * betaCombined ) * lightDepth);")}
36
36
  }
37
37
  lastOpticalDepth = opticalDepth;
38
38
  }
@@ -41,9 +41,10 @@ import{betaRayleigh as e,betaCombined as a,betaMie as t}from"./atmosphereUtils.j
41
41
  float mumu = 1.0 + mu * mu;
42
42
 
43
43
  float phaseRayleigh = 0.0596831 * mumu;
44
- ${c?"return 3.0 * scattering * stepSize * phaseRayleigh * betaRayleigh;":o`const float g = 0.8;
45
- const float gg = g * g;
46
- float phaseMie = 0.1193662 * ((1.0 - gg) * mumu) / (pow(1.0 + gg - 2.0 * mu * g, 1.5) * (2.0 + gg));
47
- phaseMie = clamp(phaseMie, 0.0, 128.0);
48
- return 3.0 * scattering * stepSize * (phaseRayleigh * betaRayleigh + 0.025 * phaseMie * betaMie);`}
49
- }`)}export{s as ChapmanRaymarching};
44
+ ${p?"return 3.0 * scattering * stepSize * phaseRayleigh * betaRayleigh;":s`
45
+ const float g = 0.8;
46
+ const float gg = g * g;
47
+ float phaseMie = 0.1193662 * ((1.0 - gg) * mumu) / (pow(1.0 + gg - 2.0 * mu * g, 1.5) * (2.0 + gg));
48
+ phaseMie = clamp(phaseMie, 0.0, 128.0);
49
+ return 3.0 * scattering * stepSize * (phaseRayleigh * betaRayleigh + 0.025 * phaseMie * betaMie);`}
50
+ }`)}export{o as ChapmanRaymarching};