MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / cssToStyle

Function cssToStyle

packages/utils/src/css-helper.ts:193–206  ·  view source on GitHub ↗
(css)

Source from the content-addressed store, hash-verified

191}
192
193function cssToStyle(css) {
194 try {
195 if (isString(css)) {
196 return toNativeStyle(cssToRuntime(css).default);
197 }
198 if (css.default) {
199 return toNativeStyle(normalizeStyle(css.default));
200 }
201 return toNativeStyle(normalizeStyle(css));
202 } catch (e) {
203 // do nothing
204 }
205 return {};
206}
207
208export {
209 hyphenate,

Callers

nothing calls this directly

Calls 4

toNativeStyleFunction · 0.85
cssToRuntimeFunction · 0.85
normalizeStyleFunction · 0.85
isStringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…