@antv/l7-map 2.21.0 → 2.21.2
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/camera.js +595 -674
- package/es/earthmap.js +313 -276
- package/es/geo/edge_insets.js +57 -72
- package/es/geo/lng_lat.js +50 -64
- package/es/geo/lng_lat_bounds.js +101 -137
- package/es/geo/mercator.js +23 -35
- package/es/geo/point.js +150 -221
- package/es/geo/simple.js +22 -34
- package/es/geo/transform.js +839 -905
- package/es/handler/blockable_map_event.js +46 -66
- package/es/handler/box_zoom.js +125 -143
- package/es/handler/click_zoom.js +37 -51
- package/es/handler/events/event.js +11 -9
- package/es/handler/events/map_mouse_event.js +39 -54
- package/es/handler/events/map_touch_event.js +54 -73
- package/es/handler/events/map_wheel_event.js +22 -38
- package/es/handler/events/render_event.js +6 -23
- package/es/handler/handler_inertia.js +98 -113
- package/es/handler/handler_manager.js +349 -437
- package/es/handler/handler_util.js +2 -2
- package/es/handler/keyboard.js +98 -110
- package/es/handler/map_event.js +81 -117
- package/es/handler/mouse/mouse_handler.js +81 -100
- package/es/handler/mouse/mousepan_handler.js +16 -39
- package/es/handler/mouse/mousepitch_hander.js +18 -40
- package/es/handler/mouse/mouserotate_hander.js +18 -40
- package/es/handler/mouse/util.js +7 -6
- package/es/handler/scroll_zoom.js +221 -231
- package/es/handler/shim/dblclick_zoom.js +36 -47
- package/es/handler/shim/drag_pan.js +41 -50
- package/es/handler/shim/drag_rotate.js +38 -48
- package/es/handler/shim/touch_zoom_rotate.js +68 -79
- package/es/handler/tap/single_tap_recognizer.js +60 -80
- package/es/handler/tap/tap_drag_zoom.js +72 -89
- package/es/handler/tap/tap_recognizer.js +37 -45
- package/es/handler/tap/tap_zoom.js +67 -95
- package/es/handler/touch/touch_pan.js +77 -96
- package/es/handler/touch/touch_pitch.js +61 -79
- package/es/handler/touch/touch_rotate.js +47 -67
- package/es/handler/touch/touch_zoom.js +29 -46
- package/es/handler/touch/two_touch.js +79 -104
- package/es/hash.js +75 -88
- package/es/map.js +318 -284
- package/es/util.js +18 -37
- package/es/utils/Aabb.js +60 -100
- package/es/utils/dom.js +32 -55
- package/es/utils/performance.js +25 -29
- package/es/utils/primitives.js +33 -43
- package/es/utils/task_queue.js +47 -76
- package/lib/camera.d.ts +86 -0
- package/lib/camera.js +597 -672
- package/lib/earthmap.d.ts +69 -0
- package/lib/earthmap.js +314 -276
- package/lib/geo/edge_insets.d.ts +54 -0
- package/lib/geo/edge_insets.js +58 -70
- package/lib/geo/lng_lat.d.ts +18 -0
- package/lib/geo/lng_lat.js +50 -62
- package/lib/geo/lng_lat_bounds.d.ts +25 -0
- package/lib/geo/lng_lat_bounds.js +102 -136
- package/lib/geo/mercator.d.ts +30 -0
- package/lib/geo/mercator.js +26 -37
- package/lib/geo/point.d.ts +40 -0
- package/lib/geo/point.js +151 -220
- package/lib/geo/simple.d.ts +30 -0
- package/lib/geo/simple.js +25 -36
- package/lib/geo/transform.d.ts +198 -0
- package/lib/geo/transform.js +844 -907
- package/lib/handler/IHandler.d.ts +34 -0
- package/lib/handler/blockable_map_event.d.ts +17 -0
- package/lib/handler/blockable_map_event.js +48 -65
- package/lib/handler/box_zoom.d.ts +59 -0
- package/lib/handler/box_zoom.js +126 -143
- package/lib/handler/click_zoom.d.ts +16 -0
- package/lib/handler/click_zoom.js +38 -50
- package/lib/handler/events/event.d.ts +4 -0
- package/lib/handler/events/event.js +12 -9
- package/lib/handler/events/index.d.ts +4 -0
- package/lib/handler/events/index.js +3 -3
- package/lib/handler/events/map_mouse_event.d.ts +34 -0
- package/lib/handler/events/map_mouse_event.js +41 -52
- package/lib/handler/events/map_touch_event.d.ts +57 -0
- package/lib/handler/events/map_touch_event.js +56 -71
- package/lib/handler/events/map_wheel_event.d.ts +33 -0
- package/lib/handler/events/map_wheel_event.js +23 -37
- package/lib/handler/events/render_event.d.ts +5 -0
- package/lib/handler/events/render_event.js +7 -22
- package/lib/handler/handler_inertia.d.ts +23 -0
- package/lib/handler/handler_inertia.js +102 -112
- package/lib/handler/handler_manager.d.ts +61 -0
- package/lib/handler/handler_manager.js +351 -437
- package/lib/handler/handler_util.d.ts +4 -0
- package/lib/handler/handler_util.js +2 -2
- package/lib/handler/keyboard.d.ts +36 -0
- package/lib/handler/keyboard.js +98 -110
- package/lib/handler/map_event.d.ts +29 -0
- package/lib/handler/map_event.js +83 -116
- package/lib/handler/mouse/index.d.ts +4 -0
- package/lib/handler/mouse/index.js +3 -3
- package/lib/handler/mouse/mouse_handler.d.ts +22 -0
- package/lib/handler/mouse/mouse_handler.js +83 -99
- package/lib/handler/mouse/mousepan_handler.d.ts +10 -0
- package/lib/handler/mouse/mousepan_handler.js +19 -38
- package/lib/handler/mouse/mousepitch_hander.d.ts +9 -0
- package/lib/handler/mouse/mousepitch_hander.js +21 -39
- package/lib/handler/mouse/mouserotate_hander.d.ts +9 -0
- package/lib/handler/mouse/mouserotate_hander.js +21 -39
- package/lib/handler/mouse/util.d.ts +6 -0
- package/lib/handler/mouse/util.js +7 -7
- package/lib/handler/scroll_zoom.d.ts +93 -0
- package/lib/handler/scroll_zoom.js +221 -231
- package/lib/handler/shim/dblclick_zoom.d.ts +40 -0
- package/lib/handler/shim/dblclick_zoom.js +37 -46
- package/lib/handler/shim/drag_pan.d.ts +61 -0
- package/lib/handler/shim/drag_pan.js +42 -49
- package/lib/handler/shim/drag_rotate.d.ts +46 -0
- package/lib/handler/shim/drag_rotate.js +39 -47
- package/lib/handler/shim/touch_zoom_rotate.d.ts +70 -0
- package/lib/handler/shim/touch_zoom_rotate.js +69 -78
- package/lib/handler/tap/single_tap_recognizer.d.ts +20 -0
- package/lib/handler/tap/single_tap_recognizer.js +63 -79
- package/lib/handler/tap/tap_drag_zoom.d.ts +22 -0
- package/lib/handler/tap/tap_drag_zoom.js +74 -88
- package/lib/handler/tap/tap_recognizer.d.ts +17 -0
- package/lib/handler/tap/tap_recognizer.js +41 -47
- package/lib/handler/tap/tap_zoom.d.ts +22 -0
- package/lib/handler/tap/tap_zoom.js +69 -94
- package/lib/handler/touch/index.d.ts +5 -0
- package/lib/handler/touch/index.js +4 -4
- package/lib/handler/touch/touch_pan.d.ts +30 -0
- package/lib/handler/touch/touch_pan.js +79 -95
- package/lib/handler/touch/touch_pitch.d.ts +13 -0
- package/lib/handler/touch/touch_pitch.js +64 -78
- package/lib/handler/touch/touch_rotate.d.ts +12 -0
- package/lib/handler/touch/touch_rotate.js +50 -66
- package/lib/handler/touch/touch_zoom.d.ts +12 -0
- package/lib/handler/touch/touch_zoom.js +32 -45
- package/lib/handler/touch/two_touch.d.ts +23 -0
- package/lib/handler/touch/two_touch.js +81 -103
- package/lib/hash.d.ts +14 -0
- package/lib/hash.js +75 -88
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -4
- package/lib/interface.d.ts +34 -0
- package/lib/map.d.ts +70 -0
- package/lib/map.js +319 -284
- package/lib/util.d.ts +25 -0
- package/lib/util.js +20 -36
- package/lib/utils/Aabb.d.ts +12 -0
- package/lib/utils/Aabb.js +61 -99
- package/lib/utils/dom.d.ts +4 -0
- package/lib/utils/dom.js +34 -55
- package/lib/utils/performance.d.ts +17 -0
- package/lib/utils/performance.js +25 -29
- package/lib/utils/primitives.d.ts +6 -0
- package/lib/utils/primitives.js +34 -42
- package/lib/utils/task_queue.d.ts +13 -0
- package/lib/utils/task_queue.js +47 -76
- package/package.json +25 -32
package/lib/utils/primitives.js
CHANGED
|
@@ -5,49 +5,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _glMatrix = require("gl-matrix");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
class Frustum {
|
|
11
|
+
static fromInvProjectionMatrix(invProj, worldSize, zoom) {
|
|
12
|
+
const clipSpaceCorners = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]];
|
|
13
|
+
const scale = Math.pow(2, zoom);
|
|
14
|
+
|
|
15
|
+
// Transform frustum corner points from clip space to tile space
|
|
16
|
+
const frustumCoords = clipSpaceCorners.map(v => _glMatrix.vec4.transformMat4(new Float32Array([]), v, invProj)).map(v => _glMatrix.vec4.scale(new Float32Array([]), v, 1.0 / v[3] / worldSize * scale));
|
|
17
|
+
const frustumPlanePointIndices = [[0, 1, 2],
|
|
18
|
+
// near
|
|
19
|
+
[6, 5, 4],
|
|
20
|
+
// far
|
|
21
|
+
[0, 3, 7],
|
|
22
|
+
// left
|
|
23
|
+
[2, 1, 5],
|
|
24
|
+
// right
|
|
25
|
+
[3, 2, 6],
|
|
26
|
+
// bottom
|
|
27
|
+
[0, 4, 5] // top
|
|
28
|
+
];
|
|
29
|
+
const frustumPlanes = frustumPlanePointIndices.map(p => {
|
|
30
|
+
const a = _glMatrix.vec3.sub(new Float32Array(3), new Float32Array(frustumCoords[p[0]]), new Float32Array(frustumCoords[p[1]]));
|
|
31
|
+
const b = _glMatrix.vec3.sub(new Float32Array(3), new Float32Array(frustumCoords[p[2]]), new Float32Array(frustumCoords[p[1]]));
|
|
32
|
+
const n = _glMatrix.vec3.normalize(new Float32Array(3), _glMatrix.vec3.cross(new Float32Array(3), a, b));
|
|
33
|
+
const d = -_glMatrix.vec3.dot(n, new Float32Array(frustumCoords[p[1]]));
|
|
34
|
+
return n.concat(d);
|
|
35
|
+
});
|
|
36
|
+
return new Frustum(frustumCoords, frustumPlanes);
|
|
37
|
+
}
|
|
38
|
+
constructor(points, planes) {
|
|
39
|
+
(0, _defineProperty2.default)(this, "points", void 0);
|
|
40
|
+
(0, _defineProperty2.default)(this, "planes", void 0);
|
|
14
41
|
this.points = points;
|
|
15
42
|
this.planes = planes;
|
|
16
43
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
value: function fromInvProjectionMatrix(invProj, worldSize, zoom) {
|
|
20
|
-
var clipSpaceCorners = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]];
|
|
21
|
-
var scale = Math.pow(2, zoom);
|
|
22
|
-
|
|
23
|
-
// Transform frustum corner points from clip space to tile space
|
|
24
|
-
var frustumCoords = clipSpaceCorners.map(function (v) {
|
|
25
|
-
return _glMatrix.vec4.transformMat4(new Float32Array([]), v, invProj);
|
|
26
|
-
}).map(function (v) {
|
|
27
|
-
return _glMatrix.vec4.scale(new Float32Array([]), v, 1.0 / v[3] / worldSize * scale);
|
|
28
|
-
});
|
|
29
|
-
var frustumPlanePointIndices = [[0, 1, 2],
|
|
30
|
-
// near
|
|
31
|
-
[6, 5, 4],
|
|
32
|
-
// far
|
|
33
|
-
[0, 3, 7],
|
|
34
|
-
// left
|
|
35
|
-
[2, 1, 5],
|
|
36
|
-
// right
|
|
37
|
-
[3, 2, 6],
|
|
38
|
-
// bottom
|
|
39
|
-
[0, 4, 5] // top
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
var frustumPlanes = frustumPlanePointIndices.map(function (p) {
|
|
43
|
-
var a = _glMatrix.vec3.sub(new Float32Array(3), new Float32Array(frustumCoords[p[0]]), new Float32Array(frustumCoords[p[1]]));
|
|
44
|
-
var b = _glMatrix.vec3.sub(new Float32Array(3), new Float32Array(frustumCoords[p[2]]), new Float32Array(frustumCoords[p[1]]));
|
|
45
|
-
var n = _glMatrix.vec3.normalize(new Float32Array(3), _glMatrix.vec3.cross(new Float32Array(3), a, b));
|
|
46
|
-
var d = -_glMatrix.vec3.dot(n, new Float32Array(frustumCoords[p[1]]));
|
|
47
|
-
return n.concat(d);
|
|
48
|
-
});
|
|
49
|
-
return new Frustum(frustumCoords, frustumPlanes);
|
|
50
|
-
}
|
|
51
|
-
}]);
|
|
52
|
-
return Frustum;
|
|
53
|
-
}();
|
|
44
|
+
}
|
|
45
|
+
exports.default = Frustum;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TaskID = number;
|
|
2
|
+
declare class TaskQueue {
|
|
3
|
+
private queue;
|
|
4
|
+
private id;
|
|
5
|
+
private cleared;
|
|
6
|
+
private currentlyRunning;
|
|
7
|
+
constructor();
|
|
8
|
+
add(callback: (timeStamp: number) => void): TaskID;
|
|
9
|
+
remove(id: TaskID): void;
|
|
10
|
+
run(timeStamp?: number): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
}
|
|
13
|
+
export default TaskQueue;
|
package/lib/utils/task_queue.js
CHANGED
|
@@ -5,92 +5,63 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
9
|
// can't mark opaque due to https://github.com/flowtype/flow-remove-types/pull/61
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
|
|
11
|
+
class TaskQueue {
|
|
12
|
+
constructor() {
|
|
13
|
+
(0, _defineProperty2.default)(this, "queue", void 0);
|
|
14
|
+
(0, _defineProperty2.default)(this, "id", void 0);
|
|
15
|
+
(0, _defineProperty2.default)(this, "cleared", void 0);
|
|
16
|
+
(0, _defineProperty2.default)(this, "currentlyRunning", void 0);
|
|
17
17
|
this.queue = [];
|
|
18
18
|
this.id = 0;
|
|
19
19
|
this.cleared = false;
|
|
20
20
|
this.currentlyRunning = false;
|
|
21
21
|
}
|
|
22
|
-
(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _iterator = _createForOfIteratorHelper(queue),
|
|
40
|
-
_step;
|
|
41
|
-
try {
|
|
42
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
43
|
-
var task = _step.value;
|
|
44
|
-
if (task.id === id) {
|
|
45
|
-
task.cancelled = true;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
} catch (err) {
|
|
50
|
-
_iterator.e(err);
|
|
51
|
-
} finally {
|
|
52
|
-
_iterator.f();
|
|
22
|
+
add(callback) {
|
|
23
|
+
const id = ++this.id;
|
|
24
|
+
const queue = this.queue;
|
|
25
|
+
queue.push({
|
|
26
|
+
callback,
|
|
27
|
+
id,
|
|
28
|
+
cancelled: false
|
|
29
|
+
});
|
|
30
|
+
return id;
|
|
31
|
+
}
|
|
32
|
+
remove(id) {
|
|
33
|
+
const running = this.currentlyRunning;
|
|
34
|
+
const queue = running ? this.queue.concat(running) : this.queue;
|
|
35
|
+
for (const task of queue) {
|
|
36
|
+
if (task.id === id) {
|
|
37
|
+
task.cancelled = true;
|
|
38
|
+
return;
|
|
53
39
|
}
|
|
54
40
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var timeStamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
59
|
-
var queue = this.currentlyRunning = this.queue;
|
|
41
|
+
}
|
|
42
|
+
run(timeStamp = 0) {
|
|
43
|
+
const queue = this.currentlyRunning = this.queue;
|
|
60
44
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
68
|
-
var task = _step2.value;
|
|
69
|
-
if (task.cancelled) {
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
task.callback(timeStamp);
|
|
73
|
-
if (this.cleared) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
} catch (err) {
|
|
78
|
-
_iterator2.e(err);
|
|
79
|
-
} finally {
|
|
80
|
-
_iterator2.f();
|
|
45
|
+
// Tasks queued by callbacks in the current queue should be executed
|
|
46
|
+
// on the next run, not the current run.
|
|
47
|
+
this.queue = [];
|
|
48
|
+
for (const task of queue) {
|
|
49
|
+
if (task.cancelled) {
|
|
50
|
+
continue;
|
|
81
51
|
}
|
|
82
|
-
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
}, {
|
|
86
|
-
key: "clear",
|
|
87
|
-
value: function clear() {
|
|
88
|
-
if (this.currentlyRunning) {
|
|
89
|
-
this.cleared = true;
|
|
52
|
+
task.callback(timeStamp);
|
|
53
|
+
if (this.cleared) {
|
|
54
|
+
break;
|
|
90
55
|
}
|
|
91
|
-
this.queue = [];
|
|
92
56
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
57
|
+
this.cleared = false;
|
|
58
|
+
this.currentlyRunning = false;
|
|
59
|
+
}
|
|
60
|
+
clear() {
|
|
61
|
+
if (this.currentlyRunning) {
|
|
62
|
+
this.cleared = true;
|
|
63
|
+
}
|
|
64
|
+
this.queue = [];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
96
67
|
var _default = exports.default = TaskQueue;
|
package/package.json
CHANGED
|
@@ -1,46 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-map",
|
|
3
|
-
"version": "2.21.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.21.2",
|
|
4
|
+
"description": "L7 Map",
|
|
5
5
|
"keywords": [],
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"homepage": "https://github.com/antvis/L7#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/antvis/L7/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/antvis/L7.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "https://github.com/orgs/antvis/people",
|
|
16
|
+
"sideEffects": true,
|
|
8
17
|
"main": "lib/index.js",
|
|
9
18
|
"module": "es/index.js",
|
|
10
|
-
"unpkg": "dist/l7-map.js",
|
|
11
19
|
"types": "es/index.d.ts",
|
|
12
|
-
"sideEffects": true,
|
|
13
20
|
"files": [
|
|
14
|
-
"dist",
|
|
15
21
|
"lib",
|
|
16
|
-
"es"
|
|
17
|
-
"README.md"
|
|
22
|
+
"es"
|
|
18
23
|
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/antvis/L7.git"
|
|
25
|
-
},
|
|
26
24
|
"scripts": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"lint
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"watch": "BABEL_ENV=cjs babel src --watch --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --delete-dir-on-start --no-comments",
|
|
34
|
-
"sync": "tnpm sync",
|
|
35
|
-
"test": "umi-test --passWithNoTests",
|
|
36
|
-
"test-live": "umi-test --watch"
|
|
37
|
-
},
|
|
38
|
-
"bugs": {
|
|
39
|
-
"url": "https://github.com/antvis/L7/issues"
|
|
25
|
+
"dev": "father dev",
|
|
26
|
+
"build": "npm run clean && father build",
|
|
27
|
+
"check-deps": "father doctor",
|
|
28
|
+
"lint": "eslint src __tests__",
|
|
29
|
+
"clean": "rimraf dist es lib",
|
|
30
|
+
"sync": "tnpm sync"
|
|
40
31
|
},
|
|
41
|
-
"homepage": "https://github.com/antvis/L7#readme",
|
|
42
32
|
"dependencies": {
|
|
43
|
-
"@antv/l7-utils": "2.21.
|
|
33
|
+
"@antv/l7-utils": "^2.21.2",
|
|
44
34
|
"@babel/runtime": "^7.7.7",
|
|
45
35
|
"@mapbox/point-geometry": "^0.1.0",
|
|
46
36
|
"@mapbox/unitbezier": "^0.0.0",
|
|
@@ -48,5 +38,8 @@
|
|
|
48
38
|
"gl-matrix": "^3.1.0",
|
|
49
39
|
"lodash-es": "^4.17.21"
|
|
50
40
|
},
|
|
51
|
-
"
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "5c2d29d2ac1d631bdecf741cb1725316c0d6f9b9"
|
|
52
45
|
}
|