It's a module that contains some utility classes which encapsulates common operations such as Unit object processor.
More...
|
class | Color |
| Class for processing color-related algorithms such as conversions. More...
|
|
It's a module that contains some utility classes which encapsulates common operations such as Unit object processor.
◆ getRanges()
function getRanges |
( |
|
intervals | ) |
|
Get the number range.
- Parameters
-
intervals | Array<[number,number]|number> - function example(){ var getRanges = PDFViewCtrl.shared.getRanges; } |
- Returns
- number[] -
- Since
- 8.2.0
◆ getUnitByName()
function getUnitByName |
( |
|
unitName | ) |
|
Get the unit object by the unit name.
- Since
- 8.0.0
- Parameters
-
- Returns
- Unit -
◆ setThemeColor()
function setThemeColor |
( |
|
colorInfo | ) |
|
Set custom theme color.
- Parameters
-
colorInfo | Object[] - The color objects array. |
colorInfo[].dom | HTMLElement|string - The target DOM element. The default value is document.body. |
colorInfo[].colors | Object - The color object. |
- Since
- 9.2.0
dom: document.body,
colors: {
background: '#000000',
}
}])