MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / getWidgetsFontColor

Function getWidgetsFontColor

apps/OpenSign/src/constant/Utils.js:2000–2013  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

1998};
1999
2000const getWidgetsFontColor = (type) => {
2001 switch (type) {
2002 case "red":
2003 return rgb(1, 0, 0);
2004 case "black":
2005 return rgb(0, 0, 0);
2006 case "blue":
2007 return rgb(0, 0, 1);
2008 case "yellow":
2009 return rgb(0.9, 1, 0);
2010 default:
2011 return rgb(0, 0, 0);
2012 }
2013};
2014export const isBase64 = (str) => {
2015 const base64Pattern =
2016 /^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+)?;base64,[A-Za-z0-9+/=]+$/;

Callers 1

embedWidgetsToDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected