gisviewer-vue3-arcgis 1.0.283 → 1.0.284

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 (507) hide show
  1. package/es/{packages/components/index.mjs → index.mjs} +5 -6
  2. package/es/src/gis-map/gis-map.vue.d.ts +1 -124
  3. package/es/{packages/components/src → src}/gis-map/gis-map.vue.mjs +63 -63
  4. package/es/src/gis-map/index.d.ts +1 -124
  5. package/es/{packages/components/src → src}/gis-map/utils/index.mjs +2 -2
  6. package/es/src/gis-map-ol/index.d.ts +1 -44
  7. package/es/src/index.mjs +6 -0
  8. package/es/style.css +1 -1
  9. package/lib/index.js +1 -0
  10. package/lib/src/gis-map/gis-map.vue.d.ts +1 -124
  11. package/lib/src/gis-map/gis-map.vue.js +1 -0
  12. package/lib/src/gis-map/index.d.ts +1 -124
  13. package/lib/src/gis-map/utils/index.js +1 -0
  14. package/lib/src/gis-map-ol/index.d.ts +1 -44
  15. package/lib/src/index.js +1 -0
  16. package/package.json +1 -1
  17. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Collection.mjs +0 -195
  18. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/CollectionEventType.mjs +0 -17
  19. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/DataTile.mjs +0 -73
  20. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Disposable.mjs +0 -21
  21. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Feature.mjs +0 -181
  22. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Image.mjs +0 -48
  23. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageState.mjs +0 -10
  24. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageTile.mjs +0 -131
  25. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Kinetic.mjs +0 -58
  26. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Map.mjs +0 -1051
  27. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEvent.mjs +0 -59
  28. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventHandler.mjs +0 -232
  29. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventType.mjs +0 -45
  30. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEvent.mjs +0 -15
  31. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEventType.mjs +0 -35
  32. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapProperty.mjs +0 -9
  33. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Object.mjs +0 -136
  34. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ObjectEventType.mjs +0 -11
  35. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Observable.mjs +0 -105
  36. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Tile.mjs +0 -116
  37. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileQueue.mjs +0 -69
  38. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileRange.mjs +0 -79
  39. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileState.mjs +0 -14
  40. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/View.mjs +0 -1170
  41. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewHint.mjs +0 -7
  42. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewProperty.mjs +0 -8
  43. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/array.mjs +0 -89
  44. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/asserts.mjs +0 -7
  45. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/centerconstraint.mjs +0 -35
  46. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/color.mjs +0 -133
  47. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/colorlike.mjs +0 -47
  48. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/console.mjs +0 -13
  49. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Attribution.mjs +0 -134
  50. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Control.mjs +0 -73
  51. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Rotate.mjs +0 -71
  52. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Zoom.mjs +0 -63
  53. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/defaults.mjs +0 -12
  54. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/coordinate.mjs +0 -42
  55. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/css.mjs +0 -49
  56. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/dom.mjs +0 -112
  57. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/easing.mjs +0 -18
  58. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Event.mjs +0 -27
  59. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/EventType.mjs +0 -32
  60. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Key.mjs +0 -9
  61. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Target.mjs +0 -101
  62. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/condition.mjs +0 -65
  63. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events.mjs +0 -27
  64. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/cpu.mjs +0 -367
  65. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/expression.mjs +0 -649
  66. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent/Relationship.mjs +0 -11
  67. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent.mjs +0 -239
  68. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/featureloader.mjs +0 -54
  69. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/functions.mjs +0 -35
  70. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Geometry.mjs +0 -235
  71. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/LinearRing.mjs +0 -147
  72. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Point.mjs +0 -101
  73. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Polygon.mjs +0 -319
  74. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/SimpleGeometry.mjs +0 -249
  75. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/area.mjs +0 -22
  76. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/center.mjs +0 -18
  77. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/closest.mjs +0 -119
  78. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/contains.mjs +0 -41
  79. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/deflate.mjs +0 -32
  80. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/inflate.mjs +0 -42
  81. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interiorpoint.mjs +0 -38
  82. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interpolate.mjs +0 -27
  83. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/intersectsextent.mjs +0 -78
  84. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/length.mjs +0 -11
  85. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/linechunk.mjs +0 -26
  86. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/orient.mjs +0 -62
  87. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/reverse.mjs +0 -12
  88. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/segments.mjs +0 -13
  89. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/simplify.mjs +0 -89
  90. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/straightchunk.mjs +0 -11
  91. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/textpath.mjs +0 -61
  92. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/transform.mjs +0 -51
  93. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/has.mjs +0 -24
  94. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DoubleClickZoom.mjs +0 -32
  95. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragBox.mjs +0 -152
  96. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragPan.mjs +0 -79
  97. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragRotate.mjs +0 -54
  98. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragZoom.mjs +0 -41
  99. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Interaction.mjs +0 -87
  100. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardPan.mjs +0 -44
  101. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardZoom.mjs +0 -39
  102. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/MouseWheelZoom.mjs +0 -109
  103. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchRotate.mjs +0 -63
  104. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchZoom.mjs +0 -59
  105. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Pointer.mjs +0 -109
  106. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Property.mjs +0 -6
  107. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/defaults.mjs +0 -47
  108. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Base.mjs +0 -270
  109. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseTile.mjs +0 -87
  110. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseVector.mjs +0 -179
  111. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Group.mjs +0 -226
  112. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Layer.mjs +0 -289
  113. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Property.mjs +0 -15
  114. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Tile.mjs +0 -22
  115. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/TileProperty.mjs +0 -7
  116. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Vector.mjs +0 -20
  117. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/loadingstrategy.mjs +0 -7
  118. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/math.mjs +0 -88
  119. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/obj.mjs +0 -14
  120. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ol.css.mjs +0 -4
  121. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/pointer/EventType.mjs +0 -13
  122. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Projection.mjs +0 -138
  123. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Units.mjs +0 -11
  124. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg3857.mjs +0 -54
  125. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg4326.mjs +0 -34
  126. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/projections.mjs +0 -11
  127. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/transforms.mjs +0 -12
  128. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/utm.mjs +0 -67
  129. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj.mjs +0 -232
  130. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Box.mjs +0 -69
  131. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Event.mjs +0 -17
  132. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/EventType.mjs +0 -41
  133. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Feature.mjs +0 -310
  134. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/VectorContext.mjs +0 -119
  135. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Builder.mjs +0 -408
  136. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/BuilderGroup.mjs +0 -64
  137. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Executor.mjs +0 -700
  138. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ExecutorGroup.mjs +0 -252
  139. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ImageBuilder.mjs +0 -144
  140. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Immediate.mjs +0 -601
  141. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Instruction.mjs +0 -22
  142. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/LineStringBuilder.mjs +0 -122
  143. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/PolygonBuilder.mjs +0 -169
  144. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/TextBuilder.mjs +0 -335
  145. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ZIndexContext.mjs +0 -87
  146. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/hitdetect.mjs +0 -110
  147. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/style.mjs +0 -583
  148. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas.mjs +0 -177
  149. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Composite.mjs +0 -124
  150. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Layer.mjs +0 -130
  151. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Map.mjs +0 -151
  152. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/Layer.mjs +0 -211
  153. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/TileLayer.mjs +0 -490
  154. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/VectorLayer.mjs +0 -372
  155. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/vector.mjs +0 -196
  156. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Tile.mjs +0 -194
  157. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Triangulation.mjs +0 -225
  158. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/common.mjs +0 -4
  159. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj.mjs +0 -178
  160. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/resolutionconstraint.mjs +0 -99
  161. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/rotationconstraint.mjs +0 -44
  162. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/size.mjs +0 -14
  163. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Source.mjs +0 -101
  164. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Tile.mjs +0 -144
  165. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileEventType.mjs +0 -26
  166. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileImage.mjs +0 -208
  167. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileWMS.mjs +0 -254
  168. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/UrlTile.mjs +0 -121
  169. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Vector.mjs +0 -667
  170. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/VectorEventType.mjs +0 -48
  171. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/WMTS.mjs +0 -174
  172. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/common.mjs +0 -4
  173. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/wms.mjs +0 -57
  174. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/sphere.mjs +0 -11
  175. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/string.mjs +0 -14
  176. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/LRUCache.mjs +0 -179
  177. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/PriorityQueue.mjs +0 -150
  178. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/RBush.mjs +0 -156
  179. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Circle.mjs +0 -51
  180. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Fill.mjs +0 -76
  181. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Icon.mjs +0 -316
  182. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImage.mjs +0 -164
  183. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImageCache.mjs +0 -91
  184. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Image.mjs +0 -220
  185. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/RegularShape.mjs +0 -336
  186. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Stroke.mjs +0 -148
  187. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Style.mjs +0 -238
  188. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Text.mjs +0 -400
  189. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilecoord.mjs +0 -31
  190. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/TileGrid.mjs +0 -400
  191. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/WMTS.mjs +0 -37
  192. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/common.mjs +0 -5
  193. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid.mjs +0 -60
  194. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tileurlfunction.mjs +0 -51
  195. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/transform.mjs +0 -50
  196. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/uri.mjs +0 -41
  197. package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/util.mjs +0 -11
  198. package/es/node_modules/.pnpm/quickselect@3.0.0/node_modules/quickselect/index.mjs +0 -27
  199. package/es/node_modules/.pnpm/rbush@4.0.1/node_modules/rbush/index.mjs +0 -258
  200. package/es/packages/components/src/gis-map/utils/edpass-device-controller.mjs +0 -278
  201. package/es/packages/components/src/gis-map/utils/green-wave-band-controller/index.mjs +0 -362
  202. package/es/packages/components/src/gis-map/utils/holo-flow/index.mjs +0 -101
  203. package/es/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +0 -153
  204. package/es/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.mjs +0 -4
  205. package/es/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +0 -336
  206. package/es/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +0 -236
  207. package/es/packages/components/src/gis-map/utils/holo-flow/trace-holo-flow.mjs +0 -106
  208. package/es/packages/components/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +0 -576
  209. package/es/packages/components/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +0 -386
  210. package/es/packages/components/src/gis-map/utils/police-jurisdiction.mjs +0 -202
  211. package/es/packages/components/src/gis-map/utils/road-config-tool/cross.mjs +0 -127
  212. package/es/packages/components/src/gis-map/utils/road-config-tool/entrance.mjs +0 -79
  213. package/es/packages/components/src/gis-map/utils/road-config-tool/exit.mjs +0 -86
  214. package/es/packages/components/src/gis-map/utils/road-config-tool/index.mjs +0 -112
  215. package/es/packages/components/src/gis-map/utils/road-config-tool/indicator-area.mjs +0 -44
  216. package/es/packages/components/src/gis-map/utils/road-config-tool/lane.mjs +0 -35
  217. package/es/packages/components/src/gis-map/utils/road-config-tool/search-nearby-lanes.mjs +0 -265
  218. package/es/packages/components/src/gis-map/utils/signal-control-area/cross-renderer.mjs +0 -593
  219. package/es/packages/components/src/gis-map/utils/signal-control-area/district-controller.mjs +0 -84
  220. package/es/packages/components/src/gis-map/utils/signal-control-area/district-renderer.mjs +0 -122
  221. package/es/packages/components/src/gis-map/utils/signal-control-area/edit-area.mjs +0 -550
  222. package/es/packages/components/src/gis-map/utils/signal-control-area/layer-symbol.mjs +0 -984
  223. package/es/packages/components/src/gis-map/utils/signal-control-area/signal-area-controller.mjs +0 -140
  224. package/es/packages/components/src/gis-map/utils/signal-control-area/signal-cross-controller.mjs +0 -423
  225. package/es/packages/components/src/gis-map/utils/signal-control-area/signal-renderer.mjs +0 -123
  226. package/es/packages/components/src/gis-map/utils/signal-control-area/sub-district-renderer.mjs +0 -367
  227. package/es/packages/components/src/gis-map/utils/signal-system/signal-system-controller.mjs +0 -137
  228. package/es/packages/components/src/gis-map/utils/sketchViewTool.mjs +0 -503
  229. package/es/packages/components/src/gis-map-ol/gis-map-ol.vue.mjs +0 -67
  230. package/es/packages/components/src/gis-map-ol/gis-map-ol.vue2.mjs +0 -4
  231. package/es/packages/components/src/gis-map-ol/gis-map-ol.vue3.mjs +0 -5
  232. package/es/packages/components/src/gis-map-ol/index.mjs +0 -8
  233. package/es/packages/components/src/gis-map-ol/utils/ol-map-initializer.mjs +0 -131
  234. package/es/packages/components/src/gis-map-ol/utils/signal-control/signal-cross-controller.mjs +0 -263
  235. package/es/packages/components/src/index.mjs +0 -6
  236. package/es/packages/components/src/types/index.mjs +0 -5
  237. package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +0 -125
  238. package/es/src/gis-map-ol/gis-map-ol.vue.d.ts +0 -50
  239. package/es/src/gis-map-ol/utils/ol-map-initializer.d.ts +0 -28
  240. package/es/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +0 -42
  241. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Collection.js +0 -1
  242. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/CollectionEventType.js +0 -1
  243. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/DataTile.js +0 -1
  244. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Disposable.js +0 -1
  245. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Feature.js +0 -1
  246. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Image.js +0 -1
  247. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageState.js +0 -1
  248. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageTile.js +0 -1
  249. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Kinetic.js +0 -1
  250. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Map.js +0 -1
  251. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEvent.js +0 -1
  252. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventHandler.js +0 -1
  253. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventType.js +0 -1
  254. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEvent.js +0 -1
  255. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEventType.js +0 -1
  256. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapProperty.js +0 -1
  257. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Object.js +0 -1
  258. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ObjectEventType.js +0 -1
  259. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Observable.js +0 -1
  260. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Tile.js +0 -1
  261. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileQueue.js +0 -1
  262. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileRange.js +0 -1
  263. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileState.js +0 -1
  264. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/View.js +0 -1
  265. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewHint.js +0 -1
  266. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewProperty.js +0 -1
  267. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/array.js +0 -1
  268. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/asserts.js +0 -1
  269. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/centerconstraint.js +0 -1
  270. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/color.js +0 -1
  271. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/colorlike.js +0 -1
  272. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/console.js +0 -1
  273. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Attribution.js +0 -1
  274. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Control.js +0 -1
  275. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Rotate.js +0 -1
  276. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Zoom.js +0 -1
  277. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/defaults.js +0 -1
  278. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/coordinate.js +0 -1
  279. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/css.js +0 -1
  280. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/dom.js +0 -1
  281. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/easing.js +0 -1
  282. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Event.js +0 -1
  283. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/EventType.js +0 -1
  284. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Key.js +0 -1
  285. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Target.js +0 -1
  286. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/condition.js +0 -1
  287. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events.js +0 -1
  288. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/cpu.js +0 -1
  289. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/expression.js +0 -1
  290. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent/Relationship.js +0 -1
  291. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent.js +0 -1
  292. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/featureloader.js +0 -1
  293. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/functions.js +0 -1
  294. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Geometry.js +0 -1
  295. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/LinearRing.js +0 -1
  296. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Point.js +0 -1
  297. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Polygon.js +0 -1
  298. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/SimpleGeometry.js +0 -1
  299. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/area.js +0 -1
  300. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/center.js +0 -1
  301. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/closest.js +0 -1
  302. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/contains.js +0 -1
  303. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/deflate.js +0 -1
  304. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/inflate.js +0 -1
  305. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interiorpoint.js +0 -1
  306. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interpolate.js +0 -1
  307. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/intersectsextent.js +0 -1
  308. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/length.js +0 -1
  309. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/linechunk.js +0 -1
  310. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/orient.js +0 -1
  311. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/reverse.js +0 -1
  312. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/segments.js +0 -1
  313. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/simplify.js +0 -1
  314. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/straightchunk.js +0 -1
  315. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/textpath.js +0 -1
  316. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/transform.js +0 -1
  317. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/has.js +0 -1
  318. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DoubleClickZoom.js +0 -1
  319. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragBox.js +0 -1
  320. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragPan.js +0 -1
  321. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragRotate.js +0 -1
  322. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragZoom.js +0 -1
  323. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Interaction.js +0 -1
  324. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardPan.js +0 -1
  325. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardZoom.js +0 -1
  326. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/MouseWheelZoom.js +0 -1
  327. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchRotate.js +0 -1
  328. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchZoom.js +0 -1
  329. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Pointer.js +0 -1
  330. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Property.js +0 -1
  331. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/defaults.js +0 -1
  332. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Base.js +0 -1
  333. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseTile.js +0 -1
  334. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseVector.js +0 -1
  335. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Group.js +0 -1
  336. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Layer.js +0 -1
  337. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Property.js +0 -1
  338. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Tile.js +0 -1
  339. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/TileProperty.js +0 -1
  340. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Vector.js +0 -1
  341. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/loadingstrategy.js +0 -1
  342. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/math.js +0 -1
  343. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/obj.js +0 -1
  344. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ol.css.js +0 -1
  345. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/pointer/EventType.js +0 -1
  346. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Projection.js +0 -1
  347. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Units.js +0 -1
  348. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg3857.js +0 -1
  349. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg4326.js +0 -1
  350. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/projections.js +0 -1
  351. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/transforms.js +0 -1
  352. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/utm.js +0 -1
  353. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj.js +0 -1
  354. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Box.js +0 -1
  355. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Event.js +0 -1
  356. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/EventType.js +0 -1
  357. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Feature.js +0 -1
  358. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/VectorContext.js +0 -1
  359. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Builder.js +0 -1
  360. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/BuilderGroup.js +0 -1
  361. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Executor.js +0 -4
  362. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ExecutorGroup.js +0 -1
  363. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ImageBuilder.js +0 -1
  364. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Immediate.js +0 -1
  365. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Instruction.js +0 -1
  366. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/LineStringBuilder.js +0 -1
  367. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/PolygonBuilder.js +0 -1
  368. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/TextBuilder.js +0 -1
  369. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ZIndexContext.js +0 -1
  370. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/hitdetect.js +0 -1
  371. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/style.js +0 -1
  372. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas.js +0 -3
  373. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Composite.js +0 -1
  374. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Layer.js +0 -1
  375. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Map.js +0 -1
  376. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/Layer.js +0 -1
  377. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/TileLayer.js +0 -1
  378. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/VectorLayer.js +0 -1
  379. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/vector.js +0 -1
  380. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Tile.js +0 -1
  381. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Triangulation.js +0 -1
  382. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/common.js +0 -1
  383. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj.js +0 -1
  384. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/resolutionconstraint.js +0 -1
  385. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/rotationconstraint.js +0 -1
  386. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/size.js +0 -1
  387. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Source.js +0 -1
  388. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Tile.js +0 -1
  389. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileEventType.js +0 -1
  390. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileImage.js +0 -1
  391. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileWMS.js +0 -1
  392. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/UrlTile.js +0 -2
  393. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Vector.js +0 -1
  394. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/VectorEventType.js +0 -1
  395. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/WMTS.js +0 -2
  396. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/common.js +0 -1
  397. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/wms.js +0 -1
  398. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/sphere.js +0 -1
  399. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/string.js +0 -1
  400. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/LRUCache.js +0 -1
  401. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/PriorityQueue.js +0 -1
  402. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/RBush.js +0 -1
  403. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Circle.js +0 -1
  404. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Fill.js +0 -1
  405. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Icon.js +0 -1
  406. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImage.js +0 -1
  407. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImageCache.js +0 -1
  408. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Image.js +0 -1
  409. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/RegularShape.js +0 -1
  410. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Stroke.js +0 -1
  411. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Style.js +0 -1
  412. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Text.js +0 -1
  413. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilecoord.js +0 -1
  414. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/TileGrid.js +0 -1
  415. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/WMTS.js +0 -1
  416. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/common.js +0 -1
  417. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid.js +0 -1
  418. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tileurlfunction.js +0 -1
  419. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/transform.js +0 -1
  420. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/uri.js +0 -1
  421. package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/util.js +0 -1
  422. package/lib/node_modules/.pnpm/quickselect@3.0.0/node_modules/quickselect/index.js +0 -1
  423. package/lib/node_modules/.pnpm/rbush@4.0.1/node_modules/rbush/index.js +0 -1
  424. package/lib/packages/components/index.js +0 -1
  425. package/lib/packages/components/src/gis-map/gis-map.vue.js +0 -1
  426. package/lib/packages/components/src/gis-map/utils/edpass-device-controller.js +0 -1
  427. package/lib/packages/components/src/gis-map/utils/green-wave-band-controller/index.js +0 -1
  428. package/lib/packages/components/src/gis-map/utils/holo-flow/index.js +0 -1
  429. package/lib/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +0 -1
  430. package/lib/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.js +0 -1
  431. package/lib/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +0 -1
  432. package/lib/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow.js +0 -1
  433. package/lib/packages/components/src/gis-map/utils/holo-flow/trace-holo-flow.js +0 -2
  434. package/lib/packages/components/src/gis-map/utils/holo-flow/trace-renderer-external.js +0 -1
  435. package/lib/packages/components/src/gis-map/utils/holo-flow/trace-renderer-layer.js +0 -1
  436. package/lib/packages/components/src/gis-map/utils/index.js +0 -1
  437. package/lib/packages/components/src/gis-map/utils/police-jurisdiction.js +0 -1
  438. package/lib/packages/components/src/gis-map/utils/road-config-tool/cross.js +0 -1
  439. package/lib/packages/components/src/gis-map/utils/road-config-tool/entrance.js +0 -1
  440. package/lib/packages/components/src/gis-map/utils/road-config-tool/exit.js +0 -1
  441. package/lib/packages/components/src/gis-map/utils/road-config-tool/index.js +0 -1
  442. package/lib/packages/components/src/gis-map/utils/road-config-tool/indicator-area.js +0 -1
  443. package/lib/packages/components/src/gis-map/utils/road-config-tool/lane.js +0 -1
  444. package/lib/packages/components/src/gis-map/utils/road-config-tool/search-nearby-lanes.js +0 -1
  445. package/lib/packages/components/src/gis-map/utils/signal-control-area/cross-renderer.js +0 -1
  446. package/lib/packages/components/src/gis-map/utils/signal-control-area/district-controller.js +0 -1
  447. package/lib/packages/components/src/gis-map/utils/signal-control-area/district-renderer.js +0 -1
  448. package/lib/packages/components/src/gis-map/utils/signal-control-area/edit-area.js +0 -1
  449. package/lib/packages/components/src/gis-map/utils/signal-control-area/layer-symbol.js +0 -1
  450. package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-area-controller.js +0 -1
  451. package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-cross-controller.js +0 -1
  452. package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-renderer.js +0 -1
  453. package/lib/packages/components/src/gis-map/utils/signal-control-area/sub-district-renderer.js +0 -1
  454. package/lib/packages/components/src/gis-map/utils/signal-system/signal-system-controller.js +0 -1
  455. package/lib/packages/components/src/gis-map/utils/sketchViewTool.js +0 -1
  456. package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue.js +0 -1
  457. package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue2.js +0 -1
  458. package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue3.js +0 -1
  459. package/lib/packages/components/src/gis-map-ol/index.js +0 -1
  460. package/lib/packages/components/src/gis-map-ol/utils/ol-map-initializer.js +0 -1
  461. package/lib/packages/components/src/gis-map-ol/utils/signal-control/signal-cross-controller.js +0 -1
  462. package/lib/packages/components/src/index.js +0 -1
  463. package/lib/packages/components/src/types/index.js +0 -1
  464. package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +0 -125
  465. package/lib/src/gis-map-ol/gis-map-ol.vue.d.ts +0 -50
  466. package/lib/src/gis-map-ol/utils/ol-map-initializer.d.ts +0 -28
  467. package/lib/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +0 -42
  468. /package/es/{packages/components/src → src}/gis-map/gis-map.vue2.mjs +0 -0
  469. /package/es/{packages/components/src → src}/gis-map/gis-map.vue3.mjs +0 -0
  470. /package/es/{packages/components/src → src}/gis-map/index.mjs +0 -0
  471. /package/es/{packages/components/src → src}/gis-map/utils/FlyToPoints.mjs +0 -0
  472. /package/es/{packages/components/src → src}/gis-map/utils/GreenWaveline.mjs +0 -0
  473. /package/es/{packages/components/src → src}/gis-map/utils/Layers.mjs +0 -0
  474. /package/es/{packages/components/src → src}/gis-map/utils/common-utils.mjs +0 -0
  475. /package/es/{packages/components/src → src}/gis-map/utils/custom-layer/custom-wmts-layer.mjs +0 -0
  476. /package/es/{packages/components/src → src}/gis-map/utils/dbscan-cluster/index.mjs +0 -0
  477. /package/es/{packages/components/src → src}/gis-map/utils/detect-gpu.mjs +0 -0
  478. /package/es/{packages/components/src → src}/gis-map/utils/map-initializer.mjs +0 -0
  479. /package/es/{packages/components/src → src}/gis-map/utils/open-drive-renderer/index.mjs +0 -0
  480. /package/es/{packages/components/src → src}/gis-map/utils/overlay.mjs +0 -0
  481. /package/es/{packages/components/src → src}/gis-map/utils/queue-length.mjs +0 -0
  482. /package/es/{packages/components/src → src}/gis-map/utils/renderer/greenWaveline.mjs +0 -0
  483. /package/es/{packages/components/src → src}/gis-map/utils/sketchView.mjs +0 -0
  484. /package/es/{packages/components/src → src}/gis-map/utils/syncMapView.mjs +0 -0
  485. /package/es/{packages/components/src → src}/gis-map/utils/traffic-flow.mjs +0 -0
  486. /package/es/{packages/components/src → src}/stores/appData.mjs +0 -0
  487. /package/es/{packages/components/src → src}/stores/index.mjs +0 -0
  488. /package/lib/{packages/components/src → src}/gis-map/gis-map.vue2.js +0 -0
  489. /package/lib/{packages/components/src → src}/gis-map/gis-map.vue3.js +0 -0
  490. /package/lib/{packages/components/src → src}/gis-map/index.js +0 -0
  491. /package/lib/{packages/components/src → src}/gis-map/utils/FlyToPoints.js +0 -0
  492. /package/lib/{packages/components/src → src}/gis-map/utils/GreenWaveline.js +0 -0
  493. /package/lib/{packages/components/src → src}/gis-map/utils/Layers.js +0 -0
  494. /package/lib/{packages/components/src → src}/gis-map/utils/common-utils.js +0 -0
  495. /package/lib/{packages/components/src → src}/gis-map/utils/custom-layer/custom-wmts-layer.js +0 -0
  496. /package/lib/{packages/components/src → src}/gis-map/utils/dbscan-cluster/index.js +0 -0
  497. /package/lib/{packages/components/src → src}/gis-map/utils/detect-gpu.js +0 -0
  498. /package/lib/{packages/components/src → src}/gis-map/utils/map-initializer.js +0 -0
  499. /package/lib/{packages/components/src → src}/gis-map/utils/open-drive-renderer/index.js +0 -0
  500. /package/lib/{packages/components/src → src}/gis-map/utils/overlay.js +0 -0
  501. /package/lib/{packages/components/src → src}/gis-map/utils/queue-length.js +0 -0
  502. /package/lib/{packages/components/src → src}/gis-map/utils/renderer/greenWaveline.js +0 -0
  503. /package/lib/{packages/components/src → src}/gis-map/utils/sketchView.js +0 -0
  504. /package/lib/{packages/components/src → src}/gis-map/utils/syncMapView.js +0 -0
  505. /package/lib/{packages/components/src → src}/gis-map/utils/traffic-flow.js +0 -0
  506. /package/lib/{packages/components/src → src}/stores/appData.js +0 -0
  507. /package/lib/{packages/components/src → src}/stores/index.js +0 -0
@@ -1,1170 +0,0 @@
1
- import G from "./Object.mjs";
2
- import C from "./ViewHint.mjs";
3
- import _ from "./ViewProperty.mjs";
4
- import { linearFindNearest as U } from "./array.mjs";
5
- import { assert as I } from "./asserts.mjs";
6
- import { createExtent as y, none as k } from "./centerconstraint.mjs";
7
- import { rotate as H, add as D, equals as Z } from "./coordinate.mjs";
8
- import { inAndOut as L, easeOut as X } from "./easing.mjs";
9
- import { getForViewAndSize as Y, getWidth as O, getHeight as V, isEmpty as K, getCenter as T } from "./extent.mjs";
10
- import { VOID as W } from "./functions.mjs";
11
- import { fromExtent as z } from "./geom/Polygon.mjs";
12
- import { modulo as F, clamp as E } from "./math.mjs";
13
- import { createProjection as j, fromUserCoordinate as x, fromUserExtent as M, toUserCoordinate as N, toUserExtent as q, disableCoordinateWarning as B } from "./proj.mjs";
14
- import { createSnapToResolutions as $, createMinMaxResolution as P, createSnapToPower as J } from "./resolutionconstraint.mjs";
15
- import { createSnapToZero as Q, none as b, createSnapToN as tt, disable as et } from "./rotationconstraint.mjs";
16
- import { DEFAULT_TILE_SIZE as nt } from "./tilegrid/common.mjs";
17
- import { METERS_PER_UNIT as it } from "./proj/Units.mjs";
18
- const w = 0;
19
- class ot extends G {
20
- /**
21
- * @param {ViewOptions} [options] View options.
22
- */
23
- constructor(t) {
24
- super(), this.on, this.once, this.un, t = Object.assign({}, t), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = j(t.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, t.projection && B(), t.center && (t.center = x(t.center, this.projection_)), t.extent && (t.extent = M(t.extent, this.projection_)), this.applyOptions_(t);
25
- }
26
- /**
27
- * Set up the view with the given options.
28
- * @param {ViewOptions} options View options.
29
- */
30
- applyOptions_(t) {
31
- const e = Object.assign({}, t);
32
- for (const l in _)
33
- delete e[l];
34
- this.setProperties(e, !0);
35
- const n = rt(t);
36
- this.maxResolution_ = n.maxResolution, this.minResolution_ = n.minResolution, this.zoomFactor_ = n.zoomFactor, this.resolutions_ = t.resolutions, this.padding_ = t.padding, this.minZoom_ = n.minZoom;
37
- const i = st(t), s = n.constraint, r = at(t);
38
- this.constraints_ = {
39
- center: i,
40
- resolution: s,
41
- rotation: r
42
- }, this.setRotation(t.rotation !== void 0 ? t.rotation : 0), this.setCenterInternal(
43
- t.center !== void 0 ? t.center : null
44
- ), t.resolution !== void 0 ? this.setResolution(t.resolution) : t.zoom !== void 0 && this.setZoom(t.zoom);
45
- }
46
- /**
47
- * Padding (in css pixels).
48
- * If the map viewport is partially covered with other content (overlays) along
49
- * its edges, this setting allows to shift the center of the viewport away from that
50
- * content. The order of the values in the array is top, right, bottom, left.
51
- * The default is no padding, which is equivalent to `[0, 0, 0, 0]`.
52
- * @type {Array<number>|undefined}
53
- * @api
54
- */
55
- get padding() {
56
- return this.padding_;
57
- }
58
- set padding(t) {
59
- let e = this.padding_;
60
- this.padding_ = t;
61
- const n = this.getCenterInternal();
62
- if (n) {
63
- const i = t || [0, 0, 0, 0];
64
- e = e || [0, 0, 0, 0];
65
- const s = this.getResolution(), r = s / 2 * (i[3] - e[3] + e[1] - i[1]), l = s / 2 * (i[0] - e[0] + e[2] - i[2]);
66
- this.setCenterInternal([n[0] + r, n[1] - l]);
67
- }
68
- }
69
- /**
70
- * Get an updated version of the view options used to construct the view. The
71
- * current resolution (or zoom), center, and rotation are applied to any stored
72
- * options. The provided options can be used to apply new min/max zoom or
73
- * resolution limits.
74
- * @param {ViewOptions} newOptions New options to be applied.
75
- * @return {ViewOptions} New options updated with the current view state.
76
- */
77
- getUpdatedOptions_(t) {
78
- const e = this.getProperties();
79
- return e.resolution !== void 0 ? e.resolution = this.getResolution() : e.zoom = this.getZoom(), e.center = this.getCenterInternal(), e.rotation = this.getRotation(), Object.assign({}, e, t);
80
- }
81
- /**
82
- * Animate the view. The view's center, zoom (or resolution), and rotation
83
- * can be animated for smooth transitions between view states. For example,
84
- * to animate the view to a new zoom level:
85
- *
86
- * view.animate({zoom: view.getZoom() + 1});
87
- *
88
- * By default, the animation lasts one second and uses in-and-out easing. You
89
- * can customize this behavior by including `duration` (in milliseconds) and
90
- * `easing` options (see {@link module:ol/easing}).
91
- *
92
- * To chain together multiple animations, call the method with multiple
93
- * animation objects. For example, to first zoom and then pan:
94
- *
95
- * view.animate({zoom: 10}, {center: [0, 0]});
96
- *
97
- * If you provide a function as the last argument to the animate method, it
98
- * will get called at the end of an animation series. The callback will be
99
- * called with `true` if the animation series completed on its own or `false`
100
- * if it was cancelled.
101
- *
102
- * Animations are cancelled by user interactions (e.g. dragging the map) or by
103
- * calling `view.setCenter()`, `view.setResolution()`, or `view.setRotation()`
104
- * (or another method that calls one of these).
105
- *
106
- * @param {...(AnimationOptions|function(boolean): void)} var_args Animation
107
- * options. Multiple animations can be run in series by passing multiple
108
- * options objects. To run multiple animations in parallel, call the method
109
- * multiple times. An optional callback can be provided as a final
110
- * argument. The callback will be called with a boolean indicating whether
111
- * the animation completed without being cancelled.
112
- * @api
113
- */
114
- animate(t) {
115
- this.isDef() && !this.getAnimating() && this.resolveConstraints(0);
116
- const e = new Array(arguments.length);
117
- for (let n = 0; n < e.length; ++n) {
118
- let i = arguments[n];
119
- i.center && (i = Object.assign({}, i), i.center = x(
120
- i.center,
121
- this.getProjection()
122
- )), i.anchor && (i = Object.assign({}, i), i.anchor = x(
123
- i.anchor,
124
- this.getProjection()
125
- )), e[n] = i;
126
- }
127
- this.animateInternal.apply(this, e);
128
- }
129
- /**
130
- * @param {...(AnimationOptions|function(boolean): void)} var_args Animation options.
131
- */
132
- animateInternal(t) {
133
- let e = arguments.length, n;
134
- e > 1 && typeof arguments[e - 1] == "function" && (n = arguments[e - 1], --e);
135
- let i = 0;
136
- for (; i < e && !this.isDef(); ++i) {
137
- const u = arguments[i];
138
- u.center && this.setCenterInternal(u.center), u.zoom !== void 0 ? this.setZoom(u.zoom) : u.resolution && this.setResolution(u.resolution), u.rotation !== void 0 && this.setRotation(u.rotation);
139
- }
140
- if (i === e) {
141
- n && A(n, !0);
142
- return;
143
- }
144
- let s = Date.now(), r = this.targetCenter_.slice(), l = this.targetResolution_, o = this.targetRotation_;
145
- const d = [];
146
- for (; i < e; ++i) {
147
- const u = (
148
- /** @type {AnimationOptions} */
149
- arguments[i]
150
- ), h = {
151
- start: s,
152
- complete: !1,
153
- anchor: u.anchor,
154
- duration: u.duration !== void 0 ? u.duration : 1e3,
155
- easing: u.easing || L,
156
- callback: n
157
- };
158
- if (u.center && (h.sourceCenter = r, h.targetCenter = u.center.slice(), r = h.targetCenter), u.zoom !== void 0 ? (h.sourceResolution = l, h.targetResolution = this.getResolutionForZoom(u.zoom), l = h.targetResolution) : u.resolution && (h.sourceResolution = l, h.targetResolution = u.resolution, l = h.targetResolution), u.rotation !== void 0) {
159
- h.sourceRotation = o;
160
- const c = F(u.rotation - o + Math.PI, 2 * Math.PI) - Math.PI;
161
- h.targetRotation = o + c, o = h.targetRotation;
162
- }
163
- lt(h) ? h.complete = !0 : s += h.duration, d.push(h);
164
- }
165
- this.animations_.push(d), this.setHint(C.ANIMATING, 1), this.updateAnimations_();
166
- }
167
- /**
168
- * Determine if the view is being animated.
169
- * @return {boolean} The view is being animated.
170
- * @api
171
- */
172
- getAnimating() {
173
- return this.hints_[C.ANIMATING] > 0;
174
- }
175
- /**
176
- * Determine if the user is interacting with the view, such as panning or zooming.
177
- * @return {boolean} The view is being interacted with.
178
- * @api
179
- */
180
- getInteracting() {
181
- return this.hints_[C.INTERACTING] > 0;
182
- }
183
- /**
184
- * Cancel any ongoing animations.
185
- * @api
186
- */
187
- cancelAnimations() {
188
- this.setHint(C.ANIMATING, -this.hints_[C.ANIMATING]);
189
- let t;
190
- for (let e = 0, n = this.animations_.length; e < n; ++e) {
191
- const i = this.animations_[e];
192
- if (i[0].callback && A(i[0].callback, !1), !t)
193
- for (let s = 0, r = i.length; s < r; ++s) {
194
- const l = i[s];
195
- if (!l.complete) {
196
- t = l.anchor;
197
- break;
198
- }
199
- }
200
- }
201
- this.animations_.length = 0, this.cancelAnchor_ = t, this.nextCenter_ = null, this.nextResolution_ = NaN, this.nextRotation_ = NaN;
202
- }
203
- /**
204
- * Update all animations.
205
- */
206
- updateAnimations_() {
207
- if (this.updateAnimationKey_ !== void 0 && (cancelAnimationFrame(this.updateAnimationKey_), this.updateAnimationKey_ = void 0), !this.getAnimating())
208
- return;
209
- const t = Date.now();
210
- let e = !1;
211
- for (let n = this.animations_.length - 1; n >= 0; --n) {
212
- const i = this.animations_[n];
213
- let s = !0;
214
- for (let r = 0, l = i.length; r < l; ++r) {
215
- const o = i[r];
216
- if (o.complete)
217
- continue;
218
- const d = t - o.start;
219
- let u = o.duration > 0 ? d / o.duration : 1;
220
- u >= 1 ? (o.complete = !0, u = 1) : s = !1;
221
- const h = o.easing(u);
222
- if (o.sourceCenter) {
223
- const c = o.sourceCenter[0], g = o.sourceCenter[1], f = o.targetCenter[0], R = o.targetCenter[1];
224
- this.nextCenter_ = o.targetCenter;
225
- const m = c + h * (f - c), p = g + h * (R - g);
226
- this.targetCenter_ = [m, p];
227
- }
228
- if (o.sourceResolution && o.targetResolution) {
229
- const c = h === 1 ? o.targetResolution : o.sourceResolution + h * (o.targetResolution - o.sourceResolution);
230
- if (o.anchor) {
231
- const g = this.getViewportSize_(this.getRotation()), f = this.constraints_.resolution(
232
- c,
233
- 0,
234
- g,
235
- !0
236
- );
237
- this.targetCenter_ = this.calculateCenterZoom(
238
- f,
239
- o.anchor
240
- );
241
- }
242
- this.nextResolution_ = o.targetResolution, this.targetResolution_ = c, this.applyTargetState_(!0);
243
- }
244
- if (o.sourceRotation !== void 0 && o.targetRotation !== void 0) {
245
- const c = h === 1 ? F(o.targetRotation + Math.PI, 2 * Math.PI) - Math.PI : o.sourceRotation + h * (o.targetRotation - o.sourceRotation);
246
- if (o.anchor) {
247
- const g = this.constraints_.rotation(
248
- c,
249
- !0
250
- );
251
- this.targetCenter_ = this.calculateCenterRotate(
252
- g,
253
- o.anchor
254
- );
255
- }
256
- this.nextRotation_ = o.targetRotation, this.targetRotation_ = c;
257
- }
258
- if (this.applyTargetState_(!0), e = !0, !o.complete)
259
- break;
260
- }
261
- if (s) {
262
- this.animations_[n] = null, this.setHint(C.ANIMATING, -1), this.nextCenter_ = null, this.nextResolution_ = NaN, this.nextRotation_ = NaN;
263
- const r = i[0].callback;
264
- r && A(r, !0);
265
- }
266
- }
267
- this.animations_ = this.animations_.filter(Boolean), e && this.updateAnimationKey_ === void 0 && (this.updateAnimationKey_ = requestAnimationFrame(
268
- this.updateAnimations_.bind(this)
269
- ));
270
- }
271
- /**
272
- * @param {number} rotation Target rotation.
273
- * @param {import("./coordinate.js").Coordinate} anchor Rotation anchor.
274
- * @return {import("./coordinate.js").Coordinate|undefined} Center for rotation and anchor.
275
- */
276
- calculateCenterRotate(t, e) {
277
- let n;
278
- const i = this.getCenterInternal();
279
- return i !== void 0 && (n = [i[0] - e[0], i[1] - e[1]], H(n, t - this.getRotation()), D(n, e)), n;
280
- }
281
- /**
282
- * @param {number} resolution Target resolution.
283
- * @param {import("./coordinate.js").Coordinate} anchor Zoom anchor.
284
- * @return {import("./coordinate.js").Coordinate|undefined} Center for resolution and anchor.
285
- */
286
- calculateCenterZoom(t, e) {
287
- let n;
288
- const i = this.getCenterInternal(), s = this.getResolution();
289
- if (i !== void 0 && s !== void 0) {
290
- const r = e[0] - t * (e[0] - i[0]) / s, l = e[1] - t * (e[1] - i[1]) / s;
291
- n = [r, l];
292
- }
293
- return n;
294
- }
295
- /**
296
- * Returns the current viewport size.
297
- * @private
298
- * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
299
- * @return {import("./size.js").Size} Viewport size or `[100, 100]` when no viewport is found.
300
- */
301
- getViewportSize_(t) {
302
- const e = this.viewportSize_;
303
- if (t) {
304
- const n = e[0], i = e[1];
305
- return [
306
- Math.abs(n * Math.cos(t)) + Math.abs(i * Math.sin(t)),
307
- Math.abs(n * Math.sin(t)) + Math.abs(i * Math.cos(t))
308
- ];
309
- }
310
- return e;
311
- }
312
- /**
313
- * Stores the viewport size on the view. The viewport size is not read every time from the DOM
314
- * to avoid performance hit and layout reflow.
315
- * This should be done on map size change.
316
- * Note: the constraints are not resolved during an animation to avoid stopping it
317
- * @param {import("./size.js").Size} [size] Viewport size; if undefined, [100, 100] is assumed
318
- */
319
- setViewportSize(t) {
320
- this.viewportSize_ = Array.isArray(t) ? t.slice() : [100, 100], this.getAnimating() || this.resolveConstraints(0);
321
- }
322
- /**
323
- * Get the view center.
324
- * @return {import("./coordinate.js").Coordinate|undefined} The center of the view.
325
- * @observable
326
- * @api
327
- */
328
- getCenter() {
329
- const t = this.getCenterInternal();
330
- return t && N(t, this.getProjection());
331
- }
332
- /**
333
- * Get the view center without transforming to user projection.
334
- * @return {import("./coordinate.js").Coordinate|undefined} The center of the view.
335
- */
336
- getCenterInternal() {
337
- return (
338
- /** @type {import("./coordinate.js").Coordinate|undefined} */
339
- this.get(_.CENTER)
340
- );
341
- }
342
- /**
343
- * @return {Constraints} Constraints.
344
- */
345
- getConstraints() {
346
- return this.constraints_;
347
- }
348
- /**
349
- * @return {boolean} Resolution constraint is set
350
- */
351
- getConstrainResolution() {
352
- return this.get("constrainResolution");
353
- }
354
- /**
355
- * @param {Array<number>} [hints] Destination array.
356
- * @return {Array<number>} Hint.
357
- */
358
- getHints(t) {
359
- return t !== void 0 ? (t[0] = this.hints_[0], t[1] = this.hints_[1], t) : this.hints_.slice();
360
- }
361
- /**
362
- * Calculate the extent for the current view state and the passed box size.
363
- * @param {import("./size.js").Size} [size] The pixel dimensions of the box
364
- * into which the calculated extent should fit. Defaults to the size of the
365
- * map the view is associated with.
366
- * If no map or multiple maps are connected to the view, provide the desired
367
- * box size (e.g. `map.getSize()`).
368
- * @return {import("./extent.js").Extent} Extent.
369
- * @api
370
- */
371
- calculateExtent(t) {
372
- const e = this.calculateExtentInternal(t);
373
- return q(e, this.getProjection());
374
- }
375
- /**
376
- * @param {import("./size.js").Size} [size] Box pixel size. If not provided,
377
- * the map's last known viewport size will be used.
378
- * @return {import("./extent.js").Extent} Extent.
379
- */
380
- calculateExtentInternal(t) {
381
- t = t || this.getViewportSizeMinusPadding_();
382
- const e = (
383
- /** @type {!import("./coordinate.js").Coordinate} */
384
- this.getCenterInternal()
385
- );
386
- I(e, "The view center is not defined");
387
- const n = (
388
- /** @type {!number} */
389
- this.getResolution()
390
- );
391
- I(n !== void 0, "The view resolution is not defined");
392
- const i = (
393
- /** @type {!number} */
394
- this.getRotation()
395
- );
396
- return I(i !== void 0, "The view rotation is not defined"), Y(e, n, i, t);
397
- }
398
- /**
399
- * Get the maximum resolution of the view.
400
- * @return {number} The maximum resolution of the view.
401
- * @api
402
- */
403
- getMaxResolution() {
404
- return this.maxResolution_;
405
- }
406
- /**
407
- * Get the minimum resolution of the view.
408
- * @return {number} The minimum resolution of the view.
409
- * @api
410
- */
411
- getMinResolution() {
412
- return this.minResolution_;
413
- }
414
- /**
415
- * Get the maximum zoom level for the view.
416
- * @return {number} The maximum zoom level.
417
- * @api
418
- */
419
- getMaxZoom() {
420
- return (
421
- /** @type {number} */
422
- this.getZoomForResolution(this.minResolution_)
423
- );
424
- }
425
- /**
426
- * Set a new maximum zoom level for the view.
427
- * @param {number} zoom The maximum zoom level.
428
- * @api
429
- */
430
- setMaxZoom(t) {
431
- this.applyOptions_(this.getUpdatedOptions_({ maxZoom: t }));
432
- }
433
- /**
434
- * Get the minimum zoom level for the view.
435
- * @return {number} The minimum zoom level.
436
- * @api
437
- */
438
- getMinZoom() {
439
- return (
440
- /** @type {number} */
441
- this.getZoomForResolution(this.maxResolution_)
442
- );
443
- }
444
- /**
445
- * Set a new minimum zoom level for the view.
446
- * @param {number} zoom The minimum zoom level.
447
- * @api
448
- */
449
- setMinZoom(t) {
450
- this.applyOptions_(this.getUpdatedOptions_({ minZoom: t }));
451
- }
452
- /**
453
- * Set whether the view should allow intermediary zoom levels.
454
- * @param {boolean} enabled Whether the resolution is constrained.
455
- * @api
456
- */
457
- setConstrainResolution(t) {
458
- this.applyOptions_(this.getUpdatedOptions_({ constrainResolution: t }));
459
- }
460
- /**
461
- * Get the view projection.
462
- * @return {import("./proj/Projection.js").default} The projection of the view.
463
- * @api
464
- */
465
- getProjection() {
466
- return this.projection_;
467
- }
468
- /**
469
- * Get the view resolution.
470
- * @return {number|undefined} The resolution of the view.
471
- * @observable
472
- * @api
473
- */
474
- getResolution() {
475
- return (
476
- /** @type {number|undefined} */
477
- this.get(_.RESOLUTION)
478
- );
479
- }
480
- /**
481
- * Get the resolutions for the view. This returns the array of resolutions
482
- * passed to the constructor of the View, or undefined if none were given.
483
- * @return {Array<number>|undefined} The resolutions of the view.
484
- * @api
485
- */
486
- getResolutions() {
487
- return this.resolutions_;
488
- }
489
- /**
490
- * Get the resolution for a provided extent (in map units) and size (in pixels).
491
- * @param {import("./extent.js").Extent} extent Extent.
492
- * @param {import("./size.js").Size} [size] Box pixel size.
493
- * @return {number} The resolution at which the provided extent will render at
494
- * the given size.
495
- * @api
496
- */
497
- getResolutionForExtent(t, e) {
498
- return this.getResolutionForExtentInternal(
499
- M(t, this.getProjection()),
500
- e
501
- );
502
- }
503
- /**
504
- * Get the resolution for a provided extent (in map units) and size (in pixels).
505
- * @param {import("./extent.js").Extent} extent Extent.
506
- * @param {import("./size.js").Size} [size] Box pixel size.
507
- * @return {number} The resolution at which the provided extent will render at
508
- * the given size.
509
- */
510
- getResolutionForExtentInternal(t, e) {
511
- e = e || this.getViewportSizeMinusPadding_();
512
- const n = O(t) / e[0], i = V(t) / e[1];
513
- return Math.max(n, i);
514
- }
515
- /**
516
- * Return a function that returns a value between 0 and 1 for a
517
- * resolution. Exponential scaling is assumed.
518
- * @param {number} [power] Power.
519
- * @return {function(number): number} Resolution for value function.
520
- */
521
- getResolutionForValueFunction(t) {
522
- t = t || 2;
523
- const e = this.getConstrainedResolution(this.maxResolution_), n = this.minResolution_, i = Math.log(e / n) / Math.log(t);
524
- return (
525
- /**
526
- * @param {number} value Value.
527
- * @return {number} Resolution.
528
- */
529
- function(s) {
530
- return e / Math.pow(t, s * i);
531
- }
532
- );
533
- }
534
- /**
535
- * Get the view rotation.
536
- * @return {number} The rotation of the view in radians.
537
- * @observable
538
- * @api
539
- */
540
- getRotation() {
541
- return (
542
- /** @type {number} */
543
- this.get(_.ROTATION)
544
- );
545
- }
546
- /**
547
- * Return a function that returns a resolution for a value between
548
- * 0 and 1. Exponential scaling is assumed.
549
- * @param {number} [power] Power.
550
- * @return {function(number): number} Value for resolution function.
551
- */
552
- getValueForResolutionFunction(t) {
553
- const e = Math.log(t || 2), n = this.getConstrainedResolution(this.maxResolution_), i = this.minResolution_, s = Math.log(n / i) / e;
554
- return (
555
- /**
556
- * @param {number} resolution Resolution.
557
- * @return {number} Value.
558
- */
559
- function(r) {
560
- return Math.log(n / r) / e / s;
561
- }
562
- );
563
- }
564
- /**
565
- * Returns the size of the viewport minus padding.
566
- * @private
567
- * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
568
- * @return {import("./size.js").Size} Viewport size reduced by the padding.
569
- */
570
- getViewportSizeMinusPadding_(t) {
571
- let e = this.getViewportSize_(t);
572
- const n = this.padding_;
573
- return n && (e = [
574
- e[0] - n[1] - n[3],
575
- e[1] - n[0] - n[2]
576
- ]), e;
577
- }
578
- /**
579
- * @return {State} View state.
580
- */
581
- getState() {
582
- const t = this.getProjection(), e = this.getResolution(), n = this.getRotation();
583
- let i = (
584
- /** @type {import("./coordinate.js").Coordinate} */
585
- this.getCenterInternal()
586
- );
587
- const s = this.padding_;
588
- if (s) {
589
- const r = this.getViewportSizeMinusPadding_();
590
- i = S(
591
- i,
592
- this.getViewportSize_(),
593
- [r[0] / 2 + s[3], r[1] / 2 + s[0]],
594
- e,
595
- n
596
- );
597
- }
598
- return {
599
- center: i.slice(0),
600
- projection: t !== void 0 ? t : null,
601
- resolution: e,
602
- nextCenter: this.nextCenter_,
603
- nextResolution: this.nextResolution_,
604
- nextRotation: this.nextRotation_,
605
- rotation: n,
606
- zoom: this.getZoom()
607
- };
608
- }
609
- /**
610
- * @return {ViewStateLayerStateExtent} Like `FrameState`, but just `viewState` and `extent`.
611
- */
612
- getViewStateAndExtent() {
613
- return {
614
- viewState: this.getState(),
615
- extent: this.calculateExtent()
616
- };
617
- }
618
- /**
619
- * Get the current zoom level. This method may return non-integer zoom levels
620
- * if the view does not constrain the resolution, or if an interaction or
621
- * animation is underway.
622
- * @return {number|undefined} Zoom.
623
- * @api
624
- */
625
- getZoom() {
626
- let t;
627
- const e = this.getResolution();
628
- return e !== void 0 && (t = this.getZoomForResolution(e)), t;
629
- }
630
- /**
631
- * Get the zoom level for a resolution.
632
- * @param {number} resolution The resolution.
633
- * @return {number|undefined} The zoom level for the provided resolution.
634
- * @api
635
- */
636
- getZoomForResolution(t) {
637
- let e = this.minZoom_ || 0, n, i;
638
- if (this.resolutions_) {
639
- const s = U(this.resolutions_, t, 1);
640
- e = s, n = this.resolutions_[s], s == this.resolutions_.length - 1 ? i = 2 : i = n / this.resolutions_[s + 1];
641
- } else
642
- n = this.maxResolution_, i = this.zoomFactor_;
643
- return e + Math.log(n / t) / Math.log(i);
644
- }
645
- /**
646
- * Get the resolution for a zoom level.
647
- * @param {number} zoom Zoom level.
648
- * @return {number} The view resolution for the provided zoom level.
649
- * @api
650
- */
651
- getResolutionForZoom(t) {
652
- var e;
653
- if ((e = this.resolutions_) != null && e.length) {
654
- if (this.resolutions_.length === 1)
655
- return this.resolutions_[0];
656
- const n = E(
657
- Math.floor(t),
658
- 0,
659
- this.resolutions_.length - 2
660
- ), i = this.resolutions_[n] / this.resolutions_[n + 1];
661
- return this.resolutions_[n] / Math.pow(i, E(t - n, 0, 1));
662
- }
663
- return this.maxResolution_ / Math.pow(this.zoomFactor_, t - this.minZoom_);
664
- }
665
- /**
666
- * Fit the given geometry or extent based on the given map size and border.
667
- * The size is pixel dimensions of the box to fit the extent into.
668
- * In most cases you will want to use the map size, that is `map.getSize()`.
669
- * Takes care of the map angle.
670
- * @param {import("./geom/SimpleGeometry.js").default|import("./extent.js").Extent} geometryOrExtent The geometry or
671
- * extent to fit the view to.
672
- * @param {FitOptions} [options] Options.
673
- * @api
674
- */
675
- fit(t, e) {
676
- let n;
677
- if (I(
678
- Array.isArray(t) || typeof /** @type {?} */
679
- t.getSimplifiedGeometry == "function",
680
- "Invalid extent or geometry provided as `geometry`"
681
- ), Array.isArray(t)) {
682
- I(
683
- !K(t),
684
- "Cannot fit empty extent provided as `geometry`"
685
- );
686
- const i = M(t, this.getProjection());
687
- n = z(i);
688
- } else if (t.getType() === "Circle") {
689
- const i = M(
690
- t.getExtent(),
691
- this.getProjection()
692
- );
693
- n = z(i), n.rotate(this.getRotation(), T(i));
694
- } else
695
- n = t;
696
- this.fitInternal(n, e);
697
- }
698
- /**
699
- * Calculate rotated extent
700
- * @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
701
- * @return {import("./extent").Extent} The rotated extent for the geometry.
702
- */
703
- rotatedExtentForGeometry(t) {
704
- const e = this.getRotation(), n = Math.cos(e), i = Math.sin(-e), s = t.getFlatCoordinates(), r = t.getStride();
705
- let l = 1 / 0, o = 1 / 0, d = -1 / 0, u = -1 / 0;
706
- for (let h = 0, c = s.length; h < c; h += r) {
707
- const g = s[h] * n - s[h + 1] * i, f = s[h] * i + s[h + 1] * n;
708
- l = Math.min(l, g), o = Math.min(o, f), d = Math.max(d, g), u = Math.max(u, f);
709
- }
710
- return [l, o, d, u];
711
- }
712
- /**
713
- * @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
714
- * @param {FitOptions} [options] Options.
715
- */
716
- fitInternal(t, e) {
717
- e = e || {};
718
- let n = e.size;
719
- n || (n = this.getViewportSizeMinusPadding_());
720
- const i = e.padding !== void 0 ? e.padding : [0, 0, 0, 0], s = e.nearest !== void 0 ? e.nearest : !1;
721
- let r;
722
- e.minResolution !== void 0 ? r = e.minResolution : e.maxZoom !== void 0 ? r = this.getResolutionForZoom(e.maxZoom) : r = 0;
723
- const l = this.rotatedExtentForGeometry(t);
724
- let o = this.getResolutionForExtentInternal(l, [
725
- n[0] - i[1] - i[3],
726
- n[1] - i[0] - i[2]
727
- ]);
728
- o = isNaN(o) ? r : Math.max(o, r), o = this.getConstrainedResolution(o, s ? 0 : 1);
729
- const d = this.getRotation(), u = Math.sin(d), h = Math.cos(d), c = T(l);
730
- c[0] += (i[1] - i[3]) / 2 * o, c[1] += (i[0] - i[2]) / 2 * o;
731
- const g = c[0] * h - c[1] * u, f = c[1] * h + c[0] * u, R = this.getConstrainedCenter([g, f], o), m = e.callback ? e.callback : W;
732
- e.duration !== void 0 ? this.animateInternal(
733
- {
734
- resolution: o,
735
- center: R,
736
- duration: e.duration,
737
- easing: e.easing
738
- },
739
- m
740
- ) : (this.targetResolution_ = o, this.targetCenter_ = R, this.applyTargetState_(!1, !0), A(m, !0));
741
- }
742
- /**
743
- * Center on coordinate and view position.
744
- * @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
745
- * @param {import("./size.js").Size} size Box pixel size.
746
- * @param {import("./pixel.js").Pixel} position Position on the view to center on.
747
- * @api
748
- */
749
- centerOn(t, e, n) {
750
- this.centerOnInternal(
751
- x(t, this.getProjection()),
752
- e,
753
- n
754
- );
755
- }
756
- /**
757
- * @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
758
- * @param {import("./size.js").Size} size Box pixel size.
759
- * @param {import("./pixel.js").Pixel} position Position on the view to center on.
760
- */
761
- centerOnInternal(t, e, n) {
762
- this.setCenterInternal(
763
- S(
764
- t,
765
- e,
766
- n,
767
- this.getResolution(),
768
- this.getRotation()
769
- )
770
- );
771
- }
772
- /**
773
- * Calculates the shift between map and viewport center.
774
- * @param {import("./coordinate.js").Coordinate} center Center.
775
- * @param {number} resolution Resolution.
776
- * @param {number} rotation Rotation.
777
- * @param {import("./size.js").Size} size Size.
778
- * @return {Array<number>|undefined} Center shift.
779
- */
780
- calculateCenterShift(t, e, n, i) {
781
- let s;
782
- const r = this.padding_;
783
- if (r && t) {
784
- const l = this.getViewportSizeMinusPadding_(-n), o = S(
785
- t,
786
- i,
787
- [l[0] / 2 + r[3], l[1] / 2 + r[0]],
788
- e,
789
- n
790
- );
791
- s = [
792
- t[0] - o[0],
793
- t[1] - o[1]
794
- ];
795
- }
796
- return s;
797
- }
798
- /**
799
- * @return {boolean} Is defined.
800
- */
801
- isDef() {
802
- return !!this.getCenterInternal() && this.getResolution() !== void 0;
803
- }
804
- /**
805
- * Adds relative coordinates to the center of the view. Any extent constraint will apply.
806
- * @param {import("./coordinate.js").Coordinate} deltaCoordinates Relative value to add.
807
- * @api
808
- */
809
- adjustCenter(t) {
810
- const e = N(this.targetCenter_, this.getProjection());
811
- this.setCenter([
812
- e[0] + t[0],
813
- e[1] + t[1]
814
- ]);
815
- }
816
- /**
817
- * Adds relative coordinates to the center of the view. Any extent constraint will apply.
818
- * @param {import("./coordinate.js").Coordinate} deltaCoordinates Relative value to add.
819
- */
820
- adjustCenterInternal(t) {
821
- const e = this.targetCenter_;
822
- this.setCenterInternal([
823
- e[0] + t[0],
824
- e[1] + t[1]
825
- ]);
826
- }
827
- /**
828
- * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
829
- * constraint will apply.
830
- * @param {number} ratio The ratio to apply on the view resolution.
831
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
832
- * @api
833
- */
834
- adjustResolution(t, e) {
835
- e = e && x(e, this.getProjection()), this.adjustResolutionInternal(t, e);
836
- }
837
- /**
838
- * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
839
- * constraint will apply.
840
- * @param {number} ratio The ratio to apply on the view resolution.
841
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
842
- */
843
- adjustResolutionInternal(t, e) {
844
- const n = this.getAnimating() || this.getInteracting(), i = this.getViewportSize_(this.getRotation()), s = this.constraints_.resolution(
845
- this.targetResolution_ * t,
846
- 0,
847
- i,
848
- n
849
- );
850
- e && (this.targetCenter_ = this.calculateCenterZoom(s, e)), this.targetResolution_ *= t, this.applyTargetState_();
851
- }
852
- /**
853
- * Adds a value to the view zoom level, optionally using an anchor. Any resolution
854
- * constraint will apply.
855
- * @param {number} delta Relative value to add to the zoom level.
856
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
857
- * @api
858
- */
859
- adjustZoom(t, e) {
860
- this.adjustResolution(Math.pow(this.zoomFactor_, -t), e);
861
- }
862
- /**
863
- * Adds a value to the view rotation, optionally using an anchor. Any rotation
864
- * constraint will apply.
865
- * @param {number} delta Relative value to add to the zoom rotation, in radians.
866
- * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
867
- * @api
868
- */
869
- adjustRotation(t, e) {
870
- e && (e = x(e, this.getProjection())), this.adjustRotationInternal(t, e);
871
- }
872
- /**
873
- * @param {number} delta Relative value to add to the zoom rotation, in radians.
874
- * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
875
- */
876
- adjustRotationInternal(t, e) {
877
- const n = this.getAnimating() || this.getInteracting(), i = this.constraints_.rotation(
878
- this.targetRotation_ + t,
879
- n
880
- );
881
- e && (this.targetCenter_ = this.calculateCenterRotate(i, e)), this.targetRotation_ += t, this.applyTargetState_();
882
- }
883
- /**
884
- * Set the center of the current view. Any extent constraint will apply.
885
- * @param {import("./coordinate.js").Coordinate|undefined} center The center of the view.
886
- * @observable
887
- * @api
888
- */
889
- setCenter(t) {
890
- this.setCenterInternal(
891
- t && x(t, this.getProjection())
892
- );
893
- }
894
- /**
895
- * Set the center using the view projection (not the user projection).
896
- * @param {import("./coordinate.js").Coordinate|undefined} center The center of the view.
897
- */
898
- setCenterInternal(t) {
899
- this.targetCenter_ = t, this.applyTargetState_();
900
- }
901
- /**
902
- * @param {import("./ViewHint.js").default} hint Hint.
903
- * @param {number} delta Delta.
904
- * @return {number} New value.
905
- */
906
- setHint(t, e) {
907
- return this.hints_[t] += e, this.changed(), this.hints_[t];
908
- }
909
- /**
910
- * Set the resolution for this view. Any resolution constraint will apply.
911
- * @param {number|undefined} resolution The resolution of the view.
912
- * @observable
913
- * @api
914
- */
915
- setResolution(t) {
916
- this.targetResolution_ = t, this.applyTargetState_();
917
- }
918
- /**
919
- * Set the rotation for this view. Any rotation constraint will apply.
920
- * @param {number} rotation The rotation of the view in radians.
921
- * @observable
922
- * @api
923
- */
924
- setRotation(t) {
925
- this.targetRotation_ = t, this.applyTargetState_();
926
- }
927
- /**
928
- * Zoom to a specific zoom level. Any resolution constrain will apply.
929
- * @param {number} zoom Zoom level.
930
- * @api
931
- */
932
- setZoom(t) {
933
- this.setResolution(this.getResolutionForZoom(t));
934
- }
935
- /**
936
- * Recompute rotation/resolution/center based on target values.
937
- * Note: we have to compute rotation first, then resolution and center considering that
938
- * parameters can influence one another in case a view extent constraint is present.
939
- * @param {boolean} [doNotCancelAnims] Do not cancel animations.
940
- * @param {boolean} [forceMoving] Apply constraints as if the view is moving.
941
- * @private
942
- */
943
- applyTargetState_(t, e) {
944
- const n = this.getAnimating() || this.getInteracting() || e, i = this.constraints_.rotation(
945
- this.targetRotation_,
946
- n
947
- ), s = this.getViewportSize_(i), r = this.constraints_.resolution(
948
- this.targetResolution_,
949
- 0,
950
- s,
951
- n
952
- ), l = this.constraints_.center(
953
- this.targetCenter_,
954
- r,
955
- s,
956
- n,
957
- this.calculateCenterShift(
958
- this.targetCenter_,
959
- r,
960
- i,
961
- s
962
- )
963
- );
964
- this.get(_.ROTATION) !== i && this.set(_.ROTATION, i), this.get(_.RESOLUTION) !== r && (this.set(_.RESOLUTION, r), this.set("zoom", this.getZoom(), !0)), (!l || !this.get(_.CENTER) || !Z(this.get(_.CENTER), l)) && this.set(_.CENTER, l), this.getAnimating() && !t && this.cancelAnimations(), this.cancelAnchor_ = void 0;
965
- }
966
- /**
967
- * If any constraints need to be applied, an animation will be triggered.
968
- * This is typically done on interaction end.
969
- * Note: calling this with a duration of 0 will apply the constrained values straight away,
970
- * without animation.
971
- * @param {number} [duration] The animation duration in ms.
972
- * @param {number} [resolutionDirection] Which direction to zoom.
973
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
974
- */
975
- resolveConstraints(t, e, n) {
976
- t = t !== void 0 ? t : 200;
977
- const i = e || 0, s = this.constraints_.rotation(this.targetRotation_), r = this.getViewportSize_(s), l = this.constraints_.resolution(
978
- this.targetResolution_,
979
- i,
980
- r
981
- ), o = this.constraints_.center(
982
- this.targetCenter_,
983
- l,
984
- r,
985
- !1,
986
- this.calculateCenterShift(
987
- this.targetCenter_,
988
- l,
989
- s,
990
- r
991
- )
992
- );
993
- if (t === 0 && !this.cancelAnchor_) {
994
- this.targetResolution_ = l, this.targetRotation_ = s, this.targetCenter_ = o, this.applyTargetState_();
995
- return;
996
- }
997
- n = n || (t === 0 ? this.cancelAnchor_ : void 0), this.cancelAnchor_ = void 0, (this.getResolution() !== l || this.getRotation() !== s || !this.getCenterInternal() || !Z(this.getCenterInternal(), o)) && (this.getAnimating() && this.cancelAnimations(), this.animateInternal({
998
- rotation: s,
999
- center: o,
1000
- resolution: l,
1001
- duration: t,
1002
- easing: X,
1003
- anchor: n
1004
- }));
1005
- }
1006
- /**
1007
- * Notify the View that an interaction has started.
1008
- * The view state will be resolved to a stable one if needed
1009
- * (depending on its constraints).
1010
- * @api
1011
- */
1012
- beginInteraction() {
1013
- this.resolveConstraints(0), this.setHint(C.INTERACTING, 1);
1014
- }
1015
- /**
1016
- * Notify the View that an interaction has ended. The view state will be resolved
1017
- * to a stable one if needed (depending on its constraints).
1018
- * @param {number} [duration] Animation duration in ms.
1019
- * @param {number} [resolutionDirection] Which direction to zoom.
1020
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1021
- * @api
1022
- */
1023
- endInteraction(t, e, n) {
1024
- n = n && x(n, this.getProjection()), this.endInteractionInternal(t, e, n);
1025
- }
1026
- /**
1027
- * Notify the View that an interaction has ended. The view state will be resolved
1028
- * to a stable one if needed (depending on its constraints).
1029
- * @param {number} [duration] Animation duration in ms.
1030
- * @param {number} [resolutionDirection] Which direction to zoom.
1031
- * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1032
- */
1033
- endInteractionInternal(t, e, n) {
1034
- this.getInteracting() && (this.setHint(C.INTERACTING, -1), this.resolveConstraints(t, e, n));
1035
- }
1036
- /**
1037
- * Get a valid position for the view center according to the current constraints.
1038
- * @param {import("./coordinate.js").Coordinate|undefined} targetCenter Target center position.
1039
- * @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.
1040
- * This is useful to guess a valid center position at a different zoom level.
1041
- * @return {import("./coordinate.js").Coordinate|undefined} Valid center position.
1042
- */
1043
- getConstrainedCenter(t, e) {
1044
- const n = this.getViewportSize_(this.getRotation());
1045
- return this.constraints_.center(
1046
- t,
1047
- e || this.getResolution(),
1048
- n
1049
- );
1050
- }
1051
- /**
1052
- * Get a valid zoom level according to the current view constraints.
1053
- * @param {number|undefined} targetZoom Target zoom.
1054
- * @param {number} [direction] Indicate which resolution should be used
1055
- * by a renderer if the view resolution does not match any resolution of the tile source.
1056
- * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1057
- * will be used. If -1, the nearest higher resolution will be used.
1058
- * @return {number|undefined} Valid zoom level.
1059
- */
1060
- getConstrainedZoom(t, e) {
1061
- const n = this.getResolutionForZoom(t);
1062
- return this.getZoomForResolution(
1063
- this.getConstrainedResolution(n, e)
1064
- );
1065
- }
1066
- /**
1067
- * Get a valid resolution according to the current view constraints.
1068
- * @param {number|undefined} targetResolution Target resolution.
1069
- * @param {number} [direction] Indicate which resolution should be used
1070
- * by a renderer if the view resolution does not match any resolution of the tile source.
1071
- * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1072
- * will be used. If -1, the nearest higher resolution will be used.
1073
- * @return {number|undefined} Valid resolution.
1074
- */
1075
- getConstrainedResolution(t, e) {
1076
- e = e || 0;
1077
- const n = this.getViewportSize_(this.getRotation());
1078
- return this.constraints_.resolution(t, e, n);
1079
- }
1080
- }
1081
- function A(a, t) {
1082
- setTimeout(function() {
1083
- a(t);
1084
- }, 0);
1085
- }
1086
- function st(a) {
1087
- if (a.extent !== void 0) {
1088
- const e = a.smoothExtentConstraint !== void 0 ? a.smoothExtentConstraint : !0;
1089
- return y(a.extent, a.constrainOnlyCenter, e);
1090
- }
1091
- const t = j(a.projection, "EPSG:3857");
1092
- if (a.multiWorld !== !0 && t.isGlobal()) {
1093
- const e = t.getExtent().slice();
1094
- return e[0] = -1 / 0, e[2] = 1 / 0, y(e, !1, !1);
1095
- }
1096
- return k;
1097
- }
1098
- function rt(a) {
1099
- let t, e, n, r = a.minZoom !== void 0 ? a.minZoom : w, l = a.maxZoom !== void 0 ? a.maxZoom : 28;
1100
- const o = a.zoomFactor !== void 0 ? a.zoomFactor : 2, d = a.multiWorld !== void 0 ? a.multiWorld : !1, u = a.smoothResolutionConstraint !== void 0 ? a.smoothResolutionConstraint : !0, h = a.showFullExtent !== void 0 ? a.showFullExtent : !1, c = j(a.projection, "EPSG:3857"), g = c.getExtent();
1101
- let f = a.constrainOnlyCenter, R = a.extent;
1102
- if (!d && !R && c.isGlobal() && (f = !1, R = g), a.resolutions !== void 0) {
1103
- const m = a.resolutions;
1104
- e = m[r], n = m[l] !== void 0 ? m[l] : m[m.length - 1], a.constrainResolution ? t = $(
1105
- m,
1106
- u,
1107
- !f && R,
1108
- h
1109
- ) : t = P(
1110
- e,
1111
- n,
1112
- u,
1113
- !f && R,
1114
- h
1115
- );
1116
- } else {
1117
- const p = (g ? Math.max(O(g), V(g)) : (
1118
- // use an extent that can fit the whole world if need be
1119
- 360 * it.degrees / c.getMetersPerUnit()
1120
- )) / nt / Math.pow(2, w), v = p / Math.pow(2, 28 - w);
1121
- e = a.maxResolution, e !== void 0 ? r = 0 : e = p / Math.pow(o, r), n = a.minResolution, n === void 0 && (a.maxZoom !== void 0 ? a.maxResolution !== void 0 ? n = e / Math.pow(o, l) : n = p / Math.pow(o, l) : n = v), l = r + Math.floor(
1122
- Math.log(e / n) / Math.log(o)
1123
- ), n = e / Math.pow(o, l - r), a.constrainResolution ? t = J(
1124
- o,
1125
- e,
1126
- n,
1127
- u,
1128
- !f && R,
1129
- h
1130
- ) : t = P(
1131
- e,
1132
- n,
1133
- u,
1134
- !f && R,
1135
- h
1136
- );
1137
- }
1138
- return {
1139
- constraint: t,
1140
- maxResolution: e,
1141
- minResolution: n,
1142
- minZoom: r,
1143
- zoomFactor: o
1144
- };
1145
- }
1146
- function at(a) {
1147
- if (a.enableRotation !== void 0 ? a.enableRotation : !0) {
1148
- const e = a.constrainRotation;
1149
- return e === void 0 || e === !0 ? Q() : e === !1 ? b : typeof e == "number" ? tt(e) : b;
1150
- }
1151
- return et;
1152
- }
1153
- function lt(a) {
1154
- return !(a.sourceCenter && a.targetCenter && !Z(a.sourceCenter, a.targetCenter) || a.sourceResolution !== a.targetResolution || a.sourceRotation !== a.targetRotation);
1155
- }
1156
- function S(a, t, e, n, i) {
1157
- const s = Math.cos(-i);
1158
- let r = Math.sin(-i), l = a[0] * s - a[1] * r, o = a[1] * s + a[0] * r;
1159
- l += (t[0] / 2 - e[0]) * n, o += (e[1] - t[1] / 2) * n, r = -r;
1160
- const d = l * s - o * r, u = o * s + l * r;
1161
- return [d, u];
1162
- }
1163
- const Zt = ot;
1164
- export {
1165
- st as createCenterConstraint,
1166
- rt as createResolutionConstraint,
1167
- at as createRotationConstraint,
1168
- Zt as default,
1169
- lt as isNoopAnimation
1170
- };