[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> style-engine.js (summary)

(no description)

File Size: 1135 lines (39 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 64 functions

  __extends()
  __()
  __rest()
  __decorate()
  __param()
  __esDecorate()
  accept()
  __runInitializers()
  __propKey()
  __setFunctionName()
  __metadata()
  __awaiter()
  adopt()
  fulfilled()
  rejected()
  step()
  __generator()
  verb()
  step()
  __exportStar()
  __values()
  __read()
  __spread()
  __spreadArrays()
  __spreadArray()
  __await()
  __asyncGenerator()
  verb()
  resume()
  step()
  fulfill()
  reject()
  settle()
  __asyncDelegator()
  verb()
  __asyncValues()
  verb()
  settle()
  __makeTemplateObject()
  __importStar()
  __importDefault()
  __classPrivateFieldGet()
  __classPrivateFieldSet()
  __classPrivateFieldIn()
  __addDisposableResource()
  __disposeResources()
  fail()
  next()
  localeLowerCase()
  lowerCase()
  noCase()
  replace()
  dotCase()
  paramCase()
  generateRule()
  generateBoxRules()
  getCSSVarFromStyleValue()
  upperFirst()
  camelCaseJoin()
  safeDecodeURI()
  createBorderGenerateFunction()
  createBorderEdgeGenerateFunction()
  compileCSS()
  getCSSRules()

Functions
Functions that are not part of a class:

__extends(d, b)   X-Ref
No description

__()   X-Ref
No description

__rest(s, e)   X-Ref
No description

__decorate(decorators, target, key, desc)   X-Ref
No description

__param(paramIndex, decorator)   X-Ref
No description

__esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers)   X-Ref
No description

accept(f)   X-Ref
No description

__runInitializers(thisArg, initializers, value)   X-Ref
No description

__propKey(x)   X-Ref
No description

__setFunctionName(f, name, prefix)   X-Ref
No description

__metadata(metadataKey, metadataValue)   X-Ref
No description

__awaiter(thisArg, _arguments, P, generator)   X-Ref
No description

adopt(value)   X-Ref
No description

fulfilled(value)   X-Ref
No description

rejected(value)   X-Ref
No description

step(result)   X-Ref
No description

__generator(thisArg, body)   X-Ref
No description

verb(n)   X-Ref
No description

step(op)   X-Ref
No description

__exportStar(m, o)   X-Ref
No description

__values(o)   X-Ref
No description

__read(o, n)   X-Ref
No description

__spread()   X-Ref
No description

__spreadArrays()   X-Ref
No description

__spreadArray(to, from, pack)   X-Ref
No description

__await(v)   X-Ref
No description

__asyncGenerator(thisArg, _arguments, generator)   X-Ref
No description

verb(n)   X-Ref
No description

resume(n, v)   X-Ref
No description

step(r)   X-Ref
No description

fulfill(value)   X-Ref
No description

reject(value)   X-Ref
No description

settle(f, v)   X-Ref
No description

__asyncDelegator(o)   X-Ref
No description

verb(n, f)   X-Ref
No description

__asyncValues(o)   X-Ref
No description

verb(n)   X-Ref
No description

settle(resolve, reject, d, v)   X-Ref
No description

__makeTemplateObject(cooked, raw)   X-Ref
No description

__importStar(mod)   X-Ref
No description

__importDefault(mod)   X-Ref
No description

__classPrivateFieldGet(receiver, state, kind, f)   X-Ref
No description

__classPrivateFieldSet(receiver, state, value, kind, f)   X-Ref
No description

__classPrivateFieldIn(state, receiver)   X-Ref
No description

__addDisposableResource(env, value, async)   X-Ref
No description

__disposeResources(env)   X-Ref
No description

fail(e)   X-Ref
No description

next()   X-Ref
No description

localeLowerCase(str, locale)   X-Ref
Localized lower case.


lowerCase(str)   X-Ref
Lower case as a function.


noCase(input, options)   X-Ref
Normalize the string into something other libraries can manipulate easier.


replace(input, re, value)   X-Ref
Replace `re` in the input string with the replacement value.


dotCase(input, options)   X-Ref
No description

paramCase(input, options)   X-Ref
No description

generateRule(style, options, path, ruleKey)   X-Ref
Returns a JSON representation of the generated CSS rules.

return: GeneratedCSSRule[] CSS rules.
param: style   Style object.
param: options Options object with settings to adjust how the styles are generated.
param: path    An array of strings representing the path to the style value in the style object.
param: ruleKey A CSS property key.

generateBoxRules(style, options, path, ruleKeys, individualProperties = ['top', 'right', 'bottom', 'left'])   X-Ref
Returns a JSON representation of the generated CSS rules taking into account box model properties, top, right, bottom, left.

return: GeneratedCSSRule[]  CSS rules.
param: style                Style object.
param: options              Options object with settings to adjust how the styles are generated.
param: path                 An array of strings representing the path to the style value in the style object.
param: ruleKeys             An array of CSS property keys and patterns.
param: individualProperties The "sides" or individual properties for which to generate rules.

getCSSVarFromStyleValue(styleValue)   X-Ref
Returns a CSS var value from incoming style value following the pattern `var:description|context|slug`.

return: string A CSS var value.
param: styleValue A raw style value.

upperFirst(string)   X-Ref
Capitalizes the first letter in a string.

return: String with the first letter capitalized.
param: string The string whose first letter the function will capitalize.

camelCaseJoin(strings)   X-Ref
Converts an array of strings into a camelCase string.

return: camelCase string.
param: strings The strings to join into a camelCase string.

safeDecodeURI(uri)   X-Ref
Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
`decodeURI` throws an error.

return: {string} Decoded URI if possible.
param: {string} uri URI to decode.

createBorderGenerateFunction(path)   X-Ref
Creates a function for generating CSS rules when the style path is the same as the camelCase CSS property used in React.

return: A function that generates CSS rules.
param: path An array of strings representing the path to the style value in the style object.

createBorderEdgeGenerateFunction(edge)   X-Ref
Creates a function for generating border-{top,bottom,left,right}-{color,style,width} CSS rules.

return: A function that generates CSS rules.
param: edge The edge to create CSS rules for.

compileCSS(style, options = {})   X-Ref
Generates a stylesheet for a given style object and selector.

return: A generated stylesheet or inline style declarations.
param: style   Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json
param: options Options object with settings to adjust how the styles are generated.

getCSSRules(style, options = {})   X-Ref
Returns a JSON representation of the generated CSS rules.

return: A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value.
param: style   Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json
param: options Options object with settings to adjust how the styles are generated.



Generated : Sat Apr 27 08:20:02 2024 Cross-referenced by PHPXref