mirage2d 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MirageHttp.es.js +5268 -0
- package/dist/MirageHttp.es.js.map +1 -0
- package/dist/MirageHttp.umd.js +2 -0
- package/dist/MirageHttp.umd.js.map +1 -0
- package/dist/assets/js/basedecoder-fa2b8e8d.js +107 -0
- package/dist/assets/js/decoder-f19e05cf.js +6 -0
- package/dist/assets/js/deflate-adb9a67b.js +8 -0
- package/dist/{js/dist/_html2canvas@1.4.1@html2canvas.e8006fee.js → assets/js/html2canvas.esm-3dd231c5.js} +0 -0
- package/dist/assets/js/index-3263db85.js +1 -0
- package/dist/assets/js/index-a9db46a5.js +212968 -0
- package/dist/{js/lib/_canvg@3.0.10@canvg.bd557ac8.js → assets/js/index.es-38f73a27.js} +2179 -351
- package/dist/assets/js/jpeg-3bf23728.js +835 -0
- package/dist/{js/_lerc@3.0.0@lerc/_lerc@3.0.0@lerc.dc2ff398.js → assets/js/lerc-4c39f39b.js} +26 -1
- package/dist/assets/js/lzw-d0cad8af.js +123 -0
- package/dist/assets/js/packbits-d75b4cce.js +25 -0
- package/dist/{js/_pako@2.0.4@pako/_pako@2.0.4@pako.52d6b320.js → assets/js/pako.esm-49deb4d7.js} +0 -0
- package/dist/{js/dist/_dompurify@2.4.0@dompurify.e7ba523e.js → assets/js/purify.es-1915dfae.js} +0 -0
- package/dist/assets/js/raw-9656f9cc.js +7 -0
- package/dist/assets/js/webimage-edb7156c.js +27 -0
- package/package.json +1 -1
- package/dist/js/_@babel_runtime@7.18.9@@babel/_@babel_runtime@7.18.9@@babel.e0126ca2.js +0 -51
- package/dist/js/_@petamoriken_float16@3.6.6@@petamoriken/_@petamoriken_float16@3.6.6@@petamoriken.c5188241.js +0 -217
- package/dist/js/_@turf_along@6.5.0@@turf/_@turf_along@6.5.0@@turf.18dbc1a3.js +0 -31
- package/dist/js/_@turf_angle@6.5.0@@turf/_@turf_angle@6.5.0@@turf.554ac9bf.js +0 -1
- package/dist/js/_@turf_area@6.5.0@@turf/_@turf_area@6.5.0@@turf.6cbf0cc1.js +0 -74
- package/dist/js/_@turf_bbox-clip@6.5.0@@turf/_@turf_bbox-clip@6.5.0@@turf.e491cb90.js +0 -1
- package/dist/js/_@turf_bbox-polygon@6.5.0@@turf/_@turf_bbox-polygon@6.5.0@@turf.523f1c20.js +0 -19
- package/dist/js/_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js +0 -48
- package/dist/js/_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js +0 -25
- package/dist/js/_@turf_bezier-spline@6.5.0@@turf/_@turf_bezier-spline@6.5.0@@turf.fa7991dd.js +0 -137
- package/dist/js/_@turf_boolean-clockwise@6.5.0@@turf/_@turf_boolean-clockwise@6.5.0@@turf.4031f280.js +0 -1
- package/dist/js/_@turf_boolean-contains@6.5.0@@turf/_@turf_boolean-contains@6.5.0@@turf.836d55d8.js +0 -191
- package/dist/js/_@turf_boolean-crosses@6.5.0@@turf/_@turf_boolean-crosses@6.5.0@@turf.c5f65a28.js +0 -125
- package/dist/js/_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js +0 -122
- package/dist/js/_@turf_boolean-equal@6.5.0@@turf/_@turf_boolean-equal@6.5.0@@turf.341ffa01.js +0 -1
- package/dist/js/_@turf_boolean-intersects@6.5.0@@turf/_@turf_boolean-intersects@6.5.0@@turf.05fc28b3.js +0 -15
- package/dist/js/_@turf_boolean-overlap@6.5.0@@turf/_@turf_boolean-overlap@6.5.0@@turf.a519db25.js +0 -53
- package/dist/js/_@turf_boolean-parallel@6.5.0@@turf/_@turf_boolean-parallel@6.5.0@@turf.dbf2bc2d.js +0 -1
- package/dist/js/_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js +0 -65
- package/dist/js/_@turf_boolean-point-on-line@6.5.0@@turf/_@turf_boolean-point-on-line@6.5.0@@turf.3cf3aaa1.js +0 -69
- package/dist/js/_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js +0 -172
- package/dist/js/_@turf_buffer@6.5.0@@turf/_@turf_buffer@6.5.0@@turf.88330dfe.js +0 -99
- package/dist/js/_@turf_center-mean@6.5.0@@turf/_@turf_center-mean@6.5.0@@turf.b3d7c917.js +0 -1
- package/dist/js/_@turf_center-median@6.5.0@@turf/_@turf_center-median@6.5.0@@turf.44c4669e.js +0 -1
- package/dist/js/_@turf_center-of-mass@6.5.0@@turf/_@turf_center-of-mass@6.5.0@@turf.63ce279e.js +0 -1
- package/dist/js/_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js +0 -12
- package/dist/js/_@turf_centroid@6.5.0@@turf/_@turf_centroid@6.5.0@@turf.0a5be869.js +0 -17
- package/dist/js/_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js +0 -16
- package/dist/js/_@turf_clean-coords@6.5.0@@turf/_@turf_clean-coords@6.5.0@@turf.8c76bd63.js +0 -111
- package/dist/js/_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.js +0 -100
- package/dist/js/_@turf_clusters-dbscan@6.5.0@@turf/_@turf_clusters-dbscan@6.5.0@@turf.6bbee7e9.js +0 -1
- package/dist/js/_@turf_clusters-kmeans@6.5.0@@turf/_@turf_clusters-kmeans@6.5.0@@turf.505415df.js +0 -1
- package/dist/js/_@turf_clusters@6.5.0@@turf/_@turf_clusters@6.5.0@@turf.84cb9680.js +0 -1
- package/dist/js/_@turf_collect@6.5.0@@turf/_@turf_collect@6.5.0@@turf.93e41b5f.js +0 -1
- package/dist/js/_@turf_combine@6.5.0@@turf/_@turf_combine@6.5.0@@turf.33ee6336.js +0 -1
- package/dist/js/_@turf_concave@6.5.0@@turf/_@turf_concave@6.5.0@@turf.6fb6a8be.js +0 -179
- package/dist/js/_@turf_convex@6.5.0@@turf/_@turf_convex@6.5.0@@turf.24600ac2.js +0 -1
- package/dist/js/_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js +0 -18
- package/dist/js/_@turf_difference@6.5.0@@turf/_@turf_difference@6.5.0@@turf.70df5e79.js +0 -18
- package/dist/js/_@turf_dissolve@6.5.0@@turf/_@turf_dissolve@6.5.0@@turf.edb28fc1.js +0 -1
- package/dist/js/_@turf_distance-weight@6.5.0@@turf/_@turf_distance-weight@6.5.0@@turf.e168af7f.js +0 -1
- package/dist/js/_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js +0 -22
- package/dist/js/_@turf_ellipse@6.5.0@@turf/_@turf_ellipse@6.5.0@@turf.37986056.js +0 -1
- package/dist/js/_@turf_envelope@6.5.0@@turf/_@turf_envelope@6.5.0@@turf.599c5772.js +0 -1
- package/dist/js/_@turf_explode@6.5.0@@turf/_@turf_explode@6.5.0@@turf.5c768db5.js +0 -24
- package/dist/js/_@turf_flatten@6.5.0@@turf/_@turf_flatten@6.5.0@@turf.57e9114c.js +0 -1
- package/dist/js/_@turf_flip@6.5.0@@turf/_@turf_flip@6.5.0@@turf.1f02101f.js +0 -1
- package/dist/js/_@turf_great-circle@6.5.0@@turf/_@turf_great-circle@6.5.0@@turf.2ca021a8.js +0 -1
- package/dist/js/_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js +0 -364
- package/dist/js/_@turf_hex-grid@6.5.0@@turf/_@turf_hex-grid@6.5.0@@turf.a6a45778.js +0 -99
- package/dist/js/_@turf_interpolate@6.5.0@@turf/_@turf_interpolate@6.5.0@@turf.4d39bd8c.js +0 -1
- package/dist/js/_@turf_intersect@6.5.0@@turf/_@turf_intersect@6.5.0@@turf.34082cdf.js +0 -17
- package/dist/js/_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js +0 -71
- package/dist/js/_@turf_isobands@6.5.0@@turf/_@turf_isobands@6.5.0@@turf.def019df.js +0 -3109
- package/dist/js/_@turf_isolines@6.5.0@@turf/_@turf_isolines@6.5.0@@turf.da623b25.js +0 -1
- package/dist/js/_@turf_kinks@6.5.0@@turf/_@turf_kinks@6.5.0@@turf.ee61685b.js +0 -87
- package/dist/js/_@turf_length@6.5.0@@turf/_@turf_length@6.5.0@@turf.f73f6c98.js +0 -12
- package/dist/js/_@turf_line-arc@6.5.0@@turf/_@turf_line-arc@6.5.0@@turf.3dc57055.js +0 -37
- package/dist/js/_@turf_line-chunk@6.5.0@@turf/_@turf_line-chunk@6.5.0@@turf.1867af48.js +0 -43
- package/dist/js/_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js +0 -73
- package/dist/js/_@turf_line-offset@6.5.0@@turf/_@turf_line-offset@6.5.0@@turf.e6846793.js +0 -116
- package/dist/js/_@turf_line-overlap@6.5.0@@turf/_@turf_line-overlap@6.5.0@@turf.addba9a5.js +0 -76
- package/dist/js/_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js +0 -55
- package/dist/js/_@turf_line-slice-along@6.5.0@@turf/_@turf_line-slice-along@6.5.0@@turf.2b802464.js +0 -57
- package/dist/js/_@turf_line-slice@6.5.0@@turf/_@turf_line-slice@6.5.0@@turf.6423a053.js +0 -23
- package/dist/js/_@turf_line-split@6.5.0@@turf/_@turf_line-split@6.5.0@@turf.2022f104.js +0 -125
- package/dist/js/_@turf_line-to-polygon@6.5.0@@turf/_@turf_line-to-polygon@6.5.0@@turf.83f5e69f.js +0 -1
- package/dist/js/_@turf_mask@6.5.0@@turf/_@turf_mask@6.5.0@@turf.96cd5a94.js +0 -1
- package/dist/js/_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js +0 -611
- package/dist/js/_@turf_midpoint@6.5.0@@turf/_@turf_midpoint@6.5.0@@turf.67c14f94.js +0 -1
- package/dist/js/_@turf_moran-index@6.5.0@@turf/_@turf_moran-index@6.5.0@@turf.2ad5365a.js +0 -1
- package/dist/js/_@turf_nearest-point-on-line@6.5.0@@turf/_@turf_nearest-point-on-line@6.5.0@@turf.095c8c0d.js +0 -57
- package/dist/js/_@turf_nearest-point-to-line@6.5.0@@turf/_@turf_nearest-point-to-line@6.5.0@@turf.68484097.js +0 -1
- package/dist/js/_@turf_nearest-point@6.5.0@@turf/_@turf_nearest-point@6.5.0@@turf.e0d2f509.js +0 -24
- package/dist/js/_@turf_planepoint@6.5.0@@turf/_@turf_planepoint@6.5.0@@turf.56fc70b3.js +0 -1
- package/dist/js/_@turf_point-grid@6.5.0@@turf/_@turf_point-grid@6.5.0@@turf.2d278644.js +0 -42
- package/dist/js/_@turf_point-on-feature@6.5.0@@turf/_@turf_point-on-feature@6.5.0@@turf.0c740874.js +0 -1
- package/dist/js/_@turf_point-to-line-distance@6.5.0@@turf/_@turf_point-to-line-distance@6.5.0@@turf.33105d82.js +0 -1
- package/dist/js/_@turf_points-within-polygon@6.5.0@@turf/_@turf_points-within-polygon@6.5.0@@turf.659cd335.js +0 -35
- package/dist/js/_@turf_polygon-smooth@6.5.0@@turf/_@turf_polygon-smooth@6.5.0@@turf.43a7c33e.js +0 -1
- package/dist/js/_@turf_polygon-tangents@6.5.0@@turf/_@turf_polygon-tangents@6.5.0@@turf.a2c3a7b6.js +0 -1
- package/dist/js/_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js +0 -48
- package/dist/js/_@turf_polygonize@6.5.0@@turf/_@turf_polygonize@6.5.0@@turf.f7cc4910.js +0 -1
- package/dist/js/_@turf_projection@6.5.0@@turf/_@turf_projection@6.5.0@@turf.ffdd3321.js +0 -1
- package/dist/js/_@turf_random@6.5.0@@turf/_@turf_random@6.5.0@@turf.f65251e4.js +0 -130
- package/dist/js/_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js +0 -49
- package/dist/js/_@turf_rewind@6.5.0@@turf/_@turf_rewind@6.5.0@@turf.5d137ee9.js +0 -1
- package/dist/js/_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js +0 -30
- package/dist/js/_@turf_rhumb-destination@6.5.0@@turf/_@turf_rhumb-destination@6.5.0@@turf.dc0e4753.js +0 -36
- package/dist/js/_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js +0 -30
- package/dist/js/_@turf_sample@6.5.0@@turf/_@turf_sample@6.5.0@@turf.7181d7a7.js +0 -1
- package/dist/js/_@turf_sector@6.5.0@@turf/_@turf_sector@6.5.0@@turf.04ffddfe.js +0 -39
- package/dist/js/_@turf_shortest-path@6.5.0@@turf/_@turf_shortest-path@6.5.0@@turf.0c1b62a8.js +0 -367
- package/dist/js/_@turf_simplify@6.5.0@@turf/_@turf_simplify@6.5.0@@turf.46703d2e.js +0 -1
- package/dist/js/_@turf_square-grid@6.5.0@@turf/_@turf_square-grid@6.5.0@@turf.38bd2eaa.js +0 -8
- package/dist/js/_@turf_square@6.5.0@@turf/_@turf_square@6.5.0@@turf.2705289a.js +0 -27
- package/dist/js/_@turf_standard-deviational-ellipse@6.5.0@@turf/_@turf_standard-deviational-ellipse@6.5.0@@turf.7094e432.js +0 -1
- package/dist/js/_@turf_tag@6.5.0@@turf/_@turf_tag@6.5.0@@turf.cb60b0c1.js +0 -1
- package/dist/js/_@turf_tesselate@6.5.0@@turf/_@turf_tesselate@6.5.0@@turf.330e4aae.js +0 -1
- package/dist/js/_@turf_tin@6.5.0@@turf/_@turf_tin@6.5.0@@turf.077204c4.js +0 -173
- package/dist/js/_@turf_transform-rotate@6.5.0@@turf/_@turf_transform-rotate@6.5.0@@turf.6d350d36.js +0 -1
- package/dist/js/_@turf_transform-scale@6.5.0@@turf/_@turf_transform-scale@6.5.0@@turf.d6f65671.js +0 -90
- package/dist/js/_@turf_transform-translate@6.5.0@@turf/_@turf_transform-translate@6.5.0@@turf.9296b81a.js +0 -1
- package/dist/js/_@turf_triangle-grid@6.5.0@@turf/_@turf_triangle-grid@6.5.0@@turf.939f94ab.js +0 -107
- package/dist/js/_@turf_truncate@6.5.0@@turf/_@turf_truncate@6.5.0@@turf.ed70ebcb.js +0 -33
- package/dist/js/_@turf_turf@6.4.0@@turf/_@turf_turf@6.4.0@@turf.34fde8ec.js +0 -1
- package/dist/js/_@turf_union@6.5.0@@turf/_@turf_union@6.5.0@@turf.386ee2eb.js +0 -1
- package/dist/js/_@turf_unkink-polygon@6.5.0@@turf/_@turf_unkink-polygon@6.5.0@@turf.cb446e47.js +0 -1
- package/dist/js/_@turf_voronoi@6.5.0@@turf/_@turf_voronoi@6.5.0@@turf.c30d929e.js +0 -30
- package/dist/js/_call-bind@1.0.2@call-bind/_call-bind@1.0.2@call-bind.3811d387.js +0 -53
- package/dist/js/_concaveman@1.2.1@concaveman/_concaveman@1.2.1@concaveman.e747f731.js +0 -1
- package/dist/js/_core-js@3.25.0@core-js/_core-js@3.25.0@core-js.003355ed.js +0 -5029
- package/dist/js/_crypto-js@4.1.1@crypto-js/_crypto-js@4.1.1@crypto-js.e2f7f158.js +0 -1823
- package/dist/js/_d3-array@1.2.4@d3-array/_d3-array@1.2.4@d3-array.d606df6b.js +0 -58
- package/dist/js/_d3-geo@1.7.1@d3-geo/_d3-geo@1.7.1@d3-geo.7d357be1.js +0 -1094
- package/dist/js/_d3-voronoi@1.1.2@d3-voronoi/_d3-voronoi@1.1.2@d3-voronoi.072f12a6.js +0 -816
- package/dist/js/_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js +0 -108
- package/dist/js/_define-properties@1.1.4@define-properties/_define-properties@1.1.4@define-properties.647c3367.js +0 -40
- package/dist/js/_density-clustering@1.3.0@density-clustering/_density-clustering@1.3.0@density-clustering.a07fc6ae.js +0 -1
- package/dist/js/_earcut@2.2.4@earcut/_earcut@2.2.4@earcut.972ebfd3.js +0 -1
- package/dist/js/_echarts-gl@1.1.2@echarts-gl/_echarts-gl@1.1.2@echarts-gl.1e3964b9.js +0 -36533
- package/dist/js/_echarts@4.9.0@echarts/_echarts@4.9.0@echarts.7d74ba77.js +0 -44219
- package/dist/js/_fflate@0.4.8@fflate/_fflate@0.4.8@fflate.d8111196.js +0 -571
- package/dist/js/_function-bind@1.1.1@function-bind/_function-bind@1.1.1@function-bind.de3cf11d.js +0 -46
- package/dist/js/_functions-have-names@1.2.3@functions-have-names/_functions-have-names@1.2.3@functions-have-names.7def2408.js +0 -27
- package/dist/js/_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js +0 -133
- package/dist/js/_geojson-path-finder@1.5.3@geojson-path-finder/_geojson-path-finder@1.5.3@geojson-path-finder.7a10eb99.js +0 -348
- package/dist/js/_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js +0 -93
- package/dist/js/_geotiff@2.0.4@geotiff/_geotiff@2.0.4@geotiff.5b08f79e.js +0 -3663
- package/dist/js/_get-intrinsic@1.1.2@get-intrinsic/_get-intrinsic@1.1.2@get-intrinsic.a633bd68.js +0 -291
- package/dist/js/_has-property-descriptors@1.0.0@has-property-descriptors/_has-property-descriptors@1.0.0@has-property-descriptors.6bd2d302.js +0 -26
- package/dist/js/_has-symbols@1.0.3@has-symbols/_has-symbols@1.0.3@has-symbols.70406077.js +0 -63
- package/dist/js/_has-tostringtag@1.0.0@has-tostringtag/_has-tostringtag@1.0.0@has-tostringtag.2d502422.js +0 -6
- package/dist/js/_has@1.0.3@has/_has@1.0.3@has.ddd2eb68.js +0 -4
- package/dist/js/_ieee754@1.2.1@ieee754/_ieee754@1.2.1@ieee754.56426503.js +0 -80
- package/dist/js/_is-arguments@1.1.1@is-arguments/_is-arguments@1.1.1@is-arguments.7d77e24a.js +0 -23
- package/dist/js/_is-date-object@1.0.5@is-date-object/_is-date-object@1.0.5@is-date-object.08cc2543.js +0 -20
- package/dist/js/_is-regex@1.1.4@is-regex/_is-regex@1.1.4@is-regex.6417e007.js +0 -47
- package/dist/js/_jspdf@2.5.1@jspdf/_jspdf@2.5.1@jspdf.e927dbd8.js +0 -8494
- package/dist/js/_kml-geojson@1.2.0@kml-geojson/_kml-geojson@1.2.0@kml-geojson.f1ae86e4.js +0 -7858
- package/dist/js/_lru-cache@6.0.0@lru-cache/_lru-cache@6.0.0@lru-cache.dd72cc1b.js +0 -263
- package/dist/js/_mgrs@1.0.0@mgrs/_mgrs@1.0.0@mgrs.12d1da3e.js +0 -432
- package/dist/js/_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js +0 -69
- package/dist/js/_object-is@1.1.5@object-is/_object-is@1.1.5@object-is.e47f5d65.js +0 -45
- package/dist/js/_object-keys@1.1.1@object-keys/_object-keys@1.1.1@object-keys.4b1d0a99.js +0 -151
- package/dist/js/_ol-echarts@2.0.6@ol-echarts/_ol-echarts@2.0.6@ol-echarts.658aaf82.js +0 -841
- package/dist/js/_ol-ext@3.2.30@ol-ext/_ol-ext@3.2.30@ol-ext.b94220dd.js +0 -4614
- package/dist/js/_ol-mapbox-style@8.2.1@ol-mapbox-style/_ol-mapbox-style@8.2.1@ol-mapbox-style.795310f3.js +0 -1
- package/dist/js/_ol@6.15.1@ol/_ol@6.15.1@ol.8fd0cbb5.js +0 -31823
- package/dist/js/_pbf@3.2.1@pbf/_pbf@3.2.1@pbf.330acf55.js +0 -647
- package/dist/js/_performance-now@2.1.0@performance-now/_performance-now@2.1.0@performance-now.a51379c2.js +0 -34
- package/dist/js/_point-in-polygon@1.1.0@point-in-polygon/_point-in-polygon@1.1.0@point-in-polygon.2cc4306e.js +0 -1
- package/dist/js/_polygon-clipping@0.15.3@polygon-clipping/_polygon-clipping@0.15.3@polygon-clipping.c0e9ec57.js +0 -1363
- package/dist/js/_proj4@2.8.0@proj4/_proj4@2.8.0@proj4.1600352c.js +0 -4885
- package/dist/js/_quickselect@1.1.1@quickselect/_quickselect@1.1.1@quickselect.8afce154.js +0 -1
- package/dist/js/_quickselect@2.0.0@quickselect/_quickselect@2.0.0@quickselect.9f5c1e48.js +0 -51
- package/dist/js/_raf@3.4.1@raf/_raf@3.4.1@raf.ac0d6c66.js +0 -60
- package/dist/js/_rbush@2.0.2@rbush/_rbush@2.0.2@rbush.7149e620.js +0 -1
- package/dist/js/_rbush@3.0.1@rbush/_rbush@3.0.1@rbush.57d33d95.js +0 -402
- package/dist/js/_regexp.prototype.flags@1.4.3@regexp.prototype.flags/_regexp.prototype.flags@1.4.3@regexp.prototype.flags.8b6921c6.js +0 -102
- package/dist/js/_rgbcolor@1.0.1@rgbcolor/_rgbcolor@1.0.1@rgbcolor.dd87e013.js +0 -272
- package/dist/js/_robust-predicates@2.0.4@robust-predicates/_robust-predicates@2.0.4@robust-predicates.564bf2f8.js +0 -1
- package/dist/js/_skmeans@0.9.7@skmeans/_skmeans@0.9.7@skmeans.933c6a76.js +0 -1
- package/dist/js/_splaytree@3.1.1@splaytree/_splaytree@3.1.1@splaytree.6cb55ed3.js +0 -671
- package/dist/js/_stackblur-canvas@2.5.0@stackblur-canvas/_stackblur-canvas@2.5.0@stackblur-canvas.dd883d14.js +0 -214
- package/dist/js/_svg-pathdata@6.0.3@svg-pathdata/_svg-pathdata@6.0.3@svg-pathdata.7e858a5f.js +0 -441
- package/dist/js/_tinyqueue@2.0.3@tinyqueue/_tinyqueue@2.0.3@tinyqueue.78918532.js +0 -73
- package/dist/js/_topojson-client@3.1.0@topojson-client/_topojson-client@3.1.0@topojson-client.aef4e2d5.js +0 -238
- package/dist/js/_topojson-server@3.0.1@topojson-server/_topojson-server@3.0.1@topojson-server.b521a412.js +0 -662
- package/dist/js/_turf-jsts@1.2.3@turf-jsts/_turf-jsts@1.2.3@turf-jsts.6ef42696.js +0 -18934
- package/dist/js/_web-worker@1.2.0@web-worker/_web-worker@1.2.0@web-worker.43288df7.js +0 -2
- package/dist/js/_wkt-parser@1.3.2@wkt-parser/_wkt-parser@1.3.2@wkt-parser.0e1cf374.js +0 -461
- package/dist/js/_xml-utils@1.2.0@xml-utils/_xml-utils@1.2.0@xml-utils.2a8ae655.js +0 -126
- package/dist/js/_yallist@4.0.0@yallist/_yallist@4.0.0@yallist.8350aafe.js +0 -363
- package/dist/js/_zrender@4.3.2@zrender/_zrender@4.3.2@zrender.1feea14d.js +0 -12455
- package/dist/mirage2d.es.js +0 -15894
|
@@ -1,841 +0,0 @@
|
|
|
1
|
-
import { o as ol_Map, t as transform, a as ol_Object, V as VERSION } from "../_ol@6.15.1@ol/_ol@6.15.1@ol.8fd0cbb5.js";
|
|
2
|
-
import { e as echarts } from "../_echarts@4.9.0@echarts/_echarts@4.9.0@echarts.7d74ba77.js";
|
|
3
|
-
/*!
|
|
4
|
-
* author: sakitam-fdd <smilefdd@gmail.com>
|
|
5
|
-
* ol-echarts v2.0.5
|
|
6
|
-
* build-time: 2022-1-6 15:31
|
|
7
|
-
* LICENSE: MIT
|
|
8
|
-
* (c) 2017-2022 https://sakitam-fdd.github.io/ol3Echarts
|
|
9
|
-
*/
|
|
10
|
-
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
13
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
14
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
18
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
19
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
20
|
-
|
|
21
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
22
|
-
and limitations under the License.
|
|
23
|
-
***************************************************************************** */
|
|
24
|
-
var extendStatics = function(d, b) {
|
|
25
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
26
|
-
d2.__proto__ = b2;
|
|
27
|
-
} || function(d2, b2) {
|
|
28
|
-
for (var p in b2)
|
|
29
|
-
if (b2.hasOwnProperty(p))
|
|
30
|
-
d2[p] = b2[p];
|
|
31
|
-
};
|
|
32
|
-
return extendStatics(d, b);
|
|
33
|
-
};
|
|
34
|
-
function __extends(d, b) {
|
|
35
|
-
extendStatics(d, b);
|
|
36
|
-
function __() {
|
|
37
|
-
this.constructor = d;
|
|
38
|
-
}
|
|
39
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
40
|
-
}
|
|
41
|
-
var isObject = function(value) {
|
|
42
|
-
var type = typeof value;
|
|
43
|
-
return value !== null && (type === "object" || type === "function");
|
|
44
|
-
};
|
|
45
|
-
var merge = function(a, b) {
|
|
46
|
-
Object.keys(b).forEach(function(key) {
|
|
47
|
-
if (isObject(b[key]) && isObject(a[key])) {
|
|
48
|
-
merge(a[key], b[key]);
|
|
49
|
-
} else {
|
|
50
|
-
a[key] = b[key];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return a;
|
|
54
|
-
};
|
|
55
|
-
var bind = function(func, context) {
|
|
56
|
-
var arguments$1 = arguments;
|
|
57
|
-
var args = [];
|
|
58
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
59
|
-
args[_i - 2] = arguments$1[_i];
|
|
60
|
-
}
|
|
61
|
-
return function() {
|
|
62
|
-
var arguments$12 = arguments;
|
|
63
|
-
var innerArgs = [];
|
|
64
|
-
for (var _i2 = 0; _i2 < arguments.length; _i2++) {
|
|
65
|
-
innerArgs[_i2] = arguments$12[_i2];
|
|
66
|
-
}
|
|
67
|
-
return func.apply(context, args.concat(Array.prototype.slice.call(innerArgs)));
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
var arrayAdd = function(array, item) {
|
|
71
|
-
var i = 0;
|
|
72
|
-
var index;
|
|
73
|
-
var length = array.length;
|
|
74
|
-
for (; i < length; i++) {
|
|
75
|
-
if (array[i].index === item.index) {
|
|
76
|
-
index = i;
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (index === void 0) {
|
|
81
|
-
array.push(item);
|
|
82
|
-
} else {
|
|
83
|
-
array[index] = item;
|
|
84
|
-
}
|
|
85
|
-
return array;
|
|
86
|
-
};
|
|
87
|
-
var uuid = function() {
|
|
88
|
-
function rd(a) {
|
|
89
|
-
return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e7] + -[1e3] + -4e3 + -8e3 + -1e11).replace(/[018]/g, rd);
|
|
90
|
-
}
|
|
91
|
-
return rd();
|
|
92
|
-
};
|
|
93
|
-
function bindAll(fns, context) {
|
|
94
|
-
fns.forEach(function(fn) {
|
|
95
|
-
if (!context[fn]) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
context[fn] = context[fn].bind(context);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function removeNode(node) {
|
|
102
|
-
return node && node.parentNode ? node.parentNode.removeChild(node) : null;
|
|
103
|
-
}
|
|
104
|
-
function mockEvent(type, event) {
|
|
105
|
-
var e = new MouseEvent(type, {
|
|
106
|
-
bubbles: true,
|
|
107
|
-
cancelable: true,
|
|
108
|
-
button: event.pointerEvent.button,
|
|
109
|
-
buttons: event.pointerEvent.buttons,
|
|
110
|
-
clientX: event.pointerEvent.clientX,
|
|
111
|
-
clientY: event.pointerEvent.clientY,
|
|
112
|
-
zrX: event.pointerEvent.offsetX,
|
|
113
|
-
zrY: event.pointerEvent.offsetY,
|
|
114
|
-
movementX: event.pointerEvent.movementX,
|
|
115
|
-
movementY: event.pointerEvent.movementY,
|
|
116
|
-
relatedTarget: event.pointerEvent.relatedTarget,
|
|
117
|
-
screenX: event.pointerEvent.screenX,
|
|
118
|
-
screenY: event.pointerEvent.screenY,
|
|
119
|
-
view: window
|
|
120
|
-
});
|
|
121
|
-
e.zrX = event.pointerEvent.offsetX;
|
|
122
|
-
e.zrY = event.pointerEvent.offsetY;
|
|
123
|
-
e.event = e;
|
|
124
|
-
return e;
|
|
125
|
-
}
|
|
126
|
-
function semver(a, b) {
|
|
127
|
-
var pa = a.split(".");
|
|
128
|
-
var pb = b.split(".");
|
|
129
|
-
for (var i = 0; i < 3; i++) {
|
|
130
|
-
var na = Number(pa[i]);
|
|
131
|
-
var nb = Number(pb[i]);
|
|
132
|
-
if (na > nb) {
|
|
133
|
-
return 1;
|
|
134
|
-
}
|
|
135
|
-
if (nb > na) {
|
|
136
|
-
return -1;
|
|
137
|
-
}
|
|
138
|
-
if (!isNaN(na) && isNaN(nb)) {
|
|
139
|
-
return 1;
|
|
140
|
-
}
|
|
141
|
-
if (isNaN(na) && !isNaN(nb)) {
|
|
142
|
-
return -1;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return 0;
|
|
146
|
-
}
|
|
147
|
-
var checkDecoded = function(json) {
|
|
148
|
-
return !json.UTF8Encoding;
|
|
149
|
-
};
|
|
150
|
-
var decodePolygon = function(coordinate, encodeOffsets, encodeScale) {
|
|
151
|
-
var result = [];
|
|
152
|
-
var _a = [encodeOffsets[0], encodeOffsets[1]], prevX = _a[0], prevY = _a[1];
|
|
153
|
-
for (var i = 0; i < coordinate.length; i += 2) {
|
|
154
|
-
var x = coordinate.charCodeAt(i) - 64;
|
|
155
|
-
var y = coordinate.charCodeAt(i + 1) - 64;
|
|
156
|
-
x = x >> 1 ^ -(x & 1);
|
|
157
|
-
y = y >> 1 ^ -(y & 1);
|
|
158
|
-
x += prevX;
|
|
159
|
-
y += prevY;
|
|
160
|
-
prevX = x;
|
|
161
|
-
prevY = y;
|
|
162
|
-
result.push([x / encodeScale, y / encodeScale]);
|
|
163
|
-
}
|
|
164
|
-
return result;
|
|
165
|
-
};
|
|
166
|
-
var decode = function(json) {
|
|
167
|
-
if (checkDecoded(json)) {
|
|
168
|
-
return json;
|
|
169
|
-
}
|
|
170
|
-
var encodeScale = json.UTF8Scale;
|
|
171
|
-
if (encodeScale == null) {
|
|
172
|
-
encodeScale = 1024;
|
|
173
|
-
}
|
|
174
|
-
var features = json.features;
|
|
175
|
-
for (var f = 0; f < features.length; f++) {
|
|
176
|
-
var feature = features[f];
|
|
177
|
-
var geometry = feature.geometry;
|
|
178
|
-
var _a = [geometry.coordinates, geometry.encodeOffsets], coordinates = _a[0], encodeOffsets = _a[1];
|
|
179
|
-
for (var c = 0; c < coordinates.length; c++) {
|
|
180
|
-
var coordinate = coordinates[c];
|
|
181
|
-
if (geometry.type === "Polygon") {
|
|
182
|
-
coordinates[c] = decodePolygon(coordinate, encodeOffsets[c], encodeScale);
|
|
183
|
-
} else if (geometry.type === "MultiPolygon") {
|
|
184
|
-
for (var c2 = 0; c2 < coordinate.length; c2++) {
|
|
185
|
-
var polygon = coordinate[c2];
|
|
186
|
-
coordinate[c2] = decodePolygon(polygon, encodeOffsets[c][c2], encodeScale);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
json.UTF8Encoding = false;
|
|
192
|
-
return json;
|
|
193
|
-
};
|
|
194
|
-
function formatGeoJSON(json) {
|
|
195
|
-
var geoJson = decode(json);
|
|
196
|
-
var _features = echarts.util.map(echarts.util.filter(geoJson.features, function(featureObj) {
|
|
197
|
-
return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;
|
|
198
|
-
}), function(featureObj) {
|
|
199
|
-
var properties = featureObj.properties;
|
|
200
|
-
var geo = featureObj.geometry;
|
|
201
|
-
var coordinates = geo.coordinates;
|
|
202
|
-
var geometries = [];
|
|
203
|
-
if (geo.type === "Polygon") {
|
|
204
|
-
geometries.push(coordinates[0]);
|
|
205
|
-
}
|
|
206
|
-
if (geo.type === "MultiPolygon") {
|
|
207
|
-
echarts.util.each(coordinates, function(item) {
|
|
208
|
-
if (item[0]) {
|
|
209
|
-
geometries.push(item[0]);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
return {
|
|
214
|
-
properties,
|
|
215
|
-
type: "Feature",
|
|
216
|
-
geometry: {
|
|
217
|
-
type: "Polygon",
|
|
218
|
-
coordinates: geometries
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
});
|
|
222
|
-
return {
|
|
223
|
-
type: "FeatureCollection",
|
|
224
|
-
crs: {},
|
|
225
|
-
features: _features
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
var pie = function(_options2, serie, coordinateSystem) {
|
|
229
|
-
serie.center = coordinateSystem.dataToPoint(serie.coordinates);
|
|
230
|
-
return serie;
|
|
231
|
-
};
|
|
232
|
-
var bar = function(options, serie, coordinateSystem) {
|
|
233
|
-
if (isObject(options.grid) && !Array.isArray(options.grid)) {
|
|
234
|
-
console.log(options);
|
|
235
|
-
} else if (Array.isArray(options.grid)) {
|
|
236
|
-
options.grid = options.grid.map(function(gri, index) {
|
|
237
|
-
var coorPixel = coordinateSystem.dataToPoint(options.series[index].coordinates);
|
|
238
|
-
gri.left = coorPixel[0] - parseFloat(gri.width) / 2;
|
|
239
|
-
gri.top = coorPixel[1] - parseFloat(gri.height) / 2;
|
|
240
|
-
return gri;
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
return serie;
|
|
244
|
-
};
|
|
245
|
-
var line = function(options, serie, coordinateSystem) {
|
|
246
|
-
if (isObject(options.grid) && !Array.isArray(options.grid)) {
|
|
247
|
-
console.log(options);
|
|
248
|
-
} else if (Array.isArray(options.grid)) {
|
|
249
|
-
options.grid = options.grid.map(function(gri, index) {
|
|
250
|
-
var coorPixel = coordinateSystem.dataToPoint(options.series[index].coordinates);
|
|
251
|
-
gri.left = coorPixel[0] - parseFloat(gri.width) / 2;
|
|
252
|
-
gri.top = coorPixel[1] - parseFloat(gri.height) / 2;
|
|
253
|
-
return gri;
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
return serie;
|
|
257
|
-
};
|
|
258
|
-
var charts = /* @__PURE__ */ Object.freeze({
|
|
259
|
-
pie,
|
|
260
|
-
bar,
|
|
261
|
-
line
|
|
262
|
-
});
|
|
263
|
-
var _options = {
|
|
264
|
-
forcedRerender: false,
|
|
265
|
-
forcedPrecomposeRerender: false,
|
|
266
|
-
hideOnZooming: false,
|
|
267
|
-
hideOnMoving: false,
|
|
268
|
-
hideOnRotating: false,
|
|
269
|
-
convertTypes: ["pie", "line", "bar"],
|
|
270
|
-
insertFirst: false,
|
|
271
|
-
stopEvent: false,
|
|
272
|
-
polyfillEvents: semver(VERSION, "6.1.1") <= 0
|
|
273
|
-
};
|
|
274
|
-
var EChartsLayer = function(_super) {
|
|
275
|
-
__extends(EChartsLayer2, _super);
|
|
276
|
-
function EChartsLayer2(chartOptions, options, map) {
|
|
277
|
-
var _this = this;
|
|
278
|
-
var opts = Object.assign(_options, options);
|
|
279
|
-
_this = _super.call(this, opts) || this;
|
|
280
|
-
_this._options = opts;
|
|
281
|
-
_this._chartOptions = chartOptions;
|
|
282
|
-
_this.set("chartOptions", chartOptions);
|
|
283
|
-
_this.$chart = null;
|
|
284
|
-
_this.$container = void 0;
|
|
285
|
-
_this._isRegistered = false;
|
|
286
|
-
_this._initEvent = false;
|
|
287
|
-
_this._incremental = [];
|
|
288
|
-
_this._coordinateSystem = null;
|
|
289
|
-
_this.coordinateSystemId = "";
|
|
290
|
-
_this.prevVisibleState = "";
|
|
291
|
-
bindAll([
|
|
292
|
-
"redraw",
|
|
293
|
-
"onResize",
|
|
294
|
-
"onZoomEnd",
|
|
295
|
-
"onCenterChange",
|
|
296
|
-
"onDragRotateEnd",
|
|
297
|
-
"onMoveStart",
|
|
298
|
-
"onMoveEnd",
|
|
299
|
-
"mouseDown",
|
|
300
|
-
"mouseUp",
|
|
301
|
-
"onClick",
|
|
302
|
-
"mouseMove"
|
|
303
|
-
], _this);
|
|
304
|
-
if (map) {
|
|
305
|
-
_this.setMap(map);
|
|
306
|
-
}
|
|
307
|
-
return _this;
|
|
308
|
-
}
|
|
309
|
-
EChartsLayer2.prototype.appendTo = function(map, forceIgnore) {
|
|
310
|
-
if (forceIgnore === void 0) {
|
|
311
|
-
forceIgnore = false;
|
|
312
|
-
}
|
|
313
|
-
this.setMap(map, forceIgnore);
|
|
314
|
-
};
|
|
315
|
-
EChartsLayer2.prototype.getMap = function() {
|
|
316
|
-
return this._map;
|
|
317
|
-
};
|
|
318
|
-
EChartsLayer2.prototype.setMap = function(map, forceIgnore) {
|
|
319
|
-
var _this = this;
|
|
320
|
-
if (forceIgnore === void 0) {
|
|
321
|
-
forceIgnore = false;
|
|
322
|
-
}
|
|
323
|
-
if (map && (forceIgnore || map instanceof ol_Map)) {
|
|
324
|
-
this._map = map;
|
|
325
|
-
this._map.once("postrender", function() {
|
|
326
|
-
_this.handleMapChanged();
|
|
327
|
-
});
|
|
328
|
-
this._map.renderSync();
|
|
329
|
-
} else {
|
|
330
|
-
throw new Error("not ol map object");
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
EChartsLayer2.prototype.getChartOptions = function() {
|
|
334
|
-
return this.get("chartOptions");
|
|
335
|
-
};
|
|
336
|
-
EChartsLayer2.prototype.setChartOptions = function(options) {
|
|
337
|
-
if (options === void 0) {
|
|
338
|
-
options = {};
|
|
339
|
-
}
|
|
340
|
-
this._chartOptions = options;
|
|
341
|
-
this.set("chartOptions", options);
|
|
342
|
-
this.clearAndRedraw();
|
|
343
|
-
return this;
|
|
344
|
-
};
|
|
345
|
-
EChartsLayer2.prototype.appendData = function(data, save) {
|
|
346
|
-
if (save === void 0) {
|
|
347
|
-
save = true;
|
|
348
|
-
}
|
|
349
|
-
if (data) {
|
|
350
|
-
if (save) {
|
|
351
|
-
this._incremental = arrayAdd(this._incremental, {
|
|
352
|
-
index: this._incremental.length,
|
|
353
|
-
data: data.data,
|
|
354
|
-
seriesIndex: data.seriesIndex
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
this.$chart.appendData({
|
|
358
|
-
data: data.data.copyWithin(),
|
|
359
|
-
seriesIndex: data.seriesIndex
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
return this;
|
|
363
|
-
};
|
|
364
|
-
EChartsLayer2.prototype.clear = function(keep) {
|
|
365
|
-
if (!keep) {
|
|
366
|
-
this._incremental = [];
|
|
367
|
-
}
|
|
368
|
-
if (this.$chart) {
|
|
369
|
-
this.$chart.clear();
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
EChartsLayer2.prototype.remove = function() {
|
|
373
|
-
this.clear();
|
|
374
|
-
if (this.$chart) {
|
|
375
|
-
this.$chart.dispose();
|
|
376
|
-
}
|
|
377
|
-
if (this._initEvent && this.$container) {
|
|
378
|
-
this.$container && removeNode(this.$container);
|
|
379
|
-
this.unBindEvent();
|
|
380
|
-
}
|
|
381
|
-
delete this.$chart;
|
|
382
|
-
delete this._map;
|
|
383
|
-
};
|
|
384
|
-
EChartsLayer2.prototype.show = function() {
|
|
385
|
-
this.setVisible(true);
|
|
386
|
-
};
|
|
387
|
-
EChartsLayer2.prototype.innerShow = function() {
|
|
388
|
-
if (this.$container) {
|
|
389
|
-
this.$container.style.display = this.prevVisibleState;
|
|
390
|
-
this.prevVisibleState = "";
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
EChartsLayer2.prototype.hide = function() {
|
|
394
|
-
this.setVisible(false);
|
|
395
|
-
};
|
|
396
|
-
EChartsLayer2.prototype.innerHide = function() {
|
|
397
|
-
if (this.$container) {
|
|
398
|
-
this.prevVisibleState = this.$container.style.display;
|
|
399
|
-
this.$container.style.display = "none";
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
EChartsLayer2.prototype.isVisible = function() {
|
|
403
|
-
return this.$container && this.$container.style.display !== "none";
|
|
404
|
-
};
|
|
405
|
-
EChartsLayer2.prototype.showLoading = function() {
|
|
406
|
-
if (this.$chart) {
|
|
407
|
-
this.$chart.showLoading();
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
EChartsLayer2.prototype.hideLoading = function() {
|
|
411
|
-
if (this.$chart) {
|
|
412
|
-
this.$chart.hideLoading();
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
EChartsLayer2.prototype.setZIndex = function(zIndex) {
|
|
416
|
-
if (this.$container) {
|
|
417
|
-
if (typeof zIndex === "number") {
|
|
418
|
-
zIndex = String(zIndex);
|
|
419
|
-
}
|
|
420
|
-
this.$container.style.zIndex = zIndex;
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
EChartsLayer2.prototype.getZIndex = function() {
|
|
424
|
-
return this.$container && this.$container.style.zIndex;
|
|
425
|
-
};
|
|
426
|
-
EChartsLayer2.prototype.setVisible = function(visible) {
|
|
427
|
-
if (visible) {
|
|
428
|
-
if (this.$container) {
|
|
429
|
-
this.$container.style.display = "";
|
|
430
|
-
}
|
|
431
|
-
this._chartOptions = this.getChartOptions();
|
|
432
|
-
this.clearAndRedraw();
|
|
433
|
-
} else {
|
|
434
|
-
if (this.$container) {
|
|
435
|
-
this.$container.style.display = "none";
|
|
436
|
-
}
|
|
437
|
-
this.clear(true);
|
|
438
|
-
this._chartOptions = {};
|
|
439
|
-
this.clearAndRedraw();
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
EChartsLayer2.prototype.render = function() {
|
|
443
|
-
if (!this.$chart && this.$container) {
|
|
444
|
-
this.$chart = echarts.init(this.$container);
|
|
445
|
-
if (this._chartOptions) {
|
|
446
|
-
this.registerMap();
|
|
447
|
-
this.$chart.setOption(this.convertData(this._chartOptions), false);
|
|
448
|
-
}
|
|
449
|
-
this.dispatchEvent({
|
|
450
|
-
type: "load",
|
|
451
|
-
source: this,
|
|
452
|
-
value: this.$chart
|
|
453
|
-
});
|
|
454
|
-
} else if (this.isVisible()) {
|
|
455
|
-
this.redraw();
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
EChartsLayer2.prototype.redraw = function() {
|
|
459
|
-
this.clearAndRedraw();
|
|
460
|
-
};
|
|
461
|
-
EChartsLayer2.prototype.updateViewSize = function(size) {
|
|
462
|
-
if (!this.$container) {
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
this.$container.style.width = size[0] + "px";
|
|
466
|
-
this.$container.style.height = size[1] + "px";
|
|
467
|
-
this.$container.setAttribute("width", String(size[0]));
|
|
468
|
-
this.$container.setAttribute("height", String(size[1]));
|
|
469
|
-
};
|
|
470
|
-
EChartsLayer2.prototype.onResize = function(event) {
|
|
471
|
-
var map = this.getMap();
|
|
472
|
-
if (map) {
|
|
473
|
-
var size = map.getSize();
|
|
474
|
-
this.updateViewSize(size);
|
|
475
|
-
this.clearAndRedraw();
|
|
476
|
-
if (event) {
|
|
477
|
-
this.dispatchEvent({
|
|
478
|
-
type: "change:size",
|
|
479
|
-
source: this,
|
|
480
|
-
value: size
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
EChartsLayer2.prototype.onZoomEnd = function() {
|
|
486
|
-
this._options.hideOnZooming && this.innerShow();
|
|
487
|
-
var map = this.getMap();
|
|
488
|
-
if (map && map.getView()) {
|
|
489
|
-
this.clearAndRedraw();
|
|
490
|
-
this.dispatchEvent({
|
|
491
|
-
type: "zoomend",
|
|
492
|
-
source: this,
|
|
493
|
-
value: map.getView().getZoom()
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
EChartsLayer2.prototype.onDragRotateEnd = function() {
|
|
498
|
-
this._options.hideOnRotating && this.innerShow();
|
|
499
|
-
var map = this.getMap();
|
|
500
|
-
if (map && map.getView()) {
|
|
501
|
-
this.clearAndRedraw();
|
|
502
|
-
this.dispatchEvent({
|
|
503
|
-
type: "change:rotation",
|
|
504
|
-
source: this,
|
|
505
|
-
value: map.getView().getRotation()
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
EChartsLayer2.prototype.onMoveStart = function() {
|
|
510
|
-
this._options.hideOnMoving && this.innerHide();
|
|
511
|
-
var map = this.getMap();
|
|
512
|
-
if (map && map.getView()) {
|
|
513
|
-
this.dispatchEvent({
|
|
514
|
-
type: "movestart",
|
|
515
|
-
source: this,
|
|
516
|
-
value: map.getView().getCenter()
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
EChartsLayer2.prototype.onMoveEnd = function() {
|
|
521
|
-
this._options.hideOnMoving && this.innerShow();
|
|
522
|
-
var map = this.getMap();
|
|
523
|
-
if (map && map.getView()) {
|
|
524
|
-
this.clearAndRedraw();
|
|
525
|
-
this.dispatchEvent({
|
|
526
|
-
type: "moveend",
|
|
527
|
-
source: this,
|
|
528
|
-
value: map.getView().getCenter()
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
EChartsLayer2.prototype.onClick = function(event) {
|
|
533
|
-
if (this.$chart) {
|
|
534
|
-
this.$chart.getZr().painter.getViewportRoot().dispatchEvent(mockEvent("click", event));
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
EChartsLayer2.prototype.mouseDown = function(event) {
|
|
538
|
-
if (this.$chart) {
|
|
539
|
-
this.$chart.getZr().painter.getViewportRoot().dispatchEvent(mockEvent("mousedown", event));
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
EChartsLayer2.prototype.mouseUp = function(event) {
|
|
543
|
-
if (this.$chart) {
|
|
544
|
-
this.$chart.getZr().painter.getViewportRoot().dispatchEvent(mockEvent("mouseup", event));
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
EChartsLayer2.prototype.mouseMove = function(event) {
|
|
548
|
-
if (this.$chart) {
|
|
549
|
-
var target = event.originalEvent.target;
|
|
550
|
-
while (target) {
|
|
551
|
-
if (target.className === "ol-overlaycontainer-stopevent") {
|
|
552
|
-
this.$chart.getZr().painter.getViewportRoot().dispatchEvent(mockEvent("mousemove", event));
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
target = target.parentElement;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
EChartsLayer2.prototype.onCenterChange = function() {
|
|
560
|
-
var map = this.getMap();
|
|
561
|
-
if (map && map.getView()) {
|
|
562
|
-
this.clearAndRedraw();
|
|
563
|
-
this.dispatchEvent({
|
|
564
|
-
type: "change:center",
|
|
565
|
-
source: this,
|
|
566
|
-
value: map.getView().getCenter()
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
EChartsLayer2.prototype.handleMapChanged = function() {
|
|
571
|
-
var map = this.getMap();
|
|
572
|
-
if (this._initEvent && this.$container) {
|
|
573
|
-
this.$container && removeNode(this.$container);
|
|
574
|
-
this.unBindEvent();
|
|
575
|
-
}
|
|
576
|
-
if (!this.$container) {
|
|
577
|
-
this.createLayerContainer();
|
|
578
|
-
this.onResize(false);
|
|
579
|
-
}
|
|
580
|
-
if (map) {
|
|
581
|
-
var container = this._options.stopEvent ? map.getOverlayContainerStopEvent() : map.getOverlayContainer();
|
|
582
|
-
if (this._options.insertFirst) {
|
|
583
|
-
container.insertBefore(this.$container, container.childNodes[0] || null);
|
|
584
|
-
} else {
|
|
585
|
-
container.appendChild(this.$container);
|
|
586
|
-
}
|
|
587
|
-
this.render();
|
|
588
|
-
this.bindEvent(map);
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
EChartsLayer2.prototype.createLayerContainer = function() {
|
|
592
|
-
this.$container = document.createElement("div");
|
|
593
|
-
this.$container.style.position = "absolute";
|
|
594
|
-
this.$container.style.top = "0px";
|
|
595
|
-
this.$container.style.left = "0px";
|
|
596
|
-
this.$container.style.right = "0px";
|
|
597
|
-
this.$container.style.bottom = "0px";
|
|
598
|
-
this.$container.style.pointerEvents = "auto";
|
|
599
|
-
};
|
|
600
|
-
EChartsLayer2.prototype.bindEvent = function(map) {
|
|
601
|
-
var view = map.getView();
|
|
602
|
-
if (this._options.forcedPrecomposeRerender) {
|
|
603
|
-
map.on("precompose", this.redraw);
|
|
604
|
-
}
|
|
605
|
-
map.on("change:size", this.onResize);
|
|
606
|
-
view.on("change:resolution", this.onZoomEnd);
|
|
607
|
-
view.on("change:center", this.onCenterChange);
|
|
608
|
-
view.on("change:rotation", this.onDragRotateEnd);
|
|
609
|
-
map.on("movestart", this.onMoveStart);
|
|
610
|
-
map.on("moveend", this.onMoveEnd);
|
|
611
|
-
if (this._options.polyfillEvents) {
|
|
612
|
-
map.on("pointerdown", this.mouseDown);
|
|
613
|
-
map.on("pointerup", this.mouseUp);
|
|
614
|
-
map.on("pointermove", this.mouseMove);
|
|
615
|
-
map.on("click", this.onClick);
|
|
616
|
-
}
|
|
617
|
-
this._initEvent = true;
|
|
618
|
-
};
|
|
619
|
-
EChartsLayer2.prototype.unBindEvent = function() {
|
|
620
|
-
var map = this.getMap();
|
|
621
|
-
if (!map) {
|
|
622
|
-
return;
|
|
623
|
-
}
|
|
624
|
-
var view = map.getView();
|
|
625
|
-
if (!view) {
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
map.un("precompose", this.redraw);
|
|
629
|
-
map.un("change:size", this.onResize);
|
|
630
|
-
view.un("change:resolution", this.onZoomEnd);
|
|
631
|
-
view.un("change:center", this.onCenterChange);
|
|
632
|
-
view.un("change:rotation", this.onDragRotateEnd);
|
|
633
|
-
map.un("movestart", this.onMoveStart);
|
|
634
|
-
map.un("moveend", this.onMoveEnd);
|
|
635
|
-
if (this._options.polyfillEvents) {
|
|
636
|
-
map.un("pointerdown", this.mouseDown);
|
|
637
|
-
map.un("pointerup", this.mouseUp);
|
|
638
|
-
map.un("pointermove", this.mouseMove);
|
|
639
|
-
map.un("click", this.onClick);
|
|
640
|
-
}
|
|
641
|
-
this._initEvent = false;
|
|
642
|
-
};
|
|
643
|
-
EChartsLayer2.prototype.clearAndRedraw = function() {
|
|
644
|
-
if (!this.$chart || !this.isVisible()) {
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
if (this._options.forcedRerender) {
|
|
648
|
-
this.$chart.clear();
|
|
649
|
-
}
|
|
650
|
-
this.$chart.resize();
|
|
651
|
-
if (this._chartOptions) {
|
|
652
|
-
this.registerMap();
|
|
653
|
-
this.$chart.setOption(this.convertData(this._chartOptions), false);
|
|
654
|
-
if (this._incremental && this._incremental.length > 0) {
|
|
655
|
-
for (var i = 0; i < this._incremental.length; i++) {
|
|
656
|
-
this.appendData(this._incremental[i], false);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
this.dispatchEvent({
|
|
661
|
-
type: "redraw",
|
|
662
|
-
source: this
|
|
663
|
-
});
|
|
664
|
-
};
|
|
665
|
-
EChartsLayer2.prototype.registerMap = function() {
|
|
666
|
-
if (!this._isRegistered) {
|
|
667
|
-
this.coordinateSystemId = "openlayers_" + uuid();
|
|
668
|
-
echarts.registerCoordinateSystem(this.coordinateSystemId, this.getCoordinateSystem(this._options));
|
|
669
|
-
this._isRegistered = true;
|
|
670
|
-
}
|
|
671
|
-
if (this._chartOptions) {
|
|
672
|
-
var series = this._chartOptions.series;
|
|
673
|
-
if (series && isObject(series)) {
|
|
674
|
-
var convertTypes = this._options.convertTypes;
|
|
675
|
-
if (convertTypes) {
|
|
676
|
-
for (var i = series.length - 1; i >= 0; i--) {
|
|
677
|
-
if (!(convertTypes.indexOf(series[i].type) > -1)) {
|
|
678
|
-
series[i].coordinateSystem = this.coordinateSystemId;
|
|
679
|
-
}
|
|
680
|
-
series[i].animation = false;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
EChartsLayer2.prototype.convertData = function(options) {
|
|
687
|
-
var series = options.series;
|
|
688
|
-
if (series && series.length > 0) {
|
|
689
|
-
if (!this._coordinateSystem) {
|
|
690
|
-
var Rc = this.getCoordinateSystem(this._options);
|
|
691
|
-
this._coordinateSystem = new Rc(this.getMap());
|
|
692
|
-
}
|
|
693
|
-
if (series && isObject(series)) {
|
|
694
|
-
var convertTypes = this._options.convertTypes;
|
|
695
|
-
if (convertTypes) {
|
|
696
|
-
for (var i = series.length - 1; i >= 0; i--) {
|
|
697
|
-
if (convertTypes.indexOf(series[i].type) > -1) {
|
|
698
|
-
if (series[i] && series[i].hasOwnProperty("coordinates")) {
|
|
699
|
-
series[i] = charts[series[i].type](options, series[i], this._coordinateSystem);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
return options;
|
|
707
|
-
};
|
|
708
|
-
EChartsLayer2.prototype.getCoordinateSystem = function(options) {
|
|
709
|
-
var map = this.getMap();
|
|
710
|
-
var coordinateSystemId = this.coordinateSystemId;
|
|
711
|
-
var RegisterCoordinateSystem = function(map2) {
|
|
712
|
-
this.map = map2;
|
|
713
|
-
this._mapOffset = [0, 0];
|
|
714
|
-
this.dimensions = ["lng", "lat"];
|
|
715
|
-
this.projCode = RegisterCoordinateSystem.getProjectionCode(this.map);
|
|
716
|
-
};
|
|
717
|
-
RegisterCoordinateSystem.dimensions = RegisterCoordinateSystem.prototype.dimensions || ["lng", "lat"];
|
|
718
|
-
RegisterCoordinateSystem.prototype.getZoom = function() {
|
|
719
|
-
return this.map.getView().getZoom();
|
|
720
|
-
};
|
|
721
|
-
RegisterCoordinateSystem.prototype.setZoom = function(zoom) {
|
|
722
|
-
return this.map.getView().setZoom(zoom);
|
|
723
|
-
};
|
|
724
|
-
RegisterCoordinateSystem.prototype.getViewRectAfterRoam = function() {
|
|
725
|
-
return this.getViewRect().clone();
|
|
726
|
-
};
|
|
727
|
-
RegisterCoordinateSystem.prototype.setMapOffset = function(mapOffset) {
|
|
728
|
-
this._mapOffset = mapOffset;
|
|
729
|
-
};
|
|
730
|
-
RegisterCoordinateSystem.prototype.dataToPoint = function(data) {
|
|
731
|
-
var coords;
|
|
732
|
-
if (data && Array.isArray(data) && data.length > 0) {
|
|
733
|
-
coords = data.map(function(item) {
|
|
734
|
-
var res = 0;
|
|
735
|
-
if (typeof item === "string") {
|
|
736
|
-
res = Number(item);
|
|
737
|
-
} else {
|
|
738
|
-
res = item;
|
|
739
|
-
}
|
|
740
|
-
return res;
|
|
741
|
-
});
|
|
742
|
-
var source = options && options.source || "EPSG:4326";
|
|
743
|
-
var destination = options && options.destination || this.projCode;
|
|
744
|
-
var pixel = this.map.getPixelFromCoordinate(transform(coords, source, destination));
|
|
745
|
-
var mapOffset = this._mapOffset;
|
|
746
|
-
return [pixel[0] - mapOffset[0], pixel[1] - mapOffset[1]];
|
|
747
|
-
}
|
|
748
|
-
return [0, 0];
|
|
749
|
-
};
|
|
750
|
-
RegisterCoordinateSystem.prototype.pointToData = function(pixel) {
|
|
751
|
-
var mapOffset = this._mapOffset;
|
|
752
|
-
return this.map.getCoordinateFromPixel([pixel[0] + mapOffset[0], pixel[1] + mapOffset[1]]);
|
|
753
|
-
};
|
|
754
|
-
RegisterCoordinateSystem.prototype.getViewRect = function() {
|
|
755
|
-
var size = this.map.getSize();
|
|
756
|
-
return new echarts.graphic.BoundingRect(0, 0, size[0], size[1]);
|
|
757
|
-
};
|
|
758
|
-
RegisterCoordinateSystem.prototype.getRoamTransform = function() {
|
|
759
|
-
return echarts.matrix.create();
|
|
760
|
-
};
|
|
761
|
-
RegisterCoordinateSystem.prototype.prepareCustoms = function() {
|
|
762
|
-
var rect = this.getViewRect();
|
|
763
|
-
return {
|
|
764
|
-
coordSys: {
|
|
765
|
-
type: coordinateSystemId,
|
|
766
|
-
x: rect.x,
|
|
767
|
-
y: rect.y,
|
|
768
|
-
width: rect.width,
|
|
769
|
-
height: rect.height
|
|
770
|
-
},
|
|
771
|
-
api: {
|
|
772
|
-
coord: bind(this.dataToPoint, this),
|
|
773
|
-
size: bind(RegisterCoordinateSystem.dataToCoordsSize, this)
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
RegisterCoordinateSystem.create = function(echartsModel) {
|
|
778
|
-
echartsModel.eachSeries(function(seriesModel) {
|
|
779
|
-
if (seriesModel.get("coordinateSystem") === coordinateSystemId) {
|
|
780
|
-
seriesModel.coordinateSystem = new RegisterCoordinateSystem(map);
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
};
|
|
784
|
-
RegisterCoordinateSystem.getProjectionCode = function(map2) {
|
|
785
|
-
var code = "";
|
|
786
|
-
if (map2) {
|
|
787
|
-
code = map2.getView() && map2.getView().getProjection().getCode();
|
|
788
|
-
} else {
|
|
789
|
-
code = "EPSG:3857";
|
|
790
|
-
}
|
|
791
|
-
return code;
|
|
792
|
-
};
|
|
793
|
-
RegisterCoordinateSystem.dataToCoordsSize = function(dataSize, dataItem) {
|
|
794
|
-
var _this = this;
|
|
795
|
-
if (dataItem === void 0) {
|
|
796
|
-
dataItem = [0, 0];
|
|
797
|
-
}
|
|
798
|
-
return [0, 1].map(function(dimIdx) {
|
|
799
|
-
var val = dataItem[dimIdx];
|
|
800
|
-
var p1 = [];
|
|
801
|
-
var p2 = [];
|
|
802
|
-
var halfSize = dataSize[dimIdx] / 2;
|
|
803
|
-
p1[dimIdx] = val - halfSize;
|
|
804
|
-
p2[dimIdx] = val + halfSize;
|
|
805
|
-
p1[1 - dimIdx] = dataItem[1 - dimIdx];
|
|
806
|
-
p2[1 - dimIdx] = dataItem[1 - dimIdx];
|
|
807
|
-
var offset = _this.dataToPoint(p1)[dimIdx] - _this.dataToPoint(p2)[dimIdx];
|
|
808
|
-
return Math.abs(offset);
|
|
809
|
-
}, this);
|
|
810
|
-
};
|
|
811
|
-
return RegisterCoordinateSystem;
|
|
812
|
-
};
|
|
813
|
-
EChartsLayer2.prototype.dispatchEvent = function(event) {
|
|
814
|
-
return _super.prototype.dispatchEvent.call(this, event);
|
|
815
|
-
};
|
|
816
|
-
EChartsLayer2.prototype.set = function(key, value, optSilent) {
|
|
817
|
-
return _super.prototype.set.call(this, key, value, optSilent);
|
|
818
|
-
};
|
|
819
|
-
EChartsLayer2.prototype.get = function(key) {
|
|
820
|
-
return _super.prototype.get.call(this, key);
|
|
821
|
-
};
|
|
822
|
-
EChartsLayer2.prototype.unset = function(key, optSilent) {
|
|
823
|
-
return _super.prototype.unset.call(this, key, optSilent);
|
|
824
|
-
};
|
|
825
|
-
EChartsLayer2.prototype.on = function(type, listener) {
|
|
826
|
-
return _super.prototype.on.call(this, type, listener);
|
|
827
|
-
};
|
|
828
|
-
EChartsLayer2.prototype.un = function(type, listener) {
|
|
829
|
-
return _super.prototype.un.call(this, type, listener);
|
|
830
|
-
};
|
|
831
|
-
EChartsLayer2.formatGeoJSON = formatGeoJSON;
|
|
832
|
-
EChartsLayer2.bind = bind;
|
|
833
|
-
EChartsLayer2.merge = merge;
|
|
834
|
-
EChartsLayer2.uuid = uuid;
|
|
835
|
-
EChartsLayer2.bindAll = bindAll;
|
|
836
|
-
EChartsLayer2.arrayAdd = arrayAdd;
|
|
837
|
-
EChartsLayer2.removeNode = removeNode;
|
|
838
|
-
EChartsLayer2.isObject = isObject;
|
|
839
|
-
return EChartsLayer2;
|
|
840
|
-
}(ol_Object);
|
|
841
|
-
export { EChartsLayer as E };
|