@antv/l7-map 2.9.32-alpha.1 → 2.9.32-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/package.json +3 -3
  2. package/es/camera.d.ts +0 -84
  3. package/es/camera.js +0 -765
  4. package/es/css/l7.css +0 -98
  5. package/es/earthmap.d.ts +0 -66
  6. package/es/earthmap.js +0 -421
  7. package/es/geo/edge_insets.d.ts +0 -54
  8. package/es/geo/edge_insets.js +0 -118
  9. package/es/geo/lng_lat.d.ts +0 -18
  10. package/es/geo/lng_lat.js +0 -81
  11. package/es/geo/lng_lat_bounds.d.ts +0 -24
  12. package/es/geo/lng_lat_bounds.js +0 -167
  13. package/es/geo/mercator.d.ts +0 -28
  14. package/es/geo/mercator.js +0 -91
  15. package/es/geo/point.d.ts +0 -40
  16. package/es/geo/point.js +0 -231
  17. package/es/geo/simple.d.ts +0 -28
  18. package/es/geo/simple.js +0 -90
  19. package/es/geo/transform.d.ts +0 -198
  20. package/es/geo/transform.js +0 -971
  21. package/es/handler/IHandler.d.ts +0 -34
  22. package/es/handler/IHandler.js +0 -1
  23. package/es/handler/blockable_map_event.d.ts +0 -17
  24. package/es/handler/blockable_map_event.js +0 -83
  25. package/es/handler/box_zoom.d.ts +0 -59
  26. package/es/handler/box_zoom.js +0 -200
  27. package/es/handler/click_zoom.d.ts +0 -16
  28. package/es/handler/click_zoom.js +0 -59
  29. package/es/handler/events/event.d.ts +0 -4
  30. package/es/handler/events/event.js +0 -12
  31. package/es/handler/events/index.d.ts +0 -4
  32. package/es/handler/events/index.js +0 -4
  33. package/es/handler/events/map_mouse_event.d.ts +0 -34
  34. package/es/handler/events/map_mouse_event.js +0 -75
  35. package/es/handler/events/map_touch_event.d.ts +0 -57
  36. package/es/handler/events/map_touch_event.js +0 -105
  37. package/es/handler/events/map_wheel_event.d.ts +0 -33
  38. package/es/handler/events/map_wheel_event.js +0 -61
  39. package/es/handler/events/render_event.d.ts +0 -5
  40. package/es/handler/events/render_event.js +0 -39
  41. package/es/handler/handler_inertia.d.ts +0 -23
  42. package/es/handler/handler_inertia.js +0 -184
  43. package/es/handler/handler_manager.d.ts +0 -61
  44. package/es/handler/handler_manager.js +0 -684
  45. package/es/handler/handler_util.d.ts +0 -4
  46. package/es/handler/handler_util.js +0 -10
  47. package/es/handler/keyboard.d.ts +0 -36
  48. package/es/handler/keyboard.js +0 -162
  49. package/es/handler/map_event.d.ts +0 -29
  50. package/es/handler/map_event.js +0 -131
  51. package/es/handler/mouse/index.d.ts +0 -4
  52. package/es/handler/mouse/index.js +0 -4
  53. package/es/handler/mouse/mouse_handler.d.ts +0 -22
  54. package/es/handler/mouse/mouse_handler.js +0 -129
  55. package/es/handler/mouse/mousepan_handler.d.ts +0 -10
  56. package/es/handler/mouse/mousepan_handler.js +0 -54
  57. package/es/handler/mouse/mousepitch_hander.d.ts +0 -9
  58. package/es/handler/mouse/mousepitch_hander.js +0 -56
  59. package/es/handler/mouse/mouserotate_hander.d.ts +0 -9
  60. package/es/handler/mouse/mouserotate_hander.js +0 -56
  61. package/es/handler/mouse/util.d.ts +0 -6
  62. package/es/handler/mouse/util.js +0 -12
  63. package/es/handler/scroll_zoom.d.ts +0 -93
  64. package/es/handler/scroll_zoom.js +0 -353
  65. package/es/handler/shim/dblclick_zoom.d.ts +0 -40
  66. package/es/handler/shim/dblclick_zoom.js +0 -72
  67. package/es/handler/shim/drag_pan.d.ts +0 -61
  68. package/es/handler/shim/drag_pan.js +0 -96
  69. package/es/handler/shim/drag_rotate.d.ts +0 -46
  70. package/es/handler/shim/drag_rotate.js +0 -80
  71. package/es/handler/shim/touch_zoom_rotate.d.ts +0 -70
  72. package/es/handler/shim/touch_zoom_rotate.js +0 -130
  73. package/es/handler/tap/single_tap_recognizer.d.ts +0 -20
  74. package/es/handler/tap/single_tap_recognizer.js +0 -120
  75. package/es/handler/tap/tap_drag_zoom.d.ts +0 -22
  76. package/es/handler/tap/tap_drag_zoom.js +0 -114
  77. package/es/handler/tap/tap_recognizer.d.ts +0 -17
  78. package/es/handler/tap/tap_recognizer.js +0 -62
  79. package/es/handler/tap/tap_zoom.d.ts +0 -22
  80. package/es/handler/tap/tap_zoom.js +0 -115
  81. package/es/handler/touch/index.d.ts +0 -5
  82. package/es/handler/touch/index.js +0 -5
  83. package/es/handler/touch/touch_pan.d.ts +0 -30
  84. package/es/handler/touch/touch_pan.js +0 -128
  85. package/es/handler/touch/touch_pitch.d.ts +0 -13
  86. package/es/handler/touch/touch_pitch.js +0 -110
  87. package/es/handler/touch/touch_rotate.d.ts +0 -12
  88. package/es/handler/touch/touch_rotate.js +0 -88
  89. package/es/handler/touch/touch_zoom.d.ts +0 -12
  90. package/es/handler/touch/touch_zoom.js +0 -67
  91. package/es/handler/touch/two_touch.d.ts +0 -23
  92. package/es/handler/touch/two_touch.js +0 -134
  93. package/es/hash.d.ts +0 -14
  94. package/es/hash.js +0 -156
  95. package/es/index.d.ts +0 -3
  96. package/es/index.js +0 -3
  97. package/es/interface.d.ts +0 -34
  98. package/es/interface.js +0 -1
  99. package/es/map.d.ts +0 -70
  100. package/es/map.js +0 -463
  101. package/es/util.d.ts +0 -18
  102. package/es/util.js +0 -84
  103. package/es/utils/Aabb.d.ts +0 -12
  104. package/es/utils/Aabb.js +0 -133
  105. package/es/utils/dom.d.ts +0 -4
  106. package/es/utils/dom.js +0 -218
  107. package/es/utils/performance.d.ts +0 -17
  108. package/es/utils/performance.js +0 -62
  109. package/es/utils/primitives.d.ts +0 -6
  110. package/es/utils/primitives.js +0 -45
  111. package/es/utils/task_queue.d.ts +0 -13
  112. package/es/utils/task_queue.js +0 -106
  113. package/lib/camera.js +0 -533
  114. package/lib/css/l7.css +0 -98
  115. package/lib/earthmap.js +0 -278
  116. package/lib/geo/edge_insets.js +0 -76
  117. package/lib/geo/lng_lat.js +0 -73
  118. package/lib/geo/lng_lat_bounds.js +0 -138
  119. package/lib/geo/mercator.js +0 -91
  120. package/lib/geo/point.js +0 -176
  121. package/lib/geo/simple.js +0 -87
  122. package/lib/geo/transform.js +0 -503
  123. package/lib/handler/IHandler.js +0 -17
  124. package/lib/handler/blockable_map_event.js +0 -71
  125. package/lib/handler/box_zoom.js +0 -139
  126. package/lib/handler/click_zoom.js +0 -59
  127. package/lib/handler/events/event.js +0 -38
  128. package/lib/handler/events/index.js +0 -38
  129. package/lib/handler/events/map_mouse_event.js +0 -44
  130. package/lib/handler/events/map_touch_event.js +0 -48
  131. package/lib/handler/events/map_wheel_event.js +0 -36
  132. package/lib/handler/events/render_event.js +0 -33
  133. package/lib/handler/handler_inertia.js +0 -149
  134. package/lib/handler/handler_manager.js +0 -455
  135. package/lib/handler/handler_util.js +0 -35
  136. package/lib/handler/keyboard.js +0 -131
  137. package/lib/handler/map_event.js +0 -91
  138. package/lib/handler/mouse/index.js +0 -38
  139. package/lib/handler/mouse/mouse_handler.js +0 -103
  140. package/lib/handler/mouse/mousepan_handler.js +0 -48
  141. package/lib/handler/mouse/mousepitch_hander.js +0 -47
  142. package/lib/handler/mouse/mouserotate_hander.js +0 -47
  143. package/lib/handler/mouse/util.js +0 -44
  144. package/lib/handler/scroll_zoom.js +0 -225
  145. package/lib/handler/shim/dblclick_zoom.js +0 -46
  146. package/lib/handler/shim/drag_pan.js +0 -55
  147. package/lib/handler/shim/drag_rotate.js +0 -49
  148. package/lib/handler/shim/touch_zoom_rotate.js +0 -71
  149. package/lib/handler/tap/single_tap_recognizer.js +0 -102
  150. package/lib/handler/tap/tap_drag_zoom.js +0 -106
  151. package/lib/handler/tap/tap_recognizer.js +0 -66
  152. package/lib/handler/tap/tap_zoom.js +0 -99
  153. package/lib/handler/touch/index.js +0 -41
  154. package/lib/handler/touch/touch_pan.js +0 -110
  155. package/lib/handler/touch/touch_pitch.js +0 -86
  156. package/lib/handler/touch/touch_rotate.js +0 -65
  157. package/lib/handler/touch/touch_zoom.js +0 -56
  158. package/lib/handler/touch/two_touch.js +0 -105
  159. package/lib/hash.js +0 -120
  160. package/lib/index.js +0 -21
  161. package/lib/interface.js +0 -17
  162. package/lib/map.js +0 -308
  163. package/lib/util.js +0 -97
  164. package/lib/utils/Aabb.js +0 -90
  165. package/lib/utils/dom.js +0 -159
  166. package/lib/utils/performance.js +0 -80
  167. package/lib/utils/primitives.js +0 -63
  168. package/lib/utils/task_queue.js +0 -72
package/lib/geo/point.js DELETED
@@ -1,176 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/geo/point.ts
20
- var point_exports = {};
21
- __export(point_exports, {
22
- default: () => Point
23
- });
24
- module.exports = __toCommonJS(point_exports);
25
- var Point = class {
26
- static convert(a) {
27
- if (a instanceof Point) {
28
- return a;
29
- }
30
- if (Array.isArray(a)) {
31
- return new Point(a[0], a[1]);
32
- }
33
- return a;
34
- }
35
- constructor(x, y) {
36
- this.x = x;
37
- this.y = y;
38
- }
39
- clone() {
40
- return new Point(this.x, this.y);
41
- }
42
- _add(p) {
43
- this.x += p.x;
44
- this.y += p.y;
45
- return this;
46
- }
47
- add(p) {
48
- return this.clone()._add(p);
49
- }
50
- _sub(p) {
51
- this.x -= p.x;
52
- this.y -= p.y;
53
- return this;
54
- }
55
- sub(p) {
56
- return this.clone()._sub(p);
57
- }
58
- _multByPoint(p) {
59
- this.x *= p.x;
60
- this.y *= p.y;
61
- return this;
62
- }
63
- multByPoint(p) {
64
- return this.clone()._multByPoint(p);
65
- }
66
- _divByPoint(p) {
67
- this.x /= p.x;
68
- this.y /= p.y;
69
- return this;
70
- }
71
- divByPoint(p) {
72
- return this.clone()._divByPoint(p);
73
- }
74
- _mult(k) {
75
- this.x *= k;
76
- this.y *= k;
77
- return this;
78
- }
79
- mult(k) {
80
- return this.clone()._mult(k);
81
- }
82
- _div(k) {
83
- this.x /= k;
84
- this.y /= k;
85
- return this;
86
- }
87
- div(k) {
88
- return this.clone()._div(k);
89
- }
90
- _rotate(angle) {
91
- const cos = Math.cos(angle);
92
- const sin = Math.sin(angle);
93
- const x = cos * this.x - sin * this.y;
94
- const y = sin * this.x + cos * this.y;
95
- this.x = x;
96
- this.y = y;
97
- return this;
98
- }
99
- rotate(angle) {
100
- return this.clone()._rotate(angle);
101
- }
102
- _rotateAround(angle, p) {
103
- const cos = Math.cos(angle);
104
- const sin = Math.sin(angle);
105
- const x = p.x + cos * (this.x - p.x) - sin * (this.y - p.y);
106
- const y = p.y + sin * (this.x - p.x) + cos * (this.y - p.y);
107
- this.x = x;
108
- this.y = y;
109
- return this;
110
- }
111
- roateAround(angle, p) {
112
- return this.clone()._rotateAround(angle, p);
113
- }
114
- _matMult(m) {
115
- const x = m[0] * this.x + m[1] * this.y;
116
- const y = m[2] * this.x + m[3] * this.y;
117
- this.x = x;
118
- this.y = y;
119
- return this;
120
- }
121
- matMult(m) {
122
- return this.clone()._matMult(m);
123
- }
124
- _unit() {
125
- this.div(this.mag());
126
- return this;
127
- }
128
- unit() {
129
- return this.clone()._unit();
130
- }
131
- _perp() {
132
- const y = this.y;
133
- this.y = this.x;
134
- this.x = -y;
135
- return this;
136
- }
137
- perp() {
138
- return this.clone()._perp();
139
- }
140
- _round() {
141
- this.x = Math.round(this.x);
142
- this.y = Math.round(this.y);
143
- return this;
144
- }
145
- round() {
146
- return this.clone()._round();
147
- }
148
- mag() {
149
- return Math.sqrt(this.x * this.x + this.y * this.y);
150
- }
151
- equals(other) {
152
- return this.x === other.x && this.y === other.y;
153
- }
154
- dist(p) {
155
- return Math.sqrt(this.distSqr(p));
156
- }
157
- distSqr(p) {
158
- const dx = p.x - this.x;
159
- const dy = p.y - this.y;
160
- return dx * dx + dy * dy;
161
- }
162
- angle() {
163
- return Math.atan2(this.y, this.x);
164
- }
165
- angleTo(b) {
166
- return Math.atan2(this.y - b.y, this.x - b.x);
167
- }
168
- angleWith(b) {
169
- return this.angleWithSep(b.x, b.y);
170
- }
171
- angleWithSep(x, y) {
172
- return Math.atan2(this.x * y - this.y * x, this.x * x + this.y * y);
173
- }
174
- };
175
- // Annotate the CommonJS export names for ESM import in node:
176
- 0 && (module.exports = {});
package/lib/geo/simple.js DELETED
@@ -1,87 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
-
22
- // src/geo/simple.ts
23
- var simple_exports = {};
24
- __export(simple_exports, {
25
- altitudeFromMercatorZ: () => altitudeFromMercatorZ,
26
- default: () => SimpleCoordinate,
27
- latFromMercatorY: () => latFromMercatorY,
28
- lngFromMercatorX: () => lngFromMercatorX,
29
- mercatorScale: () => mercatorScale,
30
- mercatorXfromLng: () => mercatorXfromLng,
31
- mercatorYfromLat: () => mercatorYfromLat,
32
- mercatorZfromAltitude: () => mercatorZfromAltitude
33
- });
34
- module.exports = __toCommonJS(simple_exports);
35
- var import_lng_lat = __toESM(require("../geo/lng_lat"));
36
- var earthCircumfrence = 2 * Math.PI * import_lng_lat.earthRadius;
37
- function mercatorXfromLng(lng) {
38
- return lng;
39
- }
40
- function mercatorYfromLat(lat) {
41
- return lat;
42
- }
43
- function mercatorZfromAltitude(altitude, lat) {
44
- return altitude;
45
- }
46
- function lngFromMercatorX(x) {
47
- return x;
48
- }
49
- function latFromMercatorY(y) {
50
- return y;
51
- }
52
- function altitudeFromMercatorZ(z, y) {
53
- return z;
54
- }
55
- function mercatorScale(lat) {
56
- return 1;
57
- }
58
- var SimpleCoordinate = class {
59
- static fromLngLat(lngLatLike, altitude = 0) {
60
- const lngLat = import_lng_lat.default.convert(lngLatLike);
61
- return new SimpleCoordinate(mercatorXfromLng(lngLat.lng), mercatorYfromLat(lngLat.lat), mercatorZfromAltitude(altitude, lngLat.lat));
62
- }
63
- constructor(x, y, z = 0) {
64
- this.x = +x;
65
- this.y = +y;
66
- this.z = +z;
67
- }
68
- toLngLat() {
69
- return new import_lng_lat.default(this.x, this.y);
70
- }
71
- toAltitude() {
72
- return this.z;
73
- }
74
- meterInMercatorCoordinateUnits() {
75
- return 1;
76
- }
77
- };
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
80
- altitudeFromMercatorZ,
81
- latFromMercatorY,
82
- lngFromMercatorX,
83
- mercatorScale,
84
- mercatorXfromLng,
85
- mercatorYfromLat,
86
- mercatorZfromAltitude
87
- });