@agrotools1/at-components 0.2.3 → 0.2.4

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 (894) hide show
  1. package/dist/AGraphicContainer-75e55bb8.js +109 -0
  2. package/dist/APIKeyMixin-688c6ac6.js +19 -0
  3. package/dist/Analysis-53f71911.js +31 -0
  4. package/dist/ArcGISCachedService-ea7559f0.js +47 -0
  5. package/dist/ArcGISService-a447176d.js +25 -0
  6. package/dist/AreaMeasurement2D-4d0db109.js +405 -0
  7. package/dist/AreaMeasurement3D-a2a10ea8.js +488 -0
  8. package/dist/AttachmentInfo-a2849bf0.js +34 -0
  9. package/dist/AttachmentQuery-e743e06f.js +18 -0
  10. package/dist/AttributeStore-6a3291d4.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b3ff0eae.js +63 -0
  12. package/dist/BingMapsLayer-689d8e88.js +112 -0
  13. package/dist/Bitmap-e2b1f93c.js +128 -0
  14. package/dist/BitmapContainer-4dcc4a14.js +23 -0
  15. package/dist/BlendLayer-113fd3b8.js +13 -0
  16. package/dist/BoundsStore-3598604e.js +63 -0
  17. package/dist/BufferObject-59880a47.js +100 -0
  18. package/dist/BufferView-2cfe8c7d.js +683 -0
  19. package/dist/BuildingSceneLayer-a3e4a869.js +535 -0
  20. package/dist/Button-5e85250d.js +36 -0
  21. package/dist/CSVLayer-a68a64b8.js +208 -0
  22. package/dist/CSVSourceWorker-cf1fee99.js +367 -0
  23. package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
  24. package/dist/CatalogDynamicGroupLayerView2D-a4ae390f.js +66 -0
  25. package/dist/CatalogFootprintLayerView2D-145014a4.js +76 -0
  26. package/dist/CatalogLayer-48e7048b.js +262 -0
  27. package/dist/CatalogLayerView2D-8b4a4d47.js +52 -0
  28. package/dist/ClassBreaksDefinition-e2d8b3cc.js +18 -0
  29. package/dist/ColorMaterial.glsl-a7c70d21.js +64 -0
  30. package/dist/ColorSet-f4b34654.js +45 -0
  31. package/dist/ColorStop-1111f0fd.js +29 -0
  32. package/dist/Container-4a2d8bcd.js +521 -0
  33. package/dist/CustomParametersMixin-601866cc.js +12 -0
  34. package/dist/DefaultMaterial.glsl-9243ba6c.js +42 -0
  35. package/dist/DefaultMaterial_COLOR_GAMMA-bf0d97c7.js +653 -0
  36. package/dist/DefaultTheme-e96ad45b.js +130 -0
  37. package/dist/DeleteForwardEditsParameters-bd5164e3.js +18 -0
  38. package/dist/DimensionLayer-d51dcf5e.js +129 -0
  39. package/dist/DirectLineMeasurement3D-7b426a46.js +449 -0
  40. package/dist/DistanceMeasurement2D-1f05b105.js +303 -0
  41. package/dist/DoubleArray-4f276822.js +25 -0
  42. package/dist/Dropdown/Dropdown.core.d.ts +31 -0
  43. package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
  44. package/dist/Dropdown/List/Dropdown.List.d.ts +84 -0
  45. package/dist/Dropdown/List/test.mocks.d.ts +6 -0
  46. package/dist/EdgeProcessingWorker-317b2f9a.js +63 -0
  47. package/dist/EditBusLayer-55763028.js +107 -0
  48. package/dist/ElevationInfo-5be88917.js +56 -0
  49. package/dist/ElevationLayer-754634d4.js +129 -0
  50. package/dist/ElevationQuery-1e84df59.js +598 -0
  51. package/dist/ElevationSamplerWorker-1c01b3d8.js +62 -0
  52. package/dist/ExportImageParameters-e00a1031.js +66 -0
  53. package/dist/ExportStrategy-ba992e25.js +93 -0
  54. package/dist/ExportWMSImageParameters-395804ac.js +33 -0
  55. package/dist/External-77e767f4.js +110 -0
  56. package/dist/Faq/Faq.d.ts +1 -1
  57. package/dist/Faq/index.d.ts +1 -1
  58. package/dist/FeatureCollectionSnappingSource-d1435805.js +130 -0
  59. package/dist/FeatureCommandQueue-4db7f162.js +1244 -0
  60. package/dist/FeatureEffect-5b570804.js +39 -0
  61. package/dist/FeatureEffectLayer-171a9749.js +13 -0
  62. package/dist/FeatureFilter-db89ec09.js +27 -0
  63. package/dist/FeatureLayer-881827c7.js +693 -0
  64. package/dist/FeatureLayerBase-b410d8eb.js +148 -0
  65. package/dist/FeatureLayerSource-e5eba81e.js +444 -0
  66. package/dist/FeatureLayerView2D-107b4ed6.js +1967 -0
  67. package/dist/FeaturePipelineWorker-2b42d98d.js +3633 -0
  68. package/dist/FeatureReductionLayer-1f3f6a98.js +225 -0
  69. package/dist/FeatureReductionSelection-b0c4bcaf.js +22 -0
  70. package/dist/FeatureServiceSnappingSource-fde9a8da.js +481 -0
  71. package/dist/FeatureServiceSnappingSourceWorker-d4113c50.js +747 -0
  72. package/dist/FeatureSet-595ae550.js +188 -0
  73. package/dist/FeatureStore-87fbe804.js +131 -0
  74. package/dist/FeatureTemplate-c810cba6.js +12 -0
  75. package/dist/FeatureType-22de76b9.js +25 -0
  76. package/dist/FieldsIndex-390b005f.js +109 -0
  77. package/dist/FormTemplate-728de82d.js +350 -0
  78. package/dist/GeoJSONLayer-fbf5ee27.js +236 -0
  79. package/dist/GeoJSONSourceWorker-30cd4133.js +247 -0
  80. package/dist/GeoRSSLayer-2addf639.js +73 -0
  81. package/dist/GeoRSSLayerView2D-29c15edb.js +140 -0
  82. package/dist/GeometryUtils-80d3036a.js +403 -0
  83. package/dist/GraphicContainer-2b112072.js +26 -0
  84. package/dist/GraphicManipulator-84ac0573.js +1499 -0
  85. package/dist/GraphicsLayer-ee9f874e.js +38 -0
  86. package/dist/GraphicsLayerView2D-c5eda7d2.js +114 -0
  87. package/dist/GraphicsSnappingSource-3dd1e9b3.js +273 -0
  88. package/dist/GraphicsView2D-40686b59.js +620 -0
  89. package/dist/GroupLayer-fd168a3e.js +147 -0
  90. package/dist/GroupLayerView2D-f4078b54.js +98 -0
  91. package/dist/HUDMaterial.glsl-bea5cb7c.js +65 -0
  92. package/dist/HighlightCounter-b3b4b206.js +41 -0
  93. package/dist/HighlightGraphicContainer-c00c331b.js +18 -0
  94. package/dist/I3SBinaryReader-d3a26893.js +310 -0
  95. package/dist/I3SLayerDefinitions-2bea64c8.js +55 -0
  96. package/dist/I3SUtil-ab1a91f5.js +59 -0
  97. package/dist/IdentityManager-8e14d109.js +899 -0
  98. package/dist/ImageHistogramParameters-711f313f.js +905 -0
  99. package/dist/ImageryLayer-fbaf4d8c.js +1799 -0
  100. package/dist/ImageryLayerView2D-199eb1fd.js +352 -0
  101. package/dist/ImageryTileLayer-48671dc9.js +2157 -0
  102. package/dist/ImageryTileLayerView2D-8ac1ee64.js +1110 -0
  103. package/dist/Indices-2f9cf62d.js +67 -0
  104. package/dist/Input/Input.core.d.ts +4553 -3
  105. package/dist/Input/index.d.ts +4547 -3
  106. package/dist/IntegratedMesh3DTilesLayer-89d862a2.js +112 -0
  107. package/dist/IntegratedMeshLayer-53f792e4.js +141 -0
  108. package/dist/InteractiveAnalysisViewModel-d7dd665d.js +7397 -0
  109. package/dist/InterleavedLayout-ff67e161.js +163 -0
  110. package/dist/KMLLayer-7a4cfa2a.js +162 -0
  111. package/dist/KMLLayerView2D-d0874e8d.js +253 -0
  112. package/dist/KnowledgeGraphLayerView2D-70d956b2.js +43 -0
  113. package/dist/LRUCache-5bebd9a8.js +32 -0
  114. package/dist/LabelClass-63459c37.js +135 -0
  115. package/dist/LabelMetric-09a9cd38.js +400 -0
  116. package/dist/LaserlinePath.glsl-731dbba1.js +64 -0
  117. package/dist/Laserlines.glsl-26d42447.js +65 -0
  118. package/dist/LayerFloorInfo-5c67a822.js +15 -0
  119. package/dist/LayerView-405cecd2.js +206 -0
  120. package/dist/LercWorker-a7892aa0.js +157 -0
  121. package/dist/LineOfSightLayer-abad68f7.js +147 -0
  122. package/dist/LinkChartLayer-c36d2a81.js +1027 -0
  123. package/dist/Lyr3DWorker-8f4c6c50.js +82 -0
  124. package/dist/MagnifierPrograms-ddc85113.js +806 -0
  125. package/dist/MapImageLayer-04f4cdcb.js +169 -0
  126. package/dist/MapImageLayerView2D-712dd60f.js +146 -0
  127. package/dist/MapNotesLayer-83fcba8e.js +283 -0
  128. package/dist/MapNotesLayerView2D-f0ad0a82.js +161 -0
  129. package/dist/MapServiceLayerViewHelper-6c746a26.js +288 -0
  130. package/dist/MeasurementWidgetContent-fc0c1569.js +2642 -0
  131. package/dist/MediaLayer-05162eaf.js +523 -0
  132. package/dist/MediaLayerView2D-474c563b.js +332 -0
  133. package/dist/MemCache-8f96824a.js +227 -0
  134. package/dist/MemorySourceWorker-08562524.js +222 -0
  135. package/dist/Mesh-3208420e.js +980 -0
  136. package/dist/MeshLocalVertexSpace-59268d9e.js +19 -0
  137. package/dist/MultiOriginJSONSupport-365740bb.js +158 -0
  138. package/dist/OGCFeatureLayer-7201d1ee.js +211 -0
  139. package/dist/OGCFeatureLayerView2D-d242f130.js +82 -0
  140. package/dist/ObjectStack-bad354ab.js +21 -0
  141. package/dist/Octree-cbaefa65.js +495 -0
  142. package/dist/OpenStreetMapLayer-b3c8020b.js +30 -0
  143. package/dist/OperationalLayer-30f48d16.js +44 -0
  144. package/dist/OrderByInfo-9bd0a8fe.js +16 -0
  145. package/dist/OrderedLayer-2962d196.js +26 -0
  146. package/dist/OrientedImageryLayer-5d599e15.js +216 -0
  147. package/dist/OverlayCompositing.glsl-334c68d5.js +65 -0
  148. package/dist/OverrideHelper-7981ecc2.js +242 -0
  149. package/dist/PBFDecoderWorker-48f7e620.js +213 -0
  150. package/dist/PointCloudLayer-5b804571.js +197 -0
  151. package/dist/PointCloudUniqueValueRenderer-9ef1db42.js +115 -0
  152. package/dist/PointCloudWorker-9e88daea.js +212 -0
  153. package/dist/PooledRBush-afceba5f.js +272 -0
  154. package/dist/Popup-89e3fd56.js +3990 -0
  155. package/dist/PortalLayer-21d22eb9.js +126 -0
  156. package/dist/Program-09ee8c67.js +694 -0
  157. package/dist/ProgramTemplate-be811b23.js +35 -0
  158. package/dist/ProgressBar/ProgressBar.d.ts +13 -1
  159. package/dist/QueryEngine-810a7f24.js +896 -0
  160. package/dist/QueryTask-013cc810.js +119 -0
  161. package/dist/RasterSymbolizer-ae063ee7.js +3024 -0
  162. package/dist/RasterVFDisplayObject-fe2f7ea2.js +581 -0
  163. package/dist/RasterWorker-7efcbd4d.js +78 -0
  164. package/dist/RawBlockCache-5a644219.js +185 -0
  165. package/dist/RealisticTree.glsl-4e33ae57.js +42 -0
  166. package/dist/RefreshableLayer-e64dd0ee.js +80 -0
  167. package/dist/RefreshableLayerView-61f7dd9a.js +16 -0
  168. package/dist/Relationship-adcdce15.js +64 -0
  169. package/dist/RelationshipQuery-0c20b8ed.js +22 -0
  170. package/dist/RenderingContext-29b578ca.js +889 -0
  171. package/dist/RibbonLine.glsl-038f5cac.js +65 -0
  172. package/dist/RouteLayer-479e0ccc.js +786 -0
  173. package/dist/RouteLayerView2D-1a646f54.js +195 -0
  174. package/dist/SDFHelper-9abcbcca.js +140 -0
  175. package/dist/SSAO.glsl-5d41f99f.js +43 -0
  176. package/dist/SSAOBlur.glsl-7ebf8f5c.js +42 -0
  177. package/dist/ScaleRangeLayer-3bbd6ead.js +21 -0
  178. package/dist/SceneLayer-b19fa11e.js +542 -0
  179. package/dist/SceneLayerSnappingSource-f53ddd8a.js +218 -0
  180. package/dist/SceneLayerSnappingSourceWorker-80f48214.js +112 -0
  181. package/dist/SceneLayerWorker-bab8aeb0.js +164 -0
  182. package/dist/SceneService-0c4fac79.js +215 -0
  183. package/dist/Scheduler-9db9a8cf.js +373 -0
  184. package/dist/Search/Search.d.ts +99 -0
  185. package/dist/Search/index.d.ts +1 -0
  186. package/dist/Search/test.mocks.d.ts +3 -0
  187. package/dist/Search/utils.d.ts +3 -0
  188. package/dist/Select/Item/Item.d.ts +1 -1
  189. package/dist/Select/Multiple/Select.multiple.d.ts +3 -3
  190. package/dist/Select/Select.core.d.ts +1 -1
  191. package/dist/Select/index.d.ts +3 -3
  192. package/dist/ShadedColorMaterial.glsl-a2dd0bb3.js +64 -0
  193. package/dist/SnappingOperation-25ff52da.js +48 -0
  194. package/dist/SourceLayerData-ec301fa4.js +116 -0
  195. package/dist/SpatialFilter-351a1d5e.js +1701 -0
  196. package/dist/Stop-595501a7.js +281 -0
  197. package/dist/StreamLayer-d5ebd4d3.js +188 -0
  198. package/dist/StreamLayerView2D-8a39daaa.js +164 -0
  199. package/dist/StyleRepository-dd283243.js +2212 -0
  200. package/dist/SublayersOwner-0be88fd0.js +545 -0
  201. package/dist/SubtypeGroupLayer-8386c037.js +514 -0
  202. package/dist/SubtypeGroupLayerView2D-97b63aa1.js +84 -0
  203. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  204. package/dist/Tag/Tag.d.ts +52 -0
  205. package/dist/TechniqueInstance-87f77cd3.js +233 -0
  206. package/dist/TemporalLayer-7c15b8a6.js +23 -0
  207. package/dist/Texture-c1f5f21b.js +501 -0
  208. package/dist/TextureOnly.glsl-acae1d94.js +65 -0
  209. package/dist/Theme-72a69427.js +3426 -0
  210. package/dist/Tick-d7f9b999.js +723 -0
  211. package/dist/TileContainer-20f11bc5.js +31 -0
  212. package/dist/TileInfoTilemapCache-a50aaed0.js +38 -0
  213. package/dist/TileLayer-ce04649f.js +194 -0
  214. package/dist/TileLayerView2D-0f45ff75.js +187 -0
  215. package/dist/TilemapCache-95b53d5a.js +189 -0
  216. package/dist/TimeInfo-f17e0ff9.js +42 -0
  217. package/dist/TimeOnly-63922f1a.js +706 -0
  218. package/dist/Tooltip-a21a6650.js +138 -0
  219. package/dist/TopFeaturesQuery-9e4228e7.js +32 -0
  220. package/dist/TurboLine-aeb14d6e.js +565 -0
  221. package/dist/UniqueValueRenderer-7532473e.js +1039 -0
  222. package/dist/UnknownLayer-99d4832b.js +30 -0
  223. package/dist/UnknownTimeZone-4c0a5184.js +15 -0
  224. package/dist/UnsupportedLayer-f439265c.js +31 -0
  225. package/dist/UpdateTracking2D-a1164b3d.js +8566 -0
  226. package/dist/Upload/Upload.d.ts +91 -14
  227. package/dist/Upload/index.d.ts +1 -1
  228. package/dist/Util-26f81cc4.js +57 -0
  229. package/dist/VectorTileLayer-8b5289d2.js +544 -0
  230. package/dist/VectorTileLayerView2D-00d98337.js +2108 -0
  231. package/dist/Version-2556ea28.js +33 -0
  232. package/dist/VertexArrayObject-5595c535.js +73 -0
  233. package/dist/VertexColor.glsl-01eb58bb.js +2683 -0
  234. package/dist/VertexSnappingCandidate-c1e2992a.js +13 -0
  235. package/dist/VideoLayerView2D-e92c8bab.js +124 -0
  236. package/dist/VoxelLayer-e57c2b7b.js +631 -0
  237. package/dist/WFSLayer-486fff2e.js +221 -0
  238. package/dist/WFSSourceWorker-3d8ac573.js +157 -0
  239. package/dist/WGLContainer-1441483b.js +5426 -0
  240. package/dist/WMSLayer-07ea95cc.js +536 -0
  241. package/dist/WMSLayerView2D-8b67d5da.js +117 -0
  242. package/dist/WMTSLayer-b52fbe0c.js +531 -0
  243. package/dist/WMTSLayerView2D-8ca1d522.js +142 -0
  244. package/dist/WebTileLayer-dd24dee2.js +110 -0
  245. package/dist/WhereClause-2eefa48c.js +2766 -0
  246. package/dist/WorkerHandle-f6b5ac7b.js +47 -0
  247. package/dist/WorkerTileHandler-e060fab5.js +1539 -0
  248. package/dist/action-a2d13907.js +198 -0
  249. package/dist/action-group-af071314.js +145 -0
  250. package/dist/action-menu-c759068f.js +1759 -0
  251. package/dist/apng-b33ce902.js +392 -0
  252. package/dist/arcade-b05c8c22.js +229 -0
  253. package/dist/arcadeAsyncRuntime-9b4a7891.js +943 -0
  254. package/dist/arcadeUtils-41691d12.js +8741 -0
  255. package/dist/arcgis-knowledge-client-core-2217ce57.js +1218 -0
  256. package/dist/arcgis-knowledge-client-core-simd-ab44590a.js +1218 -0
  257. package/dist/arcgisLayers-0ea0be85.js +152 -0
  258. package/dist/associatedFeatureServiceUtils-09077513.js +92 -0
  259. package/dist/axisAngleDegrees-1c3d7520.js +49 -0
  260. package/dist/basis_transcoder-292f1aaf.js +1248 -0
  261. package/dist/calcite-action-ad0d1e23.js +22 -0
  262. package/dist/calcite-action-bar-1b2de6d0.js +303 -0
  263. package/dist/calcite-action-group-aacf8ec4.js +28 -0
  264. package/dist/calcite-button-125cbd95.js +228 -0
  265. package/dist/calcite-flow-c9a6e8fa.js +128 -0
  266. package/dist/calcite-flow-item-eb314bb8.js +499 -0
  267. package/dist/calcite-icon-07f22bc6.js +16 -0
  268. package/dist/calcite-input-167be799.js +24 -0
  269. package/dist/calcite-label-7de34a6b.js +79 -0
  270. package/dist/calcite-list-2087f9ca.js +2135 -0
  271. package/dist/calcite-list-item-3419fb5f.js +576 -0
  272. package/dist/calcite-list-item-group-3a6545e3.js +71 -0
  273. package/dist/calcite-loader-16bcfb95.js +14 -0
  274. package/dist/calcite-modal-f608731f.js +333 -0
  275. package/dist/calcite-notice-88ee1edf.js +181 -0
  276. package/dist/calcite-option-375585a2.js +94 -0
  277. package/dist/calcite-scrim-751cf767.js +18 -0
  278. package/dist/calcite-select-62db97da.js +231 -0
  279. package/dist/capabilities-359df394.js +50 -0
  280. package/dist/chartCommon-cceb2530.js +256 -0
  281. package/dist/chartUtilsAm5-08a29408.js +2954 -0
  282. package/dist/clientSideDefaults-b5450c9b.js +39 -0
  283. package/dist/colorRamps-314c4b5a.js +38 -0
  284. package/dist/colorUtils-6e9b620c.js +164 -0
  285. package/dist/commonProperties-3399f319.js +60 -0
  286. package/dist/computeTranslationToOriginAndRotation-0b0f32ad.js +60 -0
  287. package/dist/conditionalSlot-012fd5da.js +27 -0
  288. package/dist/createConnection-f1189f51.js +299 -0
  289. package/dist/dataUtils-950a0ae9.js +1421 -0
  290. package/dist/deduplicate-eabb5f9e.js +89 -0
  291. package/dist/defaults-e5c5ee75.js +31 -0
  292. package/dist/deleteForwardEdits-ea9258ea.js +13 -0
  293. package/dist/diffUtils-04a71a59.js +90 -0
  294. package/dist/drapedUtils-2515520d.js +75 -0
  295. package/dist/earcut-192842ab.js +292 -0
  296. package/dist/edgeProcessing-da003f69.js +252 -0
  297. package/dist/editingSupport-9f04ba1b.js +203 -0
  298. package/dist/editsZScale-97938687.js +37 -0
  299. package/dist/elevationInfoUtils-e1edd62e.js +126 -0
  300. package/dist/executeForIds-3b8a1698.js +14 -0
  301. package/dist/executeForTopCount-6c6cd2f2.js +17 -0
  302. package/dist/executeForTopExtents-86851593.js +17 -0
  303. package/dist/executeForTopIds-24bc9dea.js +17 -0
  304. package/dist/executeQueryJSON-cf7d748b.js +15 -0
  305. package/dist/executeQueryPBF-ad416846.js +152 -0
  306. package/dist/executeRelationshipQuery-9b6666bf.js +53 -0
  307. package/dist/executeTopFeaturesQuery-4ac72bd2.js +18 -0
  308. package/dist/featureConversionUtils-67a121da.js +479 -0
  309. package/dist/featureLayerUtils-a4002773.js +142 -0
  310. package/dist/featureLayerUtils-a7e985d2.js +250 -0
  311. package/dist/featureSetUtils-11fcb3c4.js +2530 -0
  312. package/dist/featuresetbase-47894167.js +707 -0
  313. package/dist/featuresetgeom-bff2aa07.js +99 -0
  314. package/dist/featuresetstats-14a3fe2b.js +81 -0
  315. package/dist/featuresetstring-de2b64db.js +95 -0
  316. package/dist/fetchService-b6d76f5e.js +33 -0
  317. package/dist/fieldProperties-a9fbe289.js +33 -0
  318. package/dist/floatRGBA-2bc6800c.js +20 -0
  319. package/dist/form-e210eee8.js +138 -0
  320. package/dist/geohashUtils-085312a3.js +85 -0
  321. package/dist/geojson-f0bc401a.js +208 -0
  322. package/dist/geomasync-3c3b5e8d.js +567 -0
  323. package/dist/geometryEngine-2772790a.js +192 -0
  324. package/dist/geometryEngineAsync-db2e5674.js +217 -0
  325. package/dist/geometryEngineBase-8b327072.js +18463 -0
  326. package/dist/geometryEngineJSON-95268e88.js +171 -0
  327. package/dist/geometryEngineJSON-fc48a48b.js +46 -0
  328. package/dist/geometryEngineWorker-2fbc65f7.js +11 -0
  329. package/dist/geometryServiceUtils-ed9cb722.js +28 -0
  330. package/dist/georeference-f6f67e9b.js +291 -0
  331. package/dist/gif-a4043534.js +323 -0
  332. package/dist/gltfexport-d028c5c9.js +705 -0
  333. package/dist/groupLayerUtils-22dde377.js +39 -0
  334. package/dist/heatmapUtils-8e578a0a.js +45 -0
  335. package/dist/highlightReasons-ab23926f.js +19 -0
  336. package/dist/hydrated-219f2b0c.js +40 -0
  337. package/dist/i3s-b5ed4851.js +809 -0
  338. package/dist/icon-8711ff33.js +127 -0
  339. package/dist/imageBitmapUtils-dc97b3de.js +23 -0
  340. package/dist/imageUtils-0a71062a.js +69 -0
  341. package/dist/imageUtils-a4c7c9bf.js +89 -0
  342. package/dist/imageryUtils-d21fd540.js +43 -0
  343. package/dist/index-f28919b2.js +43440 -0
  344. package/dist/index.d.ts +3 -0
  345. package/dist/index.js +15 -12
  346. package/dist/input-message-3df877b9.js +92 -0
  347. package/dist/input2-32e36924.js +575 -0
  348. package/dist/interactive-c1e1aeaf.js +80 -0
  349. package/dist/jsonContext-4622e179.js +15 -0
  350. package/dist/jsonUtils-9f58b7bb.js +476 -0
  351. package/dist/jsonUtils-d9bb6102.js +86 -0
  352. package/dist/jsonUtils-e40213c1.js +59 -0
  353. package/dist/kmlUtils-5f8f6cf6.js +112 -0
  354. package/dist/knowledgeGraphService-a34bf3b0.js +739 -0
  355. package/dist/knowledgegraph-68124c78.js +149 -0
  356. package/dist/labelUtils-3a1386e4.js +61 -0
  357. package/dist/labelingInfo-69c9f8f4.js +46 -0
  358. package/dist/layersCreator-5e6fe7f2.js +151 -0
  359. package/dist/layersLoader-f96735c7.js +197 -0
  360. package/dist/lazyLayerLoader-142515c4.js +10 -0
  361. package/dist/lclayout-639ec791.js +773 -0
  362. package/dist/lengthUtils-8796ccf3.js +5 -0
  363. package/dist/lerc-wasm-acb341bd.js +325 -0
  364. package/dist/libtess-a9e7192e.js +269 -0
  365. package/dist/libtess-asm-8de2fb72.js +3673 -0
  366. package/dist/lineSegment-2790f546.js +76 -0
  367. package/dist/loadGLTFMesh-33064e6d.js +181 -0
  368. package/dist/loadable-4558719f.js +24 -0
  369. package/dist/loader-4dbc522d.js +79 -0
  370. package/dist/lyr3DWorker-3365d66f.js +2108 -0
  371. package/dist/mapViewDeps-67ec1d27.js +3052 -0
  372. package/dist/mediaLayerUtils-612838fb.js +35 -0
  373. package/dist/meshFeatureSet-07b96756.js +126 -0
  374. package/dist/meshVertexSpaceUtils-673c2055.js +58 -0
  375. package/dist/multidimensionalUtils-79cc2536.js +290 -0
  376. package/dist/normalizeUtilsSync-9fd98ab4.js +181 -0
  377. package/dist/number-110986f5.js +128 -0
  378. package/dist/objectResourceUtils-1b8d1c03.js +1455 -0
  379. package/dist/observers-507c19a0.js +30 -0
  380. package/dist/ogcFeatureUtils-3c65f06a.js +206 -0
  381. package/dist/openCloseComponent-89dc4d35.js +37 -0
  382. package/dist/orientedBoundingBox-46d44acf.js +447 -0
  383. package/dist/parser-8f715684.js +488 -0
  384. package/dist/pbf-4ce99129.js +215 -0
  385. package/dist/pbfQueryUtils-23cca540.js +422 -0
  386. package/dist/pe-wasm-d186391a.js +887 -0
  387. package/dist/persistable-09062510.js +89 -0
  388. package/dist/perspectiveUtils-9da629d6.js +42 -0
  389. package/dist/pieChart-92709a5c.js +555 -0
  390. package/dist/plane-2b39f8eb.js +160 -0
  391. package/dist/popupUtils-dc099446.js +22 -0
  392. package/dist/popupUtils-e53c5c04.js +50 -0
  393. package/dist/portalItemUtils-39079445.js +57 -0
  394. package/dist/portalLayers-efcd5403.js +312 -0
  395. package/dist/portalUtils-44b1ac04.js +7 -0
  396. package/dist/programUtils-c22a40e2.js +59 -0
  397. package/dist/project-4759dc23.js +21 -0
  398. package/dist/projectPointToVector-1d9098bc.js +14 -0
  399. package/dist/projectVectorToVector-add01592.js +13 -0
  400. package/dist/quantityUtils-afe6e5b7.js +33 -0
  401. package/dist/quantizationUtils-51d3a038.js +68 -0
  402. package/dist/quat-22f56b72.js +104 -0
  403. package/dist/query-8cf3e12b.js +89 -0
  404. package/dist/queryAttachments-0a63ea2f.js +39 -0
  405. package/dist/queryEngineUtils-a1db57f0.js +21 -0
  406. package/dist/queryTopFeatures-b4fb05ad.js +50 -0
  407. package/dist/queryZScale-112cd8e3.js +12 -0
  408. package/dist/rasterProjectionHelper-3ae0fcfd.js +577 -0
  409. package/dist/rasterUtils-6868b6b6.js +122 -0
  410. package/dist/rasterizingUtils-922f43e7.js +46 -0
  411. package/dist/request-fd620c13.js +46 -0
  412. package/dist/requestImageUtils-f8f50ad7.js +8 -0
  413. package/dist/resourceExtension-f0327971.js +17 -0
  414. package/dist/resourceUtils-2e33090d.js +69 -0
  415. package/dist/resourceUtils-db0d7e83.js +42 -0
  416. package/dist/resourceUtils-ff5eafc3.js +62 -0
  417. package/dist/saveAPIKeyUtils-32bb955d.js +8 -0
  418. package/dist/saveUtils-d4ad8f94.js +24 -0
  419. package/dist/scaleUtils-a3ce8cc6.js +23 -0
  420. package/dist/scrim-7ef1cdf5.js +114 -0
  421. package/dist/serviceCapabilitiesUtils-cafdd4bc.js +64 -0
  422. package/dist/sourceUtils-1a30f8aa.js +71 -0
  423. package/dist/sphere-84d1e36b.js +199 -0
  424. package/dist/statsWorker-efb7a41b.js +37 -0
  425. package/dist/streamLayerUtils-4c5b417e.js +31 -0
  426. package/dist/style.css +1 -1
  427. package/dist/styleUtils-8f0e3848.js +75 -0
  428. package/dist/styleUtils-a61894cc.js +14 -0
  429. package/dist/sublayerUtils-aaa67481.js +37 -0
  430. package/dist/substitute-7b4a925f.js +52 -0
  431. package/dist/symbolColorUtils-45615b74.js +8 -0
  432. package/dist/symbolLayerUtils-6ee325f3.js +31 -0
  433. package/dist/symbologySnappingCandidates-a56c7bbb.js +221 -0
  434. package/dist/t9n-b5ab99e4.js +349 -0
  435. package/dist/testSVGPremultipliedAlpha-a89a8569.js +94 -0
  436. package/dist/timeSupport-76d5ec0e.js +410 -0
  437. package/dist/triangle-95e355d3.js +98 -0
  438. package/dist/unitConversionUtils-b0c2c156.js +17 -0
  439. package/dist/unitFormatUtils-b79fea5c.js +40 -0
  440. package/dist/uploadAssetErrors-7ef907ce.js +70 -0
  441. package/dist/uploadAssets-99a2ec95.js +330 -0
  442. package/dist/utils-0da4a164.js +419 -0
  443. package/dist/utils-0e163cdb.js +433 -0
  444. package/dist/utils-421c60f9.js +73 -0
  445. package/dist/utils-6e4fc34d.js +91 -0
  446. package/dist/utils-9612bce6.js +34 -0
  447. package/dist/utils-99bb2971.js +2746 -0
  448. package/dist/utils-d1f92cf8.js +79 -0
  449. package/dist/utils-e30b7de3.js +232 -0
  450. package/dist/utils3-41d8e55d.js +75 -0
  451. package/dist/vec3-ab2339d6.js +81 -0
  452. package/dist/vec42-1a7bd7a6.js +125 -0
  453. package/dist/versionUtils-b6c13869.js +161 -0
  454. package/dist/visualVariableUtils-1a38c540.js +267 -0
  455. package/dist/webStyleSymbolUtils-6f89a405.js +48 -0
  456. package/dist/webglDeps-dcb6738a.js +23 -0
  457. package/dist/wfsUtils-d679c9b9.js +343 -0
  458. package/dist/workerHelper-8fb7376f.js +11 -0
  459. package/dist/xyChart-b3c4e27e.js +3335 -0
  460. package/package.json +1 -1
  461. package/dist/AGraphicContainer-98a4c8a4.js +0 -109
  462. package/dist/APIKeyMixin-9511e0a5.js +0 -19
  463. package/dist/Analysis-4b1d1fb5.js +0 -31
  464. package/dist/ArcGISCachedService-93e2cb27.js +0 -47
  465. package/dist/ArcGISService-3f8d89c1.js +0 -25
  466. package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
  467. package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
  468. package/dist/AttachmentInfo-601c56e2.js +0 -34
  469. package/dist/AttachmentQuery-3504d550.js +0 -18
  470. package/dist/AttributeStore-b90878e3.js +0 -1707
  471. package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
  472. package/dist/BingMapsLayer-5d79fe2b.js +0 -112
  473. package/dist/Bitmap-f775c851.js +0 -128
  474. package/dist/BitmapContainer-af5942b8.js +0 -23
  475. package/dist/BlendLayer-a792edf6.js +0 -13
  476. package/dist/BoundsStore-789624df.js +0 -63
  477. package/dist/BufferObject-cbd0168e.js +0 -100
  478. package/dist/BufferView-004ad517.js +0 -683
  479. package/dist/BuildingSceneLayer-25bc760b.js +0 -535
  480. package/dist/Button-70963624.js +0 -36
  481. package/dist/CSVLayer-fd3b6750.js +0 -208
  482. package/dist/CSVSourceWorker-eb24cd85.js +0 -367
  483. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
  484. package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
  485. package/dist/CatalogLayer-1cc632fe.js +0 -262
  486. package/dist/CatalogLayerView2D-d143aa34.js +0 -52
  487. package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
  488. package/dist/ColorMaterial.glsl-e7801766.js +0 -64
  489. package/dist/ColorSet-df5696b5.js +0 -45
  490. package/dist/ColorStop-7187f368.js +0 -29
  491. package/dist/Container-ac97765a.js +0 -521
  492. package/dist/CustomParametersMixin-b3432b3e.js +0 -12
  493. package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
  494. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
  495. package/dist/DefaultTheme-12dffc66.js +0 -130
  496. package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
  497. package/dist/DimensionLayer-9eb47c76.js +0 -129
  498. package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
  499. package/dist/DistanceMeasurement2D-a4853462.js +0 -303
  500. package/dist/DoubleArray-5076283e.js +0 -25
  501. package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
  502. package/dist/EditBusLayer-e812f4c9.js +0 -107
  503. package/dist/ElevationInfo-fad03d5e.js +0 -56
  504. package/dist/ElevationLayer-397792d5.js +0 -129
  505. package/dist/ElevationQuery-beceb62f.js +0 -598
  506. package/dist/ElevationSamplerWorker-0048a204.js +0 -62
  507. package/dist/ExportImageParameters-c6c4bc61.js +0 -66
  508. package/dist/ExportStrategy-908f5b8d.js +0 -93
  509. package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
  510. package/dist/External-14daf0c1.js +0 -110
  511. package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
  512. package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
  513. package/dist/FeatureEffect-08976bbd.js +0 -39
  514. package/dist/FeatureEffectLayer-05c258f4.js +0 -13
  515. package/dist/FeatureFilter-8c5e44b1.js +0 -27
  516. package/dist/FeatureLayer-d3659466.js +0 -693
  517. package/dist/FeatureLayerBase-9b63f732.js +0 -148
  518. package/dist/FeatureLayerSource-960f1c01.js +0 -444
  519. package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
  520. package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
  521. package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
  522. package/dist/FeatureReductionSelection-d90249a7.js +0 -22
  523. package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
  524. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
  525. package/dist/FeatureSet-d79f0e48.js +0 -188
  526. package/dist/FeatureStore-eb4b87c0.js +0 -131
  527. package/dist/FeatureTemplate-edb1b782.js +0 -12
  528. package/dist/FeatureType-bba29adb.js +0 -25
  529. package/dist/FieldsIndex-75cca4d0.js +0 -109
  530. package/dist/FormTemplate-22911c47.js +0 -350
  531. package/dist/GeoJSONLayer-b33c96b8.js +0 -236
  532. package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
  533. package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
  534. package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
  535. package/dist/GeometryUtils-fa897cbd.js +0 -403
  536. package/dist/GraphicContainer-1fd6bfce.js +0 -26
  537. package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
  538. package/dist/GraphicsLayer-e0686779.js +0 -38
  539. package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
  540. package/dist/GraphicsSnappingSource-594f402a.js +0 -273
  541. package/dist/GraphicsView2D-347562b8.js +0 -620
  542. package/dist/GroupLayer-7ae0a916.js +0 -147
  543. package/dist/GroupLayerView2D-ffcde606.js +0 -98
  544. package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
  545. package/dist/HighlightCounter-e18f0179.js +0 -41
  546. package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
  547. package/dist/I3SBinaryReader-190e99de.js +0 -310
  548. package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
  549. package/dist/I3SUtil-44b83dc0.js +0 -59
  550. package/dist/IdentityManager-fbe91c13.js +0 -899
  551. package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
  552. package/dist/ImageryLayer-67878a78.js +0 -1799
  553. package/dist/ImageryLayerView2D-ae45faba.js +0 -352
  554. package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
  555. package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
  556. package/dist/Indices-e6dc3b15.js +0 -67
  557. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
  558. package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
  559. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
  560. package/dist/InterleavedLayout-32973c8a.js +0 -163
  561. package/dist/KMLLayer-80f81df7.js +0 -162
  562. package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
  563. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
  564. package/dist/LRUCache-27e8c401.js +0 -32
  565. package/dist/LabelClass-d9a476d6.js +0 -135
  566. package/dist/LabelMetric-e2728bbf.js +0 -400
  567. package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
  568. package/dist/Laserlines.glsl-499a6cbf.js +0 -65
  569. package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
  570. package/dist/LayerView-036988a9.js +0 -206
  571. package/dist/LercWorker-b1b4bb47.js +0 -157
  572. package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
  573. package/dist/LinkChartLayer-d61803bb.js +0 -1027
  574. package/dist/Lyr3DWorker-87be14e0.js +0 -82
  575. package/dist/MagnifierPrograms-da7a27ab.js +0 -806
  576. package/dist/MapImageLayer-f07adf1a.js +0 -169
  577. package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
  578. package/dist/MapNotesLayer-c662d147.js +0 -283
  579. package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
  580. package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
  581. package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
  582. package/dist/MediaLayer-36d873a3.js +0 -523
  583. package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
  584. package/dist/MemCache-a9232ec2.js +0 -227
  585. package/dist/MemorySourceWorker-20ff27d6.js +0 -222
  586. package/dist/Mesh-3839826a.js +0 -980
  587. package/dist/MeshLocalVertexSpace-00151564.js +0 -19
  588. package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
  589. package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
  590. package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
  591. package/dist/ObjectStack-10d91171.js +0 -21
  592. package/dist/Octree-78797046.js +0 -495
  593. package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
  594. package/dist/OperationalLayer-55af27d6.js +0 -44
  595. package/dist/OrderByInfo-22e3c805.js +0 -16
  596. package/dist/OrderedLayer-1403a591.js +0 -26
  597. package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
  598. package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
  599. package/dist/OverrideHelper-82325a2c.js +0 -242
  600. package/dist/PBFDecoderWorker-f6517afc.js +0 -213
  601. package/dist/PointCloudLayer-cff43a10.js +0 -197
  602. package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
  603. package/dist/PointCloudWorker-cdb28dc1.js +0 -212
  604. package/dist/PooledRBush-ee4e60af.js +0 -272
  605. package/dist/Popup-c7f55588.js +0 -3990
  606. package/dist/PortalLayer-07b3c53e.js +0 -126
  607. package/dist/Program-ba2f18b2.js +0 -694
  608. package/dist/ProgramTemplate-eee4f097.js +0 -35
  609. package/dist/QueryEngine-10c97624.js +0 -896
  610. package/dist/QueryTask-115430b6.js +0 -119
  611. package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
  612. package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
  613. package/dist/RasterWorker-44c37e20.js +0 -78
  614. package/dist/RawBlockCache-25203dbd.js +0 -185
  615. package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
  616. package/dist/RefreshableLayer-9550b85a.js +0 -80
  617. package/dist/RefreshableLayerView-601f7038.js +0 -16
  618. package/dist/Relationship-c662830e.js +0 -64
  619. package/dist/RelationshipQuery-765f068e.js +0 -22
  620. package/dist/RenderingContext-3db74548.js +0 -889
  621. package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
  622. package/dist/RouteLayer-3f5411f3.js +0 -786
  623. package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
  624. package/dist/SDFHelper-a34e90ee.js +0 -140
  625. package/dist/SSAO.glsl-5491a708.js +0 -43
  626. package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
  627. package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
  628. package/dist/SceneLayer-c594bfc3.js +0 -542
  629. package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
  630. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
  631. package/dist/SceneLayerWorker-1865768e.js +0 -164
  632. package/dist/SceneService-fb9f0142.js +0 -215
  633. package/dist/Scheduler-eacc84bb.js +0 -373
  634. package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
  635. package/dist/SnappingOperation-9622a00d.js +0 -48
  636. package/dist/SourceLayerData-7016f1a5.js +0 -116
  637. package/dist/SpatialFilter-d20d4f50.js +0 -1701
  638. package/dist/Stop-68022e32.js +0 -281
  639. package/dist/StreamLayer-7c837e3d.js +0 -188
  640. package/dist/StreamLayerView2D-586f5a6a.js +0 -164
  641. package/dist/StyleRepository-fba75e70.js +0 -2212
  642. package/dist/SublayersOwner-3dc574cd.js +0 -545
  643. package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
  644. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
  645. package/dist/TechniqueInstance-0481dbff.js +0 -233
  646. package/dist/TemporalLayer-8116b4a4.js +0 -23
  647. package/dist/Texture-22a8cca5.js +0 -501
  648. package/dist/TextureOnly.glsl-458f8148.js +0 -65
  649. package/dist/Theme-f05b8eb0.js +0 -3426
  650. package/dist/Tick-aef93b48.js +0 -723
  651. package/dist/TileContainer-0bf0ea1b.js +0 -31
  652. package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
  653. package/dist/TileLayer-0edee064.js +0 -194
  654. package/dist/TileLayerView2D-78d5801b.js +0 -187
  655. package/dist/TilemapCache-79699d61.js +0 -189
  656. package/dist/TimeInfo-40c96ade.js +0 -42
  657. package/dist/TimeOnly-9ee66ca6.js +0 -706
  658. package/dist/Tooltip-e7498dc9.js +0 -138
  659. package/dist/TopFeaturesQuery-ad224e01.js +0 -32
  660. package/dist/TurboLine-6ab04aef.js +0 -565
  661. package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
  662. package/dist/UnknownLayer-e280ddd4.js +0 -30
  663. package/dist/UnknownTimeZone-220952b5.js +0 -15
  664. package/dist/UnsupportedLayer-447f7676.js +0 -31
  665. package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
  666. package/dist/Util-002f5109.js +0 -57
  667. package/dist/VectorTileLayer-3210be81.js +0 -544
  668. package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
  669. package/dist/Version-3de8cbca.js +0 -33
  670. package/dist/VertexArrayObject-07998745.js +0 -73
  671. package/dist/VertexColor.glsl-e415cf02.js +0 -2683
  672. package/dist/VertexSnappingCandidate-b676241f.js +0 -13
  673. package/dist/VideoLayerView2D-f659dd0d.js +0 -124
  674. package/dist/VoxelLayer-003f82ff.js +0 -631
  675. package/dist/WFSLayer-3da6c5f7.js +0 -221
  676. package/dist/WFSSourceWorker-9a11693a.js +0 -157
  677. package/dist/WGLContainer-3d159b63.js +0 -5426
  678. package/dist/WMSLayer-fc0632f8.js +0 -536
  679. package/dist/WMSLayerView2D-54e80e1b.js +0 -117
  680. package/dist/WMTSLayer-9324b12b.js +0 -531
  681. package/dist/WMTSLayerView2D-3ef936db.js +0 -142
  682. package/dist/WebTileLayer-45c563ff.js +0 -110
  683. package/dist/WhereClause-7a28b740.js +0 -2766
  684. package/dist/WorkerHandle-0d54a6c7.js +0 -47
  685. package/dist/WorkerTileHandler-786c2b24.js +0 -1539
  686. package/dist/action-163397e3.js +0 -198
  687. package/dist/action-group-4859fb97.js +0 -145
  688. package/dist/action-menu-2d70b2fc.js +0 -1759
  689. package/dist/apng-9b71d52c.js +0 -392
  690. package/dist/arcade-fa309282.js +0 -229
  691. package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
  692. package/dist/arcadeUtils-f71d80fa.js +0 -8741
  693. package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
  694. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
  695. package/dist/arcgisLayers-b2b878bd.js +0 -152
  696. package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
  697. package/dist/axisAngleDegrees-32643b7c.js +0 -49
  698. package/dist/basis_transcoder-3187cc92.js +0 -1248
  699. package/dist/calcite-action-bar-5a87c23c.js +0 -303
  700. package/dist/calcite-action-ee2ca847.js +0 -22
  701. package/dist/calcite-action-group-19aa86ee.js +0 -28
  702. package/dist/calcite-button-8e9175c0.js +0 -228
  703. package/dist/calcite-flow-57d26d2d.js +0 -128
  704. package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
  705. package/dist/calcite-icon-d99e280a.js +0 -16
  706. package/dist/calcite-input-28b20785.js +0 -24
  707. package/dist/calcite-label-4f30e08d.js +0 -79
  708. package/dist/calcite-list-0cee7628.js +0 -2135
  709. package/dist/calcite-list-item-0a19efa8.js +0 -576
  710. package/dist/calcite-list-item-group-0706662f.js +0 -71
  711. package/dist/calcite-loader-865045b1.js +0 -14
  712. package/dist/calcite-modal-3e4da6fd.js +0 -333
  713. package/dist/calcite-notice-50b74ab7.js +0 -181
  714. package/dist/calcite-option-713c1d40.js +0 -94
  715. package/dist/calcite-scrim-809fbd0b.js +0 -18
  716. package/dist/calcite-select-28d8edfc.js +0 -231
  717. package/dist/capabilities-c8f838be.js +0 -50
  718. package/dist/chartCommon-13718cda.js +0 -256
  719. package/dist/chartUtilsAm5-6be145fb.js +0 -2954
  720. package/dist/clientSideDefaults-5c1f97c9.js +0 -39
  721. package/dist/colorRamps-8792655e.js +0 -38
  722. package/dist/colorUtils-54f4b662.js +0 -164
  723. package/dist/commonProperties-f9559903.js +0 -60
  724. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
  725. package/dist/conditionalSlot-87175989.js +0 -27
  726. package/dist/createConnection-f974a00a.js +0 -299
  727. package/dist/dataUtils-7c276b73.js +0 -1421
  728. package/dist/deduplicate-59fb9cac.js +0 -89
  729. package/dist/defaults-2bfa4a36.js +0 -31
  730. package/dist/deleteForwardEdits-f653b513.js +0 -13
  731. package/dist/diffUtils-e71a6152.js +0 -90
  732. package/dist/drapedUtils-b42fcbc6.js +0 -75
  733. package/dist/earcut-6fa1a128.js +0 -292
  734. package/dist/edgeProcessing-2ff1f201.js +0 -252
  735. package/dist/editingSupport-68545668.js +0 -203
  736. package/dist/editsZScale-c7cdd215.js +0 -37
  737. package/dist/elevationInfoUtils-5456a079.js +0 -126
  738. package/dist/executeForIds-4ab75c0d.js +0 -14
  739. package/dist/executeForTopCount-7e095ec1.js +0 -17
  740. package/dist/executeForTopExtents-19daf9d0.js +0 -17
  741. package/dist/executeForTopIds-1ba3a4af.js +0 -17
  742. package/dist/executeQueryJSON-46168866.js +0 -15
  743. package/dist/executeQueryPBF-d8623daf.js +0 -152
  744. package/dist/executeRelationshipQuery-011dfb45.js +0 -53
  745. package/dist/executeTopFeaturesQuery-02166801.js +0 -18
  746. package/dist/featureConversionUtils-650d7601.js +0 -479
  747. package/dist/featureLayerUtils-64e09283.js +0 -142
  748. package/dist/featureLayerUtils-b07f9c11.js +0 -250
  749. package/dist/featureSetUtils-9d37d6f8.js +0 -2530
  750. package/dist/featuresetbase-62aeb079.js +0 -707
  751. package/dist/featuresetgeom-51f9fc4e.js +0 -99
  752. package/dist/featuresetstats-4db32894.js +0 -81
  753. package/dist/featuresetstring-990c3287.js +0 -95
  754. package/dist/fetchService-5198dd4a.js +0 -33
  755. package/dist/fieldProperties-edfa24cb.js +0 -33
  756. package/dist/floatRGBA-516d7961.js +0 -20
  757. package/dist/form-99719d52.js +0 -138
  758. package/dist/geohashUtils-2bc76440.js +0 -85
  759. package/dist/geojson-603231df.js +0 -208
  760. package/dist/geomasync-e9063b4c.js +0 -567
  761. package/dist/geometryEngine-d3bb2fd6.js +0 -192
  762. package/dist/geometryEngineAsync-55aa6170.js +0 -217
  763. package/dist/geometryEngineBase-527e8b63.js +0 -18463
  764. package/dist/geometryEngineJSON-28087174.js +0 -46
  765. package/dist/geometryEngineJSON-d54949f9.js +0 -171
  766. package/dist/geometryEngineWorker-dc2c7127.js +0 -11
  767. package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
  768. package/dist/georeference-ed8b2c30.js +0 -291
  769. package/dist/gif-204e82dd.js +0 -323
  770. package/dist/gltfexport-b2566542.js +0 -705
  771. package/dist/groupLayerUtils-ea9e6359.js +0 -39
  772. package/dist/heatmapUtils-56758920.js +0 -45
  773. package/dist/highlightReasons-de432106.js +0 -19
  774. package/dist/hydrated-0e1c7565.js +0 -40
  775. package/dist/i3s-bb0b5b67.js +0 -809
  776. package/dist/icon-c6e3bd23.js +0 -127
  777. package/dist/imageBitmapUtils-881d8c64.js +0 -23
  778. package/dist/imageUtils-57eeedc5.js +0 -69
  779. package/dist/imageUtils-ef69c578.js +0 -89
  780. package/dist/imageryUtils-23f51cb1.js +0 -43
  781. package/dist/index-01c737ed.js +0 -42563
  782. package/dist/input-message-673a9baa.js +0 -92
  783. package/dist/input2-bbf6454e.js +0 -575
  784. package/dist/interactive-aeb2cb9f.js +0 -80
  785. package/dist/jsonContext-2dc288b1.js +0 -15
  786. package/dist/jsonUtils-1abd4bfc.js +0 -59
  787. package/dist/jsonUtils-913fa1bd.js +0 -86
  788. package/dist/jsonUtils-f6a5e63b.js +0 -476
  789. package/dist/kmlUtils-7c2744fe.js +0 -112
  790. package/dist/knowledgeGraphService-6a349e04.js +0 -739
  791. package/dist/knowledgegraph-c91b0bb2.js +0 -149
  792. package/dist/labelUtils-a3634e8f.js +0 -61
  793. package/dist/labelingInfo-568c9210.js +0 -46
  794. package/dist/layersCreator-4a5366ea.js +0 -151
  795. package/dist/layersLoader-b87d4857.js +0 -197
  796. package/dist/lazyLayerLoader-8817000c.js +0 -10
  797. package/dist/lclayout-64c67b4e.js +0 -773
  798. package/dist/lengthUtils-695e744c.js +0 -5
  799. package/dist/lerc-wasm-13192bf3.js +0 -325
  800. package/dist/libtess-asm-4883179d.js +0 -3673
  801. package/dist/libtess-fc70d1ce.js +0 -269
  802. package/dist/lineSegment-3aa941f5.js +0 -76
  803. package/dist/loadGLTFMesh-db6645f5.js +0 -181
  804. package/dist/loadable-266f324b.js +0 -24
  805. package/dist/loader-d1ce1bc1.js +0 -79
  806. package/dist/lyr3DWorker-dd48e619.js +0 -2108
  807. package/dist/mapViewDeps-226d9da3.js +0 -3052
  808. package/dist/mediaLayerUtils-ae485c27.js +0 -35
  809. package/dist/meshFeatureSet-8a2ad011.js +0 -126
  810. package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
  811. package/dist/multidimensionalUtils-508a3f3f.js +0 -290
  812. package/dist/normalizeUtilsSync-1dae280b.js +0 -181
  813. package/dist/number-5aa3a81b.js +0 -128
  814. package/dist/objectResourceUtils-642ab03e.js +0 -1455
  815. package/dist/observers-f646a6a4.js +0 -30
  816. package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
  817. package/dist/openCloseComponent-47eb52c6.js +0 -37
  818. package/dist/orientedBoundingBox-554ccdc6.js +0 -447
  819. package/dist/parser-0701286c.js +0 -488
  820. package/dist/pbf-5dd791f5.js +0 -215
  821. package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
  822. package/dist/pe-wasm-6c16b121.js +0 -887
  823. package/dist/persistable-9eb0e8df.js +0 -89
  824. package/dist/perspectiveUtils-b194621d.js +0 -42
  825. package/dist/pieChart-b97433d0.js +0 -555
  826. package/dist/plane-3398eec1.js +0 -160
  827. package/dist/popupUtils-c444b896.js +0 -22
  828. package/dist/popupUtils-d871563b.js +0 -50
  829. package/dist/portalItemUtils-4c4caad0.js +0 -57
  830. package/dist/portalLayers-cb07742f.js +0 -312
  831. package/dist/portalUtils-effd590f.js +0 -7
  832. package/dist/programUtils-65af7b7c.js +0 -59
  833. package/dist/project-ee9c2947.js +0 -21
  834. package/dist/projectPointToVector-7dc831a9.js +0 -14
  835. package/dist/projectVectorToVector-5163db7a.js +0 -13
  836. package/dist/quantityUtils-5cd4cf90.js +0 -33
  837. package/dist/quantizationUtils-0a8f74c6.js +0 -68
  838. package/dist/quat-a508aed3.js +0 -104
  839. package/dist/query-b6e1fd14.js +0 -89
  840. package/dist/queryAttachments-7b39ebdc.js +0 -39
  841. package/dist/queryEngineUtils-cb8e309e.js +0 -21
  842. package/dist/queryTopFeatures-2e0e3941.js +0 -50
  843. package/dist/queryZScale-c5733d0a.js +0 -12
  844. package/dist/rasterProjectionHelper-213afa27.js +0 -577
  845. package/dist/rasterUtils-f2e44e8b.js +0 -122
  846. package/dist/rasterizingUtils-25cc0190.js +0 -46
  847. package/dist/request-e0c679b3.js +0 -46
  848. package/dist/requestImageUtils-37d79281.js +0 -8
  849. package/dist/resourceExtension-5f3f1c80.js +0 -17
  850. package/dist/resourceUtils-0d68cbc2.js +0 -69
  851. package/dist/resourceUtils-374db840.js +0 -62
  852. package/dist/resourceUtils-43ce192b.js +0 -42
  853. package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
  854. package/dist/saveUtils-43fdc547.js +0 -24
  855. package/dist/scaleUtils-bdf8b6cb.js +0 -23
  856. package/dist/scrim-44eb4dc0.js +0 -114
  857. package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
  858. package/dist/sourceUtils-01d115c6.js +0 -71
  859. package/dist/sphere-908cd9aa.js +0 -199
  860. package/dist/statsWorker-49f9befe.js +0 -37
  861. package/dist/streamLayerUtils-29324e05.js +0 -31
  862. package/dist/styleUtils-82e8da52.js +0 -75
  863. package/dist/styleUtils-8541d60d.js +0 -14
  864. package/dist/sublayerUtils-eaac2486.js +0 -37
  865. package/dist/substitute-1f578d70.js +0 -52
  866. package/dist/symbolColorUtils-18fd6b3d.js +0 -8
  867. package/dist/symbolLayerUtils-4c58b291.js +0 -31
  868. package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
  869. package/dist/t9n-c1c2b6c8.js +0 -349
  870. package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
  871. package/dist/timeSupport-3f529cdb.js +0 -410
  872. package/dist/triangle-8a3a2ba8.js +0 -98
  873. package/dist/unitConversionUtils-f0ebaf75.js +0 -17
  874. package/dist/unitFormatUtils-555e2d94.js +0 -40
  875. package/dist/uploadAssetErrors-d1389781.js +0 -70
  876. package/dist/uploadAssets-5e85f09d.js +0 -330
  877. package/dist/utils-3a10b10c.js +0 -34
  878. package/dist/utils-505c54e9.js +0 -91
  879. package/dist/utils-5432e258.js +0 -433
  880. package/dist/utils-7a88ec6a.js +0 -419
  881. package/dist/utils-7fa9cdf9.js +0 -2746
  882. package/dist/utils-d252c575.js +0 -73
  883. package/dist/utils-f07e00b3.js +0 -232
  884. package/dist/utils-fda10b4b.js +0 -79
  885. package/dist/utils3-c34ab97c.js +0 -75
  886. package/dist/vec3-f79c600d.js +0 -81
  887. package/dist/vec42-36edeb73.js +0 -125
  888. package/dist/versionUtils-6935648b.js +0 -161
  889. package/dist/visualVariableUtils-c425461a.js +0 -267
  890. package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
  891. package/dist/webglDeps-5f18210d.js +0 -23
  892. package/dist/wfsUtils-6f7f1e3e.js +0 -343
  893. package/dist/workerHelper-9dc9a790.js +0 -11
  894. package/dist/xyChart-e5648fee.js +0 -3335
@@ -1,3335 +0,0 @@
1
- import { aD as It, i as S, r as k, b as G, z as nt, a3 as te, h as ct, aE as ee, N as mt, W as gt, w, aF as Ct, C as v, aG as Ot, ak as F, q as Xt, c as ie, aH as j, aI as se, a6 as ae, aJ as oe, am as kt, al as Vt, ar as _t, aK as Gt, at as B, au as E, aL as q, K as ne, an as re, ap as ht, aa as Yt, F as dt, a as tt, ad as et, aA as Et, f as St, aM as Ft, aN as le, m as he, ay as Lt } from "./Theme-f05b8eb0.js";
2
- import { s as Rt } from "./ColorSet-df5696b5.js";
3
- import { l as Y } from "./DefaultTheme-12dffc66.js";
4
- import { R as Nt, D as zt, _ as Bt, g as ot, U as Wt, V as Ut, k as V, I as de } from "./Tick-aef93b48.js";
5
- import { o as ce, n as jt } from "./Button-70963624.js";
6
- import { eq as it } from "./index-01c737ed.js";
7
- import "vue";
8
- function Ht(P) {
9
- return typeof P == "object" && "length" in P ? P : Array.from(P);
10
- }
11
- function Zt(P) {
12
- this._context = P;
13
- }
14
- function $t(P) {
15
- return new Zt(P);
16
- }
17
- function qt(P) {
18
- return P[0];
19
- }
20
- function Kt(P) {
21
- return P[1];
22
- }
23
- function Jt(P, t) {
24
- var e = V(!0), i = null, s = $t, a = null, n = Ut(r);
25
- function r(o) {
26
- var l, c, h, d = (o = Ht(o)).length, g = !1;
27
- for (i == null && (a = s(h = n())), l = 0; l <= d; ++l)
28
- !(l < d && e(c = o[l], l, o)) === g && ((g = !g) ? a.lineStart() : a.lineEnd()), g && a.point(+P(c, l, o), +t(c, l, o));
29
- if (h)
30
- return a = null, h + "" || null;
31
- }
32
- return P = typeof P == "function" ? P : P === void 0 ? qt : V(P), t = typeof t == "function" ? t : t === void 0 ? Kt : V(t), r.x = function(o) {
33
- return arguments.length ? (P = typeof o == "function" ? o : V(+o), r) : P;
34
- }, r.y = function(o) {
35
- return arguments.length ? (t = typeof o == "function" ? o : V(+o), r) : t;
36
- }, r.defined = function(o) {
37
- return arguments.length ? (e = typeof o == "function" ? o : V(!!o), r) : e;
38
- }, r.curve = function(o) {
39
- return arguments.length ? (s = o, i != null && (a = s(i)), r) : s;
40
- }, r.context = function(o) {
41
- return arguments.length ? (o == null ? i = a = null : a = s(i = o), r) : i;
42
- }, r;
43
- }
44
- function ge(P, t, e) {
45
- var i = null, s = V(!0), a = null, n = $t, r = null, o = Ut(l);
46
- function l(h) {
47
- var d, g, p, m, u, _ = (h = Ht(h)).length, f = !1, x = new Array(_), b = new Array(_);
48
- for (a == null && (r = n(u = o())), d = 0; d <= _; ++d) {
49
- if (!(d < _ && s(m = h[d], d, h)) === f)
50
- if (f = !f)
51
- g = d, r.areaStart(), r.lineStart();
52
- else {
53
- for (r.lineEnd(), r.lineStart(), p = d - 1; p >= g; --p)
54
- r.point(x[p], b[p]);
55
- r.lineEnd(), r.areaEnd();
56
- }
57
- f && (x[d] = +P(m, d, h), b[d] = +t(m, d, h), r.point(i ? +i(m, d, h) : x[d], e ? +e(m, d, h) : b[d]));
58
- }
59
- if (u)
60
- return r = null, u + "" || null;
61
- }
62
- function c() {
63
- return Jt().defined(s).curve(n).context(a);
64
- }
65
- return P = typeof P == "function" ? P : P === void 0 ? qt : V(+P), t = typeof t == "function" ? t : V(t === void 0 ? 0 : +t), e = typeof e == "function" ? e : e === void 0 ? Kt : V(+e), l.x = function(h) {
66
- return arguments.length ? (P = typeof h == "function" ? h : V(+h), i = null, l) : P;
67
- }, l.x0 = function(h) {
68
- return arguments.length ? (P = typeof h == "function" ? h : V(+h), l) : P;
69
- }, l.x1 = function(h) {
70
- return arguments.length ? (i = h == null ? null : typeof h == "function" ? h : V(+h), l) : i;
71
- }, l.y = function(h) {
72
- return arguments.length ? (t = typeof h == "function" ? h : V(+h), e = null, l) : t;
73
- }, l.y0 = function(h) {
74
- return arguments.length ? (t = typeof h == "function" ? h : V(+h), l) : t;
75
- }, l.y1 = function(h) {
76
- return arguments.length ? (e = h == null ? null : typeof h == "function" ? h : V(+h), l) : e;
77
- }, l.lineX0 = l.lineY0 = function() {
78
- return c().x(P).y(t);
79
- }, l.lineY1 = function() {
80
- return c().x(P).y(e);
81
- }, l.lineX1 = function() {
82
- return c().x(i).y(t);
83
- }, l.defined = function(h) {
84
- return arguments.length ? (s = typeof h == "function" ? h : V(!!h), l) : s;
85
- }, l.curve = function(h) {
86
- return arguments.length ? (n = h, a != null && (r = n(a)), l) : n;
87
- }, l.context = function(h) {
88
- return arguments.length ? (h == null ? a = r = null : r = n(a = h), l) : a;
89
- }, l;
90
- }
91
- Zt.prototype = { areaStart: function() {
92
- this._line = 0;
93
- }, areaEnd: function() {
94
- this._line = NaN;
95
- }, lineStart: function() {
96
- this._point = 0;
97
- }, lineEnd: function() {
98
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
99
- }, point: function(P, t) {
100
- switch (P = +P, t = +t, this._point) {
101
- case 0:
102
- this._point = 1, this._line ? this._context.lineTo(P, t) : this._context.moveTo(P, t);
103
- break;
104
- case 1:
105
- this._point = 2;
106
- default:
107
- this._context.lineTo(P, t);
108
- }
109
- } };
110
- class ue extends re {
111
- setupDefaultRules() {
112
- super.setupDefaultRules();
113
- const t = this._root.interfaceColors, e = this._root.language, i = this.rule.bind(this);
114
- i("XYChart").setAll({ colors: Rt.new(this._root, {}), paddingLeft: 20, paddingRight: 20, paddingTop: 16, paddingBottom: 16, panX: !1, panY: !1, wheelStep: 0.25, arrangeTooltips: !0, pinchZoomX: !1, pinchZoomY: !1 }), i("XYSeries").setAll({ legendLabelText: "{name}" }), i("XYChart", ["scrollbar", "chart"]).setAll({ paddingBottom: 0, paddingLeft: 0, paddingTop: 0, paddingRight: 0, colors: Rt.new(this._root, { saturation: 0 }) });
115
- {
116
- const o = i("Graphics", ["scrollbar", "overlay"]);
117
- o.setAll({ fillOpacity: 0.5 }), Y(o, "fill", t, "background");
118
- }
119
- i("RoundedRectangle", ["xy", "scrollbar", "thumb"]).setAll({ cornerRadiusTR: 0, cornerRadiusTL: 0, cornerRadiusBR: 0, cornerRadiusBL: 0, fillOpacity: 0, focusable: !0 }), i("RoundedRectangle", ["xy", "scrollbar", "thumb"]).states.create("hover", { fillOpacity: 0.4 }), i("RoundedRectangle", ["xy", "scrollbar", "chart", "background"]).setAll({ cornerRadiusTL: 0, cornerRadiusBL: 0, cornerRadiusTR: 0, cornerRadiusBR: 0 }), i("RoundedRectangle", ["xy", "scrollbar", "chart", "background", "resize", "button"]).setAll({ cornerRadiusBL: 40, cornerRadiusBR: 40, cornerRadiusTL: 40, cornerRadiusTR: 40 }), i("AxisRendererX", ["xy", "chart", "scrollbar"]).setAll({ strokeOpacity: 0, inside: !0 }), i("AxisRendererY", ["xy", "chart", "scrollbar"]).setAll({ strokeOpacity: 0, inside: !0, minGridDistance: 5 }), i("AxisLabel", ["xy", "scrollbar", "x"]).setAll({ opacity: 0.5, centerY: k, minPosition: 0.01, maxPosition: 0.99, fontSize: "0.8em" }), i("AxisLabel", ["category"]).setAll({ text: "{category}", populateText: !0 }), i("AxisLabel", ["x"]).setAll({ centerY: 0 }), i("AxisLabel", ["x", "inside"]).setAll({ centerY: k }), i("AxisLabel", ["x", "inside", "opposite"]).setAll({ centerY: 0 }), i("AxisLabel", ["x", "opposite"]).setAll({ centerY: k }), i("AxisLabel", ["y"]).setAll({ centerX: k }), i("AxisLabel", ["y", "inside"]).setAll({ centerX: 0 }), i("AxisLabel", ["y", "inside", "opposite"]).setAll({ centerX: k }), i("AxisLabel", ["y", "opposite"]).setAll({ centerX: 0 }), i("AxisLabel", ["minor"]).setAll({ fontSize: "0.6em" }), i("AxisLabel", ["xy", "scrollbar", "y"]).setAll({ visible: !1 }), i("Grid", ["xy", "scrollbar", "y"]).setAll({ visible: !1 }), i("Grid", ["xy", "scrollbar", "x"]).setAll({ opacity: 0.5 }), i("XYCursor").setAll({ behavior: "none", layer: 30, exportable: !1, snapToSeriesBy: "xy", moveThreshold: 1 });
120
- {
121
- const o = i("Grid", ["cursor", "x"]);
122
- o.setAll({ strokeOpacity: 0.8, strokeDasharray: [2, 2], ariaLabel: e.translate("Use left and right arrows to move selection") }), Y(o, "stroke", t, "alternativeBackground");
123
- }
124
- {
125
- const o = i("Grid", ["cursor", "y"]);
126
- o.setAll({ strokeOpacity: 0.8, strokeDasharray: [2, 2], ariaLabel: e.translate("Use up and down arrows to move selection") }), Y(o, "stroke", t, "alternativeBackground");
127
- }
128
- {
129
- const o = i("Graphics", ["cursor", "selection"]);
130
- o.setAll({ fillOpacity: 0.15 }), Y(o, "fill", t, "alternativeBackground");
131
- }
132
- i("Axis").setAll({ start: 0, end: 1, minZoomCount: 1, maxZoomCount: 1 / 0, maxZoomFactor: 1e3, maxDeviation: 0.1, snapTooltip: !0, tooltipLocation: 0.5, panX: !0, panY: !0, zoomX: !0, zoomY: !0, fixAxisSize: !0 }), i("AxisLabel").setAll({ location: 0.5, multiLocation: 0, centerX: ht, centerY: ht, paddingTop: 3, paddingBottom: 3, paddingLeft: 5, paddingRight: 5 }), i("Container", ["axis", "header"]).setAll({ layer: 30 }), i("Rectangle", ["axis", "header", "background"]).setAll({ crisp: !0 });
133
- {
134
- const o = i("AxisRenderer");
135
- o.setAll({ crisp: !0, strokeOpacity: 0 }), Y(o, "stroke", t, "grid");
136
- }
137
- i("AxisRendererX").setAll({ minGridDistance: 120, opposite: !1, inversed: !1, cellStartLocation: 0, cellEndLocation: 1, width: k }), i("AxisRendererY").setAll({ minGridDistance: 40, opposite: !1, inversed: !1, cellStartLocation: 0, cellEndLocation: 1, height: k });
138
- {
139
- const o = i("Rectangle", ["axis", "thumb"]);
140
- o.setAll({ fillOpacity: 0 }), Y(o, "fill", t, "alternativeBackground"), o.states.create("hover", { fillOpacity: 0.1 });
141
- }
142
- i("Rectangle", ["axis", "thumb", "x"]).setAll({ cursorOverStyle: "ew-resize" }), i("Rectangle", ["axis", "thumb", "y"]).setAll({ cursorOverStyle: "ns-resize" });
143
- {
144
- const o = i("Grid");
145
- o.setAll({ location: 0, strokeOpacity: 0.15, crisp: !0 }), Y(o, "stroke", t, "grid");
146
- }
147
- {
148
- const o = i("Grid", ["minor"]);
149
- o.setAll({ location: 0, strokeOpacity: 0.07, crisp: !0 }), Y(o, "stroke", t, "grid");
150
- }
151
- i("Grid", ["base"]).setAll({ strokeOpacity: 0.3 });
152
- {
153
- const o = i("Graphics", ["axis", "fill"]);
154
- o.setAll({ visible: !1, isMeasured: !1, position: "absolute", fillOpacity: 0.05 }), Y(o, "fill", t, "alternativeBackground");
155
- }
156
- i("Graphics", ["axis", "fill", "range"]).setAll({ isMeasured: !0 }), i("Graphics", ["series", "fill", "range"]).setAll({ visible: !1, isMeasured: !0 }), i("Grid", ["series", "range"]).setAll({ visible: !1 }), i("AxisTick", ["series", "range"]).setAll({ visible: !1 }), i("AxisLabel", ["series", "range"]).setAll({ visible: !1 });
157
- {
158
- const o = i("AxisTick");
159
- o.setAll({ location: 0.5, multiLocation: 0, strokeOpacity: 1, isMeasured: !1, position: "absolute", visible: !1 }), Y(o, "stroke", t, "grid");
160
- }
161
- i("CategoryAxis").setAll({ startLocation: 0, endLocation: 1, fillRule: (o, l) => {
162
- const c = o.get("axisFill");
163
- c && (v(l) && l % 2 != 0 ? c.setPrivate("visible", !1) : c.setPrivate("visible", !0));
164
- } });
165
- const s = [{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 5 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 50 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "millisecond", count: 500 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 5 }, { timeUnit: "second", count: 10 }, { timeUnit: "second", count: 30 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 5 }, { timeUnit: "minute", count: 10 }, { timeUnit: "minute", count: 15 }, { timeUnit: "minute", count: 30 }, { timeUnit: "hour", count: 1 }, { timeUnit: "hour", count: 3 }, { timeUnit: "hour", count: 6 }, { timeUnit: "hour", count: 12 }, { timeUnit: "day", count: 1 }, { timeUnit: "day", count: 2 }, { timeUnit: "day", count: 3 }, { timeUnit: "day", count: 4 }, { timeUnit: "day", count: 5 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "month", count: 2 }, { timeUnit: "month", count: 3 }, { timeUnit: "month", count: 6 }, { timeUnit: "year", count: 1 }, { timeUnit: "year", count: 2 }, { timeUnit: "year", count: 5 }, { timeUnit: "year", count: 10 }, { timeUnit: "year", count: 50 }, { timeUnit: "year", count: 100 }, { timeUnit: "year", count: 200 }, { timeUnit: "year", count: 500 }, { timeUnit: "year", count: 1e3 }, { timeUnit: "year", count: 2e3 }, { timeUnit: "year", count: 5e3 }, { timeUnit: "year", count: 1e4 }, { timeUnit: "year", count: 1e5 }], a = { millisecond: e.translate("_date_millisecond"), second: e.translate("_date_second"), minute: e.translate("_date_minute"), hour: e.translate("_date_hour"), day: e.translate("_date_day"), week: e.translate("_date_day"), month: e.translate("_date_month"), year: e.translate("_date_year") }, n = { millisecond: e.translate("_date_millisecond"), second: e.translate("_date_second"), minute: e.translate("_date_minute"), hour: e.translate("_date_day"), day: e.translate("_date_day"), week: e.translate("_date_day"), month: e.translate("_date_month") + " " + e.translate("_date_year"), year: e.translate("_date_year") }, r = { millisecond: e.translate("_date_millisecond_full"), second: e.translate("_date_second_full"), minute: e.translate("_date_minute_full"), hour: e.translate("_date_hour_full"), day: e.translate("_date_day_full"), week: e.translate("_date_week_full"), month: e.translate("_date_month_full"), year: e.translate("_date_year") };
166
- i("CategoryDateAxis").setAll({ markUnitChange: !0, gridIntervals: Yt(s), dateFormats: dt(a), periodChangeDateFormats: dt(n) }), i("DateAxis").setAll({ maxZoomFactor: null, strictMinMax: !0, startLocation: 0, endLocation: 1, markUnitChange: !0, groupData: !1, groupCount: 500, gridIntervals: Yt(s), dateFormats: dt(a), periodChangeDateFormats: dt(n), tooltipDateFormats: r, groupIntervals: [{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 10 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 10 }, { timeUnit: "hour", count: 1 }, { timeUnit: "day", count: 1 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "year", count: 1 }], fillRule: (o) => {
167
- const l = o.get("axisFill");
168
- if (l) {
169
- const c = o.component, h = o.get("value"), d = o.get("endValue"), g = c.intervalDuration(), p = c.getPrivate("baseInterval"), m = c.getPrivate("gridInterval", p);
170
- let u = c.getPrivate("min", 0);
171
- if (u = de(new Date(u), m.timeUnit, m.count, this._root.locale.firstDayOfWeek, this._root.utc, void 0, this._root.timezone).getTime(), h != null && d != null) {
172
- const _ = Math.round(Math.round((h - u) / g)) / 2;
173
- _ == Math.round(_) ? l.setPrivate("visible", !0) : l.setPrivate("visible", !1);
174
- }
175
- }
176
- } }), i("GaplessDateAxis").setAll({ fillRule: (o) => {
177
- const l = o.get("axisFill");
178
- if (l) {
179
- const c = o.get("index");
180
- let h = !1;
181
- v(c) && c % 2 != 0 || (h = !0), l.setPrivate("visible", h);
182
- }
183
- } }), i("ValueAxis").setAll({ baseValue: 0, logarithmic: !1, strictMinMax: !1, autoZoom: !0, fillRule: (o) => {
184
- const l = o.get("axisFill");
185
- if (l) {
186
- const c = o.component, h = o.get("value"), d = c.getPrivate("step");
187
- v(h) && v(d) && (j(h / d / 2, 5) == Math.round(h / d / 2) ? l.setPrivate("visible", !1) : l.setPrivate("visible", !0));
188
- }
189
- } }), i("DurationAxis").setAll({ baseUnit: "second" }), i("XYSeries").setAll({ maskBullets: !0, stackToNegative: !0, locationX: 0.5, locationY: 0.5, snapTooltip: !1, openValueXGrouped: "open", openValueYGrouped: "open", valueXGrouped: "close", valueYGrouped: "close", seriesTooltipTarget: "series" }), i("BaseColumnSeries").setAll({ adjustBulletPosition: !0 }), i("ColumnSeries").setAll({ clustered: !0 }), i("RoundedRectangle", ["series", "column"]).setAll({ position: "absolute", isMeasured: !1, width: tt(70), height: tt(70), strokeWidth: 1, strokeOpacity: 1, cornerRadiusBL: 0, cornerRadiusTL: 0, cornerRadiusBR: 0, cornerRadiusTR: 0, fillOpacity: 1, role: "figure" }), i("LineSeries").setAll({ connect: !0, autoGapCount: 1.1, stackToNegative: !1 }), i("Graphics", ["series", "stroke"]).setAll({ position: "absolute", strokeWidth: 1, strokeOpacity: 1, isMeasured: !1 }), i("Graphics", ["series", "fill"]).setAll({ visible: !1, fillOpacity: 0, position: "absolute", strokeWidth: 0, strokeOpacity: 0, isMeasured: !1 }), i("Graphics", ["line", "series", "legend", "marker", "stroke"]).setAll({ draw: (o, l) => {
190
- const c = l.parent;
191
- if (c) {
192
- const h = c.height(), d = c.width();
193
- o.moveTo(0, h / 2), o.lineTo(d, h / 2);
194
- }
195
- } });
196
- {
197
- const o = i("Graphics", ["line", "series", "legend", "marker", "stroke"]).states.create("disabled", {});
198
- Y(o, "stroke", t, "disabled");
199
- }
200
- i("Graphics", ["line", "series", "legend", "marker", "fill"]).setAll({ draw: (o, l) => {
201
- const c = l.parent;
202
- if (c) {
203
- const h = c.height(), d = c.width();
204
- o.moveTo(0, 0), o.lineTo(d, 0), o.lineTo(d, h), o.lineTo(0, h), o.lineTo(0, 0);
205
- }
206
- } });
207
- {
208
- const o = i("Graphics", ["line", "series", "legend", "marker", "fill"]).states.create("disabled", {});
209
- Y(o, "stroke", t, "disabled");
210
- }
211
- i("SmoothedXYLineSeries").setAll({ tension: 0.5 }), i("SmoothedXLineSeries").setAll({ tension: 0.5 }), i("SmoothedYLineSeries").setAll({ tension: 0.5 }), i("Candlestick").setAll({ position: "absolute", isMeasured: !1, width: tt(50), height: tt(50), strokeWidth: 1, strokeOpacity: 1, cornerRadiusBL: 0, cornerRadiusTL: 0, cornerRadiusBR: 0, cornerRadiusTR: 0, fillOpacity: 1, role: "figure" }), i("OHLC").setAll({ width: tt(80), height: tt(80) }), i("CandlestickSeries").setAll({ lowValueXGrouped: "low", lowValueYGrouped: "low", highValueXGrouped: "high", highValueYGrouped: "high", openValueXGrouped: "open", openValueYGrouped: "open", valueXGrouped: "close", valueYGrouped: "close" });
212
- {
213
- const o = i("Rectangle", ["column", "autocolor"]).states.create("riseFromOpen", {});
214
- Y(o, "fill", t, "positive"), Y(o, "stroke", t, "positive");
215
- }
216
- {
217
- const o = i("Rectangle", ["column", "autocolor"]).states.create("dropFromOpen", {});
218
- Y(o, "fill", t, "negative"), Y(o, "stroke", t, "negative");
219
- }
220
- i("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromOpen", { fillOpacity: 0 }), i("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromOpen", { fillOpacity: 1 });
221
- {
222
- const o = i("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromPrevious", {});
223
- Y(o, "fill", t, "positive"), Y(o, "stroke", t, "positive");
224
- }
225
- {
226
- const o = i("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromPrevious", {});
227
- Y(o, "fill", t, "negative"), Y(o, "stroke", t, "negative");
228
- }
229
- i("RoundedRectangle", ["rangegrip"]).setAll({ strokeOpacity: 0, fillOpacity: 0, strokeWidth: 1, width: 12, height: 12 });
230
- {
231
- const o = i("Graphics", ["rangegrip", "button", "icon"]);
232
- o.setAll({ interactive: !1, crisp: !0, strokeOpacity: 0.5, draw: (l) => {
233
- l.moveTo(0, 0.5), l.lineTo(0, 12.5), l.moveTo(2, 0.5), l.lineTo(2, 12.5), l.moveTo(4, 0.5), l.lineTo(4, 12.5);
234
- } }), Y(o, "stroke", t, "secondaryButtonText");
235
- }
236
- i("Button", ["rangegrip"]).setAll({ draggable: !0, paddingTop: 0, paddingBottom: 0 }), i("Button", ["rangegrip", "vertical"]).setAll({ rotation: 90, cursorOverStyle: "ns-resize", centerX: ht }), i("Button", ["rangegrip", "horizontal"]).setAll({ cursorOverStyle: "ew-resize", centerX: ht }), i("Button", ["rangegrip", "vertical", "left"]).setAll({ centerY: k }), i("Button", ["rangegrip", "vertical", "right"]).setAll({ centerY: 0 }), i("Button", ["rangegrip", "horizontal", "top"]).setAll({ centerY: 0 }), i("Button", ["rangegrip", "horizontal", "bottom"]).setAll({ centerY: k });
237
- }
238
- }
239
- class ft extends Nt {
240
- constructor() {
241
- super(...arguments), Object.defineProperty(this, "xAxes", { enumerable: !0, configurable: !0, writable: !0, value: new It() }), Object.defineProperty(this, "yAxes", { enumerable: !0, configurable: !0, writable: !0, value: new It() }), Object.defineProperty(this, "topAxesContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.chartContainer.children.push(S.new(this._root, { width: k, layout: this._root.verticalLayout })) }), Object.defineProperty(this, "yAxesAndPlotContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.chartContainer.children.push(S.new(this._root, { width: k, height: k, layout: this._root.horizontalLayout })) }), Object.defineProperty(this, "bottomAxesContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.chartContainer.children.push(S.new(this._root, { width: k, layout: this._root.verticalLayout })) }), Object.defineProperty(this, "leftAxesContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.yAxesAndPlotContainer.children.push(S.new(this._root, { height: k, layout: this._root.horizontalLayout })) }), Object.defineProperty(this, "plotsContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.yAxesAndPlotContainer.children.push(S.new(this._root, { width: k, height: k, maskContent: !1 })) }), Object.defineProperty(this, "plotContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.plotsContainer.children.push(S.new(this._root, { width: k, height: k })) }), Object.defineProperty(this, "topPlotContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.plotsContainer.children.push(S.new(this._root, { width: k, height: k })) }), Object.defineProperty(this, "gridContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.plotContainer.children.push(S.new(this._root, { width: k, height: k, isMeasured: !1 })) }), Object.defineProperty(this, "topGridContainer", { enumerable: !0, configurable: !0, writable: !0, value: S.new(this._root, { width: k, height: k, isMeasured: !1 }) }), Object.defineProperty(this, "rightAxesContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.yAxesAndPlotContainer.children.push(S.new(this._root, { height: k, layout: this._root.horizontalLayout })) }), Object.defineProperty(this, "axisHeadersContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.plotContainer.children.push(S.new(this._root, {})) }), Object.defineProperty(this, "zoomOutButton", { enumerable: !0, configurable: !0, writable: !0, value: this.topPlotContainer.children.push(ce.new(this._root, { themeTags: ["zoom"], icon: G.new(this._root, { themeTags: ["button", "icon"] }) })) }), Object.defineProperty(this, "_movePoint", { enumerable: !0, configurable: !0, writable: !0, value: { x: 0, y: 0 } }), Object.defineProperty(this, "_wheelDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_otherCharts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_movePoints", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_downStartX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downEndX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downStartY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downEndY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
242
- }
243
- _afterNew() {
244
- this._defaultThemes.push(ue.new(this._root)), super._afterNew(), this._disposers.push(this.xAxes), this._disposers.push(this.yAxes);
245
- const t = this._root;
246
- let e = this._root.verticalLayout;
247
- const i = this.zoomOutButton;
248
- i.events.on("click", () => {
249
- this.zoomOut();
250
- }), i.hide(0), i.states.lookup("default").set("opacity", 1), this.chartContainer.set("layout", e);
251
- const s = this.plotContainer;
252
- s.children.push(this.seriesContainer), this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)), this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)), s.children.push(this.topGridContainer), s.children.push(this.bulletsContainer), s.set("interactive", !0), s.set("interactiveChildren", !1), s.set("background", nt.new(t, { themeTags: ["xy", "background"], fill: te.fromHex(0), fillOpacity: 0 })), this._disposers.push(s.events.on("pointerdown", (a) => {
253
- this._handlePlotDown(a);
254
- })), this._disposers.push(s.events.on("globalpointerup", (a) => {
255
- this._handlePlotUp(a);
256
- })), this._disposers.push(s.events.on("globalpointermove", (a) => {
257
- this._handlePlotMove(a);
258
- })), this._maskGrid(), this._setUpTouch();
259
- }
260
- _beforeChanged() {
261
- super._beforeChanged(), (this.isDirty("pinchZoomX") || this.isDirty("pinchZoomY") || this.get("panX") || this.get("panY")) && this._setUpTouch();
262
- }
263
- _setUpTouch() {
264
- this.plotContainer._display.cancelTouch || (this.plotContainer._display.cancelTouch = !!(this.get("pinchZoomX") || this.get("pinchZoomY") || this.get("panX") || this.get("panY")));
265
- }
266
- _maskGrid() {
267
- this.gridContainer.set("maskContent", !0), this.topGridContainer.set("maskContent", !0);
268
- }
269
- _removeSeries(t) {
270
- t._unstack(), t._posXDp && t._posXDp.dispose(), t._posYDp && t._posYDp.dispose(), t.set("baseAxis", void 0);
271
- const e = t.get("xAxis");
272
- e && (ct(e.series, t), e.markDirtyExtremes());
273
- const i = t.get("yAxis");
274
- i && (ct(i.series, t), i.markDirtyExtremes());
275
- const s = this.get("cursor");
276
- if (s) {
277
- const a = s.get("snapToSeries");
278
- a && ct(a, t);
279
- }
280
- super._removeSeries(t);
281
- }
282
- handleWheel(t) {
283
- const e = this.get("wheelX"), i = this.get("wheelY"), s = this.plotContainer, a = t.originalEvent;
284
- if (!ee(a, this))
285
- return;
286
- a.preventDefault();
287
- const n = s.toLocal(t.point), r = this.get("wheelStep", 0.2), o = a.deltaY / 100, l = a.deltaX / 100, c = this.get("wheelZoomPositionX"), h = this.get("wheelZoomPositionY");
288
- e !== "zoomX" && e !== "zoomXY" || l == 0 || this.xAxes.each((d) => {
289
- if (d.get("zoomX")) {
290
- let g = d.get("start"), p = d.get("end"), m = d.fixPosition(n.x / s.width());
291
- c != null && (m = c);
292
- let u = g - r * (p - g) * l * m, _ = p + r * (p - g) * l * (1 - m);
293
- 1 / (_ - u) < d.getPrivate("maxZoomFactor", 1 / 0) / d.get("minZoomCount", 1) && this._handleWheelAnimation(d.zoom(u, _));
294
- }
295
- }), i !== "zoomX" && i !== "zoomXY" || o == 0 || this.xAxes.each((d) => {
296
- if (d.get("zoomX")) {
297
- let g = d.get("start"), p = d.get("end"), m = d.fixPosition(n.x / s.width());
298
- c != null && (m = c);
299
- let u = g - r * (p - g) * o * m, _ = p + r * (p - g) * o * (1 - m);
300
- 1 / (_ - u) < d.getPrivate("maxZoomFactor", 1 / 0) / d.get("minZoomCount", 1) && this._handleWheelAnimation(d.zoom(u, _));
301
- }
302
- }), e !== "zoomY" && e !== "zoomXY" || l == 0 || this.yAxes.each((d) => {
303
- if (d.get("zoomY")) {
304
- let g = d.get("start"), p = d.get("end"), m = d.fixPosition(n.y / s.height());
305
- h != null && (m = h);
306
- let u = g - r * (p - g) * l * m, _ = p + r * (p - g) * l * (1 - m);
307
- 1 / (_ - u) < d.getPrivate("maxZoomFactor", 1 / 0) / d.get("minZoomCount", 1) && this._handleWheelAnimation(d.zoom(u, _));
308
- }
309
- }), i !== "zoomY" && i !== "zoomXY" || o == 0 || this.yAxes.each((d) => {
310
- if (d.get("zoomY")) {
311
- let g = d.get("start"), p = d.get("end"), m = d.fixPosition(n.y / s.height());
312
- h != null && (m = h);
313
- let u = g - r * (p - g) * o * m, _ = p + r * (p - g) * o * (1 - m);
314
- 1 / (_ - u) < d.getPrivate("maxZoomFactor", 1 / 0) / d.get("minZoomCount", 1) && this._handleWheelAnimation(d.zoom(u, _));
315
- }
316
- }), e !== "panX" && e !== "panXY" || l == 0 || this.xAxes.each((d) => {
317
- if (d.get("panX")) {
318
- let g = d.get("start"), p = d.get("end"), m = this._getWheelSign(d) * r * (p - g) * l, u = g + m, _ = p + m, f = this._fixWheel(u, _);
319
- u = f[0], _ = f[1], this._handleWheelAnimation(d.zoom(u, _));
320
- }
321
- }), i !== "panX" && i !== "panXY" || o == 0 || this.xAxes.each((d) => {
322
- if (d.get("panX")) {
323
- let g = d.get("start"), p = d.get("end"), m = this._getWheelSign(d) * r * (p - g) * o, u = g + m, _ = p + m, f = this._fixWheel(u, _);
324
- u = f[0], _ = f[1], this._handleWheelAnimation(d.zoom(u, _));
325
- }
326
- }), e !== "panY" && e !== "panXY" || l == 0 || this.yAxes.each((d) => {
327
- if (d.get("panY")) {
328
- let g = d.get("start"), p = d.get("end"), m = this._getWheelSign(d) * r * (p - g) * l, u = g + m, _ = p + m, f = this._fixWheel(u, _);
329
- u = f[0], _ = f[1], this._handleWheelAnimation(d.zoom(u, _));
330
- }
331
- }), i !== "panY" && i !== "panXY" || o == 0 || this.yAxes.each((d) => {
332
- if (d.get("panY")) {
333
- let g = d.get("start"), p = d.get("end"), m = this._getWheelSign(d) * r * (p - g) * o, u = g - m, _ = p - m, f = this._fixWheel(u, _);
334
- u = f[0], _ = f[1], this._handleWheelAnimation(d.zoom(u, _));
335
- }
336
- });
337
- }
338
- _handleSetWheel() {
339
- const t = this.get("wheelX"), e = this.get("wheelY"), i = this.plotContainer;
340
- t !== "none" || e !== "none" ? (this._wheelDp = i.events.on("wheel", (s) => {
341
- const a = s.originalEvent;
342
- (t !== "none" && Math.abs(a.deltaX) != 0 || e !== "none" && Math.abs(a.deltaY) != 0) && this.handleWheel(s);
343
- }), this._disposers.push(this._wheelDp)) : this._wheelDp && this._wheelDp.dispose();
344
- }
345
- _getWheelSign(t) {
346
- let e = 1;
347
- return t.get("renderer").get("inversed") && (e = -1), e;
348
- }
349
- _fixWheel(t, e) {
350
- const i = e - t;
351
- return t < 0 && (e = (t = 0) + i), e > 1 && (t = (e = 1) - i), [t, e];
352
- }
353
- _handlePlotDown(t) {
354
- const e = t.originalEvent;
355
- if (e.button == 2)
356
- return;
357
- const i = this.plotContainer;
358
- let s = i.toLocal(t.point);
359
- if ((this.get("pinchZoomX") || this.get("pinchZoomY")) && e.pointerId && mt(i._downPoints).length > 0) {
360
- const a = this.xAxes.getIndex(0), n = this.yAxes.getIndex(0);
361
- a && (this._downStartX = a.get("start", 0), this._downEndX = a.get("end", 1)), n && (this._downStartY = n.get("start", 0), this._downEndY = n.get("end", 1));
362
- }
363
- if ((this.get("panX") || this.get("panY")) && s.x >= 0 && s.y >= 0 && s.x <= i.width() && s.y <= this.height()) {
364
- this._downPoint = { x: e.clientX, y: e.clientY };
365
- const a = this.get("panX"), n = this.get("panY");
366
- a && this.xAxes.each((o) => {
367
- o._panStart = o.get("start"), o._panEnd = o.get("end");
368
- }), n && this.yAxes.each((o) => {
369
- o._panStart = o.get("start"), o._panEnd = o.get("end");
370
- });
371
- const r = "panstarted";
372
- this.events.isEnabled(r) && this.events.dispatch(r, { type: r, target: this, originalEvent: t.originalEvent });
373
- }
374
- }
375
- _handleWheelAnimation(t) {
376
- t ? t.events.on("stopped", () => {
377
- this._dispatchWheelAnimation();
378
- }) : this._dispatchWheelAnimation();
379
- }
380
- _dispatchWheelAnimation() {
381
- const t = "wheelended";
382
- this.events.isEnabled(t) && this.events.dispatch(t, { type: t, target: this });
383
- }
384
- _handlePlotUp(t) {
385
- const e = this._downPoint;
386
- if (e && (this.get("panX") || this.get("panY"))) {
387
- let i = this.plotContainer.toLocal(t.point);
388
- if (i.x == e.x && i.y == e.y) {
389
- const a = "pancancelled";
390
- this.events.isEnabled(a) && this.events.dispatch(a, { type: a, target: this, originalEvent: t.originalEvent });
391
- }
392
- const s = "panended";
393
- this.events.isEnabled(s) && this.events.dispatch(s, { type: s, target: this, originalEvent: t.originalEvent });
394
- }
395
- this._downPoint = void 0, this.xAxes.each((i) => {
396
- i._isPanning = !1;
397
- }), this.yAxes.each((i) => {
398
- i._isPanning = !1;
399
- });
400
- }
401
- _handlePlotMove(t) {
402
- const e = this.plotContainer;
403
- if (this.get("pinchZoomX") || this.get("pinchZoomY")) {
404
- const s = t.originalEvent.pointerId;
405
- if (s && (this._movePoints[s] = t.point, mt(e._downPoints).length > 1))
406
- return void this._handlePinch();
407
- }
408
- let i = this._downPoint;
409
- if (i) {
410
- i = e.toLocal(this._root.documentPointToRoot(i));
411
- let s = e.toLocal(t.point);
412
- const a = this.get("panX"), n = this.get("panY");
413
- if (a) {
414
- let r = this.get("scrollbarX");
415
- r && r.events.disableType("rangechanged"), this.xAxes.each((o) => {
416
- if (o.get("panX")) {
417
- o._isPanning = !0;
418
- let l = o._panStart, c = o._panEnd, h = (c - l) * (i.x - s.x) / e.width();
419
- o.get("renderer").get("inversed") && (h *= -1);
420
- let d = l + h, g = c + h;
421
- g - d < 1 + 2 * o.get("maxDeviation", 1) && (o.set("start", d), o.set("end", g));
422
- }
423
- }), r && r.events.enableType("rangechanged");
424
- }
425
- if (n) {
426
- let r = this.get("scrollbarY");
427
- r && r.events.disableType("rangechanged"), this.yAxes.each((o) => {
428
- if (o.get("panY")) {
429
- o._isPanning = !0;
430
- let l = o._panStart, c = o._panEnd, h = (c - l) * (i.y - s.y) / e.height();
431
- o.get("renderer").get("inversed") && (h *= -1);
432
- let d = l - h, g = c - h;
433
- g - d < 1 + 2 * o.get("maxDeviation", 1) && (o.set("start", d), o.set("end", g));
434
- }
435
- }), r && r.events.enableType("rangechanged");
436
- }
437
- }
438
- }
439
- _handlePinch() {
440
- const t = this.plotContainer;
441
- let e = 0, i = [], s = [];
442
- if (gt(t._downPoints, (a, n) => {
443
- i[e] = n;
444
- let r = this._movePoints[a];
445
- r && (s[e] = r), e++;
446
- }), i.length > 1 && s.length > 1) {
447
- const a = t.width(), n = t.height();
448
- let r = i[0], o = i[1], l = s[0], c = s[1];
449
- if (r && o && l && c) {
450
- if (l = t.toLocal(l), c = t.toLocal(c), r = t.toLocal(r), o = t.toLocal(o), this.get("pinchZoomX")) {
451
- const h = this._downStartX, d = this._downEndX;
452
- if (h != null && d != null) {
453
- r.x > o.x && ([r, o] = [o, r], [l, c] = [c, l]);
454
- let g = h + r.x / a * (d - h), p = h + o.x / a * (d - h), m = h + l.x / a * (d - h), u = h + c.x / a * (d - h), _ = Math.max(1e-3, p - g) / Math.max(1e-3, u - m), f = h * _ + g - m * _, x = d * _ + p - u * _;
455
- this.xAxes.each((b) => {
456
- let y = b.fixPosition(f), A = b.fixPosition(x);
457
- b.zoom(y, A, 0);
458
- });
459
- }
460
- }
461
- if (this.get("pinchZoomY")) {
462
- const h = this._downStartY, d = this._downEndY;
463
- if (h != null && d != null) {
464
- r.y < o.y && ([r, o] = [o, r], [l, c] = [c, l]);
465
- let g = h + (1 - r.y / n) * (d - h), p = h + (1 - o.y / n) * (d - h), m = h + (1 - l.y / n) * (d - h), u = h + (1 - c.y / n) * (d - h), _ = Math.max(1e-3, p - g) / Math.max(1e-3, u - m), f = h * _ + g - m * _, x = d * _ + p - u * _;
466
- this.yAxes.each((b) => {
467
- let y = b.fixPosition(f), A = b.fixPosition(x);
468
- b.zoom(y, A, 0);
469
- });
470
- }
471
- }
472
- }
473
- }
474
- }
475
- _handleCursorPosition() {
476
- const t = this.get("cursor");
477
- if (t) {
478
- const e = t.getPrivate("point");
479
- let i = t.get("snapToSeries");
480
- if (t._downPoint && (i = void 0), i && e) {
481
- const s = t.get("snapToSeriesBy"), a = [];
482
- w(i, (o) => {
483
- if (!o.isHidden() && !o.isHiding())
484
- if (s != "x!" && s != "y!") {
485
- const l = o.startIndex(), c = o.endIndex();
486
- for (let h = l; h < c; h++) {
487
- const d = o.dataItems[h];
488
- d && !d.isHidden() && a.push(d);
489
- }
490
- } else {
491
- const l = o.get("tooltipDataItem");
492
- l && a.push(l);
493
- }
494
- });
495
- let n, r = 1 / 0;
496
- if (w(a, (o) => {
497
- const l = o.get("point");
498
- if (l) {
499
- let c = 0;
500
- c = s == "x" || s == "x!" ? Math.abs(e.x - l.x) : s == "y" || s == "y!" ? Math.abs(e.y - l.y) : Math.hypot(e.x - l.x, e.y - l.y), c < r && (r = c, n = o);
501
- }
502
- }), w(i, (o) => {
503
- const l = o.get("tooltip");
504
- l && l._setDataItem(void 0);
505
- }), n) {
506
- let o = n.component;
507
- o.showDataItemTooltip(n);
508
- const l = n.get("point");
509
- l && t.handleMove(o.toGlobal({ x: l.x - o.x(), y: l.y - o.y() }), !0);
510
- }
511
- }
512
- }
513
- }
514
- _updateCursor() {
515
- let t = this.get("cursor");
516
- t && t.updateCursor();
517
- }
518
- _addCursor(t) {
519
- this.plotContainer.children.push(t);
520
- }
521
- _prepareChildren() {
522
- if (super._prepareChildren(), this.series.each((t) => {
523
- this._colorize(t);
524
- }), (this.isDirty("wheelX") || this.isDirty("wheelY")) && this._handleSetWheel(), this.isDirty("cursor")) {
525
- const t = this._prevSettings.cursor, e = this.get("cursor");
526
- e !== t && (this._disposeProperty("cursor"), t && t.dispose(), e && (e._setChart(this), this._addCursor(e), this._pushPropertyDisposer("cursor", e.events.on("selectended", () => {
527
- this._handleCursorSelectEnd();
528
- }))), this._prevSettings.cursor = e);
529
- }
530
- if (this.isDirty("scrollbarX")) {
531
- const t = this._prevSettings.scrollbarX, e = this.get("scrollbarX");
532
- e !== t && (this._disposeProperty("scrollbarX"), t && t.dispose(), e && (e.parent || this.topAxesContainer.children.push(e), this._pushPropertyDisposer("scrollbarX", e.events.on("rangechanged", (i) => {
533
- this._handleScrollbar(this.xAxes, i.start, i.end, i.grip);
534
- })), e.setPrivate("positionTextFunction", (i) => {
535
- const s = this.xAxes.getIndex(0);
536
- return s && s.getTooltipText(i, !1) || "";
537
- })), this._prevSettings.scrollbarX = e);
538
- }
539
- if (this.isDirty("scrollbarY")) {
540
- const t = this._prevSettings.scrollbarY, e = this.get("scrollbarY");
541
- e !== t && (this._disposeProperty("scrollbarY"), t && t.dispose(), e && (e.parent || this.rightAxesContainer.children.push(e), this._pushPropertyDisposer("scrollbarY", e.events.on("rangechanged", (i) => {
542
- this._handleScrollbar(this.yAxes, i.start, i.end, i.grip);
543
- })), e.setPrivate("positionTextFunction", (i) => {
544
- const s = this.yAxes.getIndex(0);
545
- return s && s.getTooltipText(i, !1) || "";
546
- })), this._prevSettings.scrollbarY = e);
547
- }
548
- this._handleZoomOut();
549
- }
550
- _processSeries(t) {
551
- super._processSeries(t);
552
- const e = t.get("xAxis"), i = t.get("yAxis");
553
- Ct(e.series, t), Ct(i.series, t), t._posXDp = t.addDisposer(e.events.on("positionchanged", () => {
554
- t._fixPosition();
555
- })), t._posXDp = t.addDisposer(i.events.on("positionchanged", () => {
556
- t._fixPosition();
557
- })), t.get("baseAxis") || (i.isType("CategoryAxis") || i.isType("DateAxis") ? t.set("baseAxis", i) : t.set("baseAxis", e)), t.get("stacked") && (t._markDirtyKey("stacked"), w(t.dataItems, (s) => {
558
- s.set("stackToItemY", void 0), s.set("stackToItemX", void 0);
559
- })), t._markDirtyAxes(), i.markDirtyExtremes(), e.markDirtyExtremes(), e._seriesAdded = !0, i._seriesAdded = !0, this._colorize(t);
560
- }
561
- _colorize(t) {
562
- const e = this.get("colors");
563
- if (e && t.get("fill") == null) {
564
- const i = e.next();
565
- t._setSoft("stroke", i), t._setSoft("fill", i);
566
- }
567
- }
568
- _handleCursorSelectEnd() {
569
- const t = this.get("cursor"), e = t.get("behavior"), i = t.getPrivate("downPositionX", 0), s = t.getPrivate("downPositionY", 0), a = Math.min(1, Math.max(0, t.getPrivate("positionX", 0.5))), n = Math.min(1, Math.max(0, t.getPrivate("positionY", 0.5)));
570
- this.xAxes.each((r) => {
571
- if (e === "zoomX" || e === "zoomXY") {
572
- let o = r.toAxisPosition(i), l = r.toAxisPosition(a);
573
- r.zoom(o, l);
574
- }
575
- r.setPrivate("updateScrollbar", !0);
576
- }), this.yAxes.each((r) => {
577
- if (e === "zoomY" || e === "zoomXY") {
578
- let o = r.toAxisPosition(s), l = r.toAxisPosition(n);
579
- r.zoom(o, l);
580
- }
581
- r.setPrivate("updateScrollbar", !0);
582
- });
583
- }
584
- _handleScrollbar(t, e, i, s) {
585
- t.each((a) => {
586
- let n = a.fixPosition(e), r = a.fixPosition(i), o = a.zoom(n, r, void 0, s);
587
- const l = "updateScrollbar";
588
- a.setPrivateRaw(l, !1), o ? o.events.on("stopped", () => {
589
- a.setPrivateRaw(l, !0);
590
- }) : a.setPrivateRaw(l, !0);
591
- });
592
- }
593
- _processAxis(t, e) {
594
- return t.events.onAll((i) => {
595
- if (i.type === "clear")
596
- w(i.oldValues, (s) => {
597
- this._removeAxis(s);
598
- });
599
- else if (i.type === "push")
600
- e.children.push(i.newValue), i.newValue.processChart(this);
601
- else if (i.type === "setIndex")
602
- e.children.setIndex(i.index, i.newValue), i.newValue.processChart(this);
603
- else if (i.type === "insertIndex")
604
- e.children.insertIndex(i.index, i.newValue), i.newValue.processChart(this);
605
- else if (i.type === "removeIndex")
606
- this._removeAxis(i.oldValue);
607
- else {
608
- if (i.type !== "moveIndex")
609
- throw new Error("Unknown IListEvent type");
610
- e.children.moveValue(i.value, i.newIndex), i.value.processChart(this);
611
- }
612
- });
613
- }
614
- _removeAxis(t) {
615
- if (!t.isDisposed()) {
616
- const e = t.parent;
617
- e && e.children.removeValue(t);
618
- const i = t.gridContainer, s = i.parent;
619
- s && s.children.removeValue(i);
620
- const a = t.topGridContainer, n = a.parent;
621
- n && n.children.removeValue(a);
622
- }
623
- }
624
- _updateChartLayout() {
625
- const t = this.leftAxesContainer.width(), e = this.rightAxesContainer.width(), i = this.bottomAxesContainer;
626
- i.set("paddingLeft", t), i.set("paddingRight", e);
627
- const s = this.topAxesContainer;
628
- s.set("paddingLeft", t), s.set("paddingRight", e);
629
- }
630
- processAxis(t) {
631
- this.get("cursor") && (this.addDisposer(t.on("start", () => {
632
- this._updateCursor();
633
- })), this.addDisposer(t.on("end", () => {
634
- this._updateCursor();
635
- })));
636
- }
637
- _handleAxisSelection(t, e) {
638
- let i = t.fixPosition(t.get("start", 0)), s = t.fixPosition(t.get("end", 1));
639
- if (i > s && ([i, s] = [s, i]), this.xAxes.indexOf(t) != -1) {
640
- if (e || t.getPrivate("updateScrollbar")) {
641
- let a = this.get("scrollbarX");
642
- !a || a.getPrivate("isBusy") && !e || (a.setRaw("start", i), a.setRaw("end", s), a.updateGrips());
643
- }
644
- } else if (this.yAxes.indexOf(t) != -1 && (e || t.getPrivate("updateScrollbar"))) {
645
- let a = this.get("scrollbarY");
646
- !a || a.getPrivate("isBusy") && !e || (a.setRaw("start", i), a.setRaw("end", s), a.updateGrips());
647
- }
648
- this._handleZoomOut();
649
- }
650
- _handleZoomOut() {
651
- let t = this.zoomOutButton;
652
- if (t && t.parent) {
653
- let e = !1;
654
- this.xAxes.each((i) => {
655
- i.get("start") == 0 && i.get("end") == 1 || (e = !0);
656
- }), this.yAxes.each((i) => {
657
- i.get("start") == 0 && i.get("end") == 1 || (e = !0);
658
- }), e ? t.isHidden() && t.show() : t.hide();
659
- }
660
- }
661
- inPlot(t) {
662
- const e = this.plotContainer, i = this.getPrivate("otherCharts", this._otherCharts), s = e.toGlobal(t);
663
- if (t.x >= -0.5 && t.y >= -0.5 && t.x <= e.width() + 0.5 && t.y <= e.height() + 0.5)
664
- return !0;
665
- if (i)
666
- for (let a = i.length - 1; a >= 0; a--) {
667
- const n = i[a];
668
- if (n != this) {
669
- const r = n.plotContainer, o = this._root.rootPointToDocument(s), l = n._root.documentPointToRoot(o), c = r.toLocal(l);
670
- if (c.x >= -0.1 && c.y >= -0.1 && c.x <= r.width() + 0.1 && c.y <= r.height() + 0.1)
671
- return !0;
672
- }
673
- }
674
- return !1;
675
- }
676
- arrangeTooltips() {
677
- const t = this.plotContainer, e = t.width(), i = t.height(), s = this.height();
678
- let a = t._display.toGlobal({ x: 0, y: 0 }), n = t._display.toGlobal({ x: e, y: i });
679
- const r = [];
680
- let o, l, c = 0, h = 1 / 0, d = this._movePoint, g = this.get("maxTooltipDistance"), p = this.get("maxTooltipDistanceBy", "xy");
681
- v(g) && this.series.each((u) => {
682
- if (!u.isHidden()) {
683
- const _ = u.get("tooltip");
684
- if (_) {
685
- let f = _.get("pointTo");
686
- if (f) {
687
- let x = Math.hypot(d.x - f.x, d.y - f.y);
688
- p == "x" ? x = Math.abs(d.x - f.x) : p == "y" && (x = Math.abs(d.y - f.y)), x < h && (h = x, o = u, l = f);
689
- }
690
- }
691
- }
692
- });
693
- const m = [];
694
- if (this.series.each((u) => {
695
- const _ = u.get("tooltip");
696
- if (_ && !_.get("forceHidden")) {
697
- let f = !1, x = _.get("pointTo");
698
- if (x) {
699
- if (g >= 0) {
700
- let b = _.get("pointTo");
701
- if (b && l && u != o) {
702
- let y = Math.hypot(l.x - b.x, l.y - b.y);
703
- p == "x" ? y = Math.abs(l.x - b.x) : p == "y" && (y = Math.abs(l.y - b.y)), y > g && (f = !0);
704
- }
705
- } else
706
- g == -1 && u != o && (f = !0);
707
- this.inPlot(this._tooltipToLocal(x)) && _.dataItem ? f || (c += x.y) : f = !0, f || u.isHidden() || u.isHiding() ? _.hide(0) : (_.show(), r.push(_), m.push(u));
708
- }
709
- }
710
- }), this.setPrivate("tooltipSeries", m), this.get("arrangeTooltips")) {
711
- const u = this._root.tooltipContainer, _ = r.length;
712
- if (c / _ > i / 2 + a.y) {
713
- r.sort((x, b) => Ot(b.get("pointTo").y, x.get("pointTo").y));
714
- let f = n.y;
715
- if (w(r, (x) => {
716
- let b = x.height(), y = x.get("centerY");
717
- y instanceof et && (b *= y.value), b += x.get("marginBottom", 0), x.set("bounds", { left: a.x, top: a.y, right: n.x, bottom: f }), x.setPrivate("customData", { left: a.x, top: a.y, right: n.x, bottom: f }), f = Math.min(f - b, x._fy - b), x.parent == u && u.children.moveValue(x, 0);
718
- }), f < 0) {
719
- r.reverse();
720
- let x = f;
721
- w(r, (b) => {
722
- let y = b.get("bounds");
723
- if (y) {
724
- let A = y.top - f, I = y.bottom - f;
725
- A < x && (A = x, I = A + b.height()), b.set("bounds", { left: y.left, top: A, right: y.right, bottom: I }), x = y.bottom - f + b.get("marginBottom", 0);
726
- }
727
- });
728
- }
729
- } else {
730
- r.reverse(), r.sort((x, b) => Ot(x.get("pointTo").y, b.get("pointTo").y));
731
- let f = 0;
732
- if (w(r, (x) => {
733
- let b = x.height(), y = x.get("centerY");
734
- y instanceof et && (b *= y.value), b += x.get("marginBottom", 0), x.set("bounds", { left: a.x, top: f, right: n.x, bottom: Math.max(a.y + s, f + b) }), x.parent == u && u.children.moveValue(x, 0), f = Math.max(f + b, x._fy + b);
735
- }), f > s) {
736
- r.reverse();
737
- let x = s;
738
- w(r, (b) => {
739
- let y = b.get("bounds");
740
- if (y) {
741
- let A = y.top - (s - f), I = y.bottom - (s - f);
742
- I > x && (I = x, A = I - b.height()), b.set("bounds", { left: y.left, top: A, right: y.right, bottom: I }), x = I - b.height() - b.get("marginBottom", 0);
743
- }
744
- });
745
- }
746
- }
747
- }
748
- }
749
- _tooltipToLocal(t) {
750
- return this.plotContainer.toLocal(t);
751
- }
752
- zoomOut() {
753
- this.xAxes.each((t) => {
754
- t.setPrivate("updateScrollbar", !0), t.zoom(0, 1);
755
- }), this.yAxes.each((t) => {
756
- t.setPrivate("updateScrollbar", !0), t.zoom(0, 1);
757
- });
758
- }
759
- }
760
- Object.defineProperty(ft, "className", { enumerable: !0, configurable: !0, writable: !0, value: "XYChart" }), Object.defineProperty(ft, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Nt.classNames.concat([ft.className]) });
761
- class st extends G {
762
- _beforeChanged() {
763
- super._beforeChanged(), (this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
764
- }
765
- }
766
- Object.defineProperty(st, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Grid" }), Object.defineProperty(st, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: G.classNames.concat([st.className]) });
767
- class vt extends S {
768
- constructor() {
769
- super(...arguments), Object.defineProperty(this, "lineX", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(st.new(this._root, { themeTags: ["x"] })) }), Object.defineProperty(this, "lineY", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(st.new(this._root, { themeTags: ["y"] })) }), Object.defineProperty(this, "selection", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(G.new(this._root, { themeTags: ["selection", "cursor"], layer: 30 })) }), Object.defineProperty(this, "_movePoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_lastPoint", { enumerable: !0, configurable: !0, writable: !0, value: { x: 0, y: 0 } }), Object.defineProperty(this, "_tooltipX", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_tooltipY", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "chart", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_toX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_toY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
770
- }
771
- _afterNew() {
772
- this._settings.themeTags = F(this._settings.themeTags, ["xy", "cursor"]), super._afterNew(), this.setAll({ width: k, height: k, isMeasured: !0, position: "absolute" }), this.states.create("hidden", { visible: !0, opacity: 0 }), this._drawLines(), this.setPrivateRaw("visible", !1), this._disposers.push(this.setTimeout(() => {
773
- this.setPrivate("visible", !0);
774
- }, 500)), this._disposers.push(this.lineX.events.on("positionchanged", () => {
775
- this._handleXLine();
776
- })), this._disposers.push(this.lineY.events.on("positionchanged", () => {
777
- this._handleYLine();
778
- })), this._disposers.push(this.lineX.events.on("focus", (t) => this._handleLineFocus(t.target))), this._disposers.push(this.lineX.events.on("blur", (t) => this._handleLineBlur(t.target))), this._disposers.push(this.lineY.events.on("focus", (t) => this._handleLineFocus(t.target))), this._disposers.push(this.lineY.events.on("blur", (t) => this._handleLineBlur(t.target))), Xt("keyboardevents") && this._disposers.push(ie(document, "keydown", (t) => {
779
- this._handleLineMove(t.keyCode);
780
- }));
781
- }
782
- _setUpTouch() {
783
- const t = this.chart;
784
- t && (t.plotContainer._display.cancelTouch = this.get("behavior") != "none");
785
- }
786
- _handleXLine() {
787
- let t = this.lineX.x(), e = !0;
788
- (t < 0 || t > this.width()) && (e = !1), this.lineX.setPrivate("visible", e);
789
- }
790
- _handleYLine() {
791
- let t = this.lineY.y(), e = !0;
792
- (t < 0 || t > this.height()) && (e = !1), this.lineY.setPrivate("visible", e);
793
- }
794
- _handleLineMove(t) {
795
- let e = "", i = 0, s = 0.1;
796
- const a = this.chart;
797
- this._root.focused(this.lineX) ? (a && a.xAxes.length && (s = a.xAxes.getIndex(0).getCellWidthPosition()), i = this.getPrivate("positionX", 0), e = "positionX", t == 37 ? i -= s : t == 39 && (i += s)) : this._root.focused(this.lineY) && (a && a.yAxes.length && (s = a.yAxes.getIndex(0).getCellWidthPosition()), i = this.getPrivate("positionY", 0), e = "positionY", t == 38 ? i -= s : t == 40 && (i += s)), i < 0 ? i = 0 : i > 1 && (i = 1), e != "" && this.set(e, i);
798
- }
799
- _handleLineFocus(t) {
800
- this.setAll({ positionX: this.getPrivate("positionX"), positionY: this.getPrivate("positionY"), alwaysShow: !0 });
801
- }
802
- _handleLineBlur(t) {
803
- this.setAll({ positionX: void 0, positionY: void 0, alwaysShow: !1 });
804
- }
805
- _prepareChildren() {
806
- if (super._prepareChildren(), this.isDirty("xAxis")) {
807
- this._tooltipX = !1;
808
- const t = this.get("xAxis");
809
- if (t) {
810
- const e = t.get("tooltip");
811
- e && (this._tooltipX = !0, this._disposers.push(e.on("pointTo", () => {
812
- this._updateXLine(e);
813
- })));
814
- }
815
- }
816
- if (this.isDirty("yAxis")) {
817
- this._tooltipY = !1;
818
- const t = this.get("yAxis");
819
- if (t) {
820
- const e = t.get("tooltip");
821
- e && (this._tooltipY = !0, this._disposers.push(e.on("pointTo", () => {
822
- this._updateYLine(e);
823
- })));
824
- }
825
- }
826
- }
827
- _handleSyncWith() {
828
- const t = this.chart;
829
- if (t) {
830
- const e = this.get("syncWith"), i = [];
831
- e && w(e, (s) => {
832
- const a = s.chart;
833
- a && i.push(a);
834
- }), t._otherCharts = i;
835
- }
836
- }
837
- _updateChildren() {
838
- if (super._updateChildren(), this._handleSyncWith(), this.isDirty("positionX") || this.isDirty("positionY")) {
839
- const t = this.get("positionX"), e = this.get("positionY");
840
- t == null && e == null ? this.hide(0) : (this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))), this.handleMove());
841
- }
842
- }
843
- _updateXLine(t) {
844
- let e = j(this._display.toLocal(t.get("pointTo", { x: 0, y: 0 })).x, 2);
845
- this._toX != e && (this.lineX.animate({ key: "x", to: e, duration: t.get("animationDuration", 0), easing: t.get("animationEasing") }), this._toX = e);
846
- }
847
- _updateYLine(t) {
848
- let e = j(this._display.toLocal(t.get("pointTo", { x: 0, y: 0 })).y, 2);
849
- this._toY != e && (this.lineY.animate({ key: "y", to: e, duration: t.get("animationDuration", 0), easing: t.get("animationEasing") }), this._toY = e);
850
- }
851
- _drawLines() {
852
- this.lineX.set("draw", (t) => {
853
- t.moveTo(0, 0), t.lineTo(0, this.height());
854
- }), this.lineY.set("draw", (t) => {
855
- t.moveTo(0, 0), t.lineTo(this.width(), 0);
856
- });
857
- }
858
- updateCursor() {
859
- this.get("alwaysShow") && (this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0)))), this.handleMove();
860
- }
861
- _setChart(t) {
862
- this.chart = t, this._handleSyncWith();
863
- const e = t.plotContainer;
864
- this.events.on("boundschanged", () => {
865
- this._disposers.push(this.setTimeout(() => {
866
- this.updateCursor();
867
- }, 50));
868
- }), Xt("touchevents") && (this._disposers.push(e.events.on("click", (s) => {
869
- se(s.originalEvent) && this._handleMove(s);
870
- })), this._setUpTouch()), this._disposers.push(e.events.on("pointerdown", (s) => {
871
- this._handleCursorDown(s);
872
- })), this._disposers.push(e.events.on("globalpointerup", (s) => {
873
- this._handleCursorUp(s), s.native || this.isHidden() || this._handleMove(s);
874
- })), this._disposers.push(e.events.on("globalpointermove", (s) => {
875
- (this.get("syncWith") || mt(e._downPoints).length != 0 || s.native || !this.isHidden()) && this._handleMove(s);
876
- }));
877
- const i = this.parent;
878
- i && i.children.moveValue(this.selection);
879
- }
880
- _inPlot(t) {
881
- const e = this.chart;
882
- return !!e && e.inPlot(t);
883
- }
884
- _handleCursorDown(t) {
885
- if (t.originalEvent.button == 2)
886
- return;
887
- const e = t.point;
888
- let i = this._display.toLocal(e);
889
- const s = this.chart;
890
- if (this.selection.set("draw", () => {
891
- }), s && this._inPlot(i)) {
892
- if (this._downPoint = i, this.get("behavior") != "none") {
893
- this.selection.show();
894
- const r = "selectstarted";
895
- this.events.isEnabled(r) && this.events.dispatch(r, { type: r, target: this, originalEvent: t.originalEvent });
896
- }
897
- let a = this._getPosition(i).x, n = this._getPosition(i).y;
898
- this.setPrivate("downPositionX", a), this.setPrivate("downPositionY", n);
899
- }
900
- }
901
- _handleCursorUp(t) {
902
- if (this._downPoint) {
903
- const e = this.get("behavior", "none");
904
- if (e != "none") {
905
- e.charAt(0) === "z" && this.selection.hide();
906
- const i = t.point;
907
- let s = this._display.toLocal(i);
908
- const a = this._downPoint, n = this.get("moveThreshold", 1);
909
- if (s && a) {
910
- let r = !1;
911
- if (e !== "zoomX" && e !== "zoomXY" && e !== "selectX" && e !== "selectXY" || Math.abs(s.x - a.x) > n && (r = !0), e !== "zoomY" && e !== "zoomXY" && e !== "selectY" && e !== "selectXY" || Math.abs(s.y - a.y) > n && (r = !0), r) {
912
- const o = "selectended";
913
- this.events.isEnabled(o) && this.events.dispatch(o, { type: o, target: this, originalEvent: t.originalEvent });
914
- } else {
915
- const o = "selectcancelled";
916
- this.events.isEnabled(o) && this.events.dispatch(o, { type: o, target: this, originalEvent: t.originalEvent });
917
- }
918
- }
919
- }
920
- }
921
- this._downPoint = void 0;
922
- }
923
- _handleMove(t) {
924
- if (this.getPrivate("visible")) {
925
- const e = this.chart;
926
- if (e && mt(e.plotContainer._downPoints).length > 1)
927
- return void this.set("forceHidden", !0);
928
- this.set("forceHidden", !1);
929
- const i = t.point, s = this._lastPoint;
930
- if (Math.round(s.x) === Math.round(i.x) && Math.round(s.y) === Math.round(i.y))
931
- return;
932
- this._lastPoint = i, this.setPrivate("lastPoint", i), this.handleMove({ x: i.x, y: i.y }, !1, t.originalEvent);
933
- }
934
- }
935
- _getPosition(t) {
936
- return { x: t.x / this.width(), y: t.y / this.height() };
937
- }
938
- handleMove(t, e, i) {
939
- t || (t = this._movePoint);
940
- const s = this.get("alwaysShow");
941
- if (!t)
942
- return void this.hide(0);
943
- this._movePoint = t;
944
- let a = this._display.toLocal(t), n = this.chart;
945
- if (n && (this._inPlot(a) || this._downPoint)) {
946
- n._movePoint = t, this.isHidden() && (this.show(), this.get("behavior", "").charAt(0) == "z" && this.selection.set("draw", () => {
947
- }));
948
- let r = a.x, o = a.y, l = this._getPosition(a);
949
- this.setPrivate("point", a);
950
- let c = this.get("snapToSeries");
951
- this._downPoint && (c = void 0);
952
- let h = this.get("positionX"), d = l.x;
953
- v(h) && (d = h);
954
- let g = this.get("positionY"), p = l.y;
955
- v(g) && (p = g), this.setPrivate("positionX", d), this.setPrivate("positionY", p);
956
- const m = this._getPoint(d, p);
957
- if (r = m.x, o = m.y, n.xAxes.each((u) => {
958
- u._handleCursorPosition(d, c), s && u.handleCursorShow();
959
- }), n.yAxes.each((u) => {
960
- u._handleCursorPosition(p, c), s && u.handleCursorShow();
961
- }), !e) {
962
- n._handleCursorPosition();
963
- const u = "cursormoved";
964
- this.events.isEnabled(u) && this.events.dispatch(u, { type: u, target: this, point: t, originalEvent: i });
965
- }
966
- this._updateLines(r, o), n.arrangeTooltips();
967
- } else if (!this._downPoint && !s) {
968
- this.hide(0);
969
- const r = "cursorhidden";
970
- this.events.isEnabled(r) && this.events.dispatch(r, { type: r, target: this });
971
- }
972
- this._downPoint && this.get("behavior") != "none" && this._updateSelection(a);
973
- }
974
- _getPoint(t, e) {
975
- return { x: this.width() * t, y: this.height() * e };
976
- }
977
- _updateLines(t, e) {
978
- this._tooltipX || this.lineX.set("x", t), this._tooltipY || this.lineY.set("y", e), this._drawLines();
979
- }
980
- _updateSelection(t) {
981
- const e = this.selection, i = this.get("behavior"), s = this.width(), a = this.height();
982
- t.x < 0 && (t.x = 0), t.x > s && (t.x = s), t.y < 0 && (t.y = 0), t.y > a && (t.y = a), e.set("draw", (n) => {
983
- const r = this._downPoint;
984
- r && (i === "zoomXY" || i === "selectXY" ? (n.moveTo(r.x, r.y), n.lineTo(r.x, t.y), n.lineTo(t.x, t.y), n.lineTo(t.x, r.y), n.lineTo(r.x, r.y)) : i === "zoomX" || i === "selectX" ? (n.moveTo(r.x, 0), n.lineTo(r.x, a), n.lineTo(t.x, a), n.lineTo(t.x, 0), n.lineTo(r.x, 0)) : i !== "zoomY" && i !== "selectY" || (n.moveTo(0, r.y), n.lineTo(s, r.y), n.lineTo(s, t.y), n.lineTo(0, t.y), n.lineTo(0, r.y)));
985
- });
986
- }
987
- _onHide() {
988
- if (this.isHidden()) {
989
- let t = this.chart;
990
- t && (t.xAxes.each((e) => {
991
- e.handleCursorHide();
992
- }), t.yAxes.each((e) => {
993
- e.handleCursorHide();
994
- }), t.series.each((e) => {
995
- e.handleCursorHide();
996
- }));
997
- }
998
- super._onHide();
999
- }
1000
- _onShow() {
1001
- if (!this.isHidden()) {
1002
- let t = this.chart;
1003
- t && (t.xAxes.each((e) => {
1004
- e.handleCursorShow();
1005
- }), t.yAxes.each((e) => {
1006
- e.handleCursorShow();
1007
- }));
1008
- }
1009
- super._onShow();
1010
- }
1011
- _dispose() {
1012
- super._dispose(), this.selection.dispose();
1013
- }
1014
- }
1015
- function pe(P, t) {
1016
- return P == null ? t : t == null ? P : t < P ? t : P;
1017
- }
1018
- function me(P, t) {
1019
- return P == null ? t : t == null ? P : t > P ? t : P;
1020
- }
1021
- Object.defineProperty(vt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "XYCursor" }), Object.defineProperty(vt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: S.classNames.concat([vt.className]) });
1022
- class U extends zt {
1023
- constructor() {
1024
- super(...arguments), Object.defineProperty(this, "_xField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_yField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_xOpenField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_yOpenField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_xLowField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_xHighField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_yLowField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_yHighField", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_axesDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_stackDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_selectionProcessed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dataSets", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_mainContainerMask", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_x", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_y", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_bullets", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "mainContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(S.new(this._root, {})) }), Object.defineProperty(this, "axisRanges", { enumerable: !0, configurable: !0, writable: !0, value: new Et() }), Object.defineProperty(this, "_skipped", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_couldStackTo", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_reallyStackedTo", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_stackedSeries", { enumerable: !0, configurable: !0, writable: !0, value: {} }), Object.defineProperty(this, "_aLocationX0", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_aLocationX1", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_aLocationY0", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_aLocationY1", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_showBullets", { enumerable: !0, configurable: !0, writable: !0, value: !0 }), Object.defineProperty(this, "valueXFields", { enumerable: !0, configurable: !0, writable: !0, value: ["valueX", "openValueX", "lowValueX", "highValueX"] }), Object.defineProperty(this, "valueYFields", { enumerable: !0, configurable: !0, writable: !0, value: ["valueY", "openValueY", "lowValueY", "highValueY"] }), Object.defineProperty(this, "_valueXFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_valueYFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_valueXShowFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_valueYShowFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "__valueXShowFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "__valueYShowFields", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_emptyDataItem", { enumerable: !0, configurable: !0, writable: !0, value: new ot(this, void 0, {}) }), Object.defineProperty(this, "_dataSetId", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipFieldX", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_tooltipFieldY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_posXDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_posYDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
1025
- }
1026
- _afterNew() {
1027
- this.fields.push("categoryX", "categoryY", "openCategoryX", "openCategoryY"), this.valueFields.push("valueX", "valueY", "openValueX", "openValueY", "lowValueX", "lowValueY", "highValueX", "highValueY"), this._setRawDefault("vcx", 1), this._setRawDefault("vcy", 1), this._setRawDefault("valueXShow", "valueXWorking"), this._setRawDefault("valueYShow", "valueYWorking"), this._setRawDefault("openValueXShow", "openValueXWorking"), this._setRawDefault("openValueYShow", "openValueYWorking"), this._setRawDefault("lowValueXShow", "lowValueXWorking"), this._setRawDefault("lowValueYShow", "lowValueYWorking"), this._setRawDefault("highValueXShow", "highValueXWorking"), this._setRawDefault("highValueYShow", "highValueYWorking"), this._setRawDefault("lowValueXGrouped", "low"), this._setRawDefault("lowValueYGrouped", "low"), this._setRawDefault("highValueXGrouped", "high"), this._setRawDefault("highValueYGrouped", "high"), super._afterNew(), this.set("maskContent", !0), this._disposers.push(this.axisRanges.events.onAll((t) => {
1028
- if (t.type === "clear")
1029
- w(t.oldValues, (e) => {
1030
- this._removeAxisRange(e);
1031
- });
1032
- else if (t.type === "push")
1033
- this._processAxisRange(t.newValue);
1034
- else if (t.type === "setIndex")
1035
- this._processAxisRange(t.newValue);
1036
- else if (t.type === "insertIndex")
1037
- this._processAxisRange(t.newValue);
1038
- else if (t.type === "removeIndex")
1039
- this._removeAxisRange(t.oldValue);
1040
- else {
1041
- if (t.type !== "moveIndex")
1042
- throw new Error("Unknown IStreamEvent type");
1043
- this._processAxisRange(t.value);
1044
- }
1045
- })), this.states.create("hidden", { opacity: 1, visible: !1 }), this.onPrivate("startIndex", () => {
1046
- this.updateLegendValue();
1047
- }), this.onPrivate("endIndex", () => {
1048
- this.updateLegendValue();
1049
- }), this._makeFieldNames();
1050
- }
1051
- _processAxisRange(t) {
1052
- const e = S.new(this._root, {});
1053
- t.container = e, this.children.push(e), t.series = this;
1054
- const i = t.axisDataItem;
1055
- i.setRaw("isRange", !0);
1056
- const s = i.component;
1057
- if (s) {
1058
- s._processAxisRange(i, ["range", "series"]);
1059
- const a = i.get("bullet");
1060
- if (a) {
1061
- const r = a.get("sprite");
1062
- r && r.setPrivate("visible", !1);
1063
- }
1064
- const n = i.get("axisFill");
1065
- n && e.set("mask", n), s._seriesAxisRanges.push(i);
1066
- }
1067
- }
1068
- _removeAxisRange(t) {
1069
- const e = t.axisDataItem, i = e.component;
1070
- i.disposeDataItem(e), ct(i._seriesAxisRanges, e);
1071
- const s = t.container;
1072
- s && s.dispose();
1073
- }
1074
- _updateFields() {
1075
- super._updateFields(), this._valueXFields = [], this._valueYFields = [], this._valueXShowFields = [], this._valueYShowFields = [], this.__valueXShowFields = [], this.__valueYShowFields = [], this.valueXFields && w(this.valueXFields, (t) => {
1076
- if (this.get(t + "Field")) {
1077
- this._valueXFields.push(t);
1078
- let e = this.get(t + "Show");
1079
- this.__valueXShowFields.push(e), e.indexOf("Working") != -1 ? this._valueXShowFields.push(e.split("Working")[0]) : this._valueXShowFields.push(e);
1080
- }
1081
- }), this.valueYFields && w(this.valueYFields, (t) => {
1082
- if (this.get(t + "Field")) {
1083
- this._valueYFields.push(t);
1084
- let e = this.get(t + "Show");
1085
- this.__valueYShowFields.push(e), e.indexOf("Working") != -1 ? this._valueYShowFields.push(e.split("Working")[0]) : this._valueYShowFields.push(e);
1086
- }
1087
- });
1088
- }
1089
- _dispose() {
1090
- super._dispose(), this._bullets = {};
1091
- const t = this.chart;
1092
- t && t.series.removeValue(this), St(this.get("xAxis").series, this), St(this.get("yAxis").series, this);
1093
- }
1094
- _min(t, e) {
1095
- let i = pe(this.getPrivate(t), e);
1096
- this.setPrivate(t, i);
1097
- }
1098
- _max(t, e) {
1099
- let i = me(this.getPrivate(t), e);
1100
- this.setPrivate(t, i);
1101
- }
1102
- _shouldMakeBullet(t) {
1103
- const e = this.get("xAxis"), i = this.get("yAxis"), s = this.get("baseAxis");
1104
- if (!e.inited || !i.inited)
1105
- return !1;
1106
- const a = this.get("minBulletDistance", 0);
1107
- if (a > 0) {
1108
- let n = this.startIndex(), r = this.endIndex() - n;
1109
- if (e == s) {
1110
- if (e.get("renderer").axisLength() / r < a / 5)
1111
- return !1;
1112
- } else if (i == s && i.get("renderer").axisLength() / r < a / 5)
1113
- return !1;
1114
- }
1115
- return t.get(this._xField) != null && t.get(this._yField) != null;
1116
- }
1117
- _makeFieldNames() {
1118
- const t = this.get("xAxis"), e = this.get("yAxis"), i = t.getPrivate("name"), s = Ft(i), a = e.getPrivate("name"), n = Ft(a), r = t.get("renderer").getPrivate("letter"), o = e.get("renderer").getPrivate("letter"), l = "open", c = "low", h = "high", d = "Show";
1119
- t.className === "ValueAxis" ? (this._xField = this.get(i + r + d), this._xOpenField = this.get(l + s + r + d), this._xLowField = this.get(c + s + r + d), this._xHighField = this.get(h + s + r + d)) : (this._xField = i + r, this._xOpenField = l + s + r, this._xLowField = c + s + r, this._xHighField = h + s + r), e.className === "ValueAxis" ? (this._yField = this.get(a + o + d), this._yOpenField = this.get(l + n + o + d), this._yLowField = this.get(c + n + o + d), this._yHighField = this.get(h + n + o + d)) : (this._yField = a + o, this._yOpenField = l + n + o, this._yLowField = c + n + o, this._yHighField = h + n + o);
1120
- }
1121
- _fixVC() {
1122
- const t = this.get("xAxis"), e = this.get("yAxis"), i = this.get("baseAxis"), s = this.states.lookup("hidden"), a = this.get("sequencedInterpolation");
1123
- if (s) {
1124
- let n = 0;
1125
- a && (n = 0.999999999999), t === i ? s.set("vcy", n) : (e === i || s.set("vcy", n), s.set("vcx", n));
1126
- }
1127
- }
1128
- _handleMaskBullets() {
1129
- this.isDirty("maskBullets") && this.bulletsContainer.set("maskContent", this.get("maskBullets"));
1130
- }
1131
- _fixPosition() {
1132
- const t = this.get("xAxis"), e = this.get("yAxis");
1133
- this.set("x", t.x() - _t(t.get("centerX", 0), t.width()) - t.parent.get("paddingLeft", 0)), this.set("y", e.y() - _t(e.get("centerY", 0), e.height()) - e.parent.get("paddingTop", 0)), this.bulletsContainer.set("y", this.y()), this.bulletsContainer.set("x", this.x());
1134
- }
1135
- _prepareChildren() {
1136
- super._prepareChildren(), this._bullets = {}, (this.isDirty("valueYShow") || this.isDirty("valueXShow") || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow")) && (this._updateFields(), this._makeFieldNames(), this._valuesDirty = !0), (this.isDirty("xAxis") || this.isDirty("yAxis")) && (this._valuesDirty = !0), this.set("width", this.get("xAxis").width()), this.set("height", this.get("yAxis").height()), this._handleMaskBullets();
1137
- const t = this.get("xAxis"), e = this.get("yAxis"), i = this.get("baseAxis");
1138
- let s;
1139
- switch (this.get("tooltipPositionX")) {
1140
- case "open":
1141
- s = this._xOpenField;
1142
- break;
1143
- case "low":
1144
- s = this._xLowField;
1145
- break;
1146
- case "high":
1147
- s = this._xHighField;
1148
- break;
1149
- default:
1150
- s = this._xField;
1151
- }
1152
- this._tooltipFieldX = s;
1153
- let a;
1154
- switch (this.get("tooltipPositionY")) {
1155
- case "open":
1156
- a = this._yOpenField;
1157
- break;
1158
- case "low":
1159
- a = this._yLowField;
1160
- break;
1161
- case "high":
1162
- a = this._yHighField;
1163
- break;
1164
- default:
1165
- a = this._yField;
1166
- }
1167
- this._tooltipFieldY = a, this.isDirty("baseAxis") && this._fixVC(), this._fixPosition();
1168
- const n = this.get("stacked");
1169
- if (this.isDirty("stacked") && (n ? this._valuesDirty && !this._dataProcessed || this._stack() : this._unstack()), this._valuesDirty && !this._dataProcessed && (this._dataProcessed = !0, n && this._stack(), w(this.dataItems, (r) => {
1170
- w(this._valueXShowFields, (o) => {
1171
- let l = r.get(o);
1172
- l != null && (n && (l += this.getStackedXValue(r, o)), this._min("minX", l), this._max("maxX", l));
1173
- }), w(this._valueYShowFields, (o) => {
1174
- let l = r.get(o);
1175
- l != null && (n && (l += this.getStackedYValue(r, o)), this._min("minY", l), this._max("maxY", l));
1176
- }), t.processSeriesDataItem(r, this._valueXFields), e.processSeriesDataItem(r, this._valueYFields);
1177
- }), t._seriesValuesDirty = !0, e._seriesValuesDirty = !0, this.get("ignoreMinMax") || ((this.isPrivateDirty("minX") || this.isPrivateDirty("maxX")) && t.markDirtyExtremes(), (this.isPrivateDirty("minY") || this.isPrivateDirty("maxY")) && e.markDirtyExtremes()), this._markStakedDirtyStack(), this.get("tooltipDataItem") || this.updateLegendValue(void 0)), (this.isDirty("vcx") || this.isDirty("vcy")) && this._markStakedDirtyStack(), this._dataGrouped || (t._groupSeriesData(this), e._groupSeriesData(this), this._dataGrouped = !0), this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("adjustedStartIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty || this._sizeDirty) {
1178
- let r = this.startIndex(), o = this.endIndex(), l = this.get("minBulletDistance", 0);
1179
- if (l > 0 && i && (i.get("renderer").axisLength() / (o - r) > l ? this._showBullets = !0 : this._showBullets = !1), (this._psi != r || this._pei != o || this.isDirty("vcx") || this.isDirty("vcy") || this.isPrivateDirty("adjustedStartIndex") || this._stackDirty || this._valuesDirty) && !this._selectionProcessed) {
1180
- this._selectionProcessed = !0;
1181
- const c = this.get("vcx", 1), h = this.get("vcy", 1), d = this.get("stacked", !1), g = this.getPrivate("outOfSelection");
1182
- if (i === t || !i)
1183
- if (e._calculateTotals(), this.setPrivateRaw("selectionMinY", void 0), this.setPrivateRaw("selectionMaxY", void 0), g)
1184
- e.markDirtySelectionExtremes();
1185
- else
1186
- for (let p = r; p < o; p++)
1187
- this.processYSelectionDataItem(this.dataItems[p], h, d);
1188
- if (i === e || !i)
1189
- if (t._calculateTotals(), this.setPrivateRaw("selectionMinX", void 0), this.setPrivateRaw("selectionMaxX", void 0), g)
1190
- e.markDirtySelectionExtremes();
1191
- else
1192
- for (let p = r; p < o; p++)
1193
- this.processXSelectionDataItem(this.dataItems[p], c, d);
1194
- if ((i === t || !i) && this.get("valueYShow") !== "valueYWorking") {
1195
- const p = this.getPrivate("selectionMinY");
1196
- p != null && (this.setPrivateRaw("minY", p), e.markDirtyExtremes());
1197
- const m = this.getPrivate("selectionMaxY");
1198
- m != null && (this.setPrivateRaw("maxY", m), e.markDirtyExtremes());
1199
- }
1200
- if ((i === e || !i) && this.get("valueXShow") !== "valueXWorking") {
1201
- const p = this.getPrivate("selectionMinX");
1202
- p != null && (this.setPrivateRaw("minX", p), e.markDirtyExtremes());
1203
- const m = this.getPrivate("selectionMaxX");
1204
- m != null && (this.setPrivateRaw("maxX", m), t.markDirtyExtremes());
1205
- }
1206
- (this.isPrivateDirty("selectionMinX") || this.isPrivateDirty("selectionMaxX")) && t.markDirtySelectionExtremes(), (this.isPrivateDirty("selectionMinY") || this.isPrivateDirty("selectionMaxY")) && e.markDirtySelectionExtremes();
1207
- }
1208
- }
1209
- }
1210
- _makeRangeMask() {
1211
- if (this.axisRanges.length > 0) {
1212
- let t = this._mainContainerMask;
1213
- t == null && (t = this.children.push(G.new(this._root, {})), this._mainContainerMask = t, t.set("draw", (e, i) => {
1214
- const s = this.parent;
1215
- if (s) {
1216
- const a = this._root.container.width(), n = this._root.container.height();
1217
- e.moveTo(-a, -n), e.lineTo(-a, 2 * n), e.lineTo(2 * a, 2 * n), e.lineTo(2 * a, -n), e.lineTo(-a, -n), this.axisRanges.each((r) => {
1218
- const o = r.axisDataItem.get("axisFill");
1219
- if (s && o) {
1220
- let l = o.get("draw");
1221
- l && l(e, i);
1222
- }
1223
- });
1224
- }
1225
- this.mainContainer._display.mask = t._display;
1226
- })), t.markDirty(), t._markDirtyKey("fill");
1227
- } else
1228
- this.mainContainer._display.mask = null;
1229
- }
1230
- _updateChildren() {
1231
- super._updateChildren(), this._x = this.x(), this._y = this.y(), this._makeRangeMask();
1232
- }
1233
- _stack() {
1234
- const t = this.chart;
1235
- if (t) {
1236
- const e = t.series.indexOf(this);
1237
- if (this._couldStackTo = [], e > 0) {
1238
- let i;
1239
- for (let s = e - 1; s >= 0 && (i = t.series.getIndex(s), i.get("xAxis") !== this.get("xAxis") || i.get("yAxis") !== this.get("yAxis") || i.className !== this.className || (this._couldStackTo.push(i), i.get("stacked"))); s--)
1240
- ;
1241
- }
1242
- this._stackDataItems();
1243
- }
1244
- }
1245
- _unstack() {
1246
- gt(this._reallyStackedTo, (t, e) => {
1247
- delete e._stackedSeries[this.uid];
1248
- }), this._reallyStackedTo = {}, w(this.dataItems, (t) => {
1249
- t.setRaw("stackToItemY", void 0), t.setRaw("stackToItemX", void 0);
1250
- });
1251
- }
1252
- _stackDataItems() {
1253
- const t = this.get("baseAxis"), e = this.get("xAxis"), i = this.get("yAxis");
1254
- let s, a;
1255
- t === e ? (s = "valueY", a = "stackToItemY") : t === i && (s = "valueX", a = "stackToItemX");
1256
- let n = this._couldStackTo.length, r = 0;
1257
- const o = this.get("stackToNegative");
1258
- this._reallyStackedTo = {}, w(this.dataItems, (l) => {
1259
- for (let c = 0; c < n; c++) {
1260
- let h = this._couldStackTo[c], d = h.dataItems[r], g = l.get(s);
1261
- if (d) {
1262
- let p = d.get(s);
1263
- if (o) {
1264
- if (!v(g))
1265
- break;
1266
- if (v(p)) {
1267
- if (g >= 0 && p >= 0) {
1268
- l.setRaw(a, d), this._reallyStackedTo[h.uid] = h, h._stackedSeries[this.uid] = this;
1269
- break;
1270
- }
1271
- if (g < 0 && p < 0) {
1272
- l.setRaw(a, d), this._reallyStackedTo[h.uid] = h, h._stackedSeries[this.uid] = this;
1273
- break;
1274
- }
1275
- }
1276
- } else if (v(g) && v(p)) {
1277
- l.setRaw(a, d), this._reallyStackedTo[h.uid] = h, h._stackedSeries[this.uid] = this;
1278
- break;
1279
- }
1280
- }
1281
- }
1282
- r++;
1283
- });
1284
- }
1285
- processXSelectionDataItem(t, e, i) {
1286
- w(this.__valueXShowFields, (s) => {
1287
- let a = t.get(s);
1288
- a != null && (i && (a += this.getStackedXValueWorking(t, s)), this._min("selectionMinX", a), this._max("selectionMaxX", a * e));
1289
- });
1290
- }
1291
- processYSelectionDataItem(t, e, i) {
1292
- w(this.__valueYShowFields, (s) => {
1293
- let a = t.get(s);
1294
- a != null && (i && (a += this.getStackedYValueWorking(t, s)), this._min("selectionMinY", a), this._max("selectionMaxY", a * e));
1295
- });
1296
- }
1297
- getStackedYValueWorking(t, e) {
1298
- const i = t.get("stackToItemY");
1299
- if (i) {
1300
- const s = i.component;
1301
- return i.get(e, 0) * s.get("vcy", 1) + this.getStackedYValueWorking(i, e);
1302
- }
1303
- return 0;
1304
- }
1305
- getStackedXValueWorking(t, e) {
1306
- const i = t.get("stackToItemX");
1307
- if (i) {
1308
- const s = i.component;
1309
- return i.get(e, 0) * s.get("vcx", 1) + this.getStackedXValueWorking(i, e);
1310
- }
1311
- return 0;
1312
- }
1313
- getStackedYValue(t, e) {
1314
- const i = t.get("stackToItemY");
1315
- return i ? i.get(e, 0) + this.getStackedYValue(i, e) : 0;
1316
- }
1317
- getStackedXValue(t, e) {
1318
- const i = t.get("stackToItemX");
1319
- return i ? i.get(e, 0) + this.getStackedXValue(i, e) : 0;
1320
- }
1321
- createLegendMarker(t) {
1322
- this.updateLegendMarker();
1323
- }
1324
- _markDirtyAxes() {
1325
- this._axesDirty = !0, this.markDirty();
1326
- }
1327
- _markDataSetDirty() {
1328
- this._afterDataChange(), this._valuesDirty = !0, this._dataProcessed = !1, this._aggregatesCalculated = !1, this.markDirty();
1329
- }
1330
- _clearDirty() {
1331
- super._clearDirty(), this._axesDirty = !1, this._selectionProcessed = !1, this._stackDirty = !1, this._dataProcessed = !1;
1332
- }
1333
- _positionBullet(t) {
1334
- let e = t.get("sprite");
1335
- if (e) {
1336
- let i = e.dataItem, s = t.get("locationX", i.get("locationX", 0.5)), a = t.get("locationY", i.get("locationY", 0.5)), n = this.get("xAxis"), r = this.get("yAxis"), o = n.getDataItemPositionX(i, this._xField, s, this.get("vcx", 1)), l = r.getDataItemPositionY(i, this._yField, a, this.get("vcy", 1)), c = this.getPoint(o, l), h = i.get("left", c.x), d = i.get("right", c.x), g = i.get("top", c.y), p = i.get("bottom", c.y), m = 0, u = 0, _ = d - h, f = p - g;
1337
- if (this._shouldShowBullet(o, l)) {
1338
- e.setPrivate("visible", !t.getPrivate("hidden"));
1339
- let x = t.get("field");
1340
- const b = this.get("baseAxis"), y = this.get("xAxis"), A = this.get("yAxis");
1341
- if (x != null) {
1342
- let D;
1343
- b == y ? (x == "value" ? D = this._yField : x == "open" ? D = this._yOpenField : x == "high" ? D = this._yHighField : x == "low" && (D = this._yLowField), D && (l = A.getDataItemPositionY(i, D, 0, this.get("vcy", 1)), c = A.get("renderer").positionToPoint(l), u = c.y, m = h + _ * s)) : (x == "value" ? D = this._xField : x == "open" ? D = this._xOpenField : x == "high" ? D = this._xHighField : x == "low" && (D = this._xLowField), D && (o = y.getDataItemPositionX(i, D, 0, this.get("vcx", 1)), c = y.get("renderer").positionToPoint(o), m = c.x, u = p - f * a));
1344
- } else
1345
- m = h + _ * s, u = p - f * a;
1346
- const I = t.get("stacked");
1347
- if (I) {
1348
- const D = this.chart;
1349
- if (b == y) {
1350
- let O = this._bullets[o + "_" + l];
1351
- if (O) {
1352
- let T = O.bounds(), C = e.localBounds(), N = u;
1353
- u = T.top, I == "down" ? u = T.bottom - C.top : I == "auto" ? D && (N < D.plotContainer.height() / 2 ? u = T.bottom - C.top : u += C.bottom) : u += C.bottom;
1354
- }
1355
- this._bullets[o + "_" + l] = e;
1356
- } else {
1357
- let O = this._bullets[o + "_" + l];
1358
- if (O) {
1359
- let T = O.bounds(), C = e.localBounds(), N = m;
1360
- m = T.right, I == "down" ? m = T.left - C.right : I == "auto" ? D && (N < D.plotContainer.width() / 2 ? m = T.left - C.right : m -= C.left) : m -= C.left;
1361
- }
1362
- this._bullets[o + "_" + l] = e;
1363
- }
1364
- }
1365
- e.isType("Label") && (e.setPrivate("maxWidth", Math.abs(_)), e.setPrivate("maxHeight", Math.abs(f))), e.setAll({ x: m, y: u });
1366
- } else
1367
- e.setPrivate("visible", !1);
1368
- }
1369
- }
1370
- _shouldShowBullet(t, e) {
1371
- return this._showBullets;
1372
- }
1373
- setDataSet(t) {
1374
- if (this._dataSets[t]) {
1375
- this._handleDataSetChange(), this._dataItems = this._dataSets[t], this._markDataSetDirty(), this._dataSetId = t;
1376
- const e = "datasetchanged";
1377
- this.events.isEnabled(e) && this.events.dispatch(e, { type: e, target: this, id: t });
1378
- }
1379
- }
1380
- resetGrouping() {
1381
- gt(this._dataSets, (t, e) => {
1382
- e != this._mainDataItems && w(e, (i) => {
1383
- this.disposeDataItem(i);
1384
- });
1385
- }), this._dataSets = {}, this._dataItems = this.mainDataItems;
1386
- }
1387
- _handleDataSetChange() {
1388
- w(this._dataItems, (t) => {
1389
- let e = t.bullets;
1390
- e && w(e, (i) => {
1391
- if (i) {
1392
- let s = i.get("sprite");
1393
- s && s.setPrivate("visible", !1);
1394
- }
1395
- });
1396
- }), this._selectionProcessed = !1;
1397
- }
1398
- show(t) {
1399
- const e = Object.create(null, { show: { get: () => super.show } });
1400
- return it(this, void 0, void 0, function* () {
1401
- this._fixVC();
1402
- let i = [];
1403
- i.push(e.show.call(this, t).then(() => {
1404
- this._isShowing = !1;
1405
- let s = this.get("xAxis"), a = this.get("yAxis"), n = this.get("baseAxis");
1406
- a !== n && a.markDirtySelectionExtremes(), s !== n && s.markDirtySelectionExtremes();
1407
- })), i.push(this.bulletsContainer.show(t)), i.push(this._sequencedShowHide(!0, t)), yield Promise.all(i);
1408
- });
1409
- }
1410
- hide(t) {
1411
- const e = Object.create(null, { hide: { get: () => super.hide } });
1412
- return it(this, void 0, void 0, function* () {
1413
- this._fixVC();
1414
- let i = [];
1415
- i.push(e.hide.call(this, t).then(() => {
1416
- this._isHiding = !1;
1417
- })), i.push(this.bulletsContainer.hide(t)), i.push(this._sequencedShowHide(!1, t)), yield Promise.all(i);
1418
- });
1419
- }
1420
- showDataItem(t, e) {
1421
- const i = Object.create(null, { showDataItem: { get: () => super.showDataItem } });
1422
- return it(this, void 0, void 0, function* () {
1423
- const s = [i.showDataItem.call(this, t, e)];
1424
- v(e) || (e = this.get("stateAnimationDuration", 0));
1425
- const a = this.get("stateAnimationEasing");
1426
- w(this._valueFields, (n) => {
1427
- s.push(t.animate({ key: n + "Working", to: t.get(n), duration: e, easing: a }).waitForStop());
1428
- }), yield Promise.all(s);
1429
- });
1430
- }
1431
- hideDataItem(t, e) {
1432
- const i = Object.create(null, { hideDataItem: { get: () => super.hideDataItem } });
1433
- return it(this, void 0, void 0, function* () {
1434
- const s = [i.hideDataItem.call(this, t, e)], a = this.states.create("hidden", {});
1435
- v(e) || (e = a.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)));
1436
- const n = a.get("stateAnimationEasing", this.get("stateAnimationEasing")), r = this.get("xAxis"), o = this.get("yAxis"), l = this.get("baseAxis"), c = this.get("stacked");
1437
- if (l !== r && l || w(this._valueYFields, (h) => {
1438
- let d = o.getPrivate("min"), g = o.baseValue();
1439
- v(d) && d > g && (g = d), c && (g = 0), t.get(h) != null && s.push(t.animate({ key: h + "Working", to: g, duration: e, easing: n }).waitForStop());
1440
- }), l === o || !l) {
1441
- let h = r.getPrivate("min"), d = r.baseValue();
1442
- v(h) && h > d && (d = h), c && (d = 0), w(this._valueXFields, (g) => {
1443
- t.get(g) != null && s.push(t.animate({ key: g + "Working", to: d, duration: e, easing: n }).waitForStop());
1444
- });
1445
- }
1446
- yield Promise.all(s);
1447
- });
1448
- }
1449
- _markDirtyStack() {
1450
- this._stackDirty = !0, this.markDirty(), this._markStakedDirtyStack();
1451
- }
1452
- _markStakedDirtyStack() {
1453
- const t = this._stackedSeries;
1454
- t && gt(t, (e, i) => {
1455
- i._stackDirty || i._markDirtyStack();
1456
- });
1457
- }
1458
- _afterChanged() {
1459
- super._afterChanged(), this._skipped && (this._markDirtyAxes(), this._skipped = !1);
1460
- }
1461
- showDataItemTooltip(t) {
1462
- this.getPrivate("doNotUpdateLegend") || (this.updateLegendMarker(t), this.updateLegendValue(t));
1463
- const e = this.get("tooltip");
1464
- if (e) {
1465
- if (this.isHidden())
1466
- this.hideTooltip();
1467
- else if (e._setDataItem(t), t) {
1468
- let i = this.get("locationX", 0), s = this.get("locationY", 1), a = t.get("locationX", i), n = t.get("locationY", s);
1469
- const r = this.get("xAxis"), o = this.get("yAxis"), l = this.get("vcx", 1), c = this.get("vcy", 1), h = r.getDataItemPositionX(t, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * a, l), d = o.getDataItemPositionY(t, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * n, c), g = this.getPoint(h, d);
1470
- let p = !0;
1471
- if (w(this._valueFields, (m) => {
1472
- t.get(m) == null && (p = !1);
1473
- }), p) {
1474
- const m = this.chart;
1475
- m && m.inPlot(g) ? (e.label.text.markDirtyText(), e.set("tooltipTarget", this._getTooltipTarget(t)), e.set("pointTo", this._display.toGlobal({ x: g.x, y: g.y }))) : e._setDataItem(void 0);
1476
- } else
1477
- e._setDataItem(void 0);
1478
- }
1479
- }
1480
- }
1481
- hideTooltip() {
1482
- const t = this.get("tooltip");
1483
- return t && t.set("tooltipTarget", this), super.hideTooltip();
1484
- }
1485
- _getTooltipTarget(t) {
1486
- if (this.get("seriesTooltipTarget") == "bullet") {
1487
- const e = t.bullets;
1488
- if (e && e.length > 0) {
1489
- const i = e[0].get("sprite");
1490
- if (i)
1491
- return i;
1492
- }
1493
- }
1494
- return this;
1495
- }
1496
- updateLegendValue(t) {
1497
- const e = this.get("legendDataItem");
1498
- if (e) {
1499
- const i = e.get("label");
1500
- if (i) {
1501
- let a = "";
1502
- t ? (i._setDataItem(t), a = this.get("legendLabelText", i.get("text", this.get("name", "")))) : (i._setDataItem(this._emptyDataItem), a = this.get("legendRangeLabelText", this.get("legendLabelText", i.get("text", this.get("name", ""))))), i.set("text", a);
1503
- }
1504
- const s = e.get("valueLabel");
1505
- if (s) {
1506
- let a = "";
1507
- t ? (s._setDataItem(t), a = this.get("legendValueText", s.get("text", ""))) : (s._setDataItem(this._emptyDataItem), a = this.get("legendRangeValueText", s.get("text", ""))), s.set("text", a);
1508
- }
1509
- }
1510
- }
1511
- _getItemReaderLabel() {
1512
- let t = "X: {" + this._xField;
1513
- return this.get("xAxis").isType("DateAxis") && (t += ".formatDate()"), t += "}; Y: {" + this._yField, this.get("yAxis").isType("DateAxis") && (t += ".formatDate()"), t += "}", t;
1514
- }
1515
- getPoint(t, e) {
1516
- let i = this.get("xAxis").get("renderer").positionToCoordinate(t), s = this.get("yAxis").get("renderer").positionToCoordinate(e), a = 999999999;
1517
- return s < -a && (s = -a), s > a && (s = a), i < -a && (i = -a), i > a && (i = a), { x: i, y: s };
1518
- }
1519
- _shouldInclude(t) {
1520
- return !0;
1521
- }
1522
- handleCursorHide() {
1523
- this.hideTooltip(), this.updateLegendValue(void 0), this.updateLegendMarker(void 0);
1524
- }
1525
- _afterDataChange() {
1526
- super._afterDataChange(), this.get("xAxis")._markDirtyKey("start"), this.get("yAxis")._markDirtyKey("start"), this.resetExtremes();
1527
- }
1528
- resetExtremes() {
1529
- this.setPrivate("selectionMinX", void 0), this.setPrivate("selectionMaxX", void 0), this.setPrivate("selectionMinY", void 0), this.setPrivate("selectionMaxY", void 0), this.setPrivate("minX", void 0), this.setPrivate("minY", void 0), this.setPrivate("maxX", void 0), this.setPrivate("maxY", void 0);
1530
- }
1531
- createAxisRange(t) {
1532
- return this.axisRanges.push({ axisDataItem: t });
1533
- }
1534
- get mainDataItems() {
1535
- return this._mainDataItems;
1536
- }
1537
- _adjustStartIndex(t) {
1538
- const e = this.get("xAxis");
1539
- if (this.get("baseAxis") == e && e.isType("DateAxis")) {
1540
- const i = e.baseDuration(), s = e.getPrivate("selectionMin", e.getPrivate("min", 0)), a = i * this.get("locationX", 0.5);
1541
- let n = -1 / 0;
1542
- for (; n < s; ) {
1543
- const r = this.dataItems[t];
1544
- if (!r)
1545
- break;
1546
- {
1547
- const o = r.open;
1548
- if (n = o ? o.valueX : r.get("valueX", 0), n += a, !(n < s))
1549
- break;
1550
- t++;
1551
- }
1552
- }
1553
- }
1554
- return t;
1555
- }
1556
- }
1557
- Object.defineProperty(U, "className", { enumerable: !0, configurable: !0, writable: !0, value: "XYSeries" }), Object.defineProperty(U, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: zt.classNames.concat([U.className]) });
1558
- class H extends Bt {
1559
- constructor() {
1560
- super(...arguments), Object.defineProperty(this, "_series", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "_isPanning", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "minorDataItems", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "labelsContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(S.new(this._root, {})) }), Object.defineProperty(this, "gridContainer", { enumerable: !0, configurable: !0, writable: !0, value: S.new(this._root, { width: k, height: k }) }), Object.defineProperty(this, "topGridContainer", { enumerable: !0, configurable: !0, writable: !0, value: S.new(this._root, { width: k, height: k }) }), Object.defineProperty(this, "bulletsContainer", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(S.new(this._root, { isMeasured: !1, width: k, height: k, position: "absolute" })) }), Object.defineProperty(this, "chart", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_rangesDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_panStart", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_panEnd", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_sAnimation", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_eAnimation", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_skipSync", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "axisRanges", { enumerable: !0, configurable: !0, writable: !0, value: new Et() }), Object.defineProperty(this, "_seriesAxisRanges", { enumerable: !0, configurable: !0, writable: !0, value: [] }), Object.defineProperty(this, "ghostLabel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_cursorPosition", { enumerable: !0, configurable: !0, writable: !0, value: -1 }), Object.defineProperty(this, "_snapToSeries", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_seriesValuesDirty", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_seriesAdded", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "axisHeader", { enumerable: !0, configurable: !0, writable: !0, value: this.children.push(S.new(this._root, { themeTags: ["axis", "header"], position: "absolute", background: nt.new(this._root, { themeTags: ["header", "background"], fill: this._root.interfaceColors.get("background") }) })) }), Object.defineProperty(this, "_bullets", { enumerable: !0, configurable: !0, writable: !0, value: {} });
1561
- }
1562
- _dispose() {
1563
- this.gridContainer.dispose(), this.topGridContainer.dispose(), this.bulletsContainer.dispose(), this.labelsContainer.dispose(), this.axisHeader.dispose(), super._dispose();
1564
- }
1565
- _afterNew() {
1566
- super._afterNew(), this.setPrivate("updateScrollbar", !0), this._disposers.push(this.axisRanges.events.onAll((e) => {
1567
- if (e.type === "clear")
1568
- w(e.oldValues, (i) => {
1569
- this.disposeDataItem(i);
1570
- });
1571
- else if (e.type === "push")
1572
- this._processAxisRange(e.newValue, ["range"]);
1573
- else if (e.type === "setIndex")
1574
- this._processAxisRange(e.newValue, ["range"]);
1575
- else if (e.type === "insertIndex")
1576
- this._processAxisRange(e.newValue, ["range"]);
1577
- else if (e.type === "removeIndex")
1578
- this.disposeDataItem(e.oldValue);
1579
- else {
1580
- if (e.type !== "moveIndex")
1581
- throw new Error("Unknown IStreamEvent type");
1582
- this._processAxisRange(e.value, ["range"]);
1583
- }
1584
- }));
1585
- const t = this.get("renderer");
1586
- t && (t.axis = this, t.processAxis()), this.children.push(t), this.ghostLabel = t.makeLabel(new ot(this, void 0, {}), []), this.ghostLabel.adapters.disable("text"), this.ghostLabel.setAll({ opacity: 0, tooltipText: void 0, tooltipHTML: void 0, interactive: !1 }), this.ghostLabel.events.disable();
1587
- }
1588
- _updateFinals(t, e) {
1589
- }
1590
- zoom(t, e, i, s) {
1591
- if (this.get("zoomable", !0))
1592
- if (this._updateFinals(t, e), this.get("start") !== t || this.get("end") != e) {
1593
- let a = this._sAnimation, n = this._eAnimation, r = this.get("maxDeviation", 0.5) * Math.min(1, e - t);
1594
- t < -r && (t = -r), e > 1 + r && (e = 1 + r), t > e && ([t, e] = [e, t]), v(i) || (i = this.get("interpolationDuration", 0)), s || (s = "end");
1595
- let o = this.getPrivate("maxZoomFactor", this.get("maxZoomFactor", 100)), l = o;
1596
- e === 1 && t !== 0 && (s = t < this.get("start", 0) ? "start" : "end"), t === 0 && e !== 1 && (s = e > this.get("end", 1) ? "end" : "start");
1597
- let c = this.get("minZoomCount", 0), h = this.get("maxZoomCount", 1 / 0);
1598
- v(c) && (o = l / c);
1599
- let d = 1;
1600
- if (v(h) && (d = l / h), s === "start" ? (h > 0 && 1 / (e - t) < d && (e = t + 1 / d), 1 / (e - t) > o && (e = t + 1 / o), e > 1 && e - t < 1 / o && (t = e - 1 / o)) : (h > 0 && 1 / (e - t) < d && (t = e - 1 / d), 1 / (e - t) > o && (t = e - 1 / o), t < 0 && e - t < 1 / o && (e = t + 1 / o)), 1 / (e - t) > o && (e = t + 1 / o), 1 / (e - t) > o && (t = e - 1 / o), h != null && c != null && t == this.get("start") && e == this.get("end")) {
1601
- const g = this.chart;
1602
- g && g._handleAxisSelection(this, !0);
1603
- }
1604
- if ((a && a.playing && a.to == t || this.get("start") == t) && (n && n.playing && n.to == e || this.get("end") == e))
1605
- return;
1606
- if (i > 0) {
1607
- let g, p, m = this.get("interpolationEasing");
1608
- if (this.get("start") != t && (g = this.animate({ key: "start", to: t, duration: i, easing: m })), this.get("end") != e && (p = this.animate({ key: "end", to: e, duration: i, easing: m })), this._sAnimation = g, this._eAnimation = p, g)
1609
- return g;
1610
- if (p)
1611
- return p;
1612
- } else
1613
- this.set("start", t), this.set("end", e), this._root.events.once("frameended", () => {
1614
- this._markDirtyKey("start"), this._root._markDirty();
1615
- });
1616
- } else
1617
- this._sAnimation && this._sAnimation.stop(), this._eAnimation && this._eAnimation.stop();
1618
- }
1619
- get series() {
1620
- return this._series;
1621
- }
1622
- _processAxisRange(t, e) {
1623
- t.setRaw("isRange", !0), this._createAssets(t, e), this._rangesDirty = !0, this._prepareDataItem(t);
1624
- const i = t.get("above"), s = this.topGridContainer, a = t.get("grid");
1625
- i && a && s.children.moveValue(a);
1626
- const n = t.get("axisFill");
1627
- i && n && s.children.moveValue(n);
1628
- }
1629
- _prepareDataItem(t, e) {
1630
- }
1631
- markDirtyExtremes() {
1632
- }
1633
- markDirtySelectionExtremes() {
1634
- }
1635
- _calculateTotals() {
1636
- }
1637
- _updateAxisRanges() {
1638
- this._bullets = {}, this.axisRanges.each((t) => {
1639
- this._prepareDataItem(t);
1640
- }), w(this._seriesAxisRanges, (t) => {
1641
- this._prepareDataItem(t);
1642
- });
1643
- }
1644
- _prepareChildren() {
1645
- if (super._prepareChildren(), this.get("fixAxisSize") ? this.ghostLabel.set("visible", !0) : this.ghostLabel.set("visible", !1), this.isDirty("start") || this.isDirty("end")) {
1646
- const e = this.chart;
1647
- e && e._updateCursor();
1648
- let i = this.get("start", 0), s = this.get("end", 1), a = this.get("maxDeviation", 0.5) * Math.min(1, s - i);
1649
- if (i < -a) {
1650
- let n = i + a;
1651
- i = -a, this.setRaw("start", i), this.isDirty("end") && this.setRaw("end", s - n);
1652
- }
1653
- if (s > 1 + a) {
1654
- let n = s - 1 - a;
1655
- s = 1 + a, this.setRaw("end", s), this.isDirty("start") && this.setRaw("start", i - n);
1656
- }
1657
- }
1658
- const t = this.get("renderer");
1659
- if (t._start = this.get("start"), t._end = this.get("end"), t._inversed = t.get("inversed", !1), t._axisLength = t.axisLength() / (t._end - t._start), t._updateLC(), this.isDirty("tooltip")) {
1660
- const e = this.get("tooltip");
1661
- if (e) {
1662
- const i = t.get("themeTags");
1663
- e.addTag("axis"), e.addTag(this.className.toLowerCase()), e._applyThemes(), i && (e.set("themeTags", F(e.get("themeTags"), i)), e.label._applyThemes());
1664
- }
1665
- }
1666
- }
1667
- _updateTooltipBounds() {
1668
- const t = this.get("tooltip");
1669
- t && this.get("renderer").updateTooltipBounds(t);
1670
- }
1671
- _updateBounds() {
1672
- super._updateBounds(), this._updateTooltipBounds();
1673
- }
1674
- processChart(t) {
1675
- this.chart = t, this.get("renderer").chart = t, t.gridContainer.children.push(this.gridContainer), t.topGridContainer.children.push(this.topGridContainer), t.axisHeadersContainer.children.push(this.axisHeader), this.on("start", () => {
1676
- t._handleAxisSelection(this);
1677
- }), this.on("end", () => {
1678
- t._handleAxisSelection(this);
1679
- }), t.plotContainer.onPrivate("width", () => {
1680
- this.markDirtySize();
1681
- }), t.plotContainer.onPrivate("height", () => {
1682
- this.markDirtySize();
1683
- }), t.processAxis(this);
1684
- }
1685
- hideDataItem(t) {
1686
- return this._toggleFHDataItem(t, !0), super.hideDataItem(t);
1687
- }
1688
- showDataItem(t) {
1689
- return this._toggleFHDataItem(t, !1), super.showDataItem(t);
1690
- }
1691
- _toggleFHDataItem(t, e) {
1692
- const i = "forceHidden", s = t.get("label");
1693
- s && s.set(i, e);
1694
- const a = t.get("grid");
1695
- a && a.set(i, e);
1696
- const n = t.get("tick");
1697
- n && n.set(i, e);
1698
- const r = t.get("axisFill");
1699
- r && r.set(i, e);
1700
- const o = t.get("bullet");
1701
- if (o) {
1702
- const l = o.get("sprite");
1703
- l && l.set(i, e);
1704
- }
1705
- }
1706
- _toggleDataItem(t, e) {
1707
- const i = t.get("label"), s = "visible";
1708
- i && i.setPrivate(s, e);
1709
- const a = t.get("grid");
1710
- a && a.setPrivate(s, e);
1711
- const n = t.get("tick");
1712
- n && n.setPrivate(s, e);
1713
- const r = t.get("axisFill");
1714
- r && r.setPrivate(s, e);
1715
- const o = t.get("bullet");
1716
- if (o) {
1717
- const l = o.get("sprite");
1718
- l && l.setPrivate(s, e);
1719
- }
1720
- }
1721
- _createAssets(t, e, i) {
1722
- var s, a, n;
1723
- const r = this.get("renderer");
1724
- let o = "minor";
1725
- const l = t.get("label");
1726
- if (l) {
1727
- let d = l.get("themeTags"), g = !1;
1728
- i ? (d == null ? void 0 : d.indexOf(o)) == -1 && (g = !0) : (d == null ? void 0 : d.indexOf(o)) != -1 && (g = !0), g && ((s = l.parent) === null || s === void 0 || s.children.removeValue(l), r.makeLabel(t, e), l.dispose(), r.labels.removeValue(l));
1729
- } else
1730
- r.makeLabel(t, e);
1731
- const c = t.get("grid");
1732
- if (c) {
1733
- let d = c.get("themeTags"), g = !1;
1734
- i ? (d == null ? void 0 : d.indexOf(o)) == -1 && (g = !0) : (d == null ? void 0 : d.indexOf(o)) != -1 && (g = !0), g && ((a = c.parent) === null || a === void 0 || a.children.removeValue(c), r.makeGrid(t, e), c.dispose(), r.grid.removeValue(c));
1735
- } else
1736
- r.makeGrid(t, e);
1737
- const h = t.get("tick");
1738
- if (h) {
1739
- let d = !1, g = h.get("themeTags");
1740
- i ? (g == null ? void 0 : g.indexOf(o)) == -1 && (d = !0) : (g == null ? void 0 : g.indexOf(o)) != -1 && (d = !0), d && ((n = h.parent) === null || n === void 0 || n.children.removeValue(h), r.makeTick(t, e), h.dispose(), r.ticks.removeValue(h));
1741
- } else
1742
- r.makeTick(t, e);
1743
- i || t.get("axisFill") || r.makeAxisFill(t, e), this._processBullet(t);
1744
- }
1745
- _processBullet(t) {
1746
- let e = t.get("bullet"), i = this.get("bullet");
1747
- if (e || !i || t.get("isRange") || (e = i(this._root, this, t)), e) {
1748
- e.axis = this;
1749
- const s = e.get("sprite");
1750
- s && (s._setDataItem(t), t.setRaw("bullet", e), s.parent || this.bulletsContainer.children.push(s));
1751
- }
1752
- }
1753
- _afterChanged() {
1754
- super._afterChanged();
1755
- const t = this.chart;
1756
- t && (t._updateChartLayout(), t.axisHeadersContainer.markDirtySize()), this.get("renderer")._updatePositions(), this._seriesAdded = !1;
1757
- }
1758
- disposeDataItem(t) {
1759
- super.disposeDataItem(t);
1760
- const e = this.get("renderer"), i = t.get("label");
1761
- i && (e.labels.removeValue(i), i.dispose());
1762
- const s = t.get("tick");
1763
- s && (e.ticks.removeValue(s), s.dispose());
1764
- const a = t.get("grid");
1765
- a && (e.grid.removeValue(a), a.dispose());
1766
- const n = t.get("axisFill");
1767
- n && (e.axisFills.removeValue(n), n.dispose());
1768
- const r = t.get("bullet");
1769
- r && r.dispose();
1770
- }
1771
- _updateGhost() {
1772
- this.setPrivate("cellWidth", this.getCellWidthPosition() * this.get("renderer").axisLength());
1773
- const t = this.ghostLabel;
1774
- if (!t.isHidden()) {
1775
- const s = t.localBounds(), a = Math.ceil(s.right - s.left);
1776
- let n = t.get("text");
1777
- w(this.dataItems, (r) => {
1778
- const o = r.get("label");
1779
- if (o && !o.isHidden()) {
1780
- const l = o.localBounds();
1781
- Math.ceil(l.right - l.left) > a && (n = o.text._getText());
1782
- }
1783
- }), t.set("text", n);
1784
- }
1785
- let e = this.get("start", 0), i = this.get("end", 1);
1786
- this.get("renderer").updateLabel(t, e + 0.5 * (i - e));
1787
- }
1788
- _handleCursorPosition(t, e) {
1789
- t = this.get("renderer").toAxisPosition(t), this._cursorPosition = t, this._snapToSeries = e, this.updateTooltip();
1790
- }
1791
- updateTooltip() {
1792
- const t = this._snapToSeries;
1793
- let e = this._cursorPosition;
1794
- const i = this.get("tooltip"), s = this.get("renderer");
1795
- v(e) && (w(this.series, (a) => {
1796
- if (a.get("baseAxis") === this) {
1797
- const n = this.getSeriesItem(a, e, this.get("tooltipLocation"));
1798
- a.setRaw("tooltipDataItem", n), t && t.indexOf(a) != -1 ? (a.updateLegendMarker(n), a.updateLegendValue(n)) : a.showDataItemTooltip(n);
1799
- }
1800
- }), i && (s.updateTooltipBounds(i), this.get("snapTooltip") && (e = this.roundAxisPosition(e, this.get("tooltipLocation", 0.5))), q(e) ? i.hide(0) : (this.setPrivateRaw("tooltipPosition", e), this._updateTooltipText(i, e), s.positionTooltip(i, e), e < this.get("start", 0) || e > this.get("end", 1) ? i.hide(0) : i.show(0))));
1801
- }
1802
- _updateTooltipText(t, e) {
1803
- t.label.set("text", this.getTooltipText(e));
1804
- }
1805
- roundAxisPosition(t, e) {
1806
- return t;
1807
- }
1808
- handleCursorShow() {
1809
- let t = this.get("tooltip");
1810
- t && t.show();
1811
- }
1812
- handleCursorHide() {
1813
- let t = this.get("tooltip");
1814
- t && t.hide();
1815
- }
1816
- processSeriesDataItem(t, e) {
1817
- }
1818
- _clearDirty() {
1819
- super._clearDirty(), this._sizeDirty = !1, this._rangesDirty = !1;
1820
- }
1821
- coordinateToPosition(t) {
1822
- const e = this.get("renderer");
1823
- return e.toAxisPosition(t / e.axisLength());
1824
- }
1825
- toAxisPosition(t) {
1826
- return this.get("renderer").toAxisPosition(t);
1827
- }
1828
- toGlobalPosition(t) {
1829
- return this.get("renderer").toGlobalPosition(t);
1830
- }
1831
- fixPosition(t) {
1832
- return this.get("renderer").fixPosition(t);
1833
- }
1834
- shouldGap(t, e, i, s) {
1835
- return !1;
1836
- }
1837
- createAxisRange(t) {
1838
- return this.axisRanges.push(t);
1839
- }
1840
- _groupSeriesData(t) {
1841
- }
1842
- getCellWidthPosition() {
1843
- return 0.05;
1844
- }
1845
- }
1846
- Object.defineProperty(H, "className", { enumerable: !0, configurable: !0, writable: !0, value: "Axis" }), Object.defineProperty(H, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Bt.classNames.concat([H.className]) });
1847
- class yt extends H {
1848
- constructor() {
1849
- super(...arguments), Object.defineProperty(this, "_dirtyExtremes", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_dirtySelectionExtremes", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_deltaMinMax", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_minReal", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_maxReal", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_baseValue", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_syncDp", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_minLogAdjusted", { enumerable: !0, configurable: !0, writable: !0, value: 1 });
1850
- }
1851
- markDirtyExtremes() {
1852
- this._dirtyExtremes = !0, this.markDirty();
1853
- }
1854
- markDirtySelectionExtremes() {
1855
- this._dirtySelectionExtremes = !0, this.markDirty();
1856
- }
1857
- _afterNew() {
1858
- this._settings.themeTags = F(this._settings.themeTags, ["axis"]), this.setPrivateRaw("name", "value"), this.addTag("value"), super._afterNew();
1859
- }
1860
- _prepareChildren() {
1861
- if (super._prepareChildren(), this.isDirty("syncWithAxis")) {
1862
- this._prevSettings.syncWithAxis && this._syncDp && this._syncDp.dispose();
1863
- let e = this.get("syncWithAxis");
1864
- e && (this._syncDp = new ae([e.onPrivate("selectionMinFinal", () => {
1865
- this._dirtySelectionExtremes = !0;
1866
- }), e.onPrivate("selectionMaxFinal", () => {
1867
- this._dirtySelectionExtremes = !0;
1868
- })]));
1869
- }
1870
- let t = !1;
1871
- (this.isDirty("min") || this.isDirty("max") || this.isDirty("maxPrecision") || this.isDirty("numberFormat")) && (t = !0, this.ghostLabel.set("text", "")), (this._sizeDirty || this._dirtyExtremes || this._valuesDirty || t || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("extraMin") || this.isDirty("extraMax") || this.isDirty("logarithmic") || this.isDirty("treatZeroAs") || this.isDirty("baseValue") || this.isDirty("strictMinMax") || this.isDirty("strictMinMaxSelection")) && (this._getMinMax(), this._dirtyExtremes = !1), this._dirtySelectionExtremes && !this._isPanning && this.get("autoZoom", !0) && (this._getSelectionMinMax(), this._dirtySelectionExtremes = !1), this._groupData(), (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("min") || this.isPrivateDirty("selectionMax") || this.isPrivateDirty("selectionMin") || this.isPrivateDirty("max") || this.isPrivateDirty("step") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("logarithmic")) && (this._handleRangeChange(), this._prepareAxisItems(), this._updateAxisRanges()), this._baseValue = this.baseValue();
1872
- }
1873
- _groupData() {
1874
- }
1875
- _formatText(t) {
1876
- const e = this.get("numberFormat"), i = this.getNumberFormatter();
1877
- let s = "";
1878
- return s = e ? i.format(t, e) : i.format(t, void 0, this.getPrivate("stepDecimalPlaces")), s;
1879
- }
1880
- _prepareAxisItems() {
1881
- const t = this.getPrivate("min"), e = this.getPrivate("max");
1882
- if (v(t) && v(e)) {
1883
- const i = this.get("logarithmic"), s = this.getPrivate("step"), a = this.getPrivate("selectionMin"), n = this.getPrivate("selectionMax") + s;
1884
- let r = a - s, o = 1, l = t;
1885
- if (i) {
1886
- if (r = this._minLogAdjusted, r < a)
1887
- for (; r < a; )
1888
- r += s;
1889
- l = r, l <= 0 && (l = 1, s < 1 && (l = s)), o = Math.log(n - s) * Math.LOG10E - Math.log(l) * Math.LOG10E, o > 2 && (r = Math.pow(10, Math.log(l) * Math.LOG10E - 5));
1890
- }
1891
- const c = this.get("renderer"), h = c.get("minorLabelsEnabled"), d = c.get("minorGridEnabled", h);
1892
- let g = Math.pow(10, Math.floor(Math.log(Math.abs(s)) * Math.LOG10E));
1893
- const p = Math.round(s / g);
1894
- let m = 2;
1895
- j(p / 5, 10) % 1 == 0 && (m = 5), j(p / 10, 10) % 1 == 0 && (m = 10);
1896
- let u = s / m, _ = 0, f = 0, x = -1 / 0;
1897
- for (; r < n; ) {
1898
- let b;
1899
- this.dataItems.length < _ + 1 ? (b = new ot(this, void 0, {}), this._dataItems.push(b), this.processDataItem(b)) : b = this.dataItems[_], this._createAssets(b, []), this._toggleDataItem(b, !0), b.setRaw("value", r);
1900
- const y = b.get("label");
1901
- y && y.set("text", this._formatText(r)), this._prepareDataItem(b);
1902
- let A = r;
1903
- if (i && o > 2 ? A = Math.pow(10, Math.log(l) * Math.LOG10E + _ - 5) : A += s, d) {
1904
- let D = r + u;
1905
- for (i && (o > 2 && (u = this._adjustMinMax(r, A, 10).step), D = r + u); D < A - 1e-11 * s; ) {
1906
- let O;
1907
- this.minorDataItems.length < f + 1 ? (O = new ot(this, void 0, {}), this.minorDataItems.push(O), this.processDataItem(O)) : O = this.minorDataItems[f], this._createAssets(O, ["minor"], !0), this._toggleDataItem(O, !0), O.setRaw("value", D);
1908
- const T = O.get("label");
1909
- T && (h ? T.set("text", this._formatText(D)) : T.setPrivate("visible", !1)), this._prepareDataItem(O), D += u, f++;
1910
- }
1911
- }
1912
- if (r = A, x == r)
1913
- break;
1914
- let I = Math.pow(10, Math.floor(Math.log(Math.abs(s)) * Math.LOG10E));
1915
- if (I < 1) {
1916
- let D = Math.round(Math.abs(Math.log(Math.abs(I)) * Math.LOG10E)) + 2;
1917
- r = j(r, D);
1918
- }
1919
- _++, x = r;
1920
- }
1921
- for (let b = _; b < this.dataItems.length; b++)
1922
- this._toggleDataItem(this.dataItems[b], !1);
1923
- for (let b = f; b < this.minorDataItems.length; b++)
1924
- this._toggleDataItem(this.minorDataItems[b], !1);
1925
- w(this.series, (b) => {
1926
- b.inited && b._markDirtyAxes();
1927
- }), this._updateGhost();
1928
- }
1929
- }
1930
- _prepareDataItem(t, e) {
1931
- let i = this.get("renderer"), s = t.get("value"), a = t.get("endValue"), n = this.valueToPosition(s), r = n, o = this.valueToPosition(s + this.getPrivate("step"));
1932
- v(a) && (r = this.valueToPosition(a), o = r), t.get("isRange") && a == null && (o = n);
1933
- let l = r, c = t.get("labelEndValue");
1934
- c != null && (l = this.valueToPosition(c)), i.updateLabel(t.get("label"), n, l, e);
1935
- const h = t.get("grid");
1936
- if (i.updateGrid(h, n, r), h && (s == this.get("baseValue", 0) ? (h.addTag("base"), h._applyThemes()) : h.hasTag("base") && (h.removeTag("base"), h._applyThemes())), i.updateTick(t.get("tick"), n, l, e), i.updateFill(t.get("axisFill"), n, o), this._processBullet(t), i.updateBullet(t.get("bullet"), n, r), !t.get("isRange")) {
1937
- const d = this.get("fillRule");
1938
- d && d(t);
1939
- }
1940
- }
1941
- _handleRangeChange() {
1942
- let t = this.positionToValue(this.get("start", 0)), e = this.positionToValue(this.get("end", 1));
1943
- const i = this.get("renderer").gridCount();
1944
- let s = this._adjustMinMax(t, e, i, !0), a = oe(s.step);
1945
- this.setPrivateRaw("stepDecimalPlaces", a), t = j(t, a), e = j(e, a), s = this._adjustMinMax(t, e, i, !0);
1946
- let n = s.step;
1947
- t = s.min, e = s.max, this.getPrivate("selectionMin") === t && this.getPrivate("selectionMax") === e && this.getPrivate("step") === n || (this.setPrivateRaw("selectionMin", t), this.setPrivateRaw("selectionMax", e), this.setPrivateRaw("step", n));
1948
- }
1949
- positionToValue(t) {
1950
- const e = this.getPrivate("min"), i = this.getPrivate("max");
1951
- return this.get("logarithmic") ? Math.pow(Math.E, (t * (Math.log(i) * Math.LOG10E - Math.log(e) * Math.LOG10E) + Math.log(e) * Math.LOG10E) / Math.LOG10E) : t * (i - e) + e;
1952
- }
1953
- valueToPosition(t) {
1954
- const e = this.getPrivate("min"), i = this.getPrivate("max");
1955
- if (this.get("logarithmic")) {
1956
- if (t <= 0) {
1957
- let s = this.get("treatZeroAs");
1958
- v(s) && (t = s);
1959
- }
1960
- return (Math.log(t) * Math.LOG10E - Math.log(e) * Math.LOG10E) / (Math.log(i) * Math.LOG10E - Math.log(e) * Math.LOG10E);
1961
- }
1962
- return (t - e) / (i - e);
1963
- }
1964
- valueToFinalPosition(t) {
1965
- const e = this.getPrivate("minFinal"), i = this.getPrivate("maxFinal");
1966
- if (this.get("logarithmic")) {
1967
- if (t <= 0) {
1968
- let s = this.get("treatZeroAs");
1969
- v(s) && (t = s);
1970
- }
1971
- return (Math.log(t) * Math.LOG10E - Math.log(e) * Math.LOG10E) / (Math.log(i) * Math.LOG10E - Math.log(e) * Math.LOG10E);
1972
- }
1973
- return (t - e) / (i - e);
1974
- }
1975
- getX(t, e, i) {
1976
- t = i + (t - i) * e;
1977
- const s = this.valueToPosition(t);
1978
- return this._settings.renderer.positionToCoordinate(s);
1979
- }
1980
- getY(t, e, i) {
1981
- t = i + (t - i) * e;
1982
- const s = this.valueToPosition(t);
1983
- return this._settings.renderer.positionToCoordinate(s);
1984
- }
1985
- getDataItemCoordinateX(t, e, i, s) {
1986
- return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t, e, i, s));
1987
- }
1988
- getDataItemPositionX(t, e, i, s) {
1989
- let a = t.get(e);
1990
- return t.get("stackToItemX") ? a = a * s + t.component.getStackedXValueWorking(t, e) : a = this._baseValue + (a - this._baseValue) * s, this.valueToPosition(a);
1991
- }
1992
- getDataItemCoordinateY(t, e, i, s) {
1993
- return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t, e, i, s));
1994
- }
1995
- getDataItemPositionY(t, e, i, s) {
1996
- let a = t.get(e);
1997
- return t.get("stackToItemY") ? a = a * s + t.component.getStackedYValueWorking(t, e) : a = this._baseValue + (a - this._baseValue) * s, this.valueToPosition(a);
1998
- }
1999
- basePosition() {
2000
- return this.valueToPosition(this.baseValue());
2001
- }
2002
- baseValue() {
2003
- const t = Math.min(this.getPrivate("minFinal", -1 / 0), this.getPrivate("selectionMin", -1 / 0)), e = Math.max(this.getPrivate("maxFinal", 1 / 0), this.getPrivate("selectionMax", 1 / 0));
2004
- let i = this.get("baseValue", 0);
2005
- return i < t && (i = t), i > e && (i = e), i;
2006
- }
2007
- cellEndValue(t) {
2008
- return t;
2009
- }
2010
- fixSmallStep(t) {
2011
- return 1 + t === 1 ? (t *= 2, this.fixSmallStep(t)) : t;
2012
- }
2013
- _fixMin(t) {
2014
- return t;
2015
- }
2016
- _fixMax(t) {
2017
- return t;
2018
- }
2019
- _calculateTotals() {
2020
- if (this.get("calculateTotals")) {
2021
- let t = this.series[0];
2022
- if (t) {
2023
- let e = t.startIndex();
2024
- if (t.dataItems.length > 0) {
2025
- e > 0 && e--;
2026
- let i, s, a = t.endIndex();
2027
- a < t.dataItems.length && a++, t.get("yAxis") == this ? (i = "valueY", s = "vcy") : t.get("xAxis") == this && (i = "valueX", s = "vcx");
2028
- let n = i + "Working";
2029
- if (i)
2030
- for (let r = e; r < a; r++) {
2031
- let o = 0, l = 0;
2032
- w(this.series, (c) => {
2033
- if (!c.get("excludeFromTotal")) {
2034
- let h = c.dataItems[r];
2035
- if (h) {
2036
- let d = h.get(n) * c.get(s);
2037
- q(d) || (o += d, l += Math.abs(d));
2038
- }
2039
- }
2040
- }), w(this.series, (c) => {
2041
- if (!c.get("excludeFromTotal")) {
2042
- let h = c.dataItems[r];
2043
- if (h) {
2044
- let d = h.get(n) * c.get(s);
2045
- q(d) || (h.set(i + "Total", l), h.set(i + "Sum", o), h.set(i + "TotalPercent", d / l * 100));
2046
- }
2047
- }
2048
- });
2049
- }
2050
- }
2051
- }
2052
- }
2053
- }
2054
- _getSelectionMinMax() {
2055
- const t = this.getPrivate("minFinal"), e = this.getPrivate("maxFinal"), i = this.get("min"), s = this.get("max");
2056
- let a = this.get("extraMin", 0), n = this.get("extraMax", 0);
2057
- this.get("logarithmic") && (this.get("extraMin") == null && (a = 0.1), this.get("extraMax") == null && (n = 0.2));
2058
- const r = this.get("renderer").gridCount(), o = this.get("strictMinMaxSelection");
2059
- let l = this.get("strictMinMax");
2060
- if (v(t) && v(e)) {
2061
- let c = e, h = t;
2062
- if (w(this.series, (x) => {
2063
- if (!x.get("ignoreMinMax")) {
2064
- let b, y;
2065
- const A = x.getPrivate("outOfSelection");
2066
- if (x.get("xAxis") === this) {
2067
- if (!A) {
2068
- let I = x.getPrivate("minX"), D = x.getPrivate("maxX");
2069
- x.startIndex() == 0 && x.endIndex() == x.dataItems.length || (I = void 0, D = void 0), b = x.getPrivate("selectionMinX", I), y = x.getPrivate("selectionMaxX", D);
2070
- }
2071
- } else if (x.get("yAxis") === this && !A) {
2072
- let I = x.getPrivate("minY"), D = x.getPrivate("maxY");
2073
- x.startIndex() == 0 && x.endIndex() == x.dataItems.length || (I = void 0, D = void 0), b = x.getPrivate("selectionMinY", I), y = x.getPrivate("selectionMaxY", D);
2074
- }
2075
- x.isHidden() || x.isShowing() || (v(b) && (c = Math.min(c, b)), v(y) && (h = Math.max(h, y)));
2076
- }
2077
- }), this.axisRanges.each((x) => {
2078
- if (x.get("affectsMinMax")) {
2079
- let b = x.get("value");
2080
- b != null && (c = Math.min(c, b), h = Math.max(h, b)), b = x.get("endValue"), b != null && (c = Math.min(c, b), h = Math.max(h, b));
2081
- }
2082
- }), c > h && ([c, h] = [h, c]), v(i) ? c = l ? i : t : l && v(this._minReal) && (c = this._minReal), v(s) ? h = l ? s : e : l && v(this._maxReal) && (h = this._maxReal), c === h) {
2083
- let x = c;
2084
- if (c -= this._deltaMinMax, h += this._deltaMinMax, c < t) {
2085
- let y = x - t;
2086
- y == 0 && (y = this._deltaMinMax), c = x - y, h = x + y, l = !0;
2087
- }
2088
- let b = this._adjustMinMax(c, h, r, l);
2089
- c = b.min, h = b.max;
2090
- }
2091
- let d = c, g = h;
2092
- c -= (h - c) * a, h += (h - c) * n;
2093
- let p = this._adjustMinMax(c, h, r);
2094
- c = p.min, h = p.max, c = kt(c, t, e), h = kt(h, t, e), p = this._adjustMinMax(c, h, r, !0), l || (c = p.min, h = p.max);
2095
- const m = this.get("syncWithAxis");
2096
- m && (p = this._syncAxes(c, h, p.step, m.getPrivate("selectionMinFinal", m.getPrivate("minFinal", 0)), m.getPrivate("selectionMaxFinal", m.getPrivate("maxFinal", 1)), m.getPrivate("selectionStepFinal", m.getPrivate("step", 1))), c = p.min, h = p.max), l && (v(i) && (c = Math.max(c, i)), v(s) && (h = Math.min(h, s))), o && (c = d - (h - c) * a, h = g + (h - c) * n), this.get("logarithmic") && (c <= 0 && (c = d * (1 - Math.min(a, 0.99))), c < t && (c = t), h > e && (h = e));
2097
- let u = Math.min(20, Math.ceil(Math.log(this.getPrivate("maxZoomFactor", 100) + 1) / Math.LN10) + 2), _ = j(this.valueToFinalPosition(c), u), f = j(this.valueToFinalPosition(h), u);
2098
- this.setPrivateRaw("selectionMinFinal", c), this.setPrivateRaw("selectionMaxFinal", h), this.setPrivateRaw("selectionStepFinal", p.step), this.zoom(_, f);
2099
- }
2100
- }
2101
- _getMinMax() {
2102
- let t = this.get("min"), e = this.get("max"), i = 1 / 0, s = -1 / 0, a = this.get("extraMin", 0), n = this.get("extraMax", 0);
2103
- this.get("logarithmic") && (this.get("extraMin") == null && (a = 0.1), this.get("extraMax") == null && (n = 0.2));
2104
- let r = 1 / 0;
2105
- if (w(this.series, (x) => {
2106
- if (!x.get("ignoreMinMax")) {
2107
- let b, y;
2108
- if (x.get("xAxis") === this ? (b = x.getPrivate("minX"), y = x.getPrivate("maxX")) : x.get("yAxis") === this && (b = x.getPrivate("minY"), y = x.getPrivate("maxY")), v(b) && v(y)) {
2109
- i = Math.min(i, b), s = Math.max(s, y);
2110
- let A = y - b;
2111
- A <= 0 && (A = Math.abs(y / 100)), A < r && (r = A);
2112
- }
2113
- }
2114
- }), this.axisRanges.each((x) => {
2115
- if (x.get("affectsMinMax")) {
2116
- let b = x.get("value");
2117
- b != null && (i = Math.min(i, b), s = Math.max(s, b)), b = x.get("endValue"), b != null && (i = Math.min(i, b), s = Math.max(s, b));
2118
- }
2119
- }), this.get("logarithmic")) {
2120
- let x = this.get("treatZeroAs");
2121
- v(x) && i <= 0 && (i = x);
2122
- }
2123
- if (i === 0 && s === 0 && (s = 0.9, i = -0.9), v(t) && (i = t), v(e) && (s = e), i === 1 / 0 || s === -1 / 0)
2124
- return this.setPrivate("minFinal", void 0), void this.setPrivate("maxFinal", void 0);
2125
- const o = i, l = s;
2126
- let c = this.adapters.fold("min", i), h = this.adapters.fold("max", s);
2127
- v(c) && (i = c), v(h) && (s = h), i = this._fixMin(i), s = this._fixMax(s), s - i <= 1 / Math.pow(10, 15) && (s - i != 0 ? this._deltaMinMax = (s - i) / 2 : this._getDelta(s), i -= this._deltaMinMax, s += this._deltaMinMax), i -= (s - i) * a, s += (s - i) * n, this.get("logarithmic") && (i < 0 && o >= 0 && (i = 0), s > 0 && l <= 0 && (s = 0)), this._minReal = i, this._maxReal = s;
2128
- let d = this.get("strictMinMax"), g = this.get("strictMinMaxSelection", !1);
2129
- g && (d = g);
2130
- let p = d;
2131
- v(e) && (p = !0);
2132
- let m = this.get("renderer").gridCount(), u = this._adjustMinMax(i, s, m, p);
2133
- i = u.min, s = u.max, u = this._adjustMinMax(i, s, m, !0), i = u.min, s = u.max, d && (i = v(t) ? t : this._minReal, s = v(e) ? e : this._maxReal, s - i <= 1e-8 && (i -= this._deltaMinMax, s += this._deltaMinMax), i -= (s - i) * a, s += (s - i) * n), c = this.adapters.fold("min", i), h = this.adapters.fold("max", s), v(c) && (i = c), v(h) && (s = h), r == 1 / 0 && (r = s - i);
2134
- let _ = Math.round(Math.abs(Math.log(Math.abs(s - i)) * Math.LOG10E)) + 5;
2135
- i = j(i, _), s = j(s, _);
2136
- const f = this.get("syncWithAxis");
2137
- if (f && (u = this._syncAxes(i, s, u.step, f.getPrivate("minFinal", f.getPrivate("min", 0)), f.getPrivate("maxFinal", f.getPrivate("max", 1)), f.getPrivate("step", 1)), i = u.min, s = u.max), this.setPrivateRaw("maxZoomFactor", Math.max(1, Math.ceil((s - i) / r * this.get("maxZoomFactor", 100)))), this._fixZoomFactor(), this.get("logarithmic") && (this._minLogAdjusted = i, i = this._minReal, s = this._maxReal, i <= 0 && (i = o * (1 - Math.min(a, 0.99)))), v(i) && v(s) && (this.getPrivate("minFinal") !== i || this.getPrivate("maxFinal") !== s)) {
2138
- this.setPrivate("minFinal", i), this.setPrivate("maxFinal", s), this._saveMinMax(i, s);
2139
- const x = this.get("interpolationDuration", 0), b = this.get("interpolationEasing");
2140
- this.animatePrivate({ key: "min", to: i, duration: x, easing: b }), this.animatePrivate({ key: "max", to: s, duration: x, easing: b });
2141
- }
2142
- }
2143
- _fixZoomFactor() {
2144
- }
2145
- _getDelta(t) {
2146
- let e = Math.log(Math.abs(t)) * Math.LOG10E, i = Math.pow(10, Math.floor(e));
2147
- i /= 10, this._deltaMinMax = i;
2148
- }
2149
- _saveMinMax(t, e) {
2150
- }
2151
- _adjustMinMax(t, e, i, s) {
2152
- i <= 1 && (i = 1), i = Math.round(i);
2153
- let a = t, n = e, r = e - t;
2154
- r === 0 && (r = Math.abs(e));
2155
- let o = Math.log(Math.abs(r)) * Math.LOG10E, l = Math.pow(10, Math.floor(o));
2156
- l /= 10;
2157
- let c = l;
2158
- s && (c = 0), s ? (t = Math.floor(t / l) * l, e = Math.ceil(e / l) * l) : (t = Math.ceil(t / l) * l - c, e = Math.floor(e / l) * l + c), t < 0 && a >= 0 && (t = 0), e > 0 && n <= 0 && (e = 0), o = Math.log(Math.abs(r)) * Math.LOG10E, l = Math.pow(10, Math.floor(o)), l /= 100;
2159
- let h = Math.ceil(r / i / l) * l, d = Math.pow(10, Math.floor(Math.log(Math.abs(h)) * Math.LOG10E)), g = Math.ceil(h / d);
2160
- g > 5 ? g = 10 : g <= 5 && g > 2 && (g = 5), h = Math.ceil(h / (d * g)) * d * g;
2161
- let p = this.get("maxPrecision");
2162
- if (v(p)) {
2163
- let f = le(h, p);
2164
- p < Number.MAX_VALUE && h !== f && (h = f);
2165
- }
2166
- let m = 0;
2167
- d < 1 && (m = Math.round(Math.abs(Math.log(Math.abs(d)) * Math.LOG10E)) + 1, h = j(h, m));
2168
- let u, _ = Math.floor(t / h);
2169
- return t = j(h * _, m), u = s ? Math.floor(e / h) : Math.ceil(e / h), u === _ && u++, (e = j(h * u, m)) < n && (e += h), t > a && (t -= h), h = this.fixSmallStep(h), { min: t, max: e, step: h };
2170
- }
2171
- getTooltipText(t, e) {
2172
- const i = this.get("tooltipNumberFormat", this.get("numberFormat")), s = this.getNumberFormatter(), a = this.get("extraTooltipPrecision", 0), n = this.getPrivate("stepDecimalPlaces", 0) + a, r = j(this.positionToValue(t), n);
2173
- return i ? s.format(r, i) : s.format(r, void 0, n);
2174
- }
2175
- getSeriesItem(t, e) {
2176
- let i, s, a = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), n = this.positionToValue(e);
2177
- if (w(t.dataItems, (r, o) => {
2178
- const l = Math.abs(r.get(a) - n);
2179
- (i === void 0 || l < s) && (i = o, s = l);
2180
- }), i != null)
2181
- return t.dataItems[i];
2182
- }
2183
- zoomToValues(t, e, i) {
2184
- const s = this.getPrivate("minFinal", 0), a = this.getPrivate("maxFinal", 0);
2185
- this.getPrivate("min") != null && this.getPrivate("max") != null && this.zoom((t - s) / (a - s), (e - s) / (a - s), i);
2186
- }
2187
- _syncAxes(t, e, i, s, a, n) {
2188
- if (this.get("syncWithAxis")) {
2189
- let r = Math.round(a - s) / n, o = Math.round((e - t) / i), l = this.get("renderer").gridCount();
2190
- if (v(r) && v(o)) {
2191
- let c = !1, h = 0, d = 0.01 * (e - t), g = t, p = e, m = i;
2192
- for (; c != 1; )
2193
- if (c = this._checkSync(g, p, m, r), h++, h > 500 && (c = !0), c)
2194
- t = g, e = p, i = m;
2195
- else {
2196
- h / 3 == Math.round(h / 3) ? (g = t - d * h, t >= 0 && g < 0 && (g = 0)) : (p = e + d * h, p <= 0 && p > 0 && (p = 0));
2197
- let u = this._adjustMinMax(g, p, l, !0);
2198
- g = u.min, p = u.max, m = u.step;
2199
- }
2200
- }
2201
- }
2202
- return { min: t, max: e, step: i };
2203
- }
2204
- _checkSync(t, e, i, s) {
2205
- let a = (e - t) / i;
2206
- for (let n = 1; n < s; n++)
2207
- if (j(a / n, 1) == s || a * n == s)
2208
- return !0;
2209
- return !1;
2210
- }
2211
- getCellWidthPosition() {
2212
- let t = this.getPrivate("selectionMax", this.getPrivate("max")), e = this.getPrivate("selectionMin", this.getPrivate("min"));
2213
- return v(t) && v(e) ? this.getPrivate("step", 1) / (t - e) : 0.05;
2214
- }
2215
- }
2216
- Object.defineProperty(yt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "ValueAxis" }), Object.defineProperty(yt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: H.classNames.concat([yt.className]) });
2217
- class ut extends Vt {
2218
- constructor() {
2219
- super(...arguments), Object.defineProperty(this, "_tickPoints", { enumerable: !0, configurable: !0, writable: !0, value: [] });
2220
- }
2221
- }
2222
- Object.defineProperty(ut, "className", { enumerable: !0, configurable: !0, writable: !0, value: "AxisLabel" }), Object.defineProperty(ut, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Vt.classNames.concat([ut.className]) });
2223
- class pt extends Wt {
2224
- constructor() {
2225
- super(...arguments), Object.defineProperty(this, "_tickPoints", { enumerable: !0, configurable: !0, writable: !0, value: [] });
2226
- }
2227
- }
2228
- Object.defineProperty(pt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "AxisTick" }), Object.defineProperty(pt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Wt.classNames.concat([pt.className]) });
2229
- class Z extends G {
2230
- constructor() {
2231
- super(...arguments), Object.defineProperty(this, "_axisLength", { enumerable: !0, configurable: !0, writable: !0, value: 100 }), Object.defineProperty(this, "_start", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_end", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_inversed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "_minSize", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "chart", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_lc", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_ls", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_thumbDownPoint", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downStart", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_downEnd", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "ticks", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => pt._new(this._root, { themeTags: F(this.ticks.template.get("themeTags", []), this.get("themeTags", [])) }, [this.ticks.template])) }), Object.defineProperty(this, "grid", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => st._new(this._root, { themeTags: F(this.grid.template.get("themeTags", []), this.get("themeTags", [])) }, [this.grid.template])) }), Object.defineProperty(this, "axisFills", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => G._new(this._root, { themeTags: F(this.axisFills.template.get("themeTags", ["axis", "fill"]), this.get("themeTags", [])) }, [this.axisFills.template])) }), Object.defineProperty(this, "labels", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => ut._new(this._root, { themeTags: F(this.labels.template.get("themeTags", []), this.get("themeTags", [])) }, [this.labels.template])) }), Object.defineProperty(this, "axis", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "thumb", { enumerable: !0, configurable: !0, writable: !0, value: void 0 });
2232
- }
2233
- makeTick(t, e) {
2234
- const i = this.ticks.make();
2235
- return i._setDataItem(t), t.setRaw("tick", i), i.set("themeTags", F(i.get("themeTags"), e)), this.axis.labelsContainer.children.push(i), this.ticks.push(i), i;
2236
- }
2237
- makeGrid(t, e) {
2238
- const i = this.grid.make();
2239
- return i._setDataItem(t), t.setRaw("grid", i), i.set("themeTags", F(i.get("themeTags"), e)), this.axis.gridContainer.children.push(i), this.grid.push(i), i;
2240
- }
2241
- makeAxisFill(t, e) {
2242
- const i = this.axisFills.make();
2243
- return i._setDataItem(t), i.set("themeTags", F(i.get("themeTags"), e)), this.axis.gridContainer.children.push(i), t.setRaw("axisFill", i), this.axisFills.push(i), i;
2244
- }
2245
- makeLabel(t, e) {
2246
- const i = this.labels.make();
2247
- return i.set("themeTags", F(i.get("themeTags"), e)), this.axis.labelsContainer.children.moveValue(i, 0), i._setDataItem(t), t.setRaw("label", i), this.labels.push(i), i;
2248
- }
2249
- axisLength() {
2250
- return 0;
2251
- }
2252
- gridCount() {
2253
- return this.axisLength() / this.get("minGridDistance", 50);
2254
- }
2255
- _updatePositions() {
2256
- }
2257
- _afterNew() {
2258
- super._afterNew(), this.set("isMeasured", !1);
2259
- const t = this.thumb;
2260
- t && (this._disposers.push(t.events.on("pointerdown", (e) => {
2261
- this._handleThumbDown(e);
2262
- })), this._disposers.push(t.events.on("globalpointerup", (e) => {
2263
- this._handleThumbUp(e);
2264
- })), this._disposers.push(t.events.on("globalpointermove", (e) => {
2265
- this._handleThumbMove(e);
2266
- })));
2267
- }
2268
- _beforeChanged() {
2269
- super._beforeChanged(), this.isDirty("minGridDistance") && this.root.events.once("frameended", () => {
2270
- this.axis.markDirtySize();
2271
- });
2272
- }
2273
- _changed() {
2274
- if (super._changed(), this.isDirty("pan")) {
2275
- const t = this.thumb;
2276
- if (t) {
2277
- const e = this.axis.labelsContainer, i = this.get("pan");
2278
- i == "zoom" ? e.children.push(t) : i == "none" && e.children.removeValue(t);
2279
- }
2280
- }
2281
- }
2282
- _handleThumbDown(t) {
2283
- this._thumbDownPoint = this.toLocal(t.point);
2284
- const e = this.axis;
2285
- this._downStart = e.get("start"), this._downEnd = e.get("end");
2286
- }
2287
- _handleThumbUp(t) {
2288
- this._thumbDownPoint = void 0;
2289
- }
2290
- _handleThumbMove(t) {
2291
- const e = this._thumbDownPoint;
2292
- if (e) {
2293
- const i = this.toLocal(t.point), s = this._downStart, a = this._downEnd, n = this._getPan(i, e) * Math.min(1, a - s) / 2;
2294
- this.axis.zoom(s - n, a + n, 0);
2295
- }
2296
- }
2297
- _getPan(t, e) {
2298
- return 0;
2299
- }
2300
- positionToCoordinate(t) {
2301
- return this._inversed ? (this._end - t) * this._axisLength : (t - this._start) * this._axisLength;
2302
- }
2303
- updateTooltipBounds(t) {
2304
- }
2305
- _updateSize() {
2306
- this.markDirty(), this._clear = !0;
2307
- }
2308
- toAxisPosition(t) {
2309
- const e = this._start || 0, i = this._end || 1;
2310
- return t *= i - e, t = this.get("inversed") ? i - t : e + t;
2311
- }
2312
- toGlobalPosition(t) {
2313
- const e = this._start || 0, i = this._end || 1;
2314
- return this.get("inversed") ? t = i - t : t -= e, t /= i - e;
2315
- }
2316
- fixPosition(t) {
2317
- return this.get("inversed") ? 1 - t : t;
2318
- }
2319
- _updateLC() {
2320
- }
2321
- toggleVisibility(t, e, i, s) {
2322
- let a = this.axis;
2323
- const n = a.get("start", 0), r = a.get("end", 1);
2324
- e < n + (r - n) * (i - 1e-4) || e > n + (r - n) * (s + 1e-4) ? t.setPrivate("visible", !1) : t.setPrivate("visible", !0);
2325
- }
2326
- _positionTooltip(t, e) {
2327
- const i = this.chart;
2328
- i && (t.set("pointTo", this._display.toGlobal(e)), i.inPlot(e) || t.hide());
2329
- }
2330
- processAxis() {
2331
- }
2332
- }
2333
- Object.defineProperty(Z, "className", { enumerable: !0, configurable: !0, writable: !0, value: "AxisRenderer" }), Object.defineProperty(Z, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: G.classNames.concat([Z.className]) });
2334
- class Pt extends Z {
2335
- constructor() {
2336
- super(...arguments), Object.defineProperty(this, "thumb", { enumerable: !0, configurable: !0, writable: !0, value: nt.new(this._root, { width: k, isMeasured: !1, themeTags: ["axis", "x", "thumb"] }) });
2337
- }
2338
- _afterNew() {
2339
- this._settings.themeTags = F(this._settings.themeTags, ["renderer", "x"]), super._afterNew(), this.setPrivateRaw("letter", "X");
2340
- const t = this.grid.template;
2341
- t.set("height", k), t.set("width", 0), t.set("draw", (e, i) => {
2342
- e.moveTo(0, 0), e.lineTo(0, i.height());
2343
- }), this.set("draw", (e, i) => {
2344
- e.moveTo(0, 0), e.lineTo(i.width(), 0);
2345
- });
2346
- }
2347
- _changed() {
2348
- super._changed();
2349
- const t = this.axis;
2350
- t.ghostLabel.setPrivate("visible", !this.get("inside")), t.ghostLabel.set("x", -1e3);
2351
- const e = "opposite", i = "inside";
2352
- if (this.isDirty(e) || this.isDirty(i)) {
2353
- const s = this.chart, a = t.children;
2354
- if (this.get(i) ? t.addTag(i) : t.removeTag(i), s) {
2355
- if (this.get(e)) {
2356
- const n = s.topAxesContainer.children;
2357
- n.indexOf(t) == -1 && n.insertIndex(0, t), t.addTag(e), a.moveValue(this);
2358
- } else {
2359
- const n = s.bottomAxesContainer.children;
2360
- n.indexOf(t) == -1 && n.moveValue(t), t.removeTag(e), a.moveValue(this, 0);
2361
- }
2362
- t.ghostLabel._applyThemes(), this.labels.each((n) => {
2363
- n._applyThemes();
2364
- }), this.root._markDirtyRedraw();
2365
- }
2366
- t.markDirtySize();
2367
- }
2368
- this.thumb.setPrivate("height", t.labelsContainer.height());
2369
- }
2370
- _getPan(t, e) {
2371
- return (e.x - t.x) / this.width();
2372
- }
2373
- toAxisPosition(t) {
2374
- const e = this._start || 0, i = this._end || 1;
2375
- return t = (t -= this._ls) * (i - e) / this._lc, t = this.get("inversed") ? i - t : e + t;
2376
- }
2377
- toGlobalPosition(t) {
2378
- const e = this._start || 0, i = this._end || 1;
2379
- return this.get("inversed") ? t = i - t : t -= e, t = t / (i - e) * this._lc, t += this._ls;
2380
- }
2381
- _updateLC() {
2382
- const t = this.axis, e = t.parent;
2383
- if (e) {
2384
- const i = e.innerWidth();
2385
- this._lc = this.axisLength() / i, this._ls = (t.x() - e.get("paddingLeft", 0)) / i;
2386
- }
2387
- }
2388
- _updatePositions() {
2389
- const t = this.axis, e = t.x() - _t(t.get("centerX", 0), t.width()) - t.parent.get("paddingLeft", 0);
2390
- t.gridContainer.set("x", e), t.topGridContainer.set("x", e), t.bulletsContainer.set("y", this.y());
2391
- const i = t.chart;
2392
- if (i) {
2393
- const s = i.plotContainer, a = t.axisHeader;
2394
- let n = t.get("marginLeft", 0), r = t.x() - n;
2395
- const o = t.parent;
2396
- o && (r -= o.get("paddingLeft", 0)), a.children.length > 0 ? (n = t.axisHeader.width(), t.set("marginLeft", n + 1)) : a.set("width", n), a.setAll({ x: r, y: -1, height: s.height() + 2 });
2397
- }
2398
- }
2399
- processAxis() {
2400
- super.processAxis();
2401
- const t = this.axis;
2402
- t.get("width") == null && t.set("width", k);
2403
- const e = this._root.verticalLayout;
2404
- t.set("layout", e), t.labelsContainer.set("width", k), t.axisHeader.setAll({ layout: e });
2405
- }
2406
- axisLength() {
2407
- return this.axis.width();
2408
- }
2409
- positionToPoint(t) {
2410
- return { x: this.positionToCoordinate(t), y: 0 };
2411
- }
2412
- updateTick(t, e, i, s) {
2413
- if (t) {
2414
- v(e) || (e = 0);
2415
- let a = 0.5;
2416
- a = v(s) && s > 1 ? t.get("multiLocation", a) : t.get("location", a), v(i) && i != e && (e += (i - e) * a), t.set("x", this.positionToCoordinate(e));
2417
- let n = t.get("length", 0);
2418
- const r = t.get("inside", this.get("inside", !1));
2419
- this.get("opposite") ? (t.set("y", k), r || (n *= -1)) : (t.set("y", 0), r && (n *= -1)), t.set("draw", (o) => {
2420
- o.moveTo(0, 0), o.lineTo(0, n);
2421
- }), this.toggleVisibility(t, e, t.get("minPosition", 0), t.get("maxPosition", 1));
2422
- }
2423
- }
2424
- updateLabel(t, e, i, s) {
2425
- if (t) {
2426
- let a = 0.5;
2427
- a = v(s) && s > 1 ? t.get("multiLocation", a) : t.get("location", a), v(e) || (e = 0);
2428
- const n = t.get("inside", this.get("inside", !1));
2429
- this.get("opposite") ? n ? (t.set("position", "absolute"), t.set("y", 0)) : (t.set("position", "relative"), t.set("y", k)) : n ? (t.set("y", 0), t.set("position", "absolute")) : (t.set("y", void 0), t.set("position", "relative")), v(i) && i != e && (e += (i - e) * a), t.set("x", this.positionToCoordinate(e)), this.toggleVisibility(t, e, t.get("minPosition", 0), t.get("maxPosition", 1));
2430
- }
2431
- }
2432
- updateGrid(t, e, i) {
2433
- if (t) {
2434
- v(e) || (e = 0);
2435
- let s = t.get("location", 0.5);
2436
- v(i) && i != e && (e += (i - e) * s), t.set("x", this.positionToCoordinate(e)), this.toggleVisibility(t, e, 0, 1);
2437
- }
2438
- }
2439
- updateBullet(t, e, i) {
2440
- if (t) {
2441
- const s = t.get("sprite");
2442
- if (s) {
2443
- v(e) || (e = 0);
2444
- let a = t.get("location", 0.5);
2445
- v(i) && i != e && (e += (i - e) * a);
2446
- let n = this.axis.roundAxisPosition(e, a), r = this.axis._bullets[n], o = -1;
2447
- if (this.get("opposite") && (o = 1), t.get("stacked"))
2448
- if (r) {
2449
- let l = r.get("sprite");
2450
- l && s.set("y", l.y() + l.height() * o);
2451
- } else
2452
- s.set("y", 0);
2453
- this.axis._bullets[n] = t, s.set("x", this.positionToCoordinate(e)), this.toggleVisibility(s, e, 0, 1);
2454
- }
2455
- }
2456
- }
2457
- updateFill(t, e, i) {
2458
- if (t) {
2459
- v(e) || (e = 0), v(i) || (i = 1);
2460
- let s = this.positionToCoordinate(e), a = this.positionToCoordinate(i);
2461
- this.fillDrawMethod(t, s, a);
2462
- }
2463
- }
2464
- fillDrawMethod(t, e, i) {
2465
- t.set("draw", (s) => {
2466
- const a = this.axis.gridContainer.height(), n = this.width();
2467
- i < e && ([i, e] = [e, i]), e > n || i < 0 || (s.moveTo(e, 0), s.lineTo(i, 0), s.lineTo(i, a), s.lineTo(e, a), s.lineTo(e, 0));
2468
- });
2469
- }
2470
- positionTooltip(t, e) {
2471
- this._positionTooltip(t, { x: this.positionToCoordinate(e), y: 0 });
2472
- }
2473
- updateTooltipBounds(t) {
2474
- const e = this.get("inside"), i = 1e5;
2475
- let s = this._display.toGlobal({ x: 0, y: 0 }), a = s.x, n = 0, r = this.axisLength(), o = i, l = "up";
2476
- this.get("opposite") ? e ? (l = "up", n = s.y, o = i) : (l = "down", n = s.y - i, o = i) : e ? (l = "down", n = s.y - i, o = i) : (l = "up", n = s.y, o = i);
2477
- const c = { left: a, right: a + r, top: n, bottom: n + o }, h = t.get("bounds");
2478
- Gt(c, h) || (t.set("bounds", c), t.set("pointerOrientation", l));
2479
- }
2480
- }
2481
- Object.defineProperty(Pt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "AxisRendererX" }), Object.defineProperty(Pt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Z.classNames.concat([Pt.className]) });
2482
- class wt extends Z {
2483
- constructor() {
2484
- super(...arguments), Object.defineProperty(this, "_downY", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "thumb", { enumerable: !0, configurable: !0, writable: !0, value: nt.new(this._root, { height: k, isMeasured: !1, themeTags: ["axis", "y", "thumb"] }) });
2485
- }
2486
- _afterNew() {
2487
- this._settings.themeTags = F(this._settings.themeTags, ["renderer", "y"]), this._settings.opposite && this._settings.themeTags.push("opposite"), super._afterNew(), this.setPrivateRaw("letter", "Y");
2488
- const t = this.grid.template;
2489
- t.set("width", k), t.set("height", 0), t.set("draw", (e, i) => {
2490
- e.moveTo(0, 0), e.lineTo(i.width(), 0);
2491
- }), this.set("draw", (e, i) => {
2492
- e.moveTo(0, 0), e.lineTo(0, i.height());
2493
- });
2494
- }
2495
- _getPan(t, e) {
2496
- return (t.y - e.y) / this.height();
2497
- }
2498
- _changed() {
2499
- super._changed();
2500
- const t = this.axis;
2501
- t.ghostLabel.setPrivate("visible", !this.get("inside")), t.ghostLabel.set("y", -1e3);
2502
- const e = this.thumb, i = "opposite", s = "inside", a = this.chart;
2503
- if (this.isDirty(i) || this.isDirty(s)) {
2504
- const r = t.children;
2505
- if (this.get(s) ? t.addTag(s) : t.removeTag(s), a) {
2506
- if (this.get(i)) {
2507
- const o = a.rightAxesContainer.children;
2508
- o.indexOf(t) == -1 && o.moveValue(t, 0), t.addTag(i), r.moveValue(this, 0);
2509
- } else {
2510
- const o = a.leftAxesContainer.children;
2511
- o.indexOf(t) == -1 && o.moveValue(t), t.removeTag(i), r.moveValue(this);
2512
- }
2513
- t.ghostLabel._applyThemes(), this.labels.each((o) => {
2514
- o._applyThemes();
2515
- }), this.root._markDirtyRedraw();
2516
- }
2517
- t.markDirtySize();
2518
- }
2519
- const n = t.labelsContainer.width();
2520
- a && (this.get(i) ? e.set("centerX", 0) : e.set("centerX", n)), e.setPrivate("width", n);
2521
- }
2522
- processAxis() {
2523
- super.processAxis();
2524
- const t = this.axis;
2525
- t.get("height") == null && t.set("height", k);
2526
- const e = this._root.horizontalLayout;
2527
- t.set("layout", e), t.labelsContainer.set("height", k), t.axisHeader.set("layout", e);
2528
- }
2529
- _updatePositions() {
2530
- const t = this.axis, e = t.y() - _t(t.get("centerY", 0), t.height());
2531
- t.gridContainer.set("y", e), t.topGridContainer.set("y", e), t.bulletsContainer.set("x", this.x());
2532
- const i = t.chart;
2533
- if (i) {
2534
- const s = i.plotContainer, a = t.axisHeader;
2535
- let n = t.get("marginTop", 0);
2536
- a.children.length > 0 ? (n = t.axisHeader.height(), t.set("marginTop", n + 1)) : a.set("height", n), a.setAll({ y: t.y() - n, x: -1, width: s.width() + 2 });
2537
- }
2538
- }
2539
- axisLength() {
2540
- return this.axis.innerHeight();
2541
- }
2542
- positionToPoint(t) {
2543
- return { x: 0, y: this.positionToCoordinate(t) };
2544
- }
2545
- updateLabel(t, e, i, s) {
2546
- if (t) {
2547
- v(e) || (e = 0);
2548
- let a = 0.5;
2549
- a = v(s) && s > 1 ? t.get("multiLocation", a) : t.get("location", a);
2550
- const n = this.get("opposite"), r = t.get("inside", this.get("inside", !1));
2551
- n ? (t.set("x", 0), r ? t.set("position", "absolute") : t.set("position", "relative")) : r ? (t.set("x", 0), t.set("position", "absolute")) : (t.set("x", void 0), t.set("position", "relative")), v(i) && i != e && (e += (i - e) * a), t.set("y", this.positionToCoordinate(e)), this.toggleVisibility(t, e, t.get("minPosition", 0), t.get("maxPosition", 1));
2552
- }
2553
- }
2554
- updateGrid(t, e, i) {
2555
- if (t) {
2556
- v(e) || (e = 0);
2557
- let s = t.get("location", 0.5);
2558
- v(i) && i != e && (e += (i - e) * s), t.set("y", this.positionToCoordinate(e)), this.toggleVisibility(t, e, 0, 1);
2559
- }
2560
- }
2561
- updateTick(t, e, i, s) {
2562
- if (t) {
2563
- v(e) || (e = 0);
2564
- let a = 0.5;
2565
- a = v(s) && s > 1 ? t.get("multiLocation", a) : t.get("location", a), v(i) && i != e && (e += (i - e) * a), t.set("y", this.positionToCoordinate(e));
2566
- let n = t.get("length", 0);
2567
- const r = t.get("inside", this.get("inside", !1));
2568
- this.get("opposite") ? (t.set("x", 0), r && (n *= -1)) : r || (n *= -1), t.set("draw", (o) => {
2569
- o.moveTo(0, 0), o.lineTo(n, 0);
2570
- }), this.toggleVisibility(t, e, t.get("minPosition", 0), t.get("maxPosition", 1));
2571
- }
2572
- }
2573
- updateBullet(t, e, i) {
2574
- if (t) {
2575
- const s = t.get("sprite");
2576
- if (s) {
2577
- v(e) || (e = 0);
2578
- let a = t.get("location", 0.5);
2579
- v(i) && i != e && (e += (i - e) * a);
2580
- let n = this.axis.roundAxisPosition(e, a), r = this.axis._bullets[n], o = 1;
2581
- if (this.get("opposite") && (o = -1), t.get("stacked"))
2582
- if (r) {
2583
- let l = r.get("sprite");
2584
- l && s.set("x", l.x() + l.width() * o);
2585
- } else
2586
- s.set("x", 0);
2587
- this.axis._bullets[n] = t, s.set("y", this.positionToCoordinate(e)), this.toggleVisibility(s, e, 0, 1);
2588
- }
2589
- }
2590
- }
2591
- updateFill(t, e, i) {
2592
- if (t) {
2593
- v(e) || (e = 0), v(i) || (i = 1);
2594
- let s = this.positionToCoordinate(e), a = this.positionToCoordinate(i);
2595
- this.fillDrawMethod(t, s, a);
2596
- }
2597
- }
2598
- fillDrawMethod(t, e, i) {
2599
- t.set("draw", (s) => {
2600
- const a = this.axis.gridContainer.width(), n = this.height();
2601
- i < e && ([i, e] = [e, i]), e > n || i < 0 || (s.moveTo(0, e), s.lineTo(a, e), s.lineTo(a, i), s.lineTo(0, i), s.lineTo(0, e));
2602
- });
2603
- }
2604
- positionToCoordinate(t) {
2605
- return this._inversed ? (t - this._start) * this._axisLength : (this._end - t) * this._axisLength;
2606
- }
2607
- positionTooltip(t, e) {
2608
- this._positionTooltip(t, { x: 0, y: this.positionToCoordinate(e) });
2609
- }
2610
- updateTooltipBounds(t) {
2611
- const e = this.get("inside"), i = 1e5;
2612
- let s = this._display.toGlobal({ x: 0, y: 0 }), a = s.y, n = 0, r = this.axisLength(), o = i, l = "right";
2613
- this.get("opposite") ? e ? (l = "right", n = s.x - i, o = i) : (l = "left", n = s.x, o = i) : e ? (l = "left", n = s.x, o = i) : (l = "right", n = s.x - i, o = i);
2614
- const c = { left: n, right: n + o, top: a, bottom: a + r }, h = t.get("bounds");
2615
- Gt(c, h) || (t.set("bounds", c), t.set("pointerOrientation", l));
2616
- }
2617
- _updateLC() {
2618
- const t = this.axis, e = t.parent;
2619
- if (e) {
2620
- const i = e.innerHeight();
2621
- this._lc = this.axisLength() / i, this._ls = t.y() / i;
2622
- }
2623
- }
2624
- toAxisPosition(t) {
2625
- const e = this._start || 0, i = this._end || 1;
2626
- return t = (t -= this._ls) * (i - e) / this._lc, t = this.get("inversed") ? e + t : i - t;
2627
- }
2628
- toGlobalPosition(t) {
2629
- const e = this._start || 0, i = this._end || 1;
2630
- return this.get("inversed") ? t -= e : t = i - t, t = t / (i - e) * this._lc, t += this._ls;
2631
- }
2632
- fixPosition(t) {
2633
- return this.get("inversed") ? t : 1 - t;
2634
- }
2635
- }
2636
- Object.defineProperty(wt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "AxisRendererY" }), Object.defineProperty(wt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: Z.classNames.concat([wt.className]) });
2637
- class Dt extends U {
2638
- constructor() {
2639
- super(...arguments), Object.defineProperty(this, "_endIndex", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_strokeGenerator", { enumerable: !0, configurable: !0, writable: !0, value: Jt() }), Object.defineProperty(this, "_fillGenerator", { enumerable: !0, configurable: !0, writable: !0, value: ge() }), Object.defineProperty(this, "_legendStroke", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_legendFill", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "strokes", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => G._new(this._root, { themeTags: F(this.strokes.template.get("themeTags", []), ["line", "series", "stroke"]) }, [this.strokes.template])) }), Object.defineProperty(this, "fills", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => G._new(this._root, { themeTags: F(this.strokes.template.get("themeTags", []), ["line", "series", "fill"]) }, [this.fills.template])) }), Object.defineProperty(this, "_fillTemplate", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_strokeTemplate", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "_previousPoint", { enumerable: !0, configurable: !0, writable: !0, value: [0, 0, 0, 0] }), Object.defineProperty(this, "_dindex", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_sindex", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
2640
- }
2641
- _afterNew() {
2642
- this._fillGenerator.y0(function(t) {
2643
- return t[3];
2644
- }), this._fillGenerator.x0(function(t) {
2645
- return t[2];
2646
- }), this._fillGenerator.y1(function(t) {
2647
- return t[1];
2648
- }), this._fillGenerator.x1(function(t) {
2649
- return t[0];
2650
- }), super._afterNew();
2651
- }
2652
- makeStroke(t) {
2653
- const e = this.mainContainer.children.push(t.make());
2654
- return t.push(e), e;
2655
- }
2656
- makeFill(t) {
2657
- const e = this.mainContainer.children.push(t.make());
2658
- return t.push(e), e;
2659
- }
2660
- _updateChildren() {
2661
- this._strokeTemplate = void 0, this._fillTemplate = void 0;
2662
- let t = this.get("xAxis"), e = this.get("yAxis");
2663
- if (this.isDirty("stroke")) {
2664
- const i = this.get("stroke");
2665
- this.strokes.template.set("stroke", i);
2666
- const s = this._legendStroke;
2667
- s && s.states.lookup("default").set("stroke", i);
2668
- }
2669
- if (this.isDirty("fill")) {
2670
- const i = this.get("fill");
2671
- this.fills.template.set("fill", i);
2672
- const s = this._legendFill;
2673
- s && s.states.lookup("default").set("fill", i);
2674
- }
2675
- if (this.isDirty("curveFactory")) {
2676
- const i = this.get("curveFactory");
2677
- i && (this._strokeGenerator.curve(i), this._fillGenerator.curve(i));
2678
- }
2679
- if (t.inited && e.inited) {
2680
- if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty || this.isDirty("connect") || this.isDirty("curveFactory")) {
2681
- this.fills.each((c) => {
2682
- c.setPrivate("visible", !1);
2683
- }), this.strokes.each((c) => {
2684
- c.setPrivate("visible", !1);
2685
- }), this.axisRanges.each((c) => {
2686
- let h = c.fills;
2687
- h && h.each((g) => {
2688
- g.setPrivate("visible", !1);
2689
- });
2690
- let d = c.strokes;
2691
- d && d.each((g) => {
2692
- g.setPrivate("visible", !1);
2693
- });
2694
- });
2695
- let i = this.startIndex(), s = this.strokes.template.get("templateField"), a = this.fills.template.get("templateField"), n = !0, r = !0;
2696
- s && (n = !1), a && (r = !1);
2697
- for (let c = i - 1; c >= 0; c--) {
2698
- let h = this.dataItems[c], d = !0, g = h.dataContext;
2699
- if (s && g[s] && (n = !0), a && g[a] && (r = !0), w(this._valueFields, (p) => {
2700
- v(h.get(p)) || (d = !1);
2701
- }), d && n && r) {
2702
- i = c;
2703
- break;
2704
- }
2705
- }
2706
- let o = this.dataItems.length, l = this.endIndex();
2707
- if (l < o) {
2708
- l++;
2709
- for (let c = l; c < o; c++) {
2710
- let h = this.dataItems[c], d = !0;
2711
- if (w(this._valueFields, (g) => {
2712
- v(h.get(g)) || (d = !1);
2713
- }), d) {
2714
- l = c + 1;
2715
- break;
2716
- }
2717
- }
2718
- }
2719
- if (i > 0 && i--, this._endIndex = l, this._clearGraphics(), this._sindex = 0, this._dindex = i, this.dataItems.length == 1)
2720
- this._startSegment(0);
2721
- else
2722
- for (; this._dindex < l - 1; )
2723
- this._startSegment(this._dindex), this._sindex++;
2724
- }
2725
- } else
2726
- this._skipped = !0;
2727
- super._updateChildren();
2728
- }
2729
- _clearGraphics() {
2730
- this.strokes.clear(), this.fills.clear();
2731
- }
2732
- _startSegment(t) {
2733
- let e = this._endIndex, i = e;
2734
- const s = this.get("autoGapCount"), a = this.get("connect"), n = this.makeFill(this.fills), r = this._fillTemplate, o = this.fills.template;
2735
- r && r != o && (n.template = r), n.setPrivate("visible", !0);
2736
- const l = this.makeStroke(this.strokes), c = this._strokeTemplate;
2737
- c && c != this.strokes.template && (l.template = c), l.setPrivate("visible", !0);
2738
- let h = this.get("xAxis"), d = this.get("yAxis"), g = this.get("baseAxis"), p = this.get("vcx", 1), m = this.get("vcy", 1), u = this._xField, _ = this._yField, f = this._xOpenField, x = this._yOpenField;
2739
- const b = this.get("openValueXField"), y = this.get("openValueYField");
2740
- b || (f = this._xField), y || (x = this._yField);
2741
- const A = this.get("stacked"), I = h.basePosition(), D = d.basePosition();
2742
- let O;
2743
- O = g === d ? this._yField : this._xField;
2744
- const T = [];
2745
- let C = [];
2746
- T.push(C);
2747
- const N = this.strokes.template.get("templateField"), W = this.fills.template.get("templateField");
2748
- let K = this.get("locationX", 0.5), J = this.get("locationY", 0.5), rt = this.get("openLocationX", K), L = this.get("openLocationY", J);
2749
- const R = this.get("minDistance", 0);
2750
- let M, Tt = this.fills.template.get("visible");
2751
- this.axisRanges.length > 0 && (Tt = !0);
2752
- let Mt = !1;
2753
- (A || b || y) && (Mt = !0);
2754
- const xt = { points: C, segments: T, stacked: A, getOpen: Mt, basePosX: I, basePosY: D, fillVisible: Tt, xField: u, yField: _, xOpenField: f, yOpenField: x, vcx: p, vcy: m, baseAxis: g, xAxis: h, yAxis: d, locationX: K, locationY: J, openLocationX: rt, openLocationY: L, minDistance: R };
2755
- for (M = t; M < i; M++) {
2756
- this._dindex = M;
2757
- const z = this._dataItems[M];
2758
- let Q = z.get(u), bt = z.get(_);
2759
- if (Q == null || bt == null ? a || (C = [], T.push(C), xt.points = C) : this._getPoints(z, xt), N) {
2760
- let X = z.dataContext[N];
2761
- if (X) {
2762
- if (X instanceof E || (X = E.new(X)), this._strokeTemplate = X, M > t) {
2763
- i = M;
2764
- break;
2765
- }
2766
- l.template = X;
2767
- }
2768
- }
2769
- if (W) {
2770
- let X = z.dataContext[W];
2771
- if (X) {
2772
- if (X instanceof E || (X = E.new(X)), this._fillTemplate = X, M > t) {
2773
- i = M;
2774
- break;
2775
- }
2776
- n.template = X;
2777
- }
2778
- }
2779
- if (!a) {
2780
- let X = this.dataItems[M + 1];
2781
- X && g.shouldGap(z, X, s, O) && (C = [], T.push(C), xt.points = C);
2782
- }
2783
- }
2784
- n.setRaw("userData", [t, M]), l.setRaw("userData", [t, M]), M === e && this._endLine(C, T[0][0]), l && this._drawStroke(l, T), n && this._drawFill(n, T), this.axisRanges.each((z) => {
2785
- const Q = z.container, bt = z.fills, X = this.makeFill(bt);
2786
- Q && Q.children.push(X), X.setPrivate("visible", !0), this._drawFill(X, T);
2787
- const Qt = z.strokes, lt = this.makeStroke(Qt);
2788
- Q && Q.children.push(lt), lt.setPrivate("visible", !0), this._drawStroke(lt, T), X.setRaw("userData", [t, M]), lt.setRaw("userData", [t, M]);
2789
- });
2790
- }
2791
- _getPoints(t, e) {
2792
- let i = e.points, s = t.get("locationX", e.locationX), a = t.get("locationY", e.locationY), n = e.xAxis.getDataItemPositionX(t, e.xField, s, e.vcx), r = e.yAxis.getDataItemPositionY(t, e.yField, a, e.vcy);
2793
- if (this._shouldInclude(n)) {
2794
- const o = this.getPoint(n, r), l = [o.x, o.y];
2795
- if (o.x += this._x, o.y += this._y, t.set("point", o), e.fillVisible) {
2796
- let c = n, h = r;
2797
- if (e.baseAxis === e.xAxis ? h = e.basePosY : e.baseAxis === e.yAxis && (c = e.basePosX), e.getOpen) {
2798
- let g = t.get(e.xOpenField), p = t.get(e.yOpenField);
2799
- if (g != null && p != null) {
2800
- let m = t.get("openLocationX", e.openLocationX), u = t.get("openLocationY", e.openLocationY);
2801
- if (e.stacked) {
2802
- let _ = t.get("stackToItemX"), f = t.get("stackToItemY");
2803
- _ ? (c = e.xAxis.getDataItemPositionX(_, e.xField, m, _.component.get("vcx")), q(c) && (c = e.basePosX)) : c = e.yAxis === e.baseAxis ? e.basePosX : e.xAxis.getDataItemPositionX(t, e.xOpenField, m, e.vcx), f ? (h = e.yAxis.getDataItemPositionY(f, e.yField, u, f.component.get("vcy")), q(h) && (h = e.basePosY)) : h = e.xAxis === e.baseAxis ? e.basePosY : e.yAxis.getDataItemPositionY(t, e.yOpenField, u, e.vcy);
2804
- } else
2805
- c = e.xAxis.getDataItemPositionX(t, e.xOpenField, m, e.vcx), h = e.yAxis.getDataItemPositionY(t, e.yOpenField, u, e.vcy);
2806
- }
2807
- }
2808
- let d = this.getPoint(c, h);
2809
- l[2] = d.x, l[3] = d.y;
2810
- }
2811
- if (e.minDistance > 0) {
2812
- const c = l[0], h = l[1], d = l[2], g = l[3], p = this._previousPoint, m = p[0], u = p[1], _ = p[2], f = p[3];
2813
- (Math.hypot(c - m, h - u) > e.minDistance || d && g && Math.hypot(d - _, g - f) > e.minDistance) && (i.push(l), this._previousPoint = l);
2814
- } else
2815
- i.push(l);
2816
- }
2817
- }
2818
- _endLine(t, e) {
2819
- }
2820
- _drawStroke(t, e) {
2821
- t.get("visible") && !t.get("forceHidden") && t.set("draw", (i) => {
2822
- w(e, (s) => {
2823
- this._strokeGenerator.context(i), this._strokeGenerator(s);
2824
- });
2825
- });
2826
- }
2827
- _drawFill(t, e) {
2828
- t.get("visible") && !t.get("forceHidden") && t.set("draw", (i) => {
2829
- w(e, (s) => {
2830
- this._fillGenerator.context(i), this._fillGenerator(s);
2831
- });
2832
- });
2833
- }
2834
- _processAxisRange(t) {
2835
- super._processAxisRange(t), t.fills = new B(E.new({}), () => G._new(this._root, { themeTags: F(t.fills.template.get("themeTags", []), ["line", "series", "fill"]) }, [this.fills.template, t.fills.template])), t.strokes = new B(E.new({}), () => G._new(this._root, { themeTags: F(t.strokes.template.get("themeTags", []), ["line", "series", "stroke"]) }, [this.strokes.template, t.strokes.template]));
2836
- }
2837
- createLegendMarker(t) {
2838
- const e = this.get("legendDataItem");
2839
- if (e) {
2840
- const i = e.get("marker"), s = e.get("markerRectangle");
2841
- s && s.setPrivate("visible", !1), i.set("background", nt.new(i._root, { fillOpacity: 0, fill: ne(0) }));
2842
- const a = i.children.push(G._new(i._root, { themeTags: ["line", "series", "legend", "marker", "stroke"], interactive: !1 }, [this.strokes.template]));
2843
- this._legendStroke = a;
2844
- const n = i.children.push(G._new(i._root, { themeTags: ["line", "series", "legend", "marker", "fill"] }, [this.fills.template]));
2845
- this._legendFill = n;
2846
- const r = this._root.interfaceColors.get("disabled");
2847
- if (a.states.create("disabled", { fill: r, stroke: r }), n.states.create("disabled", { fill: r, stroke: r }), this.bullets.length > 0) {
2848
- const o = this.bullets.getIndex(0);
2849
- if (o) {
2850
- const l = o(i._root, this, new ot(this, { legend: !0 }, {}));
2851
- if (l) {
2852
- const c = l.get("sprite");
2853
- c instanceof G && c.states.create("disabled", { fill: r, stroke: r }), c && (c.set("tooltipText", void 0), c.set("tooltipHTML", void 0), i.children.push(c), c.setAll({ x: i.width() / 2, y: i.height() / 2 }), i.events.on("boundschanged", () => {
2854
- c.setAll({ x: i.width() / 2, y: i.height() / 2 });
2855
- }));
2856
- }
2857
- }
2858
- }
2859
- }
2860
- }
2861
- }
2862
- Object.defineProperty(Dt, "className", { enumerable: !0, configurable: !0, writable: !0, value: "LineSeries" }), Object.defineProperty(Dt, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: U.classNames.concat([Dt.className]) });
2863
- class $ extends U {
2864
- constructor() {
2865
- super(...arguments), Object.defineProperty(this, "_ph", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "_pw", { enumerable: !0, configurable: !0, writable: !0, value: 0 });
2866
- }
2867
- _makeGraphics(t, e) {
2868
- return this.makeColumn(e, t);
2869
- }
2870
- _makeFieldNames() {
2871
- super._makeFieldNames();
2872
- const t = this.get("xAxis"), e = this.get("yAxis"), i = "CategoryAxis", s = "ValueAxis";
2873
- t.isType(i) && (this.get("openCategoryXField") || (this._xOpenField = this._xField)), t.isType(s) && (this.get("openValueXField") || (this._xOpenField = this._xField)), e.isType(i) && (this.get("openCategoryYField") || (this._yOpenField = this._yField)), e.isType(s) && (this.get("openValueYField") || (this._yOpenField = this._yField));
2874
- }
2875
- _prepareChildren() {
2876
- super._prepareChildren();
2877
- const t = this.get("xAxis"), e = this.get("yAxis"), i = this.dataItems.length, s = Math.max(0, this.startIndex() - 2), a = Math.min(this.endIndex() + 2, i - 1);
2878
- if (t.inited && e.inited)
2879
- for (let n = s; n <= a; n++) {
2880
- let r = this.dataItems[n];
2881
- this._createGraphics(r);
2882
- }
2883
- }
2884
- _updateChildren() {
2885
- const t = this.chart;
2886
- t && (this._ph = t.plotContainer.height(), this._pw = t.plotContainer.width());
2887
- const e = this.get("xAxis"), i = this.get("yAxis"), s = this.get("baseAxis"), a = this.columns.template;
2888
- this.isDirty("fill") && a.get("fill") == null && a.set("fill", this.get("fill")), this.isDirty("stroke") && a.get("stroke") == null && a.set("stroke", this.get("stroke"));
2889
- let n = 0, r = 0, o = 0;
2890
- w(s.series, (_) => {
2891
- if (_ instanceof $) {
2892
- const f = _.get("stacked");
2893
- f && o == 0 && r++, !f && _.get("clustered") && r++;
2894
- }
2895
- _ === this && (n = r - 1), o++;
2896
- }), this.get("clustered") || (n = 0, r = 1), r === 0 && (r = 1, n = 0);
2897
- const l = e.get("renderer"), c = i.get("renderer"), h = "cellStartLocation", d = "cellEndLocation", g = l.get(h, 0), p = l.get(d, 1), m = c.get(h, 0), u = c.get(d, 1);
2898
- if (this._aLocationX0 = g + n / r * (p - g), this._aLocationX1 = g + (n + 1) / r * (p - g), this._aLocationY0 = m + n / r * (u - m), this._aLocationY1 = m + (n + 1) / r * (u - m), e.inited && i.inited) {
2899
- if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) {
2900
- const _ = this.dataItems.length;
2901
- let f = Math.max(0, this.startIndex() - 2), x = Math.min(this.endIndex() + 2, _ - 1);
2902
- for (let y = 0; y < f; y++)
2903
- this._toggleColumn(this.dataItems[y], !1);
2904
- let b = this.dataItems[f];
2905
- for (let y = f; y <= x; y++) {
2906
- let A = this.dataItems[y];
2907
- if (A.get("valueX") != null && A.get("valueY") != null) {
2908
- if (b = A, y > 0 && f > 0)
2909
- for (let I = y - 1; I >= 0; I--) {
2910
- let D = this.dataItems[I];
2911
- if (D.get("valueX") != null && D.get("valueY") != null) {
2912
- b = D;
2913
- break;
2914
- }
2915
- }
2916
- break;
2917
- }
2918
- this._toggleColumn(A, !1);
2919
- }
2920
- for (let y = f; y <= x; y++) {
2921
- let A = this.dataItems[y];
2922
- this._updateGraphics(A, b), A.get("valueX") != null && A.get("valueY") != null && (b = A);
2923
- }
2924
- for (let y = x + 1; y < _; y++)
2925
- this._toggleColumn(this.dataItems[y], !1);
2926
- }
2927
- } else
2928
- this._skipped = !0;
2929
- this.updateLegendMarker(this.get("tooltipDataItem")), super._updateChildren();
2930
- }
2931
- _createGraphics(t) {
2932
- let e = t.get("graphics");
2933
- if (!e) {
2934
- e = this._makeGraphics(this.columns, t), t.set("graphics", e), e._setDataItem(t);
2935
- const i = t.get("legendDataItem");
2936
- if (i) {
2937
- const a = i.get("markerRectangle");
2938
- if (a) {
2939
- const n = a.states.lookup("default");
2940
- w(Lt, (r) => {
2941
- const o = e.get(r, this.get(r));
2942
- a.set(r, o), n.set(r, o);
2943
- });
2944
- }
2945
- }
2946
- let s = t.get("rangeGraphics");
2947
- s && w(s, (a) => {
2948
- a.dispose();
2949
- }), s = [], t.setRaw("rangeGraphics", s), this.axisRanges.each((a) => {
2950
- const n = a.container, r = this._makeGraphics(a.columns, t);
2951
- s && s.push(r), r.setPrivate("list", a.columns), n.children.push(r);
2952
- });
2953
- }
2954
- }
2955
- createAxisRange(t) {
2956
- return w(this.dataItems, (e) => {
2957
- const i = e.get("graphics");
2958
- i && (i.dispose(), e.set("graphics", void 0));
2959
- }), super.createAxisRange(t);
2960
- }
2961
- _updateGraphics(t, e) {
2962
- let i = t.get("graphics");
2963
- const s = this._xField, a = this._yField, n = t.get(s), r = t.get(a);
2964
- if (n != null && r != null) {
2965
- const o = this._xOpenField, l = this._yOpenField, c = this.get("locationX", t.get("locationX", 0.5)), h = this.get("locationY", t.get("locationY", 0.5)), d = this.get("openLocationX", t.get("openLocationX", c)), g = this.get("openLocationY", t.get("openLocationY", h)), p = i.get("width"), m = i.get("height"), u = this.get("stacked"), _ = this.get("xAxis"), f = this.get("yAxis"), x = this.get("baseAxis"), b = _.get("start"), y = _.get("end"), A = f.get("start"), I = f.get("end");
2966
- let D, O, T, C, N = this.get("vcy", 1), W = this.get("vcx", 1), K = !1, J = !1;
2967
- if (f.isType("CategoryAxis") && _.isType("CategoryAxis")) {
2968
- let L = this._aLocationX0 + d - 0.5, R = this._aLocationX1 + c - 0.5;
2969
- if (p instanceof et) {
2970
- let M = (R - L) * (1 - p.value) / 2;
2971
- L += M, R -= M;
2972
- }
2973
- if (D = _.getDataItemPositionX(t, o, L, W), O = _.getDataItemPositionX(t, s, R, W), L = this._aLocationY0 + g - 0.5, R = this._aLocationY1 + h - 0.5, m instanceof et) {
2974
- let M = (R - L) * (1 - m.value) / 2;
2975
- L += M, R -= M;
2976
- }
2977
- T = f.getDataItemPositionY(t, l, L, N), C = f.getDataItemPositionY(t, a, R, N), t.setRaw("point", { x: D + (O - D) / 2, y: T + (C - T) / 2 });
2978
- } else if (_ === x) {
2979
- let L = this._aLocationX0 + d - 0.5, R = this._aLocationX1 + c - 0.5;
2980
- if (p instanceof et) {
2981
- let M = (R - L) * (1 - p.value) / 2;
2982
- L += M, R -= M;
2983
- }
2984
- if (D = _.getDataItemPositionX(t, o, L, W), O = _.getDataItemPositionX(t, s, R, W), T = f.getDataItemPositionY(t, a, h, N), this._yOpenField !== this._yField)
2985
- C = f.getDataItemPositionY(t, l, g, N);
2986
- else if (u) {
2987
- let M = t.get("stackToItemY");
2988
- C = M ? f.getDataItemPositionY(M, a, g, M.component.get("vcy")) : f.basePosition();
2989
- } else
2990
- C = f.basePosition();
2991
- t.setRaw("point", { x: D + (O - D) / 2, y: T }), J = !0;
2992
- } else if (f === x) {
2993
- let L = this._aLocationY0 + g - 0.5, R = this._aLocationY1 + h - 0.5;
2994
- if (m instanceof et) {
2995
- let M = (R - L) * (1 - m.value) / 2;
2996
- L += M, R -= M;
2997
- }
2998
- if (T = f.getDataItemPositionY(t, l, L, N), C = f.getDataItemPositionY(t, a, R, N), O = _.getDataItemPositionX(t, s, c, W), this._xOpenField !== this._xField)
2999
- D = _.getDataItemPositionX(t, o, d, W);
3000
- else if (u) {
3001
- let M = t.get("stackToItemX");
3002
- D = M ? _.getDataItemPositionX(M, s, d, M.component.get("vcx")) : _.basePosition();
3003
- } else
3004
- D = _.basePosition();
3005
- K = !0, t.setRaw("point", { x: O, y: T + (C - T) / 2 });
3006
- }
3007
- this._updateSeriesGraphics(t, i, D, O, T, C, K, J), D < b && O < b || D > y && O > y || T < A && C <= A || T >= I && C > I || q(D) || q(T) ? this._toggleColumn(t, !1) : this._toggleColumn(t, !0);
3008
- let rt = t.get("rangeGraphics");
3009
- rt && w(rt, (L) => {
3010
- this._updateSeriesGraphics(t, L, D, O, T, C, K, J);
3011
- }), this._applyGraphicsStates(t, e);
3012
- }
3013
- }
3014
- _updateSeriesGraphics(t, e, i, s, a, n, r, o) {
3015
- const l = e.get("width"), c = e.get("height"), h = e.get("maxWidth"), d = e.get("maxHeight"), g = this.getPoint(i, a), p = this.getPoint(s, n), m = t.get("point");
3016
- if (m) {
3017
- const u = this.getPoint(m.x, m.y);
3018
- m.x = u.x + this._x, m.y = u.y + this._y;
3019
- }
3020
- if (i = g.x, s = p.x, a = g.y, n = p.y, v(l)) {
3021
- const u = (s - i - l) / 2;
3022
- i += u, s -= u;
3023
- }
3024
- if (v(h) && h < Math.abs(s - i)) {
3025
- const u = (s - i - h) / 2;
3026
- i += u, s -= u;
3027
- }
3028
- if (v(c)) {
3029
- const u = (n - a - c) / 2;
3030
- a += u, n -= u;
3031
- }
3032
- if (v(d) && d < Math.abs(n - a)) {
3033
- const u = (n - a - d) / 2;
3034
- a += u, n -= u;
3035
- }
3036
- this.get("adjustBulletPosition") && (r && (s = Math.min(Math.max(0, s), this._pw), i = Math.min(Math.max(0, i), this._pw)), o && (a = Math.min(Math.max(0, a), this._ph), n = Math.min(Math.max(0, n), this._ph))), t.setRaw("left", i), t.setRaw("right", s), t.setRaw("top", a), t.setRaw("bottom", n), e.setPrivate("width", s - i), e.setPrivate("height", n - a), e.set("x", i), e.set("y", n - (n - a));
3037
- }
3038
- _handleDataSetChange() {
3039
- super._handleDataSetChange(), w(this._dataItems, (t) => {
3040
- this._toggleColumn(t, !1);
3041
- });
3042
- }
3043
- _applyGraphicsStates(t, e) {
3044
- const i = t.get("graphics"), s = i.states.lookup("dropFromOpen"), a = i.states.lookup("riseFromOpen"), n = i.states.lookup("dropFromPrevious"), r = i.states.lookup("riseFromPrevious");
3045
- if (s || n || a || r) {
3046
- const o = this.get("xAxis"), l = this.get("yAxis"), c = this.get("baseAxis");
3047
- let h, d, g;
3048
- c === o && l.isType("ValueAxis") ? (h = t.get(this._yOpenField), d = t.get(this._yField), g = e.get(this._yField)) : c === l && o.isType("ValueAxis") && (h = t.get(this._xOpenField), d = t.get(this._xField), g = e.get(this._xField)), v(h) && v(d) && (d < h ? s && s.apply() : a && a.apply(), v(g) && (d < g ? n && n.apply() : r && r.apply()));
3049
- }
3050
- }
3051
- disposeDataItem(t) {
3052
- super.disposeDataItem(t);
3053
- const e = t.get("graphics");
3054
- e && (this.columns.removeValue(e), e.dispose());
3055
- const i = t.get("rangeGraphics");
3056
- i && w(i, (s) => {
3057
- const a = s.getPrivate("list");
3058
- a && a.removeValue(s), s.dispose();
3059
- });
3060
- }
3061
- hideDataItem(t, e) {
3062
- const i = Object.create(null, { hideDataItem: { get: () => super.hideDataItem } });
3063
- return it(this, void 0, void 0, function* () {
3064
- const s = [i.hideDataItem.call(this, t, e)], a = t.get("graphics");
3065
- a && s.push(a.hide(e));
3066
- const n = t.get("rangeGraphics");
3067
- n && w(n, (r) => {
3068
- s.push(r.hide(e));
3069
- }), yield Promise.all(s);
3070
- });
3071
- }
3072
- _toggleColumn(t, e) {
3073
- const i = t.get("graphics");
3074
- i && i.setPrivate("visible", e);
3075
- const s = t.get("rangeGraphics");
3076
- s && w(s, (n) => {
3077
- n.setPrivate("visible", e);
3078
- });
3079
- const a = t.bullets;
3080
- a && w(a, (n) => {
3081
- n.setPrivate("hidden", !e);
3082
- });
3083
- }
3084
- showDataItem(t, e) {
3085
- const i = Object.create(null, { showDataItem: { get: () => super.showDataItem } });
3086
- return it(this, void 0, void 0, function* () {
3087
- const s = [i.showDataItem.call(this, t, e)], a = t.get("graphics");
3088
- a && s.push(a.show(e));
3089
- const n = t.get("rangeGraphics");
3090
- n && w(n, (r) => {
3091
- s.push(r.show(e));
3092
- }), yield Promise.all(s);
3093
- });
3094
- }
3095
- updateLegendMarker(t) {
3096
- let e = this.get("legendDataItem");
3097
- if (this.get("useLastColorForLegendMarker") && !t) {
3098
- const i = this.dataItems[this.endIndex() - 1];
3099
- i && (t = i);
3100
- }
3101
- if (e) {
3102
- let i = this.columns.template;
3103
- if (t) {
3104
- let a = t.get("graphics");
3105
- a && (i = a);
3106
- }
3107
- const s = e.get("markerRectangle");
3108
- if (s && !e.get("itemContainer").get("disabled")) {
3109
- const a = s.states.lookup("default");
3110
- w(Lt, (n) => {
3111
- const r = i.get(n, this.get(n));
3112
- s.set(n, r), a.set(n, r);
3113
- });
3114
- }
3115
- }
3116
- }
3117
- _getTooltipTarget(t) {
3118
- return this.get("seriesTooltipTarget") == "bullet" ? super._getTooltipTarget(t) : t.get("graphics") || this;
3119
- }
3120
- }
3121
- Object.defineProperty($, "className", { enumerable: !0, configurable: !0, writable: !0, value: "BaseColumnSeries" }), Object.defineProperty($, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: U.classNames.concat([$.className]) });
3122
- class at extends H {
3123
- constructor() {
3124
- super(...arguments), Object.defineProperty(this, "_frequency", { enumerable: !0, configurable: !0, writable: !0, value: 1 }), Object.defineProperty(this, "_itemMap", { enumerable: !0, configurable: !0, writable: !0, value: {} });
3125
- }
3126
- _afterNew() {
3127
- this._settings.themeTags = F(this._settings.themeTags, ["axis"]), this.fields.push("category"), this.setPrivateRaw("name", "category"), this.addTag("category"), super._afterNew();
3128
- }
3129
- _prepareChildren() {
3130
- super._prepareChildren();
3131
- const t = this.dataItems.length;
3132
- let e = 0;
3133
- this._valuesDirty && (this._itemMap = {}, w(this.dataItems, (i) => {
3134
- i.setRaw("index", e), this._itemMap[i.get("category")] = i, e++;
3135
- }), this.setPrivateRaw("maxZoomFactor", t)), this.setPrivateRaw("startIndex", Math.max(Math.round(this.get("start", 0) * t), 0)), this.setPrivateRaw("endIndex", Math.min(Math.round(this.get("end", 1) * t), t)), (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("endIndex") || this.isPrivateDirty("startIndex") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && this.dataItems.length > 0 && (this._handleRangeChange(), this._prepareAxisItems(), this._updateAxisRanges());
3136
- }
3137
- _handleRangeChange() {
3138
- w(this.series, (t) => {
3139
- let e = this.dataItems[this.startIndex()].get("category"), i = this.dataItems[this.endIndex() - 1].get("category"), s = t.get("baseAxis"), a = t.get("xAxis"), n = t.get("yAxis");
3140
- if (a instanceof at && n instanceof at)
3141
- t._markDirtyAxes();
3142
- else if (s === this) {
3143
- let r, o, l = n;
3144
- if (a === s ? (t.get("categoryXField") && (r = "categoryX"), t.get("openCategoryXField") && (o = "openCategoryX")) : n === s && (t.get("categoryYField") && (r = "categoryY"), t.get("openCategoryYField") && (o = "openCategoryY"), l = a), l.className == "ValueAxis" && (r || o)) {
3145
- let c, h;
3146
- for (let m = 0, u = t.dataItems.length; m < u; m++) {
3147
- let _ = t.dataItems[m];
3148
- if (r && _.get(r) === e) {
3149
- c = _;
3150
- break;
3151
- }
3152
- if (o && _.get(o) === e) {
3153
- c = _;
3154
- break;
3155
- }
3156
- }
3157
- for (let m = t.dataItems.length - 1; m >= 0; m--) {
3158
- let u = t.dataItems[m];
3159
- if (r && u.get(r) === i) {
3160
- h = u;
3161
- break;
3162
- }
3163
- if (o && u.get(o) === i) {
3164
- h = u;
3165
- break;
3166
- }
3167
- }
3168
- let d = 0, g = t.dataItems.length;
3169
- c && (d = t.dataItems.indexOf(c)), h && (g = t.dataItems.indexOf(h) + 1), t.setPrivate("startIndex", d), t.setPrivate("endIndex", g);
3170
- let p = !1;
3171
- for (let m = d; m < g; m++) {
3172
- const u = t.dataItems[m];
3173
- if (w(t.__valueXShowFields, (_) => {
3174
- u.get(_) != null && (p = !0);
3175
- }), w(t.__valueYShowFields, (_) => {
3176
- u.get(_) != null && (p = !0);
3177
- }), p)
3178
- break;
3179
- }
3180
- t.setPrivate("outOfSelection", !p);
3181
- }
3182
- t._markDirtyAxes();
3183
- }
3184
- });
3185
- }
3186
- _prepareAxisItems() {
3187
- var t;
3188
- const e = this.get("renderer"), i = this.dataItems.length;
3189
- let s = this.startIndex();
3190
- s > 0 && s--;
3191
- let a = this.endIndex();
3192
- a < i && a++;
3193
- const n = e.get("minorLabelsEnabled"), r = e.get("minorGridEnabled", n);
3194
- let o = e.axisLength() / Math.max(e.get("minGridDistance"), 1), l = Math.max(1, Math.min(i, Math.ceil((a - s) / o)));
3195
- s = Math.floor(s / l) * l, this._frequency = l;
3196
- for (let h = 0; h < i; h++)
3197
- this._toggleDataItem(this.dataItems[h], !1);
3198
- let c = this.dataItems[s].get("index", 0);
3199
- for (let h = s; h < a; h += l) {
3200
- let d = this.dataItems[h];
3201
- this._createAssets(d, []), this._toggleDataItem(d, !0);
3202
- let g = l;
3203
- r && (g = 1), this._prepareDataItem(d, c, g), c++;
3204
- }
3205
- if (e.get("minorGridEnabled"))
3206
- for (let h = s; h < a; h++) {
3207
- let d = this.dataItems[h];
3208
- h % l != 0 && (this._createAssets(d, ["minor"], !0), this._toggleDataItem(d, !0), this._prepareDataItem(d, 0, 1), n || (t = d.get("label")) === null || t === void 0 || t.setPrivate("visible", !1));
3209
- }
3210
- this._updateGhost();
3211
- }
3212
- _prepareDataItem(t, e, i) {
3213
- let s = this.get("renderer"), a = t.get("categoryLocation", 0), n = t.get("endCategoryLocation", 1), r = t.get("index");
3214
- v(r) || (r = this.categoryToIndex(t.get("category")));
3215
- let o, l = this.indexToPosition(r, a), c = t.get("endCategory");
3216
- c ? (o = this.categoryToIndex(c), v(o) || (o = r)) : o = r;
3217
- let h, d, g = this.indexToPosition(o, n);
3218
- h = t.get("isRange") ? o : r + this._frequency - 1, d = this.indexToPosition(h, n), s.updateLabel(t.get("label"), l, g, i), s.updateGrid(t.get("grid"), l, g), s.updateTick(t.get("tick"), l, g, i), s.updateFill(t.get("axisFill"), l, d), this._processBullet(t), s.updateBullet(t.get("bullet"), l, g);
3219
- const p = this.get("fillRule");
3220
- p && p(t, e);
3221
- }
3222
- startIndex() {
3223
- let t = this.dataItems.length;
3224
- return Math.min(Math.max(this.getPrivate("startIndex", 0), 0), t - 1);
3225
- }
3226
- endIndex() {
3227
- let t = this.dataItems.length;
3228
- return Math.max(1, Math.min(this.getPrivate("endIndex", t), t));
3229
- }
3230
- baseValue() {
3231
- }
3232
- basePosition() {
3233
- return 0;
3234
- }
3235
- getX(t) {
3236
- let e = this._itemMap[t];
3237
- return e ? this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index", 0))) : NaN;
3238
- }
3239
- getY(t) {
3240
- let e = this._itemMap[t];
3241
- return e ? this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index", 0))) : NaN;
3242
- }
3243
- getDataItemPositionX(t, e, i, s) {
3244
- const a = t.get(e), n = this._itemMap[a];
3245
- return n ? this.indexToPosition(n.get("index", 0), i) : NaN;
3246
- }
3247
- getDataItemCoordinateX(t, e, i, s) {
3248
- return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t, e, i, s));
3249
- }
3250
- getDataItemPositionY(t, e, i, s) {
3251
- const a = t.get(e), n = this._itemMap[a];
3252
- return n ? this.indexToPosition(n.get("index", 0), i) : NaN;
3253
- }
3254
- getDataItemCoordinateY(t, e, i, s) {
3255
- return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t, e, i, s));
3256
- }
3257
- indexToPosition(t, e) {
3258
- v(e) || (e = 0.5);
3259
- let i = this.dataItems.length, s = this.get("startLocation", 0);
3260
- i -= s, i -= 1 - this.get("endLocation", 1);
3261
- let a = (t + e - s) / i, n = this.dataItems[t];
3262
- return n && (a += n.get("deltaPosition", 0)), a;
3263
- }
3264
- categoryToIndex(t) {
3265
- let e = this._itemMap[t];
3266
- return e ? e.get("index") : NaN;
3267
- }
3268
- dataItemToPosition(t) {
3269
- return this.indexToPosition(t.get("index"));
3270
- }
3271
- roundAxisPosition(t, e) {
3272
- return t += (0.5 - e) / this.dataItems.length, this.indexToPosition(this.axisPositionToIndex(t), e);
3273
- }
3274
- axisPositionToIndex(t) {
3275
- let e = this.dataItems.length;
3276
- return kt(Math.floor(t * e), 0, e - 1);
3277
- }
3278
- getTooltipText(t, e) {
3279
- const i = this.dataItems[this.axisPositionToIndex(t)];
3280
- if (i) {
3281
- const s = i.get("label");
3282
- if (s)
3283
- return he(s, this.get("tooltipText", ""));
3284
- }
3285
- }
3286
- _updateTooltipText(t, e) {
3287
- t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]), t.label.text.markDirtyText();
3288
- }
3289
- getSeriesItem(t, e) {
3290
- if (this.dataItems.length > 0) {
3291
- let i = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), s = this.axisPositionToIndex(e), a = t.dataItems[s], n = this.dataItems[s], r = n.get("category");
3292
- if (a && n && a.get(i) === r)
3293
- return a;
3294
- for (let o = 0, l = t.dataItems.length; o < l; o++) {
3295
- let c = t.dataItems[o];
3296
- if (c.get(i) === r)
3297
- return c;
3298
- }
3299
- }
3300
- }
3301
- zoomToIndexes(t, e, i) {
3302
- let s = this.dataItems.length;
3303
- this.zoom(t / s, e / s, i);
3304
- }
3305
- zoomToCategories(t, e, i) {
3306
- this.zoomToIndexes(this.categoryToIndex(t), this.categoryToIndex(e) + 1, i);
3307
- }
3308
- getCellWidthPosition() {
3309
- return this._frequency / this.dataItems.length / (this.get("end", 1) - this.get("start", 0));
3310
- }
3311
- }
3312
- Object.defineProperty(at, "className", { enumerable: !0, configurable: !0, writable: !0, value: "CategoryAxis" }), Object.defineProperty(at, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: H.classNames.concat([at.className]) });
3313
- class At extends $ {
3314
- constructor() {
3315
- super(...arguments), Object.defineProperty(this, "columns", { enumerable: !0, configurable: !0, writable: !0, value: new B(E.new({}), () => jt._new(this._root, { position: "absolute", themeTags: F(this.columns.template.get("themeTags", []), ["series", "column"]) }, [this.columns.template])) });
3316
- }
3317
- makeColumn(t, e) {
3318
- const i = this.mainContainer.children.push(e.make());
3319
- return i._setDataItem(t), e.push(i), i;
3320
- }
3321
- _processAxisRange(t) {
3322
- super._processAxisRange(t), t.columns = new B(E.new({}), () => jt._new(this._root, { position: "absolute", themeTags: F(t.columns.template.get("themeTags", []), ["series", "column"]) }, [this.columns.template, t.columns.template]));
3323
- }
3324
- }
3325
- Object.defineProperty(At, "className", { enumerable: !0, configurable: !0, writable: !0, value: "ColumnSeries" }), Object.defineProperty(At, "classNames", { enumerable: !0, configurable: !0, writable: !0, value: $.classNames.concat([At.className]) });
3326
- export {
3327
- Pt as AxisRendererXAm5,
3328
- wt as AxisRendererYAm5,
3329
- at as CategoryAxisAm5,
3330
- At as ColumnSeriesAm5,
3331
- Dt as LineSeriesAm5,
3332
- yt as ValueAxisAm5,
3333
- ft as XYChartAm5,
3334
- vt as XYCursorAm5
3335
- };