Skip to content
Snippets Groups Projects
Verified Commit 049dd1d9 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

doc: update

parent 9ff657d5
Branches
Tags
No related merge requests found
......@@ -9,12 +9,13 @@ import {getWindow} from './util.mjs';
export {convertToPixels, getDeviceDPI}
/**
* Stores the DPI of the device.
*
* @private
* @returns {number}
* @type {number}
* @since 3.34.0
* @type {number|function}
*/
let CURRENT_DEVICE_DPI = function () {
let i = 0;
......@@ -29,6 +30,8 @@ let CURRENT_DEVICE_DPI = function () {
/**
* Returns the DPI of the device.
*
* @since 3.34.0
* @memberOf Monster.DOM
* @returns {number}
*/
function getDeviceDPI() {
......@@ -59,15 +62,15 @@ function getDeviceDPI() {
* - rem
* - %
*
* @param value
* @param parentElement
* @param fontSizeElement
* @param {string} value
* @param {HTMLElement} [parentElement=document.documentElement]
* @param {HTMLElement} [fontSizeElement=document.documentElement]
* @returns {number}
* @license AGPLv3
* @since 1.6.0
* @since 3.34.0
* @copyright schukai GmbH
* @memberOf Monster.DOM
* @throws {Error} Unsupported unit
* @memberOf Monster.DOM
*/
function convertToPixels(value, parentElement = document.documentElement, fontSizeElement = document.documentElement) {
......
......@@ -208,6 +208,7 @@ class Translations extends Base {
* @throws {Error} Cannot find element with translations. Add a translations object to the document.
* @throws {Error} This element has no translations.
* @throws {Error} Missing translations.
* @memberOf Monster.I18n
*/
function getDocumentTranslations(element) {
......
......@@ -27,6 +27,8 @@ const ENV_UNKNOWN = 'unknown';
* - 'react-native': React Native environment
* - 'unknown': Unknown environment
*
* @since 3.34.0
* @memberOf Monster.Util
* @returns {string} The detected runtime environment. Possible values are:
*/
function detectRuntimeEnvironment() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment