MCPcopy
hub / github.com/styletron/styletron / hashCssObject

Function hashCssObject

packages/styletron-engine-monolithic/src/css.ts:14–18  ·  view source on GitHub ↗
(
  cssObject: StyleObject | FontFaceObject | KeyframesObject,
)

Source from the content-addressed store, hash-verified

12} from "styletron-standard";
13
14export function hashCssObject(
15 cssObject: StyleObject | FontFaceObject | KeyframesObject,
16): string {
17 return generateAlphabeticName(hash(JSON.stringify(cssObject)));
18}
19
20export function keyframesToBlock(keyframes: {[x: string]: any}): string {
21 if (__DEV__) {

Callers 6

renderStyleMethod · 0.90
renderFontFaceMethod · 0.90
renderKeyframesMethod · 0.90
renderStyleMethod · 0.90
renderFontFaceMethod · 0.90
renderKeyframesMethod · 0.90

Calls 2

hashFunction · 0.90
generateAlphabeticNameFunction · 0.85

Tested by

no test coverage detected