@antv/l7-utils
Advanced tools
Comparing version 2.0.0-beta.17 to 2.0.0-beta.18
@@ -6,2 +6,24 @@ # Change Log | ||
# [2.0.0-beta.18](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.18) (2019-12-08) | ||
### Bug Fixes | ||
* **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94)) | ||
# [2.0.0-beta.17](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2019-12-08) | ||
### Bug Fixes | ||
* **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94)) | ||
# [2.0.0-beta.16](https://github.com/antvis/L7/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2019-11-29) | ||
@@ -8,0 +30,0 @@ |
@@ -14,2 +14,3 @@ declare type ELType = HTMLElement | SVGElement; | ||
export declare function setTransform(el: ELType, value: string): void; | ||
export declare function triggerResize(): void; | ||
export {}; |
@@ -99,2 +99,11 @@ var docStyle = window.document.documentElement.style; | ||
} | ||
export function triggerResize() { | ||
if (typeof Event === 'function') { | ||
window.dispatchEvent(new Event('resize')); | ||
} else { | ||
var evt = window.document.createEvent('UIEvents'); | ||
evt.initUIEvent('resize', true, false, window, 0); | ||
window.dispatchEvent(evt); | ||
} | ||
} | ||
//# sourceMappingURL=dom.js.map |
@@ -18,2 +18,3 @@ "use strict"; | ||
exports.setTransform = setTransform; | ||
exports.triggerResize = triggerResize; | ||
var docStyle = window.document.documentElement.style; | ||
@@ -129,2 +130,12 @@ | ||
} | ||
function triggerResize() { | ||
if (typeof Event === 'function') { | ||
window.dispatchEvent(new Event('resize')); | ||
} else { | ||
var evt = window.document.createEvent('UIEvents'); | ||
evt.initUIEvent('resize', true, false, window, 0); | ||
window.dispatchEvent(evt); | ||
} | ||
} | ||
//# sourceMappingURL=dom.js.map |
@@ -21,2 +21,2 @@ MIT License | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
{ | ||
"name": "@antv/l7-utils", | ||
"version": "2.0.0-beta.17", | ||
"version": "2.0.0-beta.18", | ||
"description": "", | ||
@@ -39,3 +39,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "0f37684060214079d11972d2d449bd559c4ce33f", | ||
"gitHead": "7c12c2b43c89fe6d7d9adc731e11585560874f81", | ||
"publishConfig": { | ||
@@ -42,0 +42,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
128132
1256