Skip to content

Commit e965999

Browse files
committed
docs: add jsdoc to new utils
1 parent 831d223 commit e965999

File tree

1 file changed

+7
-0
lines changed
  • src/plugins/global-settings/typography

1 file changed

+7
-0
lines changed

src/plugins/global-settings/typography/utils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Returns the reversely computed typescale based on the typography settings and device type
3+
*
4+
* @param {Object} typographySettings - The typography settings object
5+
* @param {string} deviceType - The device type
6+
* @return {string} The computed typescale. Values can be none, custom, or the numeric scale.
7+
*/
18
export const getTypographyTypeScale = ( typographySettings, deviceType ) => {
29
const fontSizeKey = getDevicePropertyKey( 'fontSize', deviceType )
310
const fontSizeUnitKey = getDevicePropertyKey( 'fontSizeUnit', deviceType )

0 commit comments

Comments
 (0)