MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / fullHexColor

Function fullHexColor

web/pgadmin/static/js/utils.js:557–562  ·  view source on GitHub ↗
(shortHex)

Source from the content-addressed store, hash-verified

555}
556
557export function fullHexColor(shortHex) {
558 if(shortHex?.length == 4) {
559 return shortHex.replace(/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/, '#$1$1$2$2$3$3').toUpperCase();
560 }
561 return shortHex;
562}
563
564// https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
565const requestAnimationFrame =

Callers 1

initPickrFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected