Skip to content

Commit

Permalink
Update resolve.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Dec 16, 2024
1 parent 3af8401 commit 68b1329
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export const cachedResults = new LRUCache({
* e.g. `customProperty: { '--some-color': '#0000ff' }`
* - and/or `callback` function to get the value of the custom property,
* e.g. `customProperty: { callback: someDeclaration.getPropertyValue }`
* @param {object} [opt.dimension]
* - dimension, convert relative length to pixels
* - pair of unit and it's value as a number in pixels,
* e.g. `dimension: { em: 12, rem: 16, vw: 10.26 }`
* - and/or `callback` function to get the value as a number in pixels,
* e.g. `dimension: { callback: convertUnitToPixel }`
* @param {string} [opt.format]
* - output format, one of below
* - `computedValue` (default), [computed value][139] of the color
Expand Down

0 comments on commit 68b1329

Please sign in to comment.