Move DOMRectToArray() to icon handler

This commit is contained in:
varjolintu 2025-12-06 14:43:14 +02:00
parent f95fee435a
commit d5fec38409
2 changed files with 13 additions and 13 deletions

View file

@ -223,3 +223,16 @@ kpxcIcons.updateIconPosition = function(iconClass) {
kpxcIcons.setIconPosition(iconClass.icon, iconClass.inputField, iconClass.rtl, iconClass.segmented);
}
};
const DOMRectToArray = function (domRect) {
return [
domRect.bottom,
domRect.height,
domRect.left,
domRect.right,
domRect.top,
domRect.width,
domRect.x,
domRect.y,
];
};

View file

@ -265,19 +265,6 @@ kpxcUI.createPageObserver = function() {
}
};
const DOMRectToArray = function (domRect) {
return [
domRect.bottom,
domRect.height,
domRect.left,
domRect.right,
domRect.top,
domRect.width,
domRect.x,
domRect.y,
];
};
const initColorTheme = function(elem) {
let theme = kpxc.settings['colorTheme'];
if (theme === 'system') {