Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return Arr.map(allTabs, (tab, i) => {
Replacing.set(tabviewComp, allTabs[i].view());
const rect = tabview.dom().getBoundingClientRect();
Replacing.set(tabviewComp, [ ]);
return rect.height;
});
};optMemDisplayText.bind((mem) => mem.getOpt(comp)).each((displayText) => {
Replacing.set(displayText, [ GuiFactory.text(sharedBackstage.providers.translate(se.event().text())) ] );
});
}),return Arr.map(allTabs, (tab, i) => {
Replacing.set(tabviewComp, allTabs[i].view());
const rect = tabview.dom().getBoundingClientRect();
Replacing.set(tabviewComp, [ ]);
return rect.height;
});
};const updateText: NotificationSketchApis['updateText'] = (comp, text) => {
if (comp.getSystem().isConnected()) {
const banner = memBannerText.get(comp);
Replacing.set(banner, [
GuiFactory.text(text)
]);
}
};memBannerProgress.getOpt(comp).each((progress) => {
Replacing.set(progress, [
{
dom: {
tag: 'div',
classes: [ 'tox-bar-container' ]
},
components: [
renderPercentBar(percent)
]
},
renderPercentText(percent)
]);
});
}memContainer.getOpt(button).each((container) => {
Replacing.set(container, [panel]);
update(container);
});
};optMemDisplayIcon.bind((mem) => mem.getOpt(comp)).each((displayIcon) => {
Replacing.set(displayIcon, [ renderReplacableIconFromPack(se.event().icon(), sharedBackstage.providers.icons) ] );
});
})