@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.
Files changed (158) hide show
  1. package/es/camera.js +595 -674
  2. package/es/earthmap.js +313 -276
  3. package/es/geo/edge_insets.js +57 -72
  4. package/es/geo/lng_lat.js +50 -64
  5. package/es/geo/lng_lat_bounds.js +101 -137
  6. package/es/geo/mercator.js +23 -35
  7. package/es/geo/point.js +150 -221
  8. package/es/geo/simple.js +22 -34
  9. package/es/geo/transform.js +839 -905
  10. package/es/handler/blockable_map_event.js +46 -66
  11. package/es/handler/box_zoom.js +125 -143
  12. package/es/handler/click_zoom.js +37 -51
  13. package/es/handler/events/event.js +11 -9
  14. package/es/handler/events/map_mouse_event.js +39 -54
  15. package/es/handler/events/map_touch_event.js +54 -73
  16. package/es/handler/events/map_wheel_event.js +22 -38
  17. package/es/handler/events/render_event.js +6 -23
  18. package/es/handler/handler_inertia.js +98 -113
  19. package/es/handler/handler_manager.js +349 -437
  20. package/es/handler/handler_util.js +2 -2
  21. package/es/handler/keyboard.js +98 -110
  22. package/es/handler/map_event.js +81 -117
  23. package/es/handler/mouse/mouse_handler.js +81 -100
  24. package/es/handler/mouse/mousepan_handler.js +16 -39
  25. package/es/handler/mouse/mousepitch_hander.js +18 -40
  26. package/es/handler/mouse/mouserotate_hander.js +18 -40
  27. package/es/handler/mouse/util.js +7 -6
  28. package/es/handler/scroll_zoom.js +221 -231
  29. package/es/handler/shim/dblclick_zoom.js +36 -47
  30. package/es/handler/shim/drag_pan.js +41 -50
  31. package/es/handler/shim/drag_rotate.js +38 -48
  32. package/es/handler/shim/touch_zoom_rotate.js +68 -79
  33. package/es/handler/tap/single_tap_recognizer.js +60 -80
  34. package/es/handler/tap/tap_drag_zoom.js +72 -89
  35. package/es/handler/tap/tap_recognizer.js +37 -45
  36. package/es/handler/tap/tap_zoom.js +67 -95
  37. package/es/handler/touch/touch_pan.js +77 -96
  38. package/es/handler/touch/touch_pitch.js +61 -79
  39. package/es/handler/touch/touch_rotate.js +47 -67
  40. package/es/handler/touch/touch_zoom.js +29 -46
  41. package/es/handler/touch/two_touch.js +79 -104
  42. package/es/hash.js +75 -88
  43. package/es/map.js +318 -284
  44. package/es/util.js +18 -37
  45. package/es/utils/Aabb.js +60 -100
  46. package/es/utils/dom.js +32 -55
  47. package/es/utils/performance.js +25 -29
  48. package/es/utils/primitives.js +33 -43
  49. package/es/utils/task_queue.js +47 -76
  50. package/lib/camera.d.ts +86 -0
  51. package/lib/camera.js +597 -672
  52. package/lib/earthmap.d.ts +69 -0
  53. package/lib/earthmap.js +314 -276
  54. package/lib/geo/edge_insets.d.ts +54 -0
  55. package/lib/geo/edge_insets.js +58 -70
  56. package/lib/geo/lng_lat.d.ts +18 -0
  57. package/lib/geo/lng_lat.js +50 -62
  58. package/lib/geo/lng_lat_bounds.d.ts +25 -0
  59. package/lib/geo/lng_lat_bounds.js +102 -136
  60. package/lib/geo/mercator.d.ts +30 -0
  61. package/lib/geo/mercator.js +26 -37
  62. package/lib/geo/point.d.ts +40 -0
  63. package/lib/geo/point.js +151 -220
  64. package/lib/geo/simple.d.ts +30 -0
  65. package/lib/geo/simple.js +25 -36
  66. package/lib/geo/transform.d.ts +198 -0
  67. package/lib/geo/transform.js +844 -907
  68. package/lib/handler/IHandler.d.ts +34 -0
  69. package/lib/handler/blockable_map_event.d.ts +17 -0
  70. package/lib/handler/blockable_map_event.js +48 -65
  71. package/lib/handler/box_zoom.d.ts +59 -0
  72. package/lib/handler/box_zoom.js +126 -143
  73. package/lib/handler/click_zoom.d.ts +16 -0
  74. package/lib/handler/click_zoom.js +38 -50
  75. package/lib/handler/events/event.d.ts +4 -0
  76. package/lib/handler/events/event.js +12 -9
  77. package/lib/handler/events/index.d.ts +4 -0
  78. package/lib/handler/events/index.js +3 -3
  79. package/lib/handler/events/map_mouse_event.d.ts +34 -0
  80. package/lib/handler/events/map_mouse_event.js +41 -52
  81. package/lib/handler/events/map_touch_event.d.ts +57 -0
  82. package/lib/handler/events/map_touch_event.js +56 -71
  83. package/lib/handler/events/map_wheel_event.d.ts +33 -0
  84. package/lib/handler/events/map_wheel_event.js +23 -37
  85. package/lib/handler/events/render_event.d.ts +5 -0
  86. package/lib/handler/events/render_event.js +7 -22
  87. package/lib/handler/handler_inertia.d.ts +23 -0
  88. package/lib/handler/handler_inertia.js +102 -112
  89. package/lib/handler/handler_manager.d.ts +61 -0
  90. package/lib/handler/handler_manager.js +351 -437
  91. package/lib/handler/handler_util.d.ts +4 -0
  92. package/lib/handler/handler_util.js +2 -2
  93. package/lib/handler/keyboard.d.ts +36 -0
  94. package/lib/handler/keyboard.js +98 -110
  95. package/lib/handler/map_event.d.ts +29 -0
  96. package/lib/handler/map_event.js +83 -116
  97. package/lib/handler/mouse/index.d.ts +4 -0
  98. package/lib/handler/mouse/index.js +3 -3
  99. package/lib/handler/mouse/mouse_handler.d.ts +22 -0
  100. package/lib/handler/mouse/mouse_handler.js +83 -99
  101. package/lib/handler/mouse/mousepan_handler.d.ts +10 -0
  102. package/lib/handler/mouse/mousepan_handler.js +19 -38
  103. package/lib/handler/mouse/mousepitch_hander.d.ts +9 -0
  104. package/lib/handler/mouse/mousepitch_hander.js +21 -39
  105. package/lib/handler/mouse/mouserotate_hander.d.ts +9 -0
  106. package/lib/handler/mouse/mouserotate_hander.js +21 -39
  107. package/lib/handler/mouse/util.d.ts +6 -0
  108. package/lib/handler/mouse/util.js +7 -7
  109. package/lib/handler/scroll_zoom.d.ts +93 -0
  110. package/lib/handler/scroll_zoom.js +221 -231
  111. package/lib/handler/shim/dblclick_zoom.d.ts +40 -0
  112. package/lib/handler/shim/dblclick_zoom.js +37 -46
  113. package/lib/handler/shim/drag_pan.d.ts +61 -0
  114. package/lib/handler/shim/drag_pan.js +42 -49
  115. package/lib/handler/shim/drag_rotate.d.ts +46 -0
  116. package/lib/handler/shim/drag_rotate.js +39 -47
  117. package/lib/handler/shim/touch_zoom_rotate.d.ts +70 -0
  118. package/lib/handler/shim/touch_zoom_rotate.js +69 -78
  119. package/lib/handler/tap/single_tap_recognizer.d.ts +20 -0
  120. package/lib/handler/tap/single_tap_recognizer.js +63 -79
  121. package/lib/handler/tap/tap_drag_zoom.d.ts +22 -0
  122. package/lib/handler/tap/tap_drag_zoom.js +74 -88
  123. package/lib/handler/tap/tap_recognizer.d.ts +17 -0
  124. package/lib/handler/tap/tap_recognizer.js +41 -47
  125. package/lib/handler/tap/tap_zoom.d.ts +22 -0
  126. package/lib/handler/tap/tap_zoom.js +69 -94
  127. package/lib/handler/touch/index.d.ts +5 -0
  128. package/lib/handler/touch/index.js +4 -4
  129. package/lib/handler/touch/touch_pan.d.ts +30 -0
  130. package/lib/handler/touch/touch_pan.js +79 -95
  131. package/lib/handler/touch/touch_pitch.d.ts +13 -0
  132. package/lib/handler/touch/touch_pitch.js +64 -78
  133. package/lib/handler/touch/touch_rotate.d.ts +12 -0
  134. package/lib/handler/touch/touch_rotate.js +50 -66
  135. package/lib/handler/touch/touch_zoom.d.ts +12 -0
  136. package/lib/handler/touch/touch_zoom.js +32 -45
  137. package/lib/handler/touch/two_touch.d.ts +23 -0
  138. package/lib/handler/touch/two_touch.js +81 -103
  139. package/lib/hash.d.ts +14 -0
  140. package/lib/hash.js +75 -88
  141. package/lib/index.d.ts +4 -0
  142. package/lib/index.js +4 -4
  143. package/lib/interface.d.ts +34 -0
  144. package/lib/map.d.ts +70 -0
  145. package/lib/map.js +319 -284
  146. package/lib/util.d.ts +25 -0
  147. package/lib/util.js +20 -36
  148. package/lib/utils/Aabb.d.ts +12 -0
  149. package/lib/utils/Aabb.js +61 -99
  150. package/lib/utils/dom.d.ts +4 -0
  151. package/lib/utils/dom.js +34 -55
  152. package/lib/utils/performance.d.ts +17 -0
  153. package/lib/utils/performance.js +25 -29
  154. package/lib/utils/primitives.d.ts +6 -0
  155. package/lib/utils/primitives.js +34 -42
  156. package/lib/utils/task_queue.d.ts +13 -0
  157. package/lib/utils/task_queue.js +47 -76
  158. package/package.json +25 -32
package/lib/hash.js CHANGED
@@ -5,50 +5,47 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
9
  var _l7Utils = require("@antv/l7-utils");
12
10
  // @ts-ignore
13
11
  // tslint:disable-next-line:no-submodule-imports
14
12
 
15
- var throttle = _l7Utils.lodashUtil.throttle;
13
+ const {
14
+ throttle
15
+ } = _l7Utils.lodashUtil;
16
16
  /*
17
17
  * Adds the map's position to its page's location hash.
18
18
  * Passed as an option to the map object.
19
19
  *
20
20
  * @returns {Hash} `this`
21
21
  */
22
- var Hash = /*#__PURE__*/function () {
23
- function Hash(hashName) {
24
- var _this = this;
25
- (0, _classCallCheck2.default)(this, Hash);
26
- (0, _defineProperty2.default)(this, "onHashChange", function () {
27
- var loc = _this.getCurrentHash();
28
- if (loc.length >= 3 && !loc.some(function (v) {
29
- return isNaN(+v);
30
- })) {
31
- var bearing = _this.map.dragRotate.isEnabled() && _this.map.touchZoomRotate.isEnabled() ? +(loc[3] || 0) : _this.map.getBearing();
32
- _this.map.jumpTo({
22
+ class Hash {
23
+ constructor(hashName) {
24
+ (0, _defineProperty2.default)(this, "map", void 0);
25
+ (0, _defineProperty2.default)(this, "updateHash", void 0);
26
+ (0, _defineProperty2.default)(this, "hashName", void 0);
27
+ (0, _defineProperty2.default)(this, "onHashChange", () => {
28
+ const loc = this.getCurrentHash();
29
+ if (loc.length >= 3 && !loc.some(v => isNaN(+v))) {
30
+ const bearing = this.map.dragRotate.isEnabled() && this.map.touchZoomRotate.isEnabled() ? +(loc[3] || 0) : this.map.getBearing();
31
+ this.map.jumpTo({
33
32
  center: [+loc[2], +loc[1]],
34
33
  zoom: +loc[0],
35
- bearing: bearing,
34
+ bearing,
36
35
  pitch: +(loc[4] || 0)
37
36
  });
38
37
  return true;
39
38
  }
40
39
  return false;
41
40
  });
42
- (0, _defineProperty2.default)(this, "getCurrentHash", function () {
41
+ (0, _defineProperty2.default)(this, "getCurrentHash", () => {
43
42
  // Get the current hash from location, stripped from its number sign
44
- var hash = window.location.hash.replace('#', '');
45
- if (_this.hashName) {
43
+ const hash = window.location.hash.replace('#', '');
44
+ if (this.hashName) {
46
45
  // Split the parameter-styled hash into parts and find the value we need
47
- var keyval;
48
- hash.split('&').map(function (part) {
49
- return part.split('=');
50
- }).forEach(function (part) {
51
- if (part[0] === _this.hashName) {
46
+ let keyval;
47
+ hash.split('&').map(part => part.split('=')).forEach(part => {
48
+ if (part[0] === this.hashName) {
52
49
  keyval = part;
53
50
  }
54
51
  });
@@ -56,8 +53,8 @@ var Hash = /*#__PURE__*/function () {
56
53
  }
57
54
  return hash.split('/');
58
55
  });
59
- (0, _defineProperty2.default)(this, "updateHashUnthrottled", function () {
60
- var hash = _this.getHashString();
56
+ (0, _defineProperty2.default)(this, "updateHashUnthrottled", () => {
57
+ const hash = this.getHashString();
61
58
  try {
62
59
  window.history.replaceState(window.history.state, '', hash);
63
60
  } catch (SecurityError) {
@@ -71,72 +68,62 @@ var Hash = /*#__PURE__*/function () {
71
68
  // Mobile Safari doesn't allow updating the hash more than 100 times per 30 seconds.
72
69
  this.updateHash = throttle(this.updateHashUnthrottled, 30 * 1000 / 100);
73
70
  }
74
- (0, _createClass2.default)(Hash, [{
75
- key: "addTo",
76
- value: function addTo(map) {
77
- this.map = map;
78
- window.addEventListener('hashchange', this.onHashChange, false);
79
- this.map.on('moveend', this.updateHash);
80
- return this;
81
- }
82
- }, {
83
- key: "remove",
84
- value: function remove() {
85
- window.removeEventListener('hashchange', this.onHashChange, false);
86
- this.map.off('moveend', this.updateHash);
87
- // clearTimeout(this.updateHash());
71
+ addTo(map) {
72
+ this.map = map;
73
+ window.addEventListener('hashchange', this.onHashChange, false);
74
+ this.map.on('moveend', this.updateHash);
75
+ return this;
76
+ }
77
+ remove() {
78
+ window.removeEventListener('hashchange', this.onHashChange, false);
79
+ this.map.off('moveend', this.updateHash);
80
+ // clearTimeout(this.updateHash());
88
81
 
89
- // @ts-ignore
90
- delete this.map;
91
- return this;
82
+ // @ts-ignore
83
+ delete this.map;
84
+ return this;
85
+ }
86
+ getHashString(mapFeedback) {
87
+ const center = this.map.getCenter();
88
+ const zoom = Math.round(this.map.getZoom() * 100) / 100;
89
+ // derived from equation: 512px * 2^z / 360 / 10^d < 0.5px
90
+ const precision = Math.ceil((zoom * Math.LN2 + Math.log(512 / 360 / 0.5)) / Math.LN10);
91
+ const m = Math.pow(10, precision);
92
+ const lng = Math.round(center.lng * m) / m;
93
+ const lat = Math.round(center.lat * m) / m;
94
+ const bearing = this.map.getBearing();
95
+ const pitch = this.map.getPitch();
96
+ let hash = '';
97
+ if (mapFeedback) {
98
+ // new map feedback site has some constraints that don't allow
99
+ // us to use the same hash format as we do for the Map hash option.
100
+ hash += `/${lng}/${lat}/${zoom}`;
101
+ } else {
102
+ hash += `${zoom}/${lat}/${lng}`;
92
103
  }
93
- }, {
94
- key: "getHashString",
95
- value: function getHashString(mapFeedback) {
96
- var center = this.map.getCenter();
97
- var zoom = Math.round(this.map.getZoom() * 100) / 100;
98
- // derived from equation: 512px * 2^z / 360 / 10^d < 0.5px
99
- var precision = Math.ceil((zoom * Math.LN2 + Math.log(512 / 360 / 0.5)) / Math.LN10);
100
- var m = Math.pow(10, precision);
101
- var lng = Math.round(center.lng * m) / m;
102
- var lat = Math.round(center.lat * m) / m;
103
- var bearing = this.map.getBearing();
104
- var pitch = this.map.getPitch();
105
- var hash = '';
106
- if (mapFeedback) {
107
- // new map feedback site has some constraints that don't allow
108
- // us to use the same hash format as we do for the Map hash option.
109
- hash += "/".concat(lng, "/").concat(lat, "/").concat(zoom);
110
- } else {
111
- hash += "".concat(zoom, "/").concat(lat, "/").concat(lng);
112
- }
113
- if (bearing || pitch) {
114
- hash += "/".concat(Math.round(bearing * 10) / 10);
115
- }
116
- if (pitch) {
117
- hash += "/".concat(Math.round(pitch));
118
- }
119
- if (this.hashName) {
120
- var hashName = this.hashName;
121
- var found = false;
122
- var parts = window.location.hash.slice(1).split('&').map(function (part) {
123
- var key = part.split('=')[0];
124
- if (key === hashName) {
125
- found = true;
126
- return "".concat(key, "=").concat(hash);
127
- }
128
- return part;
129
- }).filter(function (a) {
130
- return a;
131
- });
132
- if (!found) {
133
- parts.push("".concat(hashName, "=").concat(hash));
104
+ if (bearing || pitch) {
105
+ hash += `/${Math.round(bearing * 10) / 10}`;
106
+ }
107
+ if (pitch) {
108
+ hash += `/${Math.round(pitch)}`;
109
+ }
110
+ if (this.hashName) {
111
+ const hashName = this.hashName;
112
+ let found = false;
113
+ const parts = window.location.hash.slice(1).split('&').map(part => {
114
+ const key = part.split('=')[0];
115
+ if (key === hashName) {
116
+ found = true;
117
+ return `${key}=${hash}`;
134
118
  }
135
- return "#".concat(parts.join('&'));
119
+ return part;
120
+ }).filter(a => a);
121
+ if (!found) {
122
+ parts.push(`${hashName}=${hash}`);
136
123
  }
137
- return "#".concat(hash);
124
+ return `#${parts.join('&')}`;
138
125
  }
139
- }]);
140
- return Hash;
141
- }();
126
+ return `#${hash}`;
127
+ }
128
+ }
142
129
  var _default = exports.default = Hash;
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './earthmap';
2
+ export * from './geo/mercator';
3
+ export * from './interface';
4
+ export * from './map';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ Object.keys(_earthmap).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _earthmap[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _earthmap[key];
14
14
  }
15
15
  });
@@ -20,7 +20,7 @@ Object.keys(_mercator).forEach(function (key) {
20
20
  if (key in exports && exports[key] === _mercator[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
- get: function get() {
23
+ get: function () {
24
24
  return _mercator[key];
25
25
  }
26
26
  });
@@ -31,7 +31,7 @@ Object.keys(_interface).forEach(function (key) {
31
31
  if (key in exports && exports[key] === _interface[key]) return;
32
32
  Object.defineProperty(exports, key, {
33
33
  enumerable: true,
34
- get: function get() {
34
+ get: function () {
35
35
  return _interface[key];
36
36
  }
37
37
  });
@@ -42,7 +42,7 @@ Object.keys(_map).forEach(function (key) {
42
42
  if (key in exports && exports[key] === _map[key]) return;
43
43
  Object.defineProperty(exports, key, {
44
44
  enumerable: true,
45
- get: function get() {
45
+ get: function () {
46
46
  return _map[key];
47
47
  }
48
48
  });
@@ -0,0 +1,34 @@
1
+ import type { LngLatBoundsLike } from './geo/lng_lat_bounds';
2
+ export interface IMapOptions {
3
+ hash: boolean;
4
+ style?: any;
5
+ container?: HTMLElement | string;
6
+ canvas?: HTMLCanvasElement;
7
+ center: [number, number];
8
+ zoom: number;
9
+ bearing: number;
10
+ pitch: number;
11
+ interactive: boolean;
12
+ scrollZoom: boolean;
13
+ bounds?: LngLatBoundsLike;
14
+ maxBounds?: LngLatBoundsLike;
15
+ fitBoundsOptions?: any;
16
+ minZoom: number;
17
+ maxZoom: number;
18
+ minPitch: number;
19
+ maxPitch: number;
20
+ boxZoom: boolean;
21
+ dragRotate: boolean;
22
+ dragPan: boolean;
23
+ keyboard: boolean;
24
+ doubleClickZoom: boolean;
25
+ touchZoomRotate: boolean;
26
+ touchPitch: boolean;
27
+ trackResize: boolean;
28
+ renderWorldCopies: boolean;
29
+ bearingSnap: number;
30
+ clickTolerance: number;
31
+ pitchWithRotate: boolean;
32
+ pitchEnabled: boolean;
33
+ rotateEnabled: boolean;
34
+ }
package/lib/map.d.ts ADDED
@@ -0,0 +1,70 @@
1
+ import Camera from './camera';
2
+ import './css/l7.css';
3
+ import type { LngLatLike } from './geo/lng_lat';
4
+ import LngLat from './geo/lng_lat';
5
+ import type { LngLatBoundsLike } from './geo/lng_lat_bounds';
6
+ import LngLatBounds from './geo/lng_lat_bounds';
7
+ import type { PointLike } from './geo/point';
8
+ import Point from './geo/point';
9
+ import type BoxZoomHandler from './handler/box_zoom';
10
+ import HandlerManager from './handler/handler_manager';
11
+ import type KeyboardHandler from './handler/keyboard';
12
+ import type ScrollZoomHandler from './handler/scroll_zoom';
13
+ import type DoubleClickZoomHandler from './handler/shim/dblclick_zoom';
14
+ import type DragPanHandler from './handler/shim/drag_pan';
15
+ import type DragRotateHandler from './handler/shim/drag_rotate';
16
+ import type TouchZoomRotateHandler from './handler/shim/touch_zoom_rotate';
17
+ import type { TouchPitchHandler } from './handler/touch';
18
+ import type { IMapOptions } from './interface';
19
+ import type { TaskID } from './utils/task_queue';
20
+ type CallBack = (_: number) => void;
21
+ export declare class Map extends Camera {
22
+ doubleClickZoom: DoubleClickZoomHandler;
23
+ dragRotate: DragRotateHandler;
24
+ dragPan: DragPanHandler;
25
+ touchZoomRotate: TouchZoomRotateHandler;
26
+ scrollZoom: ScrollZoomHandler;
27
+ keyboard: KeyboardHandler;
28
+ touchPitch: TouchPitchHandler;
29
+ boxZoom: BoxZoomHandler;
30
+ handlers: HandlerManager;
31
+ private container;
32
+ private canvas;
33
+ private canvasContainer;
34
+ private renderTaskQueue;
35
+ private frame;
36
+ private trackResize;
37
+ private hash;
38
+ constructor(options: Partial<IMapOptions>);
39
+ resize(eventData?: any): this;
40
+ getContainer(): HTMLElement;
41
+ getCanvas(): HTMLCanvasElement;
42
+ getCanvasContainer(): HTMLElement;
43
+ getCanvasOverlays(): HTMLElement;
44
+ project(lngLat: LngLatLike): Point;
45
+ unproject(point: PointLike): LngLat;
46
+ getBounds(): LngLatBounds;
47
+ getMaxBounds(): LngLatBounds | null;
48
+ setMaxBounds(bounds: LngLatBoundsLike): void;
49
+ setStyle(style: any): void;
50
+ setMinZoom(minZoom?: number): this;
51
+ getMinZoom(): number;
52
+ setMaxZoom(maxZoom?: number): this;
53
+ getMaxZoom(): number;
54
+ setMinPitch(minPitch?: number): this;
55
+ getMinPitch(): number;
56
+ setMaxPitch(maxPitch?: number): this;
57
+ getMaxPitch(): number;
58
+ getRenderWorldCopies(): boolean;
59
+ setRenderWorldCopies(renderWorldCopies?: boolean): void;
60
+ remove(): void;
61
+ requestRenderFrame(cb: CallBack): TaskID;
62
+ cancelRenderFrame(id: TaskID): void;
63
+ triggerRepaint(): void;
64
+ update(time?: number): void;
65
+ private initContainer;
66
+ private containerDimensions;
67
+ private onWindowOnline;
68
+ private onWindowResize;
69
+ }
70
+ export {};