UNPKG

@tianditu/wc

Version:

Web components for tianditu, powered by Demo Macro.

26 lines (23 loc) 522 B
/*! * MIT © Demo Macro */ 'use strict'; function filterProps(props) { return Object.keys(props).reduce((acc, key) => { if (props[key] !== undefined) { acc[key] = props[key]; } return acc; }, {}); } function onload(callback) { if (document.readyState === "complete") { callback(); } else { globalThis.addEventListener("load", callback); } } exports.filterProps = filterProps; exports.onload = onload; //# sourceMappingURL=use-c678b375.js.map