메소드 |
설명 |
|
addParsedFile ( $file ) |
|
|
assertArgs ( $value, $expectedArgs, $name = "" ) |
|
|
assertColor ( $value, $error = "expected color value" ) |
|
|
assertNumber ( $value, $error = "expecting number" ) |
|
|
clamp ( $v, $max = 1, $min ) |
|
|
coerceColor ( $value ) |
coerce a value for use in color operation |
|
coerceString ( $value ) |
make something string like into a string |
|
colorArgs ( $args ) |
Helper function to get arguments for color manipulation functions. |
|
compileBlock ( $block ) |
Recursively compiles a block. |
|
compileCSSBlock ( $block ) |
|
|
compileImportedProps ( $props, $block, $out, $sourceParser, $importDir ) |
|
|
compileMedia ( $media ) |
|
|
compileMediaQuery ( $queries ) |
|
|
compileNestedBlock ( $block, $selectors ) |
|
|
compileProp ( $prop, $block, $out ) |
compile a prop and update $lines or $blocks appropriately |
|
compileProps ( $block, $out ) |
|
|
compileRoot ( $root ) |
|
|
compileSelectors ( $selectors ) |
reduces selector expressions |
|
compileValue ( $value ) |
Compiles a primitive value into a CSS property value. |
|
eq ( $left, $right ) |
|
|
evaluate ( $exp ) |
evaluate an expression |
|
expandParentSelectors ( &$tag, $replace ) |
|
|
fileExists ( $name ) |
|
|
findBlocks ( $searchIn, $path, $orderedArgs, $keywordArgs, $seen = [] ) |
attempt to find blocks matched by path and args |
|
findClosestSelectors ( ) |
|
|
findImport ( $url ) |
attempts to find the path of an import url, returns null for css files |
|
fixColor ( $c ) |
make sure a color's components don't go out of bounds |
|
flattenList ( $value ) |
turn list of length 1 into value type |
|
funcToColor ( $func ) |
Convert the rgb, rgba, hsl color literals of function type
as returned by the parser into values of color type. |
|
get ( $name, $default = null ) |
get the highest occurrence entry for a name |
|
injectVariables ( $args ) |
inject array of unparsed strings into environment as variables |
|
lib__sprintf ( $args ) |
|
|
lib_acos ( $num ) |
|
|
lib_alpha ( $value ) |
defaults to 1 for non-colors or colors without an alpha |
|
lib_argb ( $color ) |
|
|
lib_asin ( $num ) |
|
|
lib_atan ( $num ) |
|
|
lib_ceil ( $arg ) |
|
|
lib_contrast ( $args ) |
|
|
lib_cos ( $num ) |
|
|
lib_darken ( $args ) |
|
|
lib_desaturate ( $args ) |
|
|
lib_e ( ) |
use func_get_arg to prevent Theme Checker triggering unrelated translation warning. |
|
lib_extract ( $value ) |
|
|
lib_fade ( $args ) |
set the alpha of the color |
|
lib_fadein ( $args ) |
|
|
lib_fadeout ( $args ) |
|
|
lib_floor ( $arg ) |
|
|
lib_hue ( $color ) |
|
|
lib_iscolor ( $value ) |
|
|
lib_isem ( $value ) |
|
|
lib_iskeyword ( $value ) |
|
|
lib_isnumber ( $value ) |
|
|
lib_ispercentage ( $value ) |
|
|
lib_ispixel ( $value ) |
|
|
lib_isrem ( $value ) |
|
|
lib_isstring ( $value ) |
|
|
lib_lighten ( $args ) |
|
|
lib_lightness ( $color ) |
|
|
lib_mix ( $args ) |
http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method |
|
lib_mod ( $args ) |
|
|
lib_percentage ( $arg ) |
|
|
lib_pi ( ) |
|
|
lib_pow ( $args ) |
|
|
lib_rgbahex ( $color ) |
|
|
lib_round ( $arg ) |
|
|
lib_saturate ( $args ) |
|
|
lib_saturation ( $color ) |
|
|
lib_sin ( $num ) |
|
|
lib_spin ( $args ) |
|
|
lib_sqrt ( $num ) |
|
|
lib_tan ( $num ) |
|
|
lib_unit ( $arg ) |
|
|
lib_unquote ( $arg ) |
use func_get_arg to prevent Theme Checker triggering unrelated translation warning. |
|
makeOutputBlock ( $type, $selectors = null ) |
* environment functions |
|
makeParser ( $name ) |
|
|
mediaParent ( $scope ) |
|
|
multiplyMedia ( $env, $childQueries = null ) |
|
|
multiplySelectors ( $selectors ) |
multiply $selectors against the nearest selectors in env |
|
newFormatter ( ) |
|
|
op_color_color ( $op, $left, $right ) |
|
|
op_color_number ( $op, $lft, $rgt ) |
|
|
op_number_color ( $op, $lft, $rgt ) |
|
|
op_number_number ( $op, $left, $right ) |
operator on two numbers |
|
patternMatch ( $block, $orderedArgs, $keywordArgs ) |
|
|
patternMatchAll ( $blocks, $orderedArgs, $keywordArgs, $skip = [] ) |
|
|
popEnv ( ) |
pop something off the stack |
|
pushEnv ( $block = null ) |
the state of execution |
|
reduce ( $value, $forExpression = false ) |
|
|
set ( $name, $value ) |
set something in the current env |
|
sortProps ( $props, $split = false ) |
|
|
stringConcatenate ( $left, $right ) |
|
|
throwError ( $msg = null ) |
Uses the current value of $this->count to show line and line number |
|
toBool ( $a ) |
|
|
toHSL ( $color ) |
|
|
toRGB ( $color ) |
Converts a hsl array into a color value in rgb. |
|
toRGB_helper ( $comp, $temp1, $temp2 ) |
|
|
tryImport ( $importPath, $parentBlock, $out ) |
|
|
zipSetArgs ( $args, $orderedValues, $keywordValues ) |
or the one passed in through $values |
|