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.
- package/es/{packages/components/index.mjs → index.mjs} +5 -6
- package/es/src/gis-map/gis-map.vue.d.ts +1 -124
- package/es/{packages/components/src → src}/gis-map/gis-map.vue.mjs +63 -63
- package/es/src/gis-map/index.d.ts +1 -124
- package/es/{packages/components/src → src}/gis-map/utils/index.mjs +2 -2
- package/es/src/gis-map-ol/index.d.ts +1 -44
- package/es/src/index.mjs +6 -0
- package/es/style.css +1 -1
- package/lib/index.js +1 -0
- package/lib/src/gis-map/gis-map.vue.d.ts +1 -124
- package/lib/src/gis-map/gis-map.vue.js +1 -0
- package/lib/src/gis-map/index.d.ts +1 -124
- package/lib/src/gis-map/utils/index.js +1 -0
- package/lib/src/gis-map-ol/index.d.ts +1 -44
- package/lib/src/index.js +1 -0
- package/package.json +1 -1
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Collection.mjs +0 -195
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/CollectionEventType.mjs +0 -17
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/DataTile.mjs +0 -73
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Disposable.mjs +0 -21
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Feature.mjs +0 -181
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Image.mjs +0 -48
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageState.mjs +0 -10
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageTile.mjs +0 -131
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Kinetic.mjs +0 -58
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Map.mjs +0 -1051
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEvent.mjs +0 -59
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventHandler.mjs +0 -232
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventType.mjs +0 -45
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEvent.mjs +0 -15
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEventType.mjs +0 -35
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapProperty.mjs +0 -9
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Object.mjs +0 -136
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ObjectEventType.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Observable.mjs +0 -105
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Tile.mjs +0 -116
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileQueue.mjs +0 -69
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileRange.mjs +0 -79
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileState.mjs +0 -14
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/View.mjs +0 -1170
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewHint.mjs +0 -7
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewProperty.mjs +0 -8
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/array.mjs +0 -89
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/asserts.mjs +0 -7
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/centerconstraint.mjs +0 -35
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/color.mjs +0 -133
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/colorlike.mjs +0 -47
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/console.mjs +0 -13
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Attribution.mjs +0 -134
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Control.mjs +0 -73
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Rotate.mjs +0 -71
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Zoom.mjs +0 -63
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/defaults.mjs +0 -12
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/coordinate.mjs +0 -42
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/css.mjs +0 -49
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/dom.mjs +0 -112
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/easing.mjs +0 -18
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Event.mjs +0 -27
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/EventType.mjs +0 -32
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Key.mjs +0 -9
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Target.mjs +0 -101
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/condition.mjs +0 -65
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events.mjs +0 -27
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/cpu.mjs +0 -367
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/expression.mjs +0 -649
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent/Relationship.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent.mjs +0 -239
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/featureloader.mjs +0 -54
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/functions.mjs +0 -35
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Geometry.mjs +0 -235
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/LinearRing.mjs +0 -147
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Point.mjs +0 -101
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Polygon.mjs +0 -319
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/SimpleGeometry.mjs +0 -249
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/area.mjs +0 -22
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/center.mjs +0 -18
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/closest.mjs +0 -119
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/contains.mjs +0 -41
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/deflate.mjs +0 -32
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/inflate.mjs +0 -42
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interiorpoint.mjs +0 -38
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interpolate.mjs +0 -27
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/intersectsextent.mjs +0 -78
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/length.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/linechunk.mjs +0 -26
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/orient.mjs +0 -62
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/reverse.mjs +0 -12
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/segments.mjs +0 -13
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/simplify.mjs +0 -89
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/straightchunk.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/textpath.mjs +0 -61
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/transform.mjs +0 -51
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/has.mjs +0 -24
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DoubleClickZoom.mjs +0 -32
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragBox.mjs +0 -152
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragPan.mjs +0 -79
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragRotate.mjs +0 -54
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragZoom.mjs +0 -41
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Interaction.mjs +0 -87
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardPan.mjs +0 -44
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardZoom.mjs +0 -39
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/MouseWheelZoom.mjs +0 -109
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchRotate.mjs +0 -63
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchZoom.mjs +0 -59
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Pointer.mjs +0 -109
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Property.mjs +0 -6
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/defaults.mjs +0 -47
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Base.mjs +0 -270
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseTile.mjs +0 -87
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseVector.mjs +0 -179
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Group.mjs +0 -226
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Layer.mjs +0 -289
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Property.mjs +0 -15
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Tile.mjs +0 -22
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/TileProperty.mjs +0 -7
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Vector.mjs +0 -20
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/loadingstrategy.mjs +0 -7
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/math.mjs +0 -88
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/obj.mjs +0 -14
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ol.css.mjs +0 -4
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/pointer/EventType.mjs +0 -13
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Projection.mjs +0 -138
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Units.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg3857.mjs +0 -54
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg4326.mjs +0 -34
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/projections.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/transforms.mjs +0 -12
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/utm.mjs +0 -67
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj.mjs +0 -232
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Box.mjs +0 -69
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Event.mjs +0 -17
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/EventType.mjs +0 -41
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Feature.mjs +0 -310
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/VectorContext.mjs +0 -119
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Builder.mjs +0 -408
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/BuilderGroup.mjs +0 -64
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Executor.mjs +0 -700
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ExecutorGroup.mjs +0 -252
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ImageBuilder.mjs +0 -144
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Immediate.mjs +0 -601
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Instruction.mjs +0 -22
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/LineStringBuilder.mjs +0 -122
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/PolygonBuilder.mjs +0 -169
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/TextBuilder.mjs +0 -335
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ZIndexContext.mjs +0 -87
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/hitdetect.mjs +0 -110
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/style.mjs +0 -583
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas.mjs +0 -177
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Composite.mjs +0 -124
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Layer.mjs +0 -130
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Map.mjs +0 -151
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/Layer.mjs +0 -211
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/TileLayer.mjs +0 -490
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/VectorLayer.mjs +0 -372
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/vector.mjs +0 -196
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Tile.mjs +0 -194
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Triangulation.mjs +0 -225
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/common.mjs +0 -4
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj.mjs +0 -178
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/resolutionconstraint.mjs +0 -99
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/rotationconstraint.mjs +0 -44
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/size.mjs +0 -14
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Source.mjs +0 -101
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Tile.mjs +0 -144
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileEventType.mjs +0 -26
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileImage.mjs +0 -208
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileWMS.mjs +0 -254
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/UrlTile.mjs +0 -121
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Vector.mjs +0 -667
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/VectorEventType.mjs +0 -48
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/WMTS.mjs +0 -174
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/common.mjs +0 -4
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/wms.mjs +0 -57
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/sphere.mjs +0 -11
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/string.mjs +0 -14
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/LRUCache.mjs +0 -179
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/PriorityQueue.mjs +0 -150
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/RBush.mjs +0 -156
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Circle.mjs +0 -51
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Fill.mjs +0 -76
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Icon.mjs +0 -316
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImage.mjs +0 -164
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImageCache.mjs +0 -91
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Image.mjs +0 -220
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/RegularShape.mjs +0 -336
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Stroke.mjs +0 -148
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Style.mjs +0 -238
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Text.mjs +0 -400
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilecoord.mjs +0 -31
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/TileGrid.mjs +0 -400
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/WMTS.mjs +0 -37
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/common.mjs +0 -5
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid.mjs +0 -60
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tileurlfunction.mjs +0 -51
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/transform.mjs +0 -50
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/uri.mjs +0 -41
- package/es/node_modules/.pnpm/ol@10.7.0/node_modules/ol/util.mjs +0 -11
- package/es/node_modules/.pnpm/quickselect@3.0.0/node_modules/quickselect/index.mjs +0 -27
- package/es/node_modules/.pnpm/rbush@4.0.1/node_modules/rbush/index.mjs +0 -258
- package/es/packages/components/src/gis-map/utils/edpass-device-controller.mjs +0 -278
- package/es/packages/components/src/gis-map/utils/green-wave-band-controller/index.mjs +0 -362
- package/es/packages/components/src/gis-map/utils/holo-flow/index.mjs +0 -101
- package/es/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +0 -153
- package/es/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.mjs +0 -4
- package/es/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +0 -336
- package/es/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +0 -236
- package/es/packages/components/src/gis-map/utils/holo-flow/trace-holo-flow.mjs +0 -106
- package/es/packages/components/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +0 -576
- package/es/packages/components/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +0 -386
- package/es/packages/components/src/gis-map/utils/police-jurisdiction.mjs +0 -202
- package/es/packages/components/src/gis-map/utils/road-config-tool/cross.mjs +0 -127
- package/es/packages/components/src/gis-map/utils/road-config-tool/entrance.mjs +0 -79
- package/es/packages/components/src/gis-map/utils/road-config-tool/exit.mjs +0 -86
- package/es/packages/components/src/gis-map/utils/road-config-tool/index.mjs +0 -112
- package/es/packages/components/src/gis-map/utils/road-config-tool/indicator-area.mjs +0 -44
- package/es/packages/components/src/gis-map/utils/road-config-tool/lane.mjs +0 -35
- package/es/packages/components/src/gis-map/utils/road-config-tool/search-nearby-lanes.mjs +0 -265
- package/es/packages/components/src/gis-map/utils/signal-control-area/cross-renderer.mjs +0 -593
- package/es/packages/components/src/gis-map/utils/signal-control-area/district-controller.mjs +0 -84
- package/es/packages/components/src/gis-map/utils/signal-control-area/district-renderer.mjs +0 -122
- package/es/packages/components/src/gis-map/utils/signal-control-area/edit-area.mjs +0 -550
- package/es/packages/components/src/gis-map/utils/signal-control-area/layer-symbol.mjs +0 -984
- package/es/packages/components/src/gis-map/utils/signal-control-area/signal-area-controller.mjs +0 -140
- package/es/packages/components/src/gis-map/utils/signal-control-area/signal-cross-controller.mjs +0 -423
- package/es/packages/components/src/gis-map/utils/signal-control-area/signal-renderer.mjs +0 -123
- package/es/packages/components/src/gis-map/utils/signal-control-area/sub-district-renderer.mjs +0 -367
- package/es/packages/components/src/gis-map/utils/signal-system/signal-system-controller.mjs +0 -137
- package/es/packages/components/src/gis-map/utils/sketchViewTool.mjs +0 -503
- package/es/packages/components/src/gis-map-ol/gis-map-ol.vue.mjs +0 -67
- package/es/packages/components/src/gis-map-ol/gis-map-ol.vue2.mjs +0 -4
- package/es/packages/components/src/gis-map-ol/gis-map-ol.vue3.mjs +0 -5
- package/es/packages/components/src/gis-map-ol/index.mjs +0 -8
- package/es/packages/components/src/gis-map-ol/utils/ol-map-initializer.mjs +0 -131
- package/es/packages/components/src/gis-map-ol/utils/signal-control/signal-cross-controller.mjs +0 -263
- package/es/packages/components/src/index.mjs +0 -6
- package/es/packages/components/src/types/index.mjs +0 -5
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +0 -125
- package/es/src/gis-map-ol/gis-map-ol.vue.d.ts +0 -50
- package/es/src/gis-map-ol/utils/ol-map-initializer.d.ts +0 -28
- package/es/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +0 -42
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Collection.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/CollectionEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/DataTile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Disposable.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Feature.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Image.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageState.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ImageTile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Kinetic.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Map.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEvent.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventHandler.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapBrowserEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEvent.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/MapProperty.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Object.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ObjectEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Observable.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/Tile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileQueue.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileRange.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/TileState.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/View.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewHint.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ViewProperty.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/array.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/asserts.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/centerconstraint.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/color.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/colorlike.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/console.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Attribution.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Control.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Rotate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/Zoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/control/defaults.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/coordinate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/css.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/dom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/easing.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Event.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/EventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Key.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/Target.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events/condition.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/events.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/cpu.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/expr/expression.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent/Relationship.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/extent.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/featureloader.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/functions.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Geometry.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/LinearRing.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Point.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/Polygon.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/SimpleGeometry.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/area.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/center.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/closest.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/contains.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/deflate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/inflate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interiorpoint.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/interpolate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/intersectsextent.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/length.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/linechunk.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/orient.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/reverse.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/segments.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/simplify.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/straightchunk.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/textpath.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/geom/flat/transform.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/has.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DoubleClickZoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragBox.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragPan.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragRotate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/DragZoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Interaction.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardPan.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/KeyboardZoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/MouseWheelZoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchRotate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/PinchZoom.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Pointer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/Property.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/interaction/defaults.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Base.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseTile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/BaseVector.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Group.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Layer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Property.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Tile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/TileProperty.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/layer/Vector.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/loadingstrategy.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/math.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/obj.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/ol.css.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/pointer/EventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Projection.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/Units.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg3857.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/epsg4326.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/projections.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/transforms.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj/utm.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/proj.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Box.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Event.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/EventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/Feature.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/VectorContext.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Builder.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/BuilderGroup.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Executor.js +0 -4
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ExecutorGroup.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ImageBuilder.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Immediate.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/Instruction.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/LineStringBuilder.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/PolygonBuilder.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/TextBuilder.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/ZIndexContext.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/hitdetect.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas/style.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/render/canvas.js +0 -3
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Composite.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Layer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/Map.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/Layer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/TileLayer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/canvas/VectorLayer.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/renderer/vector.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Tile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/Triangulation.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj/common.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/reproj.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/resolutionconstraint.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/rotationconstraint.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/size.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Source.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Tile.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileImage.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/TileWMS.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/UrlTile.js +0 -2
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/Vector.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/VectorEventType.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/WMTS.js +0 -2
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/common.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/source/wms.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/sphere.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/string.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/LRUCache.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/PriorityQueue.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/structs/RBush.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Circle.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Fill.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Icon.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImage.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/IconImageCache.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Image.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/RegularShape.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Stroke.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Style.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/style/Text.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilecoord.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/TileGrid.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/WMTS.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid/common.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tilegrid.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/tileurlfunction.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/transform.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/uri.js +0 -1
- package/lib/node_modules/.pnpm/ol@10.7.0/node_modules/ol/util.js +0 -1
- package/lib/node_modules/.pnpm/quickselect@3.0.0/node_modules/quickselect/index.js +0 -1
- package/lib/node_modules/.pnpm/rbush@4.0.1/node_modules/rbush/index.js +0 -1
- package/lib/packages/components/index.js +0 -1
- package/lib/packages/components/src/gis-map/gis-map.vue.js +0 -1
- package/lib/packages/components/src/gis-map/utils/edpass-device-controller.js +0 -1
- package/lib/packages/components/src/gis-map/utils/green-wave-band-controller/index.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/index.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/signal-holo-flow.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/trace-holo-flow.js +0 -2
- package/lib/packages/components/src/gis-map/utils/holo-flow/trace-renderer-external.js +0 -1
- package/lib/packages/components/src/gis-map/utils/holo-flow/trace-renderer-layer.js +0 -1
- package/lib/packages/components/src/gis-map/utils/index.js +0 -1
- package/lib/packages/components/src/gis-map/utils/police-jurisdiction.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/cross.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/entrance.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/exit.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/index.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/indicator-area.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/lane.js +0 -1
- package/lib/packages/components/src/gis-map/utils/road-config-tool/search-nearby-lanes.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/cross-renderer.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/district-controller.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/district-renderer.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/edit-area.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/layer-symbol.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-area-controller.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-cross-controller.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/signal-renderer.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-control-area/sub-district-renderer.js +0 -1
- package/lib/packages/components/src/gis-map/utils/signal-system/signal-system-controller.js +0 -1
- package/lib/packages/components/src/gis-map/utils/sketchViewTool.js +0 -1
- package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue.js +0 -1
- package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue2.js +0 -1
- package/lib/packages/components/src/gis-map-ol/gis-map-ol.vue3.js +0 -1
- package/lib/packages/components/src/gis-map-ol/index.js +0 -1
- package/lib/packages/components/src/gis-map-ol/utils/ol-map-initializer.js +0 -1
- package/lib/packages/components/src/gis-map-ol/utils/signal-control/signal-cross-controller.js +0 -1
- package/lib/packages/components/src/index.js +0 -1
- package/lib/packages/components/src/types/index.js +0 -1
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +0 -125
- package/lib/src/gis-map-ol/gis-map-ol.vue.d.ts +0 -50
- package/lib/src/gis-map-ol/utils/ol-map-initializer.d.ts +0 -28
- package/lib/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +0 -42
- /package/es/{packages/components/src → src}/gis-map/gis-map.vue2.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/gis-map.vue3.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/index.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/FlyToPoints.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/GreenWaveline.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/Layers.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/common-utils.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/custom-layer/custom-wmts-layer.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/dbscan-cluster/index.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/detect-gpu.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/map-initializer.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/open-drive-renderer/index.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/overlay.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/queue-length.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/renderer/greenWaveline.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/sketchView.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/syncMapView.mjs +0 -0
- /package/es/{packages/components/src → src}/gis-map/utils/traffic-flow.mjs +0 -0
- /package/es/{packages/components/src → src}/stores/appData.mjs +0 -0
- /package/es/{packages/components/src → src}/stores/index.mjs +0 -0
- /package/lib/{packages/components/src → src}/gis-map/gis-map.vue2.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/gis-map.vue3.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/index.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/FlyToPoints.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/GreenWaveline.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/Layers.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/common-utils.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/custom-layer/custom-wmts-layer.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/dbscan-cluster/index.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/detect-gpu.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/map-initializer.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/open-drive-renderer/index.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/overlay.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/queue-length.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/renderer/greenWaveline.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/sketchView.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/syncMapView.js +0 -0
- /package/lib/{packages/components/src → src}/gis-map/utils/traffic-flow.js +0 -0
- /package/lib/{packages/components/src → src}/stores/appData.js +0 -0
- /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
|
-
};
|