Lines 7799-7839javascript
7802function getMapTile(option) {
7803 return __async(this, null, function* () {
7804 const mapTile = new MapTile(option);
7805 return mapTile.getMapTile();
7808function sum2(nums, key) {
7809 if (!(nums == null ? void 0 : nums.length)) {
7813 return sum2(nums.map((item) => +item[key]));
7815 return nums.reduce((s, n) => s + n, 0);
7818function loadModuleWithUrl(url) {
7819 return __async(this, null, function* () {
7820 const module = yield import(url);
7821 return module;
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/anov-base-component.full.mjsView on unpkg · L7819 7824function loadModuleWithCode(code) {
7825 return __async(this, null, function* () {
7826 const blob = new Blob([code], { type: "text/javascript" });
7827 const url = URL.createObjectURL(blob);
7828 const module = yield import(url);
7832 revoke: () => URL.revokeObjectURL(url)
7836function computePos(anchor, target, placement) {
7837 const position = { left: 0, top: 0 };
7838 switch (placement) {